<?php
/**
* Smarty Internal Plugin Templateparser
* This is the template parser.
* It is generated from the internal.templateparser.y file
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
class TP_yyToken implements ArrayAccess
{
public $string = '';
public $metadata = array();
public function __construct($s, $m = array())
{
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;
}
}
}
public function __toString()
{
return $this->_string;
}
public function offsetExists($offset)
{
return isset($this->metadata[$offset]);
}
public function offsetGet($offset)
{
return $this->metadata[$offset];
}
public function offsetSet($offset, $value)
{
if ($offset === null) {
if (isset($value[0])) {
$x = ($value instanceof TP_yyToken) ?
$value->metadata : $value;
$this->metadata = array_merge($this->metadata, $x);
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;
}
}
public function offsetUnset($offset)
{
unset($this->metadata[$offset]);
}
}
class TP_yyStackEntry
{
public $stateno; /* The state-number */
public $major; /* The major token value. This is the code
** number for the token at this stack level */
public $minor; /* The user-supplied minor token value. This
** is the value of the token */
}
;
#line 13 "smarty_internal_templateparser.y"
class Smarty_Internal_Templateparser#line 80 "smarty_internal_templateparser.php"
{
#line 15 "smarty_internal_templateparser.y"
const Err1 = "Security error: Call to private object member not allowed";
const Err2 = "Security error: Call to dynamic object member not allowed";
const Err3 = "PHP in template not allowed. Use SmartyBC to enable it";
// states whether the parse was successful or not
public $successful = true;
public $retvalue = 0;
public static $prefix_number = 0;
private $_string;
public $yymajor;
public $last_index;
public $last_variable;
public $root_buffer;
public $current_buffer;
private $lex;
private $internalError = false;
private $strip = false;
function __construct($lex, $compiler)
{
$this->lex = $lex;
$this->compiler = $compiler;
$this->smarty = $this->compiler->smarty;
$this->template = $this->compiler->template;
$this->compiler->has_variable_string = false;
$this->compiler->prefix_code = array();
$this->block_nesting_level = 0;
if ($this->security = isset($this->smarty->security_policy)) {
$this->php_handling = $this->smarty->security_policy->php_handling;
} else {
$this->php_handling = $this->smarty->php_handling;
}
$this->is_xml = false;
$this->asp_tags = (ini_get('asp_tags') != '0');
$this->current_buffer = $this->root_buffer = new _smarty_template_buffer($this);
}
public function compileVariable($variable)
{
if (strpos($variable, '(') == 0) {
// not a variable variable
$var = trim($variable, '\'');
$this->compiler->tag_nocache = $this->compiler->tag_nocache | $this->template->getVariable($var, null, true, false)->nocache;
$this->template->properties['variables'][$var] = $this->compiler->tag_nocache | $this->compiler->nocache;
}
// return '(isset($_smarty_tpl->tpl_vars['. $variable .'])?$_smarty_tpl->tpl_vars['. $variable .']->value:$_smarty_tpl->getVariable('. $variable .')->value)';
return '$_smarty_tpl->tpl_vars[' . $variable . ']->value';
}
#line 130 "smarty_internal_templateparser.php"
const TP_VERT = 1;
const TP_COLON = 2;
const TP_RDEL = 3;
const TP_COMMENT = 4;
const TP_PHPSTARTTAG = 5;
const TP_PHPENDTAG = 6;
const TP_PHPENDSCRIPT = 7;
const TP_ASPSTARTTAG = 8;
const TP_ASPENDTAG = 9;
const TP_XMLTAG = 10;
const TP_TEXT = 11;
const TP_STRIPON = 12;
const TP_STRIPOFF = 13;
const TP_BLOCKSOURCE = 14;
const TP_LITERALSTART = 15;
const TP_LITERALEND = 16;
const TP_LITERAL = 17;
const TP_LDEL = 18;
const TP_DOLLAR = 19;
const TP_ID = 20;
const TP_EQUAL = 21;
const TP_PTR = 22;
const TP_LDELIF = 23;
const TP_LDELFOR = 24;
const TP_SEMICOLON = 25;
const TP_INCDEC = 26;
const TP_TO = 27;
const TP_STEP = 28;
const TP_LDELFOREACH = 29;
const TP_SPACE = 30;
const TP_AS = 31;
const TP_APTR = 32;
const TP_LDELSETFILTER = 33;
const TP_SMARTYBLOCKCHILDPARENT = 34;
const TP_LDELSLASH = 35;
const TP_ATTR = 36;
const TP_INTEGER = 37;
const TP_COMMA = 38;
const TP_OPENP = 39;
const TP_CLOSEP = 40;
const TP_MATH = 41;
const TP_UNIMATH = 42;
const TP_ANDSYM = 43;
const TP_ISIN = 44;
const TP_ISDIVBY = 45;
const TP_ISNOTDIVBY = 46;
const TP_ISEVEN = 47;
const TP_ISNOTEVEN = 48;
const TP_ISEVENBY = 49;
const TP_ISNOTEVENBY = 50;
const TP_ISODD = 51;
const TP_ISNOTODD = 52;
const TP_ISODDBY = 53;
const TP_ISNOTODDBY = 54;
const TP_INSTANCEOF = 55;
const TP_QMARK = 56;
const TP_NOT = 57;
const TP_TYPECAST = 58;
const TP_HEX = 59;
const TP_DOT = 60;
const TP_SINGLEQUOTESTRING = 61;
const TP_DOUBLECOLON = 62;
const TP_AT = 63;
const TP_HATCH = 64;
const TP_OPENB = 65;
const TP_CLOSEB = 66;
const TP_EQUALS = 67;
const TP_NOTEQUALS = 68;
const TP_GREATERTHAN = 69;
const TP_LESSTHAN = 70;
const TP_GREATEREQUAL = 71;
const TP_LESSEQUAL = 72;
const TP_IDENTITY = 73;
const TP_NONEIDENTITY = 74;
const TP_MOD = 75;
const TP_LAND = 76;
const TP_LOR = 77;
const TP_LXOR = 78;
const TP_QUOTE = 79;
const TP_BACKTICK = 80;
const TP_DOLLARID = 81;
const YY_NO_ACTION = 560;
const YY_ACCEPT_ACTION = 559;
const YY_ERROR_ACTION = 558;
const YY_SZ_ACTTAB = 2541;
static public $yy_action = array(
/* 0 */
225, 35, 312, 333, 198, 272, 273, 275, 283, 292,
/* 10 */
293, 294, 295, 287, 288, 267, 190, 43, 19, 8,
/* 20 */
204, 14, 212, 299, 2, 108, 225, 9, 424, 41,
/* 30 */
139, 208, 225, 41, 250, 32, 228, 13, 159, 32,
/* 40 */
51, 52, 50, 44, 11, 12, 298, 300, 21, 23,
/* 50 */
303, 302, 25, 17, 225, 424, 234, 225, 225, 381,
/* 60 */
421, 424, 45, 38, 145, 357, 313, 323, 322, 324,
/* 70 */
325, 326, 320, 315, 314, 316, 317, 319, 127, 41,
/* 80 */
46, 42, 338, 41, 168, 32, 41, 421, 14, 32,
/* 90 */
299, 34, 32, 421, 51, 52, 50, 44, 11, 12,
/* 100 */
298, 300, 21, 23, 303, 302, 25, 17, 225, 104,
/* 110 */
185, 46, 46, 559, 95, 279, 242, 271, 3, 321,
/* 120 */
313, 323, 322, 324, 325, 326, 320, 315, 314, 316,
/* 130 */
317, 319, 14, 241, 299, 34, 208, 41, 225, 14,
/* 140 */
418, 299, 28, 32, 179, 7, 356, 285, 51, 52,
/* 150 */
50, 44, 11, 12, 298, 300, 21, 23, 303, 302,
AI拉呱
- 粉丝: 2893
- 资源: 5551
最新资源
- 白色欧美风格的建筑外观维修企业网站源码下载.zip
- 白色欧美风格的教育机构企业网站源码下载.zip
- 白色欧美风格的教育培训机构整站网站源码下载.zip
- 白色欧美风格的教育类企业网站源码下载.zip
- 风力涡轮机缺陷检测数据集,86.6%准确识别率,11921张图片,支持yolov5格式的标注,
- 白色欧美风格的教育讲座服务企业网站源码下载.zip
- 白色欧美风格的教育企业网站源码下载.zip
- 白色欧美风格的金融服务企业网站源码下载.zip
- 白色欧美风格的酒店预订企业网站源码下载.zip
- 白色欧美风格的酒馆餐馆企业网站源码下载.zip
- 平时学习python过程中的Demo
- 白色欧美风格的咖啡厅餐饮企业网站源码下载.zip
- 白色欧美风格的旅游背包客服务整站网站源码下载.zip
- 白色欧美风格的旅行服务企业网站源码下载.zip
- 白色欧美风格的空调暖气维修整站网站源码下载.zip
- 白色欧美风格的木板背景错误页源码下载.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈