[antlr-interest] Could anyone give an example definition of isType(IToken itk)

=?gb2312?q?=CB=EF=BC=CD=B8=D5=20Jigang=20(Robert)=20Sun?= sunjigang1965 at yahoo.com.cn
Thu Feb 23 07:44:22 PST 2006


Could anyone give an example definition of
isType(IToken itk) in 

http://www.antlr.org/doc/glossary.html

decl     : typename ID SEMICOLON
         | ID ID SEMICOLON
         ;
typename : {isType(LT(1))}? ID
         ;

I think typename() is used to declare user defined
variable type, can be any identifier names, not
predifined types. 

Cheers!

Jigang



		
___________________________________________________________
 
ÇéÈ˽ڣ¬ÓÃÑÅ»¢ÓÊÏäËÍõ¹å£¡ 



More information about the antlr-interest mailing list