Interpreter-like implementation of a calculator in C based on Thorsten Ball's book Writing an Interpreter in Go.
Run the following commands:
git clone git@github.com:cfung89/Interprelator.git
cd Interprelator
makeThe binary is compiled to bin/main.
- Basic features: Addition, subtraction, multiplication, division, exponentiation.
- Follows priority of operations.
- Built-in functions and variables:
sqrt(x)rootn(x, n)log(x)logn(x, n)ln(x)sin(x)cos(x)tan(x)asin(x)acos(x)atan(x)sum(start, end, expression)andifor the iterator of the sum.pieore(x)ans
Warning
Certain memory-related issues may arise with invalid inputs (use-after-free bugs and memory leaks).