Home | History | Annotate | Download | only in functional
      1 
      2 grammar t058rewriteAST37;
      3 options {language=JavaScript;output=AST;}
      4 tokens {BLOCK;}
      5 a : b b ;
      6 b : ID ( ID (last=ID -> $last)+ ) ';' // get last ID
      7   | INT // should still get auto AST construction
      8   ;
      9 ID : 'a'..'z'+ ;
     10 INT : '0'..'9'+;
     11 WS : (' '|'\n') {$channel=HIDDEN;} ;