org.antlr.v4.test.runtime.templates.LexerExec.ActionPlacement.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() ::= <%
ab
%>
Output() ::= <<
stuff0:
stuff1: a
stuff2: ab
ab
[@0,0:1='ab',\<1>,1:0]
[@1,2:1='\',\<-1>,1:2]<\n>
>>
Errors() ::= ""
grammar(grammarName) ::= <<
lexer grammar ;
I : ({} 'a'
| {}
'a' {}
'b' {})
{} ;
WS : (' '|'\n') -> skip ;
J : .;
>>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy