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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 782CEBC6B for ; Wed, 25 Jul 2007 18:14:39 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l6PGEbBB004472 for ; Wed, 25 Jul 2007 18:14:38 +0200 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 25 Jul 2007 09:14:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.16,581,1175497200"; d="scan'208";a="270475949" Received: from orsmsx335.jf.intel.com ([10.22.226.40]) by orsmga001.jf.intel.com with ESMTP; 25 Jul 2007 09:14:36 -0700 Received: from orsmsx419.amr.corp.intel.com ([10.22.226.88]) by orsmsx335.jf.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Jul 2007 09:14:33 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [Caml-list] Equivalent of Quotation.ExStr in new camlp4? Date: Wed, 25 Jul 2007 09:14:32 -0700 Message-ID: <509223F0BF55E74FA1247D17207E7A0C01B120B8@orsmsx419.amr.corp.intel.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Caml-list] Equivalent of Quotation.ExStr in new camlp4? Thread-Index: AcfOsWTwJHG3ioHmQhuLYT+fiM0SHAAJObAA From: "Harrison, John R" To: "Gabriel Kerneis" , Cc: "Harrison, John R" X-OriginalArrivalTime: 25 Jul 2007 16:14:33.0322 (UTC) FILETIME=[E32F9CA0:01C7CED6] X-Miltered: at concorde with ID 46A776ED.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 syntax:01 syntax:01 expr:01 parser:01 ocaml:01 parser:01 pat:01 caml-list:01 ast:02 exp:02 exp:02 string:02 transform:05 | 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 |=20 | Maybe this can give you a clue ? Maybe, but I was looking for the equivalent of Quotation.ExStr rather than Quotation.ExAst, i.e. apply a string transform then the usual OCaml parser rather than my own parser producing an AST. John.