[antlr-interest] Lexer Predicates?
Foust
javafoust at gmail.com
Sat Aug 2 16:06:15 PDT 2008
Hi,
Do lexer predicates work in v3?
I am used to yacc requesting tokens from the lexer as required. But ANTLR
seems to run the lexer in its entirety and gather *all* the tokens first.
So any predicates referencing states set in the Parser are effectively
ignored.
Is there any way around this?
(Does a particular option cause this? It is strange that this preprocessing
happens for *all* tokens, even those generated by antlr when it sees rules
with literals. Surely a literal in one rule won't become a keyword that
can't be used in any other context?)
Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080802/0e15261c/attachment.html
More information about the antlr-interest
mailing list