aboutsummaryrefslogtreecommitdiff
path: root/interpreter/code.h
blob: d139fb1ca8de2a69eaecd4f8966ff2ec7998bed8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _H_CODE
#define _H_CODE

#include "syntax.h"
#include "graphs.h"

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