Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ledit 3.10
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Ledit 3.10
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