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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id A02D4BC6B for ; Wed, 25 Jul 2007 13:40:39 +0200 (CEST) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l6PBedDR006392 for ; Wed, 25 Jul 2007 13:40:39 +0200 Received: from smtp4-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp4-g19.free.fr (Postfix) with ESMTP id BB7336F375 for ; Wed, 25 Jul 2007 13:40:37 +0200 (CEST) Received: from kerneis.info (kerneis.info [82.224.215.18]) by smtp4-g19.free.fr (Postfix) with ESMTP id 7FE126F330 for ; Wed, 25 Jul 2007 13:40:37 +0200 (CEST) Received: from localhost ([127.0.0.1] helo=tatanka.kerneis.info ident=gabriel) by kerneis.info with esmtp (Exim 4.63) (envelope-from ) id 1IDfEK-0001Km-5d for caml-list@yquem.inria.fr; Wed, 25 Jul 2007 13:40:36 +0200 Date: Wed, 25 Jul 2007 13:40:25 +0200 From: Gabriel Kerneis To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Equivalent of Quotation.ExStr in new camlp4? In-Reply-To: <509223F0BF55E74FA1247D17207E7A0C01B11E32@orsmsx419.amr.corp.intel.com> References: <509223F0BF55E74FA1247D17207E7A0C01B11E32@orsmsx419.amr.corp.intel.com> Organization: ENST X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_vdH/GXhGnnFuFzn5ptJHMsU"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Message-Id: X-Miltered: at discorde with ID 46A736B7.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 parser:01 ocaml:01 parser:01 expander:01 syntax:01 syntax:01 expr:01 pat:01 caml-list:01 exp:02 exp:02 parse:02 string:02 X-Attachments: type="application/pgp-signature" name="signature.asc" name="signature.asc" --Sig_vdH/GXhGnnFuFzn5ptJHMsU Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Le Tue, 24 Jul 2007 14:23:34 -0700, "Harrison, John R" a =E9crit : > In the old camlp4 one could set up a quotation parser to just apply a > string > transformation and thereafter parse with the usual OCaml parser, e.g. > Quotation.add name (Quotation.ExStr expander) > What is the equivalent in the new camlp4? In Ocsigen, Quotation.add "xml" (Quotation.ExAst (xml_exp, xml_pat)) became open Camlp4.PreCast ; Syntax.Quotation.add "xml" Syntax.Quotation.DynAst.expr_tag Parser.xml_exp Maybe this can give you a clue ? Regards, --=20 Gabriel Kerneis --Sig_vdH/GXhGnnFuFzn5ptJHMsU Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGpzaw6a2JmXQu5bYRAlraAKCd/GFUXVY6sJ6DZnpXczJ8OPo8KgCfQpJx 29bToQlX7CLI2x9dRM+64C4= =mDWG -----END PGP SIGNATURE----- --Sig_vdH/GXhGnnFuFzn5ptJHMsU--