Crafting Interpreters in Rust: Parsing Binary Operators, part 2

At the end of the previous post, we could parse division and multiplication operators. Because we used an LALRPOP macro, it should be relatively simple to add addition and subtraction operators. Addition As usual, we start with a test: #[test] fn addition () { let parser = lox :: ExpressionParser :: new (); let expr = parser . parse ( "12 + 3" ) . unwrap (); assert_eq! ( expr, Expression ::…