{"repo":"soveran/clac","free":true,"listed":false,"github":"https://github.com/soveran/clac","clone":"git clone https://github.com/soveran/clac.git","description":"Command-line, stack-based calculator with postfix notation","language":"C","stars":371,"topics":["postfix","stack-based","calculator","command-line"],"license":"BSD-2-Clause","category":"cli-tools","readme_excerpt":"Clac A command line, stack-based calculator with postfix notation that displays the stack contents at all times. As you type, the stack changes are reflected immediately. In a stack-based postfix calculator, entering a number pushes it on a stack, and arithmetic operations pop their arguments from the stack and push the result. As all the operations take a fix number of arguments, there's no room for ambiguity: parenthesis and operator precedence are not needed. Postfix notation is also known as reverse Polish notation, or RPN. Why? ---- I like Forth and other stack based, concatenative languages, and I've used the dc calculator a lot. Once I got used to dc , other calculators seemed to be less powerful. While it has been extremely useful for me, I've always found the UI a bit lacking. That's why I decided to try this idea of an always-visible stack with realtime updates. Installation ------------ Download the [latest release][releases] or check the available [packages][packages]. You can also compile the source code in the master branch. [releases]: https://github.com/soveran/clac/releases [packages]: https://github.com/soveran/clac/wiki/Distribution-Packages Install clac into /usr/local/bin with the following command: $ make install You can use make PREFIX=/some/other/directory install if you wish to use a different destination. If you want to remove clac from your system, use make uninstall . Commands -------- When a command requires an argument, it pops a value from the s","default_branch":null,"files":null,"tree":[],"storefront":"/r/soveran","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/soveran/clac/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}