R – the good approach to build a new compiler

ccompiler-constructionprogramming-languages

I have an experience about the compiler phrases and I interested in Programming Languages & Compilers field and I hope somebody gives me some explanation about what is the good approach to write a new compiler from scratch for a new programming language ? (I mean STEPS).

Best Answer

The first step is to read the Dragon Book.

It offers a good introduction to the whole field of compiler building, but also goes into enough detail to actually build your own.

As for the following steps I suggest following the chapters of the book. It's not written as a tutorial, but nevertheless offers much practical advice, which makes it an ideal hub for your own ideas and research.