Some programs are controlled by short commands in text form. They may come from user, to be read from a file, or received from another program. This make communication with such a program easier and clearer for other programs. This is a special and simplified case of Interpreter design pattern.
- Programs, which gets parameters from the command line.
- Servlets, for which data are sent using GET or POST.
- Applets on web pages where the parameters are placed in HTML.
For performance reasons, it is better when there will be interpreted many groups of parameters in a single code run. More…