mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-12 15:45:22 +00:00
Merge pull request #4186 from andersk/arithmetic
Spell “arithmetic” correctly
This commit is contained in:
commit
e64d7d196d
1 changed files with 4 additions and 4 deletions
|
@ -816,12 +816,12 @@ AndExpression: ast::Expr = {
|
||||||
};
|
};
|
||||||
|
|
||||||
ShiftExpression: ast::Expr = {
|
ShiftExpression: ast::Expr = {
|
||||||
<e1:ShiftExpression> <location:@L> <op:ShiftOp> <e2:ArithmaticExpression> => ast::Expr {
|
<e1:ShiftExpression> <location:@L> <op:ShiftOp> <e2:ArithmeticExpression> => ast::Expr {
|
||||||
location,
|
location,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ast::ExprKind::BinOp { left: Box::new(e1), op, right: Box::new(e2) }
|
node: ast::ExprKind::BinOp { left: Box::new(e1), op, right: Box::new(e2) }
|
||||||
},
|
},
|
||||||
ArithmaticExpression,
|
ArithmeticExpression,
|
||||||
};
|
};
|
||||||
|
|
||||||
ShiftOp: ast::Operator = {
|
ShiftOp: ast::Operator = {
|
||||||
|
@ -829,8 +829,8 @@ ShiftOp: ast::Operator = {
|
||||||
">>" => ast::Operator::RShift,
|
">>" => ast::Operator::RShift,
|
||||||
};
|
};
|
||||||
|
|
||||||
ArithmaticExpression: ast::Expr = {
|
ArithmeticExpression: ast::Expr = {
|
||||||
<a:ArithmaticExpression> <location:@L> <op:AddOp> <b:Term> => ast::Expr {
|
<a:ArithmeticExpression> <location:@L> <op:AddOp> <b:Term> => ast::Expr {
|
||||||
location,
|
location,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ast::ExprKind::BinOp { left: Box::new(a), op, right: Box::new(b) }
|
node: ast::ExprKind::BinOp { left: Box::new(a), op, right: Box::new(b) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue