saiwolf / rpn-calc-in-csharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPN Calculator In C#

This is a program that parses a RPN Notation Equation and prints the result. Based off of rpn.py by @wd5gnr.

Heads Up!

This is a POC! Features may be added or removed as seen fit.

LICENSE

See the LICENSE file. TLDR - MIT License

Usage

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"

Valid Operators

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

About

License:MIT License


Languages

Language:C# 100.0%