You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

smarty_internal_templateparser.php 142KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605
  1. <?php
  2. class TP_yyStackEntry
  3. {
  4. public $stateno; /* The state-number */
  5. public $major; /* The major token value. This is the code
  6. ** number for the token at this stack level */
  7. public $minor; /* The user-supplied minor token value. This
  8. ** is the value of the token */
  9. }
  10. ;
  11. #line 11 "../smarty/lexer/smarty_internal_templateparser.y"
  12. /**
  13. * Smarty Template Parser Class
  14. *
  15. * This is the template parser.
  16. * It is generated from the smarty_internal_templateparser.y file
  17. *
  18. * @author Uwe Tews <uwe.tews@googlemail.com>
  19. */
  20. class Smarty_Internal_Templateparser
  21. {
  22. #line 23 "../smarty/lexer/smarty_internal_templateparser.y"
  23. const Err1 = 'Security error: Call to private object member not allowed';
  24. const Err2 = 'Security error: Call to dynamic object member not allowed';
  25. const Err3 = 'PHP in template not allowed. Use SmartyBC to enable it';
  26. const TP_VERT = 1;
  27. const TP_COLON = 2;
  28. const TP_UNIMATH = 3;
  29. const TP_PHP = 4;
  30. const TP_TEXT = 5;
  31. const TP_STRIPON = 6;
  32. const TP_STRIPOFF = 7;
  33. const TP_LITERALSTART = 8;
  34. const TP_LITERALEND = 9;
  35. const TP_LITERAL = 10;
  36. const TP_SIMPELOUTPUT = 11;
  37. const TP_SIMPLETAG = 12;
  38. const TP_SMARTYBLOCKCHILDPARENT = 13;
  39. const TP_LDEL = 14;
  40. const TP_RDEL = 15;
  41. const TP_DOLLARID = 16;
  42. const TP_EQUAL = 17;
  43. const TP_ID = 18;
  44. const TP_PTR = 19;
  45. const TP_LDELMAKENOCACHE = 20;
  46. const TP_LDELIF = 21;
  47. const TP_LDELFOR = 22;
  48. const TP_SEMICOLON = 23;
  49. const TP_INCDEC = 24;
  50. const TP_TO = 25;
  51. const TP_STEP = 26;
  52. const TP_LDELFOREACH = 27;
  53. const TP_SPACE = 28;
  54. const TP_AS = 29;
  55. const TP_APTR = 30;
  56. const TP_LDELSETFILTER = 31;
  57. const TP_CLOSETAG = 32;
  58. const TP_LDELSLASH = 33;
  59. const TP_ATTR = 34;
  60. const TP_INTEGER = 35;
  61. const TP_COMMA = 36;
  62. const TP_OPENP = 37;
  63. const TP_CLOSEP = 38;
  64. const TP_MATH = 39;
  65. const TP_ISIN = 40;
  66. const TP_QMARK = 41;
  67. const TP_NOT = 42;
  68. const TP_TYPECAST = 43;
  69. const TP_HEX = 44;
  70. const TP_DOT = 45;
  71. const TP_INSTANCEOF = 46;
  72. const TP_SINGLEQUOTESTRING = 47;
  73. const TP_DOUBLECOLON = 48;
  74. const TP_NAMESPACE = 49;
  75. const TP_AT = 50;
  76. const TP_HATCH = 51;
  77. const TP_OPENB = 52;
  78. const TP_CLOSEB = 53;
  79. const TP_DOLLAR = 54;
  80. const TP_LOGOP = 55;
  81. const TP_SLOGOP = 56;
  82. const TP_TLOGOP = 57;
  83. const TP_SINGLECOND = 58;
  84. const TP_QUOTE = 59;
  85. const TP_BACKTICK = 60;
  86. const YY_NO_ACTION = 511;
  87. const YY_ACCEPT_ACTION = 510;
  88. const YY_ERROR_ACTION = 509;
  89. const YY_SZ_ACTTAB = 2178;
  90. const YY_SHIFT_USE_DFLT = -23;
  91. const YY_SHIFT_MAX = 227;
  92. const YY_REDUCE_USE_DFLT = -68;
  93. const YY_REDUCE_MAX = 176;
  94. const YYNOCODE = 108;
  95. const YYSTACKDEPTH = 500;
  96. const YYNSTATE = 323;
  97. const YYNRULE = 186;
  98. const YYERRORSYMBOL = 61;
  99. const YYERRSYMDT = 'yy0';
  100. const YYFALLBACK = 0;
  101. /**
  102. * result status
  103. *
  104. * @var bool
  105. */
  106. public $successful = true;
  107. /**
  108. * return value
  109. *
  110. * @var mixed
  111. */
  112. public $retvalue = 0;
  113. /**
  114. * @var
  115. */
  116. public $yymajor;
  117. /**
  118. * last index of array variable
  119. *
  120. * @var mixed
  121. */
  122. public $last_index;
  123. /**
  124. * last variable name
  125. *
  126. * @var string
  127. */
  128. public $last_variable;
  129. /**
  130. * root parse tree buffer
  131. *
  132. * @var Smarty_Internal_ParseTree
  133. */
  134. public $root_buffer;
  135. /**
  136. * current parse tree object
  137. *
  138. * @var Smarty_Internal_ParseTree
  139. */
  140. public $current_buffer;
  141. /**
  142. * lexer object
  143. *
  144. * @var Smarty_Internal_Templatelexer
  145. */
  146. public $lex;
  147. /**
  148. * internal error flag
  149. *
  150. * @var bool
  151. */
  152. private $internalError = false;
  153. /**
  154. * {strip} status
  155. *
  156. * @var bool
  157. */
  158. public $strip = false;
  159. /**
  160. * compiler object
  161. *
  162. * @var Smarty_Internal_TemplateCompilerBase
  163. */
  164. public $compiler = null;
  165. /**
  166. * smarty object
  167. *
  168. * @var Smarty
  169. */
  170. public $smarty = null;
  171. /**
  172. * template object
  173. *
  174. * @var Smarty_Internal_Template
  175. */
  176. public $template = null;
  177. /**
  178. * block nesting level
  179. *
  180. * @var int
  181. */
  182. public $block_nesting_level = 0;
  183. /**
  184. * security object
  185. *
  186. * @var Smarty_Security
  187. */
  188. public $security = null;
  189. /**
  190. * template prefix array
  191. *
  192. * @var \Smarty_Internal_ParseTree[]
  193. */
  194. public $template_prefix = array();
  195. /**
  196. * template prefix array
  197. *
  198. * @var \Smarty_Internal_ParseTree[]
  199. */
  200. public $template_postfix = array();
  201. static public $yy_action = array(
  202. 43, 266, 267, 379, 115, 203, 33, 201, 274, 275,
  203. 281, 1, 13, 124, 93, 183, 379, 217, 6, 79,
  204. 253, 89, 379, 16, 102, 425, 304, 252, 218, 249,
  205. 211, 129, 190, 302, 26, 213, 425, 33, 11, 39,
  206. 42, 283, 209, 13, 223, 385, 195, 233, 77, 3,
  207. 236, 290, 43, 385, 170, 385, 75, 17, 385, 94,
  208. 274, 275, 281, 1, 385, 128, 385, 196, 385, 217,
  209. 6, 79, 80, 298, 158, 210, 102, 156, 174, 133,
  210. 218, 249, 211, 85, 208, 290, 28, 264, 101, 264,
  211. 199, 39, 42, 283, 209, 31, 312, 182, 195, 259,
  212. 77, 3, 43, 290, 23, 172, 239, 174, 75, 288,
  213. 274, 275, 281, 1, 167, 127, 256, 196, 248, 217,
  214. 6, 79, 345, 40, 20, 305, 102, 248, 345, 157,
  215. 218, 249, 211, 83, 208, 290, 26, 8, 174, 264,
  216. 74, 39, 42, 283, 209, 131, 312, 292, 195, 74,
  217. 77, 3, 43, 290, 295, 99, 243, 174, 75, 345,
  218. 274, 275, 281, 1, 15, 126, 86, 196, 248, 217,
  219. 6, 79, 345, 322, 161, 289, 102, 87, 345, 165,
  220. 218, 249, 211, 290, 208, 115, 26, 128, 255, 221,
  221. 74, 39, 42, 283, 209, 93, 312, 210, 195, 162,
  222. 77, 3, 43, 290, 254, 235, 247, 304, 75, 27,
  223. 274, 275, 281, 1, 172, 127, 425, 177, 248, 217,
  224. 6, 79, 77, 174, 250, 290, 102, 425, 198, 14,
  225. 218, 249, 211, 248, 208, 34, 26, 222, 206, 139,
  226. 74, 39, 42, 283, 209, 198, 312, 23, 195, 291,
  227. 77, 3, 43, 290, 300, 74, 198, 438, 75, 346,
  228. 274, 275, 281, 1, 438, 127, 176, 196, 267, 217,
  229. 6, 79, 346, 161, 289, 290, 102, 23, 346, 238,
  230. 218, 249, 211, 33, 178, 263, 26, 160, 289, 13,
  231. 37, 39, 42, 283, 209, 198, 312, 212, 195, 250,
  232. 77, 3, 43, 290, 216, 189, 155, 97, 75, 381,
  233. 274, 275, 281, 1, 149, 127, 264, 179, 18, 217,
  234. 6, 79, 381, 94, 97, 237, 102, 140, 381, 251,
  235. 218, 249, 211, 4, 194, 94, 26, 264, 198, 37,
  236. 30, 39, 42, 283, 209, 198, 312, 212, 195, 129,
  237. 77, 3, 43, 290, 219, 172, 11, 97, 75, 378,
  238. 274, 275, 281, 1, 101, 127, 438, 186, 210, 217,
  239. 6, 79, 378, 438, 12, 163, 102, 220, 378, 425,
  240. 218, 249, 211, 302, 208, 213, 26, 225, 215, 187,
  241. 425, 39, 42, 283, 209, 234, 312, 7, 195, 212,
  242. 77, 3, 43, 290, 134, 9, 240, 425, 75, 97,
  243. 274, 275, 281, 1, 264, 91, 109, 76, 425, 217,
  244. 6, 79, 253, 293, 426, 16, 102, 251, 198, 252,
  245. 218, 249, 211, 198, 208, 426, 26, 148, 198, 135,
  246. 132, 39, 42, 283, 209, 143, 312, 264, 195, 264,
  247. 77, 3, 43, 290, 138, 264, 205, 24, 75, 166,
  248. 274, 275, 281, 1, 264, 125, 276, 196, 19, 217,
  249. 6, 79, 454, 153, 13, 454, 102, 168, 290, 454,
  250. 218, 249, 211, 174, 208, 314, 5, 136, 210, 251,
  251. 152, 39, 42, 283, 209, 268, 312, 213, 195, 308,
  252. 77, 3, 43, 290, 94, 169, 111, 144, 75, 251,
  253. 274, 275, 281, 1, 229, 128, 7, 196, 313, 217,
  254. 6, 79, 510, 90, 175, 111, 102, 164, 289, 174,
  255. 218, 249, 211, 101, 208, 265, 28, 32, 128, 150,
  256. 261, 39, 42, 283, 209, 10, 312, 317, 195, 224,
  257. 77, 21, 269, 290, 232, 230, 282, 114, 75, 307,
  258. 214, 213, 279, 22, 84, 103, 246, 181, 92, 64,
  259. 260, 262, 454, 77, 93, 454, 290, 257, 316, 454,
  260. 438, 228, 311, 197, 309, 78, 304, 271, 272, 273,
  261. 270, 121, 258, 310, 274, 275, 281, 1, 17, 280,
  262. 110, 284, 81, 217, 6, 79, 438, 146, 94, 438,
  263. 102, 454, 151, 438, 218, 249, 211, 307, 214, 213,
  264. 279, 278, 84, 103, 104, 180, 92, 56, 263, 159,
  265. 130, 152, 93, 295, 137, 257, 316, 295, 251, 88,
  266. 311, 197, 309, 82, 304, 307, 295, 213, 303, 295,
  267. 100, 295, 295, 193, 105, 59, 295, 295, 295, 295,
  268. 93, 295, 295, 257, 316, 295, 295, 295, 311, 197,
  269. 309, 307, 304, 213, 277, 295, 100, 103, 295, 181,
  270. 92, 64, 200, 297, 295, 253, 93, 295, 16, 257,
  271. 316, 295, 252, 295, 311, 197, 309, 295, 304, 295,
  272. 299, 295, 295, 295, 295, 295, 274, 275, 281, 2,
  273. 295, 301, 295, 295, 295, 217, 6, 79, 253, 295,
  274. 295, 16, 102, 299, 204, 252, 218, 249, 211, 274,
  275. 275, 281, 2, 295, 301, 33, 295, 154, 217, 6,
  276. 79, 13, 295, 295, 295, 102, 295, 295, 295, 218,
  277. 249, 211, 295, 295, 286, 25, 307, 295, 213, 295,
  278. 295, 100, 295, 295, 193, 105, 59, 295, 295, 295,
  279. 295, 93, 295, 295, 257, 316, 295, 287, 25, 311,
  280. 197, 309, 307, 304, 213, 295, 454, 100, 295, 454,
  281. 193, 118, 67, 454, 296, 253, 295, 93, 16, 295,
  282. 257, 316, 252, 295, 295, 311, 197, 309, 295, 304,
  283. 295, 295, 307, 295, 213, 295, 188, 100, 295, 295,
  284. 193, 118, 67, 295, 295, 454, 295, 93, 295, 295,
  285. 257, 316, 295, 295, 226, 311, 197, 309, 295, 304,
  286. 295, 295, 307, 295, 213, 295, 192, 100, 295, 295,
  287. 193, 118, 67, 295, 295, 295, 295, 93, 295, 295,
  288. 257, 316, 295, 295, 295, 311, 197, 309, 295, 304,
  289. 295, 295, 307, 295, 213, 295, 191, 98, 295, 295,
  290. 193, 118, 46, 295, 108, 295, 295, 93, 295, 295,
  291. 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
  292. 213, 295, 295, 98, 295, 295, 193, 118, 47, 295,
  293. 219, 295, 295, 93, 295, 295, 257, 316, 295, 295,
  294. 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
  295. 295, 295, 193, 118, 45, 295, 295, 295, 295, 93,
  296. 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
  297. 295, 304, 295, 295, 307, 295, 213, 295, 295, 100,
  298. 295, 295, 193, 118, 70, 295, 295, 295, 295, 93,
  299. 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
  300. 307, 304, 213, 295, 295, 100, 295, 295, 193, 118,
  301. 49, 295, 295, 295, 295, 93, 295, 295, 257, 316,
  302. 295, 295, 295, 311, 197, 309, 307, 304, 213, 295,
  303. 295, 100, 295, 295, 193, 96, 66, 295, 295, 295,
  304. 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
  305. 197, 309, 295, 304, 295, 295, 307, 295, 213, 295,
  306. 295, 100, 295, 295, 193, 118, 44, 295, 295, 295,
  307. 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
  308. 197, 309, 307, 304, 213, 295, 295, 100, 295, 295,
  309. 193, 118, 58, 295, 295, 295, 295, 93, 295, 295,
  310. 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
  311. 213, 295, 295, 100, 295, 295, 193, 118, 54, 295,
  312. 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
  313. 295, 311, 197, 309, 295, 304, 295, 295, 307, 295,
  314. 213, 295, 295, 100, 295, 295, 193, 118, 71, 295,
  315. 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
  316. 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
  317. 295, 295, 193, 118, 65, 295, 295, 295, 295, 93,
  318. 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
  319. 307, 304, 213, 295, 295, 100, 295, 295, 193, 96,
  320. 57, 295, 295, 295, 295, 93, 295, 295, 257, 316,
  321. 295, 295, 295, 311, 197, 309, 295, 304, 295, 295,
  322. 307, 295, 213, 295, 295, 100, 295, 295, 185, 106,
  323. 53, 295, 295, 295, 295, 93, 295, 295, 257, 316,
  324. 295, 295, 295, 311, 197, 309, 307, 304, 213, 295,
  325. 295, 100, 295, 295, 193, 118, 60, 295, 295, 295,
  326. 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
  327. 197, 309, 307, 304, 213, 295, 295, 100, 295, 295,
  328. 193, 118, 73, 295, 295, 295, 295, 93, 295, 295,
  329. 257, 316, 295, 295, 295, 311, 197, 309, 295, 304,
  330. 295, 295, 307, 295, 213, 295, 295, 100, 295, 295,
  331. 193, 118, 55, 295, 295, 295, 295, 93, 295, 295,
  332. 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
  333. 213, 295, 295, 100, 295, 295, 193, 95, 68, 295,
  334. 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
  335. 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
  336. 295, 295, 193, 118, 69, 295, 295, 295, 295, 93,
  337. 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
  338. 295, 304, 295, 295, 307, 295, 213, 295, 295, 100,
  339. 295, 295, 193, 118, 51, 295, 295, 295, 295, 93,
  340. 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
  341. 307, 304, 213, 295, 295, 100, 295, 295, 184, 118,
  342. 52, 295, 295, 295, 295, 93, 295, 295, 257, 316,
  343. 295, 295, 295, 311, 197, 309, 307, 304, 213, 295,
  344. 295, 100, 295, 295, 193, 118, 47, 295, 295, 295,
  345. 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
  346. 197, 309, 295, 304, 295, 295, 307, 295, 213, 295,
  347. 295, 100, 295, 295, 193, 118, 50, 295, 295, 295,
  348. 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
  349. 197, 309, 307, 304, 213, 295, 295, 100, 295, 295,
  350. 193, 118, 62, 295, 295, 295, 295, 93, 295, 295,
  351. 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
  352. 213, 295, 295, 100, 295, 295, 193, 118, 63, 295,
  353. 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
  354. 295, 311, 197, 309, 295, 304, 295, 295, 307, 295,
  355. 213, 295, 295, 100, 295, 295, 193, 118, 61, 295,
  356. 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
  357. 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
  358. 295, 295, 193, 118, 48, 295, 295, 295, 295, 93,
  359. 295, 295, 257, 316, 391, 391, 391, 311, 197, 309,
  360. 307, 304, 213, 295, 295, 100, 295, 295, 193, 118,
  361. 72, 295, 295, 295, 295, 93, 295, 295, 257, 316,
  362. 295, 295, 295, 311, 197, 309, 295, 304, 295, 295,
  363. 425, 295, 391, 391, 295, 295, 295, 295, 307, 295,
  364. 213, 425, 198, 100, 38, 295, 193, 112, 391, 391,
  365. 391, 391, 38, 93, 295, 295, 295, 306, 295, 295,
  366. 295, 311, 197, 309, 295, 304, 295, 35, 307, 33,
  367. 213, 295, 295, 100, 295, 13, 193, 120, 295, 295,
  368. 41, 36, 198, 93, 38, 295, 295, 231, 41, 36,
  369. 295, 311, 197, 309, 295, 304, 319, 318, 315, 245,
  370. 295, 207, 295, 295, 319, 318, 315, 245, 295, 33,
  371. 454, 295, 295, 454, 295, 13, 207, 454, 438, 295,
  372. 41, 36, 295, 295, 295, 454, 295, 295, 454, 295,
  373. 295, 14, 454, 438, 295, 295, 319, 318, 315, 245,
  374. 295, 198, 295, 38, 438, 295, 295, 438, 307, 454,
  375. 213, 438, 320, 100, 295, 241, 193, 122, 295, 438,
  376. 295, 295, 438, 93, 454, 295, 438, 295, 198, 295,
  377. 38, 311, 197, 309, 295, 304, 307, 295, 213, 41,
  378. 36, 100, 295, 295, 193, 117, 295, 295, 295, 295,
  379. 295, 93, 295, 295, 295, 319, 318, 315, 245, 311,
  380. 197, 309, 207, 304, 295, 295, 41, 36, 295, 295,
  381. 295, 454, 295, 295, 454, 295, 295, 4, 454, 438,
  382. 295, 295, 319, 318, 315, 245, 295, 294, 295, 295,
  383. 295, 307, 295, 213, 295, 295, 100, 295, 295, 193,
  384. 123, 295, 295, 295, 295, 438, 93, 295, 438, 141,
  385. 454, 295, 438, 167, 311, 197, 309, 295, 304, 264,
  386. 295, 295, 40, 20, 305, 295, 295, 307, 295, 213,
  387. 295, 198, 100, 38, 295, 193, 116, 174, 307, 295,
  388. 213, 295, 93, 100, 295, 295, 193, 113, 295, 295,
  389. 311, 197, 309, 93, 304, 295, 198, 295, 38, 295,
  390. 295, 311, 197, 309, 295, 304, 307, 295, 213, 41,
  391. 36, 100, 295, 295, 193, 119, 295, 295, 295, 295,
  392. 295, 93, 295, 321, 145, 319, 318, 315, 245, 311,
  393. 197, 309, 207, 304, 41, 36, 295, 295, 295, 295,
  394. 295, 454, 295, 295, 454, 295, 295, 295, 454, 438,
  395. 319, 318, 315, 245, 198, 295, 38, 295, 198, 295,
  396. 38, 295, 198, 295, 38, 295, 295, 295, 242, 295,
  397. 295, 295, 285, 295, 295, 438, 171, 295, 438, 295,
  398. 454, 295, 438, 295, 295, 295, 295, 454, 295, 295,
  399. 454, 295, 41, 36, 454, 438, 41, 36, 295, 295,
  400. 41, 36, 198, 295, 38, 295, 295, 295, 319, 318,
  401. 315, 245, 319, 318, 315, 245, 319, 318, 315, 245,
  402. 295, 438, 295, 147, 438, 295, 454, 167, 438, 295,
  403. 295, 295, 295, 264, 295, 295, 40, 20, 305, 227,
  404. 41, 36, 295, 295, 295, 295, 295, 295, 295, 295,
  405. 295, 174, 295, 295, 295, 295, 319, 318, 315, 245,
  406. 198, 295, 38, 295, 198, 295, 38, 142, 198, 295,
  407. 38, 167, 295, 295, 173, 295, 295, 264, 295, 295,
  408. 40, 20, 305, 295, 295, 295, 107, 295, 198, 29,
  409. 38, 295, 198, 295, 38, 174, 295, 295, 41, 36,
  410. 295, 295, 41, 36, 295, 244, 41, 36, 295, 295,
  411. 295, 295, 295, 295, 319, 318, 315, 245, 319, 318,
  412. 315, 245, 319, 318, 315, 245, 41, 36, 295, 295,
  413. 41, 36, 295, 295, 295, 295, 295, 295, 295, 295,
  414. 295, 295, 319, 318, 315, 245, 319, 318, 315, 245,
  415. 198, 295, 295, 295, 295, 295, 295, 295, 295, 295,
  416. 295, 295, 295, 295, 349, 295, 295, 295, 202, 295,
  417. 295, 295, 295, 295, 295, 295, 295, 33, 295, 295,
  418. 295, 295, 295, 13, 295, 295, 425, 295, 295, 295,
  419. 295, 295, 295, 295, 295, 295, 295, 425,
  420. );
  421. static public $yy_lookahead = array(
  422. 3, 9, 10, 15, 71, 17, 28, 74, 11, 12,
  423. 13, 14, 34, 16, 81, 18, 28, 20, 21, 22,
  424. 11, 82, 34, 14, 27, 37, 93, 18, 31, 32,
  425. 33, 45, 35, 66, 37, 68, 48, 28, 52, 42,
  426. 43, 44, 45, 34, 47, 15, 49, 16, 51, 52,
  427. 53, 54, 3, 23, 77, 25, 59, 17, 28, 19,
  428. 11, 12, 13, 14, 34, 16, 36, 18, 38, 20,
  429. 21, 22, 105, 106, 94, 45, 27, 73, 101, 73,
  430. 31, 32, 33, 77, 35, 54, 37, 83, 48, 83,
  431. 65, 42, 43, 44, 45, 14, 47, 16, 49, 18,
  432. 51, 52, 3, 54, 36, 101, 38, 101, 59, 15,
  433. 11, 12, 13, 14, 77, 16, 35, 18, 24, 20,
  434. 21, 22, 28, 86, 87, 88, 27, 24, 34, 73,
  435. 31, 32, 33, 77, 35, 54, 37, 36, 101, 83,
  436. 46, 42, 43, 44, 45, 16, 47, 70, 49, 46,
  437. 51, 52, 3, 54, 53, 81, 53, 101, 59, 15,
  438. 11, 12, 13, 14, 23, 16, 37, 18, 24, 20,
  439. 21, 22, 28, 99, 97, 98, 27, 36, 34, 82,
  440. 31, 32, 33, 54, 35, 71, 37, 16, 74, 18,
  441. 46, 42, 43, 44, 45, 81, 47, 45, 49, 77,
  442. 51, 52, 3, 54, 90, 53, 18, 93, 59, 30,
  443. 11, 12, 13, 14, 101, 16, 37, 18, 24, 20,
  444. 21, 22, 51, 101, 102, 54, 27, 48, 1, 17,
  445. 31, 32, 33, 24, 35, 14, 37, 16, 50, 18,
  446. 46, 42, 43, 44, 45, 1, 47, 36, 49, 38,
  447. 51, 52, 3, 54, 60, 46, 1, 45, 59, 15,
  448. 11, 12, 13, 14, 52, 16, 8, 18, 10, 20,
  449. 21, 22, 28, 97, 98, 54, 27, 36, 34, 38,
  450. 31, 32, 33, 28, 35, 95, 37, 97, 98, 34,
  451. 2, 42, 43, 44, 45, 1, 47, 71, 49, 102,
  452. 51, 52, 3, 54, 78, 79, 73, 81, 59, 15,
  453. 11, 12, 13, 14, 71, 16, 83, 18, 17, 20,
  454. 21, 22, 28, 19, 81, 24, 27, 73, 34, 96,
  455. 31, 32, 33, 17, 35, 19, 37, 83, 1, 2,
  456. 17, 42, 43, 44, 45, 1, 47, 71, 49, 45,
  457. 51, 52, 3, 54, 78, 101, 52, 81, 59, 15,
  458. 11, 12, 13, 14, 48, 16, 45, 18, 45, 20,
  459. 21, 22, 28, 52, 14, 16, 27, 18, 34, 37,
  460. 31, 32, 33, 66, 35, 68, 37, 45, 64, 65,
  461. 48, 42, 43, 44, 45, 53, 47, 37, 49, 71,
  462. 51, 52, 3, 54, 73, 37, 78, 37, 59, 81,
  463. 11, 12, 13, 14, 83, 16, 48, 18, 48, 20,
  464. 21, 22, 11, 106, 37, 14, 27, 96, 1, 18,
  465. 31, 32, 33, 1, 35, 48, 37, 73, 1, 73,
  466. 16, 42, 43, 44, 45, 73, 47, 83, 49, 83,
  467. 51, 52, 3, 54, 73, 83, 19, 30, 59, 77,
  468. 11, 12, 13, 14, 83, 16, 70, 18, 28, 20,
  469. 21, 22, 11, 94, 34, 14, 27, 82, 54, 18,
  470. 31, 32, 33, 101, 35, 53, 37, 94, 45, 96,
  471. 94, 42, 43, 44, 45, 66, 47, 68, 49, 92,
  472. 51, 52, 3, 54, 19, 77, 99, 94, 59, 96,
  473. 11, 12, 13, 14, 38, 16, 37, 18, 92, 20,
  474. 21, 22, 62, 63, 18, 99, 27, 97, 98, 101,
  475. 31, 32, 33, 48, 35, 16, 37, 25, 16, 51,
  476. 18, 42, 43, 44, 45, 37, 47, 18, 49, 18,
  477. 51, 41, 9, 54, 53, 53, 15, 18, 59, 66,
  478. 67, 68, 69, 2, 71, 72, 18, 74, 75, 76,
  479. 18, 49, 11, 51, 81, 14, 54, 84, 85, 18,
  480. 19, 18, 89, 90, 91, 18, 93, 4, 5, 6,
  481. 7, 8, 18, 35, 11, 12, 13, 14, 17, 15,
  482. 18, 35, 81, 20, 21, 22, 45, 51, 19, 48,
  483. 27, 50, 94, 52, 31, 32, 33, 66, 67, 68,
  484. 69, 83, 71, 72, 80, 74, 75, 76, 95, 94,
  485. 81, 94, 81, 107, 94, 84, 85, 107, 96, 94,
  486. 89, 90, 91, 81, 93, 66, 107, 68, 98, 107,
  487. 71, 107, 107, 74, 75, 76, 107, 107, 107, 107,
  488. 81, 107, 107, 84, 85, 107, 107, 107, 89, 90,
  489. 91, 66, 93, 68, 69, 107, 71, 72, 107, 74,
  490. 75, 76, 103, 104, 107, 11, 81, 107, 14, 84,
  491. 85, 107, 18, 107, 89, 90, 91, 107, 93, 107,
  492. 5, 107, 107, 107, 107, 107, 11, 12, 13, 14,
  493. 107, 16, 107, 107, 107, 20, 21, 22, 11, 107,
  494. 107, 14, 27, 5, 50, 18, 31, 32, 33, 11,
  495. 12, 13, 14, 107, 16, 28, 107, 30, 20, 21,
  496. 22, 34, 107, 107, 107, 27, 107, 107, 107, 31,
  497. 32, 33, 107, 107, 59, 60, 66, 107, 68, 107,
  498. 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
  499. 107, 81, 107, 107, 84, 85, 107, 59, 60, 89,
  500. 90, 91, 66, 93, 68, 107, 11, 71, 107, 14,
  501. 74, 75, 76, 18, 104, 11, 107, 81, 14, 107,
  502. 84, 85, 18, 107, 107, 89, 90, 91, 107, 93,
  503. 107, 107, 66, 107, 68, 107, 100, 71, 107, 107,
  504. 74, 75, 76, 107, 107, 50, 107, 81, 107, 107,
  505. 84, 85, 107, 107, 50, 89, 90, 91, 107, 93,
  506. 107, 107, 66, 107, 68, 107, 100, 71, 107, 107,
  507. 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
  508. 84, 85, 107, 107, 107, 89, 90, 91, 107, 93,
  509. 107, 107, 66, 107, 68, 107, 100, 71, 107, 107,
  510. 74, 75, 76, 107, 78, 107, 107, 81, 107, 107,
  511. 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
  512. 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
  513. 78, 107, 107, 81, 107, 107, 84, 85, 107, 107,
  514. 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
  515. 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
  516. 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
  517. 107, 93, 107, 107, 66, 107, 68, 107, 107, 71,
  518. 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
  519. 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
  520. 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
  521. 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
  522. 107, 107, 107, 89, 90, 91, 66, 93, 68, 107,
  523. 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
  524. 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
  525. 90, 91, 107, 93, 107, 107, 66, 107, 68, 107,
  526. 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
  527. 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
  528. 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
  529. 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
  530. 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
  531. 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
  532. 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
  533. 107, 89, 90, 91, 107, 93, 107, 107, 66, 107,
  534. 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
  535. 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
  536. 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
  537. 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
  538. 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
  539. 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
  540. 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
  541. 107, 107, 107, 89, 90, 91, 107, 93, 107, 107,
  542. 66, 107, 68, 107, 107, 71, 107, 107, 74, 75,
  543. 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
  544. 107, 107, 107, 89, 90, 91, 66, 93, 68, 107,
  545. 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
  546. 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
  547. 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
  548. 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
  549. 84, 85, 107, 107, 107, 89, 90, 91, 107, 93,
  550. 107, 107, 66, 107, 68, 107, 107, 71, 107, 107,
  551. 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
  552. 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
  553. 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
  554. 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
  555. 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
  556. 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
  557. 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
  558. 107, 93, 107, 107, 66, 107, 68, 107, 107, 71,
  559. 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
  560. 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
  561. 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
  562. 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
  563. 107, 107, 107, 89, 90, 91, 66, 93, 68, 107,
  564. 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
  565. 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
  566. 90, 91, 107, 93, 107, 107, 66, 107, 68, 107,
  567. 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
  568. 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
  569. 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
  570. 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
  571. 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
  572. 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
  573. 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
  574. 107, 89, 90, 91, 107, 93, 107, 107, 66, 107,
  575. 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
  576. 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
  577. 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
  578. 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
  579. 107, 107, 84, 85, 1, 2, 3, 89, 90, 91,
  580. 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
  581. 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
  582. 107, 107, 107, 89, 90, 91, 107, 93, 107, 107,
  583. 37, 107, 39, 40, 107, 107, 107, 107, 66, 107,
  584. 68, 48, 1, 71, 3, 107, 74, 75, 55, 56,
  585. 57, 58, 3, 81, 107, 107, 107, 85, 107, 107,
  586. 107, 89, 90, 91, 107, 93, 107, 26, 66, 28,
  587. 68, 107, 107, 71, 107, 34, 74, 75, 107, 107,
  588. 39, 40, 1, 81, 3, 107, 107, 85, 39, 40,
  589. 107, 89, 90, 91, 107, 93, 55, 56, 57, 58,
  590. 107, 2, 107, 107, 55, 56, 57, 58, 107, 28,
  591. 11, 107, 107, 14, 107, 34, 2, 18, 19, 107,
  592. 39, 40, 107, 107, 107, 11, 107, 107, 14, 107,
  593. 107, 17, 18, 19, 107, 107, 55, 56, 57, 58,
  594. 107, 1, 107, 3, 45, 107, 107, 48, 66, 50,
  595. 68, 52, 53, 71, 107, 15, 74, 75, 107, 45,
  596. 107, 107, 48, 81, 50, 107, 52, 107, 1, 107,
  597. 3, 89, 90, 91, 107, 93, 66, 107, 68, 39,
  598. 40, 71, 107, 107, 74, 75, 107, 107, 107, 107,
  599. 107, 81, 107, 107, 107, 55, 56, 57, 58, 89,
  600. 90, 91, 2, 93, 107, 107, 39, 40, 107, 107,
  601. 107, 11, 107, 107, 14, 107, 107, 17, 18, 19,
  602. 107, 107, 55, 56, 57, 58, 107, 60, 107, 107,
  603. 107, 66, 107, 68, 107, 107, 71, 107, 107, 74,
  604. 75, 107, 107, 107, 107, 45, 81, 107, 48, 73,
  605. 50, 107, 52, 77, 89, 90, 91, 107, 93, 83,
  606. 107, 107, 86, 87, 88, 107, 107, 66, 107, 68,
  607. 107, 1, 71, 3, 107, 74, 75, 101, 66, 107,
  608. 68, 107, 81, 71, 107, 107, 74, 75, 107, 107,
  609. 89, 90, 91, 81, 93, 107, 1, 107, 3, 107,
  610. 107, 89, 90, 91, 107, 93, 66, 107, 68, 39,
  611. 40, 71, 107, 107, 74, 75, 107, 107, 107, 107,
  612. 107, 81, 107, 53, 29, 55, 56, 57, 58, 89,
  613. 90, 91, 2, 93, 39, 40, 107, 107, 107, 107,
  614. 107, 11, 107, 107, 14, 107, 107, 107, 18, 19,
  615. 55, 56, 57, 58, 1, 107, 3, 107, 1, 107,
  616. 3, 107, 1, 107, 3, 107, 107, 107, 15, 107,
  617. 107, 107, 15, 107, 107, 45, 15, 107, 48, 107,
  618. 50, 107, 52, 107, 107, 107, 107, 11, 107, 107,
  619. 14, 107, 39, 40, 18, 19, 39, 40, 107, 107,
  620. 39, 40, 1, 107, 3, 107, 107, 107, 55, 56,
  621. 57, 58, 55, 56, 57, 58, 55, 56, 57, 58,
  622. 107, 45, 107, 73, 48, 107, 50, 77, 52, 107,
  623. 107, 107, 107, 83, 107, 107, 86, 87, 88, 38,
  624. 39, 40, 107, 107, 107, 107, 107, 107, 107, 107,
  625. 107, 101, 107, 107, 107, 107, 55, 56, 57, 58,
  626. 1, 107, 3, 107, 1, 107, 3, 73, 1, 107,
  627. 3, 77, 107, 107, 15, 107, 107, 83, 107, 107,
  628. 86, 87, 88, 107, 107, 107, 23, 107, 1, 2,
  629. 3, 107, 1, 107, 3, 101, 107, 107, 39, 40,
  630. 107, 107, 39, 40, 107, 38, 39, 40, 107, 107,
  631. 107, 107, 107, 107, 55, 56, 57, 58, 55, 56,
  632. 57, 58, 55, 56, 57, 58, 39, 40, 107, 107,
  633. 39, 40, 107, 107, 107, 107, 107, 107, 107, 107,
  634. 107, 107, 55, 56, 57, 58, 55, 56, 57, 58,
  635. 1, 107, 107, 107, 107, 107, 107, 107, 107, 107,
  636. 107, 107, 107, 107, 15, 107, 107, 107, 19, 107,
  637. 107, 107, 107, 107, 107, 107, 107, 28, 107, 107,
  638. 107, 107, 107, 34, 107, 107, 37, 107, 107, 107,
  639. 107, 107, 107, 107, 107, 107, 107, 48,
  640. );
  641. static public $yy_shift_ofst = array(
  642. -23, 399, 399, 349, 99, 449, 449, 99, 349, 99,
  643. 99, -3, 99, 99, 249, 99, 99, 99, 99, 299,
  644. 99, 149, 199, 99, 99, 99, 99, 99, 99, 99,
  645. 99, 99, 99, 299, 99, 99, 49, 49, 499, 499,
  646. 499, 499, 499, 499, 1621, 1661, 1661, 1981, 2067, 2039,
  647. 2047, 2043, 1747, 1850, 1720, 1941, 1937, 1875, 1933, 2071,
  648. 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
  649. 2071, 2071, 1629, 1629, 522, 695, 2129, 171, 255, 129,
  650. 718, 707, 9, 255, 316, 255, 129, 129, 304, 337,
  651. 583, 1780, 244, 784, 221, 344, 294, 411, 40, 411,
  652. 485, 359, 440, -22, -22, 427, 432, 424, -22, 359,
  653. 437, 589, 227, 227, 227, 589, 227, 227, 227, 227,
  654. -23, -23, -23, -23, 1679, 1694, 561, 1910, 1956, 81,
  655. 674, 212, 461, -22, -22, -22, -14, -14, -22, 360,
  656. -22, -22, -22, -22, -14, 31, 321, -22, -22, 301,
  657. 321, -14, -14, -14, 31, -22, -22, -22, -14, -14,
  658. 589, 589, 227, 508, 589, 288, 227, 227, 288, 227,
  659. 227, -23, -23, -23, -23, -23, -23, 1573, 30, -12,
  660. 94, 144, 775, 342, 194, 103, 179, 258, 211, 141,
  661. 152, 68, 241, 209, 323, 387, 370, 368, 188, -8,
  662. 101, 556, 567, 563, 552, 539, 548, 574, 443, 558,
  663. 566, 582, 581, 584, 541, 543, 512, 519, 506, 476,
  664. 479, 488, 508, 502, 501, 531, 529, 510,
  665. );
  666. static public $yy_reduce_ofst = array(
  667. 460, 493, 551, 579, 605, 832, 806, 776, 690, 746,
  668. 716, 1134, 1216, 1242, 1160, 1298, 1022, 1052, 1078, 1104,
  669. 1268, 1488, 1514, 1432, 1462, 1324, 1350, 1406, 1380, 1186,
  670. 888, 996, 970, 940, 914, 858, 1552, 1582, 1745, 1690,
  671. 1781, 1820, 1792, 1662, 1974, 1930, 1756, 37, 37, 37,
  672. 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
  673. 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
  674. 37, 37, 37, 37, 114, -33, 6, -67, 56, 226,
  675. 317, 233, 331, 254, 77, 4, 276, 328, 190, 122,
  676. 429, 396, -23, 393, 74, -23, -23, 393, 176, 413,
  677. 176, 407, 381, 366, 364, -23, -23, 243, 372, 426,
  678. 428, 430, -23, -23, 382, 176, -23, -23, -23, -23,
  679. -23, 324, -23, -23, 537, 537, 537, 537, 537, 549,
  680. 542, 537, 537, 538, 538, 538, 533, 533, 538, 540,
  681. 538, 538, 538, 538, 533, 521, 518, 538, 538, 544,
  682. 535, 533, 533, 533, 562, 538, 538, 538, 533, 533,
  683. 550, 550, 113, 545, 550, 197, 113, 113, 197, 113,
  684. 113, 379, 395, -20, 97, -61, 25,
  685. );
  686. static public $yyExpectedTokens = array(
  687. array(),
  688. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  689. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  690. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  691. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  692. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  693. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  694. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  695. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  696. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  697. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  698. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 53, 54,
  699. 59,),
  700. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  701. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  702. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  703. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  704. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  705. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  706. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  707. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  708. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  709. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  710. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  711. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  712. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  713. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  714. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  715. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  716. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  717. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  718. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  719. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  720. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  721. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  722. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  723. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  724. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  725. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
  726. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,),
  727. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,),
  728. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,),
  729. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,),
  730. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,),
  731. array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,),
  732. array(1, 3, 26, 28, 34, 39, 40, 55, 56, 57, 58,),
  733. array(1, 3, 28, 34, 39, 40, 55, 56, 57, 58,),
  734. array(1, 3, 28, 34, 39, 40, 55, 56, 57, 58,),
  735. array(1, 3, 38, 39, 40, 55, 56, 57, 58,),
  736. array(1, 2, 3, 39, 40, 55, 56, 57, 58,),
  737. array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
  738. array(1, 3, 38, 39, 40, 55, 56, 57, 58,),
  739. array(1, 3, 23, 39, 40, 55, 56, 57, 58,),
  740. array(1, 3, 39, 40, 55, 56, 57, 58, 60,),
  741. array(1, 3, 39, 40, 53, 55, 56, 57, 58,),
  742. array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
  743. array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
  744. array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
  745. array(1, 3, 29, 39, 40, 55, 56, 57, 58,),
  746. array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
  747. array(1, 3, 39, 40, 55, 56, 57, 58,),
  748. array(1, 3, 39, 40, 55, 56, 57, 58,),
  749. array(1, 3, 39, 40, 55, 56, 57, 58,),
  750. array(1, 3, 39, 40, 55, 56, 57, 58,),
  751. array(1, 3, 39, 40, 55, 56, 57, 58,),
  752. array(1, 3, 39, 40, 55, 56, 57, 58,),
  753. array(1, 3, 39, 40, 55, 56, 57, 58,),
  754. array(1, 3, 39, 40, 55, 56, 57, 58,),
  755. array(1, 3, 39, 40, 55, 56, 57, 58,),
  756. array(1, 3, 39, 40, 55, 56, 57, 58,),
  757. array(1, 3, 39, 40, 55, 56, 57, 58,),
  758. array(1, 3, 39, 40, 55, 56, 57, 58,),
  759. array(1, 3, 39, 40, 55, 56, 57, 58,),
  760. array(3, 39, 40, 55, 56, 57, 58,),
  761. array(3, 39, 40, 55, 56, 57, 58,),
  762. array(16, 18, 49, 51, 54,),
  763. array(5, 11, 12, 13, 14, 16, 20, 21, 22, 27, 31, 32, 33, 59, 60,),
  764. array(1, 15, 19, 28, 34, 37, 48,),
  765. array(16, 18, 51, 54,),
  766. array(1, 28, 34,),
  767. array(16, 37, 54,),
  768. array(5, 11, 12, 13, 14, 16, 20, 21, 22, 27, 31, 32, 33, 59, 60,),
  769. array(11, 14, 18, 28, 30, 34,),
  770. array(11, 14, 18, 28, 34,),
  771. array(1, 28, 34,),
  772. array(17, 19, 48,),
  773. array(1, 28, 34,),
  774. array(16, 37, 54,),
  775. array(16, 37, 54,),
  776. array(19, 45, 52,),
  777. array(1, 2,),
  778. array(4, 5, 6, 7, 8, 11, 12, 13, 14, 20, 21, 22, 27, 31, 32, 33,),
  779. array(2, 11, 14, 17, 18, 19, 45, 48, 50, 52,),
  780. array(1, 15, 28, 34,),
  781. array(11, 14, 18, 50,),
  782. array(14, 16, 18, 54,),
  783. array(1, 15, 28, 34,),
  784. array(1, 15, 28, 34,),
  785. array(11, 14, 18,),
  786. array(17, 19, 48,),
  787. array(11, 14, 18,),
  788. array(19, 48,),
  789. array(16, 18,),
  790. array(28, 34,),
  791. array(28, 34,),
  792. array(28, 34,),
  793. array(1, 30,),
  794. array(1, 53,),
  795. array(16, 54,),
  796. array(28, 34,),
  797. array(16, 18,),
  798. array(1, 19,),
  799. array(19,),
  800. array(1,),
  801. array(1,),
  802. array(1,),
  803. array(19,),
  804. array(1,),
  805. array(1,),
  806. array(1,),
  807. array(1,),
  808. array(),
  809. array(),
  810. array(),
  811. array(),
  812. array(2, 11, 14, 18, 19, 45, 48, 50, 52, 53,),
  813. array(2, 11, 14, 17, 18, 19, 45, 48, 50, 52,),
  814. array(2, 11, 14, 18, 19, 45, 48, 50, 52,),
  815. array(2, 11, 14, 18, 19, 45, 48, 50, 52,),
  816. array(11, 14, 18, 19, 45, 48, 50, 52,),
  817. array(14, 16, 18, 35, 54,),
  818. array(11, 14, 18, 50,),
  819. array(17, 45, 52,),
  820. array(11, 14, 18,),
  821. array(28, 34,),
  822. array(28, 34,),
  823. array(28, 34,),
  824. array(45, 52,),
  825. array(45, 52,),
  826. array(28, 34,),
  827. array(14, 37,),
  828. array(28, 34,),
  829. array(28, 34,),
  830. array(28, 34,),
  831. array(28, 34,),
  832. array(45, 52,),
  833. array(16, 54,),
  834. array(45, 52,),
  835. array(28, 34,),
  836. array(28, 34,),
  837. array(17, 24,),
  838. array(45, 52,),
  839. array(45, 52,),
  840. array(45, 52,),
  841. array(45, 52,),
  842. array(16, 54,),
  843. array(28, 34,),
  844. array(28, 34,),
  845. array(28, 34,),
  846. array(45, 52,),
  847. array(45, 52,),
  848. array(19,),
  849. array(19,),
  850. array(1,),
  851. array(37,),
  852. array(19,),
  853. array(2,),
  854. array(1,),
  855. array(1,),
  856. array(2,),
  857. array(1,),
  858. array(1,),
  859. array(),
  860. array(),
  861. array(),
  862. array(),
  863. array(),
  864. array(),
  865. array(1, 2, 3, 37, 39, 40, 48, 55, 56, 57, 58,),
  866. array(15, 23, 25, 28, 34, 36, 38, 45,),
  867. array(15, 17, 28, 34, 37, 48,),
  868. array(15, 24, 28, 34, 46,),
  869. array(15, 24, 28, 34, 46,),
  870. array(11, 14, 18, 50,),
  871. array(37, 45, 48, 53,),
  872. array(24, 46, 60,),
  873. array(24, 46, 53,),
  874. array(30, 37, 48,),
  875. array(8, 10,),
  876. array(36, 38,),
  877. array(23, 36,),
  878. array(45, 53,),
  879. array(36, 38,),
  880. array(36, 38,),
  881. array(24, 46,),
  882. array(17, 45,),
  883. array(37, 48,),
  884. array(37, 48,),
  885. array(37, 48,),
  886. array(18, 50,),
  887. array(9, 10,),
  888. array(36, 53,),
  889. array(51,),
  890. array(18,),
  891. array(18,),
  892. array(18,),
  893. array(18,),
  894. array(18,),
  895. array(18,),
  896. array(45,),
  897. array(35,),
  898. array(35,),
  899. array(18,),
  900. array(17,),
  901. array(15,),
  902. array(15,),
  903. array(9,),
  904. array(25,),
  905. array(16,),
  906. array(18,),
  907. array(38,),
  908. array(37,),
  909. array(51,),
  910. array(37,),
  911. array(53,),
  912. array(53,),
  913. array(18,),
  914. array(18,),
  915. array(41,),
  916. array(),
  917. array(),
  918. array(),
  919. array(),
  920. array(),
  921. array(),
  922. array(),
  923. array(),
  924. array(),
  925. array(),
  926. array(),
  927. array(),
  928. array(),
  929. array(),
  930. array(),
  931. array(),
  932. array(),
  933. array(),
  934. array(),
  935. array(),
  936. array(),
  937. array(),
  938. array(),
  939. array(),
  940. array(),
  941. array(),
  942. array(),
  943. array(),
  944. array(),
  945. array(),
  946. array(),
  947. array(),
  948. array(),
  949. array(),
  950. array(),
  951. array(),
  952. array(),
  953. array(),
  954. array(),
  955. array(),
  956. array(),
  957. array(),
  958. array(),
  959. array(),
  960. array(),
  961. array(),
  962. array(),
  963. array(),
  964. array(),
  965. array(),
  966. array(),
  967. array(),
  968. array(),
  969. array(),
  970. array(),
  971. array(),
  972. array(),
  973. array(),
  974. array(),
  975. array(),
  976. array(),
  977. array(),
  978. array(),
  979. array(),
  980. array(),
  981. array(),
  982. array(),
  983. array(),
  984. array(),
  985. array(),
  986. array(),
  987. array(),
  988. array(),
  989. array(),
  990. array(),
  991. array(),
  992. array(),
  993. array(),
  994. array(),
  995. array(),
  996. array(),
  997. array(),
  998. array(),
  999. array(),
  1000. array(),
  1001. array(),
  1002. array(),
  1003. array(),
  1004. array(),
  1005. array(),
  1006. array(),
  1007. array(),
  1008. array(),
  1009. array(),
  1010. array(),
  1011. );
  1012. static public $yy_default = array(
  1013. 334, 509, 509, 494, 509, 509, 509, 473, 509, 473,
  1014. 473, 509, 509, 509, 509, 509, 509, 509, 509, 509,
  1015. 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
  1016. 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
  1017. 509, 509, 509, 509, 375, 375, 354, 509, 509, 509,
  1018. 509, 509, 509, 509, 509, 509, 347, 380, 509, 497,
  1019. 386, 495, 496, 471, 347, 359, 380, 472, 377, 397,
  1020. 382, 387, 401, 402, 509, 509, 413, 509, 375, 509,
  1021. 509, 375, 375, 375, 428, 375, 509, 509, 485, 366,
  1022. 323, 427, 389, 438, 509, 389, 389, 438, 428, 438,
  1023. 428, 509, 375, 375, 375, 389, 389, 509, 356, 509,
  1024. 369, 482, 400, 406, 371, 428, 396, 405, 389, 392,
  1025. 480, 332, 404, 393, 427, 427, 427, 427, 427, 509,
  1026. 440, 454, 438, 348, 364, 344, 436, 463, 365, 438,
  1027. 352, 355, 361, 357, 464, 509, 433, 362, 358, 509,
  1028. 431, 434, 435, 466, 509, 363, 350, 351, 465, 432,
  1029. 486, 460, 367, 438, 483, 475, 372, 395, 474, 370,
  1030. 422, 438, 479, 438, 479, 479, 332, 413, 409, 413,
  1031. 403, 403, 439, 413, 403, 403, 413, 330, 509, 509,
  1032. 409, 509, 509, 403, 409, 423, 413, 509, 509, 509,
  1033. 509, 509, 509, 509, 509, 509, 509, 509, 409, 509,
  1034. 411, 509, 509, 509, 509, 509, 383, 509, 509, 509,
  1035. 484, 509, 454, 418, 509, 509, 509, 415, 376, 388,
  1036. 447, 481, 446, 454, 445, 448, 453, 360, 468, 469,
  1037. 384, 459, 444, 450, 415, 490, 476, 477, 407, 368,
  1038. 478, 456, 457, 458, 416, 417, 443, 390, 391, 442,
  1039. 441, 425, 426, 437, 374, 353, 329, 331, 333, 328,
  1040. 327, 324, 325, 326, 335, 336, 341, 343, 373, 340,
  1041. 339, 337, 338, 408, 410, 506, 498, 499, 505, 461,
  1042. 455, 470, 342, 500, 503, 491, 493, 492, 501, 508,
  1043. 502, 504, 507, 462, 430, 398, 399, 421, 420, 419,
  1044. 412, 414, 418, 424, 451, 489, 394, 429, 488, 487,
  1045. 449, 452, 467,
  1046. );
  1047. public static $yyFallback = array();
  1048. public $yyTraceFILE;
  1049. public $yyTracePrompt;
  1050. public $yyidx;
  1051. public $yyerrcnt;
  1052. public $yystack = array();
  1053. public $yyTokenName = array(
  1054. '$', 'VERT', 'COLON', 'UNIMATH',
  1055. 'PHP', 'TEXT', 'STRIPON', 'STRIPOFF',
  1056. 'LITERALSTART', 'LITERALEND', 'LITERAL', 'SIMPELOUTPUT',
  1057. 'SIMPLETAG', 'SMARTYBLOCKCHILDPARENT', 'LDEL', 'RDEL',
  1058. 'DOLLARID', 'EQUAL', 'ID', 'PTR',
  1059. 'LDELMAKENOCACHE', 'LDELIF', 'LDELFOR', 'SEMICOLON',
  1060. 'INCDEC', 'TO', 'STEP', 'LDELFOREACH',
  1061. 'SPACE', 'AS', 'APTR', 'LDELSETFILTER',
  1062. 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER',
  1063. 'COMMA', 'OPENP', 'CLOSEP', 'MATH',
  1064. 'ISIN', 'QMARK', 'NOT', 'TYPECAST',
  1065. 'HEX', 'DOT', 'INSTANCEOF', 'SINGLEQUOTESTRING',
  1066. 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH',
  1067. 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP',
  1068. 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'QUOTE',
  1069. 'BACKTICK', 'error', 'start', 'template',
  1070. 'literal_e2', 'literal_e1', 'smartytag', 'tagbody',
  1071. 'tag', 'outattr', 'eqoutattr', 'varindexed',
  1072. 'output', 'attributes', 'variable', 'value',
  1073. 'expr', 'modifierlist', 'statement', 'statements',
  1074. 'foraction', 'varvar', 'modparameters', 'attribute',
  1075. 'ternary', 'array', 'tlop', 'lop',
  1076. 'scond', 'function', 'ns1', 'doublequoted_with_quotes',
  1077. 'static_class_access', 'object', 'arrayindex', 'indexdef',
  1078. 'varvarele', 'objectchain', 'objectelement', 'method',
  1079. 'params', 'modifier', 'modparameter', 'arrayelements',
  1080. 'arrayelement', 'doublequoted', 'doublequotedcontent',
  1081. );
  1082. public static $yyRuleName = array(
  1083. 'start ::= template',
  1084. 'template ::= template PHP',
  1085. 'template ::= template TEXT',
  1086. 'template ::= template STRIPON',
  1087. 'template ::= template STRIPOFF',
  1088. 'template ::= template LITERALSTART literal_e2 LITERALEND',
  1089. 'literal_e2 ::= literal_e1 LITERALSTART literal_e1 LITERALEND',
  1090. 'literal_e2 ::= literal_e1',
  1091. 'literal_e1 ::= literal_e1 LITERAL',
  1092. 'literal_e1 ::=',
  1093. 'template ::= template smartytag',
  1094. 'template ::=',
  1095. 'smartytag ::= SIMPELOUTPUT',
  1096. 'smartytag ::= SIMPLETAG',
  1097. 'smartytag ::= SMARTYBLOCKCHILDPARENT',
  1098. 'smartytag ::= LDEL tagbody RDEL',
  1099. 'smartytag ::= tag RDEL',
  1100. 'tagbody ::= outattr',
  1101. 'tagbody ::= DOLLARID eqoutattr',
  1102. 'tagbody ::= varindexed eqoutattr',
  1103. 'eqoutattr ::= EQUAL outattr',
  1104. 'outattr ::= output attributes',
  1105. 'output ::= variable',
  1106. 'output ::= value',
  1107. 'output ::= expr',
  1108. 'tag ::= LDEL ID attributes',
  1109. 'tag ::= LDEL ID',
  1110. 'tag ::= LDEL ID modifierlist attributes',
  1111. 'tag ::= LDEL ID PTR ID attributes',
  1112. 'tag ::= LDEL ID PTR ID modifierlist attributes',
  1113. 'tag ::= LDELMAKENOCACHE DOLLARID',
  1114. 'tag ::= LDELIF expr',
  1115. 'tag ::= LDELIF expr attributes',
  1116. 'tag ::= LDELIF statement',
  1117. 'tag ::= LDELIF statement attributes',
  1118. 'tag ::= LDELFOR statements SEMICOLON expr SEMICOLON varindexed foraction attributes',
  1119. 'foraction ::= EQUAL expr',
  1120. 'foraction ::= INCDEC',
  1121. 'tag ::= LDELFOR statement TO expr attributes',
  1122. 'tag ::= LDELFOR statement TO expr STEP expr attributes',
  1123. 'tag ::= LDELFOREACH SPACE expr AS varvar attributes',
  1124. 'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes',
  1125. 'tag ::= LDELFOREACH attributes',
  1126. 'tag ::= LDELSETFILTER ID modparameters',
  1127. 'tag ::= LDELSETFILTER ID modparameters modifierlist',
  1128. 'smartytag ::= CLOSETAG',
  1129. 'tag ::= LDELSLASH ID',
  1130. 'tag ::= LDELSLASH ID modifierlist',
  1131. 'tag ::= LDELSLASH ID PTR ID',
  1132. 'tag ::= LDELSLASH ID PTR ID modifierlist',
  1133. 'attributes ::= attributes attribute',
  1134. 'attributes ::= attribute',
  1135. 'attributes ::=',
  1136. 'attribute ::= SPACE ID EQUAL ID',
  1137. 'attribute ::= ATTR expr',
  1138. 'attribute ::= ATTR value',
  1139. 'attribute ::= SPACE ID',
  1140. 'attribute ::= SPACE expr',
  1141. 'attribute ::= SPACE value',
  1142. 'attribute ::= SPACE INTEGER EQUAL expr',
  1143. 'statements ::= statement',
  1144. 'statements ::= statements COMMA statement',
  1145. 'statement ::= DOLLARID EQUAL INTEGER',
  1146. 'statement ::= DOLLARID EQUAL expr',
  1147. 'statement ::= varindexed EQUAL expr',
  1148. 'statement ::= OPENP statement CLOSEP',
  1149. 'expr ::= value',
  1150. 'expr ::= ternary',
  1151. 'expr ::= DOLLARID COLON ID',
  1152. 'expr ::= expr MATH value',
  1153. 'expr ::= expr UNIMATH value',
  1154. 'expr ::= array',
  1155. 'expr ::= expr modifierlist',
  1156. 'expr ::= expr tlop value',
  1157. 'expr ::= expr lop expr',
  1158. 'expr ::= expr scond',
  1159. 'expr ::= expr ISIN array',
  1160. 'expr ::= expr ISIN value',
  1161. 'ternary ::= OPENP expr CLOSEP QMARK DOLLARID COLON expr',
  1162. 'ternary ::= OPENP expr CLOSEP QMARK expr COLON expr',
  1163. 'value ::= variable',
  1164. 'value ::= UNIMATH value',
  1165. 'value ::= NOT value',
  1166. 'value ::= TYPECAST value',
  1167. 'value ::= variable INCDEC',
  1168. 'value ::= HEX',
  1169. 'value ::= INTEGER',
  1170. 'value ::= INTEGER DOT INTEGER',
  1171. 'value ::= INTEGER DOT',
  1172. 'value ::= DOT INTEGER',
  1173. 'value ::= ID',
  1174. 'value ::= function',
  1175. 'value ::= OPENP expr CLOSEP',
  1176. 'value ::= variable INSTANCEOF ns1',
  1177. 'value ::= variable INSTANCEOF variable',
  1178. 'value ::= SINGLEQUOTESTRING',
  1179. 'value ::= doublequoted_with_quotes',
  1180. 'value ::= varindexed DOUBLECOLON static_class_access',
  1181. 'value ::= smartytag',
  1182. 'value ::= value modifierlist',
  1183. 'value ::= NAMESPACE',
  1184. 'value ::= ns1 DOUBLECOLON static_class_access',
  1185. 'ns1 ::= ID',
  1186. 'ns1 ::= NAMESPACE',
  1187. 'variable ::= DOLLARID',
  1188. 'variable ::= varindexed',
  1189. 'variable ::= varvar AT ID',
  1190. 'variable ::= object',
  1191. 'variable ::= HATCH ID HATCH',
  1192. 'variable ::= HATCH ID HATCH arrayindex',
  1193. 'variable ::= HATCH variable HATCH',
  1194. 'variable ::= HATCH variable HATCH arrayindex',
  1195. 'varindexed ::= DOLLARID arrayindex',
  1196. 'varindexed ::= varvar arrayindex',
  1197. 'arrayindex ::= arrayindex indexdef',
  1198. 'arrayindex ::=',
  1199. 'indexdef ::= DOT DOLLARID',
  1200. 'indexdef ::= DOT varvar',
  1201. 'indexdef ::= DOT varvar AT ID',
  1202. 'indexdef ::= DOT ID',
  1203. 'indexdef ::= DOT INTEGER',
  1204. 'indexdef ::= DOT LDEL expr RDEL',
  1205. 'indexdef ::= OPENB ID CLOSEB',
  1206. 'indexdef ::= OPENB ID DOT ID CLOSEB',
  1207. 'indexdef ::= OPENB SINGLEQUOTESTRING CLOSEB',
  1208. 'indexdef ::= OPENB INTEGER CLOSEB',
  1209. 'indexdef ::= OPENB DOLLARID CLOSEB',
  1210. 'indexdef ::= OPENB variable CLOSEB',
  1211. 'indexdef ::= OPENB value CLOSEB',
  1212. 'indexdef ::= OPENB expr CLOSEB',
  1213. 'indexdef ::= OPENB CLOSEB',
  1214. 'varvar ::= DOLLARID',
  1215. 'varvar ::= DOLLAR',
  1216. 'varvar ::= varvar varvarele',
  1217. 'varvarele ::= ID',
  1218. 'varvarele ::= SIMPELOUTPUT',
  1219. 'varvarele ::= LDEL expr RDEL',
  1220. 'object ::= varindexed objectchain',
  1221. 'objectchain ::= objectelement',
  1222. 'objectchain ::= objectchain objectelement',
  1223. 'objectelement ::= PTR ID arrayindex',
  1224. 'objectelement ::= PTR varvar arrayindex',
  1225. 'objectelement ::= PTR LDEL expr RDEL arrayindex',
  1226. 'objectelement ::= PTR ID LDEL expr RDEL arrayindex',
  1227. 'objectelement ::= PTR method',
  1228. 'function ::= ns1 OPENP params CLOSEP',
  1229. 'method ::= ID OPENP params CLOSEP',
  1230. 'method ::= DOLLARID OPENP params CLOSEP',
  1231. 'params ::= params COMMA expr',
  1232. 'params ::= expr',
  1233. 'params ::=',
  1234. 'modifierlist ::= modifierlist modifier modparameters',
  1235. 'modifierlist ::= modifier modparameters',
  1236. 'modifier ::= VERT AT ID',
  1237. 'modifier ::= VERT ID',
  1238. 'modparameters ::= modparameters modparameter',
  1239. 'modparameters ::=',
  1240. 'modparameter ::= COLON value',
  1241. 'modparameter ::= COLON array',
  1242. 'static_class_access ::= method',
  1243. 'static_class_access ::= method objectchain',
  1244. 'static_class_access ::= ID',
  1245. 'static_class_access ::= DOLLARID arrayindex',
  1246. 'static_class_access ::= DOLLARID arrayindex objectchain',
  1247. 'lop ::= LOGOP',
  1248. 'lop ::= SLOGOP',
  1249. 'tlop ::= TLOGOP',
  1250. 'scond ::= SINGLECOND',
  1251. 'array ::= OPENB arrayelements CLOSEB',
  1252. 'arrayelements ::= arrayelement',
  1253. 'arrayelements ::= arrayelements COMMA arrayelement',
  1254. 'arrayelements ::=',
  1255. 'arrayelement ::= value APTR expr',
  1256. 'arrayelement ::= ID APTR expr',
  1257. 'arrayelement ::= expr',
  1258. 'doublequoted_with_quotes ::= QUOTE QUOTE',
  1259. 'doublequoted_with_quotes ::= QUOTE doublequoted QUOTE',
  1260. 'doublequoted ::= doublequoted doublequotedcontent',
  1261. 'doublequoted ::= doublequotedcontent',
  1262. 'doublequotedcontent ::= BACKTICK variable BACKTICK',
  1263. 'doublequotedcontent ::= BACKTICK expr BACKTICK',
  1264. 'doublequotedcontent ::= DOLLARID',
  1265. 'doublequotedcontent ::= LDEL variable RDEL',
  1266. 'doublequotedcontent ::= LDEL expr RDEL',
  1267. 'doublequotedcontent ::= smartytag',
  1268. 'doublequotedcontent ::= TEXT',
  1269. );
  1270. public static $yyRuleInfo = array(
  1271. array(0 => 62, 1 => 1),
  1272. array(0 => 63, 1 => 2),
  1273. array(0 => 63, 1 => 2),
  1274. array(0 => 63, 1 => 2),
  1275. array(0 => 63, 1 => 2),
  1276. array(0 => 63, 1 => 4),
  1277. array(0 => 64, 1 => 4),
  1278. array(0 => 64, 1 => 1),
  1279. array(0 => 65, 1 => 2),
  1280. array(0 => 65, 1 => 0),
  1281. array(0 => 63, 1 => 2),
  1282. array(0 => 63, 1 => 0),
  1283. array(0 => 66, 1 => 1),
  1284. array(0 => 66, 1 => 1),
  1285. array(0 => 66, 1 => 1),
  1286. array(0 => 66, 1 => 3),
  1287. array(0 => 66, 1 => 2),
  1288. array(0 => 67, 1 => 1),
  1289. array(0 => 67, 1 => 2),
  1290. array(0 => 67, 1 => 2),
  1291. array(0 => 70, 1 => 2),
  1292. array(0 => 69, 1 => 2),
  1293. array(0 => 72, 1 => 1),
  1294. array(0 => 72, 1 => 1),
  1295. array(0 => 72, 1 => 1),
  1296. array(0 => 68, 1 => 3),
  1297. array(0 => 68, 1 => 2),
  1298. array(0 => 68, 1 => 4),
  1299. array(0 => 68, 1 => 5),
  1300. array(0 => 68, 1 => 6),
  1301. array(0 => 68, 1 => 2),
  1302. array(0 => 68, 1 => 2),
  1303. array(0 => 68, 1 => 3),
  1304. array(0 => 68, 1 => 2),
  1305. array(0 => 68, 1 => 3),
  1306. array(0 => 68, 1 => 8),
  1307. array(0 => 80, 1 => 2),
  1308. array(0 => 80, 1 => 1),
  1309. array(0 => 68, 1 => 5),
  1310. array(0 => 68, 1 => 7),
  1311. array(0 => 68, 1 => 6),
  1312. array(0 => 68, 1 => 8),
  1313. array(0 => 68, 1 => 2),
  1314. array(0 => 68, 1 => 3),
  1315. array(0 => 68, 1 => 4),
  1316. array(0 => 66, 1 => 1),
  1317. array(0 => 68, 1 => 2),
  1318. array(0 => 68, 1 => 3),
  1319. array(0 => 68, 1 => 4),
  1320. array(0 => 68, 1 => 5),
  1321. array(0 => 73, 1 => 2),
  1322. array(0 => 73, 1 => 1),
  1323. array(0 => 73, 1 => 0),
  1324. array(0 => 83, 1 => 4),
  1325. array(0 => 83, 1 => 2),
  1326. array(0 => 83, 1 => 2),
  1327. array(0 => 83, 1 => 2),
  1328. array(0 => 83, 1 => 2),
  1329. array(0 => 83, 1 => 2),
  1330. array(0 => 83, 1 => 4),
  1331. array(0 => 79, 1 => 1),
  1332. array(0 => 79, 1 => 3),
  1333. array(0 => 78, 1 => 3),
  1334. array(0 => 78, 1 => 3),
  1335. array(0 => 78, 1 => 3),
  1336. array(0 => 78, 1 => 3),
  1337. array(0 => 76, 1 => 1),
  1338. array(0 => 76, 1 => 1),
  1339. array(0 => 76, 1 => 3),
  1340. array(0 => 76, 1 => 3),
  1341. array(0 => 76, 1 => 3),
  1342. array(0 => 76, 1 => 1),
  1343. array(0 => 76, 1 => 2),
  1344. array(0 => 76, 1 => 3),
  1345. array(0 => 76, 1 => 3),
  1346. array(0 => 76, 1 => 2),
  1347. array(0 => 76, 1 => 3),
  1348. array(0 => 76, 1 => 3),
  1349. array(0 => 84, 1 => 7),
  1350. array(0 => 84, 1 => 7),
  1351. array(0 => 75, 1 => 1),
  1352. array(0 => 75, 1 => 2),
  1353. array(0 => 75, 1 => 2),
  1354. array(0 => 75, 1 => 2),
  1355. array(0 => 75, 1 => 2),
  1356. array(0 => 75, 1 => 1),
  1357. array(0 => 75, 1 => 1),
  1358. array(0 => 75, 1 => 3),
  1359. array(0 => 75, 1 => 2),
  1360. array(0 => 75, 1 => 2),
  1361. array(0 => 75, 1 => 1),
  1362. array(0 => 75, 1 => 1),
  1363. array(0 => 75, 1 => 3),
  1364. array(0 => 75, 1 => 3),
  1365. array(0 => 75, 1 => 3),
  1366. array(0 => 75, 1 => 1),
  1367. array(0 => 75, 1 => 1),
  1368. array(0 => 75, 1 => 3),
  1369. array(0 => 75, 1 => 1),
  1370. array(0 => 75, 1 => 2),
  1371. array(0 => 75, 1 => 1),
  1372. array(0 => 75, 1 => 3),
  1373. array(0 => 90, 1 => 1),
  1374. array(0 => 90, 1 => 1),
  1375. array(0 => 74, 1 => 1),
  1376. array(0 => 74, 1 => 1),
  1377. array(0 => 74, 1 => 3),
  1378. array(0 => 74, 1 => 1),
  1379. array(0 => 74, 1 => 3),
  1380. array(0 => 74, 1 => 4),
  1381. array(0 => 74, 1 => 3),
  1382. array(0 => 74, 1 => 4),
  1383. array(0 => 71, 1 => 2),
  1384. array(0 => 71, 1 => 2),
  1385. array(0 => 94, 1 => 2),
  1386. array(0 => 94, 1 => 0),
  1387. array(0 => 95, 1 => 2),
  1388. array(0 => 95, 1 => 2),
  1389. array(0 => 95, 1 => 4),
  1390. array(0 => 95, 1 => 2),
  1391. array(0 => 95, 1 => 2),
  1392. array(0 => 95, 1 => 4),
  1393. array(0 => 95, 1 => 3),
  1394. array(0 => 95, 1 => 5),
  1395. array(0 => 95, 1 => 3),
  1396. array(0 => 95, 1 => 3),
  1397. array(0 => 95, 1 => 3),
  1398. array(0 => 95, 1 => 3),
  1399. array(0 => 95, 1 => 3),
  1400. array(0 => 95, 1 => 3),
  1401. array(0 => 95, 1 => 2),
  1402. array(0 => 81, 1 => 1),
  1403. array(0 => 81, 1 => 1),
  1404. array(0 => 81, 1 => 2),
  1405. array(0 => 96, 1 => 1),
  1406. array(0 => 96, 1 => 1),
  1407. array(0 => 96, 1 => 3),
  1408. array(0 => 93, 1 => 2),
  1409. array(0 => 97, 1 => 1),
  1410. array(0 => 97, 1 => 2),
  1411. array(0 => 98, 1 => 3),
  1412. array(0 => 98, 1 => 3),
  1413. array(0 => 98, 1 => 5),
  1414. array(0 => 98, 1 => 6),
  1415. array(0 => 98, 1 => 2),
  1416. array(0 => 89, 1 => 4),
  1417. array(0 => 99, 1 => 4),
  1418. array(0 => 99, 1 => 4),
  1419. array(0 => 100, 1 => 3),
  1420. array(0 => 100, 1 => 1),
  1421. array(0 => 100, 1 => 0),
  1422. array(0 => 77, 1 => 3),
  1423. array(0 => 77, 1 => 2),
  1424. array(0 => 101, 1 => 3),
  1425. array(0 => 101, 1 => 2),
  1426. array(0 => 82, 1 => 2),
  1427. array(0 => 82, 1 => 0),
  1428. array(0 => 102, 1 => 2),
  1429. array(0 => 102, 1 => 2),
  1430. array(0 => 92, 1 => 1),
  1431. array(0 => 92, 1 => 2),
  1432. array(0 => 92, 1 => 1),
  1433. array(0 => 92, 1 => 2),
  1434. array(0 => 92, 1 => 3),
  1435. array(0 => 87, 1 => 1),
  1436. array(0 => 87, 1 => 1),
  1437. array(0 => 86, 1 => 1),
  1438. array(0 => 88, 1 => 1),
  1439. array(0 => 85, 1 => 3),
  1440. array(0 => 103, 1 => 1),
  1441. array(0 => 103, 1 => 3),
  1442. array(0 => 103, 1 => 0),
  1443. array(0 => 104, 1 => 3),
  1444. array(0 => 104, 1 => 3),
  1445. array(0 => 104, 1 => 1),
  1446. array(0 => 91, 1 => 2),
  1447. array(0 => 91, 1 => 3),
  1448. array(0 => 105, 1 => 2),
  1449. array(0 => 105, 1 => 1),
  1450. array(0 => 106, 1 => 3),
  1451. array(0 => 106, 1 => 3),
  1452. array(0 => 106, 1 => 1),
  1453. array(0 => 106, 1 => 3),
  1454. array(0 => 106, 1 => 3),
  1455. array(0 => 106, 1 => 1),
  1456. array(0 => 106, 1 => 1),
  1457. );
  1458. public static $yyReduceMap = array(
  1459. 0 => 0,
  1460. 1 => 1,
  1461. 2 => 2,
  1462. 3 => 3,
  1463. 4 => 4,
  1464. 5 => 5,
  1465. 6 => 6,
  1466. 7 => 7,
  1467. 22 => 7,
  1468. 23 => 7,
  1469. 24 => 7,
  1470. 37 => 7,
  1471. 57 => 7,
  1472. 58 => 7,
  1473. 66 => 7,
  1474. 67 => 7,
  1475. 71 => 7,
  1476. 80 => 7,
  1477. 85 => 7,
  1478. 86 => 7,
  1479. 91 => 7,
  1480. 95 => 7,
  1481. 96 => 7,
  1482. 100 => 7,
  1483. 102 => 7,
  1484. 107 => 7,
  1485. 169 => 7,
  1486. 174 => 7,
  1487. 8 => 8,
  1488. 9 => 9,
  1489. 10 => 10,
  1490. 12 => 12,
  1491. 13 => 13,
  1492. 14 => 14,
  1493. 15 => 15,
  1494. 16 => 16,
  1495. 17 => 17,
  1496. 18 => 18,
  1497. 19 => 19,
  1498. 20 => 20,
  1499. 21 => 21,
  1500. 25 => 25,
  1501. 26 => 26,
  1502. 27 => 27,
  1503. 28 => 28,
  1504. 29 => 29,
  1505. 30 => 30,
  1506. 31 => 31,
  1507. 32 => 32,
  1508. 34 => 32,
  1509. 33 => 33,
  1510. 35 => 35,
  1511. 36 => 36,
  1512. 38 => 38,
  1513. 39 => 39,
  1514. 40 => 40,
  1515. 41 => 41,
  1516. 42 => 42,
  1517. 43 => 43,
  1518. 44 => 44,
  1519. 45 => 45,
  1520. 46 => 46,
  1521. 47 => 47,
  1522. 48 => 48,
  1523. 49 => 49,
  1524. 50 => 50,
  1525. 51 => 51,
  1526. 60 => 51,
  1527. 149 => 51,
  1528. 153 => 51,
  1529. 157 => 51,
  1530. 158 => 51,
  1531. 52 => 52,
  1532. 150 => 52,
  1533. 156 => 52,
  1534. 53 => 53,
  1535. 54 => 54,
  1536. 55 => 54,
  1537. 56 => 56,
  1538. 134 => 56,
  1539. 59 => 59,
  1540. 61 => 61,
  1541. 62 => 62,
  1542. 63 => 62,
  1543. 64 => 64,
  1544. 65 => 65,
  1545. 68 => 68,
  1546. 69 => 69,
  1547. 70 => 69,
  1548. 72 => 72,
  1549. 99 => 72,
  1550. 73 => 73,
  1551. 74 => 74,
  1552. 75 => 75,
  1553. 76 => 76,
  1554. 77 => 77,
  1555. 78 => 78,
  1556. 79 => 79,
  1557. 81 => 81,
  1558. 83 => 81,
  1559. 84 => 81,
  1560. 114 => 81,
  1561. 82 => 82,
  1562. 87 => 87,
  1563. 88 => 88,
  1564. 89 => 89,
  1565. 90 => 90,
  1566. 92 => 92,
  1567. 93 => 93,
  1568. 94 => 93,
  1569. 97 => 97,
  1570. 98 => 98,
  1571. 101 => 101,
  1572. 103 => 103,
  1573. 104 => 104,
  1574. 105 => 105,
  1575. 106 => 106,
  1576. 108 => 108,
  1577. 109 => 109,
  1578. 110 => 110,
  1579. 111 => 111,
  1580. 112 => 112,
  1581. 113 => 113,
  1582. 115 => 115,
  1583. 171 => 115,
  1584. 116 => 116,
  1585. 117 => 117,
  1586. 118 => 118,
  1587. 119 => 119,
  1588. 120 => 120,
  1589. 121 => 121,
  1590. 129 => 121,
  1591. 122 => 122,
  1592. 123 => 123,
  1593. 124 => 124,
  1594. 125 => 124,
  1595. 127 => 124,
  1596. 128 => 124,
  1597. 126 => 126,
  1598. 130 => 130,
  1599. 131 => 131,
  1600. 132 => 132,
  1601. 175 => 132,
  1602. 133 => 133,
  1603. 135 => 135,
  1604. 136 => 136,
  1605. 137 => 137,
  1606. 138 => 138,
  1607. 139 => 139,
  1608. 140 => 140,
  1609. 141 => 141,
  1610. 142 => 142,
  1611. 143 => 143,
  1612. 144 => 144,
  1613. 145 => 145,
  1614. 146 => 146,
  1615. 147 => 147,
  1616. 148 => 148,
  1617. 151 => 151,
  1618. 152 => 152,
  1619. 154 => 154,
  1620. 155 => 155,
  1621. 159 => 159,
  1622. 160 => 160,
  1623. 161 => 161,
  1624. 162 => 162,
  1625. 163 => 163,
  1626. 164 => 164,
  1627. 165 => 165,
  1628. 166 => 166,
  1629. 167 => 167,
  1630. 168 => 168,
  1631. 170 => 170,
  1632. 172 => 172,
  1633. 173 => 173,
  1634. 176 => 176,
  1635. 177 => 177,
  1636. 178 => 178,
  1637. 179 => 179,
  1638. 182 => 179,
  1639. 180 => 180,
  1640. 183 => 180,
  1641. 181 => 181,
  1642. 184 => 184,
  1643. 185 => 185,
  1644. ); /* Index of top element in stack */
  1645. private $_retvalue; /* Shifts left before out of the error */
  1646. /**
  1647. * constructor
  1648. *
  1649. * @param Smarty_Internal_Templatelexer $lex
  1650. * @param Smarty_Internal_TemplateCompilerBase $compiler
  1651. */
  1652. function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler)
  1653. {
  1654. $this->lex = $lex;
  1655. $this->compiler = $compiler;
  1656. $this->template = $this->compiler->template;
  1657. $this->smarty = $this->template->smarty;
  1658. $this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false;
  1659. $this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template();
  1660. } /* The parser's stack */
  1661. /**
  1662. * insert PHP code in current buffer
  1663. *
  1664. * @param string $code
  1665. */
  1666. public function insertPhpCode($code)
  1667. {
  1668. $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Tag($this, $code));
  1669. }
  1670. /**
  1671. * error rundown
  1672. *
  1673. */
  1674. public function errorRunDown()
  1675. {
  1676. while ($this->yystack !== array()) {
  1677. $this->yy_pop_parser_stack();
  1678. }
  1679. if (is_resource($this->yyTraceFILE)) {
  1680. fclose($this->yyTraceFILE);
  1681. }
  1682. }
  1683. /**
  1684. * merge PHP code with prefix code and return parse tree tag object
  1685. *
  1686. * @param string $code
  1687. *
  1688. * @return Smarty_Internal_ParseTree_Tag
  1689. */
  1690. public function mergePrefixCode($code)
  1691. {
  1692. $tmp = '';
  1693. foreach ($this->compiler->prefix_code as $preCode) {
  1694. $tmp .= $preCode;
  1695. }
  1696. $this->compiler->prefix_code = array();
  1697. $tmp .= $code;
  1698. return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true));
  1699. }
  1700. public function Trace($TraceFILE, $zTracePrompt)
  1701. {
  1702. if (!$TraceFILE) {
  1703. $zTracePrompt = 0;
  1704. } else if (!$zTracePrompt) {
  1705. $TraceFILE = 0;
  1706. }
  1707. $this->yyTraceFILE = $TraceFILE;
  1708. $this->yyTracePrompt = $zTracePrompt;
  1709. }
  1710. public function PrintTrace()
  1711. {
  1712. $this->yyTraceFILE = fopen('php://output', 'w');
  1713. $this->yyTracePrompt = '<br>';
  1714. }
  1715. public function tokenName($tokenType)
  1716. {
  1717. if ($tokenType === 0) {
  1718. return 'End of Input';
  1719. }
  1720. if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
  1721. return $this->yyTokenName[ $tokenType ];
  1722. } else {
  1723. return 'Unknown';
  1724. }
  1725. }
  1726. public static function yy_destructor($yymajor, $yypminor)
  1727. {
  1728. switch ($yymajor) {
  1729. default:
  1730. break; /* If no destructor action specified: do nothing */
  1731. }
  1732. }
  1733. public function yy_pop_parser_stack()
  1734. {
  1735. if (empty($this->yystack)) {
  1736. return;
  1737. }
  1738. $yytos = array_pop($this->yystack);
  1739. if ($this->yyTraceFILE && $this->yyidx >= 0) {
  1740. fwrite($this->yyTraceFILE,
  1741. $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] .
  1742. "\n");
  1743. }
  1744. $yymajor = $yytos->major;
  1745. self::yy_destructor($yymajor, $yytos->minor);
  1746. $this->yyidx--;
  1747. return $yymajor;
  1748. }
  1749. public function __destruct()
  1750. {
  1751. while ($this->yystack !== Array()) {
  1752. $this->yy_pop_parser_stack();
  1753. }
  1754. if (is_resource($this->yyTraceFILE)) {
  1755. fclose($this->yyTraceFILE);
  1756. }
  1757. }
  1758. public function yy_get_expected_tokens($token)
  1759. {
  1760. static $res3 = array();
  1761. static $res4 = array();
  1762. $state = $this->yystack[ $this->yyidx ]->stateno;
  1763. $expected = self::$yyExpectedTokens[ $state ];
  1764. if (isset($res3[ $state ][ $token ])) {
  1765. if ($res3[ $state ][ $token ]) {
  1766. return $expected;
  1767. }
  1768. } else {
  1769. if ($res3[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) {
  1770. return $expected;
  1771. }
  1772. }
  1773. $stack = $this->yystack;
  1774. $yyidx = $this->yyidx;
  1775. do {
  1776. $yyact = $this->yy_find_shift_action($token);
  1777. if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
  1778. // reduce action
  1779. $done = 0;
  1780. do {
  1781. if ($done++ === 100) {
  1782. $this->yyidx = $yyidx;
  1783. $this->yystack = $stack;
  1784. // too much recursion prevents proper detection
  1785. // so give up
  1786. return array_unique($expected);
  1787. }
  1788. $yyruleno = $yyact - self::YYNSTATE;
  1789. $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ];
  1790. $nextstate = $this->yy_find_reduce_action(
  1791. $this->yystack[ $this->yyidx ]->stateno,
  1792. self::$yyRuleInfo[ $yyruleno ][ 0 ]);
  1793. if (isset(self::$yyExpectedTokens[ $nextstate ])) {
  1794. $expected = array_merge($expected, self::$yyExpectedTokens[ $nextstate ]);
  1795. if (isset($res4[ $nextstate ][ $token ])) {
  1796. if ($res4[ $nextstate ][ $token ]) {
  1797. $this->yyidx = $yyidx;
  1798. $this->yystack = $stack;
  1799. return array_unique($expected);
  1800. }
  1801. } else {
  1802. if ($res4[ $nextstate ][ $token ] =
  1803. in_array($token, self::$yyExpectedTokens[ $nextstate ], true)) {
  1804. $this->yyidx = $yyidx;
  1805. $this->yystack = $stack;
  1806. return array_unique($expected);
  1807. }
  1808. }
  1809. }
  1810. if ($nextstate < self::YYNSTATE) {
  1811. // we need to shift a non-terminal
  1812. $this->yyidx++;
  1813. $x = new TP_yyStackEntry;
  1814. $x->stateno = $nextstate;
  1815. $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ];
  1816. $this->yystack[ $this->yyidx ] = $x;
  1817. continue 2;
  1818. } else if ($nextstate === self::YYNSTATE + self::YYNRULE + 1) {
  1819. $this->yyidx = $yyidx;
  1820. $this->yystack = $stack;
  1821. // the last token was just ignored, we can't accept
  1822. // by ignoring input, this is in essence ignoring a
  1823. // syntax error!
  1824. return array_unique($expected);
  1825. } else if ($nextstate === self::YY_NO_ACTION) {
  1826. $this->yyidx = $yyidx;
  1827. $this->yystack = $stack;
  1828. // input accepted, but not shifted (I guess)
  1829. return $expected;
  1830. } else {
  1831. $yyact = $nextstate;
  1832. }
  1833. } while (true);
  1834. }
  1835. break;
  1836. } while (true);
  1837. $this->yyidx = $yyidx;
  1838. $this->yystack = $stack;
  1839. return array_unique($expected);
  1840. }
  1841. public function yy_is_expected_token($token)
  1842. {
  1843. static $res = array();
  1844. static $res2 = array();
  1845. if ($token === 0) {
  1846. return true; // 0 is not part of this
  1847. }
  1848. $state = $this->yystack[ $this->yyidx ]->stateno;
  1849. if (isset($res[ $state ][ $token ])) {
  1850. if ($res[ $state ][ $token ]) {
  1851. return true;
  1852. }
  1853. } else {
  1854. if ($res[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) {
  1855. return true;
  1856. }
  1857. }
  1858. $stack = $this->yystack;
  1859. $yyidx = $this->yyidx;
  1860. do {
  1861. $yyact = $this->yy_find_shift_action($token);
  1862. if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
  1863. // reduce action
  1864. $done = 0;
  1865. do {
  1866. if ($done++ === 100) {
  1867. $this->yyidx = $yyidx;
  1868. $this->yystack = $stack;
  1869. // too much recursion prevents proper detection
  1870. // so give up
  1871. return true;
  1872. }
  1873. $yyruleno = $yyact - self::YYNSTATE;
  1874. $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ];
  1875. $nextstate = $this->yy_find_reduce_action(
  1876. $this->yystack[ $this->yyidx ]->stateno,
  1877. self::$yyRuleInfo[ $yyruleno ][ 0 ]);
  1878. if (isset($res2[ $nextstate ][ $token ])) {
  1879. if ($res2[ $nextstate ][ $token ]) {
  1880. $this->yyidx = $yyidx;
  1881. $this->yystack = $stack;
  1882. return true;
  1883. }
  1884. } else {
  1885. if ($res2[ $nextstate ][ $token ] = (isset(self::$yyExpectedTokens[ $nextstate ]) &&
  1886. in_array($token,
  1887. self::$yyExpectedTokens[ $nextstate ],
  1888. true))) {
  1889. $this->yyidx = $yyidx;
  1890. $this->yystack = $stack;
  1891. return true;
  1892. }
  1893. }
  1894. if ($nextstate < self::YYNSTATE) {
  1895. // we need to shift a non-terminal
  1896. $this->yyidx++;
  1897. $x = new TP_yyStackEntry;
  1898. $x->stateno = $nextstate;
  1899. $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ];
  1900. $this->yystack[ $this->yyidx ] = $x;
  1901. continue 2;
  1902. } else if ($nextstate === self::YYNSTATE + self::YYNRULE + 1) {
  1903. $this->yyidx = $yyidx;
  1904. $this->yystack = $stack;
  1905. if (!$token) {
  1906. // end of input: this is valid
  1907. return true;
  1908. }
  1909. // the last token was just ignored, we can't accept
  1910. // by ignoring input, this is in essence ignoring a
  1911. // syntax error!
  1912. return false;
  1913. } else if ($nextstate === self::YY_NO_ACTION) {
  1914. $this->yyidx = $yyidx;
  1915. $this->yystack = $stack;
  1916. // input accepted, but not shifted (I guess)
  1917. return true;
  1918. } else {
  1919. $yyact = $nextstate;
  1920. }
  1921. } while (true);
  1922. }
  1923. break;
  1924. } while (true);
  1925. $this->yyidx = $yyidx;
  1926. $this->yystack = $stack;
  1927. return true;
  1928. }
  1929. public function yy_find_shift_action($iLookAhead)
  1930. {
  1931. $stateno = $this->yystack[ $this->yyidx ]->stateno;
  1932. /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
  1933. if (!isset(self::$yy_shift_ofst[ $stateno ])) {
  1934. // no shift actions
  1935. return self::$yy_default[ $stateno ];
  1936. }
  1937. $i = self::$yy_shift_ofst[ $stateno ];
  1938. if ($i === self::YY_SHIFT_USE_DFLT) {
  1939. return self::$yy_default[ $stateno ];
  1940. }
  1941. if ($iLookAhead === self::YYNOCODE) {
  1942. return self::YY_NO_ACTION;
  1943. }
  1944. $i += $iLookAhead;
  1945. if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
  1946. self::$yy_lookahead[ $i ] != $iLookAhead) {
  1947. if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback)
  1948. && ($iFallback = self::$yyFallback[ $iLookAhead ]) != 0) {
  1949. if ($this->yyTraceFILE) {
  1950. fwrite($this->yyTraceFILE,
  1951. $this->yyTracePrompt . 'FALLBACK ' .
  1952. $this->yyTokenName[ $iLookAhead ] . ' => ' .
  1953. $this->yyTokenName[ $iFallback ] . "\n");
  1954. }
  1955. return $this->yy_find_shift_action($iFallback);
  1956. }
  1957. return self::$yy_default[ $stateno ];
  1958. } else {
  1959. return self::$yy_action[ $i ];
  1960. }
  1961. }
  1962. public function yy_find_reduce_action($stateno, $iLookAhead)
  1963. {
  1964. /* $stateno = $this->yystack[$this->yyidx]->stateno; */
  1965. if (!isset(self::$yy_reduce_ofst[ $stateno ])) {
  1966. return self::$yy_default[ $stateno ];
  1967. }
  1968. $i = self::$yy_reduce_ofst[ $stateno ];
  1969. if ($i === self::YY_REDUCE_USE_DFLT) {
  1970. return self::$yy_default[ $stateno ];
  1971. }
  1972. if ($iLookAhead === self::YYNOCODE) {
  1973. return self::YY_NO_ACTION;
  1974. }
  1975. $i += $iLookAhead;
  1976. if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
  1977. self::$yy_lookahead[ $i ] != $iLookAhead) {
  1978. return self::$yy_default[ $stateno ];
  1979. } else {
  1980. return self::$yy_action[ $i ];
  1981. }
  1982. }
  1983. #line 234 "../smarty/lexer/smarty_internal_templateparser.y"
  1984. public function yy_shift($yyNewState, $yyMajor, $yypMinor)
  1985. {
  1986. $this->yyidx++;
  1987. if ($this->yyidx >= self::YYSTACKDEPTH) {
  1988. $this->yyidx--;
  1989. if ($this->yyTraceFILE) {
  1990. fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt);
  1991. }
  1992. while ($this->yyidx >= 0) {
  1993. $this->yy_pop_parser_stack();
  1994. }
  1995. #line 221 "../smarty/lexer/smarty_internal_templateparser.y"
  1996. $this->internalError = true;
  1997. $this->compiler->trigger_template_error('Stack overflow in template parser');
  1998. return;
  1999. }
  2000. $yytos = new TP_yyStackEntry;
  2001. $yytos->stateno = $yyNewState;
  2002. $yytos->major = $yyMajor;
  2003. $yytos->minor = $yypMinor;
  2004. $this->yystack[] = $yytos;
  2005. if ($this->yyTraceFILE && $this->yyidx > 0) {
  2006. fprintf($this->yyTraceFILE,
  2007. "%sShift %d\n",
  2008. $this->yyTracePrompt,
  2009. $yyNewState);
  2010. fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt);
  2011. for ($i = 1; $i <= $this->yyidx; $i++) {
  2012. fprintf($this->yyTraceFILE,
  2013. " %s",
  2014. $this->yyTokenName[ $this->yystack[ $i ]->major ]);
  2015. }
  2016. fwrite($this->yyTraceFILE, "\n");
  2017. }
  2018. }
  2019. #line 242 "../smarty/lexer/smarty_internal_templateparser.y"
  2020. function yy_r0()
  2021. {
  2022. $this->root_buffer->prepend_array($this, $this->template_prefix);
  2023. $this->root_buffer->append_array($this, $this->template_postfix);
  2024. $this->_retvalue = $this->root_buffer->to_smarty_php($this);
  2025. }
  2026. #line 251 "../smarty/lexer/smarty_internal_templateparser.y"
  2027. function yy_r1()
  2028. {
  2029. $code = $this->compiler->compileTag('private_php',
  2030. array(array('code' => $this->yystack[ $this->yyidx + 0 ]->minor),
  2031. array('type' => $this->lex->phpType)),
  2032. array());
  2033. if ($this->compiler->has_code && !empty($code)) {
  2034. $tmp = '';
  2035. foreach ($this->compiler->prefix_code as $code) {
  2036. $tmp .= $code;
  2037. }
  2038. $this->compiler->prefix_code = array();
  2039. $this->current_buffer->append_subtree($this,
  2040. new Smarty_Internal_ParseTree_Tag($this,
  2041. $this->compiler->processNocacheCode($tmp .
  2042. $code,
  2043. true)));
  2044. }
  2045. }
  2046. #line 255 "../smarty/lexer/smarty_internal_templateparser.y"
  2047. function yy_r2()
  2048. {
  2049. $this->current_buffer->append_subtree($this,
  2050. $this->compiler->processText($this->yystack[ $this->yyidx + 0 ]->minor));
  2051. }
  2052. #line 259 "../smarty/lexer/smarty_internal_templateparser.y"
  2053. function yy_r3()
  2054. {
  2055. $this->strip = true;
  2056. }
  2057. #line 264 "../smarty/lexer/smarty_internal_templateparser.y"
  2058. function yy_r4()
  2059. {
  2060. $this->strip = false;
  2061. }
  2062. #line 269 "../smarty/lexer/smarty_internal_templateparser.y"
  2063. function yy_r5()
  2064. {
  2065. $this->current_buffer->append_subtree($this,
  2066. new Smarty_Internal_ParseTree_Text($this->yystack[ $this->yyidx +
  2067. -1 ]->minor));
  2068. }
  2069. #line 272 "../smarty/lexer/smarty_internal_templateparser.y"
  2070. function yy_r6()
  2071. {
  2072. $this->_retvalue = $this->yystack[ $this->yyidx + -3 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor;
  2073. }
  2074. #line 276 "../smarty/lexer/smarty_internal_templateparser.y"
  2075. function yy_r7()
  2076. {
  2077. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  2078. }
  2079. #line 281 "../smarty/lexer/smarty_internal_templateparser.y"
  2080. function yy_r8()
  2081. {
  2082. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  2083. }
  2084. #line 285 "../smarty/lexer/smarty_internal_templateparser.y"
  2085. function yy_r9()
  2086. {
  2087. $this->_retvalue = '';
  2088. }
  2089. #line 297 "../smarty/lexer/smarty_internal_templateparser.y"
  2090. function yy_r10()
  2091. {
  2092. if ($this->compiler->has_code) {
  2093. $this->current_buffer->append_subtree($this,
  2094. $this->mergePrefixCode($this->yystack[ $this->yyidx + 0 ]->minor));
  2095. }
  2096. $this->compiler->has_variable_string = false;
  2097. $this->block_nesting_level = count($this->compiler->_tag_stack);
  2098. }
  2099. #line 307 "../smarty/lexer/smarty_internal_templateparser.y"
  2100. function yy_r12()
  2101. {
  2102. $var = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
  2103. $this->compiler->getLdelLength(),
  2104. -$this->compiler->getRdelLength()),
  2105. ' $');
  2106. if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) {
  2107. $this->_retvalue = $this->compiler->compileTag('private_print_expression',
  2108. array('nocache'),
  2109. array('value' => $this->compiler->compileVariable('\'' .
  2110. $match[ 1 ] .
  2111. '\'')));
  2112. } else {
  2113. $this->_retvalue = $this->compiler->compileTag('private_print_expression',
  2114. array(),
  2115. array('value' => $this->compiler->compileVariable('\'' .
  2116. $var .
  2117. '\'')));
  2118. }
  2119. }
  2120. #line 328 "../smarty/lexer/smarty_internal_templateparser.y"
  2121. function yy_r13()
  2122. {
  2123. $tag = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
  2124. $this->compiler->getLdelLength(),
  2125. -$this->compiler->getRdelLength()));
  2126. if ($tag == 'strip') {
  2127. $this->strip = true;
  2128. $this->_retvalue = null;;
  2129. } else {
  2130. if (defined($tag)) {
  2131. if ($this->security) {
  2132. $this->security->isTrustedConstant($tag, $this->compiler);
  2133. }
  2134. $this->_retvalue =
  2135. $this->compiler->compileTag('private_print_expression', array(), array('value' => $tag));
  2136. } else {
  2137. if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) {
  2138. $this->_retvalue = $this->compiler->compileTag($match[ 1 ], array('\'nocache\''));
  2139. } else {
  2140. $this->_retvalue = $this->compiler->compileTag($tag, array());
  2141. }
  2142. }
  2143. }
  2144. }
  2145. #line 339 "../smarty/lexer/smarty_internal_templateparser.y"
  2146. function yy_r14()
  2147. {
  2148. $j = strrpos($this->yystack[ $this->yyidx + 0 ]->minor, '.');
  2149. if ($this->yystack[ $this->yyidx + 0 ]->minor[ $j + 1 ] == 'c') {
  2150. // {$smarty.block.child}
  2151. $this->_retvalue =
  2152. $this->compiler->compileTag('child', array(), array($this->yystack[ $this->yyidx + 0 ]->minor));;
  2153. } else {
  2154. // {$smarty.block.parent}
  2155. $this->_retvalue =
  2156. $this->compiler->compileTag('parent', array(), array($this->yystack[ $this->yyidx + 0 ]->minor));;
  2157. }
  2158. }
  2159. #line 343 "../smarty/lexer/smarty_internal_templateparser.y"
  2160. function yy_r15()
  2161. {
  2162. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
  2163. }
  2164. #line 347 "../smarty/lexer/smarty_internal_templateparser.y"
  2165. function yy_r16()
  2166. {
  2167. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
  2168. }
  2169. #line 356 "../smarty/lexer/smarty_internal_templateparser.y"
  2170. function yy_r17()
  2171. {
  2172. $this->_retvalue = $this->compiler->compileTag('private_print_expression',
  2173. $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ],
  2174. array('value' => $this->yystack[ $this->yyidx +
  2175. 0 ]->minor[ 0 ]));
  2176. }
  2177. #line 360 "../smarty/lexer/smarty_internal_templateparser.y"
  2178. function yy_r18()
  2179. {
  2180. $this->_retvalue = $this->compiler->compileTag('assign',
  2181. array_merge(array(array('value' => $this->yystack[ $this->yyidx +
  2182. 0 ]->minor[ 0 ]),
  2183. array('var' => '\'' .
  2184. substr($this->yystack[ $this->yyidx +
  2185. -1 ]->minor,
  2186. 1) . '\'')),
  2187. $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]));
  2188. }
  2189. #line 364 "../smarty/lexer/smarty_internal_templateparser.y"
  2190. function yy_r19()
  2191. {
  2192. $this->_retvalue = $this->compiler->compileTag('assign',
  2193. array_merge(array(array('value' => $this->yystack[ $this->yyidx +
  2194. 0 ]->minor[ 0 ]),
  2195. array('var' => $this->yystack[ $this->yyidx +
  2196. -1 ]->minor[ 'var' ])),
  2197. $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]),
  2198. array('smarty_internal_index' => $this->yystack[ $this->yyidx +
  2199. -1 ]->minor[ 'smarty_internal_index' ]));
  2200. }
  2201. #line 368 "../smarty/lexer/smarty_internal_templateparser.y"
  2202. function yy_r20()
  2203. {
  2204. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  2205. }
  2206. #line 383 "../smarty/lexer/smarty_internal_templateparser.y"
  2207. function yy_r21()
  2208. {
  2209. $this->_retvalue = array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor);
  2210. }
  2211. #line 393 "../smarty/lexer/smarty_internal_templateparser.y"
  2212. function yy_r25()
  2213. {
  2214. if (defined($this->yystack[ $this->yyidx + -1 ]->minor)) {
  2215. if ($this->security) {
  2216. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler);
  2217. }
  2218. $this->_retvalue = $this->compiler->compileTag('private_print_expression',
  2219. $this->yystack[ $this->yyidx + 0 ]->minor,
  2220. array('value' => $this->yystack[ $this->yyidx +
  2221. -1 ]->minor));
  2222. } else {
  2223. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor,
  2224. $this->yystack[ $this->yyidx + 0 ]->minor);
  2225. }
  2226. }
  2227. #line 406 "../smarty/lexer/smarty_internal_templateparser.y"
  2228. function yy_r26()
  2229. {
  2230. if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
  2231. if ($this->security) {
  2232. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler);
  2233. }
  2234. $this->_retvalue = $this->compiler->compileTag('private_print_expression',
  2235. array(),
  2236. array('value' => $this->yystack[ $this->yyidx + 0 ]->minor));
  2237. } else {
  2238. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor, array());
  2239. }
  2240. }
  2241. #line 418 "../smarty/lexer/smarty_internal_templateparser.y"
  2242. function yy_r27()
  2243. {
  2244. if (defined($this->yystack[ $this->yyidx + -2 ]->minor)) {
  2245. if ($this->security) {
  2246. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler);
  2247. }
  2248. $this->_retvalue = $this->compiler->compileTag('private_print_expression',
  2249. $this->yystack[ $this->yyidx + 0 ]->minor,
  2250. array('value' => $this->yystack[ $this->yyidx +
  2251. -2 ]->minor,
  2252. 'modifierlist' => $this->yystack[ $this->yyidx +
  2253. -1 ]->minor));
  2254. } else {
  2255. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor,
  2256. $this->yystack[ $this->yyidx + 0 ]->minor,
  2257. array('modifierlist' => $this->yystack[ $this->yyidx +
  2258. -1 ]->minor));
  2259. }
  2260. }
  2261. #line 423 "../smarty/lexer/smarty_internal_templateparser.y"
  2262. function yy_r28()
  2263. {
  2264. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor,
  2265. $this->yystack[ $this->yyidx + 0 ]->minor,
  2266. array('object_method' => $this->yystack[ $this->yyidx +
  2267. -1 ]->minor));
  2268. }
  2269. #line 428 "../smarty/lexer/smarty_internal_templateparser.y"
  2270. function yy_r29()
  2271. {
  2272. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -4 ]->minor,
  2273. $this->yystack[ $this->yyidx + 0 ]->minor,
  2274. array('modifierlist' => $this->yystack[ $this->yyidx +
  2275. -1 ]->minor,
  2276. 'object_method' => $this->yystack[ $this->yyidx +
  2277. -2 ]->minor));
  2278. }
  2279. #line 433 "../smarty/lexer/smarty_internal_templateparser.y"
  2280. function yy_r30()
  2281. {
  2282. $this->_retvalue = $this->compiler->compileTag('make_nocache',
  2283. array(array('var' => '\'' . substr($this->yystack[ $this->yyidx +
  2284. 0 ]->minor,
  2285. 1) . '\'')));
  2286. }
  2287. #line 438 "../smarty/lexer/smarty_internal_templateparser.y"
  2288. function yy_r31()
  2289. {
  2290. $tag = trim(substr($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler->getLdelLength()));
  2291. $this->_retvalue = $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag,
  2292. array(),
  2293. array('if condition' => $this->yystack[ $this->yyidx +
  2294. 0 ]->minor));
  2295. }
  2296. #line 443 "../smarty/lexer/smarty_internal_templateparser.y"
  2297. function yy_r32()
  2298. {
  2299. $tag = trim(substr($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler->getLdelLength()));
  2300. $this->_retvalue = $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag,
  2301. $this->yystack[ $this->yyidx + 0 ]->minor,
  2302. array('if condition' => $this->yystack[ $this->yyidx +
  2303. -1 ]->minor));
  2304. }
  2305. #line 454 "../smarty/lexer/smarty_internal_templateparser.y"
  2306. function yy_r33()
  2307. {
  2308. $tag = trim(substr($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler->getLdelLength()));
  2309. $this->_retvalue = $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag,
  2310. array(),
  2311. array('if condition' => $this->yystack[ $this->yyidx +
  2312. 0 ]->minor));
  2313. }
  2314. #line 458 "../smarty/lexer/smarty_internal_templateparser.y"
  2315. function yy_r35()
  2316. {
  2317. $this->_retvalue = $this->compiler->compileTag('for',
  2318. array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  2319. array(array('start' => $this->yystack[ $this->yyidx +
  2320. -6 ]->minor),
  2321. array('ifexp' => $this->yystack[ $this->yyidx +
  2322. -4 ]->minor),
  2323. array('var' => $this->yystack[ $this->yyidx +
  2324. -2 ]->minor),
  2325. array('step' => $this->yystack[ $this->yyidx +
  2326. -1 ]->minor))),
  2327. 1);
  2328. }
  2329. #line 466 "../smarty/lexer/smarty_internal_templateparser.y"
  2330. function yy_r36()
  2331. {
  2332. $this->_retvalue = '=' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2333. }
  2334. #line 470 "../smarty/lexer/smarty_internal_templateparser.y"
  2335. function yy_r38()
  2336. {
  2337. $this->_retvalue = $this->compiler->compileTag('for',
  2338. array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  2339. array(array('start' => $this->yystack[ $this->yyidx +
  2340. -3 ]->minor),
  2341. array('to' => $this->yystack[ $this->yyidx +
  2342. -1 ]->minor))),
  2343. 0);
  2344. }
  2345. #line 475 "../smarty/lexer/smarty_internal_templateparser.y"
  2346. function yy_r39()
  2347. {
  2348. $this->_retvalue = $this->compiler->compileTag('for',
  2349. array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  2350. array(array('start' => $this->yystack[ $this->yyidx +
  2351. -5 ]->minor),
  2352. array('to' => $this->yystack[ $this->yyidx +
  2353. -3 ]->minor),
  2354. array('step' => $this->yystack[ $this->yyidx +
  2355. -1 ]->minor))),
  2356. 0);
  2357. }
  2358. #line 479 "../smarty/lexer/smarty_internal_templateparser.y"
  2359. function yy_r40()
  2360. {
  2361. $this->_retvalue = $this->compiler->compileTag('foreach',
  2362. array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  2363. array(array('from' => $this->yystack[ $this->yyidx +
  2364. -3 ]->minor),
  2365. array('item' => $this->yystack[ $this->yyidx +
  2366. -1 ]->minor))));
  2367. }
  2368. #line 482 "../smarty/lexer/smarty_internal_templateparser.y"
  2369. function yy_r41()
  2370. {
  2371. $this->_retvalue = $this->compiler->compileTag('foreach',
  2372. array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
  2373. array(array('from' => $this->yystack[ $this->yyidx +
  2374. -5 ]->minor),
  2375. array('item' => $this->yystack[ $this->yyidx +
  2376. -1 ]->minor),
  2377. array('key' => $this->yystack[ $this->yyidx +
  2378. -3 ]->minor))));
  2379. }
  2380. #line 487 "../smarty/lexer/smarty_internal_templateparser.y"
  2381. function yy_r42()
  2382. {
  2383. $this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[ $this->yyidx + 0 ]->minor);
  2384. }
  2385. #line 491 "../smarty/lexer/smarty_internal_templateparser.y"
  2386. function yy_r43()
  2387. {
  2388. $this->_retvalue = $this->compiler->compileTag('setfilter',
  2389. array(),
  2390. array('modifier_list' => array(array_merge(array($this->yystack[ $this->yyidx +
  2391. -1 ]->minor),
  2392. $this->yystack[ $this->yyidx +
  2393. 0 ]->minor))));
  2394. }
  2395. #line 497 "../smarty/lexer/smarty_internal_templateparser.y"
  2396. function yy_r44()
  2397. {
  2398. $this->_retvalue = $this->compiler->compileTag('setfilter',
  2399. array(),
  2400. array('modifier_list' => array_merge(array(array_merge(array($this->yystack[ $this->yyidx +
  2401. -2 ]->minor),
  2402. $this->yystack[ $this->yyidx +
  2403. -1 ]->minor)),
  2404. $this->yystack[ $this->yyidx +
  2405. 0 ]->minor)));
  2406. }
  2407. #line 506 "../smarty/lexer/smarty_internal_templateparser.y"
  2408. function yy_r45()
  2409. {
  2410. $tag = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
  2411. $this->compiler->getLdelLength(),
  2412. -$this->compiler->getRdelLength()),
  2413. ' /');
  2414. if ($tag === 'strip') {
  2415. $this->strip = false;
  2416. $this->_retvalue = null;
  2417. } else {
  2418. $this->_retvalue = $this->compiler->compileTag($tag . 'close', array());
  2419. }
  2420. }
  2421. #line 510 "../smarty/lexer/smarty_internal_templateparser.y"
  2422. function yy_r46()
  2423. {
  2424. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor . 'close', array());
  2425. }
  2426. #line 515 "../smarty/lexer/smarty_internal_templateparser.y"
  2427. function yy_r47()
  2428. {
  2429. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor . 'close',
  2430. array(),
  2431. array('modifier_list' => $this->yystack[ $this->yyidx +
  2432. 0 ]->minor));
  2433. }
  2434. #line 519 "../smarty/lexer/smarty_internal_templateparser.y"
  2435. function yy_r48()
  2436. {
  2437. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor . 'close',
  2438. array(),
  2439. array('object_method' => $this->yystack[ $this->yyidx +
  2440. 0 ]->minor));
  2441. }
  2442. #line 527 "../smarty/lexer/smarty_internal_templateparser.y"
  2443. function yy_r49()
  2444. {
  2445. $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor . 'close',
  2446. array(),
  2447. array('object_method' => $this->yystack[ $this->yyidx +
  2448. -1 ]->minor,
  2449. 'modifier_list' => $this->yystack[ $this->yyidx +
  2450. 0 ]->minor));
  2451. }
  2452. #line 533 "../smarty/lexer/smarty_internal_templateparser.y"
  2453. function yy_r50()
  2454. {
  2455. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
  2456. $this->_retvalue[] = $this->yystack[ $this->yyidx + 0 ]->minor;
  2457. }
  2458. #line 538 "../smarty/lexer/smarty_internal_templateparser.y"
  2459. function yy_r51()
  2460. {
  2461. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor);
  2462. }
  2463. #line 543 "../smarty/lexer/smarty_internal_templateparser.y"
  2464. function yy_r52()
  2465. {
  2466. $this->_retvalue = array();
  2467. }
  2468. #line 554 "../smarty/lexer/smarty_internal_templateparser.y"
  2469. function yy_r53()
  2470. {
  2471. if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
  2472. if ($this->security) {
  2473. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler);
  2474. }
  2475. $this->_retvalue =
  2476. array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor);
  2477. } else {
  2478. $this->_retvalue =
  2479. array($this->yystack[ $this->yyidx + -2 ]->minor => '\'' . $this->yystack[ $this->yyidx + 0 ]->minor .
  2480. '\'');
  2481. }
  2482. }
  2483. #line 562 "../smarty/lexer/smarty_internal_templateparser.y"
  2484. function yy_r54()
  2485. {
  2486. $this->_retvalue =
  2487. array(trim($this->yystack[ $this->yyidx + -1 ]->minor, " =\n\r\t") => $this->yystack[ $this->yyidx +
  2488. 0 ]->minor);
  2489. }
  2490. #line 574 "../smarty/lexer/smarty_internal_templateparser.y"
  2491. function yy_r56()
  2492. {
  2493. $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\'';
  2494. }
  2495. #line 587 "../smarty/lexer/smarty_internal_templateparser.y"
  2496. function yy_r59()
  2497. {
  2498. $this->_retvalue =
  2499. array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor);
  2500. }
  2501. #line 592 "../smarty/lexer/smarty_internal_templateparser.y"
  2502. function yy_r61()
  2503. {
  2504. $this->yystack[ $this->yyidx + -2 ]->minor[] = $this->yystack[ $this->yyidx + 0 ]->minor;
  2505. $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor;
  2506. }
  2507. #line 599 "../smarty/lexer/smarty_internal_templateparser.y"
  2508. function yy_r62()
  2509. {
  2510. $this->_retvalue = array('var' => '\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '\'',
  2511. 'value' => $this->yystack[ $this->yyidx + 0 ]->minor);
  2512. }
  2513. #line 603 "../smarty/lexer/smarty_internal_templateparser.y"
  2514. function yy_r64()
  2515. {
  2516. $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + -2 ]->minor,
  2517. 'value' => $this->yystack[ $this->yyidx + 0 ]->minor);
  2518. }
  2519. #line 623 "../smarty/lexer/smarty_internal_templateparser.y"
  2520. function yy_r65()
  2521. {
  2522. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
  2523. }
  2524. #line 628 "../smarty/lexer/smarty_internal_templateparser.y"
  2525. function yy_r68()
  2526. {
  2527. $this->_retvalue =
  2528. '$_smarty_tpl->getStreamVariable(\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '://' .
  2529. $this->yystack[ $this->yyidx + 0 ]->minor . '\')';
  2530. }
  2531. #line 642 "../smarty/lexer/smarty_internal_templateparser.y"
  2532. function yy_r69()
  2533. {
  2534. $this->_retvalue =
  2535. $this->yystack[ $this->yyidx + -2 ]->minor . trim($this->yystack[ $this->yyidx + -1 ]->minor) .
  2536. $this->yystack[ $this->yyidx + 0 ]->minor;
  2537. }
  2538. #line 648 "../smarty/lexer/smarty_internal_templateparser.y"
  2539. function yy_r72()
  2540. {
  2541. $this->_retvalue = $this->compiler->compileTag('private_modifier',
  2542. array(),
  2543. array('value' => $this->yystack[ $this->yyidx +
  2544. -1 ]->minor,
  2545. 'modifierlist' => $this->yystack[ $this->yyidx +
  2546. 0 ]->minor));
  2547. }
  2548. #line 652 "../smarty/lexer/smarty_internal_templateparser.y"
  2549. function yy_r73()
  2550. {
  2551. $this->_retvalue =
  2552. $this->yystack[ $this->yyidx + -1 ]->minor[ 'pre' ] . $this->yystack[ $this->yyidx + -2 ]->minor .
  2553. $this->yystack[ $this->yyidx + -1 ]->minor[ 'op' ] . $this->yystack[ $this->yyidx + 0 ]->minor . ')';
  2554. }
  2555. #line 656 "../smarty/lexer/smarty_internal_templateparser.y"
  2556. function yy_r74()
  2557. {
  2558. $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor .
  2559. $this->yystack[ $this->yyidx + 0 ]->minor;
  2560. }
  2561. #line 660 "../smarty/lexer/smarty_internal_templateparser.y"
  2562. function yy_r75()
  2563. {
  2564. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
  2565. }
  2566. #line 664 "../smarty/lexer/smarty_internal_templateparser.y"
  2567. function yy_r76()
  2568. {
  2569. $this->_retvalue =
  2570. 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor .
  2571. ')';
  2572. }
  2573. #line 672 "../smarty/lexer/smarty_internal_templateparser.y"
  2574. function yy_r77()
  2575. {
  2576. $this->_retvalue = 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',(array)' .
  2577. $this->yystack[ $this->yyidx + 0 ]->minor . ')';
  2578. }
  2579. #line 676 "../smarty/lexer/smarty_internal_templateparser.y"
  2580. function yy_r78()
  2581. {
  2582. $this->_retvalue = $this->yystack[ $this->yyidx + -5 ]->minor . ' ? ' . $this->compiler->compileVariable('\'' .
  2583. substr($this->yystack[ $this->yyidx +
  2584. -2 ]->minor,
  2585. 1) .
  2586. '\'') .
  2587. ' : ' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2588. }
  2589. #line 686 "../smarty/lexer/smarty_internal_templateparser.y"
  2590. function yy_r79()
  2591. {
  2592. $this->_retvalue =
  2593. $this->yystack[ $this->yyidx + -5 ]->minor . ' ? ' . $this->yystack[ $this->yyidx + -2 ]->minor . ' : ' .
  2594. $this->yystack[ $this->yyidx + 0 ]->minor;
  2595. }
  2596. #line 691 "../smarty/lexer/smarty_internal_templateparser.y"
  2597. function yy_r81()
  2598. {
  2599. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  2600. }
  2601. #line 712 "../smarty/lexer/smarty_internal_templateparser.y"
  2602. function yy_r82()
  2603. {
  2604. $this->_retvalue = '!' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2605. }
  2606. #line 716 "../smarty/lexer/smarty_internal_templateparser.y"
  2607. function yy_r87()
  2608. {
  2609. $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2610. }
  2611. #line 720 "../smarty/lexer/smarty_internal_templateparser.y"
  2612. function yy_r88()
  2613. {
  2614. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.';
  2615. }
  2616. #line 725 "../smarty/lexer/smarty_internal_templateparser.y"
  2617. function yy_r89()
  2618. {
  2619. $this->_retvalue = '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2620. }
  2621. #line 742 "../smarty/lexer/smarty_internal_templateparser.y"
  2622. function yy_r90()
  2623. {
  2624. if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
  2625. if ($this->security) {
  2626. $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler);
  2627. }
  2628. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  2629. } else {
  2630. $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\'';
  2631. }
  2632. }
  2633. #line 746 "../smarty/lexer/smarty_internal_templateparser.y"
  2634. function yy_r92()
  2635. {
  2636. $this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
  2637. }
  2638. #line 764 "../smarty/lexer/smarty_internal_templateparser.y"
  2639. function yy_r93()
  2640. {
  2641. $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor .
  2642. $this->yystack[ $this->yyidx + 0 ]->minor;
  2643. }
  2644. #line 775 "../smarty/lexer/smarty_internal_templateparser.y"
  2645. function yy_r97()
  2646. {
  2647. $prefixVar = $this->compiler->getNewPrefixVariable();
  2648. if ($this->yystack[ $this->yyidx + -2 ]->minor[ 'var' ] === '\'smarty\'') {
  2649. $this->compiler->appendPrefixCode("<?php {$prefixVar} = " .
  2650. $this->compiler->compileTag('private_special_variable',
  2651. array(),
  2652. $this->yystack[ $this->yyidx +
  2653. -2 ]->minor[ 'smarty_internal_index' ]) .
  2654. ';?>');
  2655. } else {
  2656. $this->compiler->appendPrefixCode("<?php {$prefixVar} = " .
  2657. $this->compiler->compileVariable($this->yystack[ $this->yyidx +
  2658. -2 ]->minor[ 'var' ]) .
  2659. $this->yystack[ $this->yyidx + -2 ]->minor[ 'smarty_internal_index' ] .
  2660. ';?>');
  2661. }
  2662. $this->_retvalue = $prefixVar . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
  2663. $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
  2664. }
  2665. #line 792 "../smarty/lexer/smarty_internal_templateparser.y"
  2666. function yy_r98()
  2667. {
  2668. $prefixVar = $this->compiler->getNewPrefixVariable();
  2669. $tmp = $this->compiler->appendCode('<?php ob_start();?>', $this->yystack[ $this->yyidx + 0 ]->minor);
  2670. $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "<?php {$prefixVar} = ob_get_clean();?>"));
  2671. $this->_retvalue = $prefixVar;
  2672. }
  2673. #line 811 "../smarty/lexer/smarty_internal_templateparser.y"
  2674. function yy_r101()
  2675. {
  2676. if (!in_array(strtolower($this->yystack[ $this->yyidx + -2 ]->minor), array('self', 'parent')) &&
  2677. (!$this->security || $this->security->isTrustedStaticClassAccess($this->yystack[ $this->yyidx + -2 ]->minor,
  2678. $this->yystack[ $this->yyidx + 0 ]->minor,
  2679. $this->compiler))) {
  2680. if (isset($this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ])) {
  2681. $this->_retvalue =
  2682. $this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ] . '::' .
  2683. $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] . $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
  2684. } else {
  2685. $this->_retvalue =
  2686. $this->yystack[ $this->yyidx + -2 ]->minor . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
  2687. $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
  2688. }
  2689. } else {
  2690. $this->compiler->trigger_template_error('static class \'' . $this->yystack[ $this->yyidx + -2 ]->minor .
  2691. '\' is undefined or not allowed by security setting');
  2692. }
  2693. }
  2694. #line 822 "../smarty/lexer/smarty_internal_templateparser.y"
  2695. function yy_r103()
  2696. {
  2697. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  2698. }
  2699. #line 825 "../smarty/lexer/smarty_internal_templateparser.y"
  2700. function yy_r104()
  2701. {
  2702. $this->_retvalue =
  2703. $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'');
  2704. }
  2705. #line 838 "../smarty/lexer/smarty_internal_templateparser.y"
  2706. function yy_r105()
  2707. {
  2708. if ($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ] === '\'smarty\'') {
  2709. $smarty_var = $this->compiler->compileTag('private_special_variable',
  2710. array(),
  2711. $this->yystack[ $this->yyidx +
  2712. 0 ]->minor[ 'smarty_internal_index' ]);
  2713. $this->_retvalue = $smarty_var;
  2714. } else {
  2715. // used for array reset,next,prev,end,current
  2716. $this->last_variable = $this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ];
  2717. $this->last_index = $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ];
  2718. $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ]) .
  2719. $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ];
  2720. }
  2721. }
  2722. #line 848 "../smarty/lexer/smarty_internal_templateparser.y"
  2723. function yy_r106()
  2724. {
  2725. $this->_retvalue = '$_smarty_tpl->tpl_vars[' . $this->yystack[ $this->yyidx + -2 ]->minor . ']->' .
  2726. $this->yystack[ $this->yyidx + 0 ]->minor;
  2727. }
  2728. #line 852 "../smarty/lexer/smarty_internal_templateparser.y"
  2729. function yy_r108()
  2730. {
  2731. $this->_retvalue =
  2732. $this->compiler->compileConfigVariable('\'' . $this->yystack[ $this->yyidx + -1 ]->minor . '\'');
  2733. }
  2734. #line 856 "../smarty/lexer/smarty_internal_templateparser.y"
  2735. function yy_r109()
  2736. {
  2737. $this->_retvalue = '(is_array($tmp = ' .
  2738. $this->compiler->compileConfigVariable('\'' . $this->yystack[ $this->yyidx + -2 ]->minor .
  2739. '\'') . ') ? $tmp' .
  2740. $this->yystack[ $this->yyidx + 0 ]->minor . ' :null)';
  2741. }
  2742. #line 860 "../smarty/lexer/smarty_internal_templateparser.y"
  2743. function yy_r110()
  2744. {
  2745. $this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -1 ]->minor);
  2746. }
  2747. #line 864 "../smarty/lexer/smarty_internal_templateparser.y"
  2748. function yy_r111()
  2749. {
  2750. $this->_retvalue =
  2751. '(is_array($tmp = ' . $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -2 ]->minor) .
  2752. ') ? $tmp' . $this->yystack[ $this->yyidx + 0 ]->minor . ' : null)';
  2753. }
  2754. #line 867 "../smarty/lexer/smarty_internal_templateparser.y"
  2755. function yy_r112()
  2756. {
  2757. $this->_retvalue = array('var' => '\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'',
  2758. 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor);
  2759. }
  2760. #line 880 "../smarty/lexer/smarty_internal_templateparser.y"
  2761. function yy_r113()
  2762. {
  2763. $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + -1 ]->minor,
  2764. 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor);
  2765. }
  2766. #line 886 "../smarty/lexer/smarty_internal_templateparser.y"
  2767. function yy_r115()
  2768. {
  2769. return;
  2770. }
  2771. #line 889 "../smarty/lexer/smarty_internal_templateparser.y"
  2772. function yy_r116()
  2773. {
  2774. $this->_retvalue =
  2775. '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'') .
  2776. ']';
  2777. }
  2778. #line 893 "../smarty/lexer/smarty_internal_templateparser.y"
  2779. function yy_r117()
  2780. {
  2781. $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor) . ']';
  2782. }
  2783. #line 897 "../smarty/lexer/smarty_internal_templateparser.y"
  2784. function yy_r118()
  2785. {
  2786. $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + -2 ]->minor) . '->' .
  2787. $this->yystack[ $this->yyidx + 0 ]->minor . ']';
  2788. }
  2789. #line 901 "../smarty/lexer/smarty_internal_templateparser.y"
  2790. function yy_r119()
  2791. {
  2792. $this->_retvalue = '[\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\']';
  2793. }
  2794. #line 906 "../smarty/lexer/smarty_internal_templateparser.y"
  2795. function yy_r120()
  2796. {
  2797. $this->_retvalue = '[' . $this->yystack[ $this->yyidx + 0 ]->minor . ']';
  2798. }
  2799. #line 911 "../smarty/lexer/smarty_internal_templateparser.y"
  2800. function yy_r121()
  2801. {
  2802. $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']';
  2803. }
  2804. #line 915 "../smarty/lexer/smarty_internal_templateparser.y"
  2805. function yy_r122()
  2806. {
  2807. $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable',
  2808. array(),
  2809. '[\'section\'][\'' .
  2810. $this->yystack[ $this->yyidx + -1 ]->minor .
  2811. '\'][\'index\']') . ']';
  2812. }
  2813. #line 918 "../smarty/lexer/smarty_internal_templateparser.y"
  2814. function yy_r123()
  2815. {
  2816. $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable',
  2817. array(),
  2818. '[\'section\'][\'' .
  2819. $this->yystack[ $this->yyidx + -3 ]->minor . '\'][\'' .
  2820. $this->yystack[ $this->yyidx + -1 ]->minor . '\']') . ']';
  2821. }
  2822. #line 924 "../smarty/lexer/smarty_internal_templateparser.y"
  2823. function yy_r124()
  2824. {
  2825. $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']';
  2826. }
  2827. #line 940 "../smarty/lexer/smarty_internal_templateparser.y"
  2828. function yy_r126()
  2829. {
  2830. $this->_retvalue = '[' . $this->compiler->compileVariable('\'' .
  2831. substr($this->yystack[ $this->yyidx + -1 ]->minor,
  2832. 1) . '\'') . ']';;
  2833. }
  2834. #line 950 "../smarty/lexer/smarty_internal_templateparser.y"
  2835. function yy_r130()
  2836. {
  2837. $this->_retvalue = '[]';
  2838. }
  2839. #line 954 "../smarty/lexer/smarty_internal_templateparser.y"
  2840. function yy_r131()
  2841. {
  2842. $this->_retvalue = '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'';
  2843. }
  2844. #line 959 "../smarty/lexer/smarty_internal_templateparser.y"
  2845. function yy_r132()
  2846. {
  2847. $this->_retvalue = '\'\'';
  2848. }
  2849. #line 967 "../smarty/lexer/smarty_internal_templateparser.y"
  2850. function yy_r133()
  2851. {
  2852. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2853. }
  2854. #line 973 "../smarty/lexer/smarty_internal_templateparser.y"
  2855. function yy_r135()
  2856. {
  2857. $var = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
  2858. $this->compiler->getLdelLength(),
  2859. -$this->compiler->getRdelLength()),
  2860. ' $');
  2861. $this->_retvalue = $this->compiler->compileVariable('\'' . $var . '\'');
  2862. }
  2863. #line 980 "../smarty/lexer/smarty_internal_templateparser.y"
  2864. function yy_r136()
  2865. {
  2866. $this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
  2867. }
  2868. #line 989 "../smarty/lexer/smarty_internal_templateparser.y"
  2869. function yy_r137()
  2870. {
  2871. if ($this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ] === '\'smarty\'') {
  2872. $this->_retvalue = $this->compiler->compileTag('private_special_variable',
  2873. array(),
  2874. $this->yystack[ $this->yyidx +
  2875. -1 ]->minor[ 'smarty_internal_index' ]) .
  2876. $this->yystack[ $this->yyidx + 0 ]->minor;
  2877. } else {
  2878. $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ]) .
  2879. $this->yystack[ $this->yyidx + -1 ]->minor[ 'smarty_internal_index' ] .
  2880. $this->yystack[ $this->yyidx + 0 ]->minor;
  2881. }
  2882. }
  2883. #line 994 "../smarty/lexer/smarty_internal_templateparser.y"
  2884. function yy_r138()
  2885. {
  2886. $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
  2887. }
  2888. #line 999 "../smarty/lexer/smarty_internal_templateparser.y"
  2889. function yy_r139()
  2890. {
  2891. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  2892. }
  2893. #line 1006 "../smarty/lexer/smarty_internal_templateparser.y"
  2894. function yy_r140()
  2895. {
  2896. if ($this->security && substr($this->yystack[ $this->yyidx + -1 ]->minor, 0, 1) === '_') {
  2897. $this->compiler->trigger_template_error(self::Err1);
  2898. }
  2899. $this->_retvalue =
  2900. '->' . $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
  2901. }
  2902. #line 1013 "../smarty/lexer/smarty_internal_templateparser.y"
  2903. function yy_r141()
  2904. {
  2905. if ($this->security) {
  2906. $this->compiler->trigger_template_error(self::Err2);
  2907. }
  2908. $this->_retvalue = '->{' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor) .
  2909. $this->yystack[ $this->yyidx + 0 ]->minor . '}';
  2910. }
  2911. #line 1020 "../smarty/lexer/smarty_internal_templateparser.y"
  2912. function yy_r142()
  2913. {
  2914. if ($this->security) {
  2915. $this->compiler->trigger_template_error(self::Err2);
  2916. }
  2917. $this->_retvalue =
  2918. '->{' . $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor . '}';
  2919. }
  2920. #line 1028 "../smarty/lexer/smarty_internal_templateparser.y"
  2921. function yy_r143()
  2922. {
  2923. if ($this->security) {
  2924. $this->compiler->trigger_template_error(self::Err2);
  2925. }
  2926. $this->_retvalue =
  2927. '->{\'' . $this->yystack[ $this->yyidx + -4 ]->minor . '\'.' . $this->yystack[ $this->yyidx + -2 ]->minor .
  2928. $this->yystack[ $this->yyidx + 0 ]->minor . '}';
  2929. }
  2930. #line 1036 "../smarty/lexer/smarty_internal_templateparser.y"
  2931. function yy_r144()
  2932. {
  2933. $this->_retvalue = '->' . $this->yystack[ $this->yyidx + 0 ]->minor;
  2934. }
  2935. #line 1044 "../smarty/lexer/smarty_internal_templateparser.y"
  2936. function yy_r145()
  2937. {
  2938. $this->_retvalue = $this->compiler->compilePHPFunctionCall($this->yystack[ $this->yyidx + -3 ]->minor,
  2939. $this->yystack[ $this->yyidx + -1 ]->minor);
  2940. }
  2941. #line 1051 "../smarty/lexer/smarty_internal_templateparser.y"
  2942. function yy_r146()
  2943. {
  2944. if ($this->security && substr($this->yystack[ $this->yyidx + -3 ]->minor, 0, 1) === '_') {
  2945. $this->compiler->trigger_template_error(self::Err1);
  2946. }
  2947. $this->_retvalue = $this->yystack[ $this->yyidx + -3 ]->minor . '(' .
  2948. implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ')';
  2949. }
  2950. #line 1062 "../smarty/lexer/smarty_internal_templateparser.y"
  2951. function yy_r147()
  2952. {
  2953. if ($this->security) {
  2954. $this->compiler->trigger_template_error(self::Err2);
  2955. }
  2956. $prefixVar = $this->compiler->getNewPrefixVariable();
  2957. $this->compiler->appendPrefixCode("<?php {$prefixVar} = " . $this->compiler->compileVariable('\'' .
  2958. substr($this->yystack[ $this->yyidx +
  2959. -3 ]->minor,
  2960. 1) . '\'') .
  2961. ';?>');
  2962. $this->_retvalue = $prefixVar . '(' . implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ')';
  2963. }
  2964. #line 1079 "../smarty/lexer/smarty_internal_templateparser.y"
  2965. function yy_r148()
  2966. {
  2967. $this->_retvalue =
  2968. array_merge($this->yystack[ $this->yyidx + -2 ]->minor, array($this->yystack[ $this->yyidx + 0 ]->minor));
  2969. }
  2970. #line 1083 "../smarty/lexer/smarty_internal_templateparser.y"
  2971. function yy_r151()
  2972. {
  2973. $this->_retvalue = array_merge($this->yystack[ $this->yyidx + -2 ]->minor,
  2974. array(array_merge($this->yystack[ $this->yyidx + -1 ]->minor,
  2975. $this->yystack[ $this->yyidx + 0 ]->minor)));
  2976. }
  2977. #line 1091 "../smarty/lexer/smarty_internal_templateparser.y"
  2978. function yy_r152()
  2979. {
  2980. $this->_retvalue =
  2981. array(array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor));
  2982. }
  2983. #line 1099 "../smarty/lexer/smarty_internal_templateparser.y"
  2984. function yy_r154()
  2985. {
  2986. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor);
  2987. }
  2988. #line 1118 "../smarty/lexer/smarty_internal_templateparser.y"
  2989. function yy_r155()
  2990. {
  2991. $this->_retvalue =
  2992. array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor);
  2993. }
  2994. #line 1123 "../smarty/lexer/smarty_internal_templateparser.y"
  2995. function yy_r159()
  2996. {
  2997. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '', 'method');
  2998. }
  2999. #line 1128 "../smarty/lexer/smarty_internal_templateparser.y"
  3000. function yy_r160()
  3001. {
  3002. $this->_retvalue =
  3003. array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'method');
  3004. }
  3005. #line 1133 "../smarty/lexer/smarty_internal_templateparser.y"
  3006. function yy_r161()
  3007. {
  3008. $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '');
  3009. }
  3010. #line 1138 "../smarty/lexer/smarty_internal_templateparser.y"
  3011. function yy_r162()
  3012. {
  3013. $this->_retvalue =
  3014. array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'property');
  3015. }
  3016. #line 1144 "../smarty/lexer/smarty_internal_templateparser.y"
  3017. function yy_r163()
  3018. {
  3019. $this->_retvalue = array($this->yystack[ $this->yyidx + -2 ]->minor,
  3020. $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor,
  3021. 'property');
  3022. }
  3023. #line 1148 "../smarty/lexer/smarty_internal_templateparser.y"
  3024. function yy_r164()
  3025. {
  3026. $this->_retvalue = ' ' . trim($this->yystack[ $this->yyidx + 0 ]->minor) . ' ';
  3027. }
  3028. #line 1167 "../smarty/lexer/smarty_internal_templateparser.y"
  3029. function yy_r165()
  3030. {
  3031. static $lops = array(
  3032. 'eq' => ' == ',
  3033. 'ne' => ' != ',
  3034. 'neq' => ' != ',
  3035. 'gt' => ' > ',
  3036. 'ge' => ' >= ',
  3037. 'gte' => ' >= ',
  3038. 'lt' => ' < ',
  3039. 'le' => ' <= ',
  3040. 'lte' => ' <= ',
  3041. 'mod' => ' % ',
  3042. 'and' => ' && ',
  3043. 'or' => ' || ',
  3044. 'xor' => ' xor ',
  3045. );
  3046. $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor));
  3047. $this->_retvalue = $lops[ $op ];
  3048. }
  3049. #line 1180 "../smarty/lexer/smarty_internal_templateparser.y"
  3050. function yy_r166()
  3051. {
  3052. static $tlops = array(
  3053. 'isdivby' => array('op' => ' % ', 'pre' => '!('),
  3054. 'isnotdivby' => array('op' => ' % ', 'pre' => '('),
  3055. 'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '),
  3056. 'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '),
  3057. 'isoddby' => array('op' => ' / ', 'pre' => '(1 & '),
  3058. 'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '),
  3059. );
  3060. $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor));
  3061. $this->_retvalue = $tlops[ $op ];
  3062. }
  3063. #line 1194 "../smarty/lexer/smarty_internal_templateparser.y"
  3064. function yy_r167()
  3065. {
  3066. static $scond = array(
  3067. 'iseven' => '!(1 & ',
  3068. 'isnoteven' => '(1 & ',
  3069. 'isodd' => '(1 & ',
  3070. 'isnotodd' => '!(1 & ',
  3071. );
  3072. $op = strtolower(str_replace(' ', '', $this->yystack[ $this->yyidx + 0 ]->minor));
  3073. $this->_retvalue = $scond[ $op ];
  3074. }
  3075. #line 1202 "../smarty/lexer/smarty_internal_templateparser.y"
  3076. function yy_r168()
  3077. {
  3078. $this->_retvalue = 'array(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
  3079. }
  3080. #line 1210 "../smarty/lexer/smarty_internal_templateparser.y"
  3081. function yy_r170()
  3082. {
  3083. $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor;
  3084. }
  3085. #line 1214 "../smarty/lexer/smarty_internal_templateparser.y"
  3086. function yy_r172()
  3087. {
  3088. $this->_retvalue =
  3089. $this->yystack[ $this->yyidx + -2 ]->minor . '=>' . $this->yystack[ $this->yyidx + 0 ]->minor;
  3090. }
  3091. #line 1230 "../smarty/lexer/smarty_internal_templateparser.y"
  3092. function yy_r173()
  3093. {
  3094. $this->_retvalue =
  3095. '\'' . $this->yystack[ $this->yyidx + -2 ]->minor . '\'=>' . $this->yystack[ $this->yyidx + 0 ]->minor;
  3096. }
  3097. #line 1236 "../smarty/lexer/smarty_internal_templateparser.y"
  3098. function yy_r176()
  3099. {
  3100. $this->compiler->leaveDoubleQuote();
  3101. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor->to_smarty_php($this);
  3102. }
  3103. #line 1241 "../smarty/lexer/smarty_internal_templateparser.y"
  3104. function yy_r177()
  3105. {
  3106. $this->yystack[ $this->yyidx + -1 ]->minor->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  3107. $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
  3108. }
  3109. #line 1245 "../smarty/lexer/smarty_internal_templateparser.y"
  3110. function yy_r178()
  3111. {
  3112. $this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  3113. }
  3114. #line 1249 "../smarty/lexer/smarty_internal_templateparser.y"
  3115. function yy_r179()
  3116. {
  3117. $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)' . $this->yystack[ $this->yyidx + -1 ]->minor);
  3118. }
  3119. #line 1253 "../smarty/lexer/smarty_internal_templateparser.y"
  3120. function yy_r180()
  3121. {
  3122. $this->_retvalue =
  3123. new Smarty_Internal_ParseTree_Code('(string)(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')');
  3124. }
  3125. #line 1265 "../smarty/lexer/smarty_internal_templateparser.y"
  3126. function yy_r181()
  3127. {
  3128. $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\'' .
  3129. substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) .
  3130. '\']->value');
  3131. }
  3132. #line 1269 "../smarty/lexer/smarty_internal_templateparser.y"
  3133. function yy_r184()
  3134. {
  3135. $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[ $this->yyidx + 0 ]->minor);
  3136. }
  3137. function yy_r185()
  3138. {
  3139. $this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this->yystack[ $this->yyidx + 0 ]->minor);
  3140. }
  3141. public function yy_reduce($yyruleno)
  3142. {
  3143. if ($this->yyTraceFILE && $yyruleno >= 0
  3144. && $yyruleno < count(self::$yyRuleName)) {
  3145. fprintf($this->yyTraceFILE,
  3146. "%sReduce (%d) [%s].\n",
  3147. $this->yyTracePrompt,
  3148. $yyruleno,
  3149. self::$yyRuleName[ $yyruleno ]);
  3150. }
  3151. $this->_retvalue = $yy_lefthand_side = null;
  3152. if (isset(self::$yyReduceMap[ $yyruleno ])) {
  3153. // call the action
  3154. $this->_retvalue = null;
  3155. $this->{'yy_r' . self::$yyReduceMap[ $yyruleno ]}();
  3156. $yy_lefthand_side = $this->_retvalue;
  3157. }
  3158. $yygoto = self::$yyRuleInfo[ $yyruleno ][ 0 ];
  3159. $yysize = self::$yyRuleInfo[ $yyruleno ][ 1 ];
  3160. $this->yyidx -= $yysize;
  3161. for ($i = $yysize; $i; $i--) {
  3162. // pop all of the right-hand side parameters
  3163. array_pop($this->yystack);
  3164. }
  3165. $yyact = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno, $yygoto);
  3166. if ($yyact < self::YYNSTATE) {
  3167. if (!$this->yyTraceFILE && $yysize) {
  3168. $this->yyidx++;
  3169. $x = new TP_yyStackEntry;
  3170. $x->stateno = $yyact;
  3171. $x->major = $yygoto;
  3172. $x->minor = $yy_lefthand_side;
  3173. $this->yystack[ $this->yyidx ] = $x;
  3174. } else {
  3175. $this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
  3176. }
  3177. } else if ($yyact === self::YYNSTATE + self::YYNRULE + 1) {
  3178. $this->yy_accept();
  3179. }
  3180. }
  3181. public function yy_parse_failed()
  3182. {
  3183. if ($this->yyTraceFILE) {
  3184. fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt);
  3185. }
  3186. while ($this->yyidx >= 0) {
  3187. $this->yy_pop_parser_stack();
  3188. }
  3189. }
  3190. public function yy_syntax_error($yymajor, $TOKEN)
  3191. {
  3192. #line 214 "../smarty/lexer/smarty_internal_templateparser.y"
  3193. $this->internalError = true;
  3194. $this->yymajor = $yymajor;
  3195. $this->compiler->trigger_template_error();
  3196. }
  3197. public function yy_accept()
  3198. {
  3199. if ($this->yyTraceFILE) {
  3200. fprintf($this->yyTraceFILE, "%sAccept!\n", $this->yyTracePrompt);
  3201. }
  3202. while ($this->yyidx >= 0) {
  3203. $this->yy_pop_parser_stack();
  3204. }
  3205. #line 207 "../smarty/lexer/smarty_internal_templateparser.y"
  3206. $this->successful = !$this->internalError;
  3207. $this->internalError = false;
  3208. $this->retvalue = $this->_retvalue;
  3209. }
  3210. public function doParse($yymajor, $yytokenvalue)
  3211. {
  3212. $yyerrorhit = 0; /* True if yymajor has invoked an error */
  3213. if ($this->yyidx === null || $this->yyidx < 0) {
  3214. $this->yyidx = 0;
  3215. $this->yyerrcnt = -1;
  3216. $x = new TP_yyStackEntry;
  3217. $x->stateno = 0;
  3218. $x->major = 0;
  3219. $this->yystack = array();
  3220. $this->yystack[] = $x;
  3221. }
  3222. $yyendofinput = ($yymajor == 0);
  3223. if ($this->yyTraceFILE) {
  3224. fprintf($this->yyTraceFILE,
  3225. "%sInput %s\n",
  3226. $this->yyTracePrompt,
  3227. $this->yyTokenName[ $yymajor ]);
  3228. }
  3229. do {
  3230. $yyact = $this->yy_find_shift_action($yymajor);
  3231. if ($yymajor < self::YYERRORSYMBOL &&
  3232. !$this->yy_is_expected_token($yymajor)) {
  3233. // force a syntax error
  3234. $yyact = self::YY_ERROR_ACTION;
  3235. }
  3236. if ($yyact < self::YYNSTATE) {
  3237. $this->yy_shift($yyact, $yymajor, $yytokenvalue);
  3238. $this->yyerrcnt--;
  3239. if ($yyendofinput && $this->yyidx >= 0) {
  3240. $yymajor = 0;
  3241. } else {
  3242. $yymajor = self::YYNOCODE;
  3243. }
  3244. } else if ($yyact < self::YYNSTATE + self::YYNRULE) {
  3245. $this->yy_reduce($yyact - self::YYNSTATE);
  3246. } else if ($yyact === self::YY_ERROR_ACTION) {
  3247. if ($this->yyTraceFILE) {
  3248. fprintf($this->yyTraceFILE,
  3249. "%sSyntax Error!\n",
  3250. $this->yyTracePrompt);
  3251. }
  3252. if (self::YYERRORSYMBOL) {
  3253. if ($this->yyerrcnt < 0) {
  3254. $this->yy_syntax_error($yymajor, $yytokenvalue);
  3255. }
  3256. $yymx = $this->yystack[ $this->yyidx ]->major;
  3257. if ($yymx === self::YYERRORSYMBOL || $yyerrorhit) {
  3258. if ($this->yyTraceFILE) {
  3259. fprintf($this->yyTraceFILE,
  3260. "%sDiscard input token %s\n",
  3261. $this->yyTracePrompt,
  3262. $this->yyTokenName[ $yymajor ]);
  3263. }
  3264. $this->yy_destructor($yymajor, $yytokenvalue);
  3265. $yymajor = self::YYNOCODE;
  3266. } else {
  3267. while ($this->yyidx >= 0 &&
  3268. $yymx !== self::YYERRORSYMBOL &&
  3269. ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE
  3270. ) {
  3271. $this->yy_pop_parser_stack();
  3272. }
  3273. if ($this->yyidx < 0 || $yymajor == 0) {
  3274. $this->yy_destructor($yymajor, $yytokenvalue);
  3275. $this->yy_parse_failed();
  3276. $yymajor = self::YYNOCODE;
  3277. } else if ($yymx !== self::YYERRORSYMBOL) {
  3278. $u2 = 0;
  3279. $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
  3280. }
  3281. }
  3282. $this->yyerrcnt = 3;
  3283. $yyerrorhit = 1;
  3284. } else {
  3285. if ($this->yyerrcnt <= 0) {
  3286. $this->yy_syntax_error($yymajor, $yytokenvalue);
  3287. }
  3288. $this->yyerrcnt = 3;
  3289. $this->yy_destructor($yymajor, $yytokenvalue);
  3290. if ($yyendofinput) {
  3291. $this->yy_parse_failed();
  3292. }
  3293. $yymajor = self::YYNOCODE;
  3294. }
  3295. } else {
  3296. $this->yy_accept();
  3297. $yymajor = self::YYNOCODE;
  3298. }
  3299. } while ($yymajor !== self::YYNOCODE && $this->yyidx >= 0);
  3300. }
  3301. }