-
Book Overview & Buying
-
Table Of Contents
Practical Systems Programming in Go
By :
In our initial implementation of SMALL, we established the fundamental architecture of an interpreter. We built a lexer to digitize raw text into a stream of tokens, a Pratt parser to organize those tokens into a mathematically sound abstract syntax tree, and a tree-walking evaluator to execute the resulting logic. While this minimal feature set proved the viability of our execution model, a language restricted to simple arithmetic and static conditionals is limited in its practical utility. To transform SMALL from a theoretical exercise into a capable programming tool, we must now expand its expressive power.
Adding new features to a programming language, such as SMALL, is more than just a technical exercise; it is also a process driven by the desire to evolve, adapt, and better serve the needs of its users. By the end of this chapter, you will have moved beyond simple calculations to building a language that can execute simple algorithms, understand true...