[antlr-interest] BNF transformation

Ric Klaren ric.klaren at gmail.com
Thu Dec 16 12:21:30 PST 2004


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

<*> 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