Solutions to some exercises I found interesting in the book Compilers: Principles, Techniques, & Tools, second edition (i.e. the Dragon Book).