BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
586 stars 165 forks source link

Java/ANTLR does not lex escape sequences in String #451

Closed andreasabel closed 1 year ago

andreasabel commented 1 year ago

The lexer generated for String by the Java/ANTLR backend does not translate escape sequences, e.g. \n is not translated to a newline character but it remains backslash followed by n.

ATTN: @gapag

andreasabel commented 1 year ago

Looks like getStringFromGrammarStringLiteral does not do the job.