[antlr-interest] [Q] String rules

lemoine at multimania.com lemoine at multimania.com
Mon Oct 1 23:47:33 PDT 2001


Hi,
I just want to merge these two rules in one rule but I don't succeed 
to do it
Any help would be greatly appreciated. 

ALNUM	:	'a'..'z'|'A'..'Z'|'0'..'9'
	;


	(ALNUM|'"'!) (ALNUM)* ('"'!|)

	(ALNUM|'"'!) (~(' '|'\t'|'\r'|'\n'))* ('"'!|)
       
Thanks in advance


Hervé


 

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



More information about the antlr-interest mailing list