Project Description
This program demonstrates the use a the GoF Interpreter Pattern in a straightforward example.

This program accepts sets of characters and operators (* or |)
using the Reverse Polish notation (RPN) also known as Postfix notation.

The * operator does a union of the previous two sets.
The | operator does a section of the previous two sets.

Example: {a,b,c} {a,d,e} * {a,d,g,h} |
The result of this expression would be {ad}.

Class Diagram

Class Diagram.png


Interpreter Pattern Demo.png


GoF Interpreter Example

Last edited Dec 3, 2007 at 7:25 AM by JonasButt, version 5