<?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 $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 static function escape_start_tag($tag_text)
{
$tag = preg_replace('/\A<\?(.*)\z/', '<<?php ?>?\1', $tag_text, - 1, $count); //Escape tag
return $tag;
}
public static function escape_end_tag($tag_text)
{
return '?<?php ?>>';
}
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 133 "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_ASPSTARTTAG = 7;
const TP_ASPENDTAG = 8;
const TP_FAKEPHPSTARTTAG = 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 = 570;
const YY_ACCEPT_ACTION = 569;
const YY_ERROR_ACTION = 568;
const YY_SZ_ACTTAB = 2407;
static public $yy_action = array(
/* 0 */
219, 309, 305, 301, 302, 303, 304, 310, 311, 317,
/* 10 */
318, 319, 201, 30, 273, 9, 33, 238, 280, 15,
/* 20 */
5, 108, 235, 234, 220, 7, 126, 42, 30, 30,
/* 30 */
259, 211, 256, 495, 15, 15, 10, 33, 495, 280,
/* 40 */
46, 47, 51, 45, 24, 14, 352, 353, 39, 37,
/* 50 */
278, 359, 12, 25, 219, 219, 326, 434, 219, 192,
/* 60 */
434, 569, 95, 263, 227, 306, 360, 361, 358, 357,
/* 70 */
354, 355, 356, 342, 341, 328, 329, 330, 292, 219,
/* 80 */
202, 322, 242, 30, 434, 231, 207, 434, 143, 15,
/* 90 */
434, 35, 158, 434, 46, 47, 51, 45, 24, 14,
/* 100 */
352, 353, 39, 37, 278, 359, 12, 25, 219, 48,
/* 110 */
32, 219, 48, 391, 196, 2, 31, 138, 321, 4,
/* 120 */
360, 361, 358, 357, 354, 355, 356, 342, 341, 328,
/* 130 */
329, 330, 127, 48, 290, 349, 251, 30, 145, 140,
/* 1
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
KityMinder在线脑图编辑器 v1.3.5.zip (477个子文件)
_runTest.bat 295B
runTest.bat 255B
startKarma.bat 105B
cov.bat 69B
.bowerrc 32B
jasmine.css 6KB
test.css 2KB
jscoverage.exe 1.04MB
icons.gif 20KB
videologo.gif 2KB
bg_button_span.gif 1KB
ok.gif 866B
bg_button_a.gif 577B
spacer.gif 43B
.gitignore 214B
.gitmodules 412B
说明.htm 4KB
index.html 9KB
index.html 8KB
viewshare.html 5KB
createshare.html 2KB
edit.html 2KB
m-share.html 2KB
feedback.html 893B
helpcontent.html 78B
favicon.ico 66KB
indexbackground.jpg 89KB
jquery-2.1.1.js 242KB
canvg.js 100KB
jquery-2.1.0.min.js 82KB
jasmine.js 69KB
UserAction.js 66KB
inflate.js 57KB
qrcode.js 32KB
zip.js 29KB
ZeroClipboard.min.js 25KB
netdiskfinder.js 21KB
jasmine-html.js 20KB
source-map.min.js 19KB
promise-1.0.0.js 19KB
import.js 17KB
StackBlur.js 17KB
share.js 17KB
layout.js 15KB
zh-cn.js 14KB
editor.keyboard.js 13KB
dragtree.js 12KB
_examples.js 12KB
view.js 11KB
node.js 11KB
utils.js 11KB
editor.receiver.js 10KB
editor.js 10KB
image.js 10KB
rgbcolor.js 9KB
run.js 9KB
render.js 8KB
jquery.transit.min.js 8KB
karma.conf.js 8KB
browser.js 8KB
expand.js 8KB
resource.js 8KB
notice.js 8KB
history.js 7KB
jquery.xml2json.js 7KB
netdisk.js 7KB
nav.js 7KB
xmind.js 7KB
select.js 6KB
import.js 6KB
switch-view.js 6KB
Gruntfile.js 6KB
event.js 6KB
keynav.js 6KB
png.js 6KB
editor.range.js 6KB
editor.selection.js 5KB
font.js 5KB
utils.js 5KB
help.js 5KB
hyperlink.js 5KB
zoom.js 5KB
_mergeCoverageForistanbul.js 5KB
mergeCoverageForistanbul.js 5KB
data.js 5KB
image.js 4KB
btree.js 4KB
markdown.js 4KB
user.js 4KB
freemind.js 4KB
priority.js 4KB
download.js 4KB
select.js 4KB
note.js 4KB
progress.js 4KB
draft.js 4KB
outline.js 4KB
recent.js 4KB
local.js 4KB
node.js 4KB
共 477 条
- 1
- 2
- 3
- 4
- 5
资源评论
芝麻粒儿
- 粉丝: 5w+
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功