| | Towers of Hanoi (Site not responding. Last check: 2007-11-07) |
 | | Once the language is mapped to a grammar, and the grammar is implemented with an interpretation engine; then problems in the domain can be solved by simply feeding them to the engine. |
 | | The Interpreter pattern (reference 2) prescribes: define a domain language as a simple grammar, represent the grammar rules as a network of objects, and feed problem statements to the resulting interpretation machine. |
 | | In fact, comparing the reference design class diagrams for the Interpreter and Composite patterns in figures 5 and 6, it is apparent that the Interpreter pattern is a thin veneer on top of the Composite pattern. |
| home.earthlink.net /~huston2/ps/hanoi_article.html (1323 words) |