[antlr-interest] switching lexer while parsing

rmsanjivp <rmsanjivp at yahoo.com> rmsanjivp at yahoo.com
Tue Jan 21 22:18:59 PST 2003


Hi!

can I switch lexer depending upon the context? I have a problem 
where in one mode a/b is to be treated as ID DIVIDE ID whereas in 
another place it must be treated as mere ID. I was thinking or 
having something that will switch the lexer while parsing depending 
upon the context.

Is it possible?

Thanks,
Sanjiv


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list