public function __construct($source)
{
$this->source = preg_replace("/(\r\n|\r|\n)/", "\n", $source);
$this->line = 1;
$this->char = 1;
$this->cursor = 0;
$this->position = self::POSITION_TEXT;
$this->queue = array();
$this->end = strlen($this->source);
$this->trim = false;
}