Commit graph

23 commits

Author SHA1 Message Date
580ae22a98 Fix printing struct fields 2026-03-30 20:29:39 +03:00
0c11b09548 Pointers wip 2026-03-23 14:41:47 +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
56c63d50ac Struct types refactor v2: store AST node pointer in struct type 2026-03-22 13:34:35 +03:00
357baa9652 Fix printing function types like (a -> b) -> c 2026-03-22 12:50:22 +03:00
8c0b371fdb Implement computing struct layout (size, alignment, field offsets) in type checking 2026-03-15 20:12:01 +03:00
c8cd86dd0b Add foreign functions (stub in interpreter, implemented in aarch64 compiler) 2026-03-13 11:01:53 +03:00
7ddc8ba25d Add f16 type & literals support in parser, type checker & interpreter 2026-01-05 00:36:11 +03:00
0ba3e4324d Interpreter clean-up (wip - identifier/function resolving is broken) 2025-12-29 14:42:25 +03:00
dea5c18cfd Explicitly mark constructor AST nodes 2025-12-23 13:43:54 +03:00
d33b00e368 Refactor tree visitors (again) 2025-12-20 15:52:59 +03:00
8c07e1950b Simplify tree visitors 2025-12-20 13:20:44 +03:00
aee506d102 Rewrite identifier resolution using visitors 2025-12-20 13:05:51 +03:00
709c7a7a0a Introduce dedicated type tree & AST tree visitors and use them in pretty-printing 2025-12-20 01:06:54 +03:00
4175a86ae3 Rename libs/type -> libs/types, separate computed type tree from the AST type tree 2025-12-20 00:03:23 +03:00
437123f6f4 Add scope levels to identifier AST nodes & implement identifier resolution 2025-12-19 17:42:40 +03:00
53d4e12a09 Functions can be any expressions and not just identifiers in function calls (AST only, not implemented in interpreter yet) 2025-12-18 14:37:06 +03:00
04ee8e28e6 Add structures 2025-12-17 22:57:10 +03:00
d4a4d4dbef Refactor printing AST 2025-12-17 15:51:38 +03:00
435aa61fe4 Implement array types & array values 2025-12-17 15:46:51 +03:00
bc7d24ad62 Support return statement with no expression 2025-12-17 14:22:20 +03:00
41d3bb0f3d Implement functions in parser & interpreter 2025-12-16 19:19:46 +03:00
9d7f81d7fc Initial commit: wip spec, ast definition, parser & interpreter 2025-12-16 14:01:50 +03:00