Required help in Lex/yacc programs


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.


Ah good ol' dragon book. :) That's what I used when I took compiler class.

This article has been dead for over six months: Start a new discussion instead
Start New Discussion
Tags Related to this Article