Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 62
    This is one of the best answers I've seen yet. Commented Sep 20, 2012 at 21:12
  • 13
    I think you missed a part of the question... The OP wanted to write a very basic compiler. I think you go beyond very basic here. Commented Sep 21, 2012 at 12:01
  • 28
    @marco-fiset, on the contrary, I think it's an outstanding answer that does tell the OP how to do a very basic compiler, while pointing out the traps to avoid and defining more advanced phases. Commented Mar 3, 2013 at 22:50
  • 6
    This is one of the best answers I have ever seen in the entire Stack Exchange universe. Kudos! Commented Dec 8, 2015 at 21:12
  • 6
    Seeing a 'Hello world' from a program that your compiler created might be worth the effort. -- INDEED Commented Aug 11, 2016 at 2:56