Lewis-Allen/Design-Patterns

Add the Interpreter Pattern

Opened this issue · 0 comments

In the Gang of Four book there is one more behavioural pattern known as the Interpreter Pattern. We do not currently have this implemented but would welcome anyone who wishes to implement this.

Instructions

  • Add a project to the solution named "InterpreterPattern"
  • Add your implementation of the interpreter pattern.
  • Modify the existing interpreter pattern button on the GUI in the "Design Patterns" project. Configure the button so it runs your implementation of the Interpreter Pattern.
  • Modify the README in the root directory, adding a link for the interpreter pattern.
  • Add a short README to your Interpreter Pattern directory which begins with:

Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language (Gang of Four).

along with some details about your example, and a UML diagram detailing your example. See the README in directories such as Visitor Pattern and Abstract Factory Pattern for examples.

  • Finally, send Me and/or Gerome a pull request and we'll take a look.

Cheers,