diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-22 08:24:53 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-22 08:24:53 +0200 |
commit | 9e127d92246d6577792122b013088466e3688da1 (patch) | |
tree | edb73aa03739bf37626aae3038586a80d3b1aa50 /src/main.c | |
parent | f75e2f8b54ea9d77e94aca6e387556981a7795d3 (diff) |
Store decl info in auxilliary data
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -31,12 +31,13 @@ main(int argc, char **argv) arena a = NULL; mpq_t *folds; + struct aux aux; struct type *types; struct scope *scps; struct lexemes toks = lexstring(src, srclen); - struct ast ast = parsetoks(toks); - analyzeprog(ast, toks, &a, &types, &scps, &folds); + struct ast ast = parsetoks(toks, &aux); + analyzeprog(ast, aux, toks, &a, &types, &scps, &folds); codegen(argv[1], folds, scps, types, ast, toks); #if DEBUG @@ -51,6 +52,7 @@ main(int argc, char **argv) free(types); lexemes_free(toks); ast_free(ast); + aux_free(aux); arena_free(&a); #endif return EXIT_SUCCESS; |