Commit Graph

144 Commits

Author SHA1 Message Date
d8afa73368 Improved inline C code: now uses C_code keyword and supports
interpolation with @
2025-04-06 21:43:19 -04:00
6cf980ea71 Add continue and break as aliases for skip/stop, also improve
keyword detection using a binary search
2025-04-06 20:07:09 -04:00
1d2e55f53d Allow uninitialized variables when there's a sensible empty value
(defaults to empty/zero value)
2025-04-06 19:20:07 -04:00
e87e6dabfb Insert then for clarity 2025-04-06 16:49:40 -04:00
6d12f1dce7 Merge branch 'main' into no-colons 2025-04-06 16:36:40 -04:00
52e50e58c6 Change Set syntax from {x} to |x| 2025-04-06 16:34:23 -04:00
6782cc5570 No more colons for blocks 2025-04-06 16:07:23 -04:00
2bb2ff871f Change method calls to use foo.baz() instead of foo:baz() 2025-04-06 14:20:18 -04:00
59845e610f Deprecate !! print statement 2025-04-06 13:40:17 -04:00
c9198cb480 More fixes 2025-04-05 02:29:11 -04:00
4299f6e243 More fixes 2025-04-05 02:26:18 -04:00
486f2153e8 Misc fixes 2025-04-05 02:13:24 -04:00
e2ddd23b55 Fix some of the constructor logic 2025-04-05 01:54:39 -04:00
7b735ab6fc Misc fixes 2025-04-04 18:29:09 -04:00
0b8074154e First working compile of refactor to add explicit typing to declarations
and support untyped empty collections and `none`s
2025-04-04 17:06:09 -04:00
2685c4c31f Move HTML into script 2025-04-02 16:19:57 -04:00
639de3e5df Update table syntax 2025-04-02 16:18:06 -04:00
6ec8f20fc5 Syntax change: table types are now: {K=V; default=...} and tables
use `{:K=V, ...; default=...}`
2025-04-02 16:14:20 -04:00
428f035d9e Add http-server example 2025-04-01 21:15:17 -04:00
f32d2a25c1 Rename default RNG to random 2025-04-01 21:03:45 -04:00
6328909e43 Tweak threads code 2025-04-01 20:59:20 -04:00
ceec22e117 Update README 2025-04-01 20:48:14 -04:00
22b65b1c5c Fix some pattern usages 2025-04-01 20:10:17 -04:00
dd4c25e6b7 Update patterns API and docs 2025-04-01 20:08:36 -04:00
57ff9fdfc6 Update pattern docs 2025-04-01 19:36:43 -04:00
6de2d68a70 Moved RNG out of the compiler and into a standalone library 2025-04-01 16:55:24 -04:00
a32c374756 Add core library to avoid having to explicitly import a bunch of
common libraries
2025-04-01 15:34:24 -04:00
d888bec409 Clean up and improve patterns 2025-04-01 15:15:28 -04:00
fd5380625e Rename P -> Pat 2025-04-01 14:31:18 -04:00
4d59fc2987 Move patterns into a module 2025-04-01 14:05:10 -04:00
7a172be621 Remove threads and mutexed data from the language in favor of a
module-based approach
2025-03-31 02:11:03 -04:00
d3655740cc Deprecate do_begin/do_end 2025-03-31 01:58:49 -04:00
982d67437f Add RW-lock 2025-03-30 21:08:11 -04:00
f3f57abbcf Add readme stuff about times 2025-03-30 17:43:12 -04:00
8cba6c3c24 Deprecate built-in Moment datatype in favor of a time module 2025-03-30 17:27:52 -04:00
38d6189d43 Further support for .dylib files on mac by changing syntax for library
imports to `use -lfoo` instead of `use foo.so`
2025-03-30 15:41:37 -04:00
3c52a75633 Deprecate custom printf specifiers in favor of print() function that
uses _Generic() to generically convert any value to a string or print as
a string.
2025-03-27 17:26:51 -04:00
1f9147187d Make docstring tests use an actual expression AST instead of text
matching
2025-03-25 15:40:59 -04:00
17a10a6887 Failure messages 2025-03-24 15:23:29 -04:00
b289b09bde Add some exit type methods 2025-03-24 15:20:19 -04:00
454cb1ce1d Change commands interface so it can either run or get result 2025-03-24 15:16:56 -04:00
e717f9f6aa Update readme 2025-03-21 22:15:59 -04:00
c951ee5915 Fix colorful 2025-03-21 20:04:39 -04:00
c153e05258 Fixes for ask() being optional and command success status 2025-03-21 18:07:17 -04:00
b468ee67f2 Fix allocations 2025-03-21 17:11:23 -04:00
22b9548b98 Update threads allocation code 2025-03-21 17:07:44 -04:00
e0a386fa8f Replace "begin"/"end" with "do_begin"/"do_end" 2025-03-19 16:22:29 -04:00
f3b8529e01 Add command and shell :by_line() 2025-03-19 16:17:44 -04:00
45cbcbce3b Pluralize pthreads 2025-03-18 17:31:17 -04:00
908373f619 FIx colorful 2025-03-17 22:58:36 -04:00