Files
Calculator/include/evaluator.h
laentropia e4ec102cb9 rework: AST now uses an arena for allocation
For now it works but i dont really like that i use ParseResult, i mean
is necessary but i think i will try to make it cleaner so that i can
just directly use like parse and pass tath into evaluate, that would
require to move the main evaluate funciton into evaluate_tree or
something  and evaluate takes the arena, uses evaluate_tree and frees
the arena, will try that the next commit but for now this version works
perfectly.
2026-04-13 07:57:36 -06:00

10 lines
138 B
C

#ifndef EVALUATOR_H
#define EVALUATOR_H
#include "lexer.h"
#include <stdint.h>
int64_t evaluate(ASTNode *tree);
#endif // !EVALUATOR_H