
org.antlr.v4.test.runtime.templates.ParserExec.PredictionIssue334.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.
/**
* This is a regression test for antlr/antlr4#334 "BailErrorStrategy: bails
* out on proper input".
* https://github.com/antlr/antlr4/issues/334
*/
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"T": {}
]
Input() ::= "a"
Rule() ::= "file_"
Output() ::= <<
(file_ (item a) \)<\n>
>>
Errors() ::= ""
grammar(grammarName) ::= <<
grammar ;
file_ @init{
}
@after {
}
: item (SEMICOLON item)* SEMICOLON? EOF ;
item : A B?;
SEMICOLON: ';';
A : 'a'|'A';
B : 'b'|'B';
WS : [ \r\t\n]+ -> skip;
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy