authorgravatar for hcnelson99@gmail.comHenry Nelson <hcnelson99@gmail.com> 2020-04-26 15:38:13-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-26 17:33:04-04:00
log83b0f9c6f7321afdceaee16833d0c3cbbf684cda
tree799720852637d2b6727a033bb6488457f7831ef8
parent6aeceec1f28ec4717af0659974d994cf1205915e

Fix unfortunate typo


1 files changed, 3 insertions(+), 3 deletions(-)

src/parser.cpp+3-3
......@@ -55,7 +55,7 @@ static AstNode *ast_parse_bool_or_expr(ParseContext *pc);
5555static AstNode *ast_parse_bool_and_expr(ParseContext *pc);
5656static AstNode *ast_parse_compare_expr(ParseContext *pc);
5757static AstNode *ast_parse_bitwise_expr(ParseContext *pc);
58static AstNode *ast_parse_bit_shit_expr(ParseContext *pc);
58static AstNode *ast_parse_bit_shift_expr(ParseContext *pc);
5959static AstNode *ast_parse_addition_expr(ParseContext *pc);
6060static AstNode *ast_parse_multiply_expr(ParseContext *pc);
6161static AstNode *ast_parse_prefix_expr(ParseContext *pc);
......@@ -1257,11 +1257,11 @@ static AstNode *ast_parse_compare_expr(ParseContext *pc) {
12571257
12581258// BitwiseExpr <- BitShiftExpr (BitwiseOp BitShiftExpr)*
12591259static AstNode *ast_parse_bitwise_expr(ParseContext *pc) {
1260 return ast_parse_bin_op_expr(pc, BinOpChainInf, ast_parse_bitwise_op, ast_parse_bit_shit_expr);
1260 return ast_parse_bin_op_expr(pc, BinOpChainInf, ast_parse_bitwise_op, ast_parse_bit_shift_expr);
12611261}
12621262
12631263// BitShiftExpr <- AdditionExpr (BitShiftOp AdditionExpr)*
1264static AstNode *ast_parse_bit_shit_expr(ParseContext *pc) {
1264static AstNode *ast_parse_bit_shift_expr(ParseContext *pc) {
12651265 return ast_parse_bin_op_expr(pc, BinOpChainInf, ast_parse_bit_shift_op, ast_parse_addition_expr);
12661266}
12671267