Code

Updated comment handling
[gosa.git] / include / sieve / class_My_Parser.inc
index 816950e996427df90eb7ddabfcb58826dc818b81..912422360f1cedd5cc95741e3c2ff4375ed6fa2d 100644 (file)
@@ -7,6 +7,12 @@ define("SIEVE_INDENT_TAB","  ");
  */
 class My_Parser extends Parser 
 {
+       var $parent = NULL;
+
+       function My_Parser($parent)
+       {
+               $this->parent = $parent;
+       }
 
        function execute()
        {
@@ -29,7 +35,7 @@ class My_Parser extends Parser
        {
         $this->status_text = "incomplete";
         $this->script_ = $script;
-        $this->tree_ = new My_Tree(@Scanner::scriptStart());
+        $this->tree_ = new My_Tree(@Scanner::scriptStart(),$this);
         $this->tree_->setDumpFunc(array(&$this, 'dumpToken_'));
         $this->scanner_ = new Scanner($this->script_);
         $this->scanner_->setCommentFunc(array($this, 'comment_'));