[antlr-interest] How to see the bare grammar?

Ric Klaren ric.klaren at gmail.com
Fri Oct 20 00:28:31 PDT 2006


Hi,

On 10/20/06, David Piepgrass <qwertie256 at gmail.com> wrote:
> I'm examining a large grammar (boo, if you must know) where the .g file is
> 3400 lines. Is there a way to strip out the semantic action code, leaving
> bare EBNF (preferably nicely formatted)?
>
> I actually got a graphical representation of the grammar from the boo
> website, but a textual representation would be much more compact.

If this is for antlr2 then you can use the -html or -docbook options
to generate a HTML or docbook XML file.

Cheers,

Ric


More information about the antlr-interest mailing list