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) }