1
0
Fork 0
A basic postfix calculator
Go to file
sloum 1e6001ef3d Adds go mod 2021-05-24 05:47:35 +00:00
qline Initial commit 2021-05-23 22:21:25 -07:00
termios Initial commit 2021-05-23 22:21:25 -07:00
.gitignore Adds gitignore and removes binary from version control 2021-05-23 22:22:13 -07:00
LICENSE Adds license and super basic readme 2021-05-23 22:34:01 -07:00
README.md Adds license and super basic readme 2021-05-23 22:34:01 -07:00
go.mod Adds go mod 2021-05-24 05:47:35 +00:00
main.go Adds license and super basic readme 2021-05-23 22:34:01 -07:00
nums Initial commit 2021-05-23 22:21:25 -07:00

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.