AngouriMath
IsDeterministic
Property
Summary
Whether this pattern can match an expression in at most one way, so that a
caller wanting a solution needs no enumeration and no backtracking.
caller wanting a solution needs no enumeration and no backtracking.
Remarks
and false for any node containing one of those, since a choice anywhere below makes
the whole pattern a search.
a state machine is allocated for every node of the pattern at every attempt, and a
rewrite pass makes an attempt at every node of the tree. Measured on one rule set over
one tree, that was ten times the time and seven times the allocation of the
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online