-
Book Overview & Buying
-
Table Of Contents
Building Programming Language Interpreters
By :
In Chapter 1, Defining the Scope, I discussed the idea that for our DSL to be useful in multiple environments, I would design the interpreter with the approach called sans I/O. It is now time to dive a bit further into the specifics of this choice. The first aspect that I want to establish is the way in which the interpreter will execute the different types of operations.
I’ll start by identifying the different parts of the work the interpreter will have to do:
Given my priority of making this interpreter easier to integrate into different systems and environments, I prefer to make these tasks as different entry points that the native code will call.
It is possible that your design will have different requirements. For instance, if your interpreter...