UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

32 lines (25 loc) 262 B
[type] Parser [grammar] grammar T; r : (a b | a) EOF {<ToStringTree("$ctx"):writeln()>} ; a : X Y? ; b : Y ; X: 'X'; Y: 'Y'; WS : [ \r\n\t]+ -> skip ; [start] r [input] X Y [output] """(r (a X) (b Y) <EOF>) """ [flags] predictionMode=LL