The Interpreter pattern supports the interpretation of instructions written in a language or notation defined for a specific purpose. The notatation is precise and can be defined in terms of a grammar.
You have a grammar to be interpreted and:
- The grammar is not too large.
- Efficiency is not critical.
- Parsing tools are available.
- XML is an option for the specification.
- Erich Gamma et al. Design Patterns
- C# Design Patterns