3c89cc4e99
Remove class desugaring
2024-11-03 11:55:05 +00:00
c6f0cf6381
Recurse on subexpression when desugaring
2024-11-02 17:24:40 +00:00
721d0a2b49
Use runtime asserts instead of error returns in desugar.c
...
The error paths are not tested and are mostly for NULL allocations so
it makes more sense to use runtime asserts for now for simplicity's
sake.
2024-10-27 02:15:34 +00:00
0ecab6c142
Rename free procedures
2024-10-26 19:36:59 +01:00
e508cc62f5
Rename structures and free procedures to reflect module change
2024-10-26 19:33:10 +01:00
3a578e190f
Assert success of alloc in deep_copy_* loops
...
Returning false here would leave the destination sequence in an
invalid state and may lead to leaked memory; until this is solved
properly it is safer to assert().
2024-10-26 19:21:05 +01:00
ecfbf2e5c4
Implement (non-negated) class desugaring
2024-10-26 19:21:05 +01:00
07fc46ce38
Add success result to desugar_regex()
2024-10-26 19:21:05 +01:00
ac4e9911d8
Implement question mark desugaring
2024-10-26 19:21:05 +01:00
7e7a7f1cb7
Implement plus desugaring
2024-10-26 19:21:05 +01:00
9494c08f36
Write invariant tests for desugaring
2024-10-26 15:39:13 +01:00