From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q1D9YJMv028901 for ; Mon, 13 Feb 2012 10:34:19 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EADrYOE+NTDBj/2dsb2JhbABDhRCqbIEHgXMBBSNmCQIaAgUhAgIPAQQNGzSHf6dGkSCBL4cVg0IDBQIEBwIdAQMIASMDgxKBTYIHgRYElTKLEIdV X-IronPort-AV: E=Sophos;i="4.73,411,1325458800"; d="scan'208";a="131104086" Received: from os.inf.tu-dresden.de ([141.76.48.99]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Feb 2012 10:34:13 +0100 Received: from [2002:8d4c:3001:48:222:68ff:fe19:71d] (helo=blau.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) id 1RwsIW-00015d-Q9 for caml-list@yquem.inria.fr; Mon, 13 Feb 2012 10:34:12 +0100 Received: from tews by blau.inf.tu-dresden.de with local (Exim 4.72) (envelope-from ) id 1RwsIW-0003Jk-Dr for caml-list@yquem.inria.fr; Mon, 13 Feb 2012 10:34:12 +0100 From: Hendrik Tews To: caml-list@yquem.inria.fr References: <4F285C76.10301@gmail.com> <4F292986.30008@gmail.com> Date: Mon, 13 Feb 2012 10:34:12 +0100 In-Reply-To: <4F292986.30008@gmail.com> ("Matej =?utf-8?B?S2/FocOtayIncw==?= message of "Wed, 01 Feb 2012 12:01:10 +0000") Message-ID: <6xbop3rsa3.fsf@blau.inf.tu-dresden.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q1D9YJMv028901 X-Validation-by: tews@os.inf.tu-dresden.de Subject: Re: [Caml-list] how (within camlp4 printer) can I traverse AST ? Matej Košík <5764c029b688c1c0d24a2e97cd764f@gmail.com> writes: 1. these examples are not compiled with ordinary ocamlc/camlp4 tools but with special ocamlc/camlp4* version built at the "boot time" which are not interchangeable with regular ocamlc/camlp4* programs. If I try to use regular ocamlc/camlp4* tools in an attempt to compile those printers, I will get syntax errors in those printers. I can compile camlp4/Camlp4/Printers/OCaml.{mli,ml} from 3.12.1 with an installed version of 3.12.1 as follows: - Add ``open Camlp4;'' as first line in OCaml.mli and OCaml.ml - In directory camlp4/Camlp4/Printers, compile with ocamlc -c -pp camlp4rf -I +camlp4 OCaml.mli ocamlc -c -pp camlp4rf -I +camlp4 OCaml.ml The ``open'' is only necessary because the OCaml installation procedure does not install all compiled module interfaces. Bye, Hendrik