[antlr-interest] Constants in AST

Brisard, Fred D Fred.Brisard at ca.com
Mon Jul 28 12:18:50 PDT 2008


Is there a simple way to insert constants into an AST?  It seems like
the operators require anything being inserted into an AST node to be
either a lexical token or a parser rule.  

I just want to put a simple constant in a node so that I can search on
it later.  Maybe that's a bad idea so it isn't supported.

I did notice that I could define fragment lexical tokens that could be
inserted.

Thanks for any clarification or suggestions.

Regards, Fred

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080728/52bca285/attachment.html 


More information about the antlr-interest mailing list