runtime: Refactor Expression/Statement Evaluators

Allow the user to customize the evaluation/execution of expressions/
statements with something that implements functions that perform
those tasks. This additional functionality will make it possible for
the "classic" evaluator not to waste time checking for the presence
of interlopers and give implementers additional customization opportunities.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-04-20 16:28:01 -04:00
parent 47cc52ea44
commit a24571222b
8 changed files with 181 additions and 121 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ public struct ParserRuntime: CustomStringConvertible {
{
let pe =
if let initial = initialValues {
ProgramExecution(withGlobalValues: initial)
ProgramExecution().setGlobalValues(initial)
} else {
ProgramExecution()
}