Commit graph

25 commits

Author SHA1 Message Date
9337490f5b Implement global variables 2026-05-08 21:38:44 +03:00
800de413cf Add sizeof & alignof builtins 2026-04-03 00:04:12 +03:00
2a3e2171b0 Implement field access for pointer-to-struct 2026-04-02 22:48:54 +03:00
8ba5345daf Implement ternary ifs 2026-04-02 20:19:55 +03:00
b3fc435dd6 Fix initializing variable (lmao) 2026-04-02 20:19:39 +03:00
06d509bcab Add break & continue statements 2026-04-02 17:10:42 +03:00
3ea319f7bf Fix evaluating array address in IR compiler 2026-03-31 15:59:47 +03:00
8fd548fb92 Fix casting array to pointer in IR compiler 2026-03-31 13:07:44 +03:00
fefe741b16 Fix address of operator in IR compiler 2026-03-31 13:07:28 +03:00
b8658816b4 Fix short-circuiting operators (SQUASH) 2026-03-30 20:29:25 +03:00
ac6eacd80b Add a hacky implememntation of global constants 2026-03-30 20:02:41 +03:00
86216e8cf3 Fix short-circuiting operators 2026-03-30 20:02:13 +03:00
1404437324 IR & Aarch64 compiler arrays support wip 2026-03-29 19:37:49 +03:00
46c33b2acf Implement proper struct field assigment in IR compiler 2026-03-29 12:20:49 +03:00
0dc740d656 IR & Aarch64 compiler structs support wip: struct constructors, assignment, field access 2026-03-27 14:53:36 +03:00
14cb393076 Support comparison operators for integers of different types 2026-03-26 23:49:28 +03:00
5d7968c30b Implement IR + Aarch64 pointers 2026-03-25 16:30:43 +03:00
42e7f7961e New IR -> Aarch64 compiler wip: basic operations done (no pointers, structs, arrays) 2026-03-25 00:22:50 +03:00
c3c5010e04 Store node list via shared_ptr in module_context 2026-03-23 21:53:42 +03:00
dd3eb5d14b Implement pointer support in IR via load/store instructions 2026-03-23 15:35:28 +03:00
776c12f6b5 Update plans 2026-03-23 00:26:58 +03:00
e084b48fd3 Refactor IR compiler: get rid of useless scoping 2026-03-23 00:12:55 +03:00
292d6eeabf Refactor: split pre-AST (contains if/else if/else blocks, field definitions, no hierarchy) and the actual AST obtained after resolving scoping & indentation (contains if chains, no field definitions) 2026-03-22 14:06:34 +03:00
7d5795d9bf Fix compilation to IR, in particular initializing a variable with a copy of another variable 2026-03-19 15:05:08 +03:00
25672d3f05 First common arch-independent IR prototype (no structs or arrays yet) 2026-03-18 18:35:47 +03:00