diff options
author | c | 2024-03-02 11:00:37 -0500 |
---|---|---|
committer | c | 2024-03-02 11:00:37 -0500 |
commit | 96c63e2fc4d70f20c8e2bac79e3547dfd6a5fcb8 (patch) | |
tree | 4b00617617355193486ff506cb2c012e8b33cbfa /src/main.c | |
parent | e29c41a84b299c95a49dfa429f4161eb71cf6837 (diff) |
Doer is.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,4 @@ #include "include/main.h" -#include "include/util.h" /* FIXME: Segfaults ~30% of the time. No idea why. Thx future self <3. */ int main(int argc, char* argv[]) { @@ -41,7 +40,11 @@ int main(int argc, char* argv[]) { parser_run(parser); tree_print(parser->tree, 0); - /* Clean up parser stuff. */ + doer_t* doer = doer_init(parser->tree); + doer_do_block(doer); + + /* Clean up. */ + doer_destroy(doer); token_destroy(lexer->tokenl); lexer_destroy(lexer); tree_destroy(parser->tree); |