4 ms·
I highly recommend the Coursera compilers class: you don't have to work though it in synch with a class; just sign up and work at your own pace. If you have to
by zellyn 10y ago
I highly recommend the Coursera compilers class: you don't have to work though it in synch with a class; just sign up and work at your own pace. If you have to watch the same video two or three times, you can. None of this stuff actually turns out to be that complicated: it just takes a little while to get the lingo and concepts.
I implemented the entire parser, typechecker, and compiler in Go here: https://github.com/zellyn/gocool https://github.com/zellyn/gocool
I then went back and hand-wrote a recursive descent parser, just for fun: Cool is such a simple language that it really wasn't difficult.
- riffraff 10y agoFWIW, I think the coursera class is now gone, but the course should have matched this http://web.stanford.edu/class/cs143/ http://web.stanford.edu/class/cs143/
- zellyn 10y agoThat's a pity: the lecture videos were worthwhile, and I got all the unit tests by dissecting the auto-checking scripts that the class supplied :-/
- riffraff 10y agoit's possible they are available in the internet archive backup, but I don't have idea how to inspect those without downloading tens of gigabytes of stuff. https://archive.org/details/archiveteam_coursera https://archive.org/details/archiveteam_coursera
- kqr2 10y agoStanford has its own MOOC site which seems to offer an equivalent course: https://lagunita.stanford.edu/courses/Engineering/Compilers/Fall2014/about https://lagunita.stanford.edu/courses/Engineering/Compilers/...