1 package calculator;
2
3 /**
4 * Enumeration of the 3 ways to represent an arithmetic expression as a String:
5 */
6 public enum Notation {
7 /**
8 * Prefix notation, e.g. "+(1,2)" or "+ 1 2"
9 */
10 PREFIX,
11
12 /**
13 * Infix notation, e.g. "1+2"
14 */
15 INFIX,
16
17 /**
18 * Postfix notation, e.g. "(1,2)+" or "1 2 +"
19 */
20 POSTFIX
21 }