> everything > : quote | backslash | mul | plus | minus | binaryString | > stringLiteral | exponent > ; Forgot the parenthesis around the everything rule: everything : ( quote | backslash | mul | plus | minus | binaryString | stringLiteral | exponent )* ;