Commit Graph

88 Commits

Author SHA1 Message Date
fed63d8ea1 Tweak to how 'Type' appears as a type 2024-11-29 20:04:44 -05:00
bb57aeb744 Fix Type:as_text() 2024-11-29 20:03:20 -05:00
e5e9c8b46c Make Int serialization more compact 2024-11-29 19:32:47 -05:00
725bc9809f Bugfix for enum tags 2024-11-29 18:45:44 -05:00
f66f8ad711 Add serialization and deserialization 2024-11-29 18:09:12 -05:00
4b5e4cd1f2 Change how types handle metamethods 2024-11-29 12:55:14 -05:00
27da373754 Micro-optimizations for division and modulus 2024-11-25 14:11:06 -05:00
1e3fb8a2c0 Rename "NULL" to "NONE" 2024-11-24 16:18:21 -05:00
0e10313d64 Switch NaN to be identical to the null value 2024-11-24 16:13:23 -05:00
295487b627 Fix ordering of Nums that have NaNs 2024-11-23 13:25:16 -05:00
f868d02b08 Add NULL as a syntax for null values. 2024-11-21 13:00:53 -05:00
90573ba7a1 Tweak behavior for printing recursive structures 2024-11-19 15:45:33 -05:00
2c904ff173 Go back to stringifying integers/num32s/bytes without the type
constructor.
2024-11-19 13:41:52 -05:00
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