public function visitBinaryMultiplicationNode(BinaryMultiplicationNode $node) { if ($this->visit($node->getA()) || $this->visit($node->getB())) { return true; } return $this->_evalIsZero($node); }
public function visitBinaryMultiplicationNode(BinaryMultiplicationNode $node) { return $this->_renderNode($this->_indent($this->depth + 1) . '<multiplication type="binary">' . PHP_EOL . implode(PHP_EOL, array_map(function (DerivableNodeInterface $child) { $v = new XMLVisitor($this->depth + 2); return $v->visit($child); }, [$node->getA(), $node->getB()])) . PHP_EOL . $this->_indent($this->depth + 1) . '</multiplication>'); }
public function visitBinaryMultiplicationNode(BinaryMultiplicationNode $node) { $childVisitor = new self($node); $a = $node->getA(); $b = $node->getB(); return $this->_process($node, $a->accept($childVisitor) . ' * ' . $b->accept($childVisitor)); }
public function visitBinaryMultiplicationNode(BinaryMultiplicationNode $node) { $x = new BinaryMultiplicationNode($this->visit($node->getA()), $node->getB()); $y = new BinaryMultiplicationNode($node->getA(), $this->visit($node->getB())); return new AdditionNode($x, $y); }
public function visitBinaryMultiplicationNode(BinaryMultiplicationNode $node) { return $this->visit($node->getA()) * $this->visit($node->getB()); }