From f8cedce5299d12adc3ce3249fd5b3a9fe5578c0a Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 3 Jan 2023 14:41:57 -0800 Subject: hypothetically fixed bug --- src/visitor.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/visitor.c') diff --git a/src/visitor.c b/src/visitor.c index 6eb29a2..1e14c2e 100644 --- a/src/visitor.c +++ b/src/visitor.c @@ -64,6 +64,14 @@ ast_t *eval_expr(visitor_t *v, ast_t *e) { } } -ast_t *eval(visitor_t *v) {} +ast_t *eval(visitor_t *v) { + ast_t *cur; + ast_t *root; + ast_t **eval_nodes; + int j = 0; + for (int i = 0; i < v->root->root_size; i++) { + cur = eval_expr(v, v->root->subnodes[i]); + } +} void eval_error(visitor_t *v, ast_t *e) { exit(1); } -- cgit