
org.antlr.v4.test.runtime.templates.ParserExec.EOFInClosure.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.
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