diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-06-17 23:42:31 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-06-17 23:42:31 +0300 |
commit | bcac686c1bf6a5c1dec2324269e2766babdc0fde (patch) | |
tree | 6483461015705efa8290a1ab05482a641739c1dd /src/eval.h |
lexer - done
Diffstat (limited to 'src/eval.h')
-rw-r--r-- | src/eval.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/eval.h b/src/eval.h new file mode 100644 index 0000000..01ed827 --- /dev/null +++ b/src/eval.h @@ -0,0 +1,22 @@ +#ifndef EVAL_H +#define EVAL_H + +#include "ast.h" + +typedef struct eval *eval_t; + +// RunTime Tree +struct rtt { + +}; + +struct eval { + struct rtt *root; +}; + +// TODO: add options for the evaluation +eval_t evaluator_create(); +void evaluator_destroy(eval_t evaluator); +int evaluator_eval_ast(eval_t evaluator, ast_t ast) + +#endif |