/** * Resets the processor state. */ public function reset() { if (sizeof(self::$_sections) > 0) { self::$_stack = new SplStack(); self::$_sections = array(); } }