code: protected function error($error) {
  		$error = htmlentities(str_replace(
  			array('%tok%', '%pos%'),
  			array($this->parser->getTokenString(), (int) $this->parser->getPos()),
  			$error
  		));
  
  		trigger_error($error);
  	}
docs: Trigger error
  @param string $error
  @internal %pos% and %tok% will be replace in string with position and token(string)
  @access private