VIRGIN FOREST OF JAVA
不要埋头苦干,要学习,学习,再学习。。。。。
powered by R.Zeus

class Pascal extends Parser;
options{
buildAST=true;
}

tokens
{
 // -- HQL Keyword tokens --
 ALL="all";
 }

//use  testLiterals=true to define IDENT and set buildAST=true; ,so parser can use tokens{ }
define.else not.

IDENT options { testLiterals=true; }

 : ID_START_LETTER ( ID_LETTER )*  
 ;
protected
ID_START_LETTER
    :    '_'
    |    '$'
    |    'a'..'z'
    |    '\u0080'..'\ufffe'       // HHH-558 : Allow unicode chars in identifiers
    ;
protected
ID_LETTER
    :    ID_START_LETTER
    |    '0'..'9'
    ;

posted on 2006-09-07 15:12 R.Zeus 阅读(284) 评论(0)  编辑  收藏 所属分类: ANTLR

只有注册用户登录后才能发表评论。


网站导航: