From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=AWL,HTML_00_10,HTML_MESSAGE, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 20543BC69 for ; Sun, 18 Mar 2007 19:21:44 +0100 (CET) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2IILhwC022424 for ; Sun, 18 Mar 2007 19:21:43 +0100 Received: by nf-out-0910.google.com with SMTP id a27so799227nfc for ; Sun, 18 Mar 2007 11:21:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=V5rZMmJXKhHpFxQAcilsebmyYuJR9I3+qthKocIR4CXQ7vb4gaD2nJpJjrjrHWYpPbwsEQk0ohRVC4JTnb+v0JpQGMKi6/FE+ovGflPeNUWffd7oGzYrRELodh+l9lZLGOeccSTZ2/zV97FtqF1Rth6+Eic/1MfvCNbBVCZ65Bg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=G+yvsyDfKWGt57kr14BpOVpz+16rZa8lDIEXgKZmcAntddzt1Kz63WO10BZeNP2IkZSfwOTxaRvCREfAyVmLTy3dCUrQ9kV+Gt1SX5LqDQgodqMybUKZebLQxTS4o8FCy1Av5RaRSABPIGXrK4302rRnHsW2TK+r+C00pZohOK8= Received: by 10.82.175.2 with SMTP id x2mr8275622bue.1174242103275; Sun, 18 Mar 2007 11:21:43 -0700 (PDT) Received: by 10.82.100.16 with HTTP; Sun, 18 Mar 2007 11:21:43 -0700 (PDT) Message-ID: Date: Sun, 18 Mar 2007 19:21:43 +0100 From: Tom To: "Loup Vaillant" Subject: Re: [Caml-list] Where are the AST specs? Cc: caml-list@yquem.inria.fr In-Reply-To: <6f9f8f4a0703181022q2b9d7f8bt33919e07f3799c65@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_120098_18818738.1174242103243" References: <6f9f8f4a0703181022q2b9d7f8bt33919e07f3799c65@mail.gmail.com> X-j-chkmail-Score: MSGID : 45FD8337.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45FD8337.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; parsing:01 parsetree:01 mli:01 occurences:01 constructors:01 parsing:01 parser:01 ocamlc:01 ocaml:01 parsetree:01 mli:01 occurences:01 constructors:01 parser:01 ocaml:01 X-Attachments: cset="UTF-8" cset="UTF-8" ------=_Part_120098_18818738.1174242103243 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline There is the AST defined in /parsing/parsetree.mli, which you have undoubtedly discovered, and if you look at it carefully and search for the occurences of different constructors in /parsing/parser.mly, you should be able to figure where and how they are used. Furthermore, you should try compiling sample programs with "ocamlc -dparsetree" which will print the AST of the program. Unfortunately, I am busy in these months, but you can send me some questions and I can try to answer them (may take long time), as I have spent quite some time inspecting the OCaml sources. - Tom ------=_Part_120098_18818738.1174242103243 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline There is the AST defined in /parsing/parsetree.mli, which you have undoubtedly discovered, and if you look at it carefully and search for the occurences of different constructors in /parsing/parser.mly, you should be able to figure where and how they are used.

Furthermore, you should try compiling sample programs with "ocamlc -dparsetree" which will print the AST of the program.

Unfortunately, I am busy in these months, but you can send me some questions and I can try to answer them (may take long time), as I have spent quite some time inspecting the OCaml sources.
- Tom
------=_Part_120098_18818738.1174242103243--