Commit Graph

12 Commits

Author SHA1 Message Date
Gleb Koval d463251ff1
Fix reverse polish stack argument order and add non-symmetric evaluation tests
Co-Authored-By: td1223
2024-11-05 19:05:33 +00:00
Gleb Koval 38e373bdfc
Implement ReversePolishStack UI observer to handle operator input and evaluation
Co-Authored-By: td1223
2024-11-05 19:02:48 +00:00
Gleb Koval 855ce9fd55
Implement toString for IntOperator and ReversePolishStack
Co-Authored-By: td1223
2024-11-05 18:59:04 +00:00
Gleb Koval ff6d33770f
Implement operator buttons for +, -, *, /, and evaluate button
Co-Authored-By: td1223
2024-11-05 17:37:07 +00:00
Gleb Koval ad298f23e5
Add number inputs from 0 to 9 to GUI
Co-Authored-By: td1223
2024-11-05 17:29:35 +00:00
Gleb Koval 45a06ab15e
Implement initial UI with textbox
Co-Authored-By: td1223
2024-11-05 17:22:39 +00:00
Gleb Koval b9dbfb86ad
Implement ReversePolishStack.evaluate() on current stack with push-back.
Co-Authored-By: td1223
2024-11-05 17:07:47 +00:00
Gleb Koval 1e84974198
Implement IntOperator.getOperand()
Co-Authored-By: td1223
2024-11-05 17:01:05 +00:00
Gleb Koval bdd06f9252
Implement pushing to reverse polish stack
Co-Authored-By: td1223
2024-11-05 16:47:35 +00:00
Gleb Koval 9f5a89a63f
IntOperator implementation with evaluation and argument count checking.
Co-Authored-By: td1223
2024-11-05 16:43:58 +00:00
Gleb Koval 84f1c2bb86
Create ReveresePolishStack, which is empty on creation.
Co-Authored-By: td1223
2024-11-05 16:37:31 +00:00
Robert Chatley b7fa2ff8cb Initial files for exercise. 2024-09-06 16:09:57 +01:00