I am getting the error while generating the grammar the following code in ANTLR 3. can any one help me to correct this syntax. expr : mexpr ((PLUS|MINUS) mexpr)* -> $s1 (PLUS? MINUS? $s2)* ;