From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Ledit 3.10
Date: Mon, 18 Jun 2007 21:34:33 +0100 [thread overview]
Message-ID: <200706182134.33952.jon@ffconsultancy.com> (raw)
In-Reply-To: <71767b800706170931o2969c8f8g391e8ee3f1104e1b@mail.gmail.com>
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
prev parent reply other threads:[~2007-06-18 20:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-17 16:31 Ralph Douglass
2007-06-17 16:52 ` [Caml-list] " micha
2007-06-17 17:40 ` Daniel de Rauglaudre
2007-06-18 20:34 ` Jon Harrop [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706182134.33952.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox