[antlr-interest] Problem with this antlr grammar.
Monty Zukowski
monty at codetransform.com
Tue Mar 1 07:32:57 PST 2005
doctlo-antlr at yahoo.com wrote:
> On Mon, 28 Feb 2005 23:38:20 -0800, you wrote:
>
>
>>DIGIT, UPPER, LOWER, OPENB, and CLOSEB need to be "protected" so that they
>>can be used inside other lexer rules. What your grammar encounters is OPENP
>>SEMI UPPER.
>>
>>--Loring
>>
>
> Thanks. I have one more question.
> If I use this as input:
> (;GM[1-1])
>
> I get the error message:
> exception: line 1:7: expecting ']', found '-'
>
> which if I interpret correctly means that - is not part of ~']'.
> Basically I want to include any character that is not a ], but am
Take a look in the manual about the charVocabulary option, you need to
set it.
Monty
More information about the antlr-interest
mailing list