From: Tony Tanzillo
Subject: Lisp/Scheme Parser/Lexer in Pascal or Object Pascal?
Date: 
Message-ID: <658d73$c3a@mtinsc02.worldnet.att.net>
I'm looking for resources for implementing a simple
LISP/Scheme-like embedded macro language in Object 
Pascal (Borland Delphi). Straight Pascal would be 
fine as well. 

Might someone know where I can find source or other 
info for implementing a small subset of LISP in Pascal?

From: Bruce Tobin
Subject: Re: Lisp/Scheme Parser/Lexer in Pascal or Object Pascal?
Date: 
Message-ID: <3479A477.1FA1@infinet.com>
Tony Tanzillo wrote:
> 
> I'm looking for resources for implementing a simple
> LISP/Scheme-like embedded macro language in Object
> Pascal (Borland Delphi). Straight Pascal would be
> fine as well.
> 
> Might someone know where I can find source or other
> info for implementing a small subset of LISP in Pascal?

Why not use SIOD or Guile?  Both are available in DLL form that can be
linked into your OP executable.
From: Carl Zmola
Subject: Re: Lisp/Scheme Parser/Lexer in Pascal or Object Pascal?
Date: 
Message-ID: <347b17a3.6909295@192.168.2.19>
On Mon, 24 Nov 1997 15:55:35 GMT, Bruce Tobin <······@infinet.com>
wrote:

>Tony Tanzillo wrote:
>> 
>> I'm looking for resources for implementing a simple
>> LISP/Scheme-like embedded macro language in Object
>> Pascal (Borland Delphi). Straight Pascal would be
>> fine as well.
>> 
>> Might someone know where I can find source or other
>> info for implementing a small subset of LISP in Pascal?
>
>Why not use SIOD or Guile?  Both are available in DLL form that can be
>linked into your OP executable.

Whild I don't know the original poster's reason for trying this,
I've tried this with SIOD and while it works, to make it useful you
have to move siod.h over to a Delphi unit.  With all the unions, it
makes this dificult, but not impossible, but it might be easier to 
create a scheme from scratch.

I specifically am interested in using scheme as an internal macro and
testing language.  If someone has a good functional language that can
be easily extended in Delphi, please let me know.  

Carl
From: Will Hartung
Subject: Re: Lisp/Scheme Parser/Lexer in Pascal or Object Pascal?
Date: 
Message-ID: <vfr750EK9K4y.F9u@netcom.com>
·····@campbellsci.com (Carl Zmola) writes:

>Whild I don't know the original poster's reason for trying this,
>I've tried this with SIOD and while it works, to make it useful you
>have to move siod.h over to a Delphi unit.  With all the unions, it
>makes this dificult, but not impossible, but it might be easier to 
>create a scheme from scratch.

>I specifically am interested in using scheme as an internal macro and
>testing language.  If someone has a good functional language that can
>be easily extended in Delphi, please let me know.  

Well, the union you're probably referring to is the 'struct obj',
which bundles all of the primitive types into a couple words of
memory.

There may be a potential problem with integrating this union into a
Delphi variant record correctly, but it would probably be less than an
hours work to take all of the #defines in the siod.h and convert them
into a little interface.c that exports these conversions as functions
that could be called from Delphi.

And that would be FAR easier than rewriting a Scheme from scratch.

-- 
Will Hartung - Rancho Santa Margarita. It's a dry heat. ······@netcom.com
1990 VFR750 - VFR=Very Red    "Ho, HaHa, Dodge, Parry, Spin, HA! THRUST!"
1993 Explorer - Cage? Hell, it's a prison.                    -D. Duck
From: Tony Tanzillo
Subject: Re: Lisp/Scheme Parser/Lexer in Pascal or Object Pascal?
Date: 
Message-ID: <65j26r$q61@mtinsc04.worldnet.att.net>
My reasons for choosing a LISP'ish langauge is that I want
to allow the script to make late-bound calls to methods of 
Automation objects.

Will Hartung <······@netcom.com> wrote in article
<················@netcom.com>...
> ·····@campbellsci.com (Carl Zmola) writes:
> 
> >Whild I don't know the original poster's reason for trying this,
> >I've tried this with SIOD and while it works, to make it useful you
> >have to move siod.h over to a Delphi unit.  With all the unions, it
> >makes this dificult, but not impossible, but it might be easier to 
> >create a scheme from scratch.
> 
> >I specifically am interested in using scheme as an internal macro and
> >testing language.  If someone has a good functional language that can
> >be easily extended in Delphi, please let me know.  
> 
> Well, the union you're probably referring to is the 'struct obj',
> which bundles all of the primitive types into a couple words of
> memory.
> 
> There may be a potential problem with integrating this union into a
> Delphi variant record correctly, but it would probably be less than an
> hours work to take all of the #defines in the siod.h and convert them
> into a little interface.c that exports these conversions as functions
> that could be called from Delphi.
> 
> And that would be FAR easier than rewriting a Scheme from scratch.
> 
From: Tony Tanzillo
Subject: Re: Lisp/Scheme Parser/Lexer in Pascal or Object Pascal?
Date: 
Message-ID: <65d92j$fgi@mtinsc02.worldnet.att.net>
Thanks. I'm not familiar with these. Where can I find out
more?  


Bruce Tobin <······@infinet.com> wrote in article
<·············@infinet.com>...
> Tony Tanzillo wrote:
> > 
> > I'm looking for resources for implementing a simple
> > LISP/Scheme-like embedded macro language in Object
> > Pascal (Borland Delphi). Straight Pascal would be
> > fine as well.
> > 
> > Might someone know where I can find source or other
> > info for implementing a small subset of LISP in Pascal?
> 
> Why not use SIOD or Guile?  Both are available in DLL form that can be
> linked into your OP executable.
> 
From: Theo Honohan
Subject: Re: Lisp/Scheme Parser/Lexer in Pascal or Object Pascal?
Date: 
Message-ID: <86u3cyskh2.asparagus@th208.quns.cam.ac.uk>
"Tony Tanzillo" <·············@worldnet.att.net> writes:

> I'm looking for resources for implementing a simple
> LISP/Scheme-like embedded macro language in Object 
> Pascal (Borland Delphi). Straight Pascal would be 
> fine as well. 
> 
> Might someone know where I can find source or other 
> info for implementing a small subset of LISP in Pascal?

FWIW, the 'pkg' section of DEC SRC's Modula-3 distribution
incorporates a simple lisp interpreter.  It's in Modula-3, but should
be easy (not that I've scrutinised the code) to port to Delphi.