UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

27 lines (21 loc) 188 B
[type] Parser [grammar] grammar T; s @init { <BuildParseTrees()> } @after { <ToStringTree("$r.ctx"):writeln()> } : r=a ; a : 'x' | 'y' ; [start] s [input] y [output] """(a y) """