antlr/tool/playground/T.g

5 lines
91 B
Plaintext

grammar T;
stat : ifstat | 'x';
ifstat : 'if' stat ('else' stat)?;
WS : [ \n\t]+ -> skip ;