Creating a compiler

Advertisemen

I may have underestimated the effort required in creating a compiler, I knew it was going to be an arduous task... Simultaneously writing the Parsing and the Code Generation... Can't believe I thought the Lexical Analysis was hard.

Currently it can generate machine code for if-then statements but nothing else... No assignments... Just if then statements:

It may be better to attempt this in Java instead of C++ due to Java having a STL that's useful towards building a compiler:

http://volta.sourceforge.net/api/edu/uci/eecs/doc/cascade/controlflow/IfThenElse.html

>sourceforge

Well it's not STL, but this thing looks damn useful!

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