Intent

Provides a definition of a macro language or syntax and parsing into objects in a program.

Where to use & benefits

Structure


Example

In the demonstration application, the interpreter pattern is implemented partially in interpreting the Command objects to draw the shapes. Refer ShapeGraphicsDrawer class, to see how the commands issues by the shape objects are interpreted and drawn using the graphics objects.

Source Code Links