[antlr-interest] How to make stop matching in one lexical rule and start in another??
rmsanjivp
rmsanjivp at yahoo.com
Wed Jul 16 18:41:24 PDT 2003
Hi!
I want to match a character '!' in both identifier and operator. How
can I make antrl stop matching in ID rule and start matching the OP
rule?
ID: ('a'..'z' | 'A'..'Z')('a'..'z' | 'A'..'Z' | '!')*;
OP: '!' '=';
I want that if the input is like a!!!=2 then a!! comes as ID.
Can anyone tell me how to do that?
Thanks,
Sanjiv
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list