[antlr-interest] Trouble with a string literal
mzukowski at yci.com
mzukowski at yci.com
Tue May 13 12:03:32 PDT 2003
You need to set the charVocabulary option.
Monty
-----Original Message-----
From: Paul J. Lucas [mailto:dude at darkfigure.org]
Sent: Tuesday, May 13, 2003 11:22 AM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Trouble with a string literal
I have a lexer rule like:
STRING_LITERAL : "'" ( ~'\'' )* "'" | '"' ( ~'"' )* '"' ;
That, when lexing text like:
"hello"
stops on the 'h' and complains that it's an unexpected
character.
The thing is that I have another lexer with the same
STRING_LITERAL rule that works fine. I don't understand what
the difference could be. I looked at the generated Java code
and it looks the same to me.
Any ide of what to check?
- Paul
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list