Some examples for the course TDDD55
There are two variants of the recursive descent calculator. recursiveDescentCalculator.jl implements a calculator. The other example simply accepts or rejects the given expression.
> julia recursiveDescentCalculator.jl
Enter expression => (4+4)*3
Result of res is: 24.0
Enter expression => (4+4)*3+(4+4)*3
Result of res is: 48.0
Enter expression => 9/3
Result of res is: 3.0