caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Nicolas Ojeda Bar <nojb@math.harvard.edu>
To: caml-list@yquem.inria.fr
Subject: [Caml-list] pretty-printing with camlp4?
Date: Sun, 8 Jul 2012 10:34:21 -0400	[thread overview]
Message-ID: <1652E741-8D61-4AFB-BB94-57FD60915BE4@math.harvard.edu> (raw)

Hi,

Is it possible to use Camlp4 to write pretty printers of arbitrary
data? The signature Camlp4.Sig.Printer seems to indicate the pretty
printing facility only works with OCaml ASTs...

On the other hand, with Camlp5 it is possible to write pretty
printers for arbitrary ASTs
(see <http://pauillac.inria.fr/~ddr/camlp5/doc/html/printers.html>),
so I imagine there must be a way to do the same thing with Camlp4...

Thanks!
Nicolas

             reply	other threads:[~2012-07-08 14:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 14:34 Nicolas Ojeda Bar [this message]
2012-07-08 15:02 ` Gabriel Scherer
2012-07-08 17:09 Daniel de Rauglaudre

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=1652E741-8D61-4AFB-BB94-57FD60915BE4@math.harvard.edu \
    --to=nojb@math.harvard.edu \
    --cc=caml-list@yquem.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).