[antlr-interest] newbi question : operator + any
marco.laponder at kewill.com
Mon Feb 6 04:30:16 PST 2012
I am trying to setup a very simple grammar, ik should be able to handle
So I tried:
COMPARE : '>';
ANYTHING : (.)+;
testExpression : COMPARE ANYTHING;
but when generating java resources it gave me the error:
"The following alternatives can never be matched: 1"
The problems seems to be the ANYTHING, so how should I define a grammar
to be able to handle this ?
More information about the antlr-interest