org.antlr.v4.test.runtime.templates.LexerExec.CharSetRange.stg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-testsuite Show documentation
Show all versions of runtime-testsuite Show documentation
A collection of tests for ANTLR 4 Runtime libraries.
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