https://github.com/reesporte/ari
ari lexes, parses, and interprets arithmetic expressions with floating point values
https://github.com/reesporte/ari
Last synced: 3 months ago
JSON representation
ari lexes, parses, and interprets arithmetic expressions with floating point values
- Host: GitHub
- URL: https://github.com/reesporte/ari
- Owner: reesporte
- Created: 2021-12-06T05:15:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-06T05:27:44.000Z (over 3 years ago)
- Last Synced: 2025-01-16T16:25:30.385Z (5 months ago)
- Language: Go
- Size: 1.07 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ari
`ari` will lex, parse and evaluate arithmetic expressions from a file
```bash
$ cat example.input
420 + 69 + 69 * 38 + 400 - 69.32 / 800.4343434
400 / 54 + 38.2 - 77
$ ari example.input
420 + 69 + 69 * 38 + 400 - 69.32 / 800.4343434 = 3510.9133970192916
400 / 54 + 38.2 - 77 = -31.39259259259259
```