It is a command line tool that solves the prefix and postfix expression, it also converts the expression into desired form.
Please install and set-up Golang on your system in advance.
- Clone this Project and Navigate to the folder.
https://github.com/k-avy/CalGo.git
cd CalGo
- Build the project using following command.
go build ./cmd/calgo
- Run the executable in your vscode terminal.
./calgo
- You can directly run it by the following command.
go run ./cmd/calgo
- You can solve Prefix and Postfix of an expression using the following command.
# for prefix expression
./calgo solve prefix -- <expression here as string>
# for postfix expression
./calgo solve postfix -- <expression here as string>
- You can convert from (prefix or postfix) to (prefix,postfix or infix) using the command.
./calgo convert --from <type> --to <type> -- <expression here as string>
- To get help you can run this command.
./calgo --help
- Screenshot of the command line.