Beispiel #1
0
 function yy_r31()
 {
     $tag = trim(substr($this->yystack[$this->yyidx + -2]->minor, $this->lex->ldel_length));
     $this->compiler->has_code = true;
     switch ($tag) {
         case 'if':
             $this->_retvalue = Constructs\ConstructIf::compileOpen($this->compiler, array('cond' => $this->yystack[$this->yyidx + -1]->minor), $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'elseif':
             $this->_retvalue = Constructs\ConstructElseIf::compileOpen($this->compiler, array('cond' => $this->yystack[$this->yyidx + -1]->minor), $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'while':
             $this->_retvalue = Constructs\ConstructWhile::compileOpen($this->compiler, array('cond' => $this->yystack[$this->yyidx + -1]->minor), $this->yystack[$this->yyidx + 0]->minor);
             break;
     }
 }
Beispiel #2
0
 function yy_r53()
 {
     switch ($this->yystack[$this->yyidx + 0]->minor) {
         case 'capture':
             $this->_retvalue = Constructs\ConstructCapture::compileClose($this->compiler, null);
             break;
         case 'for':
             $this->_retvalue = Constructs\ConstructFor::compileClose($this->compiler, null);
             break;
         case 'foreach':
             $this->_retvalue = Constructs\ConstructForEach::compileClose($this->compiler, null);
             break;
         case 'function':
             $this->_retvalue = Constructs\ConstructFunction::compileClose($this->compiler, null);
             break;
         case 'if':
             $this->_retvalue = Constructs\ConstructIf::compileClose($this->compiler, null);
             break;
         case 'while':
             $this->_retvalue = Constructs\ConstructWhile::compileClose($this->compiler, null);
             break;
         default:
             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor . 'close', array());
     }
 }