[antlr-interest] lexical nondeterminism between IDENT & LABEL

Monty Zukowski monty at codetransform.com
Wed Nov 3 12:13:46 PST 2004


On Nov 3, 2004, at 11:54 AM, Paul J. Lucas wrote:

>
> On Wed, 3 Nov 2004, Monty Zukowski wrote:
>
>> IDENT
>>    	: 	('a'..'z' | 'A'..'Z')
>>    		('a'..'z' | 'A'..'Z' | '0'..'9')*
>>    		':' {$setType(LABEL);}
>> 	;
>
> 	Shouldn't that be:
>
>
> 		IDENT
> 			: 	('a'..'z' | 'A'..'Z')
> 				('a'..'z' | 'A'..'Z' | '0'..'9')*
> 				(':' {$setType(LABEL);} )?
> 			;
>
> 	?

Absolutely!

Thanks,

Monty



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list