4 ms·
I implemented the Monkey programming language as described in the book Writing An Interpreter In Go. Over time I extended it to support different things, and o
by stevekemp 3y ago
I implemented the Monkey programming language as described in the book Writing An Interpreter In Go. Over time I extended it to support different things, and one of the additions I made was to add support for the ternary operator.
In my implementation nested ternary operators were a parse error.
- flir 3y agoI've been thinking about diving into that book next. Would you recommend? My alternative is Crafting Interpreters by Robert Nystrom.
- stevekemp 3y agoI would recommend, the writing is clear and concise, and there's a lot of coverage and emphasis on testing. That said Nystrom's book has adorable drawings, and feels more "passionate". I've read both, but I only followed the go-book because I was learning Golang at the time. No regrets.