private function processBlock($standalone = true)
{
$this->startSequence();
// Case for {}
if ($this->tokens[$this->id + 1][0] === T_CLOSE_CURLY) {
$voidId = $this->addAtomVoid();
$this->addToSequence($voidId);
} else {
while (!in_array($this->tokens[$this->id + 1][0], array(T_CLOSE_CURLY))) {
$this->processNext();
}
if ($this->tokens[$this->id + 1][0] !== T_CLOSE_CURLY) {
$this->processSemicolon();
}
}
$blockId = $this->sequence;
$this->endSequence();
$this->setAtom($blockId, array('code' => '{}', 'fullcode' => static::FULLCODE_BLOCK, 'line' => $this->tokens[$this->id][2], 'token' => $this->getToken($this->tokens[$this->id][0]), 'bracket' => true));
++$this->id;
// skip }
$this->pushExpression($blockId);
if ($standalone === true) {
$this->processSemicolon();
}
return $blockId;
}