Commit Graph

19 Commits

Author SHA1 Message Date
1f9147187d Make docstring tests use an actual expression AST instead of text
matching
2025-03-25 15:40:59 -04:00
645d66e0de Change table syntax to {key=value} and {:K,V}/{K,V} 2025-01-12 16:49:58 -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
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
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
43f4f3610e For single-member structs/enums, don't print the member name 2024-09-12 04:09:52 -04:00
327d466b95 Table:get() now uses optional values instead of default or failure modes 2024-09-12 00:55:43 -04:00
b37bd70b60 For tables, deprecate support for square bracket indexing and .default
values, replacing them with a `:bump()` function for tables with numeric
values. This means that counters can be implemented easily without the
need to mask complexity.
2024-08-10 16:03:41 -04:00
1924f75647 Support corecursive structs 2024-05-14 13:30:46 -04:00
2e27b88c1b Improved syntax for optionals 2024-04-30 13:18:47 -04:00
3c0a8f0b89 Syntax tweak: use ':' for blocks 2024-04-28 14:58:55 -04:00
63e6ba596a Change table syntax to {key:value} instead of {key=>value} 2024-04-13 13:39:44 -04:00
6c01eef851 Introducing the main() function 2024-04-12 13:09:31 -04:00
89d7098654 Add test for secret structs 2024-03-09 19:06:09 -05:00
558c8588ee Fix default values for structs 2024-03-05 12:55:38 -05:00
8fab88c56f Rename Str -> Text 2024-03-03 18:15:45 -05:00
65f684fb6a Rename file extensions 2024-02-24 16:07:52 -05:00