Newsgroups: comp.lang.scheme,comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!purdue!ames!enews.sgi.com!news.mathworks.com!fu-berlin.de!unlisys!cs.tu-berlin.de!news.uni-hamburg.de!news.Hanse.DE!wavehh.hanse.de!cracauer
From: cracauer@wavehh.hanse.de (Martin Cracauer)
Subject: Re: Scheme to Common Lisp translator
Message-ID: <1997Jan28.092207.21474@wavehh.hanse.de>
Reply-To: cracauer@wavehh.hanse.de
Organization: '(a (cons structive organization))
References: <32ECE943.40DE@fernuni-hagen.de>
Date: Tue, 28 Jan 97 09:22:07 GMT
Lines: 33
Xref: glinda.oz.cs.cmu.edu comp.lang.scheme:18194 comp.lang.lisp:24902

Sven Hartrumpf <Sven.Hartrumpf@fernuni-hagen.de> writes:

>I want to translate Scheme files (r4rs compliant) to Common Lisp files
>(ANSI compliant) preserving layout and comments of the original program.
>Has anybody written a program that solves this problem, at least
>partially?

If your intend is to run Scheme programs under Common Lisp, I think
the best way is to use one of the Scheme implementations for Common
Lisp. The FAQ lists some.

I don't know of any translation tool. Using one probably depends on
the Scheme code to translate. call/cc will give you a tough problem
unless you settle to a CL implementation with similar capabilities
(ECL, as far as I can judge).

Straight function-oriented code should be easy to automate as long as
you solve the multiple-namespace problem, that means you need to find
an automated way to determine when a #' is needed. You will probably
need to translate the whole Scheme program and all its libraries at
once to do so.

>P.S.
>What is the status of r5rs?

I saw no public state report lately.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin_Cracauer@wavehh.hanse.de http://cracauer.cons.org  Fax.: +4940 5228536
"As far as I'm concerned,  if something is so complicated that you can't ex-
 plain it in 10 seconds, then it's probably not worth knowing anyway"- Calvin
