0

I want to write a compiler in C.

Whats basics do I have to learn for creating a compiler?

sepp2k
  • 363,768
  • 54
  • 674
  • 675
amu
  • 1
  • 4
    Assuming this is a serious question, a compiler for what language, and for what purpose (self-development, assignment, part of a product)? – The Archetypal Paul Oct 25 '10 at 12:37
  • 5
    Possible duplicate of http://stackoverflow.com/questions/1669/learning-to-write-a-compiler – schot Oct 25 '10 at 12:39

2 Answers2

2

Start by reading the dragon book.

Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479
0

flex and yacc may help

  • This is really a comment, not an answer to the question. You can always comment on your own posts, and once you have sufficient [reputation](http://stackoverflow.com/faq#reputation) you will be able to [comment on any post](http://stackoverflow.com/privileges/comment). – Rostyslav Dzinko Aug 20 '12 at 07:11
  • This is a good suggestion. :) – Yang Yan Mar 30 '13 at 09:03