[antlr-interest] LPG WAS Retaining comments

Olivier Lefevre lefevrol at yahoo.com
Thu Mar 20 12:26:10 PDT 2008


Andy Tripp wrote:
> No, ANTLR will build you an AST when you specify "output=AST", even if
> you don't give it any instructions for doing so (putting ^ chars in
> your grammar). It's just that the "tree" will degenerate/flat.

Oh, OK. It had never occurred to me to try that...

-- O.L.



More information about the antlr-interest mailing list