A little compiler for a non-trivial language built for the Programming Languages and Compilers course @ UniMORE.
The test directory contains...
- floor → rounds down a number to the closest integer <= to that number (whole or fractional)
- rand → generate and print 10 pseudorandom numbers
- fibonacci → calculate the n-th Fibonacci number
- sqrt → calculate the (approximate) square root of an arbitrary number
- eqn2 → calculate the solutions of a quadratic equation, given the coefficients a,b and c
- sqrt2 → like sqrt but uses the logical operator 'or'
- sqrt3 → like sqrt but uses the logical operators 'and' and 'not'