diff --git a/TODO.md b/TODO.md index c0c5273..49548c4 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,3 @@ -execute -- Begin -- `createEnv` and run - [connect] connectTransitionToInputs(net: Net, transition: Transition, places: Array) [connect] connectTransitionToOutputs(net: Net, transition: Transition, places: Array) diff --git a/src/lang/execute/execute.ts b/src/lang/execute/execute.ts index c5088e4..786f975 100644 --- a/src/lang/execute/execute.ts +++ b/src/lang/execute/execute.ts @@ -1,5 +1,5 @@ import { appendReport } from "../errors" -import { EvaluateOptions, evaluateParameters } from "../evaluate" +import { EvaluateOptions, evaluateBlock, evaluateParameters } from "../evaluate" import { Mod, define } from "../mod" import { Stmt } from "../stmt" @@ -35,7 +35,7 @@ export async function execute(mod: Mod, stmt: Stmt): Promise { } case "Begin": { - console.log("[execute / Begin] TODO") + evaluateBlock(mod, mod.env, stmt.body, options) return null } }