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

org.antlr.v4.test.runtime.templates.LexerExec.CharSetWithEscapedChar.stg Maven / Gradle / Ivy

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

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

Input() ::= "- ] "

Output() ::= <<
DASHBRACK
DASHBRACK
[@0,0:0='-',\<1>,1:0]
[@1,2:2=']',\<1>,1:2]
[@2,4:3='\',\<-1>,1:4]<\n>
>>

Errors() ::= ""

grammar(grammarName) ::= <<
lexer grammar ;
DASHBRACK : [\\-\]]+ {} ;
WS : [ \n]+ -> skip ;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy