Version française
Home     About     Download     Resources     Contact us    
Browse thread
what do I need to know to understand camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yoann Padioleau <padator@w...>
Subject: Re: [Caml-list] what do I need to know to understand camlp4

On Sep 23, 2010, at 11:49 AM, ben kuin wrote:

> thanks Jake, after browsing through those articles I came to the
> conclusion that for understanding and using camlp4 the notion of
> quotations and antiquotations is fundamental. My absolute lack of
> knowledge in this area might be a reason why I can't figure out how
> camlp4 works.

Do you know how macros work in other languages ?
You could have a look at Lisp macros which are simpler than OCaml macros:
 http://cl-cookbook.sourceforge.net/macros.html
Understanding lisp macros could be a good step towards understanding ocaml macros.

> 
> 
> 
> On Thu, Sep 23, 2010 at 6:23 PM, Jake Donham <jake@donham.org> wrote:
>> On Thu, Sep 23, 2010 at 8:25 AM, bluestorm <bluestorm.dylc@gmail.com> wrote:
>>> For an accessible introduction to modern (>= 3.10) Camlp4, you may be
>>> interested in Jake Donham's blog post series "Reading Camlp4" :
>>> http://ambassadortothecomputers.blogspot.com/search/label/camlp4
>> 
>> You can also see the articles in sequence at
>> 
>>  http://ambassadortothecomputers.blogspot.com/p/reading-camlp4.html
>> 
>> which I recommend since later articles depend on earlier material.
>> 
>> Jake
>> 
>> _______________________________________________
>> Caml-list mailing list. Subscription management:
>> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
>> Archives: http://caml.inria.fr
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>> 
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs