add default children function to ast elements
This commit is contained in:
parent
8b2a114826
commit
16084f83c0
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ class AST(object):
|
|||
def __invert__(self):
|
||||
return Neg(self)
|
||||
|
||||
def children(self):
|
||||
return []
|
||||
|
||||
|
||||
class _Top(AST):
|
||||
def __repr__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue