From: Christoph Bauer <ich@christoph-bauer.net>
To: jonathan.roewen@gmail.com
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] lisp to ocaml
Date: Mon, 19 Sep 2005 15:08:11 +0200 [thread overview]
Message-ID: <m364sx9pdw.fsf@christoph-bauer.net> (raw)
In-Reply-To: <ad8cfe7e0509171808ebd550d@mail.gmail.com> (Jonathan Roewen's message of "Sun, 18 Sep 2005 13:08:19 +1200")
Hi,
> Hi,
>
> Does anyone know of a tool that can convert lisp to ocaml (or
> something other ML dialect)? I've tried googling and couldn't find
> anythinge Just all the parentheses gets a bit confusing for a first
> look at lisp ;t)
camlp4/scheme could be interesting.
input file `example.ml':
(define f (lambda (n) (+ n 1)))
output of
% camlp4 pa_scheme.cmo pr_o.cmo example.ml
let f n = n + 1
This extension is included in the ocaml distribution under
ocaml-3.08.4/camlp4/unmaintained/scheme
You have to install it by yourself, e.g.
make && cp *.cmo *.cmi `ocamlc -where`/camlp4
regards,
Christoph Bauer
--
let () = let rec f a w i j = Printf.printf "%.20f\r" a; let a1 = a *. i /. j in
if w then f a1 false (i +. 2.0) j else f a1 true i (j +. 2.0) in f 2.0 false 2.0 1.0
prev parent reply other threads:[~2005-09-18 13:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-18 1:08 Jonathan Roewen
2005-09-18 2:56 ` Jon Harrop
2005-09-18 14:06 ` Thomas Fischbacher
2005-09-18 14:17 ` yoann padioleau
2005-09-18 14:37 ` Thomas Fischbacher
2005-09-18 15:44 ` Jon Harrop
2005-09-18 16:08 ` Thomas Fischbacher
2005-09-18 17:10 ` brogoff
2005-09-19 13:08 ` Christoph Bauer [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=m364sx9pdw.fsf@christoph-bauer.net \
--to=ich@christoph-bauer.net \
--cc=caml-list@yquem.inria.fr \
--cc=jonathan.roewen@gmail.com \
/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