done with 9

This commit is contained in:
2018-07-25 13:18:58 +02:00
parent 856edc4d17
commit 13106d1788
5 changed files with 156 additions and 43 deletions

View File

@@ -3,3 +3,8 @@
`rlox` is an unpronouncable variant of the tree-walk interpreter laid out in
[Crafting Interpreters](http://craftinginterpreters.com/), written in Ruby,
because I want to learn it.
It deviates a little from the “canonical” version of Lox. I dont use code
generation for the expressions, and I dont use the visitor pattern. `var` and
`fun` are `let` and `fn`, respectively. And we dont need parentheses around
branching conditions, instead we require the bodies to be blocks.