Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] problem with camlp4
Date: Mon, 2 Jul 2007 23:14:48 +0100	[thread overview]
Message-ID: <200707022314.49120.jon@ffconsultancy.com> (raw)
In-Reply-To: <9b415f950707021504q6bad7f65o3adde4cdafea97d5@mail.gmail.com>

On Monday 02 July 2007 23:04:18 Benedikt Grundmann wrote:
> I'm sure I missed something obvious... Please help.

I think you need to antiquote a quoted expression:

  open Camlp4.PreCast

  let test _loc =
    let acc = <:match_case<>> in
    <:match_case< true -> $<:expr<0>>$ | $acc$ >>

What does match_case do?

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?e


  reply	other threads:[~2007-07-02 22:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 22:04 Benedikt Grundmann
2007-07-02 22:14 ` Jon Harrop [this message]
2007-07-03  5:46 ` [Caml-list] " Bruno De Fraine
2007-07-03  7:05   ` Bruno De Fraine
2007-07-03  8:16 ` 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=200707022314.49120.jon@ffconsultancy.com \
    --to=jon@ffconsultancy.com \
    --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