Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rvcas/crisp
A Minimal Lispy Calculator
https://github.com/rvcas/crisp
calculator lisp zig
Last synced: 19 days ago
JSON representation
A Minimal Lispy Calculator
- Host: GitHub
- URL: https://github.com/rvcas/crisp
- Owner: rvcas
- License: mit
- Created: 2017-09-22T14:47:19.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-09-27T22:57:24.000Z (about 1 year ago)
- Last Synced: 2024-10-09T17:50:54.383Z (about 1 month ago)
- Topics: calculator, lisp, zig
- Language: Zig
- Homepage:
- Size: 44.9 KB
- Stars: 24
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - crispποΈA Minimal Lispy Calculator
README
# Crisp
A very minimal lispy calculator implemented in [zig](https://ziglang.org)
![Running Crisp](https://github.com/rvcas/crisp/raw/main/img/screenshot.png)
## Operations
- `+` add a sequence of numbers
- `(+ 1 2 3)`
- `-` subtract a sequence of numbers
- `(- 3 2)`
- `*` multiply a sequence of numbers
- `(* 3 5 2)`
- `/` divide a sequence of numbers
- `(/ 12 4)`
- decimals are not supported. meaning: `(/ 2 4) => 0`
- everything is floored
- divide by zero results in an error