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

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

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

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

Input() ::= "34<\n> 34 a2 abc <\n>   "

Output() ::= <<
I
I
ID
ID
[@0,0:1='34',\<1>,1:0]
[@1,4:5='34',\<1>,2:1]
[@2,7:8='a2',\<2>,2:4]
[@3,10:12='abc',\<2>,2:7]
[@4,18:17='\',\<-1>,3:3]<\n>
>>

Errors() ::= ""

grammar(grammarName) ::= <<
lexer grammar ;
I : [0-9]+ {} ;
ID : [a-zA-Z] [a-zA-Z0-9]* {} ;
WS : [ \n\u0009\r]+ -> skip ;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy