Remove subscript binary op fragments since this had a dedicated node type
This commit is contained in:
@@ -34,7 +34,7 @@ const char* ASTBinary::op_str() const
|
||||
".", " ** ", " * ", " / ", " // ", " % ", " + ", " - ",
|
||||
" << ", " >> ", " & ", " ^ ", " | ", " and ", " or ",
|
||||
" += ", " -= ", " *= ", " /= ", " %= ", " **= ", " <<= ",
|
||||
" >>= ", " &= ", " ^= ", " |= ", " //= ", "["
|
||||
" >>= ", " &= ", " ^= ", " |= ", " //= "
|
||||
};
|
||||
return s_op_strings[op()];
|
||||
}
|
||||
|
@@ -97,7 +97,7 @@ public:
|
||||
BIN_OR, BIN_LOG_AND, BIN_LOG_OR, BIN_IP_ADD, BIN_IP_SUBTRACT,
|
||||
BIN_IP_MULTIPLY, BIN_IP_DIVIDE, BIN_IP_MODULO, BIN_IP_POWER,
|
||||
BIN_IP_LSHIFT, BIN_IP_RSHIFT, BIN_IP_AND, BIN_IP_XOR, BIN_IP_OR,
|
||||
BIN_IP_FLOOR, BIN_SUBSCR
|
||||
BIN_IP_FLOOR,
|
||||
};
|
||||
|
||||
ASTBinary(PycRef<ASTNode> left, PycRef<ASTNode> right, int op,
|
||||
|
@@ -683,8 +683,6 @@ void print_src(PycRef<ASTNode> node, PycModule* mod, int indent)
|
||||
print_ordered(node, bin->left(), mod, indent);
|
||||
printf("%s", bin->op_str());
|
||||
print_ordered(node, bin->right(), mod, indent);
|
||||
if (bin->op() == ASTBinary::BIN_SUBSCR)
|
||||
printf("]");
|
||||
}
|
||||
break;
|
||||
case ASTNode::NODE_UNARY:
|
||||
|
Reference in New Issue
Block a user