Commit graph

16 commits

Author SHA1 Message Date
Simon Cruanes
65fc920427
feat pp: add a bunch of extensions
thanks to @grayswandyr
2024-08-19 12:17:58 -04:00
Simon Cruanes
0b0dd83423
reformat all the things 2024-05-13 20:57:53 -04:00
Simon Cruanes
ba9ef1f453 breaking: pp: modify Ext.t so it takes surrounding value
The type is now opaque, using a smart constructor, and is passed
the value used in the closest surrounding call to this extension,
if any. It is used by `Term_color` to properly restore ANSI
style in nested situations.
2023-11-19 22:27:51 -05:00
Simon Cruanes
1508b6c940 add Containers_pp.newline_or_spaces 2023-11-13 14:32:59 -05:00
Simon Cruanes
74e3a9e875
compat, reformat 2023-04-19 21:22:19 -04:00
Simon Cruanes
c2952e0ce6
pp: add Term_color extension 2023-04-19 21:22:19 -04:00
Simon Cruanes
adaecf470e
pp: add zero-width text; add bracket2 combinator 2023-04-19 21:22:18 -04:00
Simon Cruanes
785932861b
helpers for pp 2023-04-19 21:22:18 -04:00
Simon Cruanes
1ed81107df
pp: expose fill and and fill_map 2023-04-19 21:22:17 -04:00
Simon Cruanes
9d35f96033
add Pp.debug 2023-04-19 21:21:46 -04:00
Simon Cruanes
679534597d
fix(pp): slicing needs attention 2023-04-19 21:21:46 -04:00
Simon Cruanes
94640e9efe
comment 2023-04-19 21:21:46 -04:00
Simon Cruanes
91a2ecee4a
Pp: rename wrap to ext; more doc, more combinators 2023-04-19 21:21:46 -04:00
Simon Cruanes
4d77a17029
Pp: expose generic output; simplify extensions 2023-04-19 21:21:45 -04:00
Simon Cruanes
d36c57459e
feat(Pp): add wrap for extension nodes 2023-04-19 21:21:45 -04:00
Simon Cruanes
03c25cb18f
wip: add Containers_pp sub-library
this implements Wadler's pretty printers, albeit in a more eager way.
2023-04-19 21:21:44 -04:00