Commit Graph

175 Commits

Author SHA1 Message Date
6c5c759619 Update docs 2024-12-11 13:24:54 -05:00
37f3e91f6c Rename "NONE" to "none" 2024-12-07 16:04:25 -05:00
40c33987fa Bring back table[key] syntax 2024-11-30 15:50:54 -05:00
a68e9a1942 Update docs and minor bugfix 2024-11-29 20:01:56 -05:00
69613e6c03 Tweak serialization syntax 2024-11-29 19:57:50 -05:00
e2fa11b7fe Rename :serialize() -> :serialized() 2024-11-29 19:39:17 -05:00
0d6ef67a01 Add serialization docs 2024-11-29 19:36:17 -05:00
ac82e128aa Document integer division 2024-11-26 13:46:58 -05:00
32532836b9 Add NaN documentation 2024-11-25 15:57:56 -05:00
d4b10514fb Clean up some more null->none renames and fix the documentation. Also
change the literal syntax to `NONE:T` instead of `!T`
2024-11-24 16:36:27 -05:00
1e3fb8a2c0 Rename "NULL" to "NONE" 2024-11-24 16:18:21 -05:00
6ecf6a2724 Add clarification 2024-11-24 15:28:58 -05:00
f868d02b08 Add NULL as a syntax for null values. 2024-11-21 13:00:53 -05:00
4720ca7a5f Rename Text.utf8_bytes back to Text.bytes 2024-11-19 13:30:45 -05:00
ccada385c4 Add Text.at(i) for getting a single cluster 2024-11-19 13:27:27 -05:00
e97c3850b8 Document Text.slice() 2024-11-19 12:59:06 -05:00
0631e8eae8 Update docs 2024-11-17 14:50:37 -05:00
4231789b71 Rename datetime -> moment 2024-11-17 14:49:03 -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
b8d7eabc02 Deprecate bit-width integer/num literals in favor of using type
constructors
2024-11-05 15:18:32 -05:00
81a180eda0 RNG seed should be non-optional 2024-11-03 22:45:49 -05:00
fc9a6f1416 Add RNGs to the language 2024-11-03 22:37:48 -05:00
39a58bc129 Clean up behavior and syntax for unsigned bit shifts (<<<, >>>) 2024-11-03 16:06:26 -05:00
078b443185 Add a repeat keyword 2024-11-03 12:20:53 -05:00
0b7a0dd043 Change reducers to use (OP: ...) syntax and return an optional value 2024-11-02 20:22:19 -04:00
be2673ef2b Make Text:find() return an optional int 2024-11-02 13:51:58 -04:00
7cd67dd7f3 Add file globbing 2024-10-29 14:36:49 -04:00
ce2aebe910 Update docs to reflect deprecation of "&" stack references 2024-10-27 21:14:27 -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
5a80ff0db3 Update docs to standardize function signature formatting 2024-10-09 13:48:45 -04:00
63d48e9feb Update docs 2024-10-09 13:28:19 -04:00
074cf22ad4 Change function syntax from func(args)->ret to func(args -> ret) 2024-10-09 13:26:28 -04:00
7e7ac77021 Document reductions 2024-10-08 23:39:37 -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
2ba07c2cf5 Update docs 2024-09-30 13:58:43 -04:00
45425b77e4 Code cleanup 2024-09-30 02:03:03 -04:00
793717729a Parameterize with timezones 2024-09-30 01:53:39 -04:00
37780cb323 Update docs 2024-09-29 23:12:41 -04:00
d714519809 Fix some timezone issues 2024-09-29 23:09:37 -04:00
d0c015c74a Add extra example 2024-09-29 20:31:03 -04:00
4ce3f49357 Reference DateTime in the docs 2024-09-29 20:23:23 -04:00
bd54e51a85 Update docs 2024-09-29 20:23:00 -04:00
f03587be8d Document now() 2024-09-29 20:13:00 -04:00
05515d8645 Add DateTime 2024-09-29 20:06:09 -04:00
800e386105 Rename from_unsafe_text to without_escaping 2024-09-24 13:26:49 -04:00
89c427172a Support creating parent directories as needed (mkdir -p) and also set a
better default permission for new dirs
2024-09-23 14:53:44 -04:00
6caf6f9131 Add -I flag for installing 2024-09-22 14:59:40 -04:00
87c22f93b5 Update docs 2024-09-18 15:40:35 -04:00
171595fad1 Update docs 2024-09-16 16:18:01 -04:00
de49bc5bb3 Deprecate :or_else()/:or_fail()/:or_exit() in favor of the or operator 2024-09-16 16:06:19 -04:00
e31e3d1514 Update docs 2024-09-16 15:15:17 -04:00
b1f882af91 Update docs 2024-09-15 21:25:43 -04:00
6b5a9d65e3 Overhaul of how libraries are installed 2024-09-15 21:18:42 -04:00
f5aa0d6804 Link to C interop page 2024-09-15 17:35:08 -04:00
8ee23054bf Update Inline C syntax and documentation/tests 2024-09-15 17:34:34 -04:00
3cbc62ee43 Add docs on bytes 2024-09-15 17:00:25 -04:00
835eb7e896 Add optional:or_exit(...) 2024-09-15 16:42:42 -04:00
33876323aa Update path reading APIs to use optional values instead of erroring 2024-09-15 15:50:28 -04:00
9800784d41 Update docs 2024-09-15 15:35:47 -04:00
e422079fcc Add a Byte datatype 2024-09-15 15:33:47 -04:00
4cce1013a2 Update pointer docs on optionals 2024-09-13 20:25:09 -04:00
06e432aa8d Update docs a bit 2024-09-13 13:52:57 -04:00
9447ba8c4a Split pattern code into its own file 2024-09-13 13:34:04 -04:00
fc98d05ef9 Add sleep() 2024-09-12 03:20:17 -04:00
327d466b95 Table:get() now uses optional values instead of default or failure modes 2024-09-12 00:55:43 -04:00
c034175ae1 Add optional:or_else(fallback) and optional:or_fail(message) 2024-09-11 23:17:03 -04:00
62408e4efc Document iterators 2024-09-11 22:38:13 -04:00
3443edf760 Use optionals for iterators 2024-09-11 22:28:43 -04:00
7bd4c6a5b3 Placeholder docs for optionals 2024-09-11 15:12:00 -04:00
91f1d53a4e Update docs 2024-09-11 15:07:37 -04:00
a025fc55bf Update docs 2024-09-11 15:01:51 -04:00
c45afdabd5 Update docs 2024-09-11 14:59:42 -04:00
89234e34e2 Document :by_line() 2024-09-09 22:18:46 -04:00
e16792d5eb Add Text.starts_with() and Text.ends_with() 2024-09-09 05:31:25 -04:00
319d4306b5 Add paths docs 2024-09-09 05:00:12 -04:00
6eaf1405d0 Document README 2024-09-07 00:50:54 -04:00
44892df4c5 Add Text.trim() 2024-09-06 00:03:28 -04:00
04c8fb0362 Replace $Type with Type$info for builtin TypeInfos 2024-09-05 15:31:54 -04:00
d3c4f613ac Update to reflect code growth 2024-09-05 04:00:15 -04:00
3a556296b6 Add Text:repeat() 2024-09-04 21:22:03 -04:00
00543b4e87 Add Text.map(pat, fn) 2024-09-04 21:02:37 -04:00
93140c2896 Document CLI parsing 2024-09-04 16:29:18 -04:00
3513b94fc7 Unify parsing code to correctly handle parsing integers and numbers with
a &success boolean. Check for overflow as well.
2024-09-04 16:08:34 -04:00
11b484a6a2 Document ask() 2024-09-04 15:03:54 -04:00
f99e94c532 Document {nl} 2024-09-04 14:13:42 -04:00
df844946f7 Add Text:matches() for convenience and performance 2024-09-04 00:34:27 -04:00
b8bb4ada8b Add recursive mode to text replacement and update docs 2024-09-03 23:16:45 -04:00
02dbcbf8b5 Update docs 2024-09-03 22:59:36 -04:00
850fc8fbe1 Clean up text replacement API to use backrefs instead of match_chain() 2024-09-03 22:56:53 -04:00
c14ed3e3e7 Add Text.replace_all({Pattern:Text}) and tweak API for replacement to
support placeholders
2024-09-03 20:48:11 -04:00
91c5dc61c1 Change pattern syntax from [..pat] to {pat} 2024-09-03 14:27:09 -04:00
64143f0a13 Syntax overhaul (comments back to #, print statments to !!),
using `$/.../` for patterns and using a DSL for patterns
2024-09-03 13:19:41 -04:00
5feecff9d9 Deprecate Where and change channel API to use a boolean front value 2024-09-03 03:53:36 -04:00
7b44044b5e Updated docs 2024-09-03 01:18:22 -04:00
5441e6f287 Update docs 2024-09-03 00:54:48 -04:00
6c22999ede Add text slicing 2024-09-02 23:56:08 -04:00
ad51b208b4 Overhaul of import syntax. Now everything uses use: use foo, `use
./foo.tm`, `use <foo.h>`, `use libfoo.so`
2024-08-22 14:02:48 -04:00
5b945d8fc6 Remove unused parameter and add some docs on arrays 2024-08-20 16:00:58 -04:00