Commit Graph

41 Commits

Author SHA1 Message Date
f51acef40e Overhaul of Path so it uses root and array of components instead of
stringly typed
2025-03-15 14:22:11 -04:00
bae83f17cf Simplify RNG seeding 2025-03-12 19:32:04 -04:00
e7035e6a86 Clean up doctest code a bit 2025-03-11 14:23:41 -04:00
9885ab1163 For doctests, only print code if there's no expected value. If there's
an error, show the mismatch below the stack trace.
2025-03-10 23:46:26 -04:00
6abd4e8024 Add fail_text() so there isn't a hacky/broken fail() with promotion to
CString
2025-03-09 17:30:22 -04:00
bae4ae1a6a Correctly set locale when starting the program 2025-03-07 14:28:28 -05:00
3ea8540ec6 Incremental improvement to parsing none for optional arguments 2025-03-07 12:26:22 -05:00
147e0f0269 Overhaul of constructors, making it more consistent and correct. Also
changed T(), T, T_t, T_s type names to T(), T$$info, T$$type, T$$struct
for unambiguity
2025-03-05 18:20:54 -05:00
44b0db6882 Fix parsing for CLI tables and arrays 2025-03-03 12:53:02 -05:00
bd4ee6a429 Add better error checking for parsing program --array=1 2 3 2025-03-02 01:11:57 -05:00
afed636252 Handle case where file can't be found 2025-02-28 18:48:36 -05:00
39e169d5b4 Check for missing argument 2025-02-28 18:15:15 -05:00
12569cb933 Improved call stacks (using addr2line still) 2025-02-26 16:38:22 -05:00
851ec4e29d Fix non-colorized doctest output newlines 2025-02-25 01:05:58 -05:00
7a6abd4f8e Tweak function registration API 2025-02-21 14:59:14 -05:00
58af4226f8 Hide '_.' from stack backtrace 2025-02-04 14:18:29 -05:00
f93dde1449 Overhaul of Text implementation to be more like Cords and have much
better performance for long sequences of repeated concatenation.
2025-01-23 15:33:56 -05:00
b025cf269d Use holding blocks for mutexed data instead of lambdas 2025-01-02 20:29:55 -05:00
be384c0caa Replace threads with generic mutexed datastructures. 2025-01-02 16:24:07 -05:00
221f4ad7ea Default RNG now uses static, thread-local memory instead of heap
allocated
2024-12-19 15:16:33 -05:00
d3eb8b8339 Have ask() return an optional text 2024-12-15 16:53:18 -05:00
1c261c33bd Respect $NO_COLOR for running programs 2024-12-08 15:18:26 -05:00
5b661403e1 Support single-argument enums 2024-11-30 17:43:02 -05:00
eedfe7ca95 Support parsing enums as arguments as long as they have no members 2024-11-30 17:32:07 -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
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
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
fc9a6f1416 Add RNGs to the language 2024-11-03 22:37:48 -05:00
7ddb2ffb02 Fix per-thread RNG 2024-11-03 16:21:40 -05: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
9ebb039a81 Fix up some GCC compiler flag options for LTO and inlining 2024-10-29 23:14:31 -04:00
33f1af8e71 Fixes for places that used Text$find() 2024-10-27 20:45:10 -04:00
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -04:00
23af8b64a3 Overhaul of argument parsing code 2024-09-28 15:17:09 -04:00
0622f758f7 Improved support for CLI arg parsing 2024-09-27 13:56:56 -04:00
c9ff2b0a8a Move USE_COLOR into stdlib 2024-09-18 01:08:36 -04:00
c455e7b67d Rename builtins/ -> stdlib/ 2024-09-13 20:18:08 -04:00