term
CallTerm
dataclass
A tree term which applies the operator computed by the expression op to args.
Source code in src/finch/symbolic/term.py
98 99 100 101 102 103 104 | |
LiteralTerm
dataclass
Term
Source code in src/finch/symbolic/term.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
head()
abstractmethod
Return the head type of the S-expression.
Source code in src/finch/symbolic/term.py
54 55 56 57 | |
make_term(head, *children)
abstractmethod
classmethod
Construct a new term in the same family of terms with the given head type and
children. This function should satisfy
x == x.make_term(x.head(), *x.children)
Source code in src/finch/symbolic/term.py
59 60 61 62 63 64 65 66 67 | |
TermTree
dataclass
Source code in src/finch/symbolic/term.py
80 81 82 83 84 85 86 | |
children
abstractmethod
property
Return the children (AKA tail) of the S-expression.