Message-ID: <3B791D94.C0B392CD@csi.com>
Date: Tue, 14 Aug 2001 08:46:12 -0400
From: John Colagioia <JColagioia@csi.com>
Organization: No Conspiracy Here...
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en,fr,ru,es,it,ga,de,ja,gd,eu
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: Other languages
References: <B794B374.B13%edutec@idirect.com> <3B73D0DA.319A3167@csi.com> <6nc8l9.0ab.ln@127.0.0.1>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.34.37.104
X-Original-NNTP-Posting-Host: 208.34.37.104
X-Trace: excalibur.gbmtech.net 997792688 208.34.37.104 (14 Aug 2001 08:38:08 EST)
Lines: 53
X-Authenticated-User: jnc
X-Original-NNTP-Posting-Host: 127.0.0.1
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!news-reader.ntrnet.net!uunet!ash.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:91099

David Given wrote:

> In article <3B73D0DA.319A3167@csi.com>,
>         John Colagioia <JColagioia@csi.com> writes:
> [...]
> > Tim Budd's "Little Smalltalk"
> > (http://www.smalltalk.org/versions/LittleSmalltalk.html) would probably be
> > the easiest to get running, being 1800 lines of code and designed as an
> > example for his textbook.
> ...unfortunately I can't get it to work; it all compiles, but it seg
> faults whenever you try to parse any Smalltalk expressions. I thought that
> maybe the image was corrupted, and so tried rebuilding that, but it kept
> bombing out with a parse error.

Oops!  I should have checked that out before posting.  I know I have a running
copy...ah.  It's a v3 compile.  From...the CMU AI repository.  You can get a
buildable copy (though out of date) and executables for a handful of machines
at:
    http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/st/impl/little/

Meanwhile, I looked at the v4 problem, and it looks like the last line in the
"library source" is a problem ("begin nil main").  Alas, I don't know enough
Smalltalk to figure out what the problem is, quite yet.


> [Glossary: `image' --- Smalltalk is persistant.

[...]

> (Rather like Z-machine savegames, actually.)

Very much so, yes.  The major difference, conceptually, is that you can have a
separate library loaded for run-time with the Smalltalk image, which you can
then build your program on.


> > However, that still doesn't solve the "I wouldn't know how to parse under
> > Smalltalk" problem, so I'm hoping someone else pipes up with a decent
> > reference.
> Probably your best bet is to find a decent OO parser --- how's Platypus?

Well, you see, that was my point at the top of the previous post.  I've never
seen an actual "object-oriented parser."  I've seen parsers in C++ and Java, but
they were little more than transcriptions of the "Dragon Book" code.


> --- and port that. Smalltalk's got real string support but it's probably
> not necessary.

Depends how you want to go about parsing.  If you could arrange a "statement
class" that would break itself down into component parts, that might be useful.


