Example #1
0
 function yy_r44()
 {
     switch ($this->yystack[$this->yyidx + -1]->minor) {
         case 'for':
             $this->_retvalue = Constructs\ConstructFor::compileClose($this->compiler, null, null);
             break;
         case 'foreach':
             $this->_retvalue = Constructs\ConstructForEach::compileClose($this->compiler, null, null);
             break;
         default:
             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor . 'close', array(), array('modifier_list' => $this->yystack[$this->yyidx + 0]->minor));
     }
 }
Example #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());
     }
 }