Spell “arithmetic” correctly

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2022-09-28 17:58:30 -07:00
parent b21ed24025
commit f8b45e48e1

View file

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