[antlr-interest] testing subrules and noviable alt upon eof
Brent Yates
brent.yates at gmail.com
Wed Jun 4 08:40:10 PDT 2008
Felix,
I believe that this is a problem with the DFA's produced for rules which end
in conditional alternates. The DFA's fire the exception if a token is seen
that is not in the expected set for the grammar as a whole. This makes
calling the rules in isolation a problem. Dr. Parr is aware of the issue.
The only work around I know of right now is to add "Test" rules for the
problem cases which end in EOF.
Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080604/e604ab88/attachment.html
More information about the antlr-interest
mailing list