[antlr-interest] How to do "not" in a syntactic predicate?

Naveen Chawla naveen.chwl at googlemail.com
Mon Oct 5 07:02:19 PDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091005/3dac910f/attachment.html 


More information about the antlr-interest mailing list