
org.antlr.v4.test.runtime.templates.LexerExec.EscapeTargetStringLiteral.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!
/*
* This is a regression test for antlr/antlr4#2709 "PHP target generates
* invalid output when $ is used as part of the literal in lexer rule"
* https://github.com/antlr/antlr4/issues/2709
*/
TestType() ::= "Lexer"
Grammar ::= [
"L": {}
]
Input() ::= ""
Output() ::= <<
[@0,0:-1='\',\<-1>,1:0]<\n>
>>
Errors() ::= ""
grammar(grammarName) ::= <<
lexer grammar ;
ACTION_WITH_DOLLAR: '$ACTION';
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy