five-on-it / packages/missions/src/expressions
packages/missions/src/expressions
The values and conditions of the mission language: how the interpreter evaluates them against what it knows on a step (a Scope), and how the validator walks them. Pure and deterministic: a value is a number (Infinity for a distance to nothing, or a clock that does not run), a condition is true or false, and nothing here loops. Also the walks over a rule's actions and a text's counters that the validator and the platform's moderation share.