A
Size: a a a
A
A
ВП
class BinaryOp:
def __init__(left, right, operand: callable):
self.left = left
self.right = right
self.op = operand
$
py3
print(eval("5+(2+3)*(1+1)"))15
$
ВП
class BinaryOp:
def __init__(left, right, operand: callable):
self.left = left
self.right = right
self.op = operand
ВП
R3
py3
print(eval("5+(2+3)*(1+1)"))15
$
ВП
5+(2+3)*(1+1)) распарсить до состояния дерева инстансов BinaryOp$
class BinaryOp:
def __init__(left, right, operand: callable):
self.left = left
self.right = right
self.op = operand
ВП
ВП
ВП
$
$
$
ВП
$
ВП