Skip to content
Snippets Groups Projects
Commit 5a63082d authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix parsing of negations.

parent 0e430a6d
No related branches found
No related tags found
Loading
......@@ -73,7 +73,7 @@ def parse(expr_str):
if pstate.is_next(_minus):
pstate.advance()
return primitives.Negation(parse_expression(pstate, _PREC_UNARY_MINUS))
return -parse_expression(pstate, _PREC_UNARY_MINUS)
if pstate.is_next(_openpar):
pstate.advance()
left_exp = parse_expression(pstate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment