Permalink
Browse files

Implement arithmetic comparisons. Caught by spec test.

  • Loading branch information...
Andy Chu
Andy Chu committed Aug 28, 2017
1 parent 728375d commit 53a867765ac3422b426f8220729dc3785e625b5d
Showing with 8 additions and 0 deletions.
  1. +8 −0 core/expr_eval.py
View
@@ -527,6 +527,14 @@ def Eval(self, node):
return i1 == i2
if op_id == Id.BoolBinary_ne:
return i1 != i2
if op_id == Id.BoolBinary_gt:
return i1 > i2
if op_id == Id.BoolBinary_ge:
return i1 >= i2
if op_id == Id.BoolBinary_lt:
return i1 < i2
if op_id == Id.BoolBinary_le:
return i1 <= i2
raise NotImplementedError(op_id)

0 comments on commit 53a8677

Please sign in to comment.