aboutsummaryrefslogtreecommitdiff
path: root/crowbar_reference_compiler
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-12-28 18:01:24 -0700
committerMelody Horn <melody@boringcactus.com>2020-12-28 18:01:24 -0700
commit8bab44263e563dddf071b7c2c0faa3e3c7168e39 (patch)
treee3ebff0289f62a09a48dc3866abb4a33f3e34d98 /crowbar_reference_compiler
parent02f896ed7d1a088def0d12c7a55a6f67c034ab21 (diff)
downloadreference-compiler-8bab44263e563dddf071b7c2c0faa3e3c7168e39.tar.gz
reference-compiler-8bab44263e563dddf071b7c2c0faa3e3c7168e39.zip
implement '\n'
Diffstat (limited to 'crowbar_reference_compiler')
-rw-r--r--crowbar_reference_compiler/ssagen.py2
1 files changed, 2 insertions, 0 deletions
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 = []