Skip to content

Commit 73f7a88

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 50100e8 + 0bb75ce commit 73f7a88

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,18 @@ The project follows the following class diagram:
5757
2. Run the compiled executable and enter an arithmetic expression and the given notation:
5858
5959
```bash
60-
./executable expression notation
60+
./executable -e <expression> -m <notation>
6161
```
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+
6268
Infix-Example:
6369

6470
```bash
65-
./executable (((2 + 2) + (2 + 2)) * ((10 / 5) * 3)) |
71+
./executable -e (((2 + 112) + 24) * ((100 / 5) * 3)) -m infix
6672
```
6773

6874

0 commit comments

Comments
 (0)