• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2grammar t058rewriteAST31;
3options {language=JavaScript;output=AST;}
4tokens {VAR;}
5a : ID (',' ID)*-> ^(VAR["var"] ID)+ ;
6type : 'int' | 'float' ;
7ID : 'a'..'z'+ ;
8INT : '0'..'9'+;
9WS : (' '|'\n') {$channel=HIDDEN;} ;