
org.antlr.v4.test.runtime.templates.LexerExec.PositionAdjustingLexer.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.
The newest version!
TestType() ::= "Lexer"
Grammar ::= [
"PositionAdjustingLexer": {}
]
Input() ::= <<
tokens
tokens {
notLabel
label1 =
label2 +=
notLabel<\n>
>>
TOKENS() ::= "\<4>"
LABEL() ::= "\<5>"
IDENTIFIER() ::= "\<6>"
Output() ::= <<
[@0,0:5='tokens',,1:0]
[@1,7:12='tokens',,2:0]
[@2,14:14='{',\<3>,2:7]
[@3,16:23='notLabel',,3:0]
[@4,25:30='label1',
© 2015 - 2025 Weber Informatics LLC | Privacy Policy