Vadim Zaytsev aka @grammarware

Purple Dragon Book DYOL: Design Your Own Language

Book sourcesDragon Books — Purple Dragon

A. V. Aho, M. S. Lam, R. Sethi, J. D. Ullman, Compilers: Principles, Techniques, & Tools, Addison-Wesley, 2006.

	title     = "{Compilers: Principles, Techniques, & Tools}",
	author    = {Alfred Vaino Aho and
	             Monica Sin-Ling Lam and
	             Ravi Sethi and
	             Jeffrey David Ullman},
	publisher = "Addison-Wesley",
	edition   = "Second",
	isbn      = "978-0321486813",
	year      = 2006,

There are three Dragon Books: the Green, DB-GD, the Red, DB-RD and the Purple, DB-PD, each next one a direct extension of its predecessor. Their nicknames come from the dragons depicted on covers of most editions, with “complexity of compiler design” written on the beast being attacked by a knight with names of various compiler engineering techniques inscribed on its armour and weapons. Dragon Books are equally popular as self-study material, as university course foundations and as cookbooks among industrial developers. The most popular one is DB-RD, since DB-PD has sacrificed many detailed discussions on topics of general importance and, instead of adding object orientation, added several hundred pages on code optimisation, in particular related to parallel computation. There is a big audience for those, but they are not every compiler engineer's concern.

NB: marking was done with the Russian translation of the book, so page numbers may be slightly different!

	title     = "{Компиляторы. Принципы, технологии и инструментарий}",
	author    = "Альфред В. Ахо and
	             Моника С. Лам and
	             Рави Сети and
	             Джеффри Дэвид Ульман",
	publisher = "Вильямс",
	isbn      = "978-5-8459-1349-4",
	year      = 2008,


The DYOL toolkit was created and is maintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Page last updated in March 2021.