Commit Graph

200 Commits

Author SHA1 Message Date
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
3c64616ac1 Bugfix for doctest assignments that promote 2024-04-23 12:54:56 -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
3f10460a6e Support loading imports as top-level statements 2024-04-21 11:22:11 -04:00
b7881a480f Bugfix for enum num types 2024-04-20 15:18:20 -04:00
a4ffdb1798 Fix no-argument main funcs 2024-04-20 15:00:31 -04:00
ff3e1c1328 Move arg parsing to inline logic in main() function 2024-04-20 14:55:27 -04:00
3b0dce04a0 Add heapify(), heap_push(), and heap_pop() 2024-04-19 13:29:04 -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
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
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
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
4f514378ac Fix corecursive functions and global variables 2024-04-10 11:49:43 -04:00
6eb680f1b7 Add array:sample(n, weights) 2024-04-02 23:40:18 -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
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
5157988efa Implement 'extern' functionality 2024-03-24 15:06:59 -04:00
a29d2ed6d1 Improve COW/etc handling for update assignments 2024-03-24 14:28:20 -04:00
20d75db79a Fix/improve assignment to arrays and tables 2024-03-22 13:53:23 -04:00
f21fc700bb Handle type namespaces in other modules 2024-03-22 01:52:00 -04:00
4592e95fa9 Pull namespaces from the type binding 2024-03-21 13:33:10 -04:00
f142b4ae53 Fix issue with quoted string cords 2024-03-21 13:32:52 -04:00
a47bd2d569 Improvements to module imports 2024-03-19 23:29:32 -04:00
80ea0f8507 Corecursive modules 2024-03-19 14:30:40 -04:00
71f4da18f2 Prevent mulitple imports 2024-03-19 14:23:48 -04:00
adbb07fdc2 Module imports 2024-03-19 14:22:03 -04:00
7b444cd824 Insert semicolons where they should go 2024-03-18 18:06:20 -04:00
43ce0f4c1b Fix array:clear() 2024-03-18 18:03:41 -04:00
df2e01c15e Add some better file comments 2024-03-18 12:47:07 -04:00
0f70411cbf Fix doctests with functions 2024-03-17 22:08:05 -04:00
03b223ac51 Fix switch statement 2024-03-17 21:47:40 -04:00
655b677895 Preface symbols with file prefix 2024-03-17 20:40:40 -04:00
46ee3fc0ef Temporary fix for newlines between statements 2024-03-17 15:59:06 -04:00
a0faef7102 Support nested comprehensions 2024-03-17 15:26:25 -04:00
9932841530 Improve comprehensions for both arrays and tables 2024-03-17 14:46:36 -04:00
46decc9232 Skip/stop for 'while' loops 2024-03-15 13:45:25 -04:00
bc92bb72c8 Simplify loop code 2024-03-15 13:38:25 -04:00
5cdaf3e3fa Fancy skip/stop implementation 2024-03-15 13:35:30 -04:00
9454c5fa0d Properly compile conditionals with abort types in them 2024-03-15 13:07:41 -04:00