This is a program that parses a RPN Notation Equation and prints the result. Based off of rpn.py by @wd5gnr.
This is a POC! Features may be added or removed as seen fit.
See the LICENSE file. TLDR - MIT License
RPN.Calc.Console.exe "expression to evaluate"
Or you can use dotnet
if you have it installed.
cd <Checkout directory>\RPN.Calc.Console
dotnet run -- "expression to evaluate"
As of 6/26/2023, RPN.cs understands the following operators:
Operator | Description |
---|---|
+ | Addition |
- | Subtraction |
* | Multiplication |
/ | Division |
^ | Power Of |
! | Store Top Of Stack in a tempVar |
@ | Retrieve tempVar and push to Top Of Stack |
? | Dump the stack |
& | Dump the tempVar list |