Abstract
A method for evaluating user-editable logical rules on resource-constrained microcontrollers is proposed. Rule condition trees are stored as contiguous Flat-AST arrays with index-based child references, eliminating heap fragmentation and reducing node size by 25-45%. A generalized directional hysteresis reduced relay switching by 82-84% in an ESP32-based heating controller.
Keywords (in English)
Manuscript file