[antlr-interest] Examples of semantic predicates with ...
James Ladd
james_ladd at hotmail.com
Mon Apr 4 22:09:26 PDT 2011
Hi Sam,
When I dealt with semantic predicates I put the unique prefix part of the rule into a predicate.
I put the predicate on those rules that ANTLR said were ambiguous.
For example:
| (binarySelector) => binarySelector variableName
| (MINUS MINUS) => specialBinarySelector variableName
I found out most of the information on predicates by googling "ANTLR Semantic Predicates"
Rgs, James.
More information about the antlr-interest
mailing list