calculator-parser 1.0.0

A simple calculation parser for user input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## Calculator
A lightweight rust calculation parser. Only supports basic syntax, eg. no parentheses or functions beyond basic operators.

The current operators that are supported are
 
| Character used | Function |
| `+` | Add to number |
| `-` | Subtract from number |
| `*` | Multiply number |
| `\` | Divide number |
| `^` | Use an exponent |

**Example:** `2^2+5` would be transformed into 9. It is pretty much just normal math syntax.

Just pass a string reference to the `calculate` function, and a 64 bit floating point number will be returned.