Expand description
Standard and CommunityModules operators of the core, by TLC’s override
table (dive_ir::StdOp).
The compiler asks implements for a standard operator it does not
compile itself and emits Node::Lib; the evaluator evaluates
the arguments (normalized) and calls call. Semantics, error points
and error classes are dive-eval’s (its community and std
modules), which follow TLC’s Java overrides. Where dive-eval refuses a case, so
does the core.
Every operator here is pure except Print and PrintT (effectful),
whose calls the compiler never folds, memoizes or skips.
Structs§
- OpFn
- An operator argument, compiled: its parameters’ slots and its body.
Enums§
- Ho
- An argument of a higher-order operator at the call.
Functions§
- call
- Calls
opon normalized arguments. - call_ho
- Calls the higher-order operator
op. - effectful
- Whether a call of
ophas an effect TLC performs once per evaluation (output, registers, randomness): such a call is never folded or memoized. Of the operators implemented here,PrintandPrintT. - higher_
order - Whether the core implements
ophere as an operator with operator arguments (Node::LibHo). - implements
- Whether the core implements
ophere. - op_
arity - The arity of argument
iof a higher-order operator when it is an operator argument;Nonefor a value argument. - takes_
op_ value - Whether
optakes its operator argument as TLC’sOpValue, which TLC cannot apply when the operator’s body is a constant: the compiler refuses such a call.