Home | History | Annotate | Download | only in functional
      1 
      2 grammar t058rewriteAST36;
      3 options {language=JavaScript;output=AST;}
      4 tokens {TYPE;}
      5 a : b b ;
      6 b : 'int'
      7     ( ID -> ^(TYPE 'int' ID)
      8     | ID '=' INT -> ^(TYPE 'int' ID INT)
      9     )
     10     ';'
     11   ;
     12 ID : 'a'..'z'+ ;
     13 INT : '0'..'9'+;
     14 WS : (' '|'\n') {$channel=HIDDEN;} ;