On Thursday 06 February 2003 6:46 pm, Steve Wampler wrote:
> I've been toying with a 'UniDoc' program (written in Unicon,
> of course) to produce HTML documentation pages from the comments in
> Unicon programs.  I think I'm about ready to start producing HTML
> (ought to be hilarious, you can fit what I know about HTML in a
> *very* small container...).
>
> However, one feature I'd like to have is the ability to resolve
> packages listed in import directives.
>
> The problem is that, unlike link directives, where the source file
> name is easily derived, I don't know how to figure out the source
> files that make up a package.  Does anyone know of a way?
>
> If someone (Clint?) knows that it's NOT possible then I punt and
> just list package names that are imported without trying to either
> generate (or link to existing) HTML docs for them.
>
> Thanks!
> Steve

Hi Steve

A while ago I wrote just such a utility class to get information from the 
unicon class database.  If you get a copy of my code from my web page

http://www.parlett.dial.pipex.com/

(see Download section), you'll find a directory parser, which contains the 
relevant classes.  To get the list of files for a package you could just do 
something like :-

import parser

procedure main()
   # pi will be of type PackageInfo
   pi := load_package_info("gui") | stop("not found")

   l := pi.get_files()
   every write(!l)

end

BTW, I also did a javadoc style utility to produce HTML docs: see the 
directory unidoc.  I have some online output of this program at :-

http://www.parlett.dial.pipex.com/unidoc/index.html

As you can see, the format is a total rip-off of javadoc!  Note that the links 
to source code only work for locally generated output.

If you think this could be the base for what you want, please drop me a line 
as I'd be more than happy to incorporate any improvements into it.


Kind regards,


Robert




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to