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

Loring Craymer lgcraymer at yahoo.com
Thu Oct 19 16:57:52 PDT 2006


There is an ANTLR 2 "pretty printer" that I posted to
the "sharing" section of antlr.org a few months ago. 
I never got around to testing all of the flags, but it
will strip out actions if you ask it to.

--Loring

--- 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.
> 
> -- 
> - David
> http://qwertie.net
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the antlr-interest mailing list