1
This commit is contained in:
Christoph
2021-08-13 11:59:38 +02:00
parent 57447098b3
commit c91f3f89e7
7 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,6 @@ from interpreter import Interpreter
def sugar_test_helper(expr):
ast = parse("x = " + expr)
print(ast)
interpreter = Interpreter()
w_module = interpreter.make_module()
interpreter.eval(ast, w_module)

View File

@ -11,4 +11,5 @@ def test_parsing():
def test_parsing_parenthesis():
pass
assert parse("(1 + 2)") == parse("1 $int_add(2)")
assert parse("1 * (2 + 3)") == parse("1 $int_mul(2 $int_add(3))")