Skip to content

Commit

Permalink
capture != SemLiterals
Browse files Browse the repository at this point in the history
  • Loading branch information
EasyArray committed Mar 20, 2022
1 parent 6b13aa5 commit eccfe10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phosphorus/semval.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def __invert__(self): return SpanVal("¬" + self)
def __eq__(self,other):
return opcode(self, "==", other)

def __ne__(self,other):
return opcode(self, "!=", other)

# Since SemLiterals do not have a known value, we don't want them
# short-circuiting boolean "and" and "or" in python.
# We use & and | instead
Expand Down

0 comments on commit eccfe10

Please sign in to comment.