Haanga_Compiler_Parser::yy_r18 PHP Method

yy_r18() public method

#line 112 "lib/Haanga/Compiler/Parser.y"
public yy_r18 ( )
    function yy_r18()
    {
        $this->yystack[$this->yyidx + -5]->minor = strtolower($this->yystack[$this->yyidx + -5]->minor);
        if ($this->yystack[$this->yyidx + -5]->minor != 'on' && $this->yystack[$this->yyidx + -5]->minor != 'off') {
            $this->Error("Invalid autoescape param (" . $this->yystack[$this->yyidx + -5]->minor . "), it must be on or off");
        }
        if ($this->yystack[$this->yyidx + -1]->minor != "endautoescape") {
            $this->Error("Invalid close tag " . $this->yystack[$this->yyidx + -1]->minor . ", it must be endautoescape");
        }
        $this->_retvalue = array('operation' => 'autoescape', 'value' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor);
    }