Friendly simple calculator
Tver can be used both as a single header library and as a binary executable.
You can write expressions with
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
Run make
to create the executable.
Executable welcomes you with a prompt, where you can write expressions and hit enter too see the result.
Use tver::Parser
class to create a parser. Initialize its text
and call parse()
to get the result as float.