org.antlr.v4.test.runtime.templates.Sets.SeqDoesNotBecomeSet.stg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-testsuite Show documentation
Show all versions of runtime-testsuite Show documentation
A collection of tests for ANTLR 4 Runtime libraries.
// this must return A not I to the parser; calling a nonfragment rule
// from a nonfragment rule does not set the overall token.
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"T": {}
]
Input() ::= "34"
Rule() ::= "a"
Output() ::= <<
34<\n>
>>
Errors() ::= ""
grammar(grammarName) ::= <<
grammar ;
a : C {} ;
fragment A : '1' | '2';
fragment B : '3' '4';
C : A | B;
>>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy