Commit Graph

63 Commits

Author SHA1 Message Date
64418635a5 Add from_str to stdlib 2025-07-22 20:07:42 +03:00
3d73c52cb4 Fix casting within setters 2025-07-22 19:31:35 +03:00
e9bca63f0d Add module id to CustomType, String to std 2025-07-22 16:16:46 +03:00
e220900ac3 Start adding chars 2025-07-22 14:44:28 +03:00
e27aa4b8ab Fix pointer-casting 2025-07-22 14:19:28 +03:00
c03a5188ea Finish casting codegen 2025-07-22 14:12:31 +03:00
104205ee5d Type-infer and check typecasting 2025-07-22 13:24:53 +03:00
471c2eaf87 Fix struct-parsing interfering with if-parsing 2025-07-21 20:52:39 +03:00
7929a798af Update examples a little bit 2025-07-21 20:23:37 +03:00
836a532d8d Fix UserPointer being completely monkeypatched, found the issue 2025-07-21 20:13:15 +03:00
10d62eb1f7 Allow_identifiers_to_have_underscores 2025-07-21 19:36:44 +03:00
eb99a4c74e Fix range in literals 2025-07-21 19:18:39 +03:00
3d3a9a34f9 Fix binary operators for floats, make library functions extern 2025-07-21 17:32:20 +03:00
bcc93dd60c Add parsing to floats 2025-07-21 16:18:14 +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
a49105b07a Add typecheck/infer for pointers 2025-07-21 13:29:19 +03:00
3b43689650 Add parsing pointer-type 2025-07-21 13:25:01 +03:00
f55040ad00 Update how types are formatted 2025-07-21 11:06:42 +03:00
ce645519ce Fix NamedVarRefrence tokenrange 2025-07-21 10:52:33 +03:00
d2ee61e888 Update borrow_hard back 2025-07-21 10:43:55 +03:00
37386db437 Check for mutability when doing a let 2025-07-21 10:43:24 +03:00
5763df948f Check borrow mutability against variable mutability 2025-07-21 10:39:19 +03:00
1fadaa60f2 Add mutability compatibility check to borrows 2025-07-21 10:33:37 +03:00
60818842a5 Add borrow mutability 2025-07-21 10:21:25 +03:00
8da32c25c5 Make borrows work as function parameters as well 2025-07-21 10:07:56 +03:00
cbea8660c2 Update README.md 2025-07-21 09:57:18 +03:00
47fa5f342f Nearly get typechecking working for deref/borrow 2025-07-20 22:15:16 +03:00
93b4de9230 Add arithmetic example 2025-07-20 21:26:50 +03:00
ba8ee770fb Parse deref and borrow 2025-07-20 21:25:08 +03:00
d7661cb968 Add metadata location to function calls 2025-07-20 21:08:15 +03:00
71a01dad69 Remove name from alloca 2025-07-20 20:24:26 +03:00
c723ba7b4a Get inner arrays working 2025-07-20 19:30:34 +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
e4845c4084 Get structs in arrays working, but no luck with arrays in structs 2025-07-20 14:21:37 +03:00
f952651a66 Get structs to work in debug information 2025-07-20 13:52:54 +03:00
5f65d3438a Get arrays to work in DI, huzzah 2025-07-19 22:08:23 +03:00
f9f9360efc Update error text 2025-07-19 19:03:31 +03:00
ce2278ce45 Fix using custom type-labels for e.g. return type 2025-07-17 20:20:07 +03:00
0f782dcb96 Fix parse error returning the token after the error 2025-07-17 20:16:37 +03:00
ce7c4bfb52 Improve error raporting futher significantly 2025-07-17 17:15:57 +03:00
8abee593f0 Fix value transfer in structs and arrays 2025-07-17 00:33:23 +03:00
9a4f0dc5d8 Allow for cloning inner values 2025-07-17 00:05:37 +03:00
e4ce897f94 Fix expression-indexing 2025-07-16 23:29:15 +03:00
c19384d77b Refactor a bit 2025-07-16 22:38:19 +03:00
3870b421a9 Refactor indexing/accessing a bit, no mutability 2025-07-16 22:04:11 +03:00
d4616ea025 Add array_structs.reid to test arrays and structs together 2025-07-16 21:17:28 +03:00
cd31d7e7cd Nearly fix struct mutability 2025-07-16 20:27:01 +03:00