protected function parseParent($token)
{
if ($this->inMacro) {
throw new SyntaxError('cannot call parent block inside macros', $token);
}
if (empty($this->currentBlock)) {
throw new SyntaxError('parent must be inside a block', $token);
}
$node = $this->parseIfModifier($token, new Node\ParentNode($this->currentBlock[count($this->currentBlock) - 1], $token->getLine()));
$this->stream->expect(Token::BLOCK_END);
return $node;
}