You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Tokens are parsed into prefix or Polish notation, using the (slightly modified) Shunting-yard algorithm.
118
-
-Prefix notation removes the need for brackets, and makes it easier to evaluate the expression. In this notation, the operator is placed before the operands (rather than in between them).
117
+
- Tokens are parsed into postfix or [Reverse Polish notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation), using the (slightly modified) Shunting-yard algorithm.
118
+
-Postfix notation removes the need for brackets, and makes it easier to evaluate the expression. In this notation, the operator is placed before the operands (rather than in between them).
119
119
- Our tokenised list, [`A`, `AND`, `NOT`, `B`] would be parsed into [`A`, `B`, `NOT`, `AND`].
120
120
121
121
@@ -156,7 +156,7 @@ For example:
156
156
- [x] Improve console output with colours
157
157
- [x] Implement command line arguments
158
158
- [ ] Add raw output options
159
-
- [x] Output prefix notation
159
+
- [x] Output postfix notation
160
160
- [ ] Output specific output for given variables
161
161
- [x] Output machine-readable truth table
162
162
- [ ] Create UI for the application, either web-based or desktop-based
0 commit comments