English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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