2010-12-05 22:15:23 +00:00
|
|
|
<?php
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
class TP_yyToken implements ArrayAccess
|
|
|
|
{
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
public $string = '';
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
public $metadata = array();
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function __construct($s, $m = array())
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
if ($s instanceof TP_yyToken) {
|
|
|
|
$this->string = $s->string;
|
|
|
|
$this->metadata = $s->metadata;
|
|
|
|
} else {
|
|
|
|
$this->string = (string) $s;
|
|
|
|
if ($m instanceof TP_yyToken) {
|
|
|
|
$this->metadata = $m->metadata;
|
|
|
|
} elseif (is_array($m)) {
|
|
|
|
$this->metadata = $m;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function __toString()
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2014-12-13 23:02:29 +01:00
|
|
|
return $this->string;
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function offsetExists($offset)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
return isset($this->metadata[$offset]);
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function offsetGet($offset)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
return $this->metadata[$offset];
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function offsetSet($offset, $value)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
if ($offset === null) {
|
|
|
|
if (isset($value[0])) {
|
2015-05-13 02:06:33 +02:00
|
|
|
$x = ($value instanceof TP_yyToken) ? $value->metadata : $value;
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->metadata = array_merge($this->metadata, $x);
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
$offset = count($this->metadata);
|
|
|
|
}
|
|
|
|
if ($value === null) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if ($value instanceof TP_yyToken) {
|
|
|
|
if ($value->metadata) {
|
|
|
|
$this->metadata[$offset] = $value->metadata;
|
|
|
|
}
|
|
|
|
} elseif ($value) {
|
|
|
|
$this->metadata[$offset] = $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function offsetUnset($offset)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
unset($this->metadata[$offset]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class TP_yyStackEntry
|
|
|
|
{
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-10-07 22:07:15 +00:00
|
|
|
public $stateno; /* The state-number */
|
|
|
|
public $major; /* The major token value. This is the code
|
2010-12-05 22:15:23 +00:00
|
|
|
** number for the token at this stack level */
|
|
|
|
public $minor; /* The user-supplied minor token value. This
|
|
|
|
** is the value of the token */
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
;
|
2013-08-12 21:09:29 +00:00
|
|
|
|
2014-12-11 05:21:21 +01:00
|
|
|
#line 13 "../smarty/lexer/smarty_internal_templateparser.y"
|
2014-12-13 23:02:29 +01:00
|
|
|
|
|
|
|
/**
|
2015-03-17 02:29:19 +01:00
|
|
|
* Smarty Internal Plugin Templateparser
|
|
|
|
*
|
|
|
|
* This is the template parser.
|
|
|
|
* It is generated from the smarty_internal_templateparser.y file
|
|
|
|
*
|
|
|
|
* @package Smarty
|
|
|
|
* @subpackage Compiler
|
|
|
|
* @author Uwe Tews
|
|
|
|
*/
|
2014-12-13 23:02:29 +01:00
|
|
|
class Smarty_Internal_Templateparser
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
#line 26 "../smarty/lexer/smarty_internal_templateparser.y"
|
2010-12-05 22:15:23 +00:00
|
|
|
|
2011-09-16 14:19:56 +00:00
|
|
|
const Err1 = "Security error: Call to private object member not allowed";
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2011-09-16 14:19:56 +00:00
|
|
|
const Err2 = "Security error: Call to dynamic object member not allowed";
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2011-09-16 14:19:56 +00:00
|
|
|
const Err3 = "PHP in template not allowed. Use SmartyBC to enable it";
|
2014-12-13 23:02:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* result status
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2010-12-05 22:15:23 +00:00
|
|
|
public $successful = true;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* return value
|
|
|
|
*
|
|
|
|
* @var mixed
|
|
|
|
*/
|
2010-12-05 22:15:23 +00:00
|
|
|
public $retvalue = 0;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* counter for prefix code
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
2013-08-12 21:09:29 +00:00
|
|
|
public static $prefix_number = 0;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* @var
|
|
|
|
*/
|
2014-10-07 22:20:21 +00:00
|
|
|
public $yymajor;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* last index of array variable
|
|
|
|
*
|
|
|
|
* @var mixed
|
|
|
|
*/
|
2014-10-07 22:07:15 +00:00
|
|
|
public $last_index;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* last variable name
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2014-10-07 22:07:15 +00:00
|
|
|
public $last_variable;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* root parse tree buffer
|
|
|
|
*
|
2014-12-30 16:22:03 +01:00
|
|
|
* @var Smarty_Internal_ParseTree
|
2014-12-13 23:02:29 +01:00
|
|
|
*/
|
2014-10-07 22:07:15 +00:00
|
|
|
public $root_buffer;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* current parse tree object
|
|
|
|
*
|
2014-12-30 16:22:03 +01:00
|
|
|
* @var Smarty_Internal_ParseTree
|
2014-12-13 23:02:29 +01:00
|
|
|
*/
|
2014-10-07 22:07:15 +00:00
|
|
|
public $current_buffer;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* lexer object
|
|
|
|
*
|
|
|
|
* @var Smarty_Internal_Templatelexer
|
|
|
|
*/
|
2010-12-05 22:15:23 +00:00
|
|
|
private $lex;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* internal error flag
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2010-12-05 22:15:23 +00:00
|
|
|
private $internalError = false;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* {strip} status
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2015-04-07 02:11:20 +02:00
|
|
|
public $strip = false;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* compiler object
|
|
|
|
*
|
|
|
|
* @var Smarty_Internal_TemplateCompilerBase
|
|
|
|
*/
|
|
|
|
public $compiler = null;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* smarty object
|
|
|
|
*
|
|
|
|
* @var Smarty
|
|
|
|
*/
|
|
|
|
public $smarty = null;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* template object
|
|
|
|
*
|
|
|
|
* @var Smarty_Internal_Template
|
|
|
|
*/
|
|
|
|
public $template = null;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* block nesting level
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $block_nesting_level = 0;
|
2015-05-06 00:03:26 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* security object
|
|
|
|
*
|
|
|
|
* @var Smarty_Security
|
|
|
|
*/
|
|
|
|
private $security = null;
|
2015-05-06 00:03:26 +02:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* PHP tag handling mode
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
private $php_handling = 0;
|
2010-12-05 22:15:23 +00:00
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* constructor
|
|
|
|
*
|
|
|
|
* @param Smarty_Internal_Templatelexer $lex
|
|
|
|
* @param Smarty_Internal_TemplateCompilerBase $compiler
|
|
|
|
*/
|
|
|
|
function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler)
|
2014-06-08 16:00:56 +00:00
|
|
|
{
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->lex = $lex;
|
|
|
|
$this->compiler = $compiler;
|
|
|
|
$this->template = $this->compiler->template;
|
2014-12-13 23:02:29 +01:00
|
|
|
$this->smarty = $this->template->smarty;
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->compiler->has_variable_string = false;
|
2011-09-16 14:19:56 +00:00
|
|
|
$this->compiler->prefix_code = array();
|
|
|
|
if ($this->security = isset($this->smarty->security_policy)) {
|
|
|
|
$this->php_handling = $this->smarty->security_policy->php_handling;
|
2010-12-05 22:15:23 +00:00
|
|
|
} else {
|
2011-09-16 14:19:56 +00:00
|
|
|
$this->php_handling = $this->smarty->php_handling;
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
2014-12-30 16:22:03 +01:00
|
|
|
$this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template($this);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
|
2014-12-13 23:02:29 +01:00
|
|
|
/**
|
|
|
|
* insert PHP code in current buffer
|
|
|
|
*
|
|
|
|
* @param string $code
|
|
|
|
*/
|
2014-10-30 00:55:01 +01:00
|
|
|
public function insertPhpCode($code)
|
|
|
|
{
|
2014-12-30 16:22:03 +01:00
|
|
|
$this->current_buffer->append_subtree(new Smarty_Internal_ParseTree_Tag($this, $code));
|
2014-10-30 00:55:01 +01:00
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
/**
|
|
|
|
* merge PHP code with prefix code and return parse tree tag object
|
|
|
|
*
|
|
|
|
* @param string $code
|
|
|
|
*
|
|
|
|
* @return Smarty_Internal_ParseTree_Tag
|
|
|
|
*/
|
|
|
|
public function mergePrefixCode($code)
|
|
|
|
{
|
|
|
|
$tmp = '';
|
|
|
|
foreach ($this->compiler->prefix_code as $preCode) {
|
|
|
|
$tmp = empty($tmp) ? $preCode : $this->compiler->appendCode($tmp, $preCode);
|
|
|
|
}
|
|
|
|
$this->compiler->prefix_code = array();
|
|
|
|
$tmp = empty($tmp) ? $code : $this->compiler->appendCode($tmp, $code);
|
|
|
|
return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true));
|
|
|
|
}
|
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
const TP_VERT = 1;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
const TP_COLON = 2;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
const TP_RDEL = 3;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
const TP_COMMENT = 4;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_PHP = 5;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_XMLTAG = 6;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_TEXT = 7;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_STRIPON = 8;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_STRIPOFF = 9;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_BLOCKSOURCE = 10;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LITERALSTART = 11;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LITERALEND = 12;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LITERAL = 13;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LDEL = 14;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_DOLLAR = 15;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ID = 16;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_EQUAL = 17;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_PTR = 18;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LDELIF = 19;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LDELFOR = 20;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_SEMICOLON = 21;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_INCDEC = 22;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_TO = 23;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_STEP = 24;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LDELFOREACH = 25;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_SPACE = 26;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_AS = 27;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_APTR = 28;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LDELSETFILTER = 29;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_SMARTYBLOCKCHILDPARENT = 30;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LDELSLASH = 31;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ATTR = 32;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_INTEGER = 33;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_COMMA = 34;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_OPENP = 35;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_CLOSEP = 36;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_MATH = 37;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_UNIMATH = 38;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ANDSYM = 39;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISIN = 40;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISDIVBY = 41;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISNOTDIVBY = 42;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISEVEN = 43;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISNOTEVEN = 44;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISEVENBY = 45;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISNOTEVENBY = 46;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISODD = 47;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISNOTODD = 48;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISODDBY = 49;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_ISNOTODDBY = 50;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_INSTANCEOF = 51;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_QMARK = 52;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_NOT = 53;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_TYPECAST = 54;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_HEX = 55;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_DOT = 56;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_SINGLEQUOTESTRING = 57;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_DOUBLECOLON = 58;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_NAMESPACE = 59;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_AT = 60;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_HATCH = 61;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_OPENB = 62;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_CLOSEB = 63;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_EQUALS = 64;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_NOTEQUALS = 65;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_GREATERTHAN = 66;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LESSTHAN = 67;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_GREATEREQUAL = 68;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LESSEQUAL = 69;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_IDENTITY = 70;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_NONEIDENTITY = 71;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_MOD = 72;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LAND = 73;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LOR = 74;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_LXOR = 75;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_QUOTE = 76;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_BACKTICK = 77;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const TP_DOLLARID = 78;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YY_NO_ACTION = 564;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YY_ACCEPT_ACTION = 563;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YY_ERROR_ACTION = 562;
|
|
|
|
|
|
|
|
const YY_SZ_ACTTAB = 2263;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
|
|
|
static public $yy_action = array(218, 147, 326, 198, 325, 308, 304, 301, 303, 309, 310, 316, 201, 329, 340, 9, 288, 34, 348, 264, 5, 108, 201, 318, 311, 43, 123, 35, 126, 175, 251, 28, 250, 193, 127, 327, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 563, 91, 268, 247, 305, 246, 306, 247, 305, 246, 244, 206, 286, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 218, 188, 147, 328, 23, 106, 299, 43, 336, 23, 313, 299, 13, 28, 230, 8, 43, 24, 249, 348, 5, 108, 28, 37, 161, 43, 123, 218, 207, 425, 251, 28, 250, 313, 195, 325, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 207, 425, 248, 23, 240, 299, 29, 425, 238, 252, 227, 272, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 43, 202, 323, 25, 338, 218, 28, 419, 122, 20, 158, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 218, 263, 425, 206, 43, 477, 34, 23, 262, 299, 28, 3, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 139, 425, 232, 218, 477, 422, 23, 425, 299, 278, 121, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 162, 269, 422, 254, 218, 40, 140, 295, 422, 313, 127, 231, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 294, 15, 240, 23, 218, 299, 13, 21, 477, 41, 158, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 99, 160, 218, 43, 382, 477, 106, 477, 314, 28, 313, 315, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 139, 196, 218, 43, 206, 296, 477, 190, 325, 28, 257, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 214, 203, 4, 206, 478, 34, 10, 360, 218, 36, 387, 32, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 181, 164, 489, 478, 218, 45, 6, 332, 489, 313, 313, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 235, 207, 207, 23, 189, 299, 135, 317, 23, 117, 233, 194, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 137, 298, 131, 23, 23, 261, 242, 23, 206, 225, 275, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 173, 27, 300, 234, 260, 297, 116, 28, 136, 111, 97, 229, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 298, 298, 298, 320, 238, 243, 238, 271, 207, 166, 145, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 330, 172, 168, 197, 300, 319, 192, 107, 16, 133, 313, 274, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 103, 167, 6, 270, 159, 128, 280, 287, 199, 98, 313, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 298, 293, 171, 206, 7, 154, 235, 241, 145, 290, 158, 313, 281, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 218, 331, 165, 200, 258, 101, 169, 20, 266, 152, 144, 313, 68, 115, 243, 313, 11, 33, 11, 33, 191, 283, 341, 214, 300, 213, 217, 282, 292, 10, 348, 206, 228, 206, 124, 120, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 105, 182, 170, 289, 205, 22, 267, 307, 186, 302, 313, 313, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 300, 256, 339, 183, 206, 158, 95, 312, 300, 296, 102, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 298, 204, 184, 277, 286, 176, 185, 273, 45, 100, 157, 313, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 300, 298, 298, 104, 245, 14, 187, 326, 326, 326, 326, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 18, 326, 163, 349, 326, 326, 326, 326, 326, 326, 130, 313, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 300, 300, 326, 326, 326, 326, 326, 326, 326, 326, 158, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 218, 326, 326, 326, 326, 326, 326, 326, 326, 326, 113, 118, 326, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 139, 298, 298, 326, 326, 326, 326, 326, 326, 326, 326, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 326, 229, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 344, 279, 350, 351, 357, 358, 359, 356, 355, 352, 353, 354, 49, 51, 46, 44, 31, 38, 346, 345, 39, 42, 342, 343, 17, 12, 109, 335, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 344, 279, 350, 351, 357, 358, 359, 356, 3
|
|
|
|
|
|
|
|
static public $yy_lookahead = array(1, 92, 3, 113, 114, 4, 5, 6, 7, 8, 9, 10, 11, 104, 105, 14, 16, 34, 109, 36, 19, 20, 11, 12, 13, 26, 25, 14, 15, 16, 29, 32, 31, 89, 15, 16, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 80, 81, 82, 83, 84, 85, 82, 83, 84, 85, 60, 117, 118, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 1, 90, 92, 59, 14, 61, 16, 26, 7, 14, 99, 16, 17, 32, 104, 14, 26, 2, 28, 109, 19, 20, 32, 24, 90, 26, 25, 1, 117, 3, 29, 32, 31, 99, 113, 114, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 117, 26, 27, 14, 60, 16, 17, 32, 92, 93, 94, 22, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 26, 89, 76, 77, 78, 1, 32, 3, 15, 17, 18, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 1, 3, 3, 117, 26, 35, 34, 14, 36, 16, 32, 35, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 58, 26, 56, 1, 58, 3, 14, 32, 16, 63, 58, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 90, 3, 26, 60, 1, 14, 15, 16, 32, 99, 15, 16, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 33, 28, 60, 14, 1, 16, 17, 28, 35, 17, 18, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 89, 90, 1, 26, 3, 58, 61, 35, 84, 32, 99, 87, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 58, 89, 1, 26, 117, 111, 58, 113, 114, 32, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 56, 3, 34, 117, 35, 34, 62, 36, 1, 14, 3, 17, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 90, 90, 56, 58, 1, 2, 35, 63, 62, 99, 99, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 56, 117, 117, 14, 89, 16, 15, 12, 14, 96, 16, 21, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 34, 112, 35, 14, 14, 16, 16, 14, 117, 16, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 110, 26, 112, 15, 16, 16, 86, 32, 96, 96, 96, 83, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 112, 112, 112, 108, 92, 93, 92, 93, 117, 110, 115, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 122, 90, 110, 98, 112, 3, 98, 98, 52, 15, 99, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 89, 90, 35, 16, 110, 16, 33, 16, 16, 96, 99, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 112, 108, 90, 117, 35, 16, 56, 2, 115, 16, 18, 99, 33, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 1, 77, 90, 89, 83, 89, 90, 17, 36, 88, 15, 99, 91, 92, 93, 99, 102, 103, 102, 103, 21, 100, 101, 56, 112, 104, 105, 106, 107, 62, 109, 117, 16, 117, 15, 15, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 89, 90, 90, 16, 16, 23, 63, 3, 61, 7, 99, 99, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 112, 27, 3, 61, 117, 18, 16, 99, 112, 111, 96, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 112, 3, 90, 26, 118, 110, 110, 115, 2, 96, 96, 99, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 112, 112, 112, 110, 95, 95, 110, 123, 123, 123, 123, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 2, 123, 90, 114, 123, 123, 123, 123, 123, 123, 97, 99, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 112, 112, 123, 123, 123, 123, 123, 123, 123, 123, 18, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 1, 123, 123, 123, 123, 123, 123, 123, 123, 123, 96, 96, 123, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 58, 112, 112, 123, 123, 123, 123, 123, 123, 123, 123, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 123, 83, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 121, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 123, 123, 2, 14, 15, 16, 123, 123, 19, 20, 123, 123, 123, 14, 25, 16, 7, 17, 29, 30, 31, 123, 33, 14, 35, 26, 123, 38, 19, 20, 123, 32, 123, 123, 25, 14, 123, 16, 29, 22, 31, 22, 53, 54, 55, 56, 57, 26, 59, 28, 61, 62, 35, 32, 35, 123, 1, 14, 15, 16, 123, 123, 19, 20, 123, 76, 123, 123, 25, 123, 51, 123, 29, 18, 31, 58, 33, 58, 35, 89, 90, 38, 123, 123, 123, 76, 77, 78, 123, 99, 123, 123, 102, 103, 123, 123, 53, 54, 55, 56, 57, 123, 59, 123, 61, 62, 63, 117, 123, 123, 123, 14, 15, 16, 123, 123, 19, 20, 83, 76,
|
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YY_SHIFT_USE_DFLT = - 18;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-04-02 01:42:53 +02:00
|
|
|
const YY_SHIFT_MAX = 261;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
|
|
|
static public $yy_shift_ofst = array(1, 1123, 1177, 961, 1123, 1177, 961, 961, 853, 853, 907, 961, 961, 961, 961, 961, 1231, 961, 961, 961, 961, 961, 961, 961, 1285, 961, 961, 1069, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 1069, 1015, 1015, 1339, 1339, 1339, 1339, 1339, 1339, - 1, 74, 124, 124, 124, 124, 124, 474, 424, 599, 649, 699, 324, 174, 224, 374, 274, 549, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 788, 788, 1, 1411, 19, 277, 253, 76, 885, 65, 154, 863, 154, 863, 253, 517, 253, 221, 353, 367, 873, 101, 70, 175, 115, 202, 142, 11, 192, 239, 242, 365, 414, 365, 401, 365, 229, 370, 365, 919, 389, 56, 367, 390, 365, 390, 365, 365, 367, 717, 414, 365, 393, 333, 56, 365, 612, 301, 612, 301, 301, 301, 301, 301, 301, 301, 301, - 18, 169, 13, 270, 56, 56, 56, 56, 56, 56, 270, 56, 270, 56, 56, 56, 56, 270, 56, 321, 270, 56, 56, 56, 56, 56, 56, 296, 56, 270, 296, 270, 56, 301, 612, 628, 657, 301, 628, 612, 301, 657, 612, 494, 301, 371, 301, - 18, - 18, - 18, - 18, - 18, 1424, 1373, 1382, 1495, 146, 883, 217, 881, 223, 152, 0, 295, - 17, 248, 148, 297, 294, 864, 320, 366, 544, 624, 567, 548, 566, 494, 492, 473, 475, 514, 540, 504, 518, 588, 530, 522, 491, 545, 603, 605, 570, 569, 489, 589, 583, 615, 415, 143, 470, 432, 478, 487, 467, 90,);
|
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YY_REDUCE_USE_DFLT = - 111;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-11-12 19:07:00 +01:00
|
|
|
const YY_REDUCE_MAX = 207;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
|
|
|
static public $yy_reduce_ofst = array(- 30, 1319, 471, 1393, 1420, 1502, 1482, 1451, 1677, 1735, 1746, 1599, 1540, 1619, 1588, 2033, 2091, 1855, 1777, 1568, 1646, 1657, 1766, 1708, 1797, 1824, 1688, 2102, 1924, 1955, 1835, 2002, 2153, 2044, 1513, 2013, 2064, 2133, 2122, 1975, 1866, 1886, 1913, 1944, 899, 950, 1274, 1166, 1220, 1058, 1004, 1112, 466, 908, 854, 466, 1016, 976, 1070, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, - 26, 411, - 91, 187, 512, 718, 563, 613, 260, 513, 9, 462, - 14, 194, 261, - 15, - 56, 42, 354, 62, 316, 62, 614, 62, - 110, 200, 316, 316, - 110, 413, 345, 539, 387, 564, 62, 338, 289, 291, 289, 136, 362, 339, 340, 289, 665, 368, 364, - 110, 418, 565, 289, 62, 437, 664, - 4, 62, - 110, 62, 62, 62, 62, 62, 62, 212, 62, 62, 521, 543, 523, 533, 533, 533, 533, 533, 533, 523, 533, 523, 533, 533, 533, 533, 523, 533, 546, 523, 533, 533, 533, 533, 533, 533, 547, 533, 523, 571, 523, 533, 341, 590, 584, 537, 341, 585, 590, 341, 537, 590, 568, 341, 346, 341, 349, 394, 385, 381, 384,);
|
|
|
|
|
|
|
|
static public $yyExpectedTokens = array(array(4, 5, 6, 7, 8, 9, 10, 11, 14, 19, 20, 25, 29, 31,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 30, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 30, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 63, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19, 20, 25, 29, 31, 33, 35, 38, 53, 54, 55, 56, 57, 59, 61, 62, 76,), array(14, 15, 16, 19,
|
|
|
|
|
|
|
|
static public $yy_default = array(364, 545, 562, 516, 562, 562, 516, 516, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 419, 419, 419, 388, 396, 419, 562, 562, 424, 562, 562, 562, 562, 562, 562, 562, 562, 452, 515, 429, 548, 424, 453, 443, 444, 426, 448, 421, 449, 445, 547, 440, 401, 546, 514, 430, 456, 455, 361, 467, 562, 432, 419, 562, 419, 419, 474, 419, 439, 419, 419, 528, 419, 562, 410, 562, 562, 432, 489, 432, 562, 432, 480, 562, 489, 489, 480, 562, 562, 562, 419, 562, 432, 562, 562, 413, 562, 419, 562, 562, 562, 562, 562, 489, 562, 480, 562, 562, 562, 432, 398, 562, 525, 442, 480, 435, 437, 459, 436, 432, 458, 415, 460, 523, 490, 562, 508, 384, 385, 400, 406, 395, 409, 509, 391, 507, 386, 407, 399, 405, 487, 397, 489, 506, 389, 403, 390, 404, 383, 394, 485, 408, 486, 483, 484, 393, 414, 529, 561, 517, 411, 561, 526, 416, 518, 503, 489, 439, 379, 474, 489, 489, 522, 522, 522, 434, 467, 457, 457, 467, 457, 562, 457, 467, 562, 562, 475, 562, 467, 562, 562, 562, 501, 463, 562, 562, 562, 562, 562, 562, 501, 562, 465, 463, 562, 562, 562, 562, 562, 501, 562, 562, 562, 370, 562, 562, 562, 562, 562, 427, 562, 562, 562, 562, 469, 562, 562, 527, 501, 512, 494, 511, 498, 431, 496, 362, 502, 420, 428, 402, 510, 497, 469, 524, 560, 495, 531, 464, 466, 468, 433, 462, 461, 521, 519, 520, 434, 481, 470, 471, 472, 493, 492, 488, 491, 499, 501, 500, 369, 372, 371, 368, 367, 363, 365, 366, 373, 374, 381, 417, 418, 380, 378, 375, 376, 377, 473, 476, 412, 556, 549, 550, 504, 557, 477, 478, 479, 551, 554, 542, 544, 543, 552, 559, 553, 555, 558, 454, 438, 450, 451, 530, 447, 446, 441, 482, 505, 532, 533, 539, 540, 541, 538, 537, 534, 535, 536, 513,);
|
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YYNOCODE = 124;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
const YYSTACKDEPTH = 500;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YYNSTATE = 361;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YYNRULE = 201;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-05-06 00:03:26 +02:00
|
|
|
const YYERRORSYMBOL = 79;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2010-09-15 15:17:28 +00:00
|
|
|
const YYERRSYMDT = 'yy0';
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2010-09-15 15:17:28 +00:00
|
|
|
const YYFALLBACK = 0;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
public static $yyFallback = array();
|
|
|
|
|
2013-12-15 15:25:50 +00:00
|
|
|
public function Trace($TraceFILE, $zTracePrompt)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
if (!$TraceFILE) {
|
|
|
|
$zTracePrompt = 0;
|
|
|
|
} elseif (!$zTracePrompt) {
|
|
|
|
$TraceFILE = 0;
|
|
|
|
}
|
2013-12-15 15:25:50 +00:00
|
|
|
$this->yyTraceFILE = $TraceFILE;
|
|
|
|
$this->yyTracePrompt = $zTracePrompt;
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
|
2013-12-15 15:25:50 +00:00
|
|
|
public function PrintTrace()
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2013-12-15 15:25:50 +00:00
|
|
|
$this->yyTraceFILE = fopen('php://output', 'w');
|
|
|
|
$this->yyTracePrompt = '<br>';
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
|
2013-12-15 15:25:50 +00:00
|
|
|
public $yyTraceFILE;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2013-12-15 15:25:50 +00:00
|
|
|
public $yyTracePrompt;
|
2015-05-13 02:06:33 +02:00
|
|
|
|
2014-10-07 22:07:15 +00:00
|
|
|
public $yyidx; /* Index of top element in stack */
|
|
|
|
public $yyerrcnt; /* Shifts left before out of the error */
|
|
|
|
public $yystack = array(); /* The parser's stack */
|
2010-12-05 22:15:23 +00:00
|
|
|
|
2015-05-13 02:06:33 +02:00
|
|
|
public $yyTokenName = array('$', 'VERT', 'COLON', 'RDEL', 'COMMENT', 'PHP', 'XMLTAG', 'TEXT', 'STRIPON', 'STRIPOFF', 'BLOCKSOURCE', 'LITERALSTART', 'LITERALEND', 'LITERAL', 'LDEL', 'DOLLAR', 'ID', 'EQUAL', 'PTR', 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', 'TO', 'STEP', 'LDELFOREACH', 'SPACE', 'AS', 'APTR', 'LDELSETFILTER', 'SMARTYBLOCKCHILDPARENT', 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', 'OPENP', 'CLOSEP', 'MATH', 'UNIMATH', 'ANDSYM', 'ISIN', 'ISDIVBY', 'ISNOTDIVBY', 'ISEVEN', 'ISNOTEVEN', 'ISEVENBY', 'ISNOTEVENBY', 'ISODD', 'ISNOTODD', 'ISODDBY', 'ISNOTODDBY', 'INSTANCEOF', 'QMARK', 'NOT', 'TYPECAST', 'HEX', 'DOT', 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', 'OPENB', 'CLOSEB', 'EQUALS', 'NOTEQUALS', 'GREATERTHAN', 'LESSTHAN', 'GREATEREQUAL', 'LESSEQUAL', 'IDENTITY', 'NONEIDENTITY', 'MOD', 'LAND', 'LOR', 'LXOR', 'QUOTE', 'BACKTICK', 'DOLLARID', 'error', 'start', 'template', 'template_element', 'smartytag', 'literal', 'text_content', 'literal_elements', 'literal_element', 'value', 'modifierlist', 'attributes', 'expr', 'varindexed', 'statement', 'statements', 'optspace', 'varvar', 'foraction', 'modparameters', 'attribute', 'ternary', 'array', 'ifcond', 'lop', 'variable', 'ns1', 'function', 'doublequoted_with_quotes', 'static_class_access', 'object', 'arrayindex', 'indexdef', 'varvarele', 'objectchain', 'objectelement', 'method', 'params', 'modifier', 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', 'doublequotedcontent',);
|
|
|
|
|
|
|
|
public static $yyRuleName = array("start ::= template", "template ::= template_element", "template ::= template template_element", "template ::=", "template_element ::= smartytag RDEL", "template_element ::= COMMENT", "template_element ::= literal", "template_element ::= PHP", "template_element ::= XMLTAG", "template_element ::= text_content", "text_content ::= TEXT", "text_content ::= text_content TEXT", "template_element ::= STRIPON", "template_element ::= STRIPOFF", "template_element ::= BLOCKSOURCE", "literal ::= LITERALSTART LITERALEND", "literal ::= LITERALSTART literal_elements LITERALEND", "literal_elements ::= literal_elements literal_element", "literal_elements ::=", "literal_element ::= literal", "literal_element ::= LITERAL", "smartytag ::= LDEL value", "smartytag ::= LDEL value modifierlist attributes", "smartytag ::= LDEL value attributes", "smartytag ::= LDEL expr modifierlist attributes", "smartytag ::= LDEL expr attributes", "smartytag ::= LDEL DOLLAR ID EQUAL value", "smartytag ::= LDEL DOLLAR ID EQUAL expr", "smartytag ::= LDEL DOLLAR ID EQUAL expr attributes", "smartytag ::= LDEL varindexed EQUAL expr attributes", "smartytag ::= LDEL ID attributes", "smartytag ::= LDEL ID", "smartytag ::= LDEL ID modifierlist attributes", "smartytag ::= LDEL ID PTR ID attributes", "smartytag ::= LDEL ID PTR ID modifierlist attributes", "smartytag ::= LDELIF expr", "smartytag ::= LDELIF expr attributes", "smartytag ::= LDELIF statement", "smartytag ::= LDELIF statement attributes", "smartytag ::= LDELFOR statements SEMICOLON optspace expr SEMICOLON optspace DOLLAR varvar foraction attributes", "foraction ::= EQUAL expr", "foraction ::= INCDEC", "smartytag ::= LDELFOR statement TO expr attributes", "smartytag ::= LDELFOR statement TO expr STEP expr attributes", "smartytag ::= LDELFOREACH attributes", "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar attributes", "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar APTR DOLLAR varvar attributes", "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar attributes", "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar APTR DOLLAR varvar attributes", "smartytag ::= LDELSETFILTER ID modparameters", "smartytag ::= LDELSETFILTER ID modparameters modifierlist", "smartytag ::= LDEL SMARTYBLOCKCHILDPARENT", "smartytag ::= LDELSLASH ID", "smartytag ::= LDELSLASH ID modifierlist", "smartytag ::= LDELSLASH ID PTR ID", "smartytag ::= LDELSLASH ID PTR ID modifierlist", "attributes ::= attributes attribute", "attributes ::= attribute", "attributes ::=", "attribute ::= SPACE ID EQUAL ID", "attribute ::= ATTR expr", "attribute ::= ATTR value", "attribute ::= SPACE ID", "attribute ::= SPACE expr", "attribute ::= SPACE value", "attribute ::= SPACE INTEGER EQUAL expr", "statements ::= statement", "statements ::= statements COMMA statement", "statement ::= DOLLAR varvar EQUAL expr", "statement ::= varindexed EQUAL expr", "statement ::= OPENP statement CLOSEP", "expr ::= value", "expr ::= ternary", "expr ::= DOLLAR ID COLON ID", "expr ::= expr MATH value", "expr ::= expr UNIMATH value", "expr ::= expr ANDSYM value", "expr ::= array", "expr ::= expr modifierlist", "expr ::= expr ifcond expr", "expr ::= expr ISIN array", "expr ::= expr ISIN value", "expr ::= expr lop expr", "expr ::= expr ISDIVBY expr", "expr ::= expr ISNOTDIVBY expr", "expr ::= expr ISEVEN", "expr ::= expr ISNOTEVEN", "expr ::= expr ISEVENBY expr", "expr ::= expr ISNOTEVENBY expr", "expr ::= expr ISODD", "expr ::= expr ISNOTODD", "expr ::= expr ISODDBY expr", "expr ::= expr ISNOTODDBY expr", "expr ::= variable INSTANCEOF ns1", "ternary ::= OPENP expr CLOSEP QMARK DOLLAR ID COLON expr", "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr", "value ::= variable", "value ::= UNIMATH value", "value ::= NOT value", "value ::= TYPECAST value", "value ::= variable INCDEC", "value ::= HEX", "value ::= INTEGER", "value ::= INTEGER DOT INTEGER", "value ::= INTEGER DOT", "value ::= DOT INTEGER", "value ::= ID", "value ::= function", "value ::= OPENP expr CLOSEP", "value ::= SINGLEQUOTESTRING", "value ::= doublequoted_with_
|
2010-12-05 22:15:23 +00:00
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function tokenName($tokenType)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
if ($tokenType === 0) {
|
|
|
|
return 'End of Input';
|
|
|
|
}
|
|
|
|
if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
|
|
|
|
return $this->yyTokenName[$tokenType];
|
|
|
|
} else {
|
|
|
|
return "Unknown";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-15 18:18:28 +00:00
|
|
|
public static function yy_destructor($yymajor, $yypminor)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
switch ($yymajor) {
|
2015-03-17 02:29:19 +01:00
|
|
|
default:
|
|
|
|
break; /* If no destructor action specified: do nothing */
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_pop_parser_stack()
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
if (!count($this->yystack)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
$yytos = array_pop($this->yystack);
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE && $this->yyidx >= 0) {
|
2015-05-13 02:06:33 +02:00
|
|
|
fwrite($this->yyTraceFILE, $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . "\n");
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
$yymajor = $yytos->major;
|
|
|
|
self::yy_destructor($yymajor, $yytos->minor);
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyidx --;
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return $yymajor;
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function __destruct()
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
while ($this->yystack !== Array()) {
|
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
2013-12-15 15:25:50 +00:00
|
|
|
if (is_resource($this->yyTraceFILE)) {
|
|
|
|
fclose($this->yyTraceFILE);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_get_expected_tokens($token)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
$state = $this->yystack[$this->yyidx]->stateno;
|
|
|
|
$expected = self::$yyExpectedTokens[$state];
|
|
|
|
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
|
|
|
|
return $expected;
|
|
|
|
}
|
|
|
|
$stack = $this->yystack;
|
|
|
|
$yyidx = $this->yyidx;
|
|
|
|
do {
|
|
|
|
$yyact = $this->yy_find_shift_action($token);
|
|
|
|
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
|
|
|
|
// reduce action
|
|
|
|
$done = 0;
|
|
|
|
do {
|
2015-03-17 02:29:19 +01:00
|
|
|
if ($done ++ == 100) {
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// too much recursion prevents proper detection
|
|
|
|
// so give up
|
|
|
|
return array_unique($expected);
|
|
|
|
}
|
|
|
|
$yyruleno = $yyact - self::YYNSTATE;
|
2014-12-13 23:02:29 +01:00
|
|
|
$this->yyidx -= self::$yyRuleInfo[$yyruleno][1];
|
2015-05-13 02:06:33 +02:00
|
|
|
$nextstate = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno][0]);
|
2010-12-05 22:15:23 +00:00
|
|
|
if (isset(self::$yyExpectedTokens[$nextstate])) {
|
2015-03-17 02:29:19 +01:00
|
|
|
$expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]);
|
2015-05-13 02:06:33 +02:00
|
|
|
if (in_array($token, self::$yyExpectedTokens[$nextstate], true)) {
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return array_unique($expected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($nextstate < self::YYNSTATE) {
|
|
|
|
// we need to shift a non-terminal
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyidx ++;
|
2010-12-05 22:15:23 +00:00
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = $nextstate;
|
2014-12-13 23:02:29 +01:00
|
|
|
$x->major = self::$yyRuleInfo[$yyruleno][0];
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yystack[$this->yyidx] = $x;
|
|
|
|
continue 2;
|
|
|
|
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// the last token was just ignored, we can't accept
|
|
|
|
// by ignoring input, this is in essence ignoring a
|
|
|
|
// syntax error!
|
|
|
|
return array_unique($expected);
|
|
|
|
} elseif ($nextstate === self::YY_NO_ACTION) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// input accepted, but not shifted (I guess)
|
|
|
|
return $expected;
|
|
|
|
} else {
|
|
|
|
$yyact = $nextstate;
|
|
|
|
}
|
|
|
|
} while (true);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
} while (true);
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return array_unique($expected);
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_is_expected_token($token)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
if ($token === 0) {
|
|
|
|
return true; // 0 is not part of this
|
|
|
|
}
|
|
|
|
$state = $this->yystack[$this->yyidx]->stateno;
|
|
|
|
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
$stack = $this->yystack;
|
|
|
|
$yyidx = $this->yyidx;
|
|
|
|
do {
|
|
|
|
$yyact = $this->yy_find_shift_action($token);
|
|
|
|
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
|
|
|
|
// reduce action
|
|
|
|
$done = 0;
|
|
|
|
do {
|
2015-03-17 02:29:19 +01:00
|
|
|
if ($done ++ == 100) {
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// too much recursion prevents proper detection
|
|
|
|
// so give up
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
$yyruleno = $yyact - self::YYNSTATE;
|
2014-12-13 23:02:29 +01:00
|
|
|
$this->yyidx -= self::$yyRuleInfo[$yyruleno][1];
|
2015-05-13 02:06:33 +02:00
|
|
|
$nextstate = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno][0]);
|
|
|
|
if (isset(self::$yyExpectedTokens[$nextstate]) && in_array($token, self::$yyExpectedTokens[$nextstate], true)) {
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if ($nextstate < self::YYNSTATE) {
|
|
|
|
// we need to shift a non-terminal
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyidx ++;
|
2010-12-05 22:15:23 +00:00
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = $nextstate;
|
2014-12-13 23:02:29 +01:00
|
|
|
$x->major = self::$yyRuleInfo[$yyruleno][0];
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yystack[$this->yyidx] = $x;
|
|
|
|
continue 2;
|
|
|
|
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
if (!$token) {
|
|
|
|
// end of input: this is valid
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
// the last token was just ignored, we can't accept
|
|
|
|
// by ignoring input, this is in essence ignoring a
|
|
|
|
// syntax error!
|
|
|
|
return false;
|
|
|
|
} elseif ($nextstate === self::YY_NO_ACTION) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// input accepted, but not shifted (I guess)
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
$yyact = $nextstate;
|
|
|
|
}
|
|
|
|
} while (true);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
} while (true);
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
public function yy_find_shift_action($iLookAhead)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
$stateno = $this->yystack[$this->yyidx]->stateno;
|
2011-03-09 13:26:34 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
/* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
|
|
|
|
if (!isset(self::$yy_shift_ofst[$stateno])) {
|
|
|
|
// no shift actions
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
$i = self::$yy_shift_ofst[$stateno];
|
|
|
|
if ($i === self::YY_SHIFT_USE_DFLT) {
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
if ($iLookAhead == self::YYNOCODE) {
|
|
|
|
return self::YY_NO_ACTION;
|
|
|
|
}
|
|
|
|
$i += $iLookAhead;
|
2015-05-13 02:06:33 +02:00
|
|
|
if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) {
|
|
|
|
if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) {
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE) {
|
2015-05-13 02:06:33 +02:00
|
|
|
fwrite($this->yyTraceFILE, $this->yyTracePrompt . "FALLBACK " . $this->yyTokenName[$iLookAhead] . " => " . $this->yyTokenName[$iFallback] . "\n");
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return $this->yy_find_shift_action($iFallback);
|
|
|
|
}
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
} else {
|
|
|
|
return self::$yy_action[$i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_find_reduce_action($stateno, $iLookAhead)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
/* $stateno = $this->yystack[$this->yyidx]->stateno; */
|
|
|
|
|
|
|
|
if (!isset(self::$yy_reduce_ofst[$stateno])) {
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
$i = self::$yy_reduce_ofst[$stateno];
|
|
|
|
if ($i == self::YY_REDUCE_USE_DFLT) {
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
if ($iLookAhead == self::YYNOCODE) {
|
|
|
|
return self::YY_NO_ACTION;
|
|
|
|
}
|
|
|
|
$i += $iLookAhead;
|
2015-05-13 02:06:33 +02:00
|
|
|
if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) {
|
2010-12-05 22:15:23 +00:00
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
} else {
|
|
|
|
return self::$yy_action[$i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_shift($yyNewState, $yyMajor, $yypMinor)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyidx ++;
|
2010-12-05 22:15:23 +00:00
|
|
|
if ($this->yyidx >= self::YYSTACKDEPTH) {
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyidx --;
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE) {
|
|
|
|
fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
while ($this->yyidx >= 0) {
|
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 203 "../smarty/lexer/smarty_internal_templateparser.y"
|
2014-10-18 00:18:11 +02:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->internalError = true;
|
|
|
|
$this->compiler->trigger_template_error("Stack overflow in template parser");
|
2013-07-14 21:12:08 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
$yytos = new TP_yyStackEntry;
|
|
|
|
$yytos->stateno = $yyNewState;
|
|
|
|
$yytos->major = $yyMajor;
|
|
|
|
$yytos->minor = $yypMinor;
|
|
|
|
array_push($this->yystack, $yytos);
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE && $this->yyidx > 0) {
|
2015-05-13 02:06:33 +02:00
|
|
|
fprintf($this->yyTraceFILE, "%sShift %d\n", $this->yyTracePrompt, $yyNewState);
|
2013-12-15 15:25:50 +00:00
|
|
|
fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt);
|
2015-03-17 02:29:19 +01:00
|
|
|
for ($i = 1; $i <= $this->yyidx; $i ++) {
|
2015-05-13 02:06:33 +02:00
|
|
|
fprintf($this->yyTraceFILE, " %s", $this->yyTokenName[$this->yystack[$i]->major]);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
fwrite($this->yyTraceFILE, "\n");
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-13 02:06:33 +02:00
|
|
|
public static $yyRuleInfo = array(array(0 => 80, 1 => 1), array(0 => 81, 1 => 1), array(0 => 81, 1 => 2), array(0 => 81, 1 => 0), array(0 => 82, 1 => 2), array(0 => 82, 1 => 1), array(0 => 82, 1 => 1), array(0 => 82, 1 => 1), array(0 => 82, 1 => 1), array(0 => 82, 1 => 1), array(0 => 85, 1 => 1), array(0 => 85, 1 => 2), array(0 => 82, 1 => 1), array(0 => 82, 1 => 1), array(0 => 82, 1 => 1), array(0 => 84, 1 => 2), array(0 => 84, 1 => 3), array(0 => 86, 1 => 2), array(0 => 86, 1 => 0), array(0 => 87, 1 => 1), array(0 => 87, 1 => 1), array(0 => 83, 1 => 2), array(0 => 83, 1 => 4), array(0 => 83, 1 => 3), array(0 => 83, 1 => 4), array(0 => 83, 1 => 3), array(0 => 83, 1 => 5), array(0 => 83, 1 => 5), array(0 => 83, 1 => 6), array(0 => 83, 1 => 5), array(0 => 83, 1 => 3), array(0 => 83, 1 => 2), array(0 => 83, 1 => 4), array(0 => 83, 1 => 5), array(0 => 83, 1 => 6), array(0 => 83, 1 => 2), array(0 => 83, 1 => 3), array(0 => 83, 1 => 2), array(0 => 83, 1 => 3), array(0 => 83, 1 => 11), array(0 => 97, 1 => 2), array(0 => 97, 1 => 1), array(0 => 83, 1 => 5), array(0 => 83, 1 => 7), array(0 => 83, 1 => 2), array(0 => 83, 1 => 7), array(0 => 83, 1 => 10), array(0 => 83, 1 => 7), array(0 => 83, 1 => 10), array(0 => 83, 1 => 3), array(0 => 83, 1 => 4), array(0 => 83, 1 => 2), array(0 => 83, 1 => 2), array(0 => 83, 1 => 3), array(0 => 83, 1 => 4), array(0 => 83, 1 => 5), array(0 => 90, 1 => 2), array(0 => 90, 1 => 1), array(0 => 90, 1 => 0), array(0 => 99, 1 => 4), array(0 => 99, 1 => 2), array(0 => 99, 1 => 2), array(0 => 99, 1 => 2), array(0 => 99, 1 => 2), array(0 => 99, 1 => 2), array(0 => 99, 1 => 4), array(0 => 94, 1 => 1), array(0 => 94, 1 => 3), array(0 => 93, 1 => 4), array(0 => 93, 1 => 3), array(0 => 93, 1 => 3), array(0 => 91, 1 => 1), array(0 => 91, 1 => 1), array(0 => 91, 1 => 4), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 1), array(0 => 91, 1 => 2), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 2), array(0 => 91, 1 => 2), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 2), array(0 => 91, 1 => 2), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 91, 1 => 3), array(0 => 100, 1 => 8), array(0 => 100, 1 => 7), array(0 => 88, 1 => 1), array(0 => 88, 1 => 2), array(0 => 88, 1 => 2), array(0 => 88, 1 => 2), array(0 => 88, 1 => 2), array(0 => 88, 1 => 1), array(0 => 88, 1 => 1), array(0 => 88, 1 => 3), array(0 => 88, 1 => 2), array(0 => 88, 1 => 2), array(0 => 88, 1 => 1), array(0 => 88, 1 => 1), array(0 => 88, 1 => 3), array(0 => 88, 1 => 1), array(0 => 88, 1 => 1), array(0 => 88, 1 => 3), array(0 => 88, 1 => 2), array(0 => 88, 1 => 2), array(0 => 88, 1 => 1), array(0 => 88, 1 => 3), array(0 => 105, 1 => 1), array(0 => 105, 1 => 1), array(0 => 105, 1 => 1), array(0 => 104, 1 => 1), array(0 => 104, 1 => 4), array(0 => 104, 1 => 1), array(0 => 104, 1 => 3), array(0 => 104, 1 => 4), array(0 => 104, 1 => 3), array(0 => 104, 1 => 4), array(0 => 92, 1 => 3), array(0 => 110, 1 => 2), array(0 => 110, 1 => 0), array(0 => 111, 1 => 3), array(0 => 111, 1 => 5), array(0 => 111, 1 => 2), array(0 => 111, 1 => 2), array(0 => 111, 1 => 4), array(0 => 111, 1 => 3), array(0 => 111, 1 => 5), array(0 => 111, 1 => 3), array(0 => 111, 1 => 2), array(0 => 96, 1 => 1), array(0 => 96, 1 => 2), array(0 => 112, 1 => 1), array(0 => 112, 1 => 3), array(0 => 109, 1 => 2), array(0 => 113, 1 => 1), array(0 => 113, 1 => 2), array(0 => 114, 1 => 3), array(0 => 114, 1 => 4), array(0 => 114, 1 => 5), array(0 => 114, 1 => 6), array(0 => 114, 1 => 2), array(0 => 106, 1 => 4), array(0 => 115, 1 => 4), array(0 => 115, 1 => 5), array(0 => 116, 1 => 3), array(0 => 116, 1 => 1), array(0 => 116, 1 => 0), array(0 => 89, 1 => 3), array(0 => 89, 1 => 2), array(0 => 117, 1 => 3), array(0 => 117, 1 => 2), array(0 => 98, 1 => 2), array(0 => 98, 1 => 0), array(0 => 118, 1 => 2), array(0 => 118, 1 => 2), array(0 => 108, 1 => 1), array(0 => 108, 1 => 2), array(0 => 108, 1 => 1),
|
|
|
|
|
|
|
|
public static $yyReduceMap = array(0 => 0, 1 => 1, 2 => 2, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 19 => 10, 20 => 10, 41 => 10, 63 => 10, 64 => 10, 71 => 10, 72 => 10, 77 => 10, 96 => 10, 101 => 10, 102 => 10, 107 => 10, 109 => 10, 110 => 10, 114 => 10, 116 => 10, 117 => 10, 118 => 10, 121 => 10, 138 => 10, 182 => 10, 187 => 10, 199 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 18 => 15, 200 => 15, 16 => 16, 70 => 16, 17 => 17, 97 => 17, 99 => 17, 100 => 17, 127 => 17, 21 => 21, 22 => 22, 23 => 23, 25 => 23, 24 => 24, 26 => 26, 27 => 26, 28 => 28, 29 => 29, 30 => 30, 31 => 31, 32 => 32, 33 => 33, 34 => 34, 35 => 35, 36 => 36, 38 => 36, 37 => 37, 39 => 39, 40 => 40, 42 => 42, 43 => 43, 44 => 44, 45 => 45, 47 => 45, 46 => 46, 48 => 46, 49 => 49, 50 => 50, 51 => 51, 52 => 52, 53 => 53, 54 => 54, 55 => 55, 56 => 56, 57 => 57, 66 => 57, 154 => 57, 158 => 57, 162 => 57, 163 => 57, 58 => 58, 155 => 58, 161 => 58, 59 => 59, 60 => 60, 61 => 60, 62 => 62, 65 => 65, 67 => 67, 68 => 68, 69 => 68, 73 => 73, 74 => 74, 75 => 74, 76 => 74, 78 => 78, 113 => 78, 79 => 79, 82 => 79, 80 => 80, 81 => 81, 83 => 83, 84 => 84, 85 => 85, 90 => 85, 86 => 86, 89 => 86, 87 => 87, 92 => 87, 88 => 88, 91 => 88, 93 => 93, 94 => 94, 95 => 95, 98 => 98, 103 => 103, 104 => 104, 105 => 105, 106 => 106, 108 => 108, 111 => 111, 112 => 112, 115 => 115, 119 => 119, 120 => 120, 122 => 122, 123 => 123, 124 => 124, 125 => 125, 126 => 126, 128 => 128, 184 => 128, 129 => 129, 130 => 130, 131 => 131, 132 => 132, 133 => 133, 136 => 133, 134 => 134, 135 => 135, 137 => 137, 139 => 139, 140 => 140, 141 => 141, 142 => 142, 143 => 143, 144 => 144, 145 => 145, 146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151, 152 => 152, 153 => 153, 156 => 156, 157 => 157, 159 => 159, 160 => 160, 164 => 164, 165 => 165, 166 => 166, 167 => 167, 168 => 168, 169 => 169, 170 => 170, 171 => 171, 172 => 172, 173 => 173, 174 => 174, 175 => 175, 176 => 176, 177 => 177, 178 => 178, 179 => 179, 180 => 180, 181 => 181, 183 => 183, 185 => 185, 186 => 186, 188 => 188, 189 => 189, 190 => 190, 191 => 191, 192 => 192, 193 => 192, 195 => 192, 194 => 194, 196 => 196, 197 => 197, 198 => 198,);
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 214 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r0()
|
|
|
|
{
|
|
|
|
$this->_retvalue = $this->root_buffer->to_smarty_php();
|
2014-10-14 21:45:05 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 222 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r1()
|
|
|
|
{
|
|
|
|
if ($this->yystack[$this->yyidx + 0]->minor != null) {
|
|
|
|
$this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
}
|
2015-01-22 03:53:01 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 229 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r2()
|
|
|
|
{
|
|
|
|
if ($this->yystack[$this->yyidx + 0]->minor != null) {
|
|
|
|
// because of possible code injection
|
|
|
|
$this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
}
|
2015-01-22 03:53:01 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 243 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r4()
|
|
|
|
{
|
|
|
|
if ($this->compiler->has_code) {
|
2015-05-16 14:17:59 +02:00
|
|
|
$this->_retvalue = $this->mergePrefixCode($this->yystack[$this->yyidx + - 1]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
} else {
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = null;
|
2015-01-22 03:53:01 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->compiler->has_variable_string = false;
|
|
|
|
$this->block_nesting_level = count($this->compiler->_tag_stack);
|
2015-01-22 03:53:01 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 254 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r5()
|
|
|
|
{
|
2015-01-22 03:53:01 +01:00
|
|
|
$this->_retvalue = null;
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 259 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r6()
|
|
|
|
{
|
2015-01-22 03:53:01 +01:00
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Text($this, $this->yystack[$this->yyidx + 0]->minor);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 263 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r7()
|
|
|
|
{
|
2015-05-16 13:33:04 +02:00
|
|
|
$code = $this->compiler->compileTag('private_php', array(array('code' => $this->yystack[$this->yyidx + 0]->minor), array('type' => $this->lex->phpType)), array());
|
|
|
|
if ($this->compiler->has_code && !empty($code)) {
|
2015-05-06 00:03:26 +02:00
|
|
|
$tmp = '';
|
|
|
|
foreach ($this->compiler->prefix_code as $code) {
|
2015-05-16 13:33:04 +02:00
|
|
|
$tmp .= $code;
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
2015-05-06 00:03:26 +02:00
|
|
|
$this->compiler->prefix_code = array();
|
2015-05-16 13:33:04 +02:00
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp . $code, true));
|
2015-05-06 00:03:26 +02:00
|
|
|
} else {
|
2013-08-24 18:46:31 +00:00
|
|
|
$this->_retvalue = null;
|
2014-06-06 02:40:04 +00:00
|
|
|
}
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 276 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-03-17 02:29:19 +01:00
|
|
|
function yy_r8()
|
|
|
|
{
|
|
|
|
$this->compiler->tag_nocache = true;
|
2015-05-06 00:03:26 +02:00
|
|
|
$xml = $this->yystack[$this->yyidx + 0]->minor;
|
2015-03-17 02:29:19 +01:00
|
|
|
$save = $this->template->has_nocache_code;
|
2015-05-06 00:03:26 +02:00
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode("<?php echo '{$xml}';?>", $this->compiler, true));
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->template->has_nocache_code = $save;
|
2015-01-22 03:53:01 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 285 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r9()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
$this->_retvalue = $this->compiler->processText($this->yystack[$this->yyidx + 0]->minor);
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 289 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r10()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 293 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r11()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 298 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r12()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
$this->strip = true;
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 302 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r13()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
$this->strip = false;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 306 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r14()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
if ($this->strip) {
|
|
|
|
SMARTY_INTERNAL_COMPILE_BLOCK::blockSource($this->compiler, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));
|
|
|
|
} else {
|
|
|
|
SMARTY_INTERNAL_COMPILE_BLOCK::blockSource($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
}
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 315 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r15()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
$this->_retvalue = '';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 319 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r16()
|
2015-04-02 01:42:53 +02:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 323 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r17()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:42:53 +02:00
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 344 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r21()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $this->yystack[$this->yyidx + 0]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 348 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r22()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 352 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r23()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 1]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 356 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r24()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 369 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r26()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('assign', array(array('value' => $this->yystack[$this->yyidx + 0]->minor), array('var' => "'" . $this->yystack[$this->yyidx + - 2]->minor . "'")));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 377 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r28()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor), array('var' => "'" . $this->yystack[$this->yyidx + - 3]->minor . "'")), $this->yystack[$this->yyidx + 0]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 381 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r29()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor), array('var' => $this->yystack[$this->yyidx + - 3]->minor['var'])), $this->yystack[$this->yyidx + 0]->minor), array('smarty_internal_index' => $this->yystack[$this->yyidx + - 3]->minor['smarty_internal_index']));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 386 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r30()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if (defined($this->yystack[$this->yyidx + - 1]->minor)) {
|
2015-03-28 03:58:08 +01:00
|
|
|
if (isset($this->smarty->security_policy)) {
|
|
|
|
$this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + - 1]->minor, $this->compiler);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 1]->minor));
|
2014-12-11 05:21:21 +01:00
|
|
|
} else {
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor);
|
2014-12-11 05:21:21 +01:00
|
|
|
}
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 396 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r31()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2014-12-11 05:21:21 +01:00
|
|
|
if (defined($this->yystack[$this->yyidx + 0]->minor)) {
|
2015-03-28 03:58:08 +01:00
|
|
|
if (isset($this->smarty->security_policy)) {
|
|
|
|
$this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $this->yystack[$this->yyidx + 0]->minor));
|
2014-12-11 05:21:21 +01:00
|
|
|
} else {
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor, array());
|
2014-12-11 05:21:21 +01:00
|
|
|
}
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 409 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r32()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if (defined($this->yystack[$this->yyidx + - 2]->minor)) {
|
2015-03-28 03:58:08 +01:00
|
|
|
if (isset($this->smarty->security_policy)) {
|
|
|
|
$this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + - 2]->minor, $this->compiler);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor));
|
2014-12-11 05:21:21 +01:00
|
|
|
} else {
|
2015-05-16 13:33:04 +02:00
|
|
|
$this->_retvalue = '<?php ob_start();?>' . $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor, $this->yystack[$this->yyidx + 0]->minor) . '<?php echo ';
|
|
|
|
$this->_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor, 'value' => 'ob_get_clean()')) . ';?>';
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 422 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r33()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 3]->minor, $this->yystack[$this->yyidx + 0]->minor, array('object_method' => $this->yystack[$this->yyidx + - 1]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 427 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r34()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-05-16 13:33:04 +02:00
|
|
|
$this->_retvalue = '<?php ob_start();?>' . $this->compiler->compileTag($this->yystack[$this->yyidx + - 4]->minor, $this->yystack[$this->yyidx + 0]->minor, array('object_method' => $this->yystack[$this->yyidx + - 2]->minor)) . '<?php echo ';
|
|
|
|
$this->_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor, 'value' => 'ob_get_clean()')) . ';?>';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 433 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r35()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$tag = trim(substr($this->yystack[$this->yyidx + - 1]->minor, $this->lex->ldel_length));
|
|
|
|
$this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, array(), array('if condition' => $this->yystack[$this->yyidx + 0]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 438 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r36()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$tag = trim(substr($this->yystack[$this->yyidx + - 2]->minor, $this->lex->ldel_length));
|
|
|
|
$this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, $this->yystack[$this->yyidx + 0]->minor, array('if condition' => $this->yystack[$this->yyidx + - 1]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 443 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r37()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$tag = trim(substr($this->yystack[$this->yyidx + - 1]->minor, $this->lex->ldel_length));
|
|
|
|
$this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, array(), array('if condition' => $this->yystack[$this->yyidx + 0]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2014-12-13 23:02:29 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 454 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r39()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('start' => $this->yystack[$this->yyidx + - 9]->minor), array('ifexp' => $this->yystack[$this->yyidx + - 6]->minor), array('var' => $this->yystack[$this->yyidx + - 2]->minor), array('step' => $this->yystack[$this->yyidx + - 1]->minor))), 1);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 458 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r40()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '=' . $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 466 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r42()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('start' => $this->yystack[$this->yyidx + - 3]->minor), array('to' => $this->yystack[$this->yyidx + - 1]->minor))), 0);
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 470 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r43()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('start' => $this->yystack[$this->yyidx + - 5]->minor), array('to' => $this->yystack[$this->yyidx + - 3]->minor), array('step' => $this->yystack[$this->yyidx + - 1]->minor))), 0);
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 475 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r44()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 480 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r45()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('foreach', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('from' => $this->yystack[$this->yyidx + - 4]->minor), array('item' => $this->yystack[$this->yyidx + - 1]->minor))));
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 484 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r46()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('foreach', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('from' => $this->yystack[$this->yyidx + - 7]->minor), array('item' => $this->yystack[$this->yyidx + - 1]->minor), array('key' => $this->yystack[$this->yyidx + - 4]->minor))));
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 497 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r49()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('setfilter', array(), array('modifier_list' => array(array_merge(array($this->yystack[$this->yyidx + - 1]->minor), $this->yystack[$this->yyidx + 0]->minor))));
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 501 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r50()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('setfilter', array(), array('modifier_list' => array_merge(array(array_merge(array($this->yystack[$this->yyidx + - 2]->minor), $this->yystack[$this->yyidx + - 1]->minor)), $this->yystack[$this->yyidx + 0]->minor)));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 506 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r51()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$j = strrpos($this->yystack[$this->yyidx + 0]->minor, '.');
|
|
|
|
if ($this->yystack[$this->yyidx + 0]->minor[$j + 1] == 'c') {
|
|
|
|
// {$smarty.block.child}
|
|
|
|
$this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileChildBlock($this->compiler);
|
2014-06-08 16:00:56 +00:00
|
|
|
} else {
|
2015-03-17 02:29:19 +01:00
|
|
|
// {$smarty.block.parent}
|
|
|
|
$this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileParentBlock($this->compiler);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 519 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r52()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor . 'close', array());
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 523 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r53()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 1]->minor . 'close', array(), array('modifier_list' => $this->yystack[$this->yyidx + 0]->minor));
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 528 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r54()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor . 'close', array(), array('object_method' => $this->yystack[$this->yyidx + 0]->minor));
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 532 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r55()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 3]->minor . 'close', array(), array('object_method' => $this->yystack[$this->yyidx + - 1]->minor, 'modifier_list' => $this->yystack[$this->yyidx + 0]->minor));
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 540 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r56()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
|
|
|
|
$this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 546 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r57()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 551 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r58()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array();
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 556 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r59()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if (defined($this->yystack[$this->yyidx + 0]->minor)) {
|
2015-03-28 03:58:08 +01:00
|
|
|
if (isset($this->smarty->security_policy)) {
|
|
|
|
$this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => $this->yystack[$this->yyidx + 0]->minor);
|
2014-06-06 02:40:04 +00:00
|
|
|
} else {
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => "'" . $this->yystack[$this->yyidx + 0]->minor . "'");
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 567 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r60()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array(trim($this->yystack[$this->yyidx + - 1]->minor, " =\n\r\t") => $this->yystack[$this->yyidx + 0]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 575 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r62()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = "'" . $this->yystack[$this->yyidx + 0]->minor . "'";
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 587 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r65()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => $this->yystack[$this->yyidx + 0]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 600 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r67()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->yystack[$this->yyidx + - 2]->minor[] = $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 605 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r68()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 2]->minor, 'value' => $this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 633 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r73()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '$_smarty_tpl->getStreamVariable(\'' . $this->yystack[$this->yyidx + - 2]->minor . '://' . $this->yystack[$this->yyidx + 0]->minor . '\')';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 638 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r74()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . trim($this->yystack[$this->yyidx + - 1]->minor) . $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 657 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r78()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_modifier', array(), array('value' => $this->yystack[$this->yyidx + - 1]->minor, 'modifierlist' => $this->yystack[$this->yyidx + 0]->minor));
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 663 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r79()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 667 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r80()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 671 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r81()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',(array)' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 679 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r83()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '!(' . $this->yystack[$this->yyidx + - 2]->minor . ' % ' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 683 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r84()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '(' . $this->yystack[$this->yyidx + - 2]->minor . ' % ' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 687 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r85()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '!(1 & ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 691 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r86()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '(1 & ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 695 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r87()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '!(1 & ' . $this->yystack[$this->yyidx + - 2]->minor . ' / ' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 699 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r88()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '(1 & ' . $this->yystack[$this->yyidx + - 2]->minor . ' / ' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 719 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r93()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 727 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r94()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 6]->minor . ' ? ' . $this->compiler->compileVariable("'" . $this->yystack[$this->yyidx + - 2]->minor . "'") . ' : ' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 731 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r95()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 5]->minor . ' ? ' . $this->yystack[$this->yyidx + - 2]->minor . ' : ' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 746 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r98()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '!' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 767 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r103()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 771 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r104()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 775 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r105()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '.' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 780 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r106()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if (defined($this->yystack[$this->yyidx + 0]->minor)) {
|
2015-03-28 03:58:08 +01:00
|
|
|
if (isset($this->smarty->security_policy)) {
|
|
|
|
$this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
} else {
|
|
|
|
$this->_retvalue = "'" . $this->yystack[$this->yyidx + 0]->minor . "'";
|
|
|
|
}
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 797 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r108()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = "(" . $this->yystack[$this->yyidx + - 1]->minor . ")";
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 812 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r111()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
self::$prefix_number ++;
|
|
|
|
if ($this->yystack[$this->yyidx + - 2]->minor['var'] == '\'smarty\'') {
|
|
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . ' = ' . $this->compiler->compileTag('private_special_variable', array(), $this->yystack[$this->yyidx + - 2]->minor['smarty_internal_index']) . ';?>';
|
|
|
|
} else {
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . ' = ' . $this->compiler->compileVariable($this->yystack[$this->yyidx + - 2]->minor['var']) . $this->yystack[$this->yyidx + - 2]->minor['smarty_internal_index'] . ';?>';
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
$this->_retvalue = '$_tmp' . self::$prefix_number . '::' . $this->yystack[$this->yyidx + 0]->minor[0] . $this->yystack[$this->yyidx + 0]->minor[1];
|
2014-10-18 00:18:11 +02:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 824 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r112()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
self::$prefix_number ++;
|
2015-05-16 14:17:59 +02:00
|
|
|
$tmp = $this->compiler->appendCode('<?php ob_start();?>', $this->yystack[$this->yyidx + - 1]->minor);
|
|
|
|
$this->compiler->prefix_code[] = $this->compiler->appendCode($tmp, '<?php $_tmp' . self::$prefix_number . '=ob_get_clean();?>');
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = '$_tmp' . self::$prefix_number;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 841 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r115()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if (!in_array(strtolower($this->yystack[$this->yyidx + - 2]->minor), array('self', 'parent')) && (!$this->security || $this->smarty->security_policy->isTrustedStaticClassAccess($this->yystack[$this->yyidx + - 2]->minor, $this->yystack[$this->yyidx + 0]->minor, $this->compiler))) {
|
|
|
|
if (isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + - 2]->minor])) {
|
|
|
|
$this->_retvalue = $this->smarty->registered_classes[$this->yystack[$this->yyidx + - 2]->minor] . '::' . $this->yystack[$this->yyidx + 0]->minor[0] . $this->yystack[$this->yyidx + 0]->minor[1];
|
2014-11-12 19:07:00 +01:00
|
|
|
} else {
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor[0] . $this->yystack[$this->yyidx + 0]->minor[1];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error("static class '" . $this->yystack[$this->yyidx + - 2]->minor . "' is undefined or not allowed by security setting");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 875 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r119()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') {
|
|
|
|
$smarty_var = $this->compiler->compileTag('private_special_variable', array(), $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']);
|
|
|
|
$this->_retvalue = $smarty_var;
|
|
|
|
} else {
|
|
|
|
// used for array reset,next,prev,end,current
|
|
|
|
$this->last_variable = $this->yystack[$this->yyidx + 0]->minor['var'];
|
|
|
|
$this->last_index = $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index'];
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->_retvalue = $this->compiler->compileVariable($this->yystack[$this->yyidx + 0]->minor['var']) . $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index'];
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 888 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r120()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '$_smarty_tpl->tpl_vars[' . $this->yystack[$this->yyidx + - 2]->minor . ']->' . $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 898 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r122()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '$_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 1]->minor . '\')';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 902 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r123()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 2]->minor . '\')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' :null)';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 906 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r124()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '$_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 910 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r125()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 2]->minor . ')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' : null)';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 914 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r126()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 1]->minor, 'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 927 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r128()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 933 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r129()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[$this->yyidx + 0]->minor) . ']';
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 937 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r130()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[$this->yyidx + - 2]->minor) . '->' . $this->yystack[$this->yyidx + 0]->minor . ']';
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 941 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r131()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if (defined($this->yystack[$this->yyidx + 0]->minor)) {
|
2015-03-28 03:58:08 +01:00
|
|
|
if (isset($this->smarty->security_policy)) {
|
|
|
|
$this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler);
|
2014-11-12 19:07:00 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = "[" . $this->yystack[$this->yyidx + 0]->minor . "]";
|
|
|
|
} else {
|
|
|
|
$this->_retvalue = "['" . $this->yystack[$this->yyidx + 0]->minor . "']";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 952 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r132()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = "[" . $this->yystack[$this->yyidx + 0]->minor . "]";
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 957 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r133()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = "[" . $this->yystack[$this->yyidx + - 1]->minor . "]";
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 962 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r134()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\'][\'index\']') . ']';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 966 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r135()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 3]->minor . '\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\']') . ']';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 976 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r137()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '[]';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 990 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r139()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 995 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r140()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '\'' . $this->yystack[$this->yyidx + 0]->minor . '\'';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1000 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r141()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '(' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1007 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r142()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->yystack[$this->yyidx + - 1]->minor['var'] == '\'smarty\'') {
|
|
|
|
$this->_retvalue = $this->compiler->compileTag('private_special_variable', array(), $this->yystack[$this->yyidx + - 1]->minor['smarty_internal_index']) . $this->yystack[$this->yyidx + 0]->minor;
|
2014-11-12 19:07:00 +01:00
|
|
|
} else {
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->_retvalue = $this->compiler->compileVariable($this->yystack[$this->yyidx + - 1]->minor['var']) . $this->yystack[$this->yyidx + - 1]->minor['smarty_internal_index'] . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1016 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r143()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1021 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r144()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1026 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r145()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->security && substr($this->yystack[$this->yyidx + - 1]->minor, 0, 1) == '_') {
|
|
|
|
$this->compiler->trigger_template_error(self::Err1);
|
|
|
|
}
|
|
|
|
$this->_retvalue = '->' . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1033 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r146()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->security) {
|
|
|
|
$this->compiler->trigger_template_error(self::Err2);
|
|
|
|
}
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->_retvalue = '->{' . $this->compiler->compileVariable($this->yystack[$this->yyidx + - 1]->minor) . $this->yystack[$this->yyidx + 0]->minor . '}';
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1040 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r147()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->security) {
|
|
|
|
$this->compiler->trigger_template_error(self::Err2);
|
|
|
|
}
|
|
|
|
$this->_retvalue = '->{' . $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + 0]->minor . '}';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1047 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r148()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->security) {
|
|
|
|
$this->compiler->trigger_template_error(self::Err2);
|
|
|
|
}
|
|
|
|
$this->_retvalue = '->{\'' . $this->yystack[$this->yyidx + - 4]->minor . '\'.' . $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + 0]->minor . '}';
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1055 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r149()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '->' . $this->yystack[$this->yyidx + 0]->minor;
|
|
|
|
}
|
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1063 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r150()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if (!$this->security || $this->smarty->security_policy->isTrustedPhpFunction($this->yystack[$this->yyidx + - 3]->minor, $this->compiler)) {
|
|
|
|
if (strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'isset') === 0 || strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'empty') === 0 || strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'array') === 0 || is_callable($this->yystack[$this->yyidx + - 3]->minor)) {
|
|
|
|
$func_name = strtolower($this->yystack[$this->yyidx + - 3]->minor);
|
|
|
|
if ($func_name == 'isset') {
|
|
|
|
if (count($this->yystack[$this->yyidx + - 1]->minor) == 0) {
|
|
|
|
$this->compiler->trigger_template_error('Illegal number of paramer in "isset()"');
|
|
|
|
}
|
|
|
|
$par = implode(',', $this->yystack[$this->yyidx + - 1]->minor);
|
|
|
|
if (strncasecmp($par, '$_smarty_tpl->getConfigVariable', strlen('$_smarty_tpl->getConfigVariable')) === 0) {
|
|
|
|
self::$prefix_number ++;
|
|
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . '=' . str_replace(')', ', false)', $par) . ';?>';
|
|
|
|
$isset_par = '$_tmp' . self::$prefix_number;
|
|
|
|
} else {
|
|
|
|
$isset_par = str_replace("')->value", "',null,true,false)->value", $par);
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 3]->minor . "(" . $isset_par . ")";
|
|
|
|
} elseif (in_array($func_name, array('empty', 'reset', 'current', 'end', 'prev', 'next'))) {
|
|
|
|
if (count($this->yystack[$this->yyidx + - 1]->minor) != 1) {
|
|
|
|
$this->compiler->trigger_template_error('Illegal number of paramer in "empty()"');
|
|
|
|
}
|
|
|
|
if ($func_name == 'empty') {
|
|
|
|
$this->_retvalue = $func_name . '(' . str_replace("')->value", "',null,true,false)->value", $this->yystack[$this->yyidx + - 1]->minor[0]) . ')';
|
|
|
|
} else {
|
|
|
|
$this->_retvalue = $func_name . '(' . $this->yystack[$this->yyidx + - 1]->minor[0] . ')';
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 3]->minor . "(" . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ")";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error("unknown function \"" . $this->yystack[$this->yyidx + - 3]->minor . "\"");
|
|
|
|
}
|
|
|
|
}
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1102 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r151()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->security && substr($this->yystack[$this->yyidx + - 3]->minor, 0, 1) == '_') {
|
|
|
|
$this->compiler->trigger_template_error(self::Err1);
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 3]->minor . "(" . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ")";
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1109 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r152()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
if ($this->security) {
|
|
|
|
$this->compiler->trigger_template_error(self::Err2);
|
|
|
|
}
|
|
|
|
self::$prefix_number ++;
|
2015-04-02 01:35:16 +02:00
|
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . '=' . $this->compiler->compileVariable("'" . $this->yystack[$this->yyidx + - 3]->minor . "'") . ';?>';
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->_retvalue = '$_tmp' . self::$prefix_number . '(' . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1120 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r153()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array_merge($this->yystack[$this->yyidx + - 2]->minor, array($this->yystack[$this->yyidx + 0]->minor));
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1137 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r156()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array_merge($this->yystack[$this->yyidx + - 2]->minor, array(array_merge($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor)));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1141 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r157()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array(array_merge($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor));
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1149 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r159()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1157 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r160()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array_merge($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1176 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r164()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, '', 'method');
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1181 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r165()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'method');
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1186 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r166()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, '');
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1191 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r167()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array('$' . $this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'property');
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1196 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r168()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = array('$' . $this->yystack[$this->yyidx + - 2]->minor, $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor, 'property');
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1202 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r169()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '==';
|
2014-12-09 23:33:11 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1206 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r170()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '!=';
|
2014-12-09 23:33:11 +01:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1210 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r171()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '>';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1214 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r172()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '<';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1218 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r173()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '>=';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1222 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r174()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '<=';
|
2011-09-16 14:19:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1226 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r175()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '===';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1230 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r176()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '!==';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1234 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r177()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '%';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1238 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r178()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '&&';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1242 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r179()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '||';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1246 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r180()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = ' XOR ';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1253 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r181()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = 'array(' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1261 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r183()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1269 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r185()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '=>' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1273 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r186()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = '\'' . $this->yystack[$this->yyidx + - 2]->minor . '\'=>' . $this->yystack[$this->yyidx + 0]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1285 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r188()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = "''";
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1289 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r189()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor->to_smarty_php();
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1294 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r190()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->yystack[$this->yyidx + - 1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor);
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1299 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r191()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[$this->yyidx + 0]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1303 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r192()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)' . $this->yystack[$this->yyidx + - 1]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1311 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r194()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)$_smarty_tpl->tpl_vars[\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\']->value');
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1319 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r196()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)(' . $this->yystack[$this->yyidx + - 1]->minor . ')');
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1323 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r197()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[$this->yyidx + - 1]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 1327 "../smarty/lexer/smarty_internal_templateparser.y"
|
2015-05-06 00:03:26 +02:00
|
|
|
function yy_r198()
|
2015-03-17 02:29:19 +01:00
|
|
|
{
|
|
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this, $this->yystack[$this->yyidx + 0]->minor);
|
2014-06-08 16:00:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
private $_retvalue;
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_reduce($yyruleno)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
|
|
|
$yymsp = $this->yystack[$this->yyidx];
|
2015-05-13 02:06:33 +02:00
|
|
|
if ($this->yyTraceFILE && $yyruleno >= 0 && $yyruleno < count(self::$yyRuleName)) {
|
|
|
|
fprintf($this->yyTraceFILE, "%sReduce (%d) [%s].\n", $this->yyTracePrompt, $yyruleno, self::$yyRuleName[$yyruleno]);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$this->_retvalue = $yy_lefthand_side = null;
|
|
|
|
if (array_key_exists($yyruleno, self::$yyReduceMap)) {
|
|
|
|
// call the action
|
|
|
|
$this->_retvalue = null;
|
|
|
|
$this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
|
|
|
|
$yy_lefthand_side = $this->_retvalue;
|
|
|
|
}
|
2014-12-13 23:02:29 +01:00
|
|
|
$yygoto = self::$yyRuleInfo[$yyruleno][0];
|
|
|
|
$yysize = self::$yyRuleInfo[$yyruleno][1];
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yyidx -= $yysize;
|
2015-03-17 02:29:19 +01:00
|
|
|
for ($i = $yysize; $i; $i --) {
|
2010-12-05 22:15:23 +00:00
|
|
|
// pop all of the right-hand side parameters
|
|
|
|
array_pop($this->yystack);
|
|
|
|
}
|
|
|
|
$yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto);
|
|
|
|
if ($yyact < self::YYNSTATE) {
|
2013-12-15 15:25:50 +00:00
|
|
|
if (!$this->yyTraceFILE && $yysize) {
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyidx ++;
|
2010-12-05 22:15:23 +00:00
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = $yyact;
|
|
|
|
$x->major = $yygoto;
|
|
|
|
$x->minor = $yy_lefthand_side;
|
|
|
|
$this->yystack[$this->yyidx] = $x;
|
|
|
|
} else {
|
|
|
|
$this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
|
|
|
|
}
|
|
|
|
} elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
|
|
|
|
$this->yy_accept();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_parse_failed()
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE) {
|
|
|
|
fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
while ($this->yyidx >= 0) {
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_syntax_error($yymajor, $TOKEN)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 196 "../smarty/lexer/smarty_internal_templateparser.y"
|
2010-12-05 22:15:23 +00:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->internalError = true;
|
|
|
|
$this->yymajor = $yymajor;
|
|
|
|
$this->compiler->trigger_template_error();
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function yy_accept()
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE) {
|
|
|
|
fprintf($this->yyTraceFILE, "%sAccept!\n", $this->yyTracePrompt);
|
2015-03-17 02:29:19 +01:00
|
|
|
}
|
|
|
|
while ($this->yyidx >= 0) {
|
2014-12-13 23:02:29 +01:00
|
|
|
$this->yy_pop_parser_stack();
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
2015-05-16 14:17:59 +02:00
|
|
|
#line 189 "../smarty/lexer/smarty_internal_templateparser.y"
|
2010-12-05 22:15:23 +00:00
|
|
|
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->successful = !$this->internalError;
|
|
|
|
$this->internalError = false;
|
|
|
|
$this->retvalue = $this->_retvalue;
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
|
2013-07-14 21:12:08 +00:00
|
|
|
public function doParse($yymajor, $yytokenvalue)
|
2010-12-05 22:15:23 +00:00
|
|
|
{
|
2014-10-07 22:07:15 +00:00
|
|
|
$yyerrorhit = 0; /* True if yymajor has invoked an error */
|
2011-03-09 13:26:34 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
if ($this->yyidx === null || $this->yyidx < 0) {
|
|
|
|
$this->yyidx = 0;
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyerrcnt = - 1;
|
2010-12-05 22:15:23 +00:00
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = 0;
|
|
|
|
$x->major = 0;
|
|
|
|
$this->yystack = array();
|
|
|
|
array_push($this->yystack, $x);
|
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
$yyendofinput = ($yymajor == 0);
|
2011-03-09 13:26:34 +00:00
|
|
|
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE) {
|
2015-05-13 02:06:33 +02:00
|
|
|
fprintf($this->yyTraceFILE, "%sInput %s\n", $this->yyTracePrompt, $this->yyTokenName[$yymajor]);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
2011-03-09 13:26:34 +00:00
|
|
|
|
2010-12-05 22:15:23 +00:00
|
|
|
do {
|
|
|
|
$yyact = $this->yy_find_shift_action($yymajor);
|
2015-05-13 02:06:33 +02:00
|
|
|
if ($yymajor < self::YYERRORSYMBOL && !$this->yy_is_expected_token($yymajor)) {
|
2010-12-05 22:15:23 +00:00
|
|
|
// force a syntax error
|
|
|
|
$yyact = self::YY_ERROR_ACTION;
|
|
|
|
}
|
|
|
|
if ($yyact < self::YYNSTATE) {
|
|
|
|
$this->yy_shift($yyact, $yymajor, $yytokenvalue);
|
2015-03-17 02:29:19 +01:00
|
|
|
$this->yyerrcnt --;
|
2010-12-05 22:15:23 +00:00
|
|
|
if ($yyendofinput && $this->yyidx >= 0) {
|
|
|
|
$yymajor = 0;
|
|
|
|
} else {
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
}
|
|
|
|
} elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
|
|
|
|
$this->yy_reduce($yyact - self::YYNSTATE);
|
|
|
|
} elseif ($yyact == self::YY_ERROR_ACTION) {
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE) {
|
2015-05-13 02:06:33 +02:00
|
|
|
fprintf($this->yyTraceFILE, "%sSyntax Error!\n", $this->yyTracePrompt);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
if (self::YYERRORSYMBOL) {
|
|
|
|
if ($this->yyerrcnt < 0) {
|
|
|
|
$this->yy_syntax_error($yymajor, $yytokenvalue);
|
|
|
|
}
|
|
|
|
$yymx = $this->yystack[$this->yyidx]->major;
|
2013-07-14 21:12:08 +00:00
|
|
|
if ($yymx == self::YYERRORSYMBOL || $yyerrorhit) {
|
2013-12-15 15:25:50 +00:00
|
|
|
if ($this->yyTraceFILE) {
|
2015-05-13 02:06:33 +02:00
|
|
|
fprintf($this->yyTraceFILE, "%sDiscard input token %s\n", $this->yyTracePrompt, $this->yyTokenName[$yymajor]);
|
2010-12-05 22:15:23 +00:00
|
|
|
}
|
|
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
} else {
|
2015-05-13 02:06:33 +02:00
|
|
|
while ($this->yyidx >= 0 && $yymx != self::YYERRORSYMBOL && ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE) {
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
2015-03-17 02:29:19 +01:00
|
|
|
if ($this->yyidx < 0 || $yymajor == 0) {
|
2010-12-05 22:15:23 +00:00
|
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
|
|
$this->yy_parse_failed();
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
} elseif ($yymx != self::YYERRORSYMBOL) {
|
|
|
|
$u2 = 0;
|
|
|
|
$this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->yyerrcnt = 3;
|
|
|
|
$yyerrorhit = 1;
|
|
|
|
} else {
|
|
|
|
if ($this->yyerrcnt <= 0) {
|
|
|
|
$this->yy_syntax_error($yymajor, $yytokenvalue);
|
|
|
|
}
|
|
|
|
$this->yyerrcnt = 3;
|
|
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
|
|
if ($yyendofinput) {
|
|
|
|
$this->yy_parse_failed();
|
|
|
|
}
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->yy_accept();
|
|
|
|
$yymajor = self::YYNOCODE;
|
2011-03-09 13:26:34 +00:00
|
|
|
}
|
2010-12-05 22:15:23 +00:00
|
|
|
} while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
|
|
|
|
}
|
2013-11-07 20:00:56 +00:00
|
|
|
}
|
2014-12-11 05:21:21 +01:00
|
|
|
|