[antlr-interest] Need help in understanding DFA prediction
Sven Prevrhal
sprevrha at gmail.com
Sun Nov 9 22:07:59 PST 2008
Hello and thanks Gurus:
I have a Lexer rule
CATEGORYSTART
: SPACE* 'Categories:';
and the call to DFA.Predict which originates from Lexer.mTokens() predicts
it for input like "Cake", and then of course the call to mCATEGORYSTART() in
the switch statement inside mTokens()after the DFA.Predict call returns
issues an error.
Sooo, how do I get DFA.Predict to predict the WORD rule for "Cake" instead
of CATEGORYSTART?
Here's my WORD rule:
WORD : LETTER+;
Thank you and cheers,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081109/d7980f27/attachment.html
More information about the antlr-interest
mailing list