Skip to content
/ CalGo Public

It solves expression from their prefix and postfix expressions.

License

Notifications You must be signed in to change notification settings

k-avy/CalGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CalGo

It is a command line tool that solves the prefix and postfix expression, it also converts the expression into desired form.

Prerequisite

Please install and set-up Golang on your system in advance.

How to run this project?

  1. Clone this Project and Navigate to the folder.
https://github.com/k-avy/CalGo.git
cd CalGo
  1. Build the project using following command.
go build ./cmd/calgo
  1. Run the executable in your vscode terminal.
./calgo
  1. You can directly run it by the following command.
go run ./cmd/calgo

Features

  1. 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>
  1. 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>
  1. To get help you can run this command.
./calgo --help
  1. Screenshot of the command line.

alt text