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=AWL 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 2080DBC0A for ; Mon, 18 Jun 2007 22:40:36 +0200 (CEST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5IKeZXG007870 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 18 Jun 2007 22:40:35 +0200 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay02.plus.net with esmtp (Exim) id 1I0O1b-0007bj-2a for caml-list@yquem.inria.fr; Mon, 18 Jun 2007 21:40:35 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Ledit 3.10 Date: Mon, 18 Jun 2007 21:34:33 +0100 User-Agent: KMail/1.9.7 References: <71767b800706170931o2969c8f8g391e8ee3f1104e1b@mail.gmail.com> In-Reply-To: <71767b800706170931o2969c8f8g391e8ee3f1104e1b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706182134.33952.jon@ffconsultancy.com> X-Miltered: at discorde with ID 4676EDC3.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ledit:01 ledit:01 ocaml:01 ocaml:01 camlp:01 mkdir:01 camlp:01 cmo:01 cmo:01 ocamlopt:01 cmxa:01 presto:98 frog:98 unix:01 wrote:01 On Sunday 17 June 2007 17:31:55 Ralph Douglass wrote: > Is there a copy of ledit floating around that compiles under 3.10? The > latest version I found was 1.13, at http://pauillac.inria.fr/~ddr/ledit/. > I may just not know where to look. You just need to translate the sources into vanilla OCaml using OCaml 3.09 and camlp4 and then it is forwards compatible: $ mkdir trans $ camlp4o -I ext pa_s.cmo pr_dump.cmo pr_o.cmo cursor.ml >trans/cursor.ml $ camlp4o -I ext pa_s.cmo pr_dump.cmo pr_o.cmo ledit.ml >trans/ledit.ml $ camlp4o -I ext pa_s.cmo pr_dump.cmo pr_o.cmo go.ml >trans/go.ml Then you can compile the new sources (in ./trans) with OCaml 3.10: $ cd trans $ ocamlopt unix.cmxa cursor.ml ledit.ml go.ml -o ledit Hey presto, new ledit binary. Ah, the beauty of camlp4. :-) -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists/?e