Commit Graph

52 Commits

Author SHA1 Message Date
efb4ce85ac Format const in type 2026-04-16 19:46:47 +03:00
8e6980715e Add const-ability to types 2026-04-16 19:43:36 +03:00
238577e9ca Fix how arrays are managed 2026-04-16 18:32:31 +03:00
f0607a2310 Allow forward-declaration of structs 2026-04-16 01:39:07 +03:00
21d17bb02d Parse field accesses 2026-04-15 20:04:07 +03:00
1265040f29 Fix parsing struct types 2026-04-15 19:09:38 +03:00
94d1c15897 Parse struct type 2026-04-15 19:02:01 +03:00
f283149090 Parse tl-typedef 2026-04-15 18:45:29 +03:00
5fc58ea1c5 Add parsing::Scope 2026-04-15 17:45:14 +03:00
55388bc6e3 Parse listinitializer 2026-04-15 16:07:07 +03:00
e76540182f Possibly fix passing of arrays 2026-04-14 19:18:10 +03:00
b97aa3f212 Fix parsing of array type parameters 2026-04-14 18:55:15 +03:00
26779414a7 Implement arrays 2026-04-14 15:55:13 +03:00
c0a2c41c33 Fix parsing of empty arrays 2026-04-14 15:24:49 +03:00
0400aa1d99 Make empty arrays into just pointers 2026-04-14 15:20:14 +03:00
d70f6fffa0 Parse array type 2026-04-14 15:05:44 +03:00
0cdf1abf82 Tweak parsing 2026-04-14 14:17:17 +03:00
be2d809986 Make ref and deref only parse primary expression 2026-04-14 00:28:12 +03:00
d4016e3ab7 Parse ref/deref/parenthesis 2026-04-14 00:05:30 +03:00
1814ce2cc9 Fix bug with loading values, parse casts 2026-04-13 21:21:46 +03:00
44c9e31556 Make types in the AST be shared_ptr 2026-04-13 00:40:05 +03:00
866d78e6d1 Compile vararg 2026-04-11 23:18:13 +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
ac7731446e Add pointer types 2026-04-11 21:45:54 +03:00
6855360a97 Add void and char types 2026-04-11 21:40:59 +03:00
7cf752f67b Add forward declarations 2026-04-11 21:34:44 +03:00
712c0bed51 Improve memory management for Result 2026-04-11 17:55:49 +03:00
a035d07505 Add metadata to AST 2026-04-10 23:58:06 +03:00
07b691ba7a Fix all warnings 2026-04-10 21:45:05 +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
f59b5db29b Parse and process function parameters 2026-04-10 17:25:01 +03:00
7d4190d9a1 Parse new binops 2026-04-10 17:13:14 +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
ed51ee61ed Fix parsing of expression statements 2026-04-09 17:55:09 +03:00
8e2bc3a7f7 Add addition binop 2026-04-09 17:52:11 +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
48feebc714 Add parse_initialization_statement 2026-04-09 16:24:11 +03:00
89db646873 Allow loading stack values 2026-04-09 16:02:34 +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
bdcd8838ee Fix parsing of functions 2026-04-02 17:21:20 +03:00
74a3914fdf Actually parse int expression from the string 2026-04-02 16:18:22 +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