jacopy.Atom¶
- class jacopy.Atom¶
Bases:
ExprAn expression with no children.
- __init__()¶
Methods
__init__()clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.replace_at(path, new)Return a new tree with
newspliced atpath.substitute_atom(dummy, target)Return
selfwith every occurrence ofdummyreplaced bytarget.walk()Pre-order traversal yielding
selffollowed by descendants throughchildrenonly.Attributes
Tuple of immediate children.
is_atom