Any book recommendation for writing a compiler?

Ola Fosheim Grøstad ola.fosheim.grostad+dlang at gmail.com
Tue Nov 7 08:39:43 UTC 2017


On Tuesday, 7 November 2017 at 01:30:14 UTC, Basile B. wrote:
> On Saturday, 4 November 2017 at 20:28:17 UTC, Ola Fosheim 
> Grøstad wrote:
>> On Saturday, 4 November 2017 at 15:51:30 UTC, Basile B. wrote:
>>> People who say that after reading the dragon book, you will 
>>> program your own programming language are lying.
>>
>> Well, you most certainly can write your own programming 
>> language after reading about 30% of the dragon book, but I 
>> think you can find easier books to get started these days.
>
> I've just read the dragon book. let's write a compiler

A basic compiler is not so complicated. Just align the semantics 
of your language to an existing one and use that language as your 
intermediate representation (C, D, Go whatever).


More information about the Digitalmars-d-learn mailing list