jeudi 13 juin 2019

Does the pattern have a general form, or is it really narrowly defined for one use case - interpreting a language?

The Intepreter pattern

is a design pattern that specifies how to evaluate sentences in a language.

enter image description here

That sounds like a use case of the pattern: interpreting a language is just an example of the pattern.

Does the pattern have a general form? Or is it really narrowly defined for one use case - interpreting a language?

Aucun commentaire:

Enregistrer un commentaire