in reply to Re^3: RFC: Almost a Book
in thread RFC: Almost a Book

> there are already a number of well-done "write your own mini-Scheme" books out there

Point taken, but a Perl implementation has an advantage over C for understanding an implementation because it's much higher level, and over Scheme because there's no incestuous metacircular evaluation to confuse things.

Secondly, yes, you hit the nail on the head about syntax because the Parsing section would use the existing evaluator as a target with new, alternative and interesting syntax, certainly better than those "Pratt parsers" that I've seen. Syntax aesthetics is often ignored in hard CS texts.

Finally the third section on compilation would generate Parrot, making the use of Perl in the other sections doubly relevant, but I said that already.

Replies are listed 'Best First'.
Re^5: RFC: Almost a Book
by chromatic (Archbishop) on May 05, 2006 at 22:54 UTC
    Finally the third section on compilation would generate Parrot...

    There are a couple of attempts in progress to port Scheme (or something Scheme-like) to Parrot. Pheme, for example, is far enough along to have exposed a few bugs in Parrot.