function __construct($data, $compiler, $file) { $this->data = $data; $this->compiler = $compiler; $this->line = 1; $this->N = 0; $this->file = $file; $this->length = strlen($data); /*$tmp1 = self::$operators; $tmp2 = $tmp1; ksort($tmp2); var_dump($tmp2, $tmp1 === $tmp2);die();/**/ self::$close_tags = array(self::$end_tag => HG_Parser::T_TAG_CLOSE, self::$end_print => HG_Parser::T_PRINT_CLOSE); $this->open_tags = array(self::$open_tag => HG_Parser::T_TAG_OPEN, self::$open_print => HG_Parser::T_PRINT_OPEN, self::$open_comment => HG_Parser::T_COMMENT); }