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

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

There is a newer version: 4.9.0
Show newest version
/*
 * This is a regression test for antlr/antlr4#561 "Issue with parser
 * generation in 4.2.2"
 * https://github.com/antlr/antlr4/issues/561
 */

TestType() ::= "Parser"

Options ::= [
	"Debug": false
]

Grammar ::= [
	"T": {}
]

Input() ::= "abc"

Rule() ::= "a"

Output() ::= <<
valid<\n>
>>

Errors() ::= ""

grammar(grammarName) ::= <<
grammar ;

a : {}? ID {}
  ;
ID : 'a'..'z'+ ;
WS : (' '|'\n') -> skip ;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy