Commit Graph

1136 Commits

Author SHA1 Message Date
5103fde1c5 Add a test for optionals to ensure they size correctly 2024-10-08 13:39:45 -04:00
954ed42934 Simplify enum/struct codegen by using reusable general-purpose
metamethods for structs/enums instead of metamethod codegen for each struct/enum
defined.
2024-10-08 13:35:18 -04:00
6b9055db7c Deprecate readonly pointers for now 2024-10-04 13:21:56 -04:00
8f346b48aa Fix up some compiler flags around floating point numbers so they work
better with -Ofast and have more standardized behavior
2024-10-03 14:19:23 -04:00
35a19a2d1b Bugfix for Int*Num typechecking 2024-10-03 13:46:59 -04:00
54e336e30f Update array:sample() to use optional weights and do more error checking 2024-10-02 14:42:51 -04:00
c8c137639c Clean examples when doing make clean 2024-09-30 14:40:41 -04:00
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -04:00
2ba07c2cf5 Update docs 2024-09-30 13:58:43 -04:00
ec0606091b Add datetime literal and tests 2024-09-30 13:55:55 -04:00
45425b77e4 Code cleanup 2024-09-30 02:03:03 -04:00
c5ff7d86b9 Bugfix DateTime.new() 2024-09-30 01:55:24 -04:00
793717729a Parameterize with timezones 2024-09-30 01:53:39 -04:00
37780cb323 Update docs 2024-09-29 23:12:41 -04:00
d714519809 Fix some timezone issues 2024-09-29 23:09:37 -04:00
d0c015c74a Add extra example 2024-09-29 20:31:03 -04:00
4ce3f49357 Reference DateTime in the docs 2024-09-29 20:23:23 -04:00
bd54e51a85 Update docs 2024-09-29 20:23:00 -04:00
076f87361d Support using DateTime() as a constructor 2024-09-29 20:19:46 -04:00
f03587be8d Document now() 2024-09-29 20:13:00 -04:00
05515d8645 Add DateTime 2024-09-29 20:06:09 -04:00
8f7f66d7c8 Cleanup and fixes 2024-09-28 15:28:54 -04:00
23af8b64a3 Overhaul of argument parsing code 2024-09-28 15:17:09 -04:00
566356d82e Fix parsing of REPL code 2024-09-28 14:45:15 -04:00
8f717fe9f4 Redefine NULL_* values as #defines so they can be constant initializers 2024-09-28 14:17:17 -04:00
794c1343ba Define some optional types 2024-09-28 02:07:37 -04:00
e63372452e Define OptionalPath_t 2024-09-28 02:06:47 -04:00
ca93e6f3cb Simplify code by making name := use ... a Use AST instead of a Declare 2024-09-27 14:56:24 -04:00
9b15799e73 Support iterating over thunks that always return non-null values (useful
for infinite loops)
2024-09-27 14:45:06 -04:00
b26da60f2f Better error message for duplicate fn arg name 2024-09-27 14:22:36 -04:00
0622f758f7 Improved support for CLI arg parsing 2024-09-27 13:56:56 -04:00
b138893c40 Support or= and and= for optional types 2024-09-27 13:13:30 -04:00
ed8b8901c0 Add '$' prefix on all user code 2024-09-24 14:54:22 -04:00
800e386105 Rename from_unsafe_text to without_escaping 2024-09-24 13:26:49 -04:00
0609a26f31 Fix type promotion for :divided_by() and :scaled_by() metamethods 2024-09-24 13:17:44 -04:00
a56ce0435d Support Int(yes/no) 2024-09-24 12:40:56 -04:00
d2ef94104e Convert used URLs to hashes 2024-09-23 22:42:15 -04:00
89c427172a Support creating parent directories as needed (mkdir -p) and also set a
better default permission for new dirs
2024-09-23 14:53:44 -04:00
b432fc82c7 Add shell escaping for arrays of text 2024-09-23 14:36:20 -04:00
62745cda95 Use original folder names more 2024-09-22 15:07:44 -04:00
6caf6f9131 Add -I flag for installing 2024-09-22 14:59:40 -04:00
87c22f93b5 Update docs 2024-09-18 15:40:35 -04:00
7f5af625e5 Support useing .c files and .S files (assembly) 2024-09-18 15:39:22 -04:00
2d78f11400 Remove coroutine example for now 2024-09-18 15:38:42 -04:00
63affe6d24 Support use "foo.h" 2024-09-18 14:58:19 -04:00
693caebcfb Remove unused code 2024-09-18 14:03:54 -04:00
0ed4f624a9 Add README for navigating stdlib 2024-09-18 01:20:14 -04:00
976e73f4a2 Move Match() to the right place 2024-09-18 01:11:50 -04:00
c00c6d3e02 Move List reversal to the right place 2024-09-18 01:10:34 -04:00
a8a69ec1e2 Remove dead code 2024-09-18 01:09:59 -04:00