From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Joel Reymont" <joelr1@gmail.com>
Cc: "OCaml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] camlp4 3.10: What should this look like?
Date: Mon, 21 May 2007 11:26:21 +0200 [thread overview]
Message-ID: <cd67f63a0705210226v6f42bb21sa04a9a99d14ddf9d@mail.gmail.com> (raw)
In-Reply-To: <8A1EBB03-0926-4C86-B1C8-5BE7B201A070@gmail.com>
On 5/21/07, Joel Reymont <joelr1@gmail.com> wrote:
> What should this look like in the new camlp4 syntax?
Something like (not tested):
open Camlp4.PreCast;;
open Syntax;;
EXTEND Gram
expr: LEVEL "top" [
[ "PGSQL"; "("; dbh = expr; ")"; extras = LIST1 STRING ->
let query, flags =
match List.rev extras with
| [] -> assert false
| query :: flags -> query, flags in
pgsql_expand ~flags loc dbh (Camlp4.Struct.Token.Eval.string query)
]
];
END
--
Nicolas Pouillard
next prev parent reply other threads:[~2007-05-21 9:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-21 8:43 Joel Reymont
2007-05-21 9:26 ` Nicolas Pouillard [this message]
2007-05-21 9:56 ` [Caml-list] " Joel Reymont
2007-05-21 10:44 ` Nicolas Pouillard
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=cd67f63a0705210226v6f42bb21sa04a9a99d14ddf9d@mail.gmail.com \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@inria.fr \
--cc=joelr1@gmail.com \
/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