Exemplo n.º 1
0
 function yy_r28()
 {
     $this->compiler->has_code = true;
     switch ($this->yystack[$this->yyidx + 0]->minor) {
         case 'foreachelse':
             $this->_retvalue = Constructs\ConstructForEachElse::compileOpen($this->compiler, null, null);
             break;
         case 'forelse':
             $this->_retvalue = Constructs\ConstructForElse::compileOpen($this->compiler, null, null);
             break;
         case 'else':
             $this->_retvalue = Constructs\ConstructElse::compileOpen($this->compiler, null, null);
             break;
         case 'ldelim':
             $this->_retvalue = new Wrappers\StaticWrapper(var_export($this->compiler->smarty->left_delimiter));
             break;
         case 'rdelim':
             $this->_retvalue = new Wrappers\StaticWrapper(var_export($this->compiler->smarty->right_delimiter));
             break;
         default:
             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor, array());
     }
 }
Exemplo n.º 2
0
 function yy_r43()
 {
     $this->compiler->has_code = true;
     switch ($this->yystack[$this->yyidx + -1]->minor) {
         case 'assign':
             $this->_retvalue = Constructs\ConstructAssign::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'break':
             $this->_retvalue = Constructs\ConstructBreak::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'call':
             $this->_retvalue = Constructs\ConstructCall::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'capture':
             $this->_retvalue = Constructs\ConstructCapture::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'continue':
             $this->_retvalue = Constructs\ConstructContinue::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'else':
             $this->_retvalue = Constructs\ConstructElse::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'foreachelse':
             $this->_retvalue = Constructs\ConstructForEachElse::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'forelse':
             $this->_retvalue = Constructs\ConstructForElse::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'function':
             $this->_retvalue = Constructs\ConstructFunction::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'include':
             $this->_retvalue = Constructs\ConstructInclude::compileOpen($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
             break;
         case 'ldelim':
             $this->_retvalue = new Helpers\Text($this->compiler->smarty->left_delimiter);
             break;
         case 'rdelim':
             $this->_retvalue = new Helpers\Text($this->compiler->smarty->right_delimiter);
             break;
         default:
             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor);
     }
 }