Chapter 1Language Applications Cracked Open

In this first part of the book, we’re going to learn how to recognize computer languages. (A language is just a set of valid sentences.) Every language application we look at will have a parser (recognizer) component, unless it’s a pure code generator.

We can’t just jump straight into the patterns, though. We need to see how everything fits together first. In this chapter, we’ll get an architectural overview and then tour the patterns at our disposal. Finally, we’ll look at the guts of some sample language applications to see how they work and how they use patterns.

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.