aboutsummaryrefslogtreecommitdiff
path: root/src/eval.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.h')
-rw-r--r--src/eval.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/eval.h b/src/eval.h
index 01ed827..f7f9835 100644
--- a/src/eval.h
+++ b/src/eval.h
@@ -1,22 +1,16 @@
#ifndef EVAL_H
#define EVAL_H
-#include "ast.h"
+#include "parser.h"
-typedef struct eval *eval_t;
-
-// RunTime Tree
-struct rtt {
-
-};
+typedef struct eval *evaluator_t;
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)
+evaluator_t eval_create();
+void eval_destroy(evaluator_t evaluator);
+int eval_ast(evaluator_t evaluator, parser_t ast);
#endif