Commit Graph

1432 Commits

Author SHA1 Message Date
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
038a9f548e Add some vector methods 2025-03-10 16:02:16 -04:00
e2fd5b49fd Fix some issues with compile error reporting 2025-03-10 16:01:56 -04:00
a6d48e46c1 Fixes for examples 2025-03-10 13:42:57 -04:00
839abfc294 Be more conservative about disallowing constructors as top-level
initializers
2025-03-10 13:40:58 -04:00
7f75a34bce Fix/update colorful 2025-03-10 13:33:53 -04:00
7c68fc9585 Fix some scoping issues with type methods and enum returns 2025-03-10 13:33:31 -04:00
eb8b501b95 For langs, do promotion to Text and text interpolation automatically and without adding quoting. 2025-03-10 12:55:01 -04:00
793cda6013 Deprecate old constructor logic 2025-03-10 12:44:23 -04:00
39dd1ca27d Add convert keyword for defining conversions 2025-03-10 12:42:45 -04:00
806e0d0554 Make it a compiler error to have an always-aborting function whose
return type is Void
2025-03-09 18:18:13 -04:00
7fbba1b790 Check for main func return values (and error if it has any) 2025-03-09 18:17:57 -04:00
46f9cebad1 Add _Noreturn hint for Abort functions 2025-03-09 18:11:40 -04:00
94ed28b4d1 Add better typechecking for Abort (and add Abort as a user-reachable
type) and check for unreachable code
2025-03-09 17:52:48 -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
a24e521fa7 Have floating point modulus use euclidean division 2025-03-09 17:02:48 -04:00
50f8fdd007 Fix some integer stuff that was being implicitly downcast to 32-bit 2025-03-09 16:14:53 -04:00
29358b9cd0 Add some missing modulus and conversion methods for floats/ints 2025-03-09 15:56:44 -04:00
2ebe7893fe Add text padding functions: :left_pad(), :right_pad(), :middle_pad() 2025-03-07 16:56:23 -05:00
9b485be020 Fix for text uppercasing in test 2025-03-07 16:55:48 -05:00
60e971ff7a Roll back number formatting change 2025-03-07 16:55:35 -05:00
7eb1fbf5d2 Add proper language support for case operations on text 2025-03-07 16:19:12 -05:00
d590b9d386 Fix number precision stuff 2025-03-07 15:30:26 -05:00
17a6313d28 Set locale when running tests 2025-03-07 15:16:14 -05: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
1c90901553 Add 'when' test 2025-03-06 18:39:23 -05:00
73e559fbe4 Support 'when' for literal values with equality checking 2025-03-06 18:37:08 -05:00
09423f6d42 Tweak function type spacing when converting it to text 2025-03-05 18:47:05 -05:00
59a0fe7c13 Better error reporting/defaults for -C flag 2025-03-05 18:44:13 -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
2c4324670f Add print() as alias for say() 2025-03-05 11:35:53 -05:00
899e2cd3f1 Further shorten docs 2025-03-05 00:40:52 -05:00
9a3162633d Shorten API docs 2025-03-05 00:40:00 -05:00
dba2d62d15 Fix links 2025-03-05 00:22:40 -05:00
0a3ad8ba91 Alphabetize and index functions 2025-03-05 00:21:30 -05:00
665050940f Standardize API doc heading levels 2025-03-05 00:11:18 -05:00
f330f06c21 Add recursive argument to text:each() and text:map(), plus update docs 2025-03-03 13:45:30 -05:00
80475ad02d Update CLI API 2025-03-03 12:53:15 -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
cb7a20117c Tweak usage so it's a bit more correct for this stuff 2025-03-02 00:49:35 -05:00
14c90bc9b8 Add -r|--run flag to run installed tomo libraries 2025-03-02 00:31:03 -05:00
d2cf499a1f Add colorful DSL 2025-03-02 00:07:54 -05:00
d8399bb044 Bugfix for recursive replacement on Text.replace_all() 2025-03-02 00:02:23 -05:00
4be1840907 Fix docs for recursive replace_all 2025-03-01 23:27:08 -05:00
5cb66f2ba8 Bugfix for namespaced declarations that initialize and static
definitions
2025-03-01 22:14:32 -05:00
ba1abd4615 Bugfix for lang.text methods 2025-03-01 22:01:27 -05:00
37e96dbda5 Change lang.text_content to lang.text 2025-03-01 16:53:58 -05:00
b0483e8429 Check for null 2025-03-01 16:15:46 -05:00