caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christian Lindig <lindig@cs.uni-sb.de>
To: Bruno De Fraine <Bruno.De.Fraine@vub.ac.be>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Format module for C-style syntax
Date: Wed, 7 Mar 2007 12:41:05 +0100	[thread overview]
Message-ID: <5AD3975A-FE1C-460B-A429-55B5E22174F4@cs.uni-sb.de> (raw)
In-Reply-To: <70DC8A37-C742-405E-83E4-2367664717F5@vub.ac.be>

> 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:

http://quest-tester.googlecode.com/svn/trunk/src/pretty.nw
http://quest-tester.googlecode.com/svn/trunk/src/ppcee.nw

-- Christian



      parent reply	other threads:[~2007-03-07 11:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06 18:07 Bruno De Fraine
2007-03-06 18:40 ` [Caml-list] " Xavier Leroy
2007-03-07 11:41 ` Christian Lindig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5AD3975A-FE1C-460B-A429-55B5E22174F4@cs.uni-sb.de \
    --to=lindig@cs.uni-sb.de \
    --cc=Bruno.De.Fraine@vub.ac.be \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).