comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <grounfxyz@zxblr2f.grbl>
Subject: Re: gnathtml in Ada ?
Date: Wed, 13 Dec 2000 17:38:20 +0100
Date: 2000-12-13T17:38:20+01:00	[thread overview]
Message-ID: <3A37A5FC.7E10DDAF@zxblr2f.grbl> (raw)
In-Reply-To: 915h95$hj6$1@nnrp1.deja.com

Ted Dennison:

> > For that I think the parameters given with "-o" options suffice: you
> > add the prefix for searching files. At least the present version in
> > Perl needs explicit paths. So (I think) you could do the library
> > traversing in 100%-portable Ada.
> 
> Ahh. So the perl version didn't bother to solve this problem either? I
> guess I should have expected a hack from a perl program. :-)

If you know a bit of perl, why not add the ada_include_path and
ada_object_path yourself ?... The script is in the /bin directory
of your GNAT distrib. But I feel there is a good reason to make these
options _explicit_. 

[...]
For use with non-GNAT sources, it doesn't harm: you gnatmake it and
if the Ada is valid, all .ali files are created, even if link fails
due to such and such import. I'm doing so to html-ize a project made
with DEC Ada.

> Is the perl version smart enough to check the gnat.adc file for
> alternative unit name mappings?

Didn't find it in the .pl, but again it is surely too much:

 - perhaps the .ali contains already the right alternative name (-> GNAT RM)
 - for alternernative naming, it is *easy* to do. Say you have plenty of
   .ada files (some with spec+body, some with non-GNAT naming - my case).
   You type "gnatchop *.ada", and 1 second later you have all .ads and
   .adb ! Then gnatmake xxxx, you have the .ali files. Finally: perl
gnathtml ...
   and you have the Web site.

The tool works well. It would *just* be cool to customise the tool.
E.g. allow to add headers, links outside the main page, "A HREF"-ize
the URLs in strings, why not add a tag for a background image ;-) ?
I don't understand much of Perl, but who knows, with a bit of guess-work ?...

But isn't the author of gnathtml.pl reading here ?...

Gautier



  parent reply	other threads:[~2000-12-13 16:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3A351287.8628BCFA@dpqwd.zblf>
2000-12-11 19:32 ` gnathtml in Ada ? Robert Dewar
2000-12-11 21:47 ` Pascal Obry
2000-12-11 23:04   ` Ted Dennison
2000-12-12  0:11     ` David Botton
2000-12-12 15:11       ` Ted Dennison
2000-12-13  7:23         ` Brian Orpin
2000-12-13  5:54       ` gnathtml in Ada ? (LONG!) Ted Dennison
2000-12-12 10:32     ` gnathtml in Ada ? Gautier
2000-12-12 15:46       ` Ted Dennison
2000-12-12 22:20         ` tmoran
2000-12-12 23:15         ` (null)
2000-12-13 16:38         ` Gautier [this message]
2000-12-13 17:35           ` Ted Dennison
2000-12-12 11:44   ` Gautier
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox