[antlr-interest] Selectively disabling lexer rules
Martin Traverso
mtraverso at gmail.com
Mon Jan 2 18:50:28 PST 2006
>
> Hmm...I wonder if you try the other way:
>
> CHAR_LIT : {Character.isIdentifierChar(input.LA (3))}? '?' ~' ' ;
>
> QUESTION : '?' ;
>
I guess you meant !Character.isIdentifierChar(...), right?
But anyway, that won't prevent CHAR_LIT from matching in the expression "a
?b : c", will it?
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060102/eef21335/attachment.html
More information about the antlr-interest
mailing list