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

org.antlr.v4.test.runtime.templates.SemPredEvalLexer.IDnotEnum.stg Maven / Gradle / Ivy

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

Options ::= [
	"ShowDFA": true
]

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

Input() ::= "enum abc enum"

Output() ::= <<
[@0,0:3='enum',\<2>,1:0]
[@1,5:7='abc',\<2>,1:5]
[@2,9:12='enum',\<2>,1:9]
[@3,13:12='\',\<-1>,1:13]

s0-' '->:s2=>3<\n>
>>

Errors() ::= ""

grammar(grammarName) ::= <<
lexer grammar ;
ENUM : [a-z]+  {  }? ;
ID : [a-z]+  ;
WS : (' '|'\n') -> skip;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy