From f8b45e48e13078f136383019e383332b0c527666 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 28 Sep 2022 17:58:30 -0700 Subject: [PATCH] =?UTF-8?q?Spell=20=E2=80=9Carithmetic=E2=80=9D=20correctl?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg --- parser/python.lalrpop | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/python.lalrpop b/parser/python.lalrpop index d72dcc9..224450e 100644 --- a/parser/python.lalrpop +++ b/parser/python.lalrpop @@ -816,12 +816,12 @@ AndExpression: ast::Expr = { }; ShiftExpression: ast::Expr = { - => ast::Expr { + => ast::Expr { location, custom: (), node: ast::ExprKind::BinOp { left: Box::new(e1), op, right: Box::new(e2) } }, - ArithmaticExpression, + ArithmeticExpression, }; ShiftOp: ast::Operator = { @@ -829,8 +829,8 @@ ShiftOp: ast::Operator = { ">>" => ast::Operator::RShift, }; -ArithmaticExpression: ast::Expr = { - => ast::Expr { +ArithmeticExpression: ast::Expr = { + => ast::Expr { location, custom: (), node: ast::ExprKind::BinOp { left: Box::new(a), op, right: Box::new(b) }