-
Book Overview & Buying
-
Table Of Contents
Building Programming Language Interpreters
By :
Not everything that will be done by your interpreter is going to be mapped into interpreted instructions. As I described earlier, one of the most important tools for constructing new programming languages is the idea of creating powerful abstractions that will allow the interpreter to build different ways of addressing problems.Interacting with inputs and outputs is something that will usually require your interpreter to interface the higher-level constructs of your language with lower-level concepts from the underlying native programming language and operating system.For instance, your programming language may be dealing with encoded text, but the underlying operating system will usually operate in terms of octets. Therefore, your interpreter will have the responsibility of translating those different semantics.One example of how this can happen is the idea that you may have a partial read that will give you half of a Unicode...