dcsimg
Can't get Antlr to recognize IDs of length 1.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   James_soper
Posted On:   Monday, October 6, 2008 01:02 AM

I can't get my grammar to recognize IDs of length 1. Greater than one is fine. It gives me an Mismatch error whenever the ID is of length one though.

			
ID
: ((('a'..'z') | ('_')) ('0'..'9')*)+
;


That should be an ID that starts with either a a-z or _ and can contain #s

Thanks.
About | Sitemap | Contact