398 B
398 B
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.