An open API service indexing awesome lists of open source software.

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.

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.