Try something like:

 

(a)=> ((b)=>/*nothing*/ | a)

 

I remember facing similar problem. I guess you can't use '~' in a syntactic
predicate.

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Naveen Chawla
Sent: Monday, October 05, 2009 7:32 PM
To: [email protected]
Subject: [antlr-interest] How to do "not" in a syntactic predicate?

 

If I do

 

(a ~b)=> a

 

meaning "take this alternative if you encounter an a when not followed by b"

 

I get a syntax error: unexpected token b

Is it the right syntax to use '~'?

 

N


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to