Home | History | Annotate | Download | only in functional
      1 
      2 grammar t058rewriteAST55;
      3 options {language=JavaScript;output=AST;}
      4 tokens {BLOCK;}
      5 a : A A b=B B b=B c+=C C c+=C D {s=$D.text} -> A+ B+ C+ D ;
      6 type : 'int' | 'float' ;
      7 A : 'a' ;
      8 B : 'b' ;
      9 C : 'c' ;
     10 D : 'd' ;
     11 WS : (' '|'\n') {$channel=HIDDEN;} ;