BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
578 stars 163 forks source link

Ocaml backends do not lex escape sequences in Char #452

Closed andreasabel closed 11 months ago

andreasabel commented 11 months ago

unescapeInitTail is only called for String, not for `Char: https://github.com/BNFC/bnfc/blob/b1ecdb74ed048399c36ec67ba36b5efb1682a1fd/source/src/BNFC/Backend/OCaml/CFtoOCamlLex.hs#L195-L200 This causes e.g. a tab character to be lexed as backslash.