[antlr-interest] Examples of semantic predicates with ...

Sam Harwell sharwell at pixelminegames.com
Tue Apr 5 04:04:43 PDT 2011


Hi James,

In this case, I'm dealing with semantic predicates of the form {...}? and
gated semantic predicates of the form {...}?=>. The ones you're using in
this case are syntactic predicates, which aren't processed by the Boolean
logic algorithm I've been working on recently.

Sam

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of James Ladd
Sent: Tuesday, April 05, 2011 12:09 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Examples of semantic predicates with ...


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. 

 		 	   		  

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list