Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alisdair/hc
hc is a command-line RPN calculator tool
https://github.com/alisdair/hc
Last synced: 10 days ago
JSON representation
hc is a command-line RPN calculator tool
- Host: GitHub
- URL: https://github.com/alisdair/hc
- Owner: alisdair
- License: mit
- Created: 2014-02-09T21:50:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-02-10T13:45:54.000Z (over 10 years ago)
- Last Synced: 2024-10-12T21:45:30.919Z (24 days ago)
- Language: Haskell
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hc
hc is a command-line RPN calculator tool. It is very simple.
This code was produced in a two-hour Haskell pairing session with [@kubkon](https://github.com/kubkon).
## Usage
$ hc 4 5 + 3 \*
27$ hc 4 5 3 +
hc: Operator missing$ hc 4 +
hc: Stack underflow## Tips
If you're using zsh, try this alias in your ~/.zshrc:
alias hc="noglob hc"
With it in place, you don't have to escape \*.
If you're using bash, I feel bad for you.
## License
MIT.
Written by Alisdair McDiarmid and Jakub Konka.