aboutsummaryrefslogtreecommitdiff
path: root/interpreter/code.h
diff options
context:
space:
mode:
authorCamil Staps2016-08-26 00:46:55 +0200
committerCamil Staps2016-08-26 00:46:55 +0200
commit00e2c70b01f28c9b00ec3d5096895a387676774d (patch)
tree8ee65ec944e5cdd79d517c723e6b506fa7ee43a1 /interpreter/code.h
parentAdded tup example (diff)
Linking C functions
Diffstat (limited to 'interpreter/code.h')
-rw-r--r--interpreter/code.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/interpreter/code.h b/interpreter/code.h
new file mode 100644
index 0000000..4c850a2
--- /dev/null
+++ b/interpreter/code.h
@@ -0,0 +1,12 @@
+#ifndef _H_CODE
+#define _H_CODE
+
+#include "syntax.h"
+
+typedef expression* (Code_0) ();
+typedef expression* (Code_1) (expression*);
+typedef expression* (Code_2) (expression*, expression*);
+
+unsigned char code_find(char* name, void** function);
+
+#endif