Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/8dcc/calc
Emacs-like CLI calculator
https://github.com/8dcc/calc
Last synced: 4 days ago
JSON representation
Emacs-like CLI calculator
- Host: GitHub
- URL: https://github.com/8dcc/calc
- Owner: 8dcc
- License: gpl-3.0
- Created: 2023-09-16T17:15:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T14:05:14.000Z (about 1 year ago)
- Last Synced: 2024-04-18T17:08:54.897Z (7 months ago)
- Language: C
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+title: calc
#+options: toc:nil
#+startup: showeverything
#+author: 8dcc*Emacs-like CLI calculator.*
#+TOC: headlines 2
* Description
Simple stack-based CLI calculator made in C. Decided to start this project the day I discovered emacs' =calc= (=C-x * i=).* Building
#+begin_src console
$ git clone https://github.com/8dcc/calc
$ cd calc
$ make
...
#+end_src* Usage
You can use the =help= command to display a list with the available commands:
#+begin_src console
$ ./calc.out
[calc]: help
...
#+end_srcExample:
#+begin_src console
$ ./calc.out
[calc]: 8
[stk+00] 8[calc]: 20
[stk+00] 8
[stk+01] 20[calc]: 2
[stk+00] 8
[stk+01] 20
[stk+02] 2[calc]: /
[stk+00] 8
[stk+01] 10[calc]: +
[stk+00] 18[calc]: q
$
#+end_src