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

org.antlr.v4.test.runtime.templates.Sets.SeqDoesNotBecomeSet.stg Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
// this must return A not I to the parser; calling a nonfragment rule
// from a nonfragment rule does not set the overall token.

TestType() ::= "Parser"

Options ::= [
	"Debug": false
]

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

Input() ::= "34"

Rule() ::= "a"

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

Errors() ::= ""

grammar(grammarName) ::= <<
grammar ;
a : C {} ;
fragment A : '1' | '2';
fragment B : '3' '4';
C : A | B;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy