Home | History | Annotate | Download | only in functional
      1 
      2 grammar t058rewriteAST45;
      3 options {language=JavaScript;output=AST;}
      4 tokens {MOD;}
      5 a : modifier? type ID (',' ID)* ';' -> ^(type ^(MOD modifier)? ID)+ ;
      6 type : 'int' ;
      7 modifier : 'public' ;
      8 ID : 'a'..'z'+ ;
      9 WS : (' '|'\n') {$channel=HIDDEN;} ;