All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.antlr.v4.test.runtime.templates.ParserExec.OrderingPredicates.stg Maven / Gradle / Ivy

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