News for hackers. Stuff that matters.
Re:Why I wrote a book about interpreters by steveklabnik on Thursday December 01, 2016 @11:50AM (#13080833)
I haven't given the book a look, but in general, if you pick a small enough language, you can absolutely build an interpreter without needing a CS degree.

A couple of years ago, I wrote https://github.com/steveklabnik/mojikun , which is an implementation of Brainfuck. I specifically over-engineered it to be more like a real interpreter than the smallest possible code, so it's actually split into parser/lexer/runtime/interpreter. I also made it have a more strongly-typed AST, which in retrospect is a little silly, at least the way that I did it. A bunch of those files have empty classes for this purpose.

Anyway, my overall point is, this project has the same structure as a "real" interpreter, and it's like 160 lines of code for the core functionality, no complex algorithms. And you can move on to harder languages fairly easily, and learn as you go.

There are no comments on this comment yet.