Commit Graph

75 Commits

Author SHA1 Message Date
ccada385c4 Add Text.at(i) for getting a single cluster 2024-11-19 13:27:27 -05:00
4231789b71 Rename datetime -> moment 2024-11-17 14:49:03 -05:00
c1ae79ac3c Tweak hash function 2024-11-17 14:33:17 -05:00
3edbba7032 Fix up recursive pointer text representation 2024-11-12 00:09:47 -05:00
a4d11f51ff Fixes for 'if' blocks with nested 'else if' that declare variables 2024-11-12 00:04:56 -05:00
06d3ec1380 Bugfix for fixed-size integer ranges 2024-11-09 16:55:44 -05:00
898bee1581 Introduce a Match struct to represent pattern matching results, which
improves the usability of a lot of the APIs. Also bugfix some issues
with ranges.
2024-11-09 16:27:54 -05:00
7a4f2e73ad Rename from_text() to parse() 2024-11-09 15:11:11 -05:00
a8a35ea688 Add Byte.hex() 2024-11-05 15:33:08 -05:00
b8d7eabc02 Deprecate bit-width integer/num literals in favor of using type
constructors
2024-11-05 15:18:32 -05:00
da5bd87c13 Minor code cleanup 2024-11-04 13:06:11 -05:00
20096c8e81 Fix for blocking reads 2024-11-04 01:37:51 -05:00
aabc0a3cff Update text API to use optional returns when applicable 2024-11-04 01:17:47 -05:00
b69d14b894 Add some missing functionality for Bytes 2024-11-04 01:12:37 -05:00
fc9a6f1416 Add RNGs to the language 2024-11-03 22:37:48 -05:00
52e3d3fe6f Update Path:read_bytes() API to take a byte count 2024-11-03 16:58:12 -05:00
7ddb2ffb02 Fix per-thread RNG 2024-11-03 16:21:40 -05:00
5e767e1c38 Make Int.random() use thread-local state 2024-11-03 16:11:05 -05:00
7ccb7a8a9b Use an RNG parameter for array:random(), array:shuffle(),
array:shuffled()
2024-11-03 16:10:03 -05:00
39a58bc129 Clean up behavior and syntax for unsigned bit shifts (<<<, >>>) 2024-11-03 16:06:26 -05:00
792743dff3 Add Int64:unsigned_left_shift() and :unsigned_right_shift() 2024-11-03 15:27:44 -05:00
87176ead2d Add wrapping plus/minus for fixed-size integers 2024-11-03 15:04:28 -05:00
985011aed8 Update header 2024-11-02 13:53:22 -04:00
be2673ef2b Make Text:find() return an optional int 2024-11-02 13:51:58 -04:00
a60e0e5e9a Remove unused args for end_test() 2024-10-31 01:30:12 -04:00
bbbfc692fc Tweak doctest output so it outputs source info 2024-10-31 01:28:58 -04:00
bdca4fc6e1 Fix header inline functions to use extern inline and some GCC magic 2024-10-30 13:59:15 -04:00
9ebb039a81 Fix up some GCC compiler flag options for LTO and inlining 2024-10-29 23:14:31 -04:00
7cd67dd7f3 Add file globbing 2024-10-29 14:36:49 -04:00
33f1af8e71 Fixes for places that used Text$find() 2024-10-27 20:45:10 -04:00
052316261a Finish deprecating stack refs with & 2024-10-27 20:35:30 -04:00
0d615443dc Update DateTime API to have separate methods for getting each component
instead of get(...)
2024-10-27 18:41:00 -04:00
f4d22958f7 Add an include 2024-10-27 12:58:37 -04:00
213ae74e32 Minor imports cleanup 2024-10-25 14:13:24 -04:00
29d1d74d7a Move unistr header out of tomo header 2024-10-25 14:05:07 -04:00
67702b2d77 Fix issue with non-ID chars in filenames 2024-10-10 01:09:17 -04:00
839c1983a0 Reduce padding needed for optional types and clean up some redundant
type padding
2024-10-08 21:10:36 -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
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
54e336e30f Update array:sample() to use optional weights and do more error checking 2024-10-02 14:42:51 -04:00
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -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
d714519809 Fix some timezone issues 2024-09-29 23:09:37 -04:00
05515d8645 Add DateTime 2024-09-29 20:06:09 -04:00
23af8b64a3 Overhaul of argument parsing code 2024-09-28 15:17:09 -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