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=-0.0 required=5.0 tests=NO_RELAYS autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: by yquem.inria.fr (Postfix, from userid 25991) id 8A9B3BC69; Mon, 20 Aug 2007 17:45:25 +0200 (CEST) Date: Mon, 20 Aug 2007 17:45:25 +0200 From: Daniel de Rauglaudre To: Caml mailing list Subject: Re: [Caml-list] How can I generate an AST? Message-ID: <20070820154525.GA13963@yquem.inria.fr> References: <6f9f8f4a0708191039o2119f94bm10959175cc887eef@mail.gmail.com> <20070819181634.GA797@yquem.inria.fr> <6f9f8f4a0708200122k710b2f3dnd723a7244140575e@mail.gmail.com> <20070820111350.GA22843@yquem.inria.fr> <6f9f8f4a0708200624x1b09dc40u2d5fa76b4a70faf7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f9f8f4a0708200624x1b09dc40u2d5fa76b4a70faf7@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Spam: no; 0.00; rauglaudre:01 rauglaudre:01 0200,:01 ocaml:01 camlp:01 camlp:01 ocaml:01 syntax:01 ocamldoc:01 labltk:01 stublibs:01 mli:01 parsetree:01 cmi:01 dependencies:01 Hi, On Mon, Aug 20, 2007 at 03:24:50PM +0200, Loup Vaillant wrote: > I have still one problem, though : how should I access this code? It > is not part of the standard library, so I can't just "open Config;;". > I can't hard-copy this code, either, that is too ugly. Maybe there is > a way to install a "development package" of Ocaml so I can link it? For Camlp5, and Camlp4 (before it was integrated into OCaml), I had to "hard copy" this code, like you say, since it is not exported indeed. Notice that you have the same problem with the definition of the abstract syntax tree, since is not exported either. Perhaps convice the ocaml team to do it, in a specific sub-directory, since I see that there are already: "ocamldoc", "camlp4", "labltk", "threads", "vmthreads", "stublibs". A new installed directory, named, e.g. "syntaxtree" would be great, containing "parseetree.mli", "parsetree.cmi" and all its dependencies, as well as this "pconfig.ml" and its object file or a subpart of it, containing at least these "ast_impl_magic_number" and "ast_intf_magic_number". I can do it in the ocaml compiler if I have the permission. Xavier ? -- Daniel de Rauglaudre http://pauillac.inria.fr/~ddr/