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
2009-07-15 06:51:37
Have you actually read it yourself?
anon
2009-07-15 22:57:14
Yes. Mandatory reading for Compiler Design course in my Computer Science program.
The Matt
2009-07-16 00:34:01
+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
2009-07-15 22:52:31
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
2009-07-15 23:29:58
Noup, I can't, rep stuff :P, besides, that answer was already posted (it's the last one).
Eliseo Ocampos
2009-07-16 00:40:41
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
2009-07-15 23:01:03
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
2009-07-15 23:06:02
+1
A:
Here is the definitive list of compiler building resources on SO:
http://stackoverflow.com/questions/1669/learning-to-write-a-compiler
anon
2009-07-15 23:05:34