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

org.antlr.v4.test.runtime.templates.FullContextParsing.AmbigYieldsCtxSensitiveDFA.stg Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
TestType() ::= "Parser"

Options ::= [
	"Debug": true
]

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

Input() ::= "abc"

Rule() ::= "s"

Output() ::= <<
Decision 0:
s0-ID->:s1=>1<\n>
>>

Errors() ::= <<
line 1:0 reportAmbiguity d=0 (s): ambigAlts={1, 2}, input='abc'<\n>
>>

grammar(grammarName) ::= <<
grammar ;
s
@init {}
@after {}
	: ID | ID {} ;
ID : 'a'..'z'+;
WS : (' '|'\t'|'\n')+ -> skip ;
>>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy