Commit Graph

38 Commits

Author SHA1 Message Date
8e6980715e Add const-ability to types 2026-04-16 19:43:36 +03:00
d79151380f Prevent initialization of arrays except with list-inits and strings 2026-04-16 18:51:45 +03:00
f0607a2310 Allow forward-declaration of structs 2026-04-16 01:39:07 +03:00
a12cf52c48 Add FieldAccessExpression 2026-04-15 20:01:20 +03:00
29fd757517 Add Struct types 2026-04-15 18:40:26 +03:00
eacbac9205 Implement ListInitializer 2026-04-15 15:57:54 +03:00
6efcb23d6b Add get_codegen_type 2026-04-14 18:48:17 +03:00
26779414a7 Implement arrays 2026-04-14 15:55:13 +03:00
78c5ab4c25 Add ref and deref 2026-04-14 00:01:33 +03:00
fa01b22b81 Add compilation of casts 2026-04-13 21:08:57 +03:00
810dd3595e Allow implicitly converting IntLiteralExpr to other int types 2026-04-13 20:15:48 +03:00
9791c9c8da Add binops.h and binops.cpp 2026-04-13 18:00:47 +03:00
d11da4d1e6 Make expressions return type on typecheck 2026-04-13 00:55:38 +03:00
44c9e31556 Make types in the AST be shared_ptr 2026-04-13 00:40:05 +03:00
e45f120f1c Add typecheck-functions to AST 2026-04-13 00:35:14 +03:00
8646d5c0d0 Parse varargs 2026-04-11 22:18:02 +03:00
3f61e3749e Allow anonymous parameters 2026-04-11 22:11:52 +03:00
bd76e8676f Add literal strings 2026-04-11 22:03:38 +03:00
7cf752f67b Add forward declarations 2026-04-11 21:34:44 +03:00
a035d07505 Add metadata to AST 2026-04-10 23:58:06 +03:00
8dc0a6bf12 Parse function calls 2026-04-10 18:30:29 +03:00
97745ffbb0 Parse if-statements 2026-04-10 17:39:38 +03:00
d69e2c0929 Move binop to types 2026-04-10 16:58:27 +03:00
ea9bb1fcb9 Move types to it's own file 2026-04-09 18:38:22 +03:00
8e2bc3a7f7 Add addition binop 2026-04-09 17:52:11 +03:00
43abaa4a46 Make expressions return StackValue 2026-04-09 17:44:22 +03:00
78816dff10 Parse binary operators 2026-04-09 17:14:58 +03:00
4d307d0eb9 Add expression statements 2026-04-09 16:31:47 +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
7aaa665058 Add InitializationStatement AST 2026-04-09 15:18:36 +03:00
3a2c97fb13 Fix some warnings 2026-04-02 17:33:17 +03:00
c314ca4cb7 Compile test.c using LLVM 2026-04-02 17:20:07 +03:00
316c3aece6 Format types as well 2026-04-02 16:17:01 +03:00
ab406df610 Fix passing around results 2026-04-02 16:09:42 +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