How to write a Compiler in C for C
- by Kerb_z
I want to write a Compiler for C. This is a Project for my College i am doing as per my University. I am an intermediate programmer in C, with understanding of Data Structures.
Now i know a Compiler has the following parts:
1. Lexer
2. Parser
3. Intermediate Code Generator
4. Optimizer
5. Code Generator
I want to begin with the Lexer part and move on to Parser.
I am consulting the following book:
Compilers: Principles, Techniques, and Tools by Alfred V. Aho, Ravi Sethi, Jeffrey D. Ullman.
The thing is that this book is highly theoretical and perplexing to me.
I really appreciate the authors. But the point is i am not able to begin my project,
as if i am blinded where to go.
Need guidance please help.