This is a simple math expression interpreter written with C, Lex and Yacc
- Use
makecommand in your terminal to compile.y,.land.cfiles and then run
- For now, the language only supports variables with integer variables, not floats neither strings
- The supported operators are:
=(assignment),-(subtraction),+(sum),*(multiplication),/(division),sqrtof(square root of) andpowerof(power of) - Operators precedence is not supported yet
a = 10;
print a;
a = 10 + 191;
print a;
a = 90;
print a;
a = a + 22;
print a;
a = 10;
b = 30;
c = a + b;
print c;