AngouriMath
SetOperator
Property
Summary
SetOperatorRules(AngouriMath.Entity), as data.
Remarks
Two things were in doubt. An Interval has four children where
every other node pattern here has one or two — and it turns out a node pattern is not
limited to two, so the arity was never the question; the rule binds the interval whole
anyway, because its replacement wants the node rather than its parts.
work around.
deconstructing
deconstruction, which reads the stored
matcher walked
one child there, its predicate, with the bound variable already renamed to a
placeholder:
So the rule bound the whole set and took it apart in its replacement — honest rather
than clever, but a rule whose shape was code again.
repeated hole is what the
type needed it: every other binder in the language publishes the name it binds as an
ordinary child.
#1074
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online