File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,18 @@ The project follows the following class diagram:
57
57
2. Run the compiled executable and enter an arithmetic expression and the given notation:
58
58
59
59
` ` ` bash
60
- ./executable expression notation
60
+ ./executable -e < expression> -m < notation>
61
61
```
62
+ - -m < notation> : Specifies the notation of the arithmetic expression. The < notation> can be one of the following:
63
+ - ` infix` : Indicates that the expression is in infix notation.
64
+ - ` postfix` : Indicates that the expression is in postfix notation.
65
+ - ` prefix` : Indicates that the expression is in prefix notation.
66
+ - -e < expression> : Specifies the arithmetic expression to be evaluated. The < expression> should be enclosed in parentheses to ensure correct parsing.
67
+
62
68
Infix-Example:
63
69
64
70
` ` ` bash
65
- ./executable (( (2 + 2 ) + ( 2 + 2 )) * (( 10 / 5 ) * 3 )) |
71
+ ./executable -e (( (2 + 112 ) + 24 ) * ((100 / 5 ) * 3 )) -m infix
66
72
` ` `
67
73
68
74
You can’t perform that action at this time.
0 commit comments