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

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

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

Options ::= [
	"Debug": true
]

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

Input() ::= "34 abc"

Rule() ::= "s"

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

Errors() ::= <<
line 1:3 reportAttemptingFullContext d=0 (e), input='34abc'
line 1:0 reportContextSensitivity d=0 (e), input='34'<\n>
>>

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy