Crafting Interpreters in Rust: Parsing variable declarations

In the previous post, we started on Chapter 8: “Statements and State” from the book. We implemented some simple statements, primarily print . In this post, we’ll look at the next type of statement: global variable declarations. The book tells us that variables are declared with the var keyword: var beverage = "espresso"; …and that they’re different from normal statements, which gives us this…