From bcac686c1bf6a5c1dec2324269e2766babdc0fde Mon Sep 17 00:00:00 2001 From: kartofen Date: Sat, 17 Jun 2023 23:42:31 +0300 Subject: lexer - done --- src/eval.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/eval.h (limited to 'src/eval.h') 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 -- cgit v1.2.3