diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-08-14 21:20:39 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-08-14 21:20:39 +0300 |
commit | a7bb8ace49f5725e0f92336ab5af28b4c8900aff (patch) | |
tree | 5d00d7a5d159e9702b46c23542fffc09e591c271 /src/eval.h | |
parent | f83187a830deff27ce0cdd4c175ffe2785461685 (diff) |
parser done
Diffstat (limited to 'src/eval.h')
-rw-r--r-- | src/eval.h | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -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 |