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