From: Mushfeq Khan Date: 2007-04-09T06:35:56+09:00 Subject: Re: [OT] How to write a toy interpreter. ------=_Part_26600_8985677.1176068153531 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline A toy interpreter is part of the test suite for Dhaka (a parser generator - http://dhaka.rubyforge.org). There's even a page documenting the interesting bits: http://dhaka.rubyforge.org/chittagong.html The whole interpreter is about 300 lines of code. Mushfeq. On 4/8/07, Brian Candler wrote: > > On Mon, Apr 09, 2007 at 02:37:46AM +0900, Pedro Del Gallego wrote: > > I was reading today this post [1], and i would like to write my own > > toy interpreter. The simplest example possible (with or without ruby). > > > > Can anyone recommend me some start points ? (URLs, tutorials, or books ) > > An excellent book for everything about language parsing and code > generation > is "Compilers: Principles, Techniques and Tools" > http://en.wikipedia.org/wiki/Compilers:_Principles,_Techniques,_and_Tools > > ------=_Part_26600_8985677.1176068153531--