From: Bruno De Fraine <Bruno.De.Fraine@vub.ac.be>
To: "Benedikt Grundmann" <benedikt@cardexpert.net>
Cc: Caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] problem with camlp4
Date: Tue, 3 Jul 2007 07:46:22 +0200 [thread overview]
Message-ID: <4B765D50-975E-42D7-B27B-7AADD10E57A0@vub.ac.be> (raw)
In-Reply-To: <9b415f950707021504q6bad7f65o3adde4cdafea97d5@mail.gmail.com>
On 03 Jul 2007, at 00:04, Benedikt Grundmann wrote:
> <:match_case< true -> $expr:num$ | $acc$ >>
Do you mean this?
<:match_case< true -> $int:string_of_int num$ >>
Also notice that you can write
<:expr< match $e$ with [ $list:l$ ] >>
where l is of type "Camlp4.PreCast.Ast.match_case list".
This can be easier than folding the expression with an accumulator.
Regards,
Bruno
--
Bruno De Fraine
Vrije Universiteit Brussel
Faculty of Applied Sciences, DINF - SSEL
Room 4K208, Pleinlaan 2, B-1050 Brussels
tel: +32 (0)2 629 29 75
fax: +32 (0)2 629 28 70
e-mail: Bruno.De.Fraine@vub.ac.be
next prev parent reply other threads:[~2007-07-03 5:46 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 ` [Caml-list] " Jon Harrop
2007-07-03 5:46 ` Bruno De Fraine [this message]
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=4B765D50-975E-42D7-B27B-7AADD10E57A0@vub.ac.be \
--to=bruno.de.fraine@vub.ac.be \
--cc=benedikt@cardexpert.net \
--cc=caml-list@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