tags:

views:

145

answers:

5
+1  Q: 

compiler design

How to design simple compiler? I want to design compiler for MCA project.

+4  A: 

You should check out Compilers: Principles, Techniques, and Tools.

Silfverstrom
+3  A: 

Read: The Dragon Book

The Matt
Have you actually read it yourself?
anon
Yes. Mandatory reading for Compiler Design course in my Computer Science program.
The Matt
+2  A: 

Let's Build a Compiler, by Jack Crenshaw , a little outdated, but could be useful (here is the pdf version).

Also you have to see this post with a lot of resources.

Eliseo Ocampos
+1 for the PDF - I've referred people to the terrible text docs!
anon
Actually, why don't you update the "lots of resources" main question with the Crenshaw info? It's a Wiki, so you should be able to do that (I think).
anon
Noup, I can't, rep stuff :P, besides, that answer was already posted (it's the last one).
Eliseo Ocampos
A: 

You don't. 'Compiler' and 'simple' are mutually exclusive terms.

280Z28
By no means. You can easily write a compiler for a small language inside a week. Most websites take much longer than that to implement.
anon
You can easily write a website for small content inside a week. Most compilers take much longer than that to implement. :) Writing a compiler is one of the most interesting challenges I've attempted, so even though it's "not simple" (IMO), it's a worthwhile experience for someone interested in the subject.
280Z28
+1  A: 

Here is the definitive list of compiler building resources on SO:

http://stackoverflow.com/questions/1669/learning-to-write-a-compiler

anon