feature-AST-using-arena #8

Merged
laentropia merged 2 commits from feature-AST-using-arena into main 2026-04-23 12:34:30 -06:00
Owner

arena implementation

arena implementation
laentropia added 2 commits 2026-04-23 12:34:05 -06:00
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.
So i did what the last commit said, also fixed parse_expr because it was
still using malloc for allocating new nodes so i made it use arena_alloc
like it should, did the very first tests so it's all good, i think is
readdy to merge.
laentropia merged commit f50546bd07 into main 2026-04-23 12:34:30 -06:00
Sign in to join this conversation.