@mike-lischke/antlr-tgen
Version:
A generator for antlr-ng runtime test cases
16 lines (12 loc) • 307 B
Plain Text
[notes]
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
[type]
Lexer
[grammar]
lexer grammar L;
ACTION_WITH_DOLLAR: '$ACTION';
[output]
"""[@0,0:-1='<EOF>',<-1>,1:0]
"""