org.antlr.v4.test.runtime.templates.CompositeParsers.BringInLiteralsFromDelegate.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.
TestType() ::= "CompositeParser"
Grammar ::= [
"M": {}
]
SlaveGrammars ::= [
"S": {}
]
Rule() ::= "s"
Input() ::= "=a"
Output() ::= <<
S.a<\n>
>>
Errors() ::= ""
masterGrammar(grammarName, slaveGrammarName) ::= <<
grammar M;
import S;
s : a ;
WS : (' '|'\n') -> skip ;
>>
slaveGrammar(grammarName) ::= <<
parser grammar S;
a : '=' 'a' {};
>>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy