In computer programming, the interpreter pattern is a design pattern that specifies how to evaluate sentences in a language. The basic idea is to have a class for each symbol (terminal or nonterminal) in a specialized computer language. The syntax tree of a sentence in the language is an instance of the composite pattern and is used to evaluate (interpret) the sentence.
Read more about Interpreter Pattern: Uses For The Interpreter Pattern, Structure, Example
Famous quotes containing the words interpreter and/or pattern:
“For man is but the servant and interpreter of nature: what he does and what he knows is only what he has observed of natures order in fact or in thought; beyond this he knows nothing and can do nothing.”
—Francis Bacon (15601626)
“The worthiest man to be known, and for a pattern to be presented to the world, he is the man of whom we have most certain knowledge. He hath been declared and enlightened by the most clear-seeing men that ever were; the testimonies we have of him are in faithfulness and sufficiency most admirable.”
—Michel de Montaigne (15331592)