hi
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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.