diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-12 19:42:14 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-12 19:42:14 +0000 |
commit | d152639e4495089cabbbf7a16e5bc5129af78bfa (patch) | |
tree | b1f63531e0f02b850ae84721fd5799a4827f64db /apl9.h | |
parent | fe3ef88c4147c4188066873e570f56212ffeebfd (diff) |
Add dfn parsing, but not evaluation yet
Diffstat (limited to 'apl9.h')
-rw-r--r-- | apl9.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -12,8 +12,6 @@ typedef enum BoundFunctionTag, /* Function with left arg bound */ LParTag, RParTag, - LCurlTag, - RCurlTag, LBracketTag, RBracketTag, ArrowTag, @@ -27,6 +25,12 @@ typedef enum AtypeArray, } arrayDataType; +typedef enum +{ + FunctypeDfn, + FunctypePrim, +} functionType; + /* Data types */ typedef struct Array Array; typedef struct Statement Statement; @@ -58,9 +62,10 @@ struct Statement struct Function { + functionType type; union { int code; - Statement *dfn; + Rune *dfn; }; Array *left; }; |