is there a simple compiler for a small language

前端 未结 18 2488
有刺的猬
有刺的猬 2021-01-29 22:55

I am looking for a simple compiler that compiles a simple language, I need it to write a paper about it and to learn how compilers work, I am not looking for a sophisticated thi

18条回答
  •  无人共我
    2021-01-29 23:22

    You should read a book on compiler design; it should have the theory you want to know, as well as some appropriately simple examples.

    I recommend "the dragon book": Principles of Compiler Design, by Aho and Ullman. It has been many years since I read it, so I don't recall exactly what examples are available, but it is a very good text.

提交回复
热议问题