Haanga_Compiler_Parser::yy_r29 PHP Method

yy_r29() public method

#line 172 "lib/Haanga/Compiler/Parser.y"
public yy_r29 ( )
    function yy_r29()
    {
        if (is_file(dirname($this->file) . '/' . $this->yystack[$this->yyidx + 0]->minor)) {
            $this->yystack[$this->yyidx + 0]->minor = dirname($this->file) . '/' . $this->yystack[$this->yyidx + 0]->minor;
        } else {
            if (is_file(getcwd() . '/' . $this->yystack[$this->yyidx + 0]->minor)) {
                $this->yystack[$this->yyidx + 0]->minor = getcwd() . '/' . $this->yystack[$this->yyidx + 0]->minor;
            }
        }
        if (!is_file($this->yystack[$this->yyidx + 0]->minor) || !Haanga_Compiler::getOption('enable_load')) {
            $this->error($this->yystack[$this->yyidx + 0]->minor . " is not a valid file");
        }
        require_once $this->yystack[$this->yyidx + 0]->minor;
    }