tags:

views:

21

answers:

1
+1  A: 

A token must be unique. You can, however, use the same token for several purposes in you syntax (like the unary and binary minus in Java).

I do not know the exact syntax of your environment, but something like changing the following two clauses

AND : ( 'AND' | '&' | 'EN' ) ;

and

andexpr : orexpr ((AND^ | PLUS^) orexpr)*;

would probably solve this issue.

Frank
Can you give me more concrete pointers on how to solve this? I don't know what phrase / concept i should start looking for in the documentation.
WardB
I edited my answer and added an example how I would change your definition.
Frank
Thanx for your help!
WardB