Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emgyrz/math_expr_parser
Math expressions parser
https://github.com/emgyrz/math_expr_parser
Last synced: 8 days ago
JSON representation
Math expressions parser
- Host: GitHub
- URL: https://github.com/emgyrz/math_expr_parser
- Owner: emgyrz
- Created: 2019-10-05T18:12:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-07T13:58:55.000Z (over 5 years ago)
- Last Synced: 2024-11-09T05:33:03.675Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 578 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Math expressions parser
Just for training
Dijkstra’s algorithm used
### Run
```sh
cargo run -- "5.23 + 41 * 0.79"
cargo run -- "(1 + 2) * -((3 + 4) - 9)"
```#### Accepts
* floats
* simple math operations `+` | `-` | `*` | `/`
* round brackets `(` | `)`
* negative numbers and expressions in brackets `-9.1`, `-(5 + 2)`
* exponentiation `^`