protected function _processTree($parent)
{
$alphanum = '[\\\\a-zA-Z0-9_\\x7f-\\xff]';
$regex = "/(?<!\\:|\\\$|\\>|{$alphanum})(\\s*)((?:exit|die)\\s*\\()/m";
foreach ($parent->tree as $node) {
if ($node->processable && $node->type === 'code') {
$node->body = preg_replace($regex, '\\1\\Kahlan\\Plugin\\Quit::quit(', $node->body);
}
if (count($node->tree)) {
$this->_processTree($node);
}
}
}