Commit Graph

76 Commits

Author SHA1 Message Date
4d307d0eb9 Add expression statements 2026-04-09 16:31:47 +03:00
48feebc714 Add parse_initialization_statement 2026-04-09 16:24:11 +03:00
9969ad12f6 Use raw pointers for BBs 2026-04-09 16:05:04 +03:00
89db646873 Allow loading stack values 2026-04-09 16:02:34 +03:00
1070aa6ed0 Add scope 2026-04-09 15:53:01 +03:00
cf94296877 Codegen initial alloca and store 2026-04-09 15:37:51 +03:00
db60335507 Parse initialization statement 2026-04-09 15:28:39 +03:00
7aaa665058 Add InitializationStatement AST 2026-04-09 15:18:36 +03:00
927ed01fac Add a bit better error raporting to failed parse 2026-04-09 15:09:47 +03:00
3a2c97fb13 Fix some warnings 2026-04-02 17:33:17 +03:00
df8ca04274 Remove unneeded LLVM Hello World 2026-04-02 17:24:15 +03:00
bdcd8838ee Fix parsing of functions 2026-04-02 17:21:20 +03:00
c314ca4cb7 Compile test.c using LLVM 2026-04-02 17:20:07 +03:00
74a3914fdf Actually parse int expression from the string 2026-04-02 16:18:22 +03:00
316c3aece6 Format types as well 2026-04-02 16:17:01 +03:00
87dceb5b7c Format function after parsing 2026-04-02 16:13:53 +03:00
ab406df610 Fix passing around results 2026-04-02 16:09:42 +03:00
e19349beb6 Actually parse statements with a loop 2026-04-02 15:44:33 +03:00
8520404fb1 Parse function somewhat correctly 2026-04-02 15:36:48 +03:00
31c697a097 Use unique_ptrs everywhere again 2026-04-02 01:41:39 +03:00
04a6ec1ded Start adding AST and Result 2026-04-02 00:31:19 +03:00
856709e46a Rename name to formatted 2026-04-01 22:44:31 +03:00
e5f7430586 Add TokenStream 2026-04-01 22:42:27 +03:00
ad04da8218 Move tokens to it's own file 2026-04-01 22:13:23 +03:00
92e0bcd270 Add simple tokenization 2026-04-01 21:59:07 +03:00
721f996413 Implement a simple Hello World with LLVM 2026-04-01 20:46:38 +03:00