4 Replies - 1682 Views - Last Post: 07 July 2014 - 02:46 AM

#1 Luca91   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 19-August 13

Books about writing an interpreter

Posted 01 July 2014 - 05:28 AM

Hi all,
I'd like to learn how to create a new interpreted programming language for didactic purpose.
I've found many books that teach how to create a bare bone compilers, but only a few that teach something cool about interpreters.
I've found these two:

Building Parsers with Java - Steven John Metsker (link)

Writing Compilers and Interpreters: A Software Engineering Approach - Ronald Mak (link)

The first one looks good, but afaik it use java (while I would prefer to use C/C++ to write an interpreter)
Does anybody can suggest me a book ? has anybody tried one of those two books ??

Many thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Books about writing an interpreter

#2 Skydiver   User is offline

  • Code herder
  • member icon

Reputation: 7915
  • View blog
  • Posts: 26,425
  • Joined: 05-May 12

Re: Books about writing an interpreter

Posted 01 July 2014 - 07:01 AM

I can't find it right now, but I thought that there was a paper or article on the evolution and development of Lua. When I read it, I remember it being as mind opening as when I first read Crenshaw's Let's Build a Compiler back in the late 80's. Both had equal balance of the philosophy of things (e.g. the "why") as well as the practical nuts bolts including compromises made (e.g. the "how").
Was This Post Helpful? 0
  • +
  • -

#3 Luca91   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 19-August 13

Re: Books about writing an interpreter

Posted 01 July 2014 - 09:02 AM

Well, I prefer "pratical" books over theory only ones
Was This Post Helpful? 0
  • +
  • -

#4 Luca91   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 19-August 13

Re: Books about writing an interpreter

Posted 05 July 2014 - 06:39 AM

Anyone ? Thanks!
Was This Post Helpful? 0
  • +
  • -

#5 cfoley   User is offline

  • Cabbage
  • member icon

Reputation: 2425
  • View blog
  • Posts: 5,068
  • Joined: 11-December 07

Re: Books about writing an interpreter

Posted 07 July 2014 - 02:46 AM

Martin Fowler recently published Domain Specific Languages. It's aimed at writing interpretors for niche languages to embed in larger programs. However, what it does very well is present a variety of approaches for accomplishing the task.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1