News for hackers. Stuff that matters.
Re:Teaching Compilers Backward by toolslive on Tuesday February 23, 2021 @10:59AM (#26238789)
The bottom up order is the right one. The classic paper: An Incremental Approach to Compiler Construction (Abdulaziz Ghuloum)

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&c...

Re:Teaching Compilers Backward by tom_mellior on Tuesday February 23, 2021 @11:33AM (#26239257)
That's not really the same approach. It's not "backward", it's more "sideways": It starts with an end-to-end compiler for a tiny language, then builds out that end-to-end compiler incrementally. The featured article describes an approach where no such end-to-end compiler is available from the beginning. It's only end-to-end after the final exercise.
Re:Teaching Compilers Backward by Mathnerd314 on Tuesday February 23, 2021 @11:28AM (#26239187)
They link this paper in the bottom of the article as a different approach from the one they're using.