From: David Chatenay
Subject: lisp to c++ converter?
Date: 
Message-ID: <31C91DD9.41C67EA6@eurecom.fr>
I post this for someone whose mail is out of order ...
... so please reply here ;))
Thanks

=========================================================================

Hi,

I have a scientific expression parser which is written in lisp. I would
like to translate the code into C++...
 

I don't want to start again using lex...
do lisp-C++ converters exist ??
or can I find this type of parser somewhere ???



Any help would be appreciated !!!

Thanks in advance.


Olivier

=========================================================================

--
"To iterate is humane; to recurse divine..."
  ???

  Jack                        In real life: C++Lisper

From: Thomas A. Russ
Subject: Re: lisp to c++ converter?
Date: 
Message-ID: <ymi688mjtyj.fsf@hobbes.isi.edu>
In article <·················@eurecom.fr> David Chatenay <········@eurecom.fr> writes:
 > I have a scientific expression parser which is written in lisp. I would
 > like to translate the code into C++...
 >  
 > 
 > I don't want to start again using lex...

Actually, starting again using lex would likely be the best approach.
It would give you an extensible C++ system that would be easier to
maintain and extend.

 > do lisp-C++ converters exist ??

Not that I know of.  There are some lisp-C converters, but they either
only work on a subset of CommonLisp or they produce output that is often
not all that readable.  I think that Chestnut Software, who made one of
the best of these, has since gone out of business.

-- 
Thomas A. Russ,  USC/Information Sciences Institute          ···@isi.edu    
From: Kelly Murray
Subject: Re: lisp to c++ converter?
Date: 
Message-ID: <4qcd3g$e0b@sparky.franz.com>
In article <···············@hobbes.isi.edu>, ···@ISI.EDU (Thomas A. Russ) writes:
>> In article <·················@eurecom.fr> David Chatenay <········@eurecom.fr> writes:
>>  > I have a scientific expression parser which is written in lisp. I would
>>  > like to translate the code into C++...
>>  >  
>>  > 
>>  > I don't want to start again using lex...
>> 
>> Actually, starting again using lex would likely be the best approach.
>> It would give you an extensible C++ system that would be easier to
>> maintain and extend.

Lex code is easier to maintain and extend than Lisp, 
and Lisp that the author already wrote and understands? 
I don't think so.

Keep your sources in Lisp. 
Use CLiCC to compile it into C code and build a small executable
whenever you update the Lisp source.

See http://www.informatik.uni-kiel.de/~wg/clicc.html

-Kelly Murray  ···@franz.com  http://www.franz.com