added Until to AST and added empty case for addf and orf

This commit is contained in:
Marcell Vazquez-Chanlatte 2017-01-03 19:19:15 -08:00
parent 33a7ad6421
commit 39885d3fe0
4 changed files with 20 additions and 4 deletions

View file

@ -90,6 +90,14 @@ class G(ModalOp):
OP = ""
class Until(namedtuple('ModalOp', ['interval', 'arg1', 'arg2']), AST):
def __repr__(self):
return f"({self.arg1} U{self.interval} ({self.arg2}))"
def children(self):
return [self.arg1, self.arg2]
class Neg(namedtuple('Neg', ['arg']), AST):
def __repr__(self):
return f"¬({self.arg})"