diff options
| author | Elis Eriksson <spelis@spelis.li> | 2026-06-19 21:39:16 +0200 |
|---|---|---|
| committer | Elis Eriksson <spelis@spelis.li> | 2026-06-19 21:39:16 +0200 |
| commit | cbdca328495a772716f14b1e95a7ab7d6450cc27 (patch) | |
| tree | 54b5c37a9a2d1b14e385e047980d7df99a56c331 /src/bfc.c | |
| parent | 7ccae1c362a45b28f4fbf96da4f479730e4b382b (diff) | |
| download | bfc-cbdca328495a772716f14b1e95a7ab7d6450cc27.tar bfc-cbdca328495a772716f14b1e95a7ab7d6450cc27.tar.gz bfc-cbdca328495a772716f14b1e95a7ab7d6450cc27.tar.bz2 bfc-cbdca328495a772716f14b1e95a7ab7d6450cc27.tar.lz bfc-cbdca328495a772716f14b1e95a7ab7d6450cc27.tar.xz bfc-cbdca328495a772716f14b1e95a7ab7d6450cc27.tar.zst bfc-cbdca328495a772716f14b1e95a7ab7d6450cc27.zip | |
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?
Diffstat (limited to 'src/bfc.c')
| -rw-r--r-- | src/bfc.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -1,30 +1,16 @@ #include "all.h" #include "str.h" -#include <stddef.h> -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> 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; } |
