mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Remove subscript binary op fragments since this had a dedicated node type
This commit is contained in:
parent
7ffa2562c3
commit
ea615df200
3 changed files with 2 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue