Commit Graph

260 Commits

Author SHA1 Message Date
fba2b99b65 Support 'while when' 2024-05-23 12:40:21 -04:00
5b1960859f Hook up Text.has(), Text.trimmed(), Text.without() 2024-05-20 15:19:31 -04:00
1924f75647 Support corecursive structs 2024-05-14 13:30:46 -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
3c0a8f0b89 Syntax tweak: use ':' for blocks 2024-04-28 14:58:55 -04:00
6308325252 Add constructor/casting for ints and nums 2024-04-23 13:12:49 -04:00
5fd85d7e0b Add Num.mix() 2024-04-22 14:49:36 -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
63e6ba596a Change table syntax to {key:value} instead of {key=>value} 2024-04-13 13:39:44 -04:00
6c01eef851 Introducing the main() function 2024-04-12 13:09:31 -04:00
0f9c1f4eb4 Add corecursive func test 2024-04-10 11:53:18 -04:00
bec67efb11 Add test for array:sample() 2024-04-02 23:41:26 -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
d94053ca77 Add array:reversed() 2024-03-26 14:59:52 -04:00
5157988efa Implement 'extern' functionality 2024-03-24 15:06:59 -04:00
5f3dac786c Clean up codegen for empty tagged data 2024-03-17 22:17:21 -04:00
6905f759e5 Empty enums use a singleton instead of a constructor 2024-03-17 22:06:55 -04:00
47f627f5dd Update test 2024-03-17 21:48:53 -04:00
ccba8abf73 Add tests for nested comprehensions 2024-03-17 15:28:46 -04:00
9932841530 Improve comprehensions for both arrays and tables 2024-03-17 14:46:36 -04:00
5c2bb00baf Add conditional loop comprehension 2024-03-17 12:50:17 -04:00
341087026c More array tests 2024-03-17 12:49:28 -04:00
8847eaa660 Bugfix for looping 2024-03-14 02:44:37 -04:00
89d7098654 Add test for secret structs 2024-03-09 19:06:09 -05:00
170c0a4197 Add lang tests 2024-03-09 19:03:35 -05:00
2b83ab279d Add langs to the language 2024-03-09 18:22:12 -05:00
5cfc01ac09 Add function/caching test 2024-03-09 16:46:25 -05:00
00d4e98ba1 Extra lambda test 2024-03-09 16:08:03 -05:00
b04a1b3090 Implement lambdas and closures 2024-03-09 16:03:38 -05:00
a13f642679 Tweaking tests 2024-03-09 14:12:15 -05:00
1627a913a4 Lambda fixes/improvements 2024-03-09 14:09:18 -05:00
dfd38cdb69 Simple lambda test 2024-03-09 14:03:42 -05:00
06549741aa Tweaking array tests 2024-03-07 12:21:39 -05:00
6583221c0b More tests 2024-03-07 12:18:01 -05:00
cd1785b5cb Added test 2024-03-07 12:07:14 -05:00
4e6001fa55 Add num32 test 2024-03-07 12:00:16 -05:00
558c8588ee Fix default values for structs 2024-03-05 12:55:38 -05:00
0b7ca098ae Fix some bugs relating to NUL termination of strings 2024-03-04 01:34:12 -05:00
1f6aa4cac7 Add methods for text:clusters(), text:codepoints(), text:bytes() 2024-03-03 19:40:01 -05:00
dc04286e3a Unicode normalization for equality, hashing, tests, and printing 2024-03-03 19:12:53 -05:00
d8a533cdf0 Rename string test to text 2024-03-03 18:19:56 -05:00
8fab88c56f Rename Str -> Text 2024-03-03 18:15:45 -05:00
07f0a18136 Fix endptr stuff in parser 2024-03-03 17:52:22 -05:00
0fe255a7c1 Fix up unicode escapes 2024-03-03 17:49:40 -05:00
0c51ca73e0 String tests 2024-03-03 17:30:31 -05:00
94ab8c0ac6 Add some more tests 2024-03-03 17:24:46 -05:00
6a39b0cd3f Num tests 2024-03-03 17:23:54 -05:00
c607b97732 Add Num.near() function 2024-03-03 17:14:11 -05:00
c5f315e338 Num methods 2024-03-03 16:44:45 -05:00
0256972ca6 Fix test 2024-03-03 13:38:27 -05:00
bf5a725345 Definitively go with "Int" and "Num" over "Int64" and "Num64", plus add
Int__bits()
2024-03-03 13:37:05 -05:00
18db0fcee8 Add test for table iteration 2024-02-25 14:41:28 -05:00
4fc026a727 Add tests for '#' on collections 2024-02-25 14:38:04 -05:00
d06c63c70c Table field access for .keys, .values, .default, .fallback 2024-02-25 14:35:25 -05:00
65f684fb6a Rename file extensions 2024-02-24 16:07:52 -05:00
71b7392b08 Enum table test 2024-02-24 15:32:55 -05:00
0591d3db3a Rename folder 2024-02-24 15:32:02 -05:00