From 8bab44263e563dddf071b7c2c0faa3e3c7168e39 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 28 Dec 2020 18:01:24 -0700 Subject: implement '\n' --- crowbar_reference_compiler/ssagen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crowbar_reference_compiler/ssagen.py b/crowbar_reference_compiler/ssagen.py index c71ddc4..8221e71 100644 --- a/crowbar_reference_compiler/ssagen.py +++ b/crowbar_reference_compiler/ssagen.py @@ -112,6 +112,8 @@ def _(target: ConstantExpression, context: CompileContext) -> SsaResult: value = ord(value) elif value == r'\0': value = 0 + elif value == r'\n': + value = ord('\n') else: raise NotImplementedError('escape sequence ' + value) data = [] -- cgit v1.2.3