Up Next

This pattern concludes our chapter on high-level interpreters. These interpreters are best suited to implementing DSLs rather than general-purpose programming languages. They are not too hard to build and are very flexible. (We can add new instructions without much trouble.) But, they are not particularly efficient at run-time. To squeeze memory resources down and to accelerate execution speed, we need to process the input source code more. In the next chapter on bytecode interpreters, we’ll do exactly that. The upcoming patterns are useful for making efficient DSL and general-purpose language interpreters.

Get Language Implementation Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.