Browse thread
problem with camlp4
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] problem with camlp4 |
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