UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

29 lines (23 loc) 220 B
[type] Parser [grammar] grammar T; r : a b {<ToStringTree("$ctx"):writeln()>} ; a : A ; b : B ; A : 'A'; B : 'B'; WS : [ \r\n\t]+ -> skip ; [start] r [input] A B [output] """(r (a A) (b B)) """