I guess I'll accept "challenging", but people should really not put compilers under "difficult" projects. They're not hard, the problem is your compiler textbook is poorly written.
I won't deny it wasn't challenging, but in the end if you can divide up the work and conquer each part separately everything becomes managable.
Right, I think this is what makes it not difficult. A lot of projects turn into a ball of spaghetti (take any large C++ app and try to find the part that does something useful - you can't!) but a compiler has a simple structure. It's just a set of passes that run one after the other. That means it's easy to test and it's easy to learn how a production compiler works by reading the debug output.
10
u/astrange Jan 28 '20
I guess I'll accept "challenging", but people should really not put compilers under "difficult" projects. They're not hard, the problem is your compiler textbook is poorly written.
Also, I think you should write a .mpg player.