summaryrefslogtreecommitdiff
path: root/apl9.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-09 22:24:07 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-09 22:24:07 +0000
commit0b8bd8e88f2620992310c7ba41283f5d9120e371 (patch)
tree428cdf822378a59fc5e5e9b9eb040cd91f64bdbc /apl9.h
parent325cfd6354dcccaa095767e0419760a3f9462fed (diff)
Add rule for monadic function application
Diffstat (limited to 'apl9.h')
-rw-r--r--apl9.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/apl9.h b/apl9.h
index e487b63..41ad5e2 100644
--- a/apl9.h
+++ b/apl9.h
@@ -24,6 +24,7 @@ typedef enum
AtypeArray
} arrayDataType;
+
/* Data types */
typedef struct Array Array;
typedef struct Datum Datum;
@@ -50,6 +51,8 @@ struct Datum
};
};
+typedef Array* (*fnmonad)(Array*);
+
/* Function prototypes for the different source files */
/* print.c */
Rune *ppdatum(Datum);
@@ -80,7 +83,8 @@ Array *fnCatenateFirst(Array *, Array *);
/* Global variables */
extern Rune *errormsg; /* eval.c */
extern int datasizes[]; /* array.c */
-extern Rune primfuncnames[]; /* lexer.c */
+extern Rune primfuncnames[]; /* function.c */
extern Rune primmonopnames[]; /* lexer.c */
extern Rune primdyadopnames[]; /* lexer.c */
-extern Rune primhybridnames[]; /* lexer.c */ \ No newline at end of file
+extern Rune primhybridnames[]; /* lexer.c */
+extern fnmonad monadfunctiondefs[]; /* function.c */ \ No newline at end of file