@mike-lischke/antlr-tgen
Version:
A generator for antlr-ng runtime test cases
24 lines (19 loc) • 334 B
Plain Text
[notes]
Regression test for "Getter for context is not a list when it should be".
https://github.com/antlr/antlr4/issues/19
[type]
Parser
[grammar]
grammar T;
<DeclareContextListGettersFunction()>
}
s : (a | b)+;
a : 'a' {<write("\"a\"")>};
b : 'b' {<write("\"b\"")>};
[start]
s
[input]
abab
[output]
"""abab"""