aboutsummaryrefslogtreecommitdiff
path: root/interpreter/code.h
diff options
context:
space:
mode:
authorCamil Staps2016-08-29 19:55:21 +0200
committerCamil Staps2016-08-29 19:55:21 +0200
commitc62d7748aace9ae1234c53703fe8231236c9e123 (patch)
treec0c6c6017914cfe9b3b8995759a454564bb6faf3 /interpreter/code.h
parentmatch EXPR_APP (diff)
Currying arguments and Code applications
Diffstat (limited to 'interpreter/code.h')
-rw-r--r--interpreter/code.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/interpreter/code.h b/interpreter/code.h
index 4c850a2..d139fb1 100644
--- a/interpreter/code.h
+++ b/interpreter/code.h
@@ -2,11 +2,15 @@
#define _H_CODE
#include "syntax.h"
+#include "graphs.h"
-typedef expression* (Code_0) ();
-typedef expression* (Code_1) (expression*);
-typedef expression* (Code_2) (expression*, expression*);
+typedef void (Code_0) (struct node**);
+typedef void (Code_1) (struct node**, struct node*);
+typedef void (Code_2) (struct node**, struct node*, struct node*);
unsigned char code_find(char* name, void** function);
+void code_mul(struct node** result, struct node* a, struct node* b);
+void code_sub(struct node** result, struct node* a, struct node* b);
+
#endif