org.antlr.v4.test.runtime.templates.SemPredEvalParser.AtomWithClosureInTranslatedLRRule.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#196
* "element+ in expression grammar doesn't parse properly"
* https://github.com/antlr/antlr4/issues/196
*/
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"T": {}
]
Input() ::= "a+b+a"
Rule() ::= "start"
Output() ::= ""
Errors() ::= ""
grammar(grammarName) ::= <<
grammar ;
start : e[0] EOF;
e[ _p]
: ( 'a' | 'b'+ ) ( {3 >= $_p}? '+' e[4] )*
;
>>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy