I need some help in the subject of compiler.Please suggest me some links to develop a compiler using lex and yacc(as i have no idea about lex/yacc).The input should be a simple C or C++ program and the output should be all the 7 stages of the complier(lexical analysis,synatx analysis,sementic analysis,intermediate code generation,machine independent code optimization,code generator and machine dependent code optimisation).

Please suggest some links where codes are available and its easy for me to understand and write the program..
Any help would be appreciated... :)
Thank you.

This article has been dead for over six months. Start a new discussion instead.