[antlr-interest] BNF transformation

Martin Probst mail at martin-probst.com
Thu Dec 16 14:59:23 PST 2004


Hi,
If you look through the archives you'll find a posting by me which
contains an attached XSL stylesheet which transforms ANTLR's SGML
docbook output to something more usable in XML format. You should be
able to generate anything you might need from that XML stuff with some
XSLT scripts.

mfg
Martin

Am Donnerstag, den 16.12.2004, 21:21 +0100 schrieb Ric Klaren:
> On Thu, 16 Dec 2004 19:37:40 -0000, birmanstefan <stefan at amiq.ro> wrote:
> >      I have a BNF as a *.g file. I want to parse the g file and then
> > generate some text/html/code/etc. I looked in the manual and I saw
> > that I can export the BNF as a html file, with -html option.
> >      How/Where can I hook and generate my own stuff based on the g
> > file? Where should I look for resolving this task? Does anybody tried
> > to resolve a similar problem?
> 
> There's a grammar for the .g format on antlr.org. Depending on your
> requirements that should be a good start. The -html/-docbook options
> are additional codegenerators that just present the contents of the .g
> file differently. Might be overkill/too much bagage for what you want
> to do.
> 
> Cheers,
> 
> Ric
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list