From cbdca328495a772716f14b1e95a7ab7d6450cc27 Mon Sep 17 00:00:00 2001 From: Elis Eriksson Date: Fri, 19 Jun 2026 21:39:16 +0200 Subject: Improve the shit No longer turing complete No longer depends on libc (good thing) Codegen is now unreadable (because i want it to be) Remove a couple of unnecessary includes Output C code to out.c when compiling Why the fuck are you reading this? --- src/bfc.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/bfc.c') diff --git a/src/bfc.c b/src/bfc.c index 2e369cf..d567f88 100644 --- a/src/bfc.c +++ b/src/bfc.c @@ -1,30 +1,16 @@ #include "all.h" #include "str.h" -#include -#include -#include -#include int main(void) { str input = {0}; str_append_fread(&input, stdin); - lexer_t lexer = lex_init(&input); lex_run(&lexer); - parser_t p = parser_init(&lexer); - ast_node_t *ast = parse_program(&p); - - // lex_free(&lexer); - // parser_free(&p); - str c_code = gen_code(ast); - ast_free(ast); - printf("%s", c_code.data); - free_str(&input); return 0; } -- cgit v1.3-7-ge9ab