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

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

The newest version!
/**
 * This test ensures that {@link ParserATNSimulator} does not produce a
 * {@link StackOverflowError} when it encounters an {@code EOF} transition
 * inside a closure.
 */

TestType() ::= "Parser"

Options ::= [
	"Debug": false
]

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

Input() ::= "x"

Rule() ::= "prog"

Output() ::= ""

Errors() ::= ""

grammar(grammarName) ::= <<
grammar ;
prog : stat EOF;
stat : 'x' ('y' | EOF)*?;
>>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy