From 1ddd7de5b15f52c13a5c084445253655a94bd970 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Thu, 20 Jan 2022 23:57:13 +0000 Subject: =?UTF-8?q?Implement=20a=20very=20basic=20=E2=8E=95RUN=20command?= =?UTF-8?q?=20which=20runs=20the=20code=20from=20a=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apl9.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apl9.h') diff --git a/apl9.h b/apl9.h index acbfcbb..bf74bf4 100644 --- a/apl9.h +++ b/apl9.h @@ -36,6 +36,7 @@ typedef enum FunctypeDfn, FunctypePrim, FunctypeOp, + FunctypeQuad, } functionType; /* Data types */ @@ -91,6 +92,7 @@ struct Function int code; Rune *dfn; Operator operator; + QuadnameDef *quad; }; Array *left; }; @@ -136,7 +138,7 @@ struct QuadnameDef Datum *(*get)(void); int (*set)(Datum); fnmonad monadfn; - fnmonad dyadfn; + fndyad dyadfn; opmonad monadop; opdyad dyadop; }; -- cgit v1.2.3