Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Format module for C-style syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-07 (11:43)
From: Christian Lindig <lindig@c...>
Subject: Re: [Caml-list] Format module for C-style syntax
> Has anybody used the Format module for pretty-printing C-style  
> syntax? After reading the documentation ("Using the Format  
> module"), I cannot get it to line up the braces in a manner that is  
> convential for such a syntax.

Here is an alternative: I am using the purely functional pretty  
printer suggested by Wadler for emitting a subset of C. You can find  
the pretty printer itself, as well as the pretty printer for C here:

-- Christian