Commit Graph

15 Commits

Author SHA1 Message Date
Karl Seguin
21c9dde858 Zig 0.14 compatibility 2025-03-19 16:28:15 +01:00
Karl Seguin
fafd8c4af1 Improve format and re-add docstrings
Implements RP suggestions.
2025-02-06 09:57:04 +08:00
Karl Seguin
3d66758507 zig fmt 2025-02-01 15:38:08 +08:00
Karl Seguin
fc0ec860b0 Tweak generate.Tuple and generate.Union
Leverage comptime fields to give generated Tuple a default value, allowing
TupleT and Tuple to be merged.

Only call generate.Tuple on the final output. This eliminates redundant
deduplication, and results in a simpler API (nested types just need to expose
a natural Zig tuple).

generate.Union leverages the new Tuple and removes unused features.
2025-02-01 14:53:00 +08:00
Pierre Tachoire
78467ff209 generate: handle more than 100 in itoa 2024-06-19 11:42:19 +02:00
Pierre Tachoire
c555c325e9 upgrade to zig 0.12
0.12.0-dev.3439+31a7f22b8
2024-06-18 16:13:26 +02:00
Pierre Tachoire
2a3a243d1c add AGPL license header in zig files 2024-05-13 20:51:36 +02:00
Francis Bouvier
e06922df75 generate: return const string in itoa utils
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-09-25 16:41:32 +02:00
Francis Bouvier
b5b4659c87 backport some node_lexbor modifications
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-09-21 17:05:38 +02:00
Pierre Tachoire
b4e7da3e16 0.11: generate: upgrade according with structs changes 2023-09-19 17:29:25 +02:00
Pierre Tachoire
e64ffa0c27 0.11: run zig fmt 2023-09-19 17:29:25 +02:00
Francis Bouvier
e0eee45156 Applies changes from jsruntime Self and mem_guaranteed
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-06-02 16:54:57 +02:00
Francis Bouvier
4677968c85 Remove unecessary comptime keyword in generate
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-05-23 16:59:50 +02:00
Francis Bouvier
76c8d8594c Add generate function for Tuple
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-05-23 15:23:09 +02:00
Francis Bouvier
98796d9512 Add generate Union function
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-05-15 18:48:35 +02:00