org.antlr.v4.test.runtime.templates.LexerExec.NonGreedyClosure.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() ::= <<
//blah
//blah<\n>
>>
Output() ::= <<
[@0,0:6='//blah\n',\<1>,1:0]
[@1,7:13='//blah\n',\<1>,2:0]
[@2,14:13='\',\<-1>,3:0]<\n>
>>
Errors() ::= ""
grammar(grammarName) ::= <<
lexer grammar ;
CMT : '//' .*? '\n' CMT*?;
WS : (' '|'\t')+;
>>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy