[antlr-interest] Optional tokens
hammett
hammett at uol.com.br
Sun May 22 23:52:32 PDT 2005
Hiya!
> I will repeat John's question. If a NEWLINE can occur anywhere, where does
> a statement end? If it can only occur (and must occur) at a statement end
> then defactoring and putting it at the end of each of your statement types
> will should solve your problem.
Allow me to rephrase my problem: a NEWLINE is meaningless anywhere but at
statements end, which means that it must be ignored as a token anywhere but
at statements end.
I believe aspl VBScript grammar solved that nicely. Gonna use their
approach.
Thanks
--
Cheers,
hammett
http://www.castleproject.org/~hammett
More information about the antlr-interest
mailing list