* New library: Easy-format 0.9.0
@ 2008-07-09 17:51 Martin Jambon
2008-07-13 16:27 ` Easy-format 1.0.0 (Re: [Caml-list] New library: Easy-format 0.9.0) Martin Jambon
0 siblings, 1 reply; 2+ messages in thread
From: Martin Jambon @ 2008-07-09 17:51 UTC (permalink / raw)
To: caml-list
Hi list,
I would like to announce a small library (a module in fact) that is meant
to make it easy to produce pretty-printed text:
http://martin.jambon.free.fr/easy-format.html
The data to be printed goes through a tree that carries all the
information required for pretty-printing. After that, a single call to
Easy_format.Pretty.to_stdout (for instance) outputs the indented result.
There's a reasonably complete example at
http://martin.jambon.free.fr/easy_format_example.html
Comments and suggestions for improvement are welcome.
Enjoy.
Martin
--
http://wink.com/profile/mjambon
http://mjambon.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Easy-format 1.0.0 (Re: [Caml-list] New library: Easy-format 0.9.0)
2008-07-09 17:51 New library: Easy-format 0.9.0 Martin Jambon
@ 2008-07-13 16:27 ` Martin Jambon
0 siblings, 0 replies; 2+ messages in thread
From: Martin Jambon @ 2008-07-13 16:27 UTC (permalink / raw)
To: caml-list
I've just released a richer version of Easy-format.
The main URL is still http://martin.jambon.free.fr/easy-format.html
It now offers the following additional features:
- Support for separators that stick to the next list item (e.g. "|")
- More wrapping options
- Added Custom kind of nodes for using Format directly or existing
pretty-printers
- Support for markup and escaping, allowing to produce colorized output
(HTML, terminal, ...) without interfering with the computation of
line breaks and spacing.
Easy-format now takes advantage of most features of the Format module,
with the notable exception of tabulation boxes. I'd be curious so see any
interesting use of tabulation boxes.
This release has slight incompatibilities with version 0.9.0 which was
released earlier this week, simply because more options were added:
- Deprecated use of Easy_format.Param. Instead, inherit from
Easy_format.list,
Easy_format.label or Easy_format.atom.
- Atom nodes have now one additional argument for parameters.
- All record types have been extended with more fields.
Using the "with" mechanism for inheritance is the best way of limiting
future incompatibilities.
Martin
--
http://mjambon.com/
http://wink.com/profile/mjambon
http://ocamlhackers.ning.com/profile/MartinJambon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-13 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-09 17:51 New library: Easy-format 0.9.0 Martin Jambon
2008-07-13 16:27 ` Easy-format 1.0.0 (Re: [Caml-list] New library: Easy-format 0.9.0) Martin Jambon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox