blob: d651c022feb53ea411b94fcf67dfe1f88e0bd04d [file] [log] [blame] [edit]
lexer grammar calc;
ID: 'a' ..'z'+;
INT: '0' ..'9'+;
SEMI: ';';
PLUS: '+';
MUL: '*';
ASSIGN: '=';
WS: ' '+;