Esper Compiler

Advertisemen

Been a while since I've posted. But, I've actually been productive. I've made the most progress ever on a compiler - currently on the optimisation stage (not parsing IF-THEN/FOR/DO-WHILE currently - not sure it ever will!)

But conditions are supported and my arithmetic optimisation is perfect:

Input the code:

bool b
b =  6 + 7-90*3/3+4 <=1-(4*7--9+21*3)+33-093+22/9

This will be optimised to:

b = -73 <= -157

The solution was so simple to do as well, probably need to support modular arithmetic, but I have TV to watch!

Next stage will be optimising the above to:

b = false (oe)

Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Game Engine Tutorial