UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

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