From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 998087ED34 for ; Sun, 8 Jul 2012 16:34:25 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of nojb@math.harvard.edu) identity=pra; client-ip=140.247.28.153; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="nojb@math.harvard.edu"; x-sender="nojb@math.harvard.edu"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of nojb@math.harvard.edu) identity=mailfrom; client-ip=140.247.28.153; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="nojb@math.harvard.edu"; x-sender="nojb@math.harvard.edu"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@abel.math.harvard.edu) identity=helo; client-ip=140.247.28.153; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="nojb@math.harvard.edu"; x-sender="postmaster@abel.math.harvard.edu"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQbAKOZ+U+M9xyZSmdsb2JhbABFFrdfAQEVDAkHFSeCYYFjiDoLmQeXE4kEjjCCPGADlTaBEoREjSo X-IronPort-AV: E=Sophos;i="4.77,547,1336341600"; d="scan'208";a="149984437" Received: from math.harvard.edu (HELO abel.math.harvard.edu) ([140.247.28.153]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Jul 2012 16:34:24 +0200 Received: from [10.0.0.2] (c-68-50-223-227.hsd1.md.comcast.net [68.50.223.227]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by abel.math.harvard.edu (Postfix) with ESMTP id 94E6AFA2A for ; Sun, 8 Jul 2012 10:34:22 -0400 (EDT) From: Nicolas Ojeda Bar Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 8 Jul 2012 10:34:21 -0400 Message-Id: <1652E741-8D61-4AFB-BB94-57FD60915BE4@math.harvard.edu> To: caml-list@yquem.inria.fr Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) Subject: [Caml-list] pretty-printing with camlp4? 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 ), so I imagine there must be a way to do the same thing with Camlp4... Thanks! Nicolas