public __construct ( string $doc = '', integer $pos, |
||
$doc | string | Document to be tokenized |
$pos | integer | Position to start parsing |
$root | Root node, null to auto create |
function __construct($doc = '', $pos = 0, $root = null)
{
if ($root === null) {
$root = new $this->root('~root~', null);
}
$this->root =& $root;
parent::__construct($doc, $pos);
}