Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Convert LISP to Scheme, Is it Possible???

481 views
Skip to first unread message

Karateka

unread,
May 25, 1999, 3:00:00 AM5/25/99
to
I need to convert some Lisp programs to Scheme. Is there a conversion
program, some tools that will make it easy?

Thanks

Vlad

Christopher R. Barry

unread,
May 25, 1999, 3:00:00 AM5/25/99
to
"Karateka" <vjan...@home.com> writes:

> I need to convert some Lisp programs to Scheme. Is there a conversion
> program

Your mind.

> some tools that will make it easy?

A healthy brain and a good editor. If they are large CL programs,
you're in for a _lot_ of work. If they are small, it shouldn't be too
hard as long as there aren't too many CLisms like LOOP. Expanding some
of CL's trickier macros like LOOP might give you hints on converting
the code. It would be easier to convert Scheme to Lisp, barring a few
nice Scheme features like continuations.

Christopher

Erik Naggum

unread,
May 26, 1999, 3:00:00 AM5/26/99
to
* "Karateka" <vjan...@home.com>

| I need to convert some Lisp programs to Scheme.

is this for human or compiler consumption?

| Is there a conversion program, some tools that will make it easy?

the ultimate conversion program is an implementation of Common Lisp in
Scheme. however, since Scheme can easily be implemented in Common Lisp,
and has been some twenty million times, perhaps you'd rather want to
stuff your Scheme code into a real Lisp?

#:Erik
--
@1999-07-22T00:37:33Z -- pi billion seconds since the turn of the century

Reini Urban

unread,
May 26, 1999, 3:00:00 AM5/26/99
to
"Karateka" <vjan...@home.com> wrote:
>I need to convert some Lisp programs to Scheme. Is there a conversion

>program, some tools that will make it easy?

look at rice for the scm2cl package by Dorai Sitaram.
it will help a lot. i have version 0e

http://www.cs.rice.edu/~dorai/scm2cl/scm2cl.html

---
Reini Urban
http://xarch.tu-graz.ac.at/autocad/news/faq/autolisp.html

Kent M Pitman

unread,
May 26, 1999, 3:00:00 AM5/26/99
to
rur...@xarch.tu-graz.ac.at (Reini Urban) writes:

> "Karateka" <vjan...@home.com> wrote:
> >I need to convert some Lisp programs to Scheme. Is there a conversion
> >program, some tools that will make it easy?
>
> look at rice for the scm2cl package by Dorai Sitaram.
> it will help a lot. i have version 0e
>
> http://www.cs.rice.edu/~dorai/scm2cl/scm2cl.html

From the doc (I haven't tried it), this looks to do it the other
way around--scheme to cl, same as jonathan rees's pseudoscheme.
ftp://ftp-swiss.ai.mit.edu/pub/pseudo/
Well, properly Rees's system is mostly to allow Scheme programs
to run under CL. It does actually translate them, but hides
the translation mostly.

Reini Urban

unread,
May 28, 1999, 3:00:00 AM5/28/99
to
Kent M Pitman <pit...@world.std.com> wrote:

>From the doc (I haven't tried it), this looks to do it the other
>way around--scheme to cl, same as jonathan rees's pseudoscheme.

oops, sorry!
couldn't even imagine any use for the other way 'round :)

0 new messages