From 781f5e62130f88d0161ba72d240a53120d15f565 Mon Sep 17 00:00:00 2001 From: Xie Yuheng Date: Thu, 16 Nov 2023 10:58:43 +0800 Subject: [PATCH] execute -- Begin -- `createEnv` and run --- TODO.md | 2 -- src/lang/execute/execute.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 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 } }