A basic postfix calculator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sloum 1e6001ef3d Adds go mod 4 months ago
qline Initial commit 4 months ago
termios Initial commit 4 months ago
.gitignore Adds gitignore and removes binary from version control 4 months ago
LICENSE Adds license and super basic readme 4 months ago
README.md Adds license and super basic readme 4 months ago
go.mod Adds go mod 4 months ago
main.go Adds license and super basic readme 4 months ago
nums Initial commit 4 months ago

README.md

nums

This is a basic cli calculator that uses postfix notation and can accept piped data. To use data from a command line pipe use the -p flag, for example: echo "2 2 +" | nums -p. The example would output 4, but without the -p flag would produce a runtime panic.

For help/available operators enter ? or help at the repl or via piped data to get help information printed to stderr.