Related articles |
---|
Syntax of SmallTalk kjs@home.nl (Klaas-Jan Stol) (2004-12-23) |
Re: Syntax of SmallTalk ogailx502@sneakemail.com (Tim Olson) (2004-12-25) |
Re: Syntax of SmallTalk Trevor.Jenkins@suneidesis.com (2004-12-25) |
Re: Syntax of SmallTalk peter.ilberg@ni.com (Peter Ilberg) (2004-12-25) |
Re: Syntax of SmallTalk nick.roberts@acm.org (Nick Roberts) (2004-12-25) |
Re: Syntax of SmallTalk davide.grandi@mclink.it (2004-12-25) |
Re: Syntax of SmallTalk lex@cc.gatech.edu (Lex Spoon) (2005-01-19) |
From: | Tim Olson <ogailx502@sneakemail.com> |
Newsgroups: | comp.compilers |
Date: | 25 Dec 2004 20:17:04 -0500 |
Organization: | Compilers Central |
References: | 04-12-110 |
Keywords: | smalltalk, parse |
Posted-Date: | 25 Dec 2004 20:17:04 EST |
Klaas-Jan Stol <kjs@home.nl> wrote:
| I'm looking for a *complete* grammar for SmallTalk. I've searched quite
| a bit, but haven't been able to find anything. There doesn't seem to be
| a SmallTalk grammar available. I'd like to create a SmallTalk port to
| another VM. For that, I'd like the grammar in Yacc format, but any other
| would be great, too.
Perhaps you found it, but thought it wasn't complete because it was
too small! Smalltalk syntax is incredibly simple (Forth is the only
language I know which has a simpler syntax).
The BNF for Smalltalk can be found in the draft ANSI Smalltalk Standard
document; here's one reference:
<http://minnow.cc.gatech.edu/squeak/uploads/172/standard_v1_9-indexed.pdf>
[Note that there is an additional "file-out" syntax used to represent
Smalltalk in external text files, but that varies slightly between the
various implementations]
-- Tim Olson
[I think it's like Lisp in that the basic language is so low level that
it's easy to parse, but you can't tell much about the program after
you've done so. For usful analysis you need to know what a lot of the
standard operators do. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.