From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 65D1DBC57 for ; Thu, 23 Sep 2010 18:36:02 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtQEAFgem0xQW+UMgWdsb2JhbACISYtzjXYVAQEWIiLGe4VBBIo4hWA X-IronPort-AV: E=Sophos;i="4.57,224,1283724000"; d="scan'208";a="59014427" Received: from lo.gmane.org ([80.91.229.12]) by mail3-smtp-sop.national.inria.fr with ESMTP; 23 Sep 2010 18:36:02 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oyom5-0000Vm-Mo for caml-list@inria.fr; Thu, 23 Sep 2010 18:35:57 +0200 Received: from avelizy-155-1-35-248.w83-204.abo.wanadoo.fr ([83.204.138.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Sep 2010 18:35:57 +0200 Received: from sylvain by avelizy-155-1-35-248.w83-204.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Sep 2010 18:35:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: what do I need to know to understand camlp4 Date: Thu, 23 Sep 2010 16:35:46 +0000 (UTC) Message-ID: References: X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-35-248.w83-204.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) X-Spam: no; 0.00; le-gall:01 camlp:01 camlp:01 ocaml:01 ocaml:01 syntax:01 syntax:01 blog:98 wrote:01 revised:02 tutorial:03 depends:04 sessions:07 standard:07 probably:07 On 23-09-2010, ben kuin wrote: > > Could someone give any idea how I can begin to understand how to write > simple camlp4 extensions? > If you consider yourself as a n00b, don't start by camlp4. This is probably the most difficult part of OCaml -- and to program camlp4 you need to use OCaml standard syntax (or revised syntax, it depends if you use antiquotations). If you still want to follow the hard path, as suggested elsewhere, Jake Donham's blog posts are very good: http://ambassadortothecomputers.blogspot.com/p/reading-camlp4.html Or if you are around, there is a tutorial session at CUFP: http://cufp.org/conference/sessions/2010/camlp4-and-template-haskell (but you need to subscribe). Regards, Sylvain Le Gall