From: Richard Jones <rich@annexia.org>
To: Anastasia Gornostaeva <ermine@ermine.pp.ru>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] stupid q(2): camlp4
Date: Wed, 12 Nov 2008 22:49:34 +0000 [thread overview]
Message-ID: <20081112224934.GA28741@annexia.org> (raw)
In-Reply-To: <20081112131300.GA67784@ermine.home>
On Wed, Nov 12, 2008 at 04:13:00PM +0300, Anastasia Gornostaeva wrote:
> Hello.
>
> Readihg http://martin.jambon.free.fr/extend-ocaml-syntax.html, I
> attempt to solve the exercise from chapter 13:
>
> "Suggested exercise: implement and test a syntax extension which supports a
> where construct. For instance,
>
> a + b where a = 1 and b = 2
>
> means
>
> let a = 1 and b = 2 in a + b
You could cheat and have a look at pa_where ...
http://bluestorm.info/camlp4/pa_where/list.php
http://bluestorm.info/camlp4/pa_where/pa_where.ml.html
(Is bluestorm running a gopher server?)
Rich.
--
Richard Jones
Red Hat
next prev parent reply other threads:[~2008-11-12 22:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 13:13 Anastasia Gornostaeva
2008-11-12 22:49 ` Richard Jones [this message]
2008-11-13 17:25 ` [Caml-list] " Anastasia Gornostaeva
2008-11-14 19:37 ` Anastasia Gornostaeva
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=20081112224934.GA28741@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
--cc=ermine@ermine.pp.ru \
/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