caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Anastasia Gornostaeva <ermine@ermine.pp.ru>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] stupid q: camlp4
Date: Sun, 9 Nov 2008 15:39:35 +0000	[thread overview]
Message-ID: <20081109153935.GA4027@annexia.org> (raw)
In-Reply-To: <20081108200044.GA12846@ermine.home>

On Sat, Nov 08, 2008 at 11:00:44PM +0300, Anastasia Gornostaeva wrote:
> How can I learn modern Camlp4?

With difficulty.  That's sad because it's very powerful.

I would suggest starting with Martin's Jambon's tutorial.  Even though
it refers to the "old" camlp4 / camlp5, it's still useful to
understand the concepts:

http://martin.jambon.free.fr/extend-ocaml-syntax.html

Then take a look at Martin's example of what changed between the two
versions:

http://martin.jambon.free.fr/examples/pa_json_static_3100beta.html

The camlp4 wiki has already been mentioned, and is very useful.  This
is probably the most useful reference page of all:

http://brion.inria.fr/gallium/index.php/AST

Finally take a look at some real examples:

http://caml.inria.fr/cgi-bin/hump.en.cgi?sort=0&browse=92

Rich.

-- 
Richard Jones
Red Hat


      parent reply	other threads:[~2008-11-09 15:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-08 20:00 Anastasia Gornostaeva
2008-11-08 21:24 ` [Caml-list] " Jon Harrop
2008-11-08 21:03   ` Anastasia Gornostaeva
2008-11-08 22:11     ` Jon Harrop
2008-11-09 15:39 ` Richard Jones [this message]

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=20081109153935.GA4027@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;
as well as URLs for NNTP newsgroup(s).