renaming
This commit is contained in:
@ -7,7 +7,6 @@ from interpreter import Interpreter
|
|||||||
|
|
||||||
def sugar_test_helper(expr):
|
def sugar_test_helper(expr):
|
||||||
ast = parse("x = " + expr)
|
ast = parse("x = " + expr)
|
||||||
print(ast)
|
|
||||||
interpreter = Interpreter()
|
interpreter = Interpreter()
|
||||||
w_module = interpreter.make_module()
|
w_module = interpreter.make_module()
|
||||||
interpreter.eval(ast, w_module)
|
interpreter.eval(ast, w_module)
|
@ -11,4 +11,5 @@ def test_parsing():
|
|||||||
|
|
||||||
|
|
||||||
def test_parsing_parenthesis():
|
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))")
|
Reference in New Issue
Block a user