
org.antlr.v4.test.runtime.templates.ParserExec.OrderingPredicates.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 is a regression test for antlr/antlr4#2301.
*/
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"Issue2301": {}
]
Input() ::= "POINT AT X"
Rule() ::= "expr"
Output() ::= ""
Errors() ::= ""
grammar(grammarName) ::= <<
grammar ;
constant
: 'DUMMY'
;
expr
: ID constant?
| expr AT X
| expr AT Y
;
SPACES: [ \t\r\n]+ -> skip;
AT: 'AT';
X : 'X';
Y : 'Y';
ID: [A-Z]+;
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy