May 2022
Intermediate to advanced
678 pages
11h 48m
English
This chapter covers the Interpreter pattern.
Given a language, it defines a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
This pattern plays the role of a translator, and it is often used to evaluate sentences in a language. So, you first need to define grammar to represent the language. Then the interpreter deals with that grammar. This pattern works best if the grammar is simple.
To understand this pattern, ...
Read now
Unlock full access