[antlr-interest] Problem with this antlr grammar.
doctlo-antlr at yahoo.com
doctlo-antlr at yahoo.com
Tue Mar 1 12:43:08 PST 2005
On Tue, 01 Mar 2005 10:32:57 -0500, you wrote:
>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.
>
OK. Is there a way of specifying "all characters in UTF-8" or UTF-16
etc. or do I have to do it by hand?
More information about the antlr-interest
mailing list