Commit Graph

33 Commits

Author SHA1 Message Date
89850d7b4f Change intrinsic alloca to malloc and actually use libc malloc 2025-07-28 21:22:15 +03:00
5026013df3 Add intrinsic malloc, use that in alloca 2025-07-28 20:46:58 +03:00
00c91fff60 Update standard library documentation 2025-07-28 00:52:02 +03:00
8838223a7d Add free to String, update hello_world_harder 2025-07-28 00:44:52 +03:00
1f56fa5dc3 Fix using self within self 2025-07-28 00:41:35 +03:00
dc360ef196 Implement importing of associated functions with types 2025-07-27 23:28:24 +03:00
9d5a20e76a Allow pub-keyword for impl-block 2025-07-27 22:55:34 +03:00
c316d94b75 Fix bug in custom binops where their return types aren't inferred 2025-07-26 14:01:53 +03:00
0196fb53ed Import binops while importing types as well 2025-07-26 13:18:55 +03:00
c466b8eb2a Fix everything except for casts 2025-07-25 22:21:11 +03:00
aeca557b6f Make breaking changes to stdlib 2025-07-23 22:04:34 +03:00
de803e9024 Fix from_str in stdlib, add concat_strings 2025-07-23 22:01:14 +03:00
d96fc51b9c Fix adding to string that was allocated earlier 2025-07-23 21:27:45 +03:00
0d3abe8e42 Fix add_num_to_string not printing 10 2025-07-23 21:18:38 +03:00
c699b67d75 Add clamp and abs to std, credit to @neon 2025-07-23 19:54:20 +03:00
ccb5741666 Fix add_num_to_str to accept arbitrary length numbers 2025-07-23 19:39:32 +03:00
0a90ac4497 Fix inner block generation 2025-07-22 22:15:34 +03:00
e5f6b37210 Fix std 2025-07-22 21:02:14 +03:00
5c5c9c5f7b Improve error for statement-failure 2025-07-22 20:54:06 +03:00
8f45c8cf92 Fix nested if/else, add add_num_to_str to standard library 2025-07-22 20:47:39 +03:00
32059682ee Make add_char and set_char work 2025-07-22 20:27:29 +03:00
64418635a5 Add from_str to stdlib 2025-07-22 20:07:42 +03:00
28437aecb6 Fix indexing return type and casting to and from a char 2025-07-22 20:03:25 +03:00
bbdfae081d Fix std Strings 2025-07-22 19:50:54 +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
1224c612c7 Codegen & compile char, change *str to *char 2025-07-22 15:07:33 +03:00
e27aa4b8ab Fix pointer-casting 2025-07-22 14:19:28 +03:00
10d62eb1f7 Allow_identifiers_to_have_underscores 2025-07-21 19:36:44 +03:00
069c277516 Update String to be *str 2025-07-21 19:32:40 +03:00
d7661cb968 Add metadata location to function calls 2025-07-20 21:08:15 +03:00
575abe8172 Make passes actually return errors well 2025-07-20 15:25:21 +03:00
5acd1624fd Move test to inside-executable, and add tests that test it compiles 2025-07-14 22:52:30 +03:00