UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

25 lines (18 loc) 247 B
[type] CompositeParser [grammar] grammar M; import S; s : a ; B : 'b' ; // defines B from inherited token space WS : (' '|'\n') -> skip ; [slaveGrammar] parser grammar S; a : B {<writeln("\"S.a\"")>}; [start] s [input] b [output] """S.a """