kasunindikaliyanage / mathx

Small language which can specify mathematical expressions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mathx

This is the compiler which can be used to compile mathx language. mathx is a simple laguage which can be used evaluate mathmatical expression. Compiler for mathx is written from scratch using recursive-decent-parsing techniques and LL(1) grammer.

Example :

START

auto x; auto y; auto z;

x = 2*(3+5);
y = x^2;

out(x); out(y);

END

About

Small language which can specify mathematical expressions.


Languages

Language:C++ 100.0%