[antlr-interest] Syntactic predicates in lexer
loic.queran at gmail.com
Wed Oct 14 02:26:41 PDT 2009
This is probably a very simple question, but I can't get syntactic
predicates to work in lexer rules:
: ':=' => AssignmentOperator
| ':' => KeywordMarker
What I want to achieve is to have the lexer produce an assignment operator
':=' token instead of a keyword marker ':' whenever possible.
The error is "unexpected token: ':='" at AssignmentOperatorOrKeywordMarker
Any help would be welcomed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest