Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!europa.chnt.gtegsc.com!salliemae!uunet!usc!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!world!tonyk
From: tonyk@world.std.com (Tony J. Kanawati)
Subject: Re: Scheme Pre-processor
Message-ID: <D8AuEw.6Jv@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
X-Newsreader: TIN [version 1.2 PL2]
References: <3olpdb$jup@firewall.isscad.com>
Date: Tue, 9 May 1995 07:06:32 GMT
Lines: 36

Tom McKay (mckay@isscad.com) wrote:
: Hey all!

: I'm worried about using Scheme as an interface to a long-running executable
: when execution could be halted by something as simple as an undefined
: variable.  With this in mind, is there a something along the lines of a
: Scheme pre-processor out there?  Has anyone else run into this?

: Any help appreciated.  Thanks.

: -Tom

Most Scheme compilers allow (or demand) such checking, unless you're using
EVAL or LOAD.  Typically, you'd observe a link error.

If you're ambitious, you can write such a program yourself.  Check
"Essentials of Programming Languages" [Wand et al.] for techniques on
parsing, building static environments, and some approaches to compiling.
Since you can read Scheme programs as data, and they're automatically
parsed by the reader, the tedious part of your program is solved.  You can
also use the macro expander to reduce the number of syntactic forms you
need to account for.

Check the Scheme FAQ for a list of compilers; it appears on this group
regularly.

Good Luck,

--
Q: If I fax something to myself, will I go blind?
A: Certainly not.  As far as I can see.
	-- The friendly guide to safe Fax, Dr. B Comfortable
-- 
--
Antoun (Tony) Kanawati
tonyk@world.std.com
