Top down parser for parsing expressions into abstract syntax tree for arithmetic expressions.
- Numbers - Int only!(for now)
- Normal Operators - +, -, *, /
- If/Else - if('value' <|>|= 'value', 'whenTrue', 'whenFalse')
- Braces - ()
- Log - log(number, base)
- Natural Logarithm - ln(number)
98+if(log(56*3,32) > 98, 845*32,ln(37))
You need to have g++ installed.
Clone repo
https://github.com/ivo96/expression-parser.git
Change permissions
chmod +x ./compile.bash
Compile
./compile.bash
Run the executable
./bin/calculator