Skip to content

Commit 0cfd446

Browse files
smartycopeLonami
authored andcommitted
None now compiles to null instead of @null
1 parent d461bd0 commit 0cfd446

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyndustric/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ def as_value(self, node, output: str = None):
11471147
elif isinstance(node.value, (int, float)):
11481148
return str(node.value)
11491149
elif node.value is None:
1150-
return "@null"
1150+
return "null"
11511151
elif isinstance(node.value, str):
11521152
if (
11531153
len(str(node.value)) == 7 or len(str(node.value)) == 9

test_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ def test_complex_compare():
11611161
@masm_test
11621162
def test_None():
11631163
"""
1164-
set foo @null
1164+
set foo null
11651165
"""
11661166
foo = None
11671167

0 commit comments

Comments
 (0)