aboutsummaryrefslogtreecommitdiff
path: root/src/eval.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-08-14 21:20:39 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-08-14 21:20:39 +0300
commita7bb8ace49f5725e0f92336ab5af28b4c8900aff (patch)
tree5d00d7a5d159e9702b46c23542fffc09e591c271 /src/eval.h
parentf83187a830deff27ce0cdd4c175ffe2785461685 (diff)
parser done
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