smarty_internal_templateparser.php 156 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831
  1. <?php
  2. class TP_yyToken implements ArrayAccess
  3. {
  4. public $string = '';
  5. public $metadata = array();
  6. public function __construct($s, $m = array())
  7. {
  8. if ($s instanceof TP_yyToken) {
  9. $this->string = $s->string;
  10. $this->metadata = $s->metadata;
  11. } else {
  12. $this->string = (string) $s;
  13. if ($m instanceof TP_yyToken) {
  14. $this->metadata = $m->metadata;
  15. } elseif (is_array($m)) {
  16. $this->metadata = $m;
  17. }
  18. }
  19. }
  20. public function __toString()
  21. {
  22. return $this->string;
  23. }
  24. public function offsetExists($offset)
  25. {
  26. return isset($this->metadata[ $offset ]);
  27. }
  28. public function offsetGet($offset)
  29. {
  30. return $this->metadata[ $offset ];
  31. }
  32. public function offsetSet($offset, $value)
  33. {
  34. if ($offset === null) {
  35. if (isset($value[ 0 ])) {
  36. $x = ($value instanceof TP_yyToken) ? $value->metadata : $value;
  37. $this->metadata = array_merge($this->metadata, $x);
  38. return;
  39. }
  40. $offset = count($this->metadata);
  41. }
  42. if ($value === null) {
  43. return;
  44. }
  45. if ($value instanceof TP_yyToken) {
  46. if ($value->metadata) {
  47. $this->metadata[ $offset ] = $value->metadata;
  48. }
  49. } elseif ($value) {
  50. $this->metadata[ $offset ] = $value;
  51. }
  52. }
  53. public function offsetUnset($offset)
  54. {
  55. unset($this->metadata[ $offset ]);
  56. }
  57. }
  58. class TP_yyStackEntry
  59. {
  60. public $stateno; /* The state-number */
  61. public $major; /* The major token value. This is the code
  62. ** number for the token at this stack level */
  63. public $minor; /* The user-supplied minor token value. This
  64. ** is the value of the token */
  65. }
  66. ;
  67. #line 11 "../smarty/lexer/smarty_internal_templateparser.y"
  68. /**
  69. * Smarty Template Parser Class
  70. *
  71. * This is the template parser.
  72. * It is generated from the smarty_internal_templateparser.y file
  73. *
  74. * @author Uwe Tews <uwe.tews@googlemail.com>
  75. */
  76. class Smarty_Internal_Templateparser
  77. {
  78. #line 23 "../smarty/lexer/smarty_internal_templateparser.y"
  79. const Err1 = "Security error: Call to private object member not allowed";
  80. const Err2 = "Security error: Call to dynamic object member not allowed";
  81. const Err3 = "PHP in template not allowed. Use SmartyBC to enable it";
  82. /**
  83. * result status
  84. *
  85. * @var bool
  86. */
  87. public $successful = true;
  88. /**
  89. * return value
  90. *
  91. * @var mixed
  92. */
  93. public $retvalue = 0;
  94. /**
  95. * @var
  96. */
  97. public $yymajor;
  98. /**
  99. * last index of array variable
  100. *
  101. * @var mixed
  102. */
  103. public $last_index;
  104. /**
  105. * last variable name
  106. *
  107. * @var string
  108. */
  109. public $last_variable;
  110. /**
  111. * root parse tree buffer
  112. *
  113. * @var Smarty_Internal_ParseTree
  114. */
  115. public $root_buffer;
  116. /**
  117. * current parse tree object
  118. *
  119. * @var Smarty_Internal_ParseTree
  120. */
  121. public $current_buffer;
  122. /**
  123. * lexer object
  124. *
  125. * @var Smarty_Internal_Templatelexer
  126. */
  127. public $lex;
  128. /**
  129. * internal error flag
  130. *
  131. * @var bool
  132. */
  133. private $internalError = false;
  134. /**
  135. * {strip} status
  136. *
  137. * @var bool
  138. */
  139. public $strip = false;
  140. /**
  141. * compiler object
  142. *
  143. * @var Smarty_Internal_TemplateCompilerBase
  144. */
  145. public $compiler = null;
  146. /**
  147. * smarty object
  148. *
  149. * @var Smarty
  150. */
  151. public $smarty = null;
  152. /**
  153. * template object
  154. *
  155. * @var Smarty_Internal_Template
  156. */
  157. public $template = null;
  158. /**
  159. * block nesting level
  160. *
  161. * @var int
  162. */
  163. public $block_nesting_level = 0;
  164. /**
  165. * security object
  166. *
  167. * @var Smarty_Security
  168. */
  169. public $security = null;
  170. /**
  171. * template prefix array
  172. *
  173. * @var \Smarty_Internal_ParseTree[]
  174. */
  175. public $template_prefix = array();
  176. /**
  177. * security object
  178. *
  179. * @var \Smarty_Internal_ParseTree[]
  180. */
  181. public $template_postfix = array();
  182. /**
  183. * constructor
  184. *
  185. * @param Smarty_Internal_Templatelexer $lex
  186. * @param Smarty_Internal_TemplateCompilerBase $compiler
  187. */
  188. function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler)
  189. {
  190. $this->lex = $lex;
  191. $this->compiler = $compiler;
  192. $this->template = $this->compiler->template;
  193. $this->smarty = $this->template->smarty;
  194. $this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false;
  195. $this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template();
  196. }
  197. /**
  198. * insert PHP code in current buffer
  199. *
  200. * @param string $code
  201. */
  202. public function insertPhpCode($code)
  203. {
  204. $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Tag($this, $code));
  205. }
  206. /**
  207. * merge PHP code with prefix code and return parse tree tag object
  208. *
  209. * @param string $code
  210. *
  211. * @return Smarty_Internal_ParseTree_Tag
  212. */
  213. public function mergePrefixCode($code)
  214. {
  215. $tmp = '';
  216. foreach ($this->compiler->prefix_code as $preCode) {
  217. $tmp .= $preCode;
  218. }
  219. $this->compiler->prefix_code = array();
  220. $tmp .= $code;
  221. return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true));
  222. }
  223. const TP_VERT = 1;
  224. const TP_COLON = 2;
  225. const TP_PHP = 3;
  226. const TP_TEXT = 4;
  227. const TP_STRIPON = 5;
  228. const TP_STRIPOFF = 6;
  229. const TP_LITERALSTART = 7;
  230. const TP_LITERALEND = 8;
  231. const TP_LITERAL = 9;
  232. const TP_RDEL = 10;
  233. const TP_SIMPELOUTPUT = 11;
  234. const TP_LDEL = 12;
  235. const TP_DOLLARID = 13;
  236. const TP_EQUAL = 14;
  237. const TP_SIMPLETAG = 15;
  238. const TP_ID = 16;
  239. const TP_PTR = 17;
  240. const TP_LDELMAKENOCACHE = 18;
  241. const TP_LDELIF = 19;
  242. const TP_LDELFOR = 20;
  243. const TP_SEMICOLON = 21;
  244. const TP_INCDEC = 22;
  245. const TP_TO = 23;
  246. const TP_STEP = 24;
  247. const TP_LDELFOREACH = 25;
  248. const TP_SPACE = 26;
  249. const TP_AS = 27;
  250. const TP_APTR = 28;
  251. const TP_LDELSETFILTER = 29;
  252. const TP_SMARTYBLOCKCHILDPARENT = 30;
  253. const TP_CLOSETAG = 31;
  254. const TP_LDELSLASH = 32;
  255. const TP_ATTR = 33;
  256. const TP_INTEGER = 34;
  257. const TP_COMMA = 35;
  258. const TP_OPENP = 36;
  259. const TP_CLOSEP = 37;
  260. const TP_MATH = 38;
  261. const TP_UNIMATH = 39;
  262. const TP_ISIN = 40;
  263. const TP_QMARK = 41;
  264. const TP_NOT = 42;
  265. const TP_TYPECAST = 43;
  266. const TP_HEX = 44;
  267. const TP_DOT = 45;
  268. const TP_INSTANCEOF = 46;
  269. const TP_SINGLEQUOTESTRING = 47;
  270. const TP_DOUBLECOLON = 48;
  271. const TP_NAMESPACE = 49;
  272. const TP_AT = 50;
  273. const TP_HATCH = 51;
  274. const TP_OPENB = 52;
  275. const TP_CLOSEB = 53;
  276. const TP_DOLLAR = 54;
  277. const TP_LOGOP = 55;
  278. const TP_SLOGOP = 56;
  279. const TP_TLOGOP = 57;
  280. const TP_SINGLECOND = 58;
  281. const TP_QUOTE = 59;
  282. const TP_BACKTICK = 60;
  283. const YY_NO_ACTION = 532;
  284. const YY_ACCEPT_ACTION = 531;
  285. const YY_ERROR_ACTION = 530;
  286. const YY_SZ_ACTTAB = 2114;
  287. static public $yy_action = array(268, 8, 132, 210, 245, 197, 183, 228, 7, 84, 176, 264, 275, 302, 112, 44, 36, 278,
  288. 233, 136, 305, 221, 281, 203, 237, 26, 234, 202, 41, 104, 189, 39, 42, 256, 213,
  289. 216, 224, 78, 207, 129, 82, 1, 316, 297, 102, 268, 8, 133, 79, 245, 80, 302, 228,
  290. 7, 84, 330, 299, 82, 272, 112, 297, 273, 325, 233, 285, 305, 221, 214, 231, 34, 26,
  291. 3, 101, 41, 230, 78, 39, 42, 256, 213, 35, 239, 314, 207, 300, 82, 1, 13, 297, 333,
  292. 268, 8, 135, 79, 245, 201, 302, 228, 7, 84, 35, 85, 322, 109, 112, 29, 196, 13,
  293. 233, 269, 305, 221, 237, 231, 249, 26, 136, 104, 41, 219, 78, 39, 42, 256, 213,
  294. 459, 239, 267, 207, 355, 82, 1, 459, 297, 446, 268, 8, 135, 79, 245, 193, 302, 228,
  295. 7, 84, 35, 446, 297, 28, 112, 247, 263, 13, 233, 82, 305, 221, 297, 231, 309, 26,
  296. 185, 292, 41, 298, 78, 39, 42, 256, 213, 27, 239, 237, 207, 232, 82, 1, 104, 297,
  297. 459, 268, 8, 135, 79, 245, 195, 459, 228, 7, 84, 446, 297, 283, 11, 112, 25, 188,
  298. 282, 233, 236, 305, 221, 446, 204, 294, 26, 32, 318, 41, 90, 210, 39, 42, 256, 213,
  299. 174, 239, 137, 207, 402, 82, 1, 210, 297, 9, 268, 8, 136, 79, 245, 201, 223, 228,
  300. 7, 84, 402, 142, 235, 225, 112, 22, 227, 402, 233, 166, 305, 221, 35, 231, 27, 33,
  301. 210, 101, 41, 13, 210, 39, 42, 256, 213, 361, 239, 302, 207, 399, 82, 1, 210, 297,
  302. 101, 268, 8, 135, 79, 245, 201, 402, 228, 7, 84, 399, 235, 297, 109, 112, 447, 78,
  303. 399, 233, 319, 305, 221, 402, 194, 172, 26, 279, 447, 41, 402, 307, 39, 42, 256,
  304. 213, 182, 239, 16, 207, 296, 82, 1, 210, 297, 101, 268, 8, 131, 79, 245, 201, 357,
  305. 228, 7, 84, 283, 11, 475, 475, 112, 282, 303, 475, 233, 24, 305, 221, 35, 231, 175,
  306. 4, 279, 271, 41, 13, 109, 39, 42, 256, 213, 181, 239, 178, 207, 12, 82, 1, 16, 297,
  307. 274, 268, 8, 135, 79, 245, 200, 475, 228, 7, 84, 475, 475, 283, 11, 112, 475, 189,
  308. 282, 233, 210, 305, 221, 20, 231, 38, 26, 179, 292, 41, 148, 446, 39, 42, 256, 213,
  309. 229, 239, 180, 207, 332, 82, 1, 446, 297, 190, 268, 8, 134, 79, 245, 201, 215, 228,
  310. 7, 84, 168, 16, 188, 243, 112, 104, 189, 303, 233, 140, 305, 221, 325, 231, 255,
  311. 26, 177, 214, 41, 218, 312, 39, 42, 256, 213, 277, 239, 128, 207, 101, 82, 1, 92,
  312. 297, 2, 268, 8, 136, 79, 245, 201, 23, 228, 7, 84, 210, 108, 251, 184, 112, 297,
  313. 304, 289, 233, 367, 305, 221, 137, 231, 315, 33, 220, 5, 41, 9, 5, 39, 42, 256,
  314. 213, 35, 239, 189, 207, 113, 82, 311, 13, 297, 106, 446, 214, 212, 79, 116, 72,
  315. 114, 258, 260, 261, 222, 102, 446, 214, 257, 280, 187, 308, 334, 270, 206, 242,
  316. 152, 299, 210, 128, 83, 262, 250, 252, 253, 176, 332, 211, 329, 268, 8, 151, 143,
  317. 245, 189, 178, 228, 7, 84, 210, 265, 332, 332, 112, 188, 21, 311, 233, 153, 305,
  318. 221, 214, 212, 17, 122, 67, 114, 164, 141, 189, 13, 102, 149, 266, 257, 280, 183,
  319. 332, 332, 270, 206, 242, 332, 299, 295, 44, 36, 278, 235, 311, 208, 279, 145, 169,
  320. 214, 212, 91, 122, 67, 114, 189, 320, 332, 167, 102, 146, 139, 257, 280, 94, 171,
  321. 159, 270, 206, 242, 332, 299, 210, 38, 311, 189, 332, 155, 209, 214, 212, 317, 122,
  322. 53, 107, 123, 232, 332, 189, 102, 291, 400, 257, 280, 6, 217, 276, 270, 206, 242,
  323. 311, 299, 297, 158, 313, 214, 212, 400, 122, 49, 107, 154, 117, 332, 400, 102, 30,
  324. 446, 257, 280, 248, 332, 173, 270, 206, 242, 279, 299, 324, 446, 186, 292, 332, 95,
  325. 279, 268, 10, 326, 170, 245, 88, 87, 228, 7, 84, 279, 138, 89, 279, 112, 86, 309,
  326. 311, 233, 115, 305, 221, 214, 212, 254, 122, 67, 114, 105, 303, 163, 165, 102, 303,
  327. 93, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 303, 303, 303, 286, 19, 311,
  328. 205, 303, 303, 303, 214, 212, 303, 116, 72, 114, 303, 43, 40, 37, 102, 303, 303,
  329. 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 324, 327, 323, 288, 287, 303,
  330. 303, 268, 10, 326, 331, 245, 303, 303, 228, 7, 84, 303, 303, 303, 303, 112, 303,
  331. 303, 311, 233, 303, 305, 221, 214, 212, 303, 122, 70, 114, 303, 303, 303, 303, 102,
  332. 303, 303, 257, 280, 303, 283, 11, 270, 206, 242, 282, 299, 303, 311, 303, 290, 19,
  333. 303, 214, 212, 35, 122, 54, 114, 303, 303, 303, 13, 102, 162, 303, 257, 280, 183,
  334. 303, 303, 270, 206, 242, 332, 299, 311, 44, 36, 278, 303, 214, 212, 303, 122, 68,
  335. 114, 303, 303, 303, 303, 102, 189, 303, 257, 280, 303, 303, 303, 270, 206, 242,
  336. 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 100, 73, 114, 303, 303, 303, 303,
  337. 102, 303, 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303,
  338. 303, 303, 214, 212, 303, 122, 77, 114, 303, 303, 303, 303, 102, 147, 303, 257, 280,
  339. 183, 303, 303, 270, 206, 242, 332, 299, 311, 44, 36, 278, 303, 214, 212, 303, 122,
  340. 76, 114, 303, 303, 303, 303, 102, 189, 303, 257, 280, 303, 303, 303, 270, 206, 242,
  341. 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 99, 71, 114, 303, 303, 303, 303,
  342. 102, 161, 303, 257, 280, 183, 303, 303, 270, 206, 242, 332, 299, 311, 44, 36, 278,
  343. 303, 214, 212, 303, 122, 47, 114, 303, 303, 303, 303, 102, 189, 303, 257, 280, 303,
  344. 303, 303, 270, 206, 242, 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 122, 59,
  345. 114, 303, 303, 303, 303, 102, 150, 303, 257, 280, 183, 303, 303, 270, 206, 242,
  346. 332, 299, 311, 44, 36, 278, 303, 214, 198, 303, 118, 55, 114, 303, 303, 303, 303,
  347. 102, 189, 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303,
  348. 303, 303, 214, 212, 303, 122, 69, 114, 303, 303, 303, 303, 102, 160, 303, 257, 280,
  349. 183, 303, 303, 270, 206, 242, 332, 299, 311, 44, 36, 278, 303, 214, 97, 303, 81,
  350. 48, 103, 303, 303, 303, 303, 102, 189, 303, 257, 280, 303, 303, 303, 270, 206, 242,
  351. 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 122, 57, 114, 303, 303, 303, 303,
  352. 102, 303, 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303,
  353. 303, 303, 214, 212, 303, 122, 65, 114, 303, 303, 303, 303, 102, 303, 303, 257, 280,
  354. 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303, 303, 303, 214, 96, 303, 81,
  355. 46, 103, 303, 303, 303, 303, 102, 303, 303, 257, 280, 303, 303, 303, 270, 206, 242,
  356. 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 111, 50, 114, 303, 303, 303, 303,
  357. 102, 303, 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303,
  358. 303, 303, 214, 212, 303, 98, 61, 114, 303, 303, 303, 303, 102, 303, 303, 257, 280,
  359. 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303, 303, 303, 214, 199, 303,
  360. 122, 56, 114, 303, 303, 303, 303, 102, 303, 303, 257, 280, 303, 303, 303, 270, 206,
  361. 242, 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 122, 51, 114, 303, 303, 303,
  362. 303, 102, 303, 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303,
  363. 303, 303, 303, 214, 212, 303, 122, 58, 114, 303, 303, 303, 303, 102, 303, 303, 257,
  364. 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303, 303, 303, 214, 212,
  365. 303, 122, 74, 114, 303, 303, 303, 303, 102, 303, 303, 257, 280, 303, 303, 303, 270,
  366. 206, 242, 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 122, 62, 114, 303, 303,
  367. 303, 303, 102, 303, 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311,
  368. 303, 303, 303, 303, 214, 212, 303, 122, 60, 114, 303, 303, 303, 303, 102, 303, 303,
  369. 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303, 303, 303, 214,
  370. 212, 303, 122, 45, 114, 303, 303, 303, 303, 102, 303, 303, 257, 280, 303, 303, 303,
  371. 270, 206, 242, 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 122, 64, 114, 303,
  372. 303, 303, 303, 102, 303, 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299,
  373. 311, 303, 303, 303, 303, 214, 212, 303, 122, 75, 114, 303, 303, 303, 303, 102, 303,
  374. 303, 257, 280, 303, 303, 303, 270, 206, 242, 303, 299, 311, 303, 303, 303, 303,
  375. 214, 212, 303, 122, 63, 114, 303, 303, 303, 303, 102, 303, 303, 257, 280, 303, 303,
  376. 303, 270, 206, 242, 303, 299, 311, 303, 303, 303, 303, 214, 212, 303, 122, 66, 114,
  377. 303, 303, 303, 303, 102, 303, 303, 257, 280, 303, 412, 412, 270, 206, 242, 303,
  378. 299, 311, 303, 303, 303, 303, 214, 212, 303, 122, 53, 114, 303, 303, 303, 303, 102,
  379. 303, 303, 257, 280, 210, 303, 303, 270, 206, 242, 303, 299, 446, 301, 412, 412,
  380. 412, 303, 531, 52, 259, 260, 261, 222, 446, 303, 214, 303, 303, 35, 303, 412, 412,
  381. 412, 412, 303, 13, 303, 303, 303, 303, 43, 40, 37, 210, 303, 303, 311, 303, 303,
  382. 303, 303, 214, 212, 210, 130, 303, 114, 327, 323, 288, 287, 102, 303, 303, 303,
  383. 241, 31, 303, 35, 270, 206, 242, 303, 299, 303, 13, 303, 303, 35, 303, 43, 40, 37,
  384. 303, 303, 13, 303, 303, 303, 303, 43, 40, 37, 303, 303, 303, 311, 327, 323, 288,
  385. 287, 214, 212, 210, 124, 303, 114, 327, 323, 288, 287, 102, 192, 303, 303, 310,
  386. 303, 303, 303, 270, 206, 242, 311, 299, 226, 303, 303, 214, 212, 303, 120, 303,
  387. 114, 475, 475, 303, 28, 102, 475, 459, 43, 40, 37, 303, 303, 270, 206, 242, 303,
  388. 299, 303, 303, 303, 303, 303, 303, 311, 327, 323, 288, 287, 214, 212, 303, 126,
  389. 303, 114, 459, 303, 303, 459, 102, 475, 303, 459, 226, 303, 303, 303, 270, 206,
  390. 242, 303, 299, 475, 475, 226, 18, 303, 475, 459, 303, 303, 303, 303, 475, 475, 303,
  391. 303, 226, 475, 459, 283, 11, 303, 303, 303, 282, 475, 475, 303, 303, 303, 475, 459,
  392. 303, 303, 35, 459, 144, 303, 459, 303, 475, 13, 459, 303, 303, 303, 459, 303, 303,
  393. 459, 311, 475, 303, 459, 321, 214, 212, 303, 119, 459, 114, 303, 459, 303, 475,
  394. 102, 459, 303, 303, 303, 303, 303, 303, 270, 206, 242, 303, 299, 311, 210, 14, 303,
  395. 303, 214, 212, 303, 127, 303, 114, 303, 284, 303, 303, 102, 129, 303, 303, 303,
  396. 303, 102, 303, 270, 206, 242, 311, 299, 210, 303, 293, 214, 212, 299, 121, 303,
  397. 114, 311, 43, 40, 37, 102, 214, 212, 303, 125, 303, 114, 303, 270, 206, 242, 102,
  398. 299, 156, 327, 323, 288, 287, 210, 270, 206, 242, 210, 299, 43, 40, 37, 210, 303,
  399. 303, 303, 244, 303, 303, 303, 303, 303, 303, 110, 303, 303, 327, 323, 288, 287,
  400. 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 43, 40, 37, 210, 43, 40, 37, 210,
  401. 303, 43, 40, 37, 240, 210, 303, 303, 191, 327, 323, 288, 287, 327, 323, 288, 287,
  402. 303, 327, 323, 288, 287, 303, 306, 303, 303, 303, 303, 303, 303, 303, 303, 43, 40,
  403. 37, 303, 43, 40, 37, 210, 303, 238, 43, 40, 37, 303, 303, 303, 303, 327, 323, 288,
  404. 287, 327, 323, 288, 287, 15, 303, 327, 323, 288, 287, 303, 303, 303, 475, 475, 303,
  405. 303, 303, 475, 459, 210, 303, 246, 43, 40, 37, 210, 303, 303, 303, 303, 303, 475,
  406. 475, 283, 11, 303, 475, 459, 282, 327, 323, 288, 287, 303, 303, 303, 459, 303, 35,
  407. 459, 157, 475, 303, 459, 303, 13, 43, 40, 37, 303, 303, 303, 43, 40, 37, 459, 303,
  408. 303, 459, 303, 475, 328, 459, 327, 323, 288, 287, 303, 303, 327, 323, 288, 287,
  409. 303, 406, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 406, 303, 406, 303,
  410. 303, 406, 303, 303, 303, 303, 303, 303, 406, 303, 406, 303, 406, 303, 303, 303,
  411. 303, 303, 303, 303, 235,);
  412. static public $yy_lookahead = array(11, 12, 13, 1, 15, 16, 76, 18, 19, 20, 7, 8, 9, 22, 25, 85, 86, 87, 29, 13, 31,
  413. 32, 16, 34, 75, 36, 77, 78, 39, 80, 100, 42, 43, 44, 45, 71, 47, 46, 49, 75, 51,
  414. 52, 53, 54, 80, 11, 12, 13, 59, 15, 16, 22, 18, 19, 20, 49, 92, 51, 66, 25, 54,
  415. 69, 65, 29, 30, 31, 32, 70, 34, 14, 36, 35, 17, 39, 16, 46, 42, 43, 44, 45, 26,
  416. 47, 53, 49, 10, 51, 52, 33, 54, 53, 11, 12, 13, 59, 15, 16, 22, 18, 19, 20, 26,
  417. 104, 105, 48, 25, 12, 13, 33, 29, 16, 31, 32, 75, 34, 77, 36, 13, 80, 39, 16,
  418. 46, 42, 43, 44, 45, 45, 47, 34, 49, 10, 51, 52, 52, 54, 36, 11, 12, 13, 59, 15,
  419. 16, 22, 18, 19, 20, 26, 48, 54, 14, 25, 13, 34, 33, 29, 51, 31, 32, 54, 34, 94,
  420. 36, 96, 97, 39, 97, 46, 42, 43, 44, 45, 14, 47, 75, 49, 77, 51, 52, 80, 54, 45,
  421. 11, 12, 13, 59, 15, 16, 52, 18, 19, 20, 36, 54, 11, 12, 25, 21, 100, 16, 29, 45,
  422. 31, 32, 48, 34, 16, 36, 14, 53, 39, 35, 1, 42, 43, 44, 45, 93, 47, 45, 49, 10,
  423. 51, 52, 1, 54, 52, 11, 12, 13, 59, 15, 16, 50, 18, 19, 20, 26, 27, 45, 50, 25,
  424. 12, 13, 33, 29, 16, 31, 32, 26, 34, 14, 36, 1, 17, 39, 33, 1, 42, 43, 44, 45,
  425. 10, 47, 22, 49, 10, 51, 52, 1, 54, 17, 11, 12, 13, 59, 15, 16, 10, 18, 19, 20,
  426. 26, 45, 54, 48, 25, 36, 46, 33, 29, 53, 31, 32, 26, 34, 93, 36, 95, 48, 39, 33,
  427. 60, 42, 43, 44, 45, 81, 47, 35, 49, 37, 51, 52, 1, 54, 17, 11, 12, 13, 59, 15,
  428. 16, 10, 18, 19, 20, 11, 12, 11, 12, 25, 16, 101, 16, 29, 14, 31, 32, 26, 34, 93,
  429. 36, 95, 22, 39, 33, 48, 42, 43, 44, 45, 81, 47, 76, 49, 41, 51, 52, 35, 54, 37,
  430. 11, 12, 13, 59, 15, 16, 50, 18, 19, 20, 11, 12, 11, 12, 25, 16, 100, 16, 29, 1,
  431. 31, 32, 28, 34, 2, 36, 96, 97, 39, 72, 36, 42, 43, 44, 45, 17, 47, 76, 49, 82,
  432. 51, 52, 48, 54, 16, 11, 12, 13, 59, 15, 16, 50, 18, 19, 20, 75, 35, 100, 37, 25,
  433. 80, 100, 101, 29, 13, 31, 32, 65, 34, 37, 36, 13, 70, 39, 16, 91, 42, 43, 44,
  434. 45, 16, 47, 98, 49, 17, 51, 52, 36, 54, 36, 11, 12, 13, 59, 15, 16, 12, 18, 19,
  435. 20, 1, 48, 4, 76, 25, 54, 16, 105, 29, 10, 31, 32, 45, 34, 53, 36, 17, 36, 39,
  436. 52, 36, 42, 43, 44, 45, 26, 47, 100, 49, 16, 51, 65, 33, 54, 80, 36, 70, 71, 59,
  437. 73, 74, 75, 64, 65, 66, 67, 80, 48, 70, 83, 84, 76, 98, 91, 88, 89, 90, 72, 92,
  438. 1, 98, 16, 3, 4, 5, 6, 7, 82, 102, 103, 11, 12, 72, 72, 15, 100, 76, 18, 19, 20,
  439. 1, 16, 82, 82, 25, 100, 28, 65, 29, 51, 31, 32, 70, 71, 26, 73, 74, 75, 72, 72,
  440. 100, 33, 80, 72, 10, 83, 84, 76, 82, 82, 88, 89, 90, 82, 92, 16, 85, 86, 87, 45,
  441. 65, 99, 95, 72, 51, 70, 71, 76, 73, 74, 75, 100, 53, 82, 93, 80, 72, 13, 83, 84,
  442. 76, 93, 72, 88, 89, 90, 82, 92, 1, 2, 65, 100, 82, 72, 99, 70, 71, 53, 73, 74,
  443. 75, 16, 77, 82, 100, 80, 16, 10, 83, 84, 36, 14, 34, 88, 89, 90, 65, 92, 54, 72,
  444. 13, 70, 71, 26, 73, 74, 75, 72, 77, 82, 33, 80, 23, 36, 83, 84, 82, 82, 72, 88,
  445. 89, 90, 95, 92, 4, 48, 96, 97, 82, 81, 95, 11, 12, 13, 93, 15, 80, 80, 18, 19,
  446. 20, 95, 80, 80, 95, 25, 80, 94, 65, 29, 79, 31, 32, 70, 71, 8, 73, 74, 75, 68,
  447. 106, 93, 93, 80, 106, 93, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 106, 106,
  448. 106, 59, 60, 65, 99, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 38, 39, 40,
  449. 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 4, 55, 56, 57, 58,
  450. 106, 106, 11, 12, 13, 103, 15, 106, 106, 18, 19, 20, 106, 106, 106, 106, 25,
  451. 106, 106, 65, 29, 106, 31, 32, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80,
  452. 106, 106, 83, 84, 106, 11, 12, 88, 89, 90, 16, 92, 106, 65, 106, 59, 60, 106,
  453. 70, 71, 26, 73, 74, 75, 106, 106, 106, 33, 80, 72, 106, 83, 84, 76, 106, 106,
  454. 88, 89, 90, 82, 92, 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106,
  455. 106, 80, 100, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106,
  456. 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84,
  457. 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74,
  458. 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, 106, 88, 89, 90, 82, 92,
  459. 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 100, 106,
  460. 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106,
  461. 73, 74, 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, 106, 88, 89, 90,
  462. 82, 92, 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80,
  463. 100, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106,
  464. 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, 106,
  465. 88, 89, 90, 82, 92, 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106,
  466. 106, 80, 100, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106,
  467. 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, 76,
  468. 106, 106, 88, 89, 90, 82, 92, 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106,
  469. 106, 106, 106, 80, 100, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65,
  470. 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106,
  471. 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106,
  472. 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90,
  473. 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106,
  474. 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106,
  475. 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106,
  476. 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75,
  477. 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92,
  478. 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106,
  479. 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71,
  480. 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88,
  481. 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106,
  482. 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106,
  483. 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84,
  484. 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74,
  485. 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106,
  486. 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80,
  487. 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106,
  488. 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106,
  489. 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106,
  490. 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65,
  491. 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106,
  492. 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106,
  493. 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90,
  494. 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106,
  495. 80, 106, 106, 83, 84, 106, 1, 2, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106,
  496. 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 1, 106, 106,
  497. 88, 89, 90, 106, 92, 36, 10, 38, 39, 40, 106, 62, 63, 64, 65, 66, 67, 48, 106,
  498. 70, 106, 106, 26, 106, 55, 56, 57, 58, 106, 33, 106, 106, 106, 106, 38, 39, 40,
  499. 1, 106, 106, 65, 106, 106, 106, 106, 70, 71, 1, 73, 106, 75, 55, 56, 57, 58, 80,
  500. 106, 106, 106, 84, 24, 106, 26, 88, 89, 90, 106, 92, 106, 33, 106, 106, 26, 106,
  501. 38, 39, 40, 106, 106, 33, 106, 106, 106, 106, 38, 39, 40, 106, 106, 106, 65, 55,
  502. 56, 57, 58, 70, 71, 1, 73, 106, 75, 55, 56, 57, 58, 80, 10, 106, 106, 84, 106,
  503. 106, 106, 88, 89, 90, 65, 92, 2, 106, 106, 70, 71, 106, 73, 106, 75, 11, 12,
  504. 106, 14, 80, 16, 17, 38, 39, 40, 106, 106, 88, 89, 90, 106, 92, 106, 106, 106,
  505. 106, 106, 106, 65, 55, 56, 57, 58, 70, 71, 106, 73, 106, 75, 45, 106, 106, 48,
  506. 80, 50, 106, 52, 2, 106, 106, 106, 88, 89, 90, 106, 92, 11, 12, 2, 14, 106, 16,
  507. 17, 106, 106, 106, 106, 11, 12, 106, 106, 2, 16, 17, 11, 12, 106, 106, 106, 16,
  508. 11, 12, 106, 106, 106, 16, 17, 106, 106, 26, 45, 28, 106, 48, 106, 50, 33, 52,
  509. 106, 106, 106, 45, 106, 106, 48, 65, 50, 106, 52, 53, 70, 71, 106, 73, 45, 75,
  510. 106, 48, 106, 50, 80, 52, 106, 106, 106, 106, 106, 106, 88, 89, 90, 106, 92, 65,
  511. 1, 2, 106, 106, 70, 71, 106, 73, 106, 75, 106, 71, 106, 106, 80, 75, 106, 106,
  512. 106, 106, 80, 106, 88, 89, 90, 65, 92, 1, 106, 89, 70, 71, 92, 73, 106, 75, 65,
  513. 38, 39, 40, 80, 70, 71, 106, 73, 106, 75, 106, 88, 89, 90, 80, 92, 27, 55, 56,
  514. 57, 58, 1, 88, 89, 90, 1, 92, 38, 39, 40, 1, 106, 106, 106, 10, 106, 106, 106,
  515. 106, 106, 106, 21, 106, 106, 55, 56, 57, 58, 106, 106, 106, 106, 106, 106, 106,
  516. 106, 106, 106, 38, 39, 40, 1, 38, 39, 40, 1, 106, 38, 39, 40, 10, 1, 106, 106,
  517. 10, 55, 56, 57, 58, 55, 56, 57, 58, 106, 55, 56, 57, 58, 106, 60, 106, 106, 106,
  518. 106, 106, 106, 106, 106, 38, 39, 40, 106, 38, 39, 40, 1, 106, 37, 38, 39, 40,
  519. 106, 106, 106, 106, 55, 56, 57, 58, 55, 56, 57, 58, 2, 106, 55, 56, 57, 58, 106,
  520. 106, 106, 11, 12, 106, 106, 106, 16, 17, 1, 106, 37, 38, 39, 40, 1, 106, 106,
  521. 106, 106, 106, 11, 12, 11, 12, 106, 16, 17, 16, 55, 56, 57, 58, 106, 106, 106,
  522. 45, 106, 26, 48, 28, 50, 106, 52, 106, 33, 38, 39, 40, 106, 106, 106, 38, 39,
  523. 40, 45, 106, 106, 48, 106, 50, 53, 52, 55, 56, 57, 58, 106, 106, 55, 56, 57, 58,
  524. 106, 10, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 21, 106, 23, 106,
  525. 106, 26, 106, 106, 106, 106, 106, 106, 33, 106, 35, 106, 37, 106, 106, 106, 106,
  526. 106, 106, 106, 45,);
  527. const YY_SHIFT_USE_DFLT = - 12;
  528. const YY_SHIFT_MAX = 238;
  529. static public $yy_shift_ofst = array(519, 349, 79, 349, 304, 79, 79, 304, 34, - 11, 34, 79, 394, 79, 79, 124, 79,
  530. 169, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 259, 79, 79, 79, 79, 79, 79, 169,
  531. 79, 214, 214, 439, 439, 439, 439, 439, 439, 1617, 1577, 1627, 1627, 1627, 1627,
  532. 1627, 519, 1944, 1978, 2012, 1903, 1938, 1677, 1836, 1934, 1863, 1898, 1894,
  533. 2018, 2018, 2018, 2018, 2018, 2018, 2018, 2018, 2018, 2018, 2018, 2018, 695,
  534. 695, 6, 660, 459, 311, 103, 221, 411, 745, 1766, 2016, 783, 783, 411, 221, 411,
  535. 427, 221, 607, 74, 119, 209, 266, 254, 228, 181, 55, 314, 3, 314, 235, 418,
  536. 418, 584, 250, 528, 378, 297, 54, 518, 54, 539, 2, 2, 2, 2, 2, 2, 2, 2, 2, 252,
  537. 252, - 12, 1697, 1759, 1748, 1995, 1772, 2014, 93, 361, 359, 134, 54, 137, 54,
  538. 137, 54, 54, 54, 54, 54, 54, 54, 54, 80, 54, 54, 137, 137, 54, 54, 54, 54, 54,
  539. 172, 54, 172, 444, 172, 320, 80, 172, 172, 172, 54, 172, 172, 687, 594, 2, 252,
  540. 2, 382, 382, 2, 2, 252, 252, 2, - 12, - 12, - 12, - 12, - 12, 1550, 2068, 617,
  541. 316, 154, 29, 240, 354, 98, 174, 236, 192, 272, 413, 249, 322, 381, 188, 36,
  542. - 9, 598, 554, 424, 533, 525, 441, 498, 505, 473, 458, 450, 421, 559, 610, 594,
  543. 627, 605, 564, 534, 392, 388, 629, 117, 58, 156, 313,);
  544. const YY_REDUCE_USE_DFLT = - 71;
  545. const YY_REDUCE_MAX = 192;
  546. static public $yy_reduce_ofst = array(1530, 426, 482, 656, 545, 515, 623, 571, 1017, 961, 1101, 1325, 933, 793, 849,
  547. 821, 1465, 1157, 1129, 1185, 1073, 989, 1045, 1241, 1381, 1437, 1493, 1409,
  548. 1269, 1297, 1353, 1213, 708, 737, 905, 877, 765, 1606, 1556, 1632, 1808, 1797,
  549. 1771, 1666, 1743, 886, 491, 830, 491, 746, 942, 998, 438, - 70, - 70, - 70,
  550. - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70,
  551. - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70, - 70, 1777, - 3, 524, 460,
  552. - 36, 511, - 51, 362, 487, 575, 567, 586, 37, 445, 97, 65, 317, 321, 541, 541,
  553. 276, 276, 276, 414, 246, 290, 246, - 8, 201, 290, 344, 422, 340, 276, 461,
  554. 387, 290, 486, 276, 530, 276, 276, 276, 276, 276, 435, 276, 276, 276, 276,
  555. 570, 290, 276, 122, 122, 122, 122, 122, 122, 602, 589, 122, 122, 574, 606,
  556. 574, 603, 574, 574, 574, 574, 574, 574, 574, 574, 581, 574, 574, 597, 596,
  557. 574, 574, 574, 574, 574, 593, 574, 593, 609, 593, 611, 608, 593, 593, 593,
  558. 574, 593, 593, 631, 612, 96, 67, 96, 230, 230, 96, 96, 67, 67, 96, 269, 224,
  559. 588, 508, 501,);
  560. static public $yyExpectedTokens = array(array(3, 4, 5, 6, 7, 11, 12, 15, 18, 19, 20, 25, 29, 31, 32,),
  561. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  562. 44, 45, 47, 49, 51, 52, 54, 59,),
  563. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  564. 44, 45, 47, 49, 51, 52, 54, 59,),
  565. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  566. 44, 45, 47, 49, 51, 52, 54, 59,),
  567. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  568. 44, 45, 47, 49, 51, 52, 54, 59,),
  569. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  570. 44, 45, 47, 49, 51, 52, 54, 59,),
  571. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  572. 44, 45, 47, 49, 51, 52, 54, 59,),
  573. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  574. 44, 45, 47, 49, 51, 52, 54, 59,),
  575. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 30, 31, 32, 34, 36, 39, 42,
  576. 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  577. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  578. 44, 45, 47, 49, 51, 52, 53, 54, 59,),
  579. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 30, 31, 32, 34, 36, 39, 42,
  580. 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  581. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  582. 44, 45, 47, 49, 51, 52, 54, 59,),
  583. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  584. 44, 45, 47, 49, 51, 52, 54, 59,),
  585. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  586. 44, 45, 47, 49, 51, 52, 54, 59,),
  587. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  588. 44, 45, 47, 49, 51, 52, 54, 59,),
  589. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  590. 44, 45, 47, 49, 51, 52, 54, 59,),
  591. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  592. 44, 45, 47, 49, 51, 52, 54, 59,),
  593. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  594. 44, 45, 47, 49, 51, 52, 54, 59,),
  595. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  596. 44, 45, 47, 49, 51, 52, 54, 59,),
  597. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  598. 44, 45, 47, 49, 51, 52, 54, 59,),
  599. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  600. 44, 45, 47, 49, 51, 52, 54, 59,),
  601. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  602. 44, 45, 47, 49, 51, 52, 54, 59,),
  603. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  604. 44, 45, 47, 49, 51, 52, 54, 59,),
  605. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  606. 44, 45, 47, 49, 51, 52, 54, 59,),
  607. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  608. 44, 45, 47, 49, 51, 52, 54, 59,),
  609. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  610. 44, 45, 47, 49, 51, 52, 54, 59,),
  611. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  612. 44, 45, 47, 49, 51, 52, 54, 59,),
  613. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  614. 44, 45, 47, 49, 51, 52, 54, 59,),
  615. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  616. 44, 45, 47, 49, 51, 52, 54, 59,),
  617. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  618. 44, 45, 47, 49, 51, 52, 54, 59,),
  619. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  620. 44, 45, 47, 49, 51, 52, 54, 59,),
  621. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  622. 44, 45, 47, 49, 51, 52, 54, 59,),
  623. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  624. 44, 45, 47, 49, 51, 52, 54, 59,),
  625. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  626. 44, 45, 47, 49, 51, 52, 54, 59,),
  627. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  628. 44, 45, 47, 49, 51, 52, 54, 59,),
  629. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  630. 44, 45, 47, 49, 51, 52, 54, 59,),
  631. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  632. 44, 45, 47, 49, 51, 52, 54, 59,),
  633. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  634. 44, 45, 47, 49, 51, 52, 54, 59,),
  635. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  636. 44, 45, 47, 49, 51, 52, 54, 59,),
  637. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  638. 44, 45, 47, 49, 51, 54, 59,),
  639. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  640. 44, 45, 47, 49, 51, 54, 59,),
  641. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  642. 44, 45, 47, 49, 51, 54, 59,),
  643. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  644. 44, 45, 47, 49, 51, 54, 59,),
  645. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  646. 44, 45, 47, 49, 51, 54, 59,),
  647. array(11, 12, 13, 15, 16, 18, 19, 20, 25, 29, 31, 32, 34, 36, 39, 42, 43,
  648. 44, 45, 47, 49, 51, 54, 59,),
  649. array(1, 24, 26, 33, 38, 39, 40, 55, 56, 57, 58,),
  650. array(1, 10, 26, 33, 38, 39, 40, 55, 56, 57, 58,),
  651. array(1, 26, 33, 38, 39, 40, 55, 56, 57, 58,),
  652. array(1, 26, 33, 38, 39, 40, 55, 56, 57, 58,),
  653. array(1, 26, 33, 38, 39, 40, 55, 56, 57, 58,),
  654. array(1, 26, 33, 38, 39, 40, 55, 56, 57, 58,),
  655. array(1, 26, 33, 38, 39, 40, 55, 56, 57, 58,),
  656. array(3, 4, 5, 6, 7, 11, 12, 15, 18, 19, 20, 25, 29, 31, 32,),
  657. array(1, 37, 38, 39, 40, 55, 56, 57, 58,),
  658. array(1, 37, 38, 39, 40, 55, 56, 57, 58,),
  659. array(1, 38, 39, 40, 53, 55, 56, 57, 58,),
  660. array(1, 38, 39, 40, 55, 56, 57, 58, 60,),
  661. array(1, 10, 38, 39, 40, 55, 56, 57, 58,),
  662. array(1, 10, 38, 39, 40, 55, 56, 57, 58,),
  663. array(1, 2, 38, 39, 40, 55, 56, 57, 58,),
  664. array(1, 10, 38, 39, 40, 55, 56, 57, 58,),
  665. array(1, 27, 38, 39, 40, 55, 56, 57, 58,),
  666. array(1, 10, 38, 39, 40, 55, 56, 57, 58,),
  667. array(1, 21, 38, 39, 40, 55, 56, 57, 58,),
  668. array(1, 38, 39, 40, 55, 56, 57, 58,),
  669. array(1, 38, 39, 40, 55, 56, 57, 58,),
  670. array(1, 38, 39, 40, 55, 56, 57, 58,),
  671. array(1, 38, 39, 40, 55, 56, 57, 58,),
  672. array(1, 38, 39, 40, 55, 56, 57, 58,),
  673. array(1, 38, 39, 40, 55, 56, 57, 58,),
  674. array(1, 38, 39, 40, 55, 56, 57, 58,),
  675. array(1, 38, 39, 40, 55, 56, 57, 58,),
  676. array(1, 38, 39, 40, 55, 56, 57, 58,),
  677. array(1, 38, 39, 40, 55, 56, 57, 58,),
  678. array(1, 38, 39, 40, 55, 56, 57, 58,),
  679. array(1, 38, 39, 40, 55, 56, 57, 58,), array(38, 39, 40, 55, 56, 57, 58,),
  680. array(38, 39, 40, 55, 56, 57, 58,), array(13, 16, 49, 51, 54,),
  681. array(4, 11, 12, 13, 15, 18, 19, 20, 25, 29, 31, 32, 59, 60,),
  682. array(1, 10, 17, 26, 33, 36, 48,), array(1, 10, 26, 33,),
  683. array(13, 16, 51, 54,), array(1, 26, 33,), array(13, 36, 54,),
  684. array(4, 11, 12, 13, 15, 18, 19, 20, 25, 29, 31, 32, 59, 60,),
  685. array(11, 12, 16, 26, 28, 33,), array(11, 12, 16, 26, 28, 33,),
  686. array(11, 12, 16, 26, 33,), array(11, 12, 16, 26, 33,), array(13, 36, 54,),
  687. array(1, 26, 33,), array(13, 36, 54,), array(17, 45, 52,),
  688. array(1, 26, 33,), array(1, 2,), array(10, 22, 26, 33, 46,),
  689. array(10, 22, 26, 33, 46,), array(1, 10, 26, 27, 33,),
  690. array(1, 10, 26, 33,), array(1, 10, 26, 33,), array(12, 13, 16, 54,),
  691. array(11, 12, 16, 50,), array(14, 17, 48,), array(11, 12, 16,),
  692. array(7, 8, 9,), array(11, 12, 16,), array(14, 17, 48,), array(13, 16,),
  693. array(13, 16,), array(13, 54,), array(1, 10,), array(26, 33,),
  694. array(1, 17,), array(17, 48,), array(26, 33,), array(1, 28,),
  695. array(26, 33,), array(1, 53,), array(1,), array(1,), array(1,), array(1,),
  696. array(1,), array(1,), array(1,), array(1,), array(1,), array(17,),
  697. array(17,), array(), array(2, 11, 12, 14, 16, 17, 45, 48, 50, 52,),
  698. array(2, 11, 12, 16, 17, 45, 48, 50, 52, 53,),
  699. array(2, 11, 12, 14, 16, 17, 45, 48, 50, 52,),
  700. array(2, 11, 12, 16, 17, 45, 48, 50, 52,),
  701. array(2, 11, 12, 16, 17, 45, 48, 50, 52,),
  702. array(11, 12, 16, 17, 45, 48, 50, 52,), array(12, 13, 16, 34, 54,),
  703. array(11, 12, 16, 50,), array(11, 12, 16,), array(14, 45, 52,),
  704. array(26, 33,), array(13, 54,), array(26, 33,), array(13, 54,),
  705. array(26, 33,), array(26, 33,), array(26, 33,), array(26, 33,),
  706. array(26, 33,), array(26, 33,), array(26, 33,), array(26, 33,),
  707. array(45, 52,), array(26, 33,), array(26, 33,), array(13, 54,),
  708. array(13, 54,), array(26, 33,), array(26, 33,), array(26, 33,),
  709. array(26, 33,), array(26, 33,), array(45, 52,), array(26, 33,),
  710. array(45, 52,), array(12, 36,), array(45, 52,), array(14, 22,),
  711. array(45, 52,), array(45, 52,), array(45, 52,), array(45, 52,),
  712. array(26, 33,), array(45, 52,), array(45, 52,), array(8,), array(36,),
  713. array(1,), array(17,), array(1,), array(2,), array(2,), array(1,),
  714. array(1,), array(17,), array(17,), array(1,), array(), array(), array(),
  715. array(), array(), array(1, 2, 36, 38, 39, 40, 48, 55, 56, 57, 58,),
  716. array(10, 21, 23, 26, 33, 35, 37, 45,), array(10, 14, 26, 33, 36, 48,),
  717. array(11, 12, 16, 50,), array(36, 45, 48, 53,), array(22, 46, 53,),
  718. array(22, 46, 60,), array(28, 36, 48,), array(36, 48,), array(21, 35,),
  719. array(45, 53,), array(14, 45,), array(35, 37,), array(36, 48,),
  720. array(36, 48,), array(35, 37,), array(35, 37,), array(16, 50,),
  721. array(35, 53,), array(22, 46,), array(34,), array(10,), array(16,),
  722. array(51,), array(16,), array(36,), array(51,), array(16,), array(16,),
  723. array(4,), array(16,), array(53,), array(16,), array(16,), array(36,),
  724. array(13,), array(16,), array(53,), array(45,), array(37,), array(16,),
  725. array(23,), array(34,), array(16,), array(14,), array(41,), array(),
  726. array(), array(), array(), array(), array(), array(), array(), array(),
  727. array(), array(), array(), array(), array(), array(), array(), array(),
  728. array(), array(), array(), array(), array(), array(), array(), array(),
  729. array(), array(), array(), array(), array(), array(), array(), array(),
  730. array(), array(), array(), array(), array(), array(), array(), array(),
  731. array(), array(), array(), array(), array(), array(), array(), array(),
  732. array(), array(), array(), array(), array(), array(), array(), array(),
  733. array(), array(), array(), array(), array(), array(), array(), array(),
  734. array(), array(), array(), array(), array(), array(), array(), array(),
  735. array(), array(), array(), array(), array(), array(), array(), array(),
  736. array(), array(), array(), array(), array(), array(), array(), array(),
  737. array(), array(), array(), array(), array(), array(), array(),);
  738. static public $yy_default = array(338, 515, 494, 530, 530, 494, 494, 530, 530, 530, 530, 530, 530, 530, 530, 530,
  739. 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530,
  740. 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 396, 530, 396,
  741. 359, 372, 362, 396, 335, 530, 530, 530, 530, 530, 530, 530, 530, 401, 530, 530,
  742. 377, 517, 492, 493, 418, 516, 403, 401, 518, 398, 407, 408, 423, 422, 530, 530,
  743. 434, 410, 530, 396, 530, 530, 396, 396, 396, 396, 530, 396, 530, 506, 396, 386,
  744. 424, 424, 410, 410, 410, 530, 459, 449, 459, 530, 459, 449, 530, 530, 530, 410,
  745. 396, 390, 449, 396, 410, 374, 410, 417, 426, 425, 410, 392, 421, 414, 413, 427,
  746. 503, 449, 501, 448, 448, 448, 448, 448, 448, 530, 461, 459, 475, 382, 530, 381,
  747. 530, 369, 366, 364, 368, 360, 363, 358, 370, 452, 384, 356, 530, 530, 385, 375,
  748. 380, 379, 373, 455, 376, 484, 459, 487, 530, 454, 453, 486, 485, 383, 456, 457,
  749. 350, 459, 443, 481, 387, 495, 496, 416, 391, 507, 504, 393, 500, 500, 500, 459,
  750. 459, 434, 430, 434, 460, 434, 424, 424, 434, 434, 530, 430, 430, 530, 530, 444,
  751. 530, 530, 530, 530, 424, 530, 530, 530, 530, 530, 505, 530, 530, 530, 342, 530,
  752. 439, 530, 530, 475, 530, 530, 530, 430, 530, 530, 404, 432, 530, 530, 436, 439,
  753. 480, 502, 440, 490, 465, 365, 436, 475, 394, 405, 343, 344, 345, 346, 347, 409,
  754. 429, 411, 337, 336, 339, 340, 341, 431, 348, 397, 353, 464, 354, 463, 435, 378,
  755. 351, 349, 489, 352, 433, 462, 419, 477, 415, 446, 478, 479, 438, 388, 519, 511,
  756. 510, 521, 520, 412, 482, 437, 498, 497, 491, 476, 483, 451, 526, 527, 428, 499,
  757. 450, 389, 524, 523, 488, 458, 420, 442, 445, 371, 471, 468, 474, 467, 466, 469,
  758. 472, 470, 522, 509, 529, 528, 525, 508, 473, 513, 447, 514, 395, 512, 441,);
  759. const YYNOCODE = 107;
  760. const YYSTACKDEPTH = 500;
  761. const YYNSTATE = 335;
  762. const YYNRULE = 195;
  763. const YYERRORSYMBOL = 61;
  764. const YYERRSYMDT = 'yy0';
  765. const YYFALLBACK = 0;
  766. public static $yyFallback = array();
  767. public function Trace($TraceFILE, $zTracePrompt)
  768. {
  769. if (!$TraceFILE) {
  770. $zTracePrompt = 0;
  771. } elseif (!$zTracePrompt) {
  772. $TraceFILE = 0;
  773. }
  774. $this->yyTraceFILE = $TraceFILE;
  775. $this->yyTracePrompt = $zTracePrompt;
  776. }
  777. public function PrintTrace()
  778. {
  779. $this->yyTraceFILE = fopen('php://output', 'w');
  780. $this->yyTracePrompt = '<br>';
  781. }
  782. public $yyTraceFILE;
  783. public $yyTracePrompt;
  784. public $yyidx; /* Index of top element in stack */
  785. public $yyerrcnt; /* Shifts left before out of the error */
  786. public $yystack = array(); /* The parser's stack */
  787. public $yyTokenName = array('$', 'VERT', 'COLON', 'PHP', 'TEXT', 'STRIPON', 'STRIPOFF', 'LITERALSTART',
  788. 'LITERALEND', 'LITERAL', 'RDEL', 'SIMPELOUTPUT', 'LDEL', 'DOLLARID', 'EQUAL',
  789. 'SIMPLETAG', 'ID', 'PTR', 'LDELMAKENOCACHE', 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC',
  790. 'TO', 'STEP', 'LDELFOREACH', 'SPACE', 'AS', 'APTR', 'LDELSETFILTER',
  791. 'SMARTYBLOCKCHILDPARENT', 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', 'OPENP',
  792. 'CLOSEP', 'MATH', 'UNIMATH', 'ISIN', 'QMARK', 'NOT', 'TYPECAST', 'HEX', 'DOT',
  793. 'INSTANCEOF', 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', 'OPENB',
  794. 'CLOSEB', 'DOLLAR', 'LOGOP', 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'QUOTE', 'BACKTICK',
  795. 'error', 'start', 'template', 'template_element', 'smartytag', 'literal',
  796. 'text_content', 'literal_elements', 'literal_element', 'tag', 'variable', 'attributes',
  797. 'value', 'expr', 'varindexed', 'modifierlist', 'statement', 'statements', 'foraction',
  798. 'varvar', 'modparameters', 'attribute', 'ternary', 'array', 'tlop', 'lop', 'scond',
  799. 'function', 'ns1', 'doublequoted_with_quotes', 'static_class_access', 'object',
  800. 'arrayindex', 'indexdef', 'varvarele', 'objectchain', 'objectelement', 'method',
  801. 'params', 'modifier', 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted',
  802. 'doublequotedcontent',);
  803. public static $yyRuleName = array('start ::= template', 'template ::= template_element',
  804. 'template ::= template template_element', 'template ::=',
  805. 'template_element ::= smartytag', 'template_element ::= literal',
  806. 'template_element ::= PHP', 'template_element ::= text_content',
  807. 'text_content ::= TEXT', 'text_content ::= text_content TEXT',
  808. 'template_element ::= STRIPON', 'template_element ::= STRIPOFF',
  809. 'literal ::= LITERALSTART LITERALEND',
  810. 'literal ::= LITERALSTART literal_elements LITERALEND',
  811. 'literal_elements ::= literal_elements literal_element', 'literal_elements ::=',
  812. 'literal_element ::= literal', 'literal_element ::= LITERAL',
  813. 'smartytag ::= tag RDEL', 'smartytag ::= SIMPELOUTPUT', 'tag ::= LDEL variable',
  814. 'tag ::= LDEL variable attributes', 'tag ::= LDEL value',
  815. 'tag ::= LDEL value attributes', 'tag ::= LDEL expr',
  816. 'tag ::= LDEL expr attributes', 'tag ::= LDEL DOLLARID EQUAL value',
  817. 'tag ::= LDEL DOLLARID EQUAL expr', 'tag ::= LDEL DOLLARID EQUAL expr attributes',
  818. 'tag ::= LDEL varindexed EQUAL expr attributes', 'smartytag ::= SIMPLETAG',
  819. 'tag ::= LDEL ID attributes', 'tag ::= LDEL ID',
  820. 'tag ::= LDEL ID modifierlist attributes', 'tag ::= LDEL ID PTR ID attributes',
  821. 'tag ::= LDEL ID PTR ID modifierlist attributes',
  822. 'tag ::= LDELMAKENOCACHE DOLLARID', 'tag ::= LDELIF expr',
  823. 'tag ::= LDELIF expr attributes', 'tag ::= LDELIF statement',
  824. 'tag ::= LDELIF statement attributes',
  825. 'tag ::= LDELFOR statements SEMICOLON expr SEMICOLON varindexed foraction attributes',
  826. 'foraction ::= EQUAL expr', 'foraction ::= INCDEC',
  827. 'tag ::= LDELFOR statement TO expr attributes',
  828. 'tag ::= LDELFOR statement TO expr STEP expr attributes',
  829. 'tag ::= LDELFOREACH attributes',
  830. 'tag ::= LDELFOREACH SPACE value AS varvar attributes',
  831. 'tag ::= LDELFOREACH SPACE value AS varvar APTR varvar attributes',
  832. 'tag ::= LDELFOREACH SPACE expr AS varvar attributes',
  833. 'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes',
  834. 'tag ::= LDELSETFILTER ID modparameters',
  835. 'tag ::= LDELSETFILTER ID modparameters modifierlist',
  836. 'tag ::= LDEL SMARTYBLOCKCHILDPARENT', 'smartytag ::= CLOSETAG',
  837. 'tag ::= LDELSLASH ID', 'tag ::= LDELSLASH ID modifierlist',
  838. 'tag ::= LDELSLASH ID PTR ID', 'tag ::= LDELSLASH ID PTR ID modifierlist',
  839. 'attributes ::= attributes attribute', 'attributes ::= attribute',
  840. 'attributes ::=', 'attribute ::= SPACE ID EQUAL ID', 'attribute ::= ATTR expr',
  841. 'attribute ::= ATTR value', 'attribute ::= SPACE ID', 'attribute ::= SPACE expr',
  842. 'attribute ::= SPACE value', 'attribute ::= SPACE INTEGER EQUAL expr',
  843. 'statements ::= statement', 'statements ::= statements COMMA statement',
  844. 'statement ::= DOLLARID EQUAL INTEGER', 'statement ::= DOLLARID EQUAL expr',
  845. 'statement ::= varindexed EQUAL expr', 'statement ::= OPENP statement CLOSEP',
  846. 'expr ::= value', 'expr ::= ternary', 'expr ::= DOLLARID COLON ID',
  847. 'expr ::= expr MATH value', 'expr ::= expr UNIMATH value', 'expr ::= array',
  848. 'expr ::= expr modifierlist', 'expr ::= expr tlop value',
  849. 'expr ::= expr lop expr', 'expr ::= expr scond', 'expr ::= expr ISIN array',
  850. 'expr ::= expr ISIN value',
  851. 'ternary ::= OPENP expr CLOSEP QMARK DOLLARID COLON expr',
  852. 'ternary ::= OPENP expr CLOSEP QMARK expr COLON expr', 'value ::= variable',
  853. 'value ::= UNIMATH value', 'value ::= NOT value', 'value ::= TYPECAST value',
  854. 'value ::= variable INCDEC', 'value ::= HEX', 'value ::= INTEGER',
  855. 'value ::= INTEGER DOT INTEGER', 'value ::= INTEGER DOT', 'value ::= DOT INTEGER',
  856. 'value ::= ID', 'value ::= function', 'value ::= OPENP expr CLOSEP',
  857. 'value ::= variable INSTANCEOF ns1', 'value ::= variable INSTANCEOF variable',
  858. 'value ::= SINGLEQUOTESTRING', 'value ::= doublequoted_with_quotes',
  859. 'value ::= varindexed DOUBLECOLON static_class_access', 'value ::= smartytag',
  860. 'value ::= value modifierlist', 'value ::= NAMESPACE',
  861. 'value ::= ns1 DOUBLECOLON static_class_access', 'ns1 ::= ID',
  862. 'ns1 ::= NAMESPACE', 'variable ::= DOLLARID', 'variable ::= varindexed',
  863. 'variable ::= varvar AT ID', 'variable ::= object', 'variable ::= HATCH ID HATCH',
  864. 'variable ::= HATCH ID HATCH arrayindex', 'variable ::= HATCH variable HATCH',
  865. 'variable ::= HATCH variable HATCH arrayindex',
  866. 'varindexed ::= DOLLARID arrayindex', 'varindexed ::= varvar arrayindex',
  867. 'arrayindex ::= arrayindex indexdef', 'arrayindex ::=',
  868. 'indexdef ::= DOT DOLLARID', 'indexdef ::= DOT varvar',
  869. 'indexdef ::= DOT varvar AT ID', 'indexdef ::= DOT ID',
  870. 'indexdef ::= DOT INTEGER', 'indexdef ::= DOT LDEL expr RDEL',
  871. 'indexdef ::= OPENB ID CLOSEB', 'indexdef ::= OPENB ID DOT ID CLOSEB',
  872. 'indexdef ::= OPENB SINGLEQUOTESTRING CLOSEB',
  873. 'indexdef ::= OPENB INTEGER CLOSEB', 'indexdef ::= OPENB DOLLARID CLOSEB',
  874. 'indexdef ::= OPENB variable CLOSEB', 'indexdef ::= OPENB value CLOSEB',
  875. 'indexdef ::= OPENB expr CLOSEB', 'indexdef ::= OPENB CLOSEB',
  876. 'varvar ::= DOLLARID', 'varvar ::= DOLLAR', 'varvar ::= varvar varvarele',
  877. 'varvarele ::= ID', 'varvarele ::= SIMPELOUTPUT', 'varvarele ::= LDEL expr RDEL',
  878. 'object ::= varindexed objectchain', 'objectchain ::= objectelement',
  879. 'objectchain ::= objectchain objectelement',
  880. 'objectelement ::= PTR ID arrayindex', 'objectelement ::= PTR varvar arrayindex',
  881. 'objectelement ::= PTR LDEL expr RDEL arrayindex',
  882. 'objectelement ::= PTR ID LDEL expr RDEL arrayindex',
  883. 'objectelement ::= PTR method', 'function ::= ns1 OPENP params CLOSEP',
  884. 'method ::= ID OPENP params CLOSEP', 'method ::= DOLLARID OPENP params CLOSEP',
  885. 'params ::= params COMMA expr', 'params ::= expr', 'params ::=',
  886. 'modifierlist ::= modifierlist modifier modparameters',
  887. 'modifierlist ::= modifier modparameters', 'modifier ::= VERT AT ID',
  888. 'modifier ::= VERT ID', 'modparameters ::= modparameters modparameter',
  889. 'modparameters ::=', 'modparameter ::= COLON value',
  890. 'modparameter ::= COLON array', 'static_class_access ::= method',
  891. 'static_class_access ::= method objectchain', 'static_class_access ::= ID',
  892. 'static_class_access ::= DOLLARID arrayindex',
  893. 'static_class_access ::= DOLLARID arrayindex objectchain', 'lop ::= LOGOP',
  894. 'lop ::= SLOGOP', 'tlop ::= TLOGOP', 'scond ::= SINGLECOND',
  895. 'array ::= OPENB arrayelements CLOSEB', 'arrayelements ::= arrayelement',
  896. 'arrayelements ::= arrayelements COMMA arrayelement', 'arrayelements ::=',
  897. 'arrayelement ::= value APTR expr', 'arrayelement ::= ID APTR expr',
  898. 'arrayelement ::= expr', 'doublequoted_with_quotes ::= QUOTE QUOTE',
  899. 'doublequoted_with_quotes ::= QUOTE doublequoted QUOTE',
  900. 'doublequoted ::= doublequoted doublequotedcontent',
  901. 'doublequoted ::= doublequotedcontent',
  902. 'doublequotedcontent ::= BACKTICK variable BACKTICK',
  903. 'doublequotedcontent ::= BACKTICK expr BACKTICK',
  904. 'doublequotedcontent ::= DOLLARID', 'doublequotedcontent ::= LDEL variable RDEL',
  905. 'doublequotedcontent ::= LDEL expr RDEL', 'doublequotedcontent ::= smartytag',
  906. 'doublequotedcontent ::= TEXT',);
  907. public function tokenName($tokenType)
  908. {
  909. if ($tokenType === 0) {
  910. return 'End of Input';
  911. }
  912. if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
  913. return $this->yyTokenName[ $tokenType ];
  914. } else {
  915. return "Unknown";
  916. }
  917. }
  918. public static function yy_destructor($yymajor, $yypminor)
  919. {
  920. switch ($yymajor) {
  921. default:
  922. break; /* If no destructor action specified: do nothing */
  923. }
  924. }
  925. public function yy_pop_parser_stack()
  926. {
  927. if (empty($this->yystack)) {
  928. return;
  929. }
  930. $yytos = array_pop($this->yystack);
  931. if ($this->yyTraceFILE && $this->yyidx >= 0) {
  932. fwrite($this->yyTraceFILE, $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] . "\n");
  933. }
  934. $yymajor = $yytos->major;
  935. self::yy_destructor($yymajor, $yytos->minor);
  936. $this->yyidx --;
  937. return $yymajor;
  938. }
  939. public function __destruct()
  940. {
  941. while ($this->yystack !== Array()) {
  942. $this->yy_pop_parser_stack();
  943. }
  944. if (is_resource($this->yyTraceFILE)) {
  945. fclose($this->yyTraceFILE);
  946. }
  947. }
  948. public function yy_get_expected_tokens($token)
  949. {
  950. static $res3 = array();
  951. static $res4 = array();
  952. $state = $this->yystack[ $this->yyidx ]->stateno;
  953. $expected = self::$yyExpectedTokens[ $state ];
  954. if (isset($res3[ $state ][ $token ])) {
  955. if ($res3[ $state ][ $token ]) {
  956. return $expected;
  957. }
  958. } else {
  959. if ($res3[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) {
  960. return $expected;
  961. }
  962. }
  963. $stack = $this->yystack;
  964. $yyidx = $this->yyidx;
  965. do {
  966. $yyact = $this->yy_find_shift_action($token);
  967. if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
  968. // reduce action
  969. $done = 0;
  970. do {
  971. if ($done ++ == 100) {
  972. $this->yyidx = $yyidx;
  973. $this->yystack = $stack;
  974. // too much recursion prevents proper detection
  975. // so give up
  976. return array_unique($expected);
  977. }
  978. $yyruleno = $yyact - self::YYNSTATE;
  979. $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ];
  980. $nextstate = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno,
  981. self::$yyRuleInfo[ $yyruleno ][ 0 ]);
  982. if (isset(self::$yyExpectedTokens[ $nextstate ])) {
  983. $expected = array_merge($expected, self::$yyExpectedTokens[ $nextstate ]);
  984. if (isset($res4[ $nextstate ][ $token ])) {
  985. if ($res4[ $nextstate ][ $token ]) {
  986. $this->yyidx = $yyidx;
  987. $this->yystack = $stack;
  988. return array_unique($expected);
  989. }
  990. } else {
  991. if ($res4[ $nextstate ][ $token ] =
  992. in_array($token, self::$yyExpectedTokens[ $nextstate ], true)
  993. ) {
  994. $this->yyidx = $yyidx;
  995. $this->yystack = $stack;
  996. return array_unique($expected);
  997. }
  998. }
  999. }
  1000. if ($nextstate < self::YYNSTATE) {
  1001. // we need to shift a non-terminal
  1002. $this->yyidx ++;
  1003. $x = new TP_yyStackEntry;
  1004. $x->stateno = $nextstate;
  1005. $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ];
  1006. $this->yystack[ $this->yyidx ] = $x;
  1007. continue 2;
  1008. } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
  1009. $this->yyidx = $yyidx;
  1010. $this->yystack = $stack;
  1011. // the last token was just ignored, we can't accept
  1012. // by ignoring input, this is in essence ignoring a
  1013. // syntax error!
  1014. return array_unique($expected);
  1015. } elseif ($nextstate === self::YY_NO_ACTION) {
  1016. $this->yyidx = $yyidx;
  1017. $this->yystack = $stack;
  1018. // input accepted, but not shifted (I guess)
  1019. return $expected;
  1020. } else {
  1021. $yyact = $nextstate;
  1022. }
  1023. }
  1024. while (true);
  1025. }
  1026. break;
  1027. }
  1028. while (true);
  1029. $this->yyidx = $yyidx;
  1030. $this->yystack = $stack;
  1031. return array_unique($expected);
  1032. }
  1033. public function yy_is_expected_token($token)
  1034. {
  1035. static $res = array();
  1036. static $res2 = array();
  1037. if ($token === 0) {
  1038. return true; // 0 is not part of this
  1039. }
  1040. $state = $this->yystack[ $this->yyidx ]->stateno;
  1041. if (isset($res[ $state ][ $token ])) {
  1042. if ($res[ $state ][ $token ]) {
  1043. return true;
  1044. }
  1045. } else {
  1046. if ($res[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) {
  1047. return true;
  1048. }
  1049. }
  1050. $stack = $this->yystack;
  1051. $yyidx = $this->yyidx;
  1052. do {
  1053. $yyact = $this->yy_find_shift_action($token);
  1054. if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
  1055. // reduce action
  1056. $done = 0;
  1057. do {
  1058. if ($done ++ == 100) {
  1059. $this->yyidx = $yyidx;
  1060. $this->yystack = $stack;
  1061. // too much recursion prevents proper detection
  1062. // so give up
  1063. return true;
  1064. }
  1065. $yyruleno = $yyact - self::YYNSTATE;
  1066. $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ];
  1067. $nextstate = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno,
  1068. self::$yyRuleInfo[ $yyruleno ][ 0 ]);
  1069. if (isset($res2[ $nextstate ][ $token ])) {
  1070. if ($res2[ $nextstate ][ $token ]) {
  1071. $this->yyidx = $yyidx;
  1072. $this->yystack = $stack;
  1073. return true;
  1074. }
  1075. } else {
  1076. if ($res2[ $nextstate ][ $token ] = (isset(self::$yyExpectedTokens[ $nextstate ]) &&
  1077. in_array($token, self::$yyExpectedTokens[ $nextstate ],
  1078. true))
  1079. ) {
  1080. $this->yyidx = $yyidx;
  1081. $this->yystack = $stack;
  1082. return true;
  1083. }
  1084. }
  1085. if ($nextstate < self::YYNSTATE) {
  1086. // we need to shift a non-terminal
  1087. $this->yyidx ++;
  1088. $x = new TP_yyStackEntry;
  1089. $x->stateno = $nextstate;
  1090. $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ];
  1091. $this->yystack[ $this->yyidx ] = $x;
  1092. continue 2;
  1093. } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
  1094. $this->yyidx = $yyidx;
  1095. $this->yystack = $stack;
  1096. if (!$token) {
  1097. // end of input: this is valid
  1098. return true;
  1099. }
  1100. // the last token was just ignored, we can't accept
  1101. // by ignoring input, this is in essence ignoring a
  1102. // syntax error!
  1103. return false;
  1104. } elseif ($nextstate === self::YY_NO_ACTION) {
  1105. $this->yyidx = $yyidx;
  1106. $this->yystack = $stack;
  1107. // input accepted, but not shifted (I guess)
  1108. return true;
  1109. } else {
  1110. $yyact = $nextstate;
  1111. }
  1112. }
  1113. while (true);
  1114. }
  1115. break;
  1116. }
  1117. while (true);
  1118. $this->yyidx = $yyidx;
  1119. $this->yystack = $stack;
  1120. return true;
  1121. }
  1122. public function yy_find_shift_action($iLookAhead)
  1123. {
  1124. $stateno = $this->yystack[ $this->yyidx ]->stateno;
  1125. /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
  1126. if (!isset(self::$yy_shift_ofst[ $stateno ])) {
  1127. // no shift actions
  1128. return self::$yy_default[ $stateno ];
  1129. }
  1130. $i = self::$yy_shift_ofst[ $stateno ];
  1131. if ($i === self::YY_SHIFT_USE_DFLT) {
  1132. return self::$yy_default[ $stateno ];
  1133. }
  1134. if ($iLookAhead == self::YYNOCODE) {
  1135. return self::YY_NO_ACTION;
  1136. }
  1137. $i += $iLookAhead;
  1138. if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[ $i ] != $iLookAhead) {
  1139. if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) &&
  1140. ($iFallback = self::$yyFallback[ $iLookAhead ]) != 0
  1141. ) {
  1142. if ($this->yyTraceFILE) {
  1143. fwrite($this->yyTraceFILE,
  1144. $this->yyTracePrompt . "FALLBACK " . $this->yyTokenName[ $iLookAhead ] . " => " .
  1145. $this->yyTokenName[ $iFallback ] . "\n");
  1146. }
  1147. return $this->yy_find_shift_action($iFallback);
  1148. }
  1149. return self::$yy_default[ $stateno ];
  1150. } else {
  1151. return self::$yy_action[ $i ];
  1152. }
  1153. }
  1154. public function yy_find_reduce_action($stateno, $iLookAhead)
  1155. {
  1156. /* $stateno = $this->yystack[$this->yyidx]->stateno; */
  1157. if (!isset(self::$yy_reduce_ofst[ $stateno ])) {
  1158. return self::$yy_default[ $stateno ];
  1159. }
  1160. $i = self::$yy_reduce_ofst[ $stateno ];
  1161. if ($i == self::YY_REDUCE_USE_DFLT) {
  1162. return self::$yy_default[ $stateno ];
  1163. }
  1164. if ($iLookAhead == self::YYNOCODE) {
  1165. return self::YY_NO_ACTION;
  1166. }
  1167. $i += $iLookAhead;
  1168. if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[ $i ] != $iLookAhead) {
  1169. return self::$yy_default[ $stateno ];
  1170. } else {
  1171. return self::$yy_action[ $i ];
  1172. }
  1173. }
  1174. public function yy_shift($yyNewState, $yyMajor, $yypMinor)
  1175. {
  1176. $this->yyidx ++;
  1177. if ($this->yyidx >= self::YYSTACKDEPTH) {
  1178. $this->yyidx --;
  1179. if ($this->yyTraceFILE) {
  1180. fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt);
  1181. }
  1182. while ($this->yyidx >= 0) {
  1183. $this->yy_pop_parser_stack();
  1184. }
  1185. #line 207 "../smarty/lexer/smarty_internal_templateparser.y"
  1186. $this->internalError = true;
  1187. $this->compiler->trigger_template_error("Stack overflow in template parser");
  1188. return;
  1189. }
  1190. $yytos = new TP_yyStackEntry;
  1191. $yytos->stateno = $yyNewState;
  1192. $yytos->major = $yyMajor;
  1193. $yytos->minor = $yypMinor;
  1194. $this->yystack[] = $yytos;
  1195. if ($this->yyTraceFILE && $this->yyidx > 0) {
  1196. fprintf($this->yyTraceFILE, "%sShift %d\n", $this->yyTracePrompt, $yyNewState);
  1197. fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt);
  1198. for ($i = 1; $i <= $this->yyidx; $i ++) {
  1199. fprintf($this->yyTraceFILE, " %s", $this->yyTokenName[ $this->yystack[ $i ]->major ]);
  1200. }
  1201. fwrite($this->yyTraceFILE, "\n");
  1202. }
  1203. }
  1204. public static $yyRuleInfo = array(array(0 => 62, 1 => 1), array(0 => 63, 1 => 1), array(0 => 63, 1 => 2),
  1205. array(0 => 63, 1 => 0), array(0 => 64, 1 => 1), array(0 => 64, 1 => 1),
  1206. array(0 => 64, 1 => 1), array(0 => 64, 1 => 1), array(0 => 67, 1 => 1),
  1207. array(0 => 67, 1 => 2), array(0 => 64, 1 => 1), array(0 => 64, 1 => 1),
  1208. array(0 => 66, 1 => 2), array(0 => 66, 1 => 3), array(0 => 68, 1 => 2),
  1209. array(0 => 68, 1 => 0), array(0 => 69, 1 => 1), array(0 => 69, 1 => 1),
  1210. array(0 => 65, 1 => 2), array(0 => 65, 1 => 1), array(0 => 70, 1 => 2),
  1211. array(0 => 70, 1 => 3), array(0 => 70, 1 => 2), array(0 => 70, 1 => 3),
  1212. array(0 => 70, 1 => 2), array(0 => 70, 1 => 3), array(0 => 70, 1 => 4),
  1213. array(0 => 70, 1 => 4), array(0 => 70, 1 => 5), array(0 => 70, 1 => 5),
  1214. array(0 => 65, 1 => 1), array(0 => 70, 1 => 3), array(0 => 70, 1 => 2),
  1215. array(0 => 70, 1 => 4), array(0 => 70, 1 => 5), array(0 => 70, 1 => 6),
  1216. array(0 => 70, 1 => 2), array(0 => 70, 1 => 2), array(0 => 70, 1 => 3),
  1217. array(0 => 70, 1 => 2), array(0 => 70, 1 => 3), array(0 => 70, 1 => 8),
  1218. array(0 => 79, 1 => 2), array(0 => 79, 1 => 1), array(0 => 70, 1 => 5),
  1219. array(0 => 70, 1 => 7), array(0 => 70, 1 => 2), array(0 => 70, 1 => 6),
  1220. array(0 => 70, 1 => 8), array(0 => 70, 1 => 6), array(0 => 70, 1 => 8),
  1221. array(0 => 70, 1 => 3), array(0 => 70, 1 => 4), array(0 => 70, 1 => 2),
  1222. array(0 => 65, 1 => 1), array(0 => 70, 1 => 2), array(0 => 70, 1 => 3),
  1223. array(0 => 70, 1 => 4), array(0 => 70, 1 => 5), array(0 => 72, 1 => 2),
  1224. array(0 => 72, 1 => 1), array(0 => 72, 1 => 0), array(0 => 82, 1 => 4),
  1225. array(0 => 82, 1 => 2), array(0 => 82, 1 => 2), array(0 => 82, 1 => 2),
  1226. array(0 => 82, 1 => 2), array(0 => 82, 1 => 2), array(0 => 82, 1 => 4),
  1227. array(0 => 78, 1 => 1), array(0 => 78, 1 => 3), array(0 => 77, 1 => 3),
  1228. array(0 => 77, 1 => 3), array(0 => 77, 1 => 3), array(0 => 77, 1 => 3),
  1229. array(0 => 74, 1 => 1), array(0 => 74, 1 => 1), array(0 => 74, 1 => 3),
  1230. array(0 => 74, 1 => 3), array(0 => 74, 1 => 3), array(0 => 74, 1 => 1),
  1231. array(0 => 74, 1 => 2), array(0 => 74, 1 => 3), array(0 => 74, 1 => 3),
  1232. array(0 => 74, 1 => 2), array(0 => 74, 1 => 3), array(0 => 74, 1 => 3),
  1233. array(0 => 83, 1 => 7), array(0 => 83, 1 => 7), array(0 => 73, 1 => 1),
  1234. array(0 => 73, 1 => 2), array(0 => 73, 1 => 2), array(0 => 73, 1 => 2),
  1235. array(0 => 73, 1 => 2), array(0 => 73, 1 => 1), array(0 => 73, 1 => 1),
  1236. array(0 => 73, 1 => 3), array(0 => 73, 1 => 2), array(0 => 73, 1 => 2),
  1237. array(0 => 73, 1 => 1), array(0 => 73, 1 => 1), array(0 => 73, 1 => 3),
  1238. array(0 => 73, 1 => 3), array(0 => 73, 1 => 3), array(0 => 73, 1 => 1),
  1239. array(0 => 73, 1 => 1), array(0 => 73, 1 => 3), array(0 => 73, 1 => 1),
  1240. array(0 => 73, 1 => 2), array(0 => 73, 1 => 1), array(0 => 73, 1 => 3),
  1241. array(0 => 89, 1 => 1), array(0 => 89, 1 => 1), array(0 => 71, 1 => 1),
  1242. array(0 => 71, 1 => 1), array(0 => 71, 1 => 3), array(0 => 71, 1 => 1),
  1243. array(0 => 71, 1 => 3), array(0 => 71, 1 => 4), array(0 => 71, 1 => 3),
  1244. array(0 => 71, 1 => 4), array(0 => 75, 1 => 2), array(0 => 75, 1 => 2),
  1245. array(0 => 93, 1 => 2), array(0 => 93, 1 => 0), array(0 => 94, 1 => 2),
  1246. array(0 => 94, 1 => 2), array(0 => 94, 1 => 4), array(0 => 94, 1 => 2),
  1247. array(0 => 94, 1 => 2), array(0 => 94, 1 => 4), array(0 => 94, 1 => 3),
  1248. array(0 => 94, 1 => 5), array(0 => 94, 1 => 3), array(0 => 94, 1 => 3),
  1249. array(0 => 94, 1 => 3), array(0 => 94, 1 => 3), array(0 => 94, 1 => 3),
  1250. array(0 => 94, 1 => 3), array(0 => 94, 1 => 2), array(0 => 80, 1 => 1),
  1251. array(0 => 80, 1 => 1), array(0 => 80, 1 => 2), array(0 => 95, 1 => 1),
  1252. array(0 => 95, 1 => 1), array(0 => 95, 1 => 3), array(0 => 92, 1 => 2),
  1253. array(0 => 96, 1 => 1), array(0 => 96, 1 => 2), array(0 => 97, 1 => 3),
  1254. array(0 => 97, 1 => 3), array(0 => 97, 1 => 5), array(0 => 97, 1 => 6),
  1255. array(0 => 97, 1 => 2), array(0 => 88, 1 => 4), array(0 => 98, 1 => 4),
  1256. array(0 => 98, 1 => 4), array(0 => 99, 1 => 3), array(0 => 99, 1 => 1),
  1257. array(0 => 99, 1 => 0), array(0 => 76, 1 => 3), array(0 => 76, 1 => 2),
  1258. array(0 => 100, 1 => 3), array(0 => 100, 1 => 2), array(0 => 81, 1 => 2),
  1259. array(0 => 81, 1 => 0), array(0 => 101, 1 => 2), array(0 => 101, 1 => 2),
  1260. array(0 => 91, 1 => 1), array(0 => 91, 1 => 2), array(0 => 91, 1 => 1),
  1261. array(0 => 91, 1 => 2), array(0 => 91, 1 => 3), array(0 => 86, 1 => 1),
  1262. array(0 => 86, 1 => 1), array(0 => 85, 1 => 1), array(0 => 87, 1 => 1),
  1263. array(0 => 84, 1 => 3), array(0 => 102, 1 => 1), array(0 => 102, 1 => 3),
  1264. array(0 => 102, 1 => 0), array(0 => 103, 1 => 3), array(0 => 103, 1 => 3),
  1265. array(0 => 103, 1 => 1), array(0 => 90, 1 => 2), array(0 => 90, 1 => 3),
  1266. array(0 => 104, 1 => 2), array(0 => 104, 1 => 1), array(0 => 105, 1 => 3),
  1267. array(0 => 105, 1 => 3), array(0 => 105, 1 => 1), array(0 => 105, 1 => 3),
  1268. array(0 => 105, 1 => 3), array(0 => 105, 1 => 1), array(0 => 105, 1 => 1),);
  1269. public static $yyReduceMap = array(0 => 0, 1 => 1, 2 => 2, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 16 => 8, 17 => 8,
  1270. 43 => 8, 66 => 8, 67 => 8, 75 => 8, 76 => 8, 80 => 8, 89 => 8, 94 => 8, 95 => 8,
  1271. 100 => 8, 104 => 8, 105 => 8, 109 => 8, 111 => 8, 116 => 8, 178 => 8, 183 => 8,
  1272. 9 => 9, 10 => 10, 11 => 11, 12 => 12, 15 => 12, 13 => 13, 74 => 13, 14 => 14,
  1273. 90 => 14, 92 => 14, 93 => 14, 123 => 14, 18 => 18, 19 => 19, 20 => 20, 22 => 20,
  1274. 24 => 20, 21 => 21, 23 => 21, 25 => 21, 26 => 26, 27 => 26, 28 => 28, 29 => 29,
  1275. 30 => 30, 31 => 31, 32 => 32, 33 => 33, 34 => 34, 35 => 35, 36 => 36, 37 => 37,
  1276. 38 => 38, 40 => 38, 39 => 39, 41 => 41, 42 => 42, 44 => 44, 45 => 45, 46 => 46,
  1277. 47 => 47, 49 => 47, 48 => 48, 50 => 48, 51 => 51, 52 => 52, 53 => 53, 54 => 54,
  1278. 55 => 55, 56 => 56, 57 => 57, 58 => 58, 59 => 59, 60 => 60, 69 => 60, 158 => 60,
  1279. 162 => 60, 166 => 60, 167 => 60, 61 => 61, 159 => 61, 165 => 61, 62 => 62,
  1280. 63 => 63, 64 => 63, 65 => 65, 143 => 65, 68 => 68, 70 => 70, 71 => 71, 72 => 71,
  1281. 73 => 73, 77 => 77, 78 => 78, 79 => 78, 81 => 81, 108 => 81, 82 => 82, 83 => 83,
  1282. 84 => 84, 85 => 85, 86 => 86, 87 => 87, 88 => 88, 91 => 91, 96 => 96, 97 => 97,
  1283. 98 => 98, 99 => 99, 101 => 101, 102 => 102, 103 => 102, 106 => 106, 107 => 107,
  1284. 110 => 110, 112 => 112, 113 => 113, 114 => 114, 115 => 115, 117 => 117,
  1285. 118 => 118, 119 => 119, 120 => 120, 121 => 121, 122 => 122, 124 => 124,
  1286. 180 => 124, 125 => 125, 126 => 126, 127 => 127, 128 => 128, 129 => 129,
  1287. 130 => 130, 138 => 130, 131 => 131, 132 => 132, 133 => 133, 134 => 133,
  1288. 136 => 133, 137 => 133, 135 => 135, 139 => 139, 140 => 140, 141 => 141,
  1289. 184 => 141, 142 => 142, 144 => 144, 145 => 145, 146 => 146, 147 => 147,
  1290. 148 => 148, 149 => 149, 150 => 150, 151 => 151, 152 => 152, 153 => 153,
  1291. 154 => 154, 155 => 155, 156 => 156, 157 => 157, 160 => 160, 161 => 161,
  1292. 163 => 163, 164 => 164, 168 => 168, 169 => 169, 170 => 170, 171 => 171,
  1293. 172 => 172, 173 => 173, 174 => 174, 175 => 175, 176 => 176, 177 => 177,
  1294. 179 => 179, 181 => 181, 182 => 182, 185 => 185, 186 => 186, 187 => 187,
  1295. 188 => 188, 189 => 188, 191 => 188, 190 => 190, 192 => 192, 193 => 193,
  1296. 194 => 194,);
  1297. #line 218 "../smarty/lexer/smarty_internal_templateparser.y"
  1298. function yy_r0()
  1299. {
  1300. $this->root_buffer->prepend_array($this, $this->template_prefix);
  1301. $this->root_buffer->append_array($this, $this->template_postfix);
  1302. $this->_retvalue = $this->root_buffer->to_smarty_php($this);
  1303. }
  1304. #line 228 "../smarty/lexer/smarty_internal_templateparser.y"
  1305. function yy_r1()
  1306. {
  1307. if ($this->yystack[ $this->yyidx + 0 ]->minor != null) {
  1308. $this->current_buffer->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  1309. }
  1310. }
  1311. #line 235 "../smarty/lexer/smarty_internal_templateparser.y"
  1312. function yy_r2()
  1313. {
  1314. if ($this->yystack[ $this->yyidx + 0 ]->minor != null) {
  1315. // because of possible code injection
  1316. $this->current_buffer->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  1317. }
  1318. }
  1319. #line 249 "../smarty/lexer/smarty_internal_templateparser.y"
  1320. function yy_r4()
  1321. {
  1322. if ($this->compiler->has_code) {
  1323. $this->_retvalue = $this->mergePrefixCode($this->yystack[ $this->yyidx + 0 ]->minor);
  1324. } else {
  1325. $this->_retvalue = null;
  1326. }
  1327. $this->compiler->has_variable_string = false;
  1328. $this->block_nesting_level = count($this->compiler->_tag_stack);
  1329. }
  1330. #line 260 "../smarty/lexer/smarty_internal_templateparser.y"
  1331. function yy_r5()
  1332. {
  1333. $this->_retvalue = new Smarty_Internal_ParseTree_Text($this->yystack[ $this->yyidx + 0 ]->minor);
  1334. }
  1335. #line 264 "../smarty/lexer/smarty_internal_templateparser.y"
  1336. function yy_r6()
  1337. {
  1338. $code = $this->compiler->compileTag('private_php',
  1339. array(array('code' => $this->yystack[ $this->yyidx + 0 ]->minor),
  1340. array('type' => $this->lex->phpType)), array());
  1341. if ($this->compiler->has_code && !empty($code)) {
  1342. $tmp = '';
  1343. foreach ($this->compiler->prefix_code as $code) {
  1344. $tmp .= $code;
  1345. }
  1346. $this->compiler->prefix_code = array();
  1347. $this->_retvalue =
  1348. new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp . $code, true));
  1349. } else {
  1350. $this->_retvalue = null;
  1351. }
  1352. }
  1353. #line 275 "../smarty/lexer/smarty_internal_templateparser.y"
  1354. function yy_r7()
  1355. {
  1356. $this->_retvalue = $this->compiler->processText($this->yystack[ $this->yyidx + 0 ]->minor);
  1357. }
  1358. #line 279 "../smarty/lexer/smarty_internal_templateparser.y"
  1359. function yy_r8()
  1360. {
  1361. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  1362. }
  1363. #line 283 "../smarty/lexer/smarty_internal_templateparser.y"
  1364. function yy_r9()
  1365. {
  1366. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  1367. }
  1368. #line 288 "../smarty/lexer/smarty_internal_templateparser.y"
  1369. function yy_r10()
  1370. {
  1371. $this->strip = true;
  1372. }
  1373. #line 292 "../smarty/lexer/smarty_internal_templateparser.y"
  1374. function yy_r11()
  1375. {
  1376. $this->strip = false;
  1377. }
  1378. #line 297 "../smarty/lexer/smarty_internal_templateparser.y"
  1379. function yy_r12()
  1380. {
  1381. $this->_retvalue = '';
  1382. }
  1383. #line 301 "../smarty/lexer/smarty_internal_templateparser.y"
  1384. function yy_r13()
  1385. {
  1386. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor;
  1387. }
  1388. #line 305 "../smarty/lexer/smarty_internal_templateparser.y"
  1389. function yy_r14()
  1390. {
  1391. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  1392. }
  1393. #line 321 "../smarty/lexer/smarty_internal_templateparser.y"
  1394. function yy_r18()
  1395. {
  1396. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor;
  1397. }
  1398. #line 327 "../smarty/lexer/smarty_internal_templateparser.y"
  1399. function yy_r19()
  1400. {
  1401. $var =
  1402. trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, - $this->lex->rdel_length),
  1403. ' $');
  1404. if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) {
  1405. $this->_retvalue = $this->compiler->compileTag('private_print_expression', array('nocache'),
  1406. array('value' => $this->compiler->compileVariable('\'' .
  1407. $match[ 1 ] .
  1408. '\'')));
  1409. } else {
  1410. $this->_retvalue = $this->compiler->compileTag('private_print_expression', array(),
  1411. array('value' => $this->compiler->compileVariable('\'' .
  1412. $var .
  1413. '\'')));
  1414. }
  1415. }
  1416. #line 337 "../smarty/lexer/smarty_internal_templateparser.y"
  1417. function yy_r20()
  1418. {
  1419. $this->_retvalue = $this->compiler->compileTag('private_print_expression', array(),
  1420. array('value' => $this->yystack[ $this->yyidx + 0 ]->minor));
  1421. }
  1422. #line 341 "../smarty/lexer/smarty_internal_templateparser.y"
  1423. function yy_r21()
  1424. {
  1425. $this->_retvalue =
  1426. $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor,
  1427. array('value' => $this->yystack[ $this->yyidx + - 1 ]->minor));
  1428. }
  1429. #line 364 "../smarty/lexer/smarty_internal_templateparser.y"
  1430. function yy_r26()
  1431. {
  1432. $this->_retvalue = $this->compiler->compileTag('assign', array(array('value' => $this->yystack[ $this->yyidx +
  1433. 0 ]->minor),
  1434. array('var' => '\'' .
  1435. substr($this->yystack[ $this->yyidx +
  1436. - 2 ]->minor,
  1437. 1) . '\'')));
  1438. }
  1439. #line 372 "../smarty/lexer/smarty_internal_templateparser.y"
  1440. function yy_r28()
  1441. {
  1442. $this->_retvalue = $this->compiler->compileTag('assign',
  1443. array_merge(array(array('value' => $this->yystack[ $this->yyidx +
  1444. - 1 ]->minor),
  1445. array('var' => '\'' .
  1446. substr($this->yystack[ $this->yyidx +
  1447. - 3 ]->minor,
  1448. 1) . '\'')),
  1449. $this->yystack[ $this->yyidx + 0 ]->minor));
  1450. }
  1451. #line 376 "../smarty/lexer/smarty_internal_templateparser.y"
  1452. function yy_r29()
  1453. {
  1454. $this->_retvalue = $this->compiler->compileTag('assign',
  1455. array_merge(array(array('value' => $this->yystack[ $this->yyidx +
  1456. - 1 ]->minor),
  1457. array('var' => $this->yystack[ $this->yyidx +
  1458. - 3 ]->minor[ 'var' ])),
  1459. $this->yystack[ $this->yyidx + 0 ]->minor),
  1460. array('smarty_internal_index' => $this->yystack[ $this->yyidx +
  1461. - 3 ]->minor[ 'smarty_internal_index' ]));
  1462. }
  1463. #line 381 "../smarty/lexer/smarty_internal_templateparser.y"
  1464. function yy_r30()
  1465. {
  1466. $tag =
  1467. trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, - $this->lex->rdel_length));
  1468. if ($tag == 'strip') {
  1469. $this->strip = true;
  1470. $this->_retvalue = null;;
  1471. } else {
  1472. if (defined($tag)) {
  1473. if ($this->security) {
  1474. $this->security->isTrustedConstant($tag, $this->compiler);
  1475. }
  1476. $this->_retvalue =
  1477. $this->compiler->compileTag('private_print_expression', array(), array('value' => $tag));
  1478. } else {
  1479. if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) {
  1480. $this->_retvalue = $this->compiler->compileTag($match[ 1 ], array("'nocache'"));
  1481. } else {
  1482. $this->_retvalue = $this->compiler->compileTag($tag, array());
  1483. }
  1484. }
  1485. }
  1486. }
  1487. #line 403 "../smarty/lexer/smarty_internal_templateparser.y"
  1488. function yy_r31()
  1489. {
  1490. if (defined($this->yystack[ $this->yyidx + - 1 ]->minor)) {
  1491. if ($this->security) {
  1492. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + - 1 ]->minor, $this->compiler);
  1493. }
  1494. $this->_retvalue =
  1495. $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor,
  1496. array('value' => $this->yystack[ $this->yyidx + - 1 ]->minor));
  1497. } else {
  1498. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + - 1 ]->minor,
  1499. $this->yystack[ $this->yyidx + 0 ]->minor);
  1500. }
  1501. }
  1502. #line 413 "../smarty/lexer/smarty_internal_templateparser.y"
  1503. function yy_r32()
  1504. {
  1505. if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
  1506. if ($this->security) {
  1507. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler);
  1508. }
  1509. $this->_retvalue = $this->compiler->compileTag('private_print_expression', array(),
  1510. array('value' => $this->yystack[ $this->yyidx + 0 ]->minor));
  1511. } else {
  1512. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor, array());
  1513. }
  1514. }
  1515. #line 426 "../smarty/lexer/smarty_internal_templateparser.y"
  1516. function yy_r33()
  1517. {
  1518. if (defined($this->yystack[ $this->yyidx + - 2 ]->minor)) {
  1519. if ($this->security) {
  1520. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + - 2 ]->minor, $this->compiler);
  1521. }
  1522. $this->_retvalue =
  1523. $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor,
  1524. array('value' => $this->yystack[ $this->yyidx + - 2 ]->minor,
  1525. 'modifierlist' => $this->yystack[ $this->yyidx + - 1 ]->minor));
  1526. } else {
  1527. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + - 2 ]->minor,
  1528. $this->yystack[ $this->yyidx + 0 ]->minor,
  1529. array('modifierlist' => $this->yystack[ $this->yyidx +
  1530. - 1 ]->minor));
  1531. }
  1532. }
  1533. #line 438 "../smarty/lexer/smarty_internal_templateparser.y"
  1534. function yy_r34()
  1535. {
  1536. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + - 3 ]->minor,
  1537. $this->yystack[ $this->yyidx + 0 ]->minor,
  1538. array('object_method' => $this->yystack[ $this->yyidx +
  1539. - 1 ]->minor));
  1540. }
  1541. #line 443 "../smarty/lexer/smarty_internal_templateparser.y"
  1542. function yy_r35()
  1543. {
  1544. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + - 4 ]->minor,
  1545. $this->yystack[ $this->yyidx + 0 ]->minor,
  1546. array('modifierlist' => $this->yystack[ $this->yyidx +
  1547. - 1 ]->minor,
  1548. 'object_method' => $this->yystack[ $this->yyidx +
  1549. - 2 ]->minor));
  1550. }
  1551. #line 448 "../smarty/lexer/smarty_internal_templateparser.y"
  1552. function yy_r36()
  1553. {
  1554. $this->_retvalue = $this->compiler->compileTag('make_nocache', array(array('var' => '\'' .
  1555. substr($this->yystack[ $this->yyidx +
  1556. 0 ]->minor,
  1557. 1) . '\'')));
  1558. }
  1559. #line 453 "../smarty/lexer/smarty_internal_templateparser.y"
  1560. function yy_r37()
  1561. {
  1562. $tag = trim(substr($this->yystack[ $this->yyidx + - 1 ]->minor, $this->lex->ldel_length));
  1563. $this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, array(),
  1564. array('if condition' => $this->yystack[ $this->yyidx +
  1565. 0 ]->minor));
  1566. }
  1567. #line 458 "../smarty/lexer/smarty_internal_templateparser.y"
  1568. function yy_r38()
  1569. {
  1570. $tag = trim(substr($this->yystack[ $this->yyidx + - 2 ]->minor, $this->lex->ldel_length));
  1571. $this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag,
  1572. $this->yystack[ $this->yyidx + 0 ]->minor,
  1573. array('if condition' => $this->yystack[ $this->yyidx +
  1574. - 1 ]->minor));
  1575. }
  1576. #line 463 "../smarty/lexer/smarty_internal_templateparser.y"
  1577. function yy_r39()
  1578. {
  1579. $tag = trim(substr($this->yystack[ $this->yyidx + - 1 ]->minor, $this->lex->ldel_length));
  1580. $this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, array(),
  1581. array('if condition' => $this->yystack[ $this->yyidx +
  1582. 0 ]->minor));
  1583. }
  1584. #line 474 "../smarty/lexer/smarty_internal_templateparser.y"
  1585. function yy_r41()
  1586. {
  1587. $this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  1588. array(array('start' => $this->yystack[ $this->yyidx +
  1589. - 6 ]->minor),
  1590. array('ifexp' => $this->yystack[ $this->yyidx +
  1591. - 4 ]->minor),
  1592. array('var' => $this->yystack[ $this->yyidx +
  1593. - 2 ]->minor),
  1594. array('step' => $this->yystack[ $this->yyidx +
  1595. - 1 ]->minor))),
  1596. 1);
  1597. }
  1598. #line 478 "../smarty/lexer/smarty_internal_templateparser.y"
  1599. function yy_r42()
  1600. {
  1601. $this->_retvalue = '=' . $this->yystack[ $this->yyidx + 0 ]->minor;
  1602. }
  1603. #line 486 "../smarty/lexer/smarty_internal_templateparser.y"
  1604. function yy_r44()
  1605. {
  1606. $this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  1607. array(array('start' => $this->yystack[ $this->yyidx +
  1608. - 3 ]->minor),
  1609. array('to' => $this->yystack[ $this->yyidx +
  1610. - 1 ]->minor))),
  1611. 0);
  1612. }
  1613. #line 490 "../smarty/lexer/smarty_internal_templateparser.y"
  1614. function yy_r45()
  1615. {
  1616. $this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  1617. array(array('start' => $this->yystack[ $this->yyidx +
  1618. - 5 ]->minor),
  1619. array('to' => $this->yystack[ $this->yyidx +
  1620. - 3 ]->minor),
  1621. array('step' => $this->yystack[ $this->yyidx +
  1622. - 1 ]->minor))),
  1623. 0);
  1624. }
  1625. #line 495 "../smarty/lexer/smarty_internal_templateparser.y"
  1626. function yy_r46()
  1627. {
  1628. $this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[ $this->yyidx + 0 ]->minor);
  1629. }
  1630. #line 500 "../smarty/lexer/smarty_internal_templateparser.y"
  1631. function yy_r47()
  1632. {
  1633. $this->_retvalue = $this->compiler->compileTag('foreach', array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  1634. array(array('from' => $this->yystack[ $this->yyidx +
  1635. - 3 ]->minor),
  1636. array('item' => $this->yystack[ $this->yyidx +
  1637. - 1 ]->minor))));
  1638. }
  1639. #line 504 "../smarty/lexer/smarty_internal_templateparser.y"
  1640. function yy_r48()
  1641. {
  1642. $this->_retvalue = $this->compiler->compileTag('foreach', array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  1643. array(array('from' => $this->yystack[ $this->yyidx +
  1644. - 5 ]->minor),
  1645. array('item' => $this->yystack[ $this->yyidx +
  1646. - 1 ]->minor),
  1647. array('key' => $this->yystack[ $this->yyidx +
  1648. - 3 ]->minor))));
  1649. }
  1650. #line 517 "../smarty/lexer/smarty_internal_templateparser.y"
  1651. function yy_r51()
  1652. {
  1653. $this->_retvalue = $this->compiler->compileTag('setfilter', array(),
  1654. array('modifier_list' => array(array_merge(array($this->yystack[ $this->yyidx +
  1655. - 1 ]->minor),
  1656. $this->yystack[ $this->yyidx +
  1657. 0 ]->minor))));
  1658. }
  1659. #line 521 "../smarty/lexer/smarty_internal_templateparser.y"
  1660. function yy_r52()
  1661. {
  1662. $this->_retvalue = $this->compiler->compileTag('setfilter', array(),
  1663. array('modifier_list' => array_merge(array(array_merge(array($this->yystack[ $this->yyidx +
  1664. - 2 ]->minor),
  1665. $this->yystack[ $this->yyidx +
  1666. - 1 ]->minor)),
  1667. $this->yystack[ $this->yyidx +
  1668. 0 ]->minor)));
  1669. }
  1670. #line 526 "../smarty/lexer/smarty_internal_templateparser.y"
  1671. function yy_r53()
  1672. {
  1673. $j = strrpos($this->yystack[ $this->yyidx + 0 ]->minor, '.');
  1674. if ($this->yystack[ $this->yyidx + 0 ]->minor[ $j + 1 ] == 'c') {
  1675. // {$smarty.block.child}
  1676. $this->_retvalue = $this->compiler->compileTag('block_child', array());;
  1677. } else {
  1678. // {$smarty.block.parent}
  1679. $this->_retvalue = $this->compiler->compileTag('block_parent', array());;
  1680. }
  1681. }
  1682. #line 539 "../smarty/lexer/smarty_internal_templateparser.y"
  1683. function yy_r54()
  1684. {
  1685. $tag =
  1686. trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, - $this->lex->rdel_length),
  1687. ' /');
  1688. if ($tag == 'strip') {
  1689. $this->strip = false;
  1690. $this->_retvalue = null;
  1691. } else {
  1692. $this->_retvalue = $this->compiler->compileTag($tag . 'close', array());
  1693. }
  1694. }
  1695. #line 548 "../smarty/lexer/smarty_internal_templateparser.y"
  1696. function yy_r55()
  1697. {
  1698. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor . 'close', array());
  1699. }
  1700. #line 552 "../smarty/lexer/smarty_internal_templateparser.y"
  1701. function yy_r56()
  1702. {
  1703. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + - 1 ]->minor . 'close', array(),
  1704. array('modifier_list' => $this->yystack[ $this->yyidx +
  1705. 0 ]->minor));
  1706. }
  1707. #line 557 "../smarty/lexer/smarty_internal_templateparser.y"
  1708. function yy_r57()
  1709. {
  1710. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + - 2 ]->minor . 'close', array(),
  1711. array('object_method' => $this->yystack[ $this->yyidx +
  1712. 0 ]->minor));
  1713. }
  1714. #line 561 "../smarty/lexer/smarty_internal_templateparser.y"
  1715. function yy_r58()
  1716. {
  1717. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + - 3 ]->minor . 'close', array(),
  1718. array('object_method' => $this->yystack[ $this->yyidx +
  1719. - 1 ]->minor,
  1720. 'modifier_list' => $this->yystack[ $this->yyidx +
  1721. 0 ]->minor));
  1722. }
  1723. #line 569 "../smarty/lexer/smarty_internal_templateparser.y"
  1724. function yy_r59()
  1725. {
  1726. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor;
  1727. $this->_retvalue[] = $this->yystack[ $this->yyidx + 0 ]->minor;
  1728. }
  1729. #line 575 "../smarty/lexer/smarty_internal_templateparser.y"
  1730. function yy_r60()
  1731. {
  1732. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor);
  1733. }
  1734. #line 580 "../smarty/lexer/smarty_internal_templateparser.y"
  1735. function yy_r61()
  1736. {
  1737. $this->_retvalue = array();
  1738. }
  1739. #line 585 "../smarty/lexer/smarty_internal_templateparser.y"
  1740. function yy_r62()
  1741. {
  1742. if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
  1743. if ($this->security) {
  1744. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler);
  1745. }
  1746. $this->_retvalue =
  1747. array($this->yystack[ $this->yyidx + - 2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor);
  1748. } else {
  1749. $this->_retvalue =
  1750. array($this->yystack[ $this->yyidx + - 2 ]->minor => '\'' . $this->yystack[ $this->yyidx + 0 ]->minor .
  1751. '\'');
  1752. }
  1753. }
  1754. #line 596 "../smarty/lexer/smarty_internal_templateparser.y"
  1755. function yy_r63()
  1756. {
  1757. $this->_retvalue =
  1758. array(trim($this->yystack[ $this->yyidx + - 1 ]->minor, " =\n\r\t") => $this->yystack[ $this->yyidx +
  1759. 0 ]->minor);
  1760. }
  1761. #line 604 "../smarty/lexer/smarty_internal_templateparser.y"
  1762. function yy_r65()
  1763. {
  1764. $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\'';
  1765. }
  1766. #line 616 "../smarty/lexer/smarty_internal_templateparser.y"
  1767. function yy_r68()
  1768. {
  1769. $this->_retvalue =
  1770. array($this->yystack[ $this->yyidx + - 2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor);
  1771. }
  1772. #line 629 "../smarty/lexer/smarty_internal_templateparser.y"
  1773. function yy_r70()
  1774. {
  1775. $this->yystack[ $this->yyidx + - 2 ]->minor[] = $this->yystack[ $this->yyidx + 0 ]->minor;
  1776. $this->_retvalue = $this->yystack[ $this->yyidx + - 2 ]->minor;
  1777. }
  1778. #line 634 "../smarty/lexer/smarty_internal_templateparser.y"
  1779. function yy_r71()
  1780. {
  1781. $this->_retvalue = array('var' => '\'' . substr($this->yystack[ $this->yyidx + - 2 ]->minor, 1) . '\'',
  1782. 'value' => $this->yystack[ $this->yyidx + 0 ]->minor);
  1783. }
  1784. #line 641 "../smarty/lexer/smarty_internal_templateparser.y"
  1785. function yy_r73()
  1786. {
  1787. $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + - 2 ]->minor,
  1788. 'value' => $this->yystack[ $this->yyidx + 0 ]->minor);
  1789. }
  1790. #line 665 "../smarty/lexer/smarty_internal_templateparser.y"
  1791. function yy_r77()
  1792. {
  1793. $this->_retvalue =
  1794. '$_smarty_tpl->getStreamVariable(\'' . substr($this->yystack[ $this->yyidx + - 2 ]->minor, 1) . '://' .
  1795. $this->yystack[ $this->yyidx + 0 ]->minor . '\')';
  1796. }
  1797. #line 670 "../smarty/lexer/smarty_internal_templateparser.y"
  1798. function yy_r78()
  1799. {
  1800. $this->_retvalue =
  1801. $this->yystack[ $this->yyidx + - 2 ]->minor . trim($this->yystack[ $this->yyidx + - 1 ]->minor) .
  1802. $this->yystack[ $this->yyidx + 0 ]->minor;
  1803. }
  1804. #line 684 "../smarty/lexer/smarty_internal_templateparser.y"
  1805. function yy_r81()
  1806. {
  1807. $this->_retvalue = $this->compiler->compileTag('private_modifier', array(),
  1808. array('value' => $this->yystack[ $this->yyidx + - 1 ]->minor,
  1809. 'modifierlist' => $this->yystack[ $this->yyidx +
  1810. 0 ]->minor));
  1811. }
  1812. #line 690 "../smarty/lexer/smarty_internal_templateparser.y"
  1813. function yy_r82()
  1814. {
  1815. $this->_retvalue =
  1816. $this->yystack[ $this->yyidx + - 1 ]->minor[ 'pre' ] . $this->yystack[ $this->yyidx + - 2 ]->minor .
  1817. $this->yystack[ $this->yyidx + - 1 ]->minor[ 'op' ] . $this->yystack[ $this->yyidx + 0 ]->minor . ')';
  1818. }
  1819. #line 694 "../smarty/lexer/smarty_internal_templateparser.y"
  1820. function yy_r83()
  1821. {
  1822. $this->_retvalue = $this->yystack[ $this->yyidx + - 2 ]->minor . $this->yystack[ $this->yyidx + - 1 ]->minor .
  1823. $this->yystack[ $this->yyidx + 0 ]->minor;
  1824. }
  1825. #line 698 "../smarty/lexer/smarty_internal_templateparser.y"
  1826. function yy_r84()
  1827. {
  1828. $this->_retvalue =
  1829. $this->yystack[ $this->yyidx + 0 ]->minor . $this->yystack[ $this->yyidx + - 1 ]->minor . ')';
  1830. }
  1831. #line 702 "../smarty/lexer/smarty_internal_templateparser.y"
  1832. function yy_r85()
  1833. {
  1834. $this->_retvalue = 'in_array(' . $this->yystack[ $this->yyidx + - 2 ]->minor . ',' .
  1835. $this->yystack[ $this->yyidx + 0 ]->minor . ')';
  1836. }
  1837. #line 706 "../smarty/lexer/smarty_internal_templateparser.y"
  1838. function yy_r86()
  1839. {
  1840. $this->_retvalue = 'in_array(' . $this->yystack[ $this->yyidx + - 2 ]->minor . ',(array)' .
  1841. $this->yystack[ $this->yyidx + 0 ]->minor . ')';
  1842. }
  1843. #line 714 "../smarty/lexer/smarty_internal_templateparser.y"
  1844. function yy_r87()
  1845. {
  1846. $this->_retvalue = $this->yystack[ $this->yyidx + - 5 ]->minor . ' ? ' . $this->compiler->compileVariable('\'' .
  1847. substr($this->yystack[ $this->yyidx +
  1848. - 2 ]->minor,
  1849. 1) .
  1850. '\'') .
  1851. ' : ' . $this->yystack[ $this->yyidx + 0 ]->minor;
  1852. }
  1853. #line 718 "../smarty/lexer/smarty_internal_templateparser.y"
  1854. function yy_r88()
  1855. {
  1856. $this->_retvalue =
  1857. $this->yystack[ $this->yyidx + - 5 ]->minor . ' ? ' . $this->yystack[ $this->yyidx + - 2 ]->minor . ' : ' .
  1858. $this->yystack[ $this->yyidx + 0 ]->minor;
  1859. }
  1860. #line 733 "../smarty/lexer/smarty_internal_templateparser.y"
  1861. function yy_r91()
  1862. {
  1863. $this->_retvalue = '!' . $this->yystack[ $this->yyidx + 0 ]->minor;
  1864. }
  1865. #line 754 "../smarty/lexer/smarty_internal_templateparser.y"
  1866. function yy_r96()
  1867. {
  1868. $this->_retvalue =
  1869. $this->yystack[ $this->yyidx + - 2 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
  1870. }
  1871. #line 758 "../smarty/lexer/smarty_internal_templateparser.y"
  1872. function yy_r97()
  1873. {
  1874. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor . '.';
  1875. }
  1876. #line 762 "../smarty/lexer/smarty_internal_templateparser.y"
  1877. function yy_r98()
  1878. {
  1879. $this->_retvalue = '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
  1880. }
  1881. #line 767 "../smarty/lexer/smarty_internal_templateparser.y"
  1882. function yy_r99()
  1883. {
  1884. if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
  1885. if ($this->security) {
  1886. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler);
  1887. }
  1888. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  1889. } else {
  1890. $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\'';
  1891. }
  1892. }
  1893. #line 784 "../smarty/lexer/smarty_internal_templateparser.y"
  1894. function yy_r101()
  1895. {
  1896. $this->_retvalue = "(" . $this->yystack[ $this->yyidx + - 1 ]->minor . ")";
  1897. }
  1898. #line 788 "../smarty/lexer/smarty_internal_templateparser.y"
  1899. function yy_r102()
  1900. {
  1901. $this->_retvalue = $this->yystack[ $this->yyidx + - 2 ]->minor . $this->yystack[ $this->yyidx + - 1 ]->minor .
  1902. $this->yystack[ $this->yyidx + 0 ]->minor;
  1903. }
  1904. #line 806 "../smarty/lexer/smarty_internal_templateparser.y"
  1905. function yy_r106()
  1906. {
  1907. $prefixVar = $this->compiler->getNewPrefixVariable();
  1908. if ($this->yystack[ $this->yyidx + - 2 ]->minor[ 'var' ] == '\'smarty\'') {
  1909. $this->compiler->appendPrefixCode("<?php $prefixVar" . ' = ' .
  1910. $this->compiler->compileTag('private_special_variable', array(),
  1911. $this->yystack[ $this->yyidx +
  1912. - 2 ]->minor[ 'smarty_internal_index' ]) .
  1913. ';?>');
  1914. } else {
  1915. $this->compiler->appendPrefixCode("<?php $prefixVar" . ' = ' .
  1916. $this->compiler->compileVariable($this->yystack[ $this->yyidx +
  1917. - 2 ]->minor[ 'var' ]) .
  1918. $this->yystack[ $this->yyidx + - 2 ]->minor[ 'smarty_internal_index' ] .
  1919. ';?>');
  1920. }
  1921. $this->_retvalue = $prefixVar . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
  1922. $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
  1923. }
  1924. #line 817 "../smarty/lexer/smarty_internal_templateparser.y"
  1925. function yy_r107()
  1926. {
  1927. $prefixVar = $this->compiler->getNewPrefixVariable();
  1928. $tmp = $this->compiler->appendCode('<?php ob_start();?>', $this->yystack[ $this->yyidx + 0 ]->minor);
  1929. $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "<?php $prefixVar" . '=ob_get_clean();?>'));
  1930. $this->_retvalue = $prefixVar;
  1931. }
  1932. #line 834 "../smarty/lexer/smarty_internal_templateparser.y"
  1933. function yy_r110()
  1934. {
  1935. if (!in_array(strtolower($this->yystack[ $this->yyidx + - 2 ]->minor), array('self', 'parent')) &&
  1936. (!$this->security ||
  1937. $this->security->isTrustedStaticClassAccess($this->yystack[ $this->yyidx + - 2 ]->minor,
  1938. $this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler))
  1939. ) {
  1940. if (isset($this->smarty->registered_classes[ $this->yystack[ $this->yyidx + - 2 ]->minor ])) {
  1941. $this->_retvalue =
  1942. $this->smarty->registered_classes[ $this->yystack[ $this->yyidx + - 2 ]->minor ] . '::' .
  1943. $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] . $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
  1944. } else {
  1945. $this->_retvalue = $this->yystack[ $this->yyidx + - 2 ]->minor . '::' .
  1946. $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
  1947. $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
  1948. }
  1949. } else {
  1950. $this->compiler->trigger_template_error("static class '" . $this->yystack[ $this->yyidx + - 2 ]->minor .
  1951. "' is undefined or not allowed by security setting");
  1952. }
  1953. }
  1954. #line 853 "../smarty/lexer/smarty_internal_templateparser.y"
  1955. function yy_r112()
  1956. {
  1957. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  1958. }
  1959. #line 864 "../smarty/lexer/smarty_internal_templateparser.y"
  1960. function yy_r113()
  1961. {
  1962. $this->_retvalue =
  1963. $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'');
  1964. }
  1965. #line 867 "../smarty/lexer/smarty_internal_templateparser.y"
  1966. function yy_r114()
  1967. {
  1968. if ($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ] == '\'smarty\'') {
  1969. $smarty_var = $this->compiler->compileTag('private_special_variable', array(),
  1970. $this->yystack[ $this->yyidx +
  1971. 0 ]->minor[ 'smarty_internal_index' ]);
  1972. $this->_retvalue = $smarty_var;
  1973. } else {
  1974. // used for array reset,next,prev,end,current
  1975. $this->last_variable = $this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ];
  1976. $this->last_index = $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ];
  1977. $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ]) .
  1978. $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ];
  1979. }
  1980. }
  1981. #line 880 "../smarty/lexer/smarty_internal_templateparser.y"
  1982. function yy_r115()
  1983. {
  1984. $this->_retvalue = '$_smarty_tpl->tpl_vars[' . $this->yystack[ $this->yyidx + - 2 ]->minor . ']->' .
  1985. $this->yystack[ $this->yyidx + 0 ]->minor;
  1986. }
  1987. #line 890 "../smarty/lexer/smarty_internal_templateparser.y"
  1988. function yy_r117()
  1989. {
  1990. $this->_retvalue =
  1991. $this->compiler->compileConfigVariable("'" . $this->yystack[ $this->yyidx + - 1 ]->minor . "'");
  1992. }
  1993. #line 894 "../smarty/lexer/smarty_internal_templateparser.y"
  1994. function yy_r118()
  1995. {
  1996. $this->_retvalue = '(is_array($tmp = ' .
  1997. $this->compiler->compileConfigVariable("'" . $this->yystack[ $this->yyidx + - 2 ]->minor .
  1998. "'") . ') ? $tmp' .
  1999. $this->yystack[ $this->yyidx + 0 ]->minor . ' :null)';
  2000. }
  2001. #line 898 "../smarty/lexer/smarty_internal_templateparser.y"
  2002. function yy_r119()
  2003. {
  2004. $this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + - 1 ]->minor);
  2005. }
  2006. #line 902 "../smarty/lexer/smarty_internal_templateparser.y"
  2007. function yy_r120()
  2008. {
  2009. $this->_retvalue =
  2010. '(is_array($tmp = ' . $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + - 2 ]->minor) .
  2011. ') ? $tmp' . $this->yystack[ $this->yyidx + 0 ]->minor . ' : null)';
  2012. }
  2013. #line 906 "../smarty/lexer/smarty_internal_templateparser.y"
  2014. function yy_r121()
  2015. {
  2016. $this->_retvalue = array('var' => '\'' . substr($this->yystack[ $this->yyidx + - 1 ]->minor, 1) . '\'',
  2017. 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor);
  2018. }
  2019. #line 909 "../smarty/lexer/smarty_internal_templateparser.y"
  2020. function yy_r122()
  2021. {
  2022. $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + - 1 ]->minor,
  2023. 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor);
  2024. }
  2025. #line 922 "../smarty/lexer/smarty_internal_templateparser.y"
  2026. function yy_r124()
  2027. {
  2028. return;
  2029. }
  2030. #line 928 "../smarty/lexer/smarty_internal_templateparser.y"
  2031. function yy_r125()
  2032. {
  2033. $this->_retvalue =
  2034. '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'') .
  2035. ']';
  2036. }
  2037. #line 931 "../smarty/lexer/smarty_internal_templateparser.y"
  2038. function yy_r126()
  2039. {
  2040. $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor) . ']';
  2041. }
  2042. #line 935 "../smarty/lexer/smarty_internal_templateparser.y"
  2043. function yy_r127()
  2044. {
  2045. $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + - 2 ]->minor) . '->' .
  2046. $this->yystack[ $this->yyidx + 0 ]->minor . ']';
  2047. }
  2048. #line 939 "../smarty/lexer/smarty_internal_templateparser.y"
  2049. function yy_r128()
  2050. {
  2051. $this->_retvalue = "['" . $this->yystack[ $this->yyidx + 0 ]->minor . "']";
  2052. }
  2053. #line 943 "../smarty/lexer/smarty_internal_templateparser.y"
  2054. function yy_r129()
  2055. {
  2056. $this->_retvalue = '[' . $this->yystack[ $this->yyidx + 0 ]->minor . ']';
  2057. }
  2058. #line 948 "../smarty/lexer/smarty_internal_templateparser.y"
  2059. function yy_r130()
  2060. {
  2061. $this->_retvalue = '[' . $this->yystack[ $this->yyidx + - 1 ]->minor . ']';
  2062. }
  2063. #line 953 "../smarty/lexer/smarty_internal_templateparser.y"
  2064. function yy_r131()
  2065. {
  2066. $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' .
  2067. $this->yystack[ $this->yyidx +
  2068. - 1 ]->minor .
  2069. '\'][\'index\']') .
  2070. ']';
  2071. }
  2072. #line 957 "../smarty/lexer/smarty_internal_templateparser.y"
  2073. function yy_r132()
  2074. {
  2075. $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' .
  2076. $this->yystack[ $this->yyidx +
  2077. - 3 ]->minor .
  2078. '\'][\'' .
  2079. $this->yystack[ $this->yyidx +
  2080. - 1 ]->minor .
  2081. '\']') . ']';
  2082. }
  2083. #line 960 "../smarty/lexer/smarty_internal_templateparser.y"
  2084. function yy_r133()
  2085. {
  2086. $this->_retvalue = '[' . $this->yystack[ $this->yyidx + - 1 ]->minor . ']';
  2087. }
  2088. #line 966 "../smarty/lexer/smarty_internal_templateparser.y"
  2089. function yy_r135()
  2090. {
  2091. $this->_retvalue = '[' . $this->compiler->compileVariable('\'' .
  2092. substr($this->yystack[ $this->yyidx + - 1 ]->minor,
  2093. 1) . '\'') . ']';;
  2094. }
  2095. #line 982 "../smarty/lexer/smarty_internal_templateparser.y"
  2096. function yy_r139()
  2097. {
  2098. $this->_retvalue = '[]';
  2099. }
  2100. #line 992 "../smarty/lexer/smarty_internal_templateparser.y"
  2101. function yy_r140()
  2102. {
  2103. $this->_retvalue = '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'';
  2104. }
  2105. #line 996 "../smarty/lexer/smarty_internal_templateparser.y"
  2106. function yy_r141()
  2107. {
  2108. $this->_retvalue = "''";
  2109. }
  2110. #line 1001 "../smarty/lexer/smarty_internal_templateparser.y"
  2111. function yy_r142()
  2112. {
  2113. $this->_retvalue =
  2114. $this->yystack[ $this->yyidx + - 1 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2115. }
  2116. #line 1009 "../smarty/lexer/smarty_internal_templateparser.y"
  2117. function yy_r144()
  2118. {
  2119. $var =
  2120. trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, - $this->lex->rdel_length),
  2121. ' $');
  2122. $this->_retvalue = $this->compiler->compileVariable('\'' . $var . '\'');
  2123. }
  2124. #line 1015 "../smarty/lexer/smarty_internal_templateparser.y"
  2125. function yy_r145()
  2126. {
  2127. $this->_retvalue = '(' . $this->yystack[ $this->yyidx + - 1 ]->minor . ')';
  2128. }
  2129. #line 1022 "../smarty/lexer/smarty_internal_templateparser.y"
  2130. function yy_r146()
  2131. {
  2132. if ($this->yystack[ $this->yyidx + - 1 ]->minor[ 'var' ] == '\'smarty\'') {
  2133. $this->_retvalue = $this->compiler->compileTag('private_special_variable', array(),
  2134. $this->yystack[ $this->yyidx +
  2135. - 1 ]->minor[ 'smarty_internal_index' ]) .
  2136. $this->yystack[ $this->yyidx + 0 ]->minor;
  2137. } else {
  2138. $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + - 1 ]->minor[ 'var' ]) .
  2139. $this->yystack[ $this->yyidx + - 1 ]->minor[ 'smarty_internal_index' ] .
  2140. $this->yystack[ $this->yyidx + 0 ]->minor;
  2141. }
  2142. }
  2143. #line 1031 "../smarty/lexer/smarty_internal_templateparser.y"
  2144. function yy_r147()
  2145. {
  2146. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  2147. }
  2148. #line 1036 "../smarty/lexer/smarty_internal_templateparser.y"
  2149. function yy_r148()
  2150. {
  2151. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  2152. }
  2153. #line 1041 "../smarty/lexer/smarty_internal_templateparser.y"
  2154. function yy_r149()
  2155. {
  2156. if ($this->security && substr($this->yystack[ $this->yyidx + - 1 ]->minor, 0, 1) == '_') {
  2157. $this->compiler->trigger_template_error(self::Err1);
  2158. }
  2159. $this->_retvalue =
  2160. '->' . $this->yystack[ $this->yyidx + - 1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  2161. }
  2162. #line 1048 "../smarty/lexer/smarty_internal_templateparser.y"
  2163. function yy_r150()
  2164. {
  2165. if ($this->security) {
  2166. $this->compiler->trigger_template_error(self::Err2);
  2167. }
  2168. $this->_retvalue = '->{' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + - 1 ]->minor) .
  2169. $this->yystack[ $this->yyidx + 0 ]->minor . '}';
  2170. }
  2171. #line 1055 "../smarty/lexer/smarty_internal_templateparser.y"
  2172. function yy_r151()
  2173. {
  2174. if ($this->security) {
  2175. $this->compiler->trigger_template_error(self::Err2);
  2176. }
  2177. $this->_retvalue =
  2178. '->{' . $this->yystack[ $this->yyidx + - 2 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor . '}';
  2179. }
  2180. #line 1062 "../smarty/lexer/smarty_internal_templateparser.y"
  2181. function yy_r152()
  2182. {
  2183. if ($this->security) {
  2184. $this->compiler->trigger_template_error(self::Err2);
  2185. }
  2186. $this->_retvalue = '->{\'' . $this->yystack[ $this->yyidx + - 4 ]->minor . '\'.' .
  2187. $this->yystack[ $this->yyidx + - 2 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor .
  2188. '}';
  2189. }
  2190. #line 1070 "../smarty/lexer/smarty_internal_templateparser.y"
  2191. function yy_r153()
  2192. {
  2193. $this->_retvalue = '->' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2194. }
  2195. #line 1078 "../smarty/lexer/smarty_internal_templateparser.y"
  2196. function yy_r154()
  2197. {
  2198. $this->_retvalue = $this->compiler->compilePHPFunctionCall($this->yystack[ $this->yyidx + - 3 ]->minor,
  2199. $this->yystack[ $this->yyidx + - 1 ]->minor);
  2200. }
  2201. #line 1086 "../smarty/lexer/smarty_internal_templateparser.y"
  2202. function yy_r155()
  2203. {
  2204. if ($this->security && substr($this->yystack[ $this->yyidx + - 3 ]->minor, 0, 1) == '_') {
  2205. $this->compiler->trigger_template_error(self::Err1);
  2206. }
  2207. $this->_retvalue = $this->yystack[ $this->yyidx + - 3 ]->minor . "(" .
  2208. implode(',', $this->yystack[ $this->yyidx + - 1 ]->minor) . ")";
  2209. }
  2210. #line 1093 "../smarty/lexer/smarty_internal_templateparser.y"
  2211. function yy_r156()
  2212. {
  2213. if ($this->security) {
  2214. $this->compiler->trigger_template_error(self::Err2);
  2215. }
  2216. $prefixVar = $this->compiler->getNewPrefixVariable();
  2217. $this->compiler->appendPrefixCode("<?php $prefixVar" . '=' . $this->compiler->compileVariable('\'' .
  2218. substr($this->yystack[ $this->yyidx +
  2219. - 3 ]->minor,
  2220. 1) .
  2221. '\'') . ';?>');
  2222. $this->_retvalue = $prefixVar . '(' . implode(',', $this->yystack[ $this->yyidx + - 1 ]->minor) . ')';
  2223. }
  2224. #line 1104 "../smarty/lexer/smarty_internal_templateparser.y"
  2225. function yy_r157()
  2226. {
  2227. $this->_retvalue =
  2228. array_merge($this->yystack[ $this->yyidx + - 2 ]->minor, array($this->yystack[ $this->yyidx + 0 ]->minor));
  2229. }
  2230. #line 1121 "../smarty/lexer/smarty_internal_templateparser.y"
  2231. function yy_r160()
  2232. {
  2233. $this->_retvalue = array_merge($this->yystack[ $this->yyidx + - 2 ]->minor,
  2234. array(array_merge($this->yystack[ $this->yyidx + - 1 ]->minor,
  2235. $this->yystack[ $this->yyidx + 0 ]->minor)));
  2236. }
  2237. #line 1125 "../smarty/lexer/smarty_internal_templateparser.y"
  2238. function yy_r161()
  2239. {
  2240. $this->_retvalue =
  2241. array(array_merge($this->yystack[ $this->yyidx + - 1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor));
  2242. }
  2243. #line 1133 "../smarty/lexer/smarty_internal_templateparser.y"
  2244. function yy_r163()
  2245. {
  2246. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor);
  2247. }
  2248. #line 1141 "../smarty/lexer/smarty_internal_templateparser.y"
  2249. function yy_r164()
  2250. {
  2251. $this->_retvalue =
  2252. array_merge($this->yystack[ $this->yyidx + - 1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor);
  2253. }
  2254. #line 1160 "../smarty/lexer/smarty_internal_templateparser.y"
  2255. function yy_r168()
  2256. {
  2257. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '', 'method');
  2258. }
  2259. #line 1165 "../smarty/lexer/smarty_internal_templateparser.y"
  2260. function yy_r169()
  2261. {
  2262. $this->_retvalue =
  2263. array($this->yystack[ $this->yyidx + - 1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'method');
  2264. }
  2265. #line 1170 "../smarty/lexer/smarty_internal_templateparser.y"
  2266. function yy_r170()
  2267. {
  2268. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '');
  2269. }
  2270. #line 1175 "../smarty/lexer/smarty_internal_templateparser.y"
  2271. function yy_r171()
  2272. {
  2273. $this->_retvalue =
  2274. array($this->yystack[ $this->yyidx + - 1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'property');
  2275. }
  2276. #line 1180 "../smarty/lexer/smarty_internal_templateparser.y"
  2277. function yy_r172()
  2278. {
  2279. $this->_retvalue = array($this->yystack[ $this->yyidx + - 2 ]->minor,
  2280. $this->yystack[ $this->yyidx + - 1 ]->minor .
  2281. $this->yystack[ $this->yyidx + 0 ]->minor, 'property');
  2282. }
  2283. #line 1186 "../smarty/lexer/smarty_internal_templateparser.y"
  2284. function yy_r173()
  2285. {
  2286. $this->_retvalue = ' ' . trim($this->yystack[ $this->yyidx + 0 ]->minor) . ' ';
  2287. }
  2288. #line 1190 "../smarty/lexer/smarty_internal_templateparser.y"
  2289. function yy_r174()
  2290. {
  2291. static $lops =
  2292. array('eq' => ' == ', 'ne' => ' != ', 'neq' => ' != ', 'gt' => ' > ', 'ge' => ' >= ', 'gte' => ' >= ',
  2293. 'lt' => ' < ', 'le' => ' <= ', 'lte' => ' <= ', 'mod' => ' % ', 'and' => ' && ', 'or' => ' || ',
  2294. 'xor' => ' xor ',);
  2295. $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor));
  2296. $this->_retvalue = $lops[ $op ];
  2297. }
  2298. #line 1209 "../smarty/lexer/smarty_internal_templateparser.y"
  2299. function yy_r175()
  2300. {
  2301. static $tlops =
  2302. array('isdivby' => array('op' => ' % ', 'pre' => '!('), 'isnotdivby' => array('op' => ' % ', 'pre' => '('),
  2303. 'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '),
  2304. 'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '),
  2305. 'isoddby' => array('op' => ' / ', 'pre' => '(1 & '),
  2306. 'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '),);
  2307. $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor));
  2308. $this->_retvalue = $tlops[ $op ];
  2309. }
  2310. #line 1222 "../smarty/lexer/smarty_internal_templateparser.y"
  2311. function yy_r176()
  2312. {
  2313. static $scond =
  2314. array('iseven' => '!(1 & ', 'isnoteven' => '(1 & ', 'isodd' => '(1 & ', 'isnotodd' => '!(1 & ',);
  2315. $op = strtolower(str_replace(' ', '', $this->yystack[ $this->yyidx + 0 ]->minor));
  2316. $this->_retvalue = $scond[ $op ];
  2317. }
  2318. #line 1236 "../smarty/lexer/smarty_internal_templateparser.y"
  2319. function yy_r177()
  2320. {
  2321. $this->_retvalue = 'array(' . $this->yystack[ $this->yyidx + - 1 ]->minor . ')';
  2322. }
  2323. #line 1244 "../smarty/lexer/smarty_internal_templateparser.y"
  2324. function yy_r179()
  2325. {
  2326. $this->_retvalue =
  2327. $this->yystack[ $this->yyidx + - 2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2328. }
  2329. #line 1252 "../smarty/lexer/smarty_internal_templateparser.y"
  2330. function yy_r181()
  2331. {
  2332. $this->_retvalue =
  2333. $this->yystack[ $this->yyidx + - 2 ]->minor . '=>' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2334. }
  2335. #line 1256 "../smarty/lexer/smarty_internal_templateparser.y"
  2336. function yy_r182()
  2337. {
  2338. $this->_retvalue =
  2339. '\'' . $this->yystack[ $this->yyidx + - 2 ]->minor . '\'=>' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2340. }
  2341. #line 1272 "../smarty/lexer/smarty_internal_templateparser.y"
  2342. function yy_r185()
  2343. {
  2344. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor->to_smarty_php($this);
  2345. }
  2346. #line 1277 "../smarty/lexer/smarty_internal_templateparser.y"
  2347. function yy_r186()
  2348. {
  2349. $this->yystack[ $this->yyidx + - 1 ]->minor->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  2350. $this->_retvalue = $this->yystack[ $this->yyidx + - 1 ]->minor;
  2351. }
  2352. #line 1282 "../smarty/lexer/smarty_internal_templateparser.y"
  2353. function yy_r187()
  2354. {
  2355. $this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  2356. }
  2357. #line 1286 "../smarty/lexer/smarty_internal_templateparser.y"
  2358. function yy_r188()
  2359. {
  2360. $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)' . $this->yystack[ $this->yyidx + - 1 ]->minor);
  2361. }
  2362. #line 1294 "../smarty/lexer/smarty_internal_templateparser.y"
  2363. function yy_r190()
  2364. {
  2365. $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\'' .
  2366. substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) .
  2367. '\']->value');
  2368. }
  2369. #line 1302 "../smarty/lexer/smarty_internal_templateparser.y"
  2370. function yy_r192()
  2371. {
  2372. $this->_retvalue =
  2373. new Smarty_Internal_ParseTree_Code('(string)(' . $this->yystack[ $this->yyidx + - 1 ]->minor . ')');
  2374. }
  2375. #line 1306 "../smarty/lexer/smarty_internal_templateparser.y"
  2376. function yy_r193()
  2377. {
  2378. $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  2379. }
  2380. #line 1310 "../smarty/lexer/smarty_internal_templateparser.y"
  2381. function yy_r194()
  2382. {
  2383. $this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this->yystack[ $this->yyidx + 0 ]->minor);
  2384. }
  2385. private $_retvalue;
  2386. public function yy_reduce($yyruleno)
  2387. {
  2388. if ($this->yyTraceFILE && $yyruleno >= 0 && $yyruleno < count(self::$yyRuleName)) {
  2389. fprintf($this->yyTraceFILE, "%sReduce (%d) [%s].\n", $this->yyTracePrompt, $yyruleno,
  2390. self::$yyRuleName[ $yyruleno ]);
  2391. }
  2392. $this->_retvalue = $yy_lefthand_side = null;
  2393. if (isset(self::$yyReduceMap[ $yyruleno ])) {
  2394. // call the action
  2395. $this->_retvalue = null;
  2396. $this->{'yy_r' . self::$yyReduceMap[ $yyruleno ]}();
  2397. $yy_lefthand_side = $this->_retvalue;
  2398. }
  2399. $yygoto = self::$yyRuleInfo[ $yyruleno ][ 0 ];
  2400. $yysize = self::$yyRuleInfo[ $yyruleno ][ 1 ];
  2401. $this->yyidx -= $yysize;
  2402. for ($i = $yysize; $i; $i --) {
  2403. // pop all of the right-hand side parameters
  2404. array_pop($this->yystack);
  2405. }
  2406. $yyact = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno, $yygoto);
  2407. if ($yyact < self::YYNSTATE) {
  2408. if (!$this->yyTraceFILE && $yysize) {
  2409. $this->yyidx ++;
  2410. $x = new TP_yyStackEntry;
  2411. $x->stateno = $yyact;
  2412. $x->major = $yygoto;
  2413. $x->minor = $yy_lefthand_side;
  2414. $this->yystack[ $this->yyidx ] = $x;
  2415. } else {
  2416. $this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
  2417. }
  2418. } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
  2419. $this->yy_accept();
  2420. }
  2421. }
  2422. public function yy_parse_failed()
  2423. {
  2424. if ($this->yyTraceFILE) {
  2425. fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt);
  2426. }
  2427. while ($this->yyidx >= 0) {
  2428. $this->yy_pop_parser_stack();
  2429. }
  2430. }
  2431. public function yy_syntax_error($yymajor, $TOKEN)
  2432. {
  2433. #line 200 "../smarty/lexer/smarty_internal_templateparser.y"
  2434. $this->internalError = true;
  2435. $this->yymajor = $yymajor;
  2436. $this->compiler->trigger_template_error();
  2437. }
  2438. public function yy_accept()
  2439. {
  2440. if ($this->yyTraceFILE) {
  2441. fprintf($this->yyTraceFILE, "%sAccept!\n", $this->yyTracePrompt);
  2442. }
  2443. while ($this->yyidx >= 0) {
  2444. $this->yy_pop_parser_stack();
  2445. }
  2446. #line 193 "../smarty/lexer/smarty_internal_templateparser.y"
  2447. $this->successful = !$this->internalError;
  2448. $this->internalError = false;
  2449. $this->retvalue = $this->_retvalue;
  2450. }
  2451. public function doParse($yymajor, $yytokenvalue)
  2452. {
  2453. $yyerrorhit = 0; /* True if yymajor has invoked an error */
  2454. if ($this->yyidx === null || $this->yyidx < 0) {
  2455. $this->yyidx = 0;
  2456. $this->yyerrcnt = - 1;
  2457. $x = new TP_yyStackEntry;
  2458. $x->stateno = 0;
  2459. $x->major = 0;
  2460. $this->yystack = array();
  2461. $this->yystack[] = $x;
  2462. }
  2463. $yyendofinput = ($yymajor == 0);
  2464. if ($this->yyTraceFILE) {
  2465. fprintf($this->yyTraceFILE, "%sInput %s\n", $this->yyTracePrompt, $this->yyTokenName[ $yymajor ]);
  2466. }
  2467. do {
  2468. $yyact = $this->yy_find_shift_action($yymajor);
  2469. if ($yymajor < self::YYERRORSYMBOL && !$this->yy_is_expected_token($yymajor)) {
  2470. // force a syntax error
  2471. $yyact = self::YY_ERROR_ACTION;
  2472. }
  2473. if ($yyact < self::YYNSTATE) {
  2474. $this->yy_shift($yyact, $yymajor, $yytokenvalue);
  2475. $this->yyerrcnt --;
  2476. if ($yyendofinput && $this->yyidx >= 0) {
  2477. $yymajor = 0;
  2478. } else {
  2479. $yymajor = self::YYNOCODE;
  2480. }
  2481. } elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
  2482. $this->yy_reduce($yyact - self::YYNSTATE);
  2483. } elseif ($yyact == self::YY_ERROR_ACTION) {
  2484. if ($this->yyTraceFILE) {
  2485. fprintf($this->yyTraceFILE, "%sSyntax Error!\n", $this->yyTracePrompt);
  2486. }
  2487. if (self::YYERRORSYMBOL) {
  2488. if ($this->yyerrcnt < 0) {
  2489. $this->yy_syntax_error($yymajor, $yytokenvalue);
  2490. }
  2491. $yymx = $this->yystack[ $this->yyidx ]->major;
  2492. if ($yymx == self::YYERRORSYMBOL || $yyerrorhit) {
  2493. if ($this->yyTraceFILE) {
  2494. fprintf($this->yyTraceFILE, "%sDiscard input token %s\n", $this->yyTracePrompt,
  2495. $this->yyTokenName[ $yymajor ]);
  2496. }
  2497. $this->yy_destructor($yymajor, $yytokenvalue);
  2498. $yymajor = self::YYNOCODE;
  2499. } else {
  2500. while ($this->yyidx >= 0 && $yymx != self::YYERRORSYMBOL &&
  2501. ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE) {
  2502. $this->yy_pop_parser_stack();
  2503. }
  2504. if ($this->yyidx < 0 || $yymajor == 0) {
  2505. $this->yy_destructor($yymajor, $yytokenvalue);
  2506. $this->yy_parse_failed();
  2507. $yymajor = self::YYNOCODE;
  2508. } elseif ($yymx != self::YYERRORSYMBOL) {
  2509. $u2 = 0;
  2510. $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
  2511. }
  2512. }
  2513. $this->yyerrcnt = 3;
  2514. $yyerrorhit = 1;
  2515. } else {
  2516. if ($this->yyerrcnt <= 0) {
  2517. $this->yy_syntax_error($yymajor, $yytokenvalue);
  2518. }
  2519. $this->yyerrcnt = 3;
  2520. $this->yy_destructor($yymajor, $yytokenvalue);
  2521. if ($yyendofinput) {
  2522. $this->yy_parse_failed();
  2523. }
  2524. $yymajor = self::YYNOCODE;
  2525. }
  2526. } else {
  2527. $this->yy_accept();
  2528. $yymajor = self::YYNOCODE;
  2529. }
  2530. }
  2531. while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
  2532. }
  2533. }