org.antlr.v4.test.runtime.templates.LexerExec.NonGreedyTermination1.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() ::= <%
"hi""mom"
%>
Output() ::= <<
[@0,0:3='"hi"',\<1>,1:0]
[@1,4:8='"mom"',\<1>,1:4]
[@2,9:8='\',\<-1>,1:9]<\n>
>>
Errors() ::= ""
grammar(grammarName) ::= <<
lexer grammar ;
STRING : '"' ('""' | .)*? '"';
>>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy