From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id DDB62BBCA for ; Wed, 7 May 2008 18:13:04 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsABACZyIUjAXQImiGdsb2JhbACBU4kkhwsBAQEPIJpL X-IronPort-AV: E=Sophos;i="4.27,449,1204498800"; d="asc'?scan'208";a="12356916" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 07 May 2008 18:13:04 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m47GD3UO018348 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 7 May 2008 18:13:04 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroCAOpxIUhQDPJwb2dsb2JhbACBU4kkhwsBDAUCBAcTA5pH X-IronPort-AV: E=Sophos;i="4.27,449,1204498800"; d="asc'?scan'208";a="25936334" Received: from smtp2e.orange.fr ([80.12.242.112]) by mail4-smtp-sop.national.inria.fr with ESMTP; 07 May 2008 18:13:03 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2e13.orange.fr (SMTP Server) with ESMTP id 00B2C70000A1; Wed, 7 May 2008 18:13:03 +0200 (CEST) Received: from ausone.inria.fr (LRouen-151-71-127-194.w193-253.abo.wanadoo.fr [193.253.245.194]) by mwinf2e13.orange.fr (SMTP Server) with SMTP id A688E700009B; Wed, 7 May 2008 18:13:02 +0200 (CEST) X-ME-UUID: 20080507161302682.A688E700009B@mwinf2e13.orange.fr Received: by ausone.inria.fr (sSMTP sendmail emulation); Wed, _d May 2008 18:12:50 +0200 From: "Nicolas Pouillard" Cc: caml-list Subject: Re: [Caml-list] Help for Camlp4: Pcaml.input_file for 3.10? To: Loup Vaillant References: <6f9f8f4a0805060257qaeeab15x5c1851099e4650ab@mail.gmail.com> <1210069851-sup-8648@port-ext16.ensta.fr> <6f9f8f4a0805060910v68c19a5dv76f9abcc879f1fb6@mail.gmail.com> In-Reply-To: <6f9f8f4a0805060910v68c19a5dv76f9abcc879f1fb6@mail.gmail.com> Date: Wed, 07 May 2008 18:12:50 +0200 Message-Id: <1210176715-sup-2245@ausone.local> User-Agent: Sup/git Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1210176770-817730-49322-9384-2-="; micalg="pgp-sha1" MIME-Version: 1.0 X-Miltered: at discorde with ID 4821D50F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 pcaml:01 pcaml:01 ocaml:01 camlp:01 wiki:01 preprocessed:01 syntax:01 caml-list:01 loc:03 generally:04 aka:04 ugly:04 tue:06 tue:06 X-Attachments: cset="UTF-8" type="application/pgp-signature" name="signature.asc" name="signature.asc" --=-1210176770-817730-49322-9384-2-= Content-Type: text/plain; charset=UTF-8 Excerpts from Loup Vaillant's message of Tue May 06 18:10:13 +0200 2008: > 2008/5/6 Nicolas Pouillard : > > Excerpts from Loup Vaillant's message of Tue May 06 11:57:41 +0200 2008: > > > > > > I would like to know if there is any equivalent > > > of Pcaml.input_file in Ocaml 3.10's Camlp4. > > > I tried to search the wiki, but with no luck so far. > > > [...] > > > > If I clearly remember this ugly global variable has been removed. > > OK, I got it, thank you for the fast response. > > Now, I can have the name of the preprocessed file with _loc. > > But How can I include a file in another? More generally, do we have a > substitute for it? Have a look at the Camlp4MacroParser syntax extension it provides an INCLUDE directive. -- Nicolas Pouillard aka Ertai --=-1210176770-817730-49322-9384-2-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkgh1QIACgkQj+FCNw9dwLk9GACfQuyfvNDdDACYntRwzg1Sah7z pNMAnjHmnOyVOJY3GA+98r6HfXjJ9n0i =4ms6 -----END PGP SIGNATURE----- --=-1210176770-817730-49322-9384-2-=--