private function processForblock($finals)
{
$this->startSequence();
$blockId = $this->sequence;
while (!in_array($this->tokens[$this->id + 1][0], $finals)) {
$this->processNext();
if ($this->tokens[$this->id + 1][0] === T_COMMA) {
$elementId = $this->popExpression();
$this->addToSequence($elementId);
++$this->id;
}
}
$elementId = $this->popExpression();
$this->addToSequence($elementId);
++$this->id;
$current = $this->sequence;
$this->endSequence();
$x = array('code' => $this->atoms[$current]['code'], 'fullcode' => self::FULLCODE_SEQUENCE, 'line' => $this->tokens[$this->id][2], 'token' => $this->getToken($this->tokens[$this->id][0]));
if ($this->atoms[$current]['count'] === 1) {
$x['fullcode'] = $this->atoms[$elementId]['fullcode'];
}
$this->setAtom($blockId, $x);
$this->pushExpression($blockId);
return $blockId;
}