https://github.com/dgraham/calc
A recursive descent parser for mathematic expressions.
https://github.com/dgraham/calc
Last synced: over 1 year ago
JSON representation
A recursive descent parser for mathematic expressions.
- Host: GitHub
- URL: https://github.com/dgraham/calc
- Owner: dgraham
- License: mit
- Created: 2016-10-04T02:26:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-08-29T15:52:12.000Z (almost 6 years ago)
- Last Synced: 2025-01-14T14:59:06.313Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calculator
A recursive descent parser for mathematic expressions based on the
grammar in [Jamis Buck][jamis]'s [parser challenge][challenge].
[jamis]: https://github.com/jamis
[challenge]: http://weblog.jamisbuck.org/2016/9/17/weekly-programming-challenge-8.html
## Usage
```
$ calc 1 + 2
$ calc --dot 1 + 2 | dot -Tsvg > tree.svg
```
## Development
```
$ cargo test
$ cargo build
```
## License
Calculator is released under the MIT license. Check the LICENSE file for details.