AnyDSL / artic

The AlteRnaTive Impala Compiler
MIT License
25 stars 6 forks source link

--print-ast does not handle escape sequences in character literals correctly #8

Closed michael-kenzel closed 2 years ago

michael-kenzel commented 2 years ago

When faced with character literals that contain escape sequences, --print-ast fails to correctly escape these escape sequences before printing them out, resulting in output that is not valid Artic.

for example:

print_char('\n');

will be turned into

print_char('
');
madmann91 commented 2 years ago

Is this fixed? Can this issue be closed?

Hugobros3 commented 2 years ago

I think so

michael-kenzel commented 2 years ago

I just ran into this again, so I'm afraid it doesn't seem to be fixed…