blob: 6e6011371410e2ab154528aff6d140a23bc505d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef INTERPRETER_H
#define INTERPRETER_H
#include "ast.h"
#include "hash_map.h"
void exec_stmt(hashmap_t context, ASTNode *node);
void context_print(hashmap_t context);
void context_set(hashmap_t context, const char *name, int value);
int context_get(hashmap_t context, const char *name);
int exec_file (hashmap_t context, const char *path);
int exec_str (hashmap_t context, const char *str);
#endif
|