News for hackers. Stuff that matters.
Re:Thought Experiment: An Introductory Compilers Class by abatoir on Monday February 17, 2020 @03:26PM (#22350412)
I tried to add a comment on the source page, but that's not possible if you don't have a Google account. So I'll add it here.

There are two great resources for an introduction to compilers. First, "The Unix Programming Environment" has a chapter on programming tools which builds the equivalent of the Unix 'dc' desk calculator. This includes variables and procedures, so it's non-trivial.

The second one was first posted to USENET by (as I recall) Jack Ganssle called, "Let's Build a Compiler". This is notable because it builds a recursive-descent compiler, rather than the usual LALR ones.

Considering the intent was a course for beginners, I think much of what that page wants to cover is more suitable for a _second_ course. If you go through the UPE book first, you'll be in a much better position to slog through the Dragon book and get all those low-level things.

There are no comments on this comment yet.