Commit Graph

45 Commits

Author SHA1 Message Date
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
e370e17ffd Only include STD if it is imported 2025-07-21 15:47:02 +03:00
b23577aa18 Check for trivial expressions that they are >0 when unsigned 2025-07-21 15:44:47 +03:00
d65b0153a1 Implement unary operators as syntax sugar 2025-07-21 15:12:49 +03:00
ed9c8638d5 Get pointers working 2025-07-21 14:43:24 +03:00
74ce296a05 Refactor a bit 2025-07-21 10:29:26 +03:00
2e829bc8a9 Fix linker, add e2e tests 2025-07-21 09:59:35 +03:00
550fec2827 Fix typeinference and checking for borrows/derefs 2025-07-20 22:33:00 +03:00
848f4118bf Fix params not being pointers 2025-07-20 20:13:47 +03:00
a62f9db422 Get static arrays actually working alone 2025-07-20 19:23:42 +03:00
b185e2ecc6 Import typedefs from other modules as well 2025-07-20 15:55:47 +03:00
575abe8172 Make passes actually return errors well 2025-07-20 15:25:21 +03:00
a511331be2 Fix type-inferrer on arrays 2025-07-19 19:23:24 +03:00
92f12e90eb Make debug information work 2025-07-18 19:38:01 +03:00
1967cadbc0 Get debug info working very preliminarily 2025-07-18 17:26:11 +03:00
0c6d9885ec Add debug information compilation for subprograms and their parameters 2025-07-18 15:44:12 +03:00
292688a840 Fix some warnings 2025-07-17 20:26:01 +03:00
9d1b18f083 Add FullToken array to error raporting 2025-07-17 17:44:18 +03:00
f0e47a5d57 Attempt to significantly improve error-raporting 2025-07-17 16:47:10 +03:00
64e34ecf13 Add module_id for modules and metadata 2025-07-17 14:56:41 +03:00
e2dc1a3f85 Fix some warnings 2025-07-17 14:31:40 +03:00
c41aab33a9 Add optional data to PassState Scope 2025-07-16 22:46:52 +03:00
c19384d77b Refactor a bit 2025-07-16 22:38:19 +03:00
6788ef1690 Use AvailableExternally-linkage for externs for imports 2025-07-15 20:01:46 +03:00
5acd1624fd Move test to inside-executable, and add tests that test it compiles 2025-07-14 22:52:30 +03:00
3f90b46dc8 Include stdlib in executable 2025-07-14 22:33:04 +03:00
fa4df50a04 Fix linking so that non-imported functions don't bother main-module 2025-07-14 22:22:55 +03:00