Commit graph

6 commits

Author SHA1 Message Date
a1867fdc4e Add BoundedSeparated with parser and printer
This type should be able to replace Separated (with a bit of effort).

The hope is that this type is a better representation for table-like
syntax with optional trailing delimiter that will let me remove_map
elements without too much difficulty. This is necessary for desugaring
table constructors.
2022-11-21 22:56:50 +01:00
6eee1ba930 Simplify pretty printing separated elements 2022-11-21 00:49:04 +01:00
412eaffc07 Pretty print table literals 2022-11-20 23:33:39 +01:00
03e7f10739 Satisfy warnings 2022-11-20 22:16:10 +01:00
2ba56f0c92 Make code generic over allocator
This way, I can use the same code with any allocator I want. More
importantly, I can also use the nice DocBuilder-exclusive helper
functions!
2022-11-20 21:41:57 +01:00
23796e53a9 Pretty print program elements 2022-11-20 21:11:38 +01:00