All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.antlr.v4.test.runtime.templates.CompositeParsers.BringInLiteralsFromDelegate.stg Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
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