protected function doInterpret(IContext $ctx, $l, $r) { if ($r == 0) { throw new DivisionByZero('Деление на 0'); } $ctx->set($this, $l / $r); }
protected function doInterpret(IContext $ctx, $l, $r) { $ctx->set($this, pow($l, $r)); }
function interpret(IContext $context) { $context->set($this, $this->value); }