|
just became a member to this forum and saw the posts on this matter.
anyway writting a compiler is for sure a really hard thing to do esspecailly if you haven't programmed alot yet.most compilers are written in c or c++.first of all you have to learn what a compiler exactly does.heres a small deal of one type of compiler
(1) lexical analysis > (2)syntactic analysis > (3)semantic analysis > (4)target code generation.
but the first thing to do is to determine your language.(not as easy)
there are allthough some tools that will make your life easier but knowing c is a must.try looking at gnu lex/flex and yacc/bison.
|