The Interpreter pattern implements a specialized language. It is one of the Gang of Four's behavioral design patterns. When using this tag on implementation heavy questions - tag the code language the implementation is written in.
The Interpreter design pattern is one of the Gang of Four's behavioral design-patterns, first published in Gamma et al.'s book "Design Patterns: Elements of Reusable Object-Oriented Software".
The goal of this design pattern is to support a Domain Specific Language (DSL) by specifying how to evaluate sentences comprised of the DSL.