org.antlr.v4.test.runtime.templates.LeftRecursion.SemPredFailOption.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.
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"T": {}
]
Input() ::= "x y z"
Rule() ::= "s"
Output() ::= <<
(s (a (a x) y z))<\n>
>>
Errors() ::= <<
line 1:4 rule a custom message<\n>
>>
grammar(grammarName) ::= <<
grammar ;
s @after {} : a ;
a : a ID {}?\
| ID
;
ID : 'a'..'z'+ ;
WS : (' '|'\n') -> skip ;
>>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy