protected function compileImport($rawPath, $out)
{
if ($rawPath[0] == "string") {
$path = $this->compileStringContent($rawPath);
if ($path = $this->findImport($path)) {
$this->importFile($path, $out);
return true;
}
return false;
}
if ($rawPath[0] == "list") {
// handle a list of strings
if (count($rawPath[2]) == 0) {
return false;
}
foreach ($rawPath[2] as $path) {
if ($path[0] != "string") {
return false;
}
}
foreach ($rawPath[2] as $path) {
$this->compileImport($path, $out);
}
return true;
}
return false;
}