[antlr-interest] Single quote and MismatchedTokenException

lars.vonwedel at bayertechnology.com lars.vonwedel at bayertechnology.com
Thu Dec 18 01:54:19 PST 2008


Hello,

I have a lexer where a quote is defined as

QUOTE   :       '\''; 

running some simple text through the lexer (just repeatedly calling 
NextToken) works fine.

However, when I run that lexer as part of an application (a Visual Studio 
Language Service in fact), the line 

   Match( '\'' );

in the generated Lexer method mQUOTE() throws an 
Antlr.Runtime.MismatchedTokenException.

Any ideas what goes wrong here and what I can try to solve that problem ?

Freundliche Grüße / Best Regards
Lars von Wedel
_________________________________________

Bayer Technology Services GmbH
BTS-PT-PD-ES
Leverkusen, E 41
Phone: +49 214 30 56456
Fax: +49 214 30 62677
E-mail: lars.vonwedel at bayertechnology.com
Web: www.bayertechnology.com

Geschäftsführer: Achim Noack
Aufsichtsratsvorsitzender: Dr. Wolfgang Plischke
Sitz der Gesellschaft: Leverkusen   |   Eintragung: Amtsgericht Köln, HRB 
49896
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081218/472f7b1a/attachment.html 


More information about the antlr-interest mailing list