diff options
Diffstat (limited to 'interpreter/code.h')
-rw-r--r-- | interpreter/code.h | 10 |
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 |