[antlr-interest] switching lexer while parsing
mzukowski at yci.com
mzukowski at yci.com
Wed Jan 22 08:21:26 PST 2003
No. You can't switch the lexer while parsing. You have to figure out how
to handle it in the lexer or parser alone.
Monty
-----Original Message-----
From: rmsanjivp <rmsanjivp at yahoo.com> [mailto:rmsanjivp at yahoo.com]
Sent: Tuesday, January 21, 2003 10:19 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] switching lexer while parsing
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/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list