Version française
Home     About     Download     Resources     Contact us    
Browse thread
stupid q: camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] stupid q: camlp4
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