Code

Fixed layout, a little bit
[gosa.git] / include / sieve / class_My_Parser.inc
index b0ef7ea7654f2a45b273765176e2ab807d934d99..816950e996427df90eb7ddabfcb58826dc818b81 100644 (file)
@@ -15,6 +15,13 @@ class My_Parser extends Parser
        }
        
 
+       /* Check if there are errors, collect them and return them */
+       function check()
+       {
+               return($this->tree_->check());
+       }
+       
+
        /* Initiate parser, but use some other 
      *  classes, that are rewritten.
      */
@@ -63,5 +70,11 @@ class My_Parser extends Parser
                }
                return strval($token);
        }
+
+
+       function dumpParseTree()
+       {
+               return $this->tree_->execute();
+       }
 }
 ?>