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