UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

21 lines (15 loc) 171 B
[type] Parser [grammar] grammar T; a : C {<InputText():writeln()>} ; fragment A : '1' | '2'; fragment B : '3' '4'; C : A | B; [start] a [input] 34 [output] """34 """