[antlr-interest] line 0:-1 mismatched input '<EOF>' expecting PACKAGE

YINGAnnie yimm8369 at hotmail.com
Tue Apr 7 15:18:59 PDT 2009


 

 

Hi all,

 

Everytime when I run the program, I got this error. Here is the grammar of packageDeclaration


packageDeclaration
@init {
    tokens = (ASTokenRewriteStream)input; 
    Token start = input.LT(1);
}

    :   PACKAGE   type? '{' packageElement*  '}'                                       -> ^(PACKAGE_DECL type? packageElement* )
    ;

 

 

Is there something wrong?

 

A

_________________________________________________________________
Live Search视频搜索,快速检索视频的利器!
http://www.live.com/?scope=video
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090408/c12fed79/attachment.html 


More information about the antlr-interest mailing list