caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gabriel Kerneis <gabriel.kerneis@enst.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Equivalent of Quotation.ExStr in new camlp4?
Date: Wed, 25 Jul 2007 13:40:25 +0200	[thread overview]
Message-ID: <E1IDfEK-0001Km-5d@kerneis.info> (raw)
In-Reply-To: <509223F0BF55E74FA1247D17207E7A0C01B11E32@orsmsx419.amr.corp.intel.com>

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

Le Tue, 24 Jul 2007 14:23:34 -0700, "Harrison, John R"
<john.r.harrison@intel.com> a écrit :
> 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,
-- 
Gabriel Kerneis

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-07-25 11:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-24 21:23 Harrison, John R
2007-07-25 11:40 ` Gabriel Kerneis [this message]
2007-07-25 16:14   ` [Caml-list] " Harrison, John R
2007-07-25 16:14 ` Nicolas Pouillard
2007-07-25 16:23   ` Harrison, John R
2007-07-26  8:44     ` Nicolas Pouillard
2007-07-26 16:49       ` Harrison, John R
2007-08-09 18:31         ` Nicolas Pouillard
2007-08-22 16:21           ` Harrison, John R

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1IDfEK-0001Km-5d@kerneis.info \
    --to=gabriel.kerneis@enst.fr \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).