add rshift (>>) : SLT x Int -> STL as next(self, i)
This commit is contained in:
parent
8f4e511326
commit
5b7fea3953
2 changed files with 11 additions and 3 deletions
10
stl/ast.py
10
stl/ast.py
|
|
@ -37,6 +37,16 @@ class AST(object):
|
|||
return self.arg
|
||||
return Neg(self)
|
||||
|
||||
def __rshift__(self, t):
|
||||
if self in (BOT, TOP):
|
||||
return self
|
||||
|
||||
phi = self
|
||||
for _ in range(t):
|
||||
phi = Next(phi)
|
||||
|
||||
return phi
|
||||
|
||||
@property
|
||||
def children(self):
|
||||
return tuple()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue