public function compile() { if ($this->keyNode !== null) { return sprintf('%s=>%s', $this->keyNode->compile(), $this->valueNode->compile()); } else { return $this->valueNode->compile(); } }
public function compile() { return sprintf('(%s%s%s)', $this->leftNode->compile(), $this->opToken->getValue(), $this->rightNode->compile()); }
public function compile() { return sprintf('(%s?%s:%s)', $this->ifNode->compile(), $this->ifBodyNode->compile(), $this->elseBodyNode->compile()); }