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

org.antlr.v4.test.runtime.templates.ParserExec.IfIfElseNonGreedyBinding1.stg Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
TestType() ::= "Parser"

Options ::= [
	"Debug": false
]

Grammar ::= [
	"T": {}
]

Input() ::= "if y if y x else x"

Rule() ::= "start"

Output() ::= <<
if y x
if y if y x else x<\n>
>>

Errors() ::= ""

grammar(grammarName) ::= <<
grammar ;
start : statement+ ;
statement : 'x' | ifStatement;
ifStatement : 'if' 'y' statement ('else' statement)?? {

};
ID : 'a'..'z'+ ;
WS : (' '|'\n') -> channel(HIDDEN);
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy