From: | "Jonathan Thornburg" <jthorn@astro.indiana.edu> |
Newsgroups: | comp.compilers |
Date: | 21 Apr 2012 15:04:14 GMT |
Organization: | Compilers Central |
References: | 12-04-019 12-04-021 12-04-040 12-04-048 |
Keywords: | books, interpreter, comment |
Posted-Date: | 21 Apr 2012 17:18:50 EDT |
BartC <bc@freeuk.com> wrote:
> Start with a very simple language. Perhaps even a version of Basic (as a
> useful language consisting of Let, If, Goto, Print (and perhaps Input) can
> be created without any structured statements; only expressions need
> recursive methods to deal with). You might consider also interpreting the
> language rather than translating to a target language. And use an easy,
> dynamic language to implement it all in. Stay away from C, C++, or anything
> else with curly braces.
>
> (Sorry, I can't recommend any books because I haven't read any...)
Another book of interest is
P. J. Brown
"Writing Interactive Compilers and Interpreters"
(Wiley, 1981)
It's a completely non-mathematical (& pretty "basic", i.e., assuming
very little prior knowledge) tour through what's needed to write a
Basic interpreter.
--
-- "Jonathan Thornburg [remove -animal to reply]" <jthorn@astro.indiana-zebra.edu>
Dept of Astronomy & IUCSS, Indiana University, Bloomington, Indiana, USA
[It's not a bad book. It's quite old, but you can usually find a copy in the
usual online used bookstores. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.