What is the purpose of the Interpreter pattern?

  • To create complex objects step by step, using a builder object to abstract the process of creating the object
  • To define a grammatical representation for a language and provide an interpreter to deal with this grammar
  • To provide a common interface for a group of related classes
  • To provide a way to pass requests along a dynamic chain of receivers until one of them handles the request
The Interpreter pattern defines a grammatical representation for a language and provides an interpreter to deal with this grammar
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *