We can already parse empty while loops, but now we figure out how to parse the block of code that forms the body of the loop. It should be useful for … ...more
The little real-world snippet we are trying to get working includes a while loop - let's try to get it to parse. For now, only if the actual loop body… ...more
Continuing trying to get the simplest bit of real code we could think of to work, we need to finish off less-than-or-equals, and also make let mut wor… ...more
Now we're going to try and get a little code snippet that calculates factorials to work. First up: lexing the <= sign! You can find the source cod… ...more
We are repeating ourselves with the SyntaxTree and TypedSyntaxTree enums. I thought the solution would be too complex, but on reflection it's fine, so… ...more