[antlr-interest] how to make different variable and others

Peizhao peizhao at itee.uq.edu.au
Mon Aug 21 22:06:03 PDT 2006


Hi,

I have a file which will contain the followings:

ABSTRACT a short description about what this document is about
ABSTRACT this description is not output to users.

these ABSTRACT statements are conflicting with my variable name
definition. 


ABSTRACT_DESC	: "ABSTRACT " ANYSTRING;
VARIABLE_NAME	:	('a'..'z'|'A'..'Z') ('a'..'z'|'A'..'Z'|'0'..'9'|
SPECIALCHAR)* ;

therefore, my question is that how can i make them different.

-- 
Regards;

Peizhao



More information about the antlr-interest mailing list