Commit Graph

399 Commits

Author SHA1 Message Date
831ba787bb Add license 2024-04-19 13:41:38 -04:00
78bcce2872 Heap cleanup 2024-04-19 13:40:05 -04:00
b25e8e86d4 Clean up heap code 2024-04-19 13:36:19 -04:00
3b0dce04a0 Add heapify(), heap_push(), and heap_pop() 2024-04-19 13:29:04 -04:00
072bd523b9 Updated readme 2024-04-17 14:13:53 -04:00
85a7f9e1c1 Fix arg parsing 2024-04-17 13:52:07 -04:00
e98f6854f5 Use leading underscore for file-local variables and functions instead of
"private" keyword
2024-04-17 13:44:01 -04:00
35339e2aa0 Fix globals issue 2024-04-16 14:02:39 -04:00
1e283dd310 Exit with 1 on failure 2024-04-16 13:56:19 -04:00
f290edbad9 Fix globals 2024-04-16 13:56:11 -04:00
369c601a56 Invert escaping so user symbols get prepended with "$" and builtin
symbols don't
2024-04-16 13:50:07 -04:00
98b93bb159 Remove (void)argc/v 2024-04-16 12:56:59 -04:00
d491235812 Run tests in random order 2024-04-15 20:34:48 -04:00
4c5dc9443e Rename SSS_HASH_VECTOR -> TOMO 2024-04-14 21:58:49 -04:00
c8e2f0faad Rudimentary stack traces 2024-04-13 15:20:42 -04:00
fab547ebc8 Fix issue with empty command line args 2024-04-13 15:03:37 -04:00
63e6ba596a Change table syntax to {key:value} instead of {key=>value} 2024-04-13 13:39:44 -04:00
cc07637134 Tweak command line arguments (add -e and --help) 2024-04-12 14:36:25 -04:00
a8dfeca8cf Update readme 2024-04-12 14:28:41 -04:00
43eaad3571 Update readme 2024-04-12 14:26:52 -04:00
48d272c3fa Support Text arrays as main function arguments 2024-04-12 13:43:23 -04:00
6c01eef851 Introducing the main() function 2024-04-12 13:09:31 -04:00
17cb6ffd88 Add Bool.from_text() 2024-04-10 13:33:40 -04:00
e6f78f1d89 Add from_text() method for ints/nums 2024-04-10 13:23:49 -04:00
ccb9e36704 Fix empty string check 2024-04-10 11:54:09 -04:00
0f9c1f4eb4 Add corecursive func test 2024-04-10 11:53:18 -04:00
4f514378ac Fix corecursive functions and global variables 2024-04-10 11:49:43 -04:00
438edf45c2 Hook things up so the compiler can run better without installing 2024-04-03 03:08:40 -04:00
5fc433e714 Dynamically link against .so file instead of statically linking against
object files
2024-04-03 03:04:42 -04:00
c3a47751a5 Publicly export CORD_asprintf symbol for libfile 2024-04-03 03:04:14 -04:00
f5bd75295d Seed RNG on each run 2024-04-02 23:43:57 -04:00
bec67efb11 Add test for array:sample() 2024-04-02 23:41:26 -04:00
6eb680f1b7 Add array:sample(n, weights) 2024-04-02 23:40:18 -04:00
728cd8026c Bugfixes for long strings in docstring tests 2024-04-02 23:40:03 -04:00
fae2b2caa0 Add array:sample() 2024-04-02 23:28:59 -04:00
95100469b6 Add array:sorted() 2024-04-02 13:13:33 -04:00
c73e96ff91 Add comparison operator <> and array method to sort by a custom
comparison function
2024-04-02 13:08:06 -04:00
b6534ce347 Implement REPL 'while' 2024-03-31 13:13:08 -04:00
56a44684fa More errors 2024-03-30 13:43:24 -04:00
f1d4f928e4 Use generic cord/compare functions 2024-03-30 13:42:24 -04:00
0ea5fe933a Tweak repl multi-line parsing 2024-03-30 13:35:11 -04:00
e5880b4616 REPL 'if' 2024-03-30 13:24:39 -04:00
42084fda6f Fix indexing errors 2024-03-30 13:18:19 -04:00
7048c827c0 More functionality for repl 2024-03-30 13:16:52 -04:00
1ef1b15fd3 More repl functionality/fixes 2024-03-30 12:47:20 -04:00
4192e123e6 Bugfix for color 2024-03-30 12:17:39 -04:00
838c9963fc Adding a REPL 2024-03-30 12:14:24 -04:00
04d9adc813 Switch naming convention to use '$' in symbols more 2024-03-29 12:54:31 -04:00
d94053ca77 Add array:reversed() 2024-03-26 14:59:52 -04:00
135e23094c Improve codegen for table/array iteration by inlining the iteration
macros
2024-03-26 14:02:48 -04:00