diff options
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 |