Comment

Comment by userbinator

The only way it is not complete — and that's written in the README ­— is that it has absolutely no semantics analysis

I was referring to the complete lack of flow control. Could you compile the compiler with itself, for example?

Then again, this is only the first hour of a semester long compiler class

If you're taking a course, you might enjoy "leaping ahead" by studying C4 and C4x86. They are also VM-based, and self-compiling, yet still tiny. I think they really raised the bar on what a tiny-and-complete compiler is. (https://news.ycombinator.com/item?id=8558822 https://news.ycombinator.com/item?id=8746054)

parent userbinator 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton