[Gambas-user] New features on the wiki

Tobias Boege taboege at ...626...
Thu Nov 13 21:18:00 CET 2014


On Thu, 13 Nov 2014, Beno?t Minisini wrote:
> Le 13/11/2014 00:07, Tobias Boege a ?crit :
> > On Wed, 12 Nov 2014, Beno?t Minisini wrote:
> >> Le 12/11/2014 13:39, Tobias Boege a ?crit :
> >>> On Sun, 09 Nov 2014, Beno??t Minisini wrote:
> >>>> Hi,
> >>>>
> >>>> I added "automatic documentation from source files" in the wiki. If a
> >>>> class, a property, an event, a constant or a method has an help comment
> >>>> in its source code, it will be used to make a default documentation page
> >>>> automatically.
> >>>>
> >>>
> >>> So how does it work? Is the documentation content taken from the .info
> >>> files?
> >>
> >> Yes.
> >>
> >
> > Do you think we can insert my scripts into the process of the wiki reading
> > the .info files? They run over the whole source tree so that needs to be
> > present. If so, I can upload them (to the repository?) this weekend I think.
> >
> 
> No, the source tree may not beavailable on the wiki, only the *.info files.
> 
> Why not adding an optional "*.help" file that would come with the *.info 
> file?
> 
> This file could have almost the same format as the *.info file, except 
> that it includes only the help. Your script would have to generate that 
> file - I don't know what it does exactly at the moment...
> 
> The format is:
> 
> #<class #1>
> <symbol #1>
> '<Help line #1>
> '<Help line #2>
> '...
> <symbol #2>
> ...
> #<class #2>
> ...
> 
> Then either you keep your script, and you send me the *.help files so 
> that I put them on the wiki server.
> 
> Better would be having your script inside the source tree, and let it 
> run automatically on the C/C++ sources with specific Makefile.am rules.
> 
> That script can be written in Gambas. But then it will be run at "make 
> install" stage, once the interpreter has been compiled.
> 
> What do you think?
> 

Maybe I should rewrite it in Gambas. At this time it's 5 programs (in 4
different languages!) piping into one another. The first four preprocess
the C/C++ comments and the last is a really hackish C program which takes
these help lines and merges them to the right place in a given .info file.
When I wrote these, I was all about (development) speed. It may be cool to
have all that in one program (and one language only).

The above format (and an extra file for it!) would be really good because
that's information the program can gather from the C/C++ source files alone.
No need to mess with the .info files then.

Weekend...

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list