All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.antlr.v4.test.runtime.templates.LexerExec.EscapeTargetStringLiteral.stg Maven / Gradle / Ivy

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