Calculator

The aim of this example is to create a calculator for numerical expressions. We use prefixed expressions because this kind of expression is easier to analyze :
For example, + / 4 2 1 gives the following result: 3 (= 4/2 + 1)
Moreover, the character '-' is used as a sign by the class StreamTokenizer. Thus, the corresponding binary operator will be represented by the word "minus".

First version

Version with dynamic loading of operators

To get the result, it is necessary, with Eclipse, to :
  1. ask to create a project with separated sources and binaries :
  2. create a second source directory, for example pluginsSrc :
  3. create a directory for the binaries obtained from the sources of the directory pluginsSrc :