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

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to