Commit Graph

718 Commits

Author SHA1 Message Date
8c3d1e4066 Fix for matching with enums defined in another file 2024-05-22 13:37:15 -04:00
2d0834f1d8 Better error message 2024-05-22 13:34:32 -04:00
723f3e141c Temporary fix for issue with stack references leaking memory and
breaking memory safety
2024-05-21 21:55:52 -04:00
7e275af628 Get rid of struct constructor 2024-05-21 20:54:09 -04:00
b1db4fd0f6 Improve codegen for enums and structs (change $tag$Foo$Baz to
Foo$tag$Baz)
2024-05-21 20:14:57 -04:00
760f46e71c Reduce codegen output for enums without data attached to any tags 2024-05-21 13:42:33 -04:00
c5c3be9e5d Deprecate Text.slice() 2024-05-20 15:27:42 -04:00
5b1960859f Hook up Text.has(), Text.trimmed(), Text.without() 2024-05-20 15:19:31 -04:00
7dddfb71a0 Add Text.slice() 2024-05-19 14:38:44 -04:00
b0d1daa0f3 Fix up some binding order issues and also some inline C issues with
heap_pop()
2024-05-19 01:46:30 -04:00
4f2421aeea Tweak inline C code 2024-05-18 21:18:08 -04:00
e4e3186959 Minor fixes 2024-05-18 20:53:03 -04:00
1df26851d7 Add syntax for "inline C(...)" 2024-05-18 16:31:34 -04:00
e439fcd1e2 Clean up imports a bit 2024-05-18 14:42:35 -04:00
a1d18fd422 Add C string type 2024-05-18 14:38:41 -04:00
ee9a40f910 Fix 'else if' 2024-05-16 00:55:16 -04:00
c1e4730f35 Fix for bare enums in multi-assigns 2024-05-15 13:42:45 -04:00
214a8e18aa Rename func 2024-05-15 13:40:27 -04:00
8809435867 Bugfix for assignment not properly promoting (and checking) values, plus
adding support for unqualified enums in assignment
2024-05-15 13:39:35 -04:00
af0c285d96 Allow specifying function arg enums without qualifiers 2024-05-15 13:24:43 -04:00
ae9cb9e7e3 Allow returning enums without qualifiers 2024-05-15 13:19:00 -04:00
dda0392dc6 Document the REPL 2024-05-14 14:27:42 -04:00
fe28816b50 Fix REPL 2024-05-14 14:25:27 -04:00
77fb880cc4 Better error messages 2024-05-14 13:42:06 -04:00
495a597ef6 Better error messages 2024-05-14 13:38:53 -04:00
1924f75647 Support corecursive structs 2024-05-14 13:30:46 -04:00
31814db0a6 Bugfix for Num.near() 2024-05-14 00:40:13 -04:00
8bafe71f17 Add nested indentation for doctests that recursively invoke other
doctests while evaluating
2024-05-14 00:30:57 -04:00
e6297323ba Check function return type when promoting 2024-05-13 14:45:49 -04:00
02fe49a764 Deprecate interfaces (RIP) 2024-05-12 20:13:19 -04:00
934fd8a173 Revert "Deprecate stack macro"
This reverts commit 00ec635718.
2024-05-12 20:12:00 -04:00
00ec635718 Deprecate stack macro 2024-05-12 19:47:34 -04:00
79556883b4 Bugfixes 2024-05-12 19:45:49 -04:00
e171d4a98c Fix up some promotion logic for closures 2024-05-12 19:21:44 -04:00
ff9f4fe6cf Add TODO message 2024-05-12 16:27:03 -04:00
3c50c182a8 Typecheck method promotion for interfaces 2024-05-12 16:09:24 -04:00
3481042259 Simplify interfaces by requiring all functions are pointer methods 2024-05-12 15:56:24 -04:00
f6f89265b7 Guard against calling interfaces with values 2024-05-12 15:48:52 -04:00
4dbe046866 Add interface fields 2024-05-12 15:18:46 -04:00
8ada56c424 Tweak interface color formatting 2024-05-12 14:58:10 -04:00
d143c72b22 WIP, but functional interfaces 2024-05-12 13:50:06 -04:00
a20f522fd6 Support space indents 2024-05-02 13:48:20 -04:00
64baf34ea0 Ignore compiled test binaries 2024-05-02 12:51:59 -04:00
c2daf6a928 Clean up 'when' syntax 2024-05-01 13:53:51 -04:00
e3ad5fdaaa Fix up some path issues during compilation/running/installation 2024-05-01 13:25:19 -04:00
2e27b88c1b Improved syntax for optionals 2024-04-30 13:18:47 -04:00
3c0a8f0b89 Syntax tweak: use ':' for blocks 2024-04-28 14:58:55 -04:00
5910998a19 Don't import "main" 2024-04-25 12:51:04 -04:00
061ec4fd8f Support naked 'use' statements 2024-04-24 13:53:37 -04:00
7aa6b2a496 Make autogenerated equality method more compact 2024-04-23 13:24:01 -04:00