", $tree["VALUE"]);
+ else
+ $s = $tree["VALUE"];
+ print(str_repeat("\t", $depth) . """ . $s . ""\n");
+ break;
+ case "PHRASEA_KW_ALL":
+ printf(str_repeat("\t", $depth) . "%s\n", $tree["VALUE"][0]);
+ break;
+ case "PHRASEA_KW_LAST":
+ if ($tree["PNUM"] !== null)
+ printf(str_repeat("\t", $depth) . "%s %s\n", $tree["VALUE"][0], $tree["PNUM"]);
+ else
+ printf(str_repeat("\t", $depth) . "%s\n", $tree["VALUE"][0]);
+ break;
+ // case PHRASEA_KW_FIRST:
+ // if($tree["PNUM"]!==null)
+ // printf("%s %s", $tree["VALUE"], $tree["PNUM"]);
+ // else
+ // printf("%s", $tree["VALUE"]);
+ // break;
+ case "OPS":
+ case "OPK":
+ print(str_repeat("\t", $depth) . "\n");
+ $this->dumpDiv2($tree["LB"], $depth + 1);
+ print(str_repeat("\t", $depth) . "
\n");
+ print(str_repeat("\t", $depth) . "\n");
+ if (isset($tree["PNUM"]))
+ printf(str_repeat("\t", $depth + 1) . " %s[%s]\n", $tree["VALUE"], $tree["PNUM"]);
+ else
+ printf(str_repeat("\t", $depth + 1) . " %s\n", $tree["VALUE"]);
+ print(str_repeat("\t", $depth) . "
\n");
+ print(str_repeat("\t", $depth) . "\n");
+ $this->dumpDiv2($tree["RB"], $depth + 1);
+ print(str_repeat("\t", $depth) . "
\n");
+
+ break;
+ }
+ }
+
+ public function dump($tree)
+ {
+ switch ($tree["CLASS"]) {
+ case "SIMPLE":
+ if (is_array($tree["VALUE"]))
+ $s = implode("