https://github.com/jochasinga/calc
a simple command line calculator
https://github.com/jochasinga/calc
Last synced: 4 months ago
JSON representation
a simple command line calculator
- Host: GitHub
- URL: https://github.com/jochasinga/calc
- Owner: jochasinga
- License: bsd-2-clause
- Created: 2018-03-24T06:56:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T00:29:05.000Z (about 8 years ago)
- Last Synced: 2025-10-12T03:09:24.843Z (8 months ago)
- Language: Yacc
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# calc
**calc** is a command line calculator interpreter.
- supports only decimal and hexadecimal numbers
- math operators supported: `+`, `-`, `*`, `/`, `%`, `|`
- bit-wise operators: `&`, `|`, `~`, `^`
- parentheses supported
- comment starts with `#`
**set up**
requires cc/gcc.
```shell
$ cd calc; make
$ ./calc
```