Commit Graph

76 Commits

Author SHA1 Message Date
fe6fe6c435 Fix linker setting types as dependencies when they are also dependencies 2025-08-12 20:47:27 +03:00
3e85ed2705 Remove unnecessary dbg! 2025-08-12 20:35:28 +03:00
c44d588b30 Fix a1.reid 2025-08-08 16:01:26 +03:00
0e23ab4636 Add back a type in linker that I thought unnecessary 2025-08-07 21:40:57 +03:00
82b67dfaaa Fix typedef ordering in codegen 2025-08-06 22:01:28 +03:00
a5c7823a29 Resolve types recursively instead of just on-surface 2025-08-06 21:36:33 +03:00
3dba4a79ff Move one type resolution to a better place 2025-08-06 21:04:31 +03:00
2a8842658d Fix linker type importing 2025-08-06 21:01:05 +03:00
8d32f2bbad Add a lot more references to types in places 2025-08-05 23:57:45 +03:00
0ee9d3bf7d Fix linker type-replacement for imported functions 2025-08-05 22:23:57 +03:00
3cd4121951 Fix linker cyclical fields checker 2025-08-05 22:02:19 +03:00
c84954480b Fix loads of warnings 2025-08-05 22:00:11 +03:00
aad3c93068 Fix imports not setting their importer-value correctly 2025-08-05 21:45:40 +03:00
1ba0de442a Fix linker working with recursive imports 2025-08-05 21:03:53 +03:00
1c3386bc9a Fix triple-importing 2025-08-04 23:46:46 +03:00
8a178387ca Allow initializing foreign structs as well 2025-08-04 22:33:06 +03:00
b93b7aa52b Fix struct fields not being linked correctly for foreign types 2025-08-04 22:24:03 +03:00
3b3b21d4dc Add possibility to pre-define module-ids 2025-08-03 22:32:31 +03:00
018f3e2561 Fix function signature meta for extern functions 2025-08-03 18:45:27 +03:00
bb9f69ee53 Add autocomplete for imports 2025-08-02 23:03:11 +03:00
8595da0c30 Make LSP use a more general analysis structure 2025-08-02 21:11:33 +03:00
b71c253942 Add types to hovers in LSP, fix around and add metas 2025-07-29 21:39:14 +03:00
67a5fcd002 Basically revert everything, create macro-pass 2025-07-28 22:11:46 +03:00
80bdf4eba8 Merge branch 'main' into macros 2025-07-28 22:03:06 +03:00
bd8994bb37 Fix linking associated functions, fix other examples 2025-07-28 22:02:49 +03:00
2e153922f1 Start adding macros 2025-07-28 21:54:51 +03:00
beaba4e7de Mangle function names, except for user defined externs 2025-07-28 20:25:36 +03:00
b643c13582 Use metadata instead of names for allocator identification 2025-07-28 19:22:03 +03:00
1c7a600b96 Fix pass for inner expressions 2025-07-28 02:02:30 +03:00
dc360ef196 Implement importing of associated functions with types 2025-07-27 23:28:24 +03:00
5104555890 Fix type updating for associated function calls 2025-07-27 23:12:40 +03:00
676554b6a0 Improve deref parsing 2025-07-27 22:24:38 +03:00
46668b7099 Fix a bunch of warnings 2025-07-27 18:11:18 +03:00
0ba1fa90e7 Update readme, clean up a little 2025-07-26 14:04:24 +03:00
0196fb53ed Import binops while importing types as well 2025-07-26 13:18:55 +03:00
58cc633f98 Update typerefs in statements and expressions as well for extern types 2025-07-26 12:56:42 +03:00
59e4c38770 Fix type references for function return types .. for now 2025-07-26 01:34:37 +03:00
269de327b8 Allow importing types 2025-07-26 00:57:39 +03:00
954f3438d3 Codegen intrinsics 2025-07-24 11:56:44 +03:00
ef4964ed86 Add parsing for for/while loops 2025-07-23 20:14:35 +03:00
fe4e41c435 Fix seeing same type multiple times when importing 2025-07-23 17:21:33 +03:00
8b79959288 Fix typedefinition in scope 2025-07-23 15:34:01 +03:00
97f5eebf22 Fix some warnings 2025-07-22 23:25:49 +03:00
3d73c52cb4 Fix casting within setters 2025-07-22 19:31:35 +03:00
78a1e9f06b Fix typedef issue with modules 2025-07-22 18:03:15 +03:00
f35f1ef701 Repurpose module map and rename old to ErrorModules 2025-07-22 17:34:01 +03:00
e9bca63f0d Add module id to CustomType, String to std 2025-07-22 16:16:46 +03:00
104205ee5d Type-infer and check typecasting 2025-07-22 13:24:53 +03:00
3d3a9a34f9 Fix binary operators for floats, make library functions extern 2025-07-21 17:32:20 +03:00
a1507e14ca Add flag to ignore no-main-error 2025-07-21 16:47:51 +03:00