[antlr-interest] how to deal with optional parameters in ast
Dave Cramer
davec at postgresintl.com
Tue Mar 27 07:56:39 PDT 2007
I have a rule which is
WAKEUP expr* NEWLINE -> ^(WAKEUP expr*)
if the input is
WAKEUP NEWLINE
the ast will just be ^ WAKEUP
What's the right way to deal with this ?
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070327/8104964c/attachment-0001.html
More information about the antlr-interest
mailing list