Working up towards some difficult type-checking, we do some easy type-checking: the condition part of a while condition should be a boolean, and to ge… ...more
We've been tracking the location of a token in the file using a pair of numbers, but Rust has a better way: a Range. After some debate and wandering, … ...more
Last time I described what I tried to do with removing the extra String stored in each Token. This time, having figured out a workaround, we go ahead … ...more
We left a lot of gaps while we were building towards some working code. The first to tackle is allowing complex expressions on the right-hand side of … ...more
Blocks of code surrounded by braces are valid statements in Rust - it's just a small change to our existing code to be able to evaluate them. You can… ...more