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