Home | History | Annotate | Download | only in functional
      1 
      2 grammar t058rewriteAST33;
      3 options {language=JavaScript;output=AST;}
      4 tokens {BLOCK;}
      5 a : lc='{' ID+ '}' -> ^(BLOCK[$lc,"block"] ID+) ;
      6 type : 'int' | 'float' ;
      7 ID : 'a'..'z'+ ;
      8 INT : '0'..'9'+;
      9 WS : (' '|'\n') {$channel=HIDDEN;} ;