UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

30 lines (23 loc) 249 B
[type] Parser [grammar] grammar T; <ImportRuleInvocationStack()> s @init { <BuildParseTrees()> } @after { <ToStringTree("$r.ctx"):writeln()> } : r=a ; a : 'x' { <RuleInvocationStack():writeln()> } ; [start] s [input] x [output] [a, s] (a x)