Commit a094cfe6 authored by Adam Blank's avatar Adam Blank
Browse files

fix parsing error

parent 93edccad
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -143,7 +143,7 @@ def parse_e4(tokens):
elif tokens[0].token_type == TokenType.T_MINUS:
tokens.pop(0)
node = Node(TokenType.T_MINUS)
node.children = [parse_e(tokens)]
node.children = [parse_e4(tokens)]
return node
match(tokens, TokenType.T_LPAR)
expression = parse_e(tokens)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment