The OCaml Journal just published an article about pretty printing and parsing:
"The OCaml programming language has evolved a rich variety of libraries and tools over the past thirteen years. The domain of metaprogramming is particularly well supplied. This article describes the basic design of OCaml's Format module which provides customizable formatting and, in particular, user-extensible pretty printing for the top-level as well as the stream parsers provided by camlp4..."
To read this article and more, subscribe to The OCaml Journal today!