summaryrefslogtreecommitdiff
path: root/apl9.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-20 23:57:13 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-20 23:57:13 +0000
commit1ddd7de5b15f52c13a5c084445253655a94bd970 (patch)
tree4d0f3b8ad18f2c4ceaa175022c42d7f0de093184 /apl9.h
parent230aac3c644df9d80c8eba507e6bc7c710b26b52 (diff)
Implement a very basic ⎕RUN command which runs the code from a file
Diffstat (limited to 'apl9.h')
-rw-r--r--apl9.h4
1 files changed, 3 insertions, 1 deletions
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;
};