Commit Graph

110 Commits

Author SHA1 Message Date
f4dee58f03 Check for functions that don't return when they need to, as well as a
fix for 'when' statement typing
2024-07-04 18:27:08 -04:00
6a105fbd80 Add 'defer' 2024-07-04 18:00:01 -04:00
9d9fe12987 Add !! statement for printing text 2024-07-04 16:23:05 -04:00
22063462a9 Add __length and __negative metamethods 2024-07-04 13:37:23 -04:00
f391c929e5 Add math metamethods (__add, __sub, etc.) 2024-07-01 11:12:00 -04:00
8724dcd821 Fix issue with using libraries 2024-06-19 16:09:22 -04:00
5bfc15c975 Fix issue with binding 'foo := use baz' 2024-06-16 19:52:55 -04:00
ae538ba9eb Properly produce an error for foo := use -lbaz 2024-06-16 18:43:37 -04:00
28de9aeb84 Deprecate '-l' as a command line flag but instead support 'use -lblah' 2024-06-16 18:40:34 -04:00
32e82fdbe3 Remove some dead code and support -l as a tomo flag 2024-06-16 18:09:54 -04:00
9f8be0c502 Support library name as a separate environment field from namespace 2024-06-16 16:08:35 -04:00
7a53e10826 Fix issue with type namespaces not getting properly prefixed by library
namespace
2024-06-16 15:12:00 -04:00
729d856139 Better error reporting 2024-06-14 13:45:01 -04:00
6f11f5cbb4 Replace non-identifier characters with '_' when generating prefixes 2024-06-13 22:56:45 -04:00
81d55cacb7 Do dynamic library symbol prefixing using 'patchelf' 2024-06-13 21:20:50 -04:00
dab2c399f1 Split import/use into separate concepts 2024-06-13 13:17:51 -04:00
5757a5023c Support loading shared libraries 2024-06-13 12:59:19 -04:00
39ac885125 Change c/header transpilation order and fix some issues 2024-06-08 14:39:52 -04:00
f834073264 Fix issue with importing modules 2024-06-06 16:36:49 -04:00
fdaadee133 Fix imported symbol prefixes 2024-05-31 20:32:02 -04:00
8df8f5bb82 Changes to dependency tracking, compilation, and object linking 2024-05-28 00:30:09 -04:00
308946e794 Switch optional detection to use 'when .. is @..' instead of 'if .. :=
..'; also fixed a bug with stack memory in doctests
2024-05-24 00:03:46 -04:00
fba2b99b65 Support 'while when' 2024-05-23 12:40:21 -04:00
2d0834f1d8 Better error message 2024-05-22 13:34:32 -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
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
1df26851d7 Add syntax for "inline C(...)" 2024-05-18 16:31:34 -04:00
a1d18fd422 Add C string type 2024-05-18 14:38:41 -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
02fe49a764 Deprecate interfaces (RIP) 2024-05-12 20:13:19 -04:00
ff9f4fe6cf Add TODO message 2024-05-12 16:27:03 -04:00
3481042259 Simplify interfaces by requiring all functions are pointer methods 2024-05-12 15:56:24 -04:00
4dbe046866 Add interface fields 2024-05-12 15:18:46 -04:00
d143c72b22 WIP, but functional interfaces 2024-05-12 13:50:06 -04:00
c2daf6a928 Clean up 'when' syntax 2024-05-01 13:53:51 -04:00
2e27b88c1b Improved syntax for optionals 2024-04-30 13:18:47 -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
6308325252 Add constructor/casting for ints and nums 2024-04-23 13:12:49 -04:00
005427744d Prevent shadowing variables 2024-04-23 13:04:31 -04:00
7a175d3b45 Catch namespace clobbering of types 2024-04-23 13:03:47 -04:00
fbb25decf0 Support struct literals as constants 2024-04-23 12:50:30 -04:00
3590bf3407 Better imports for types 2024-04-21 14:58:33 -04:00
3b0dce04a0 Add heapify(), heap_push(), and heap_pop() 2024-04-19 13:29:04 -04:00
e98f6854f5 Use leading underscore for file-local variables and functions instead of
"private" keyword
2024-04-17 13:44:01 -04:00
369c601a56 Invert escaping so user symbols get prepended with "$" and builtin
symbols don't
2024-04-16 13:50:07 -04:00
fae2b2caa0 Add array:sample() 2024-04-02 23:28:59 -04:00