php.js 171 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031
  1. /*
  2. php.js 0.1.0 <http://phpjs.hertzen.com/>
  3. Copyright (c) 2013 Niklas von Hertzen
  4. Released under MIT License
  5. This file contains:
  6. - [var PHP = {Constants:{}};]
  7. - src/modules/tokenizer/constants.js
  8. - src/parser/lexer.js
  9. - src/parser/parser.js
  10. - src/parser/yyn.js
  11. - src/parser/yyn_stmt.js
  12. - src/parser/yyn_expr.js
  13. - src/parser/yyn_scalar.js
  14. */
  15. define(function(require, exports, module) {
  16. var PHP = {Constants:{}};
  17. PHP.Constants.T_INCLUDE = 262;
  18. PHP.Constants.T_INCLUDE_ONCE = 261;
  19. PHP.Constants.T_EVAL = 260;
  20. PHP.Constants.T_REQUIRE = 259;
  21. PHP.Constants.T_REQUIRE_ONCE = 258;
  22. PHP.Constants.T_LOGICAL_OR = 263;
  23. PHP.Constants.T_LOGICAL_XOR = 264;
  24. PHP.Constants.T_LOGICAL_AND = 265;
  25. PHP.Constants.T_PRINT = 266;
  26. PHP.Constants.T_PLUS_EQUAL = 277;
  27. PHP.Constants.T_MINUS_EQUAL = 276;
  28. PHP.Constants.T_MUL_EQUAL = 275;
  29. PHP.Constants.T_DIV_EQUAL = 274;
  30. PHP.Constants.T_CONCAT_EQUAL = 273;
  31. PHP.Constants.T_MOD_EQUAL = 272;
  32. PHP.Constants.T_AND_EQUAL = 271;
  33. PHP.Constants.T_OR_EQUAL = 270;
  34. PHP.Constants.T_XOR_EQUAL = 269;
  35. PHP.Constants.T_SL_EQUAL = 268;
  36. PHP.Constants.T_SR_EQUAL = 267;
  37. PHP.Constants.T_BOOLEAN_OR = 278;
  38. PHP.Constants.T_BOOLEAN_AND = 279;
  39. PHP.Constants.T_IS_EQUAL = 283;
  40. PHP.Constants.T_IS_NOT_EQUAL = 282;
  41. PHP.Constants.T_IS_IDENTICAL = 281;
  42. PHP.Constants.T_IS_NOT_IDENTICAL = 280;
  43. PHP.Constants.T_IS_SMALLER_OR_EQUAL = 285;
  44. PHP.Constants.T_IS_GREATER_OR_EQUAL = 284;
  45. PHP.Constants.T_SL = 287;
  46. PHP.Constants.T_SR = 286;
  47. PHP.Constants.T_INSTANCEOF = 288;
  48. PHP.Constants.T_INC = 297;
  49. PHP.Constants.T_DEC = 296;
  50. PHP.Constants.T_INT_CAST = 295;
  51. PHP.Constants.T_DOUBLE_CAST = 294;
  52. PHP.Constants.T_STRING_CAST = 293;
  53. PHP.Constants.T_ARRAY_CAST = 292;
  54. PHP.Constants.T_OBJECT_CAST = 291;
  55. PHP.Constants.T_BOOL_CAST = 290;
  56. PHP.Constants.T_UNSET_CAST = 289;
  57. PHP.Constants.T_NEW = 299;
  58. PHP.Constants.T_CLONE = 298;
  59. PHP.Constants.T_EXIT = 300;
  60. PHP.Constants.T_IF = 301;
  61. PHP.Constants.T_ELSEIF = 302;
  62. PHP.Constants.T_ELSE = 303;
  63. PHP.Constants.T_ENDIF = 304;
  64. PHP.Constants.T_LNUMBER = 305;
  65. PHP.Constants.T_DNUMBER = 306;
  66. PHP.Constants.T_STRING = 307;
  67. PHP.Constants.T_STRING_VARNAME = 308;
  68. PHP.Constants.T_VARIABLE = 309;
  69. PHP.Constants.T_NUM_STRING = 310;
  70. PHP.Constants.T_INLINE_HTML = 311;
  71. PHP.Constants.T_CHARACTER = 312;
  72. PHP.Constants.T_BAD_CHARACTER = 313;
  73. PHP.Constants.T_ENCAPSED_AND_WHITESPACE = 314;
  74. PHP.Constants.T_CONSTANT_ENCAPSED_STRING = 315;
  75. PHP.Constants.T_ECHO = 316;
  76. PHP.Constants.T_DO = 317;
  77. PHP.Constants.T_WHILE = 318;
  78. PHP.Constants.T_ENDWHILE = 319;
  79. PHP.Constants.T_FOR = 320;
  80. PHP.Constants.T_ENDFOR = 321;
  81. PHP.Constants.T_FOREACH = 322;
  82. PHP.Constants.T_ENDFOREACH = 323;
  83. PHP.Constants.T_DECLARE = 324;
  84. PHP.Constants.T_ENDDECLARE = 325;
  85. PHP.Constants.T_AS = 326;
  86. PHP.Constants.T_SWITCH = 327;
  87. PHP.Constants.T_ENDSWITCH = 328;
  88. PHP.Constants.T_CASE = 329;
  89. PHP.Constants.T_DEFAULT = 330;
  90. PHP.Constants.T_BREAK = 331;
  91. PHP.Constants.T_CONTINUE = 332;
  92. PHP.Constants.T_GOTO = 333;
  93. PHP.Constants.T_FUNCTION = 334;
  94. PHP.Constants.T_CONST = 335;
  95. PHP.Constants.T_RETURN = 336;
  96. PHP.Constants.T_TRY = 337;
  97. PHP.Constants.T_CATCH = 338;
  98. PHP.Constants.T_THROW = 339;
  99. PHP.Constants.T_USE = 340;
  100. //PHP.Constants.T_INSTEADOF = ;
  101. PHP.Constants.T_GLOBAL = 341;
  102. PHP.Constants.T_STATIC = 347;
  103. PHP.Constants.T_ABSTRACT = 346;
  104. PHP.Constants.T_FINAL = 345;
  105. PHP.Constants.T_PRIVATE = 344;
  106. PHP.Constants.T_PROTECTED = 343;
  107. PHP.Constants.T_PUBLIC = 342;
  108. PHP.Constants.T_VAR = 348;
  109. PHP.Constants.T_UNSET = 349;
  110. PHP.Constants.T_ISSET = 350;
  111. PHP.Constants.T_EMPTY = 351;
  112. PHP.Constants.T_HALT_COMPILER = 352;
  113. PHP.Constants.T_CLASS = 353;
  114. PHP.Constants.T_TRAIT = 382;
  115. PHP.Constants.T_INTERFACE = 354;
  116. PHP.Constants.T_EXTENDS = 355;
  117. PHP.Constants.T_IMPLEMENTS = 356;
  118. PHP.Constants.T_OBJECT_OPERATOR = 357;
  119. PHP.Constants.T_DOUBLE_ARROW = 358;
  120. PHP.Constants.T_LIST = 359;
  121. PHP.Constants.T_ARRAY = 360;
  122. //PHP.Constants.T_CALLABLE = ;
  123. PHP.Constants.T_CLASS_C = 361;
  124. PHP.Constants.T_TRAIT_C = 381;
  125. PHP.Constants.T_METHOD_C = 362;
  126. PHP.Constants.T_FUNC_C = 363;
  127. PHP.Constants.T_LINE = 364;
  128. PHP.Constants.T_FILE = 365;
  129. PHP.Constants.T_COMMENT = 366;
  130. PHP.Constants.T_DOC_COMMENT = 367;
  131. PHP.Constants.T_OPEN_TAG = 368;
  132. PHP.Constants.T_OPEN_TAG_WITH_ECHO = 369;
  133. PHP.Constants.T_CLOSE_TAG = 370;
  134. PHP.Constants.T_WHITESPACE = 371;
  135. PHP.Constants.T_START_HEREDOC = 372;
  136. PHP.Constants.T_END_HEREDOC = 373;
  137. PHP.Constants.T_DOLLAR_OPEN_CURLY_BRACES = 374;
  138. PHP.Constants.T_CURLY_OPEN = 375;
  139. PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM = 376;
  140. PHP.Constants.T_DOUBLE_COLON = 376;
  141. PHP.Constants.T_NAMESPACE = 377;
  142. PHP.Constants.T_NS_C = 378;
  143. PHP.Constants.T_DIR = 379;
  144. PHP.Constants.T_NS_SEPARATOR = 380;
  145. PHP.Lexer = function( src, ini ) {
  146. var heredoc,
  147. lineBreaker = function( result ) {
  148. if (result.match(/\n/) !== null) {
  149. var quote = result.substring(0, 1);
  150. result = '[' + result.split(/\n/).join( quote + "," + quote ) + '].join("\\n")';
  151. }
  152. return result;
  153. },
  154. prev,
  155. openTag = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag) ) ? /(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
  156. openTagStart = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag)) ? /^(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /^(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
  157. tokens = [
  158. {
  159. value: PHP.Constants.T_NAMESPACE,
  160. re: /^namespace(?=\s)/i
  161. },
  162. {
  163. value: PHP.Constants.T_USE,
  164. re: /^use(?=\s)/i
  165. },
  166. {
  167. value: PHP.Constants.T_ABSTRACT,
  168. re: /^abstract(?=\s)/i
  169. },
  170. {
  171. value: PHP.Constants.T_IMPLEMENTS,
  172. re: /^implements(?=\s)/i
  173. },
  174. {
  175. value: PHP.Constants.T_INTERFACE,
  176. re: /^interface(?=\s)/i
  177. },
  178. {
  179. value: PHP.Constants.T_CONST,
  180. re: /^const(?=\s)/i
  181. },
  182. {
  183. value: PHP.Constants.T_STATIC,
  184. re: /^static(?=\s)/i
  185. },
  186. {
  187. value: PHP.Constants.T_FINAL,
  188. re: /^final(?=\s)/i
  189. },
  190. {
  191. value: PHP.Constants.T_VAR,
  192. re: /^var(?=\s)/i
  193. },
  194. {
  195. value: PHP.Constants.T_GLOBAL,
  196. re: /^global(?=\s)/i
  197. },
  198. {
  199. value: PHP.Constants.T_CLONE,
  200. re: /^clone(?=\s)/i
  201. },
  202. {
  203. value: PHP.Constants.T_THROW,
  204. re: /^throw(?=\s)/i
  205. },
  206. {
  207. value: PHP.Constants.T_EXTENDS,
  208. re: /^extends(?=\s)/i
  209. },
  210. {
  211. value: PHP.Constants.T_AND_EQUAL,
  212. re: /^&=/
  213. },
  214. {
  215. value: PHP.Constants.T_AS,
  216. re: /^as(?=\s)/i
  217. },
  218. {
  219. value: PHP.Constants.T_ARRAY_CAST,
  220. re: /^\(array\)/i
  221. },
  222. {
  223. value: PHP.Constants.T_BOOL_CAST,
  224. re: /^\((bool|boolean)\)/i
  225. },
  226. {
  227. value: PHP.Constants.T_DOUBLE_CAST,
  228. re: /^\((real|float|double)\)/i
  229. },
  230. {
  231. value: PHP.Constants.T_INT_CAST,
  232. re: /^\((int|integer)\)/i
  233. },
  234. {
  235. value: PHP.Constants.T_OBJECT_CAST,
  236. re: /^\(object\)/i
  237. },
  238. {
  239. value: PHP.Constants.T_STRING_CAST,
  240. re: /^\(string\)/i
  241. },
  242. {
  243. value: PHP.Constants.T_UNSET_CAST,
  244. re: /^\(unset\)/i
  245. },
  246. {
  247. value: PHP.Constants.T_TRY,
  248. re: /^try(?=\s*{)/i
  249. },
  250. {
  251. value: PHP.Constants.T_CATCH,
  252. re: /^catch(?=\s*\()/i
  253. },
  254. {
  255. value: PHP.Constants.T_INSTANCEOF,
  256. re: /^instanceof(?=\s)/i
  257. },
  258. {
  259. value: PHP.Constants.T_LOGICAL_OR,
  260. re: /^or(?=\s)/i
  261. },
  262. {
  263. value: PHP.Constants.T_LOGICAL_AND,
  264. re: /^and(?=\s)/i
  265. },
  266. {
  267. value: PHP.Constants.T_LOGICAL_XOR,
  268. re: /^xor(?=\s)/i
  269. },
  270. {
  271. value: PHP.Constants.T_BOOLEAN_AND,
  272. re: /^&&/
  273. },
  274. {
  275. value: PHP.Constants.T_BOOLEAN_OR,
  276. re: /^\|\|/
  277. },
  278. {
  279. value: PHP.Constants.T_CONTINUE,
  280. re: /^continue(?=\s|;)/i
  281. },
  282. {
  283. value: PHP.Constants.T_BREAK,
  284. re: /^break(?=\s|;)/i
  285. },
  286. {
  287. value: PHP.Constants.T_ENDDECLARE,
  288. re: /^enddeclare(?=\s|;)/i
  289. },
  290. {
  291. value: PHP.Constants.T_ENDFOR,
  292. re: /^endfor(?=\s|;)/i
  293. },
  294. {
  295. value: PHP.Constants.T_ENDFOREACH,
  296. re: /^endforeach(?=\s|;)/i
  297. },
  298. {
  299. value: PHP.Constants.T_ENDIF,
  300. re: /^endif(?=\s|;)/i
  301. },
  302. {
  303. value: PHP.Constants.T_ENDSWITCH,
  304. re: /^endswitch(?=\s|;)/i
  305. },
  306. {
  307. value: PHP.Constants.T_ENDWHILE,
  308. re: /^endwhile(?=\s|;)/i
  309. },
  310. {
  311. value: PHP.Constants.T_CASE,
  312. re: /^case(?=\s)/i
  313. },
  314. {
  315. value: PHP.Constants.T_DEFAULT,
  316. re: /^default(?=\s|:)/i
  317. },
  318. {
  319. value: PHP.Constants.T_SWITCH,
  320. re: /^switch(?=[ (])/i
  321. },
  322. {
  323. value: PHP.Constants.T_EXIT,
  324. re: /^(exit|die)(?=[ \(;])/i
  325. },
  326. {
  327. value: PHP.Constants.T_CLOSE_TAG,
  328. re: /^(\?\>|\%\>|\<\/script\>)\s?\s?/i,
  329. func: function( result ) {
  330. insidePHP = false;
  331. return result;
  332. }
  333. },
  334. {
  335. value: PHP.Constants.T_DOUBLE_ARROW,
  336. re: /^\=\>/
  337. },
  338. {
  339. value: PHP.Constants.T_DOUBLE_COLON,
  340. re: /^\:\:/
  341. },
  342. {
  343. value: PHP.Constants.T_METHOD_C,
  344. re: /^__METHOD__/
  345. },
  346. {
  347. value: PHP.Constants.T_LINE,
  348. re: /^__LINE__/
  349. },
  350. {
  351. value: PHP.Constants.T_FILE,
  352. re: /^__FILE__/
  353. },
  354. {
  355. value: PHP.Constants.T_FUNC_C,
  356. re: /^__FUNCTION__/
  357. },
  358. {
  359. value: PHP.Constants.T_NS_C,
  360. re: /^__NAMESPACE__/
  361. },
  362. {
  363. value: PHP.Constants.T_TRAIT_C,
  364. re: /^__TRAIT__/
  365. },
  366. {
  367. value: PHP.Constants.T_DIR,
  368. re: /^__DIR__/
  369. },
  370. {
  371. value: PHP.Constants.T_CLASS_C,
  372. re: /^__CLASS__/
  373. },
  374. {
  375. value: PHP.Constants.T_INC,
  376. re: /^\+\+/
  377. },
  378. {
  379. value: PHP.Constants.T_DEC,
  380. re: /^\-\-/
  381. },
  382. {
  383. value: PHP.Constants.T_CONCAT_EQUAL,
  384. re: /^\.\=/
  385. },
  386. {
  387. value: PHP.Constants.T_DIV_EQUAL,
  388. re: /^\/\=/
  389. },
  390. {
  391. value: PHP.Constants.T_XOR_EQUAL,
  392. re: /^\^\=/
  393. },
  394. {
  395. value: PHP.Constants.T_MUL_EQUAL,
  396. re: /^\*\=/
  397. },
  398. {
  399. value: PHP.Constants.T_MOD_EQUAL,
  400. re: /^\%\=/
  401. },
  402. {
  403. value: PHP.Constants.T_SL_EQUAL,
  404. re: /^<<=/
  405. },
  406. {
  407. value: PHP.Constants.T_START_HEREDOC,
  408. re: /^<<<[A-Z_0-9]+\s/i,
  409. func: function( result ){
  410. heredoc = result.substring(3, result.length - 1);
  411. return result;
  412. }
  413. },
  414. {
  415. value: PHP.Constants.T_SL,
  416. re: /^<</
  417. },
  418. {
  419. value: PHP.Constants.T_IS_SMALLER_OR_EQUAL,
  420. re: /^<=/
  421. },
  422. {
  423. value: PHP.Constants.T_SR_EQUAL,
  424. re: /^>>=/
  425. },
  426. {
  427. value: PHP.Constants.T_SR,
  428. re: /^>>/
  429. },
  430. {
  431. value: PHP.Constants.T_IS_GREATER_OR_EQUAL,
  432. re: /^>=/
  433. },
  434. {
  435. value: PHP.Constants.T_OR_EQUAL,
  436. re: /^\|\=/
  437. },
  438. {
  439. value: PHP.Constants.T_PLUS_EQUAL,
  440. re: /^\+\=/
  441. },
  442. {
  443. value: PHP.Constants.T_MINUS_EQUAL,
  444. re: /^-\=/
  445. },
  446. {
  447. value: PHP.Constants.T_OBJECT_OPERATOR,
  448. re: /^\-\>/i
  449. },
  450. {
  451. value: PHP.Constants.T_CLASS,
  452. re: /^class(?=[\s\{])/i,
  453. afterWhitespace: true
  454. },
  455. {
  456. value: PHP.Constants.T_TRAIT,
  457. re: /^trait(?=[\s]+[A-Za-z])/i,
  458. },
  459. {
  460. value: PHP.Constants.T_PUBLIC,
  461. re: /^public(?=[\s])/i
  462. },
  463. {
  464. value: PHP.Constants.T_PRIVATE,
  465. re: /^private(?=[\s])/i
  466. },
  467. {
  468. value: PHP.Constants.T_PROTECTED,
  469. re: /^protected(?=[\s])/i
  470. },
  471. {
  472. value: PHP.Constants.T_ARRAY,
  473. re: /^array(?=\s*?\()/i
  474. },
  475. {
  476. value: PHP.Constants.T_EMPTY,
  477. re: /^empty(?=[ \(])/i
  478. },
  479. {
  480. value: PHP.Constants.T_ISSET,
  481. re: /^isset(?=[ \(])/i
  482. },
  483. {
  484. value: PHP.Constants.T_UNSET,
  485. re: /^unset(?=[ \(])/i
  486. },
  487. {
  488. value: PHP.Constants.T_RETURN,
  489. re: /^return(?=[ "'(;])/i
  490. },
  491. {
  492. value: PHP.Constants.T_FUNCTION,
  493. re: /^function(?=[ "'(;])/i
  494. },
  495. {
  496. value: PHP.Constants.T_ECHO,
  497. re: /^echo(?=[ "'(;])/i
  498. },
  499. {
  500. value: PHP.Constants.T_LIST,
  501. re: /^list(?=\s*?\()/i
  502. },
  503. {
  504. value: PHP.Constants.T_PRINT,
  505. re: /^print(?=[ "'(;])/i
  506. },
  507. {
  508. value: PHP.Constants.T_INCLUDE,
  509. re: /^include(?=[ "'(;])/i
  510. },
  511. {
  512. value: PHP.Constants.T_INCLUDE_ONCE,
  513. re: /^include_once(?=[ "'(;])/i
  514. },
  515. {
  516. value: PHP.Constants.T_REQUIRE,
  517. re: /^require(?=[ "'(;])/i
  518. },
  519. {
  520. value: PHP.Constants.T_REQUIRE_ONCE,
  521. re: /^require_once(?=[ "'(;])/i
  522. },
  523. {
  524. value: PHP.Constants.T_NEW,
  525. re: /^new(?=[ ])/i
  526. },
  527. {
  528. value: PHP.Constants.T_COMMENT,
  529. re: /^\/\*([\S\s]*?)(?:\*\/|$)/
  530. },
  531. {
  532. value: PHP.Constants.T_COMMENT,
  533. re: /^\/\/.*(\s)?/
  534. },
  535. {
  536. value: PHP.Constants.T_COMMENT,
  537. re: /^\#.*(\s)?/
  538. },
  539. {
  540. value: PHP.Constants.T_ELSEIF,
  541. re: /^elseif(?=[\s(])/i
  542. },
  543. {
  544. value: PHP.Constants.T_GOTO,
  545. re: /^goto(?=[\s(])/i
  546. },
  547. {
  548. value: PHP.Constants.T_ELSE,
  549. re: /^else(?=[\s{:])/i
  550. },
  551. {
  552. value: PHP.Constants.T_IF,
  553. re: /^if(?=[\s(])/i
  554. },
  555. {
  556. value: PHP.Constants.T_DO,
  557. re: /^do(?=[ {])/i
  558. },
  559. {
  560. value: PHP.Constants.T_WHILE,
  561. re: /^while(?=[ (])/i
  562. },
  563. {
  564. value: PHP.Constants.T_FOREACH,
  565. re: /^foreach(?=[ (])/i
  566. },
  567. {
  568. value: PHP.Constants.T_ISSET,
  569. re: /^isset(?=[ (])/i
  570. },
  571. {
  572. value: PHP.Constants.T_IS_IDENTICAL,
  573. re: /^===/
  574. },
  575. {
  576. value: PHP.Constants.T_IS_EQUAL,
  577. re: /^==/
  578. },
  579. {
  580. value: PHP.Constants.T_IS_NOT_IDENTICAL,
  581. re: /^\!==/
  582. },
  583. {
  584. value: PHP.Constants.T_IS_NOT_EQUAL,
  585. re: /^(\!=|\<\>)/
  586. },
  587. {
  588. value: PHP.Constants.T_FOR,
  589. re: /^for(?=[ (])/i
  590. },
  591. {
  592. value: PHP.Constants.T_DNUMBER,
  593. re: /^[0-9]*\.[0-9]+([eE][-]?[0-9]*)?/
  594. /*,
  595. func: function( result ) {
  596. // transform e to E - token_get_all_variation1.phpt
  597. return (result - 0).toString().toUpperCase();
  598. }*/
  599. },
  600. {
  601. value: PHP.Constants.T_LNUMBER,
  602. re: /^(0x[0-9A-F]+|[0-9]+)/i
  603. },
  604. {
  605. value: PHP.Constants.T_OPEN_TAG_WITH_ECHO,
  606. re: /^(\<\?=|\<\%=)/i
  607. },
  608. {
  609. value: PHP.Constants.T_OPEN_TAG,
  610. re: openTagStart
  611. },
  612. {
  613. value: PHP.Constants.T_VARIABLE,
  614. re: /^\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/
  615. },
  616. {
  617. value: PHP.Constants.T_WHITESPACE,
  618. re: /^\s+/
  619. },
  620. {
  621. value: PHP.Constants.T_CONSTANT_ENCAPSED_STRING,
  622. re: /^("(?:[^"\\]|\\[\s\S])*"|'(?:[^'\\]|\\[\s\S])*')/,
  623. func: function( result, token ) {
  624. var curlyOpen = 0,
  625. len,
  626. bracketOpen = 0;
  627. if (result.substring( 0,1 ) === "'") {
  628. return result;
  629. }
  630. var match = result.match( /(?:[^\\]|\\.)*[^\\]\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/g );
  631. if ( match !== null ) {
  632. // string has a variable
  633. while( result.length > 0 ) {
  634. len = result.length;
  635. match = result.match( /^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\@\^\%\"\'\{\}]/ );
  636. if ( match !== null ) {
  637. results.push( match[ 0 ] );
  638. result = result.substring( 1 );
  639. if ( curlyOpen > 0 && match[ 0 ] === "}") {
  640. curlyOpen--;
  641. }
  642. if ( match[ 0 ] === "[" ) {
  643. bracketOpen++;
  644. }
  645. if ( match[ 0 ] === "]" ) {
  646. bracketOpen--;
  647. }
  648. }
  649. match = result.match(/^\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/);
  650. if ( match !== null ) {
  651. results.push([
  652. parseInt(PHP.Constants.T_VARIABLE, 10),
  653. match[ 0 ],
  654. line
  655. ]);
  656. result = result.substring( match[ 0 ].length );
  657. match = result.match(/^(\-\>)\s*([a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*)\s*(\()/);
  658. if ( match !== null ) {
  659. results.push([
  660. parseInt(PHP.Constants.T_OBJECT_OPERATOR, 10),
  661. match[ 1 ],
  662. line
  663. ]);
  664. results.push([
  665. parseInt(PHP.Constants.T_STRING, 10),
  666. match[ 2 ],
  667. line
  668. ]);
  669. if (match[3]) {
  670. results.push(match[3]);
  671. }
  672. result = result.substring( match[ 0 ].length );
  673. }
  674. if ( result.match( /^\[/g ) !== null ) {
  675. continue;
  676. }
  677. }
  678. var re;
  679. if ( curlyOpen > 0) {
  680. re = /^([^\\\$"{}\]\(\)\->]|\\.)+/g;
  681. } else {
  682. re = /^([^\\\$"{]|\\.|{[^\$]|\$(?=[^a-zA-Z_\x7f-\uffff]))+/g;;
  683. }
  684. var type, match2;
  685. while(( match = result.match( re )) !== null ) {
  686. if (result.length === 1) {
  687. throw new Error(match);
  688. }
  689. type = 0;
  690. if( curlyOpen > 0 ){
  691. if( match2 = match[0].match(/^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\{\}\@\^\%\$\~]/) ){
  692. results.push(match2[0]);
  693. }else{
  694. type = PHP.Constants.T_STRING;
  695. }
  696. }else{
  697. type = PHP.Constants.T_ENCAPSED_AND_WHITESPACE;
  698. }
  699. if( type ){
  700. results.push([
  701. parseInt(type, 10),
  702. match[ 0 ].replace(/\n/g,"\\n").replace(/\r/g,""),
  703. line
  704. ]);
  705. }
  706. line += match[ 0 ].split('\n').length - 1;
  707. result = result.substring( match[ 0 ].length );
  708. }
  709. if( curlyOpen > 0 && result.match(/^\->/) !== null ) {
  710. results.push([
  711. parseInt(PHP.Constants.T_OBJECT_OPERATOR, 10),
  712. '->',
  713. line
  714. ]);
  715. result = result.substring( 2 );
  716. }
  717. if( result.match(/^{\$/) !== null ) {
  718. results.push([
  719. parseInt(PHP.Constants.T_CURLY_OPEN, 10),
  720. "{",
  721. line
  722. ]);
  723. result = result.substring( 1 );
  724. curlyOpen++;
  725. }
  726. if (len === result.length) {
  727. // nothing has been found yet
  728. if ((match = result.match( /^(([^\\]|\\.)*?[^\\]\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*)/g )) !== null) {
  729. return;
  730. }
  731. }
  732. }
  733. return undefined;
  734. } else {
  735. result = result.replace(/\r/g,"");
  736. }
  737. /*
  738. if (result.match(/\r\n/) !== null) {
  739. var quote = result.substring(0, 1);
  740. result = '[' + result.split(/\r\n/).join( quote + "," + quote ) + '].join("\\n")';
  741. }
  742. */
  743. return result;
  744. }
  745. },
  746. {
  747. value: PHP.Constants.T_NS_SEPARATOR,
  748. re: /^\\(?=[a-zA-Z_])/
  749. },
  750. {
  751. value: PHP.Constants.T_STRING,
  752. re: /^[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/
  753. },
  754. {
  755. value: -1,
  756. re: /^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\{\}\@\^\%\"\'\$\~]/
  757. }];
  758. var results = [],
  759. line = 1,
  760. insidePHP = false,
  761. cancel = true;
  762. if ( src === null ) {
  763. return results;
  764. }
  765. if ( typeof src !== "string" ) {
  766. src = src.toString();
  767. }
  768. while (src.length > 0 && cancel === true) {
  769. if ( insidePHP === true ) {
  770. if ( heredoc !== undefined ) {
  771. // we are in a heredoc
  772. var regexp = new RegExp('([\\S\\s]*?)(\\r\\n|\\n|\\r)(' + heredoc + ')(;|\\r\\n|\\n)',"i");
  773. var result = src.match( regexp );
  774. if ( result !== null ) {
  775. // contents
  776. results.push([
  777. parseInt(PHP.Constants.T_ENCAPSED_AND_WHITESPACE, 10),
  778. result[ 1 ].replace(/^\n/g,"").replace(/\\\$/g,"$") + "\n",
  779. line
  780. ]);
  781. // note the no - 1 for length as regexp include one line as well
  782. line += result[ 1 ].split('\n').length;
  783. // heredoc end tag
  784. results.push([
  785. parseInt(PHP.Constants.T_END_HEREDOC, 10),
  786. result[ 3 ],
  787. line
  788. ]);
  789. src = src.substring( result[1].length + result[2].length + result[3].length );
  790. heredoc = undefined;
  791. }
  792. if (result === null) {
  793. throw Error("sup");
  794. }
  795. } else {
  796. cancel = tokens.some(function( token ){
  797. if ( token.afterWhitespace === true ) {
  798. // check last
  799. var last = results[ results.length - 1 ];
  800. if ( !Array.isArray( last ) || (last[ 0 ] !== PHP.Constants.T_WHITESPACE && last[ 0 ] !== PHP.Constants.T_OPEN_TAG && last[ 0 ] !== PHP.Constants.T_COMMENT)) {
  801. return false;
  802. }
  803. }
  804. var result = src.match( token.re );
  805. if ( result !== null ) {
  806. if ( token.value !== -1) {
  807. var resultString = result[ 0 ];
  808. if (token.func !== undefined ) {
  809. resultString = token.func( resultString, token );
  810. }
  811. if (resultString !== undefined ) {
  812. results.push([
  813. parseInt(token.value, 10),
  814. resultString,
  815. line
  816. ]);
  817. line += resultString.split('\n').length - 1;
  818. }
  819. } else {
  820. // character token
  821. results.push( result[ 0 ] );
  822. }
  823. src = src.substring(result[ 0 ].length);
  824. return true;
  825. }
  826. return false;
  827. });
  828. }
  829. } else {
  830. var result = openTag.exec( src );
  831. if ( result !== null ) {
  832. if ( result.index > 0 ) {
  833. var resultString = src.substring(0, result.index);
  834. results.push ([
  835. parseInt(PHP.Constants.T_INLINE_HTML, 10),
  836. resultString,
  837. line
  838. ]);
  839. line += resultString.split('\n').length - 1;
  840. src = src.substring( result.index );
  841. }
  842. insidePHP = true;
  843. } else {
  844. results.push ([
  845. parseInt(PHP.Constants.T_INLINE_HTML, 10),
  846. src.replace(/^\n/, ""),
  847. line
  848. ]);
  849. return results;
  850. }
  851. // src = src.substring(result[ 0 ].length);
  852. }
  853. }
  854. return results;
  855. };
  856. /*
  857. * @author Niklas von Hertzen <niklas at hertzen.com>
  858. * @created 15.6.2012
  859. * @website http://hertzen.com
  860. */
  861. /*
  862. * The skeleton for this parser was written by Moriyoshi Koizumi and is based on
  863. * the work by Masato Bito and is in the PUBLIC DOMAIN.
  864. * Ported to JavaScript by Niklas von Hertzen
  865. */
  866. PHP.Parser = function ( preprocessedTokens, eval ) {
  867. var yybase = this.yybase,
  868. yydefault = this.yydefault,
  869. yycheck = this.yycheck,
  870. yyaction = this.yyaction,
  871. yylen = this.yylen,
  872. yygbase = this.yygbase,
  873. yygcheck = this.yygcheck,
  874. yyp = this.yyp,
  875. yygoto = this.yygoto,
  876. yylhs = this.yylhs,
  877. terminals = this.terminals,
  878. translate = this.translate,
  879. yygdefault = this.yygdefault;
  880. this.pos = -1;
  881. this.line = 1;
  882. this.tokenMap = this.createTokenMap( );
  883. this.dropTokens = {};
  884. this.dropTokens[ PHP.Constants.T_WHITESPACE ] = 1;
  885. this.dropTokens[ PHP.Constants.T_OPEN_TAG ] = 1;
  886. var tokens = [];
  887. // pre-process
  888. preprocessedTokens.forEach( function( token, index ) {
  889. if ( typeof token === "object" && token[ 0 ] === PHP.Constants.T_OPEN_TAG_WITH_ECHO) {
  890. tokens.push([
  891. PHP.Constants.T_OPEN_TAG,
  892. token[ 1 ],
  893. token[ 2 ]
  894. ]);
  895. tokens.push([
  896. PHP.Constants.T_ECHO,
  897. token[ 1 ],
  898. token[ 2 ]
  899. ]);
  900. } else {
  901. tokens.push( token );
  902. }
  903. });
  904. this.tokens = tokens;
  905. // We start off with no lookahead-token
  906. var tokenId = this.TOKEN_NONE;
  907. // The attributes for a node are taken from the first and last token of the node.
  908. // From the first token only the startAttributes are taken and from the last only
  909. // the endAttributes. Both are merged using the array union operator (+).
  910. this.startAttributes = {
  911. 'startLine': 1
  912. };
  913. this.endAttributes = {};
  914. // In order to figure out the attributes for the starting token, we have to keep
  915. // them in a stack
  916. var attributeStack = [ this.startAttributes ];
  917. // Start off in the initial state and keep a stack of previous states
  918. var state = 0;
  919. var stateStack = [ state ];
  920. // AST stack
  921. this.yyastk = [];
  922. // Current position in the stack(s)
  923. this.stackPos = 0;
  924. var yyn;
  925. var origTokenId;
  926. for (;;) {
  927. if ( yybase[ state ] === 0 ) {
  928. yyn = yydefault[ state ];
  929. } else {
  930. if (tokenId === this.TOKEN_NONE ) {
  931. // fetch the next token id from the lexer and fetch additional info by-ref
  932. origTokenId = this.getNextToken( );
  933. // map the lexer token id to the internally used token id's
  934. tokenId = (origTokenId >= 0 && origTokenId < this.TOKEN_MAP_SIZE) ? translate[ origTokenId ] : this.TOKEN_INVALID;
  935. attributeStack[ this.stackPos ] = this.startAttributes;
  936. }
  937. if (((yyn = yybase[ state ] + tokenId) >= 0
  938. && yyn < this.YYLAST && yycheck[ yyn ] === tokenId
  939. || (state < this.YY2TBLSTATE
  940. && (yyn = yybase[state + this.YYNLSTATES] + tokenId) >= 0
  941. && yyn < this.YYLAST
  942. && yycheck[ yyn ] === tokenId))
  943. && (yyn = yyaction[ yyn ]) !== this.YYDEFAULT ) {
  944. /*
  945. * >= YYNLSTATE: shift and reduce
  946. * > 0: shift
  947. * = 0: accept
  948. * < 0: reduce
  949. * = -YYUNEXPECTED: error
  950. */
  951. if (yyn > 0) {
  952. /* shift */
  953. ++this.stackPos;
  954. stateStack[ this.stackPos ] = state = yyn;
  955. this.yyastk[ this.stackPos ] = this.tokenValue;
  956. attributeStack[ this.stackPos ] = this.startAttributes;
  957. tokenId = this.TOKEN_NONE;
  958. if (yyn < this.YYNLSTATES)
  959. continue;
  960. /* $yyn >= YYNLSTATES means shift-and-reduce */
  961. yyn -= this.YYNLSTATES;
  962. } else {
  963. yyn = -yyn;
  964. }
  965. } else {
  966. yyn = yydefault[ state ];
  967. }
  968. }
  969. for (;;) {
  970. /* reduce/error */
  971. if ( yyn === 0 ) {
  972. /* accept */
  973. return this.yyval;
  974. } else if (yyn !== this.YYUNEXPECTED ) {
  975. /* reduce */
  976. for (var attr in this.endAttributes) {
  977. attributeStack[ this.stackPos - yylen[ yyn ] ][ attr ] = this.endAttributes[ attr ];
  978. }
  979. try {
  980. this['yyn' + yyn](attributeStack[ this.stackPos - yylen[ yyn ] ]);
  981. } catch (e) {
  982. /*
  983. if (-1 === $e->getRawLine()) {
  984. $e->setRawLine($startAttributes['startLine']);
  985. }
  986. */
  987. throw e;
  988. }
  989. /* Goto - shift nonterminal */
  990. this.stackPos -= yylen[ yyn ];
  991. yyn = yylhs[ yyn ];
  992. if ((yyp = yygbase[ yyn ] + stateStack[ this.stackPos ]) >= 0
  993. && yyp < this.YYGLAST
  994. && yygcheck[ yyp ] === yyn) {
  995. state = yygoto[ yyp ];
  996. } else {
  997. state = yygdefault[ yyn ];
  998. }
  999. ++this.stackPos;
  1000. stateStack[ this.stackPos ] = state;
  1001. this.yyastk[ this.stackPos ] = this.yyval;
  1002. attributeStack[ this.stackPos ] = this.startAttributes;
  1003. } else {
  1004. /* error */
  1005. if (eval !== true) {
  1006. var expected = [];
  1007. for (var i = 0; i < this.TOKEN_MAP_SIZE; ++i) {
  1008. if ((yyn = yybase[ state ] + i) >= 0 && yyn < this.YYLAST && yycheck[ yyn ] == i
  1009. || state < this.YY2TBLSTATE
  1010. && (yyn = yybase[ state + this.YYNLSTATES] + i)
  1011. && yyn < this.YYLAST && yycheck[ yyn ] == i
  1012. ) {
  1013. if (yyaction[ yyn ] != this.YYUNEXPECTED) {
  1014. if (expected.length == 4) {
  1015. /* Too many expected tokens */
  1016. expected = [];
  1017. break;
  1018. }
  1019. expected.push( this.terminals[ i ] );
  1020. }
  1021. }
  1022. }
  1023. var expectedString = '';
  1024. if (expected.length) {
  1025. expectedString = ', expecting ' + expected.join(' or ');
  1026. }
  1027. throw new PHP.ParseError('syntax error, unexpected ' + terminals[ tokenId ] + expectedString, this.startAttributes['startLine']);
  1028. } else {
  1029. return this.startAttributes['startLine'];
  1030. }
  1031. }
  1032. if (state < this.YYNLSTATES)
  1033. break;
  1034. /* >= YYNLSTATES means shift-and-reduce */
  1035. yyn = state - this.YYNLSTATES;
  1036. }
  1037. }
  1038. };
  1039. PHP.ParseError = function( msg, line ) {
  1040. this.message = msg;
  1041. this.line = line;
  1042. };
  1043. PHP.Parser.prototype.MODIFIER_PUBLIC = 1;
  1044. PHP.Parser.prototype.MODIFIER_PROTECTED = 2;
  1045. PHP.Parser.prototype.MODIFIER_PRIVATE = 4;
  1046. PHP.Parser.prototype.MODIFIER_STATIC = 8;
  1047. PHP.Parser.prototype.MODIFIER_ABSTRACT = 16;
  1048. PHP.Parser.prototype.MODIFIER_FINAL = 32;
  1049. PHP.Parser.prototype.getNextToken = function( ) {
  1050. this.startAttributes = {};
  1051. this.endAttributes = {};
  1052. var token,
  1053. tmp;
  1054. while (this.tokens[++this.pos] !== undefined) {
  1055. token = this.tokens[this.pos];
  1056. if (typeof token === "string") {
  1057. this.startAttributes['startLine'] = this.line;
  1058. this.endAttributes['endLine'] = this.line;
  1059. // bug in token_get_all
  1060. if ('b"' === token) {
  1061. this.tokenValue = 'b"';
  1062. return '"'.charCodeAt(0);
  1063. } else {
  1064. this.tokenValue = token;
  1065. return token.charCodeAt(0);
  1066. }
  1067. } else {
  1068. this.line += ((tmp = token[ 1 ].match(/\n/g)) === null) ? 0 : tmp.length;
  1069. if (PHP.Constants.T_COMMENT === token[0]) {
  1070. if (!Array.isArray(this.startAttributes['comments'])) {
  1071. this.startAttributes['comments'] = [];
  1072. }
  1073. this.startAttributes['comments'].push( {
  1074. type: "comment",
  1075. comment: token[1],
  1076. line: token[2]
  1077. });
  1078. } else if (PHP.Constants.T_DOC_COMMENT === token[0]) {
  1079. this.startAttributes['comments'].push( new PHPParser_Comment_Doc(token[1], token[2]) );
  1080. } else if (this.dropTokens[token[0]] === undefined) {
  1081. this.tokenValue = token[1];
  1082. this.startAttributes['startLine'] = token[2];
  1083. this.endAttributes['endLine'] = this.line;
  1084. return this.tokenMap[token[0]];
  1085. }
  1086. }
  1087. }
  1088. this.startAttributes['startLine'] = this.line;
  1089. // 0 is the EOF token
  1090. return 0;
  1091. };
  1092. PHP.Parser.prototype.tokenName = function( token ) {
  1093. var constants = ["T_INCLUDE","T_INCLUDE_ONCE","T_EVAL","T_REQUIRE","T_REQUIRE_ONCE","T_LOGICAL_OR","T_LOGICAL_XOR","T_LOGICAL_AND","T_PRINT","T_PLUS_EQUAL","T_MINUS_EQUAL","T_MUL_EQUAL","T_DIV_EQUAL","T_CONCAT_EQUAL","T_MOD_EQUAL","T_AND_EQUAL","T_OR_EQUAL","T_XOR_EQUAL","T_SL_EQUAL","T_SR_EQUAL","T_BOOLEAN_OR","T_BOOLEAN_AND","T_IS_EQUAL","T_IS_NOT_EQUAL","T_IS_IDENTICAL","T_IS_NOT_IDENTICAL","T_IS_SMALLER_OR_EQUAL","T_IS_GREATER_OR_EQUAL","T_SL","T_SR","T_INSTANCEOF","T_INC","T_DEC","T_INT_CAST","T_DOUBLE_CAST","T_STRING_CAST","T_ARRAY_CAST","T_OBJECT_CAST","T_BOOL_CAST","T_UNSET_CAST","T_NEW","T_CLONE","T_EXIT","T_IF","T_ELSEIF","T_ELSE","T_ENDIF","T_LNUMBER","T_DNUMBER","T_STRING","T_STRING_VARNAME","T_VARIABLE","T_NUM_STRING","T_INLINE_HTML","T_CHARACTER","T_BAD_CHARACTER","T_ENCAPSED_AND_WHITESPACE","T_CONSTANT_ENCAPSED_STRING","T_ECHO","T_DO","T_WHILE","T_ENDWHILE","T_FOR","T_ENDFOR","T_FOREACH","T_ENDFOREACH","T_DECLARE","T_ENDDECLARE","T_AS","T_SWITCH","T_ENDSWITCH","T_CASE","T_DEFAULT","T_BREAK","T_CONTINUE","T_GOTO","T_FUNCTION","T_CONST","T_RETURN","T_TRY","T_CATCH","T_THROW","T_USE","T_INSTEADOF","T_GLOBAL","T_STATIC","T_ABSTRACT","T_FINAL","T_PRIVATE","T_PROTECTED","T_PUBLIC","T_VAR","T_UNSET","T_ISSET","T_EMPTY","T_HALT_COMPILER","T_CLASS","T_TRAIT","T_INTERFACE","T_EXTENDS","T_IMPLEMENTS","T_OBJECT_OPERATOR","T_DOUBLE_ARROW","T_LIST","T_ARRAY","T_CALLABLE","T_CLASS_C","T_TRAIT_C","T_METHOD_C","T_FUNC_C","T_LINE","T_FILE","T_COMMENT","T_DOC_COMMENT","T_OPEN_TAG","T_OPEN_TAG_WITH_ECHO","T_CLOSE_TAG","T_WHITESPACE","T_START_HEREDOC","T_END_HEREDOC","T_DOLLAR_OPEN_CURLY_BRACES","T_CURLY_OPEN","T_PAAMAYIM_NEKUDOTAYIM","T_DOUBLE_COLON","T_NAMESPACE","T_NS_C","T_DIR","T_NS_SEPARATOR"];
  1094. var current = "UNKNOWN";
  1095. constants.some(function( constant ) {
  1096. if (PHP.Constants[ constant ] === token) {
  1097. current = constant;
  1098. return true;
  1099. } else {
  1100. return false;
  1101. }
  1102. });
  1103. return current;
  1104. };
  1105. /**
  1106. * Creates the token map.
  1107. *
  1108. * The token map maps the PHP internal token identifiers
  1109. * to the identifiers used by the PHP.Parser. Additionally it
  1110. * maps T_OPEN_TAG_WITH_ECHO to T_ECHO and T_CLOSE_TAG to ';'.
  1111. *
  1112. * @return array The token map
  1113. */
  1114. PHP.Parser.prototype.createTokenMap = function() {
  1115. var tokenMap = {},
  1116. name,
  1117. i;
  1118. var T_DOUBLE_COLON = PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM;
  1119. // 256 is the minimum possible token number, as everything below
  1120. // it is an ASCII value
  1121. for ( i = 256; i < 1000; ++i ) {
  1122. // T_DOUBLE_COLON is equivalent to T_PAAMAYIM_NEKUDOTAYIM
  1123. if ( T_DOUBLE_COLON === i ) {
  1124. tokenMap[ i ] = this.T_PAAMAYIM_NEKUDOTAYIM;
  1125. // T_OPEN_TAG_WITH_ECHO with dropped T_OPEN_TAG results in T_ECHO
  1126. } else if( PHP.Constants.T_OPEN_TAG_WITH_ECHO === i ) {
  1127. tokenMap[ i ] = PHP.Constants.T_ECHO;
  1128. // T_CLOSE_TAG is equivalent to ';'
  1129. } else if( PHP.Constants.T_CLOSE_TAG === i ) {
  1130. tokenMap[ i ] = 59;
  1131. // and the others can be mapped directly
  1132. } else if ( 'UNKNOWN' !== (name = this.tokenName( i ) ) ) {
  1133. tokenMap[ i ] = this[name];
  1134. }
  1135. }
  1136. return tokenMap;
  1137. };
  1138. var yynStandard = function () {
  1139. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  1140. };
  1141. // todo fix
  1142. PHP.Parser.prototype.MakeArray = function( arr ) {
  1143. return Array.isArray( arr ) ? arr : [ arr ];
  1144. }
  1145. PHP.Parser.prototype.parseString = function( str ) {
  1146. var bLength = 0;
  1147. if ('b' === str[0]) {
  1148. bLength = 1;
  1149. }
  1150. if ('\'' === str[ bLength ]) {
  1151. str = str.replace(
  1152. ['\\\\', '\\\''],
  1153. [ '\\', '\'']);
  1154. } else {
  1155. str = this.parseEscapeSequences( str, '"');
  1156. }
  1157. return str;
  1158. };
  1159. PHP.Parser.prototype.parseEscapeSequences = function( str, quote ) {
  1160. if (undefined !== quote) {
  1161. str = str.replace(new RegExp('\\' + quote, "g"), quote);
  1162. }
  1163. var replacements = {
  1164. '\\': '\\',
  1165. '$': '$',
  1166. 'n': "\n",
  1167. 'r': "\r",
  1168. 't': "\t",
  1169. 'f': "\f",
  1170. 'v': "\v",
  1171. 'e': "\x1B"
  1172. };
  1173. return str.replace(
  1174. /~\\\\([\\\\$nrtfve]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3})~/g,
  1175. function ( matches ){
  1176. var str = matches[1];
  1177. if ( replacements[ str ] !== undefined ) {
  1178. return replacements[ str ];
  1179. } else if ('x' === str[ 0 ] || 'X' === str[ 0 ]) {
  1180. return chr(hexdec(str));
  1181. } else {
  1182. return chr(octdec(str));
  1183. }
  1184. }
  1185. );
  1186. return str;
  1187. };
  1188. /* This is an automatically GENERATED file, which should not be manually edited.
  1189. * Instead edit one of the following:
  1190. * * the grammar file grammar/zend_language_parser.jsy
  1191. * * the parser skeleton grammar/kymacc.js.parser
  1192. * * the preprocessing script grammar/rebuildParser.php
  1193. *
  1194. * The skeleton for this parser was written by Moriyoshi Koizumi and is based on
  1195. * the work by Masato Bito and is in the PUBLIC DOMAIN.
  1196. * Ported to JavaScript by Niklas von Hertzen
  1197. */
  1198. PHP.Parser.prototype.TOKEN_NONE = -1;
  1199. PHP.Parser.prototype.TOKEN_INVALID = 149;
  1200. PHP.Parser.prototype.TOKEN_MAP_SIZE = 384;
  1201. PHP.Parser.prototype.YYLAST = 913;
  1202. PHP.Parser.prototype.YY2TBLSTATE = 328;
  1203. PHP.Parser.prototype.YYGLAST = 415;
  1204. PHP.Parser.prototype.YYNLSTATES = 544;
  1205. PHP.Parser.prototype.YYUNEXPECTED = 32767;
  1206. PHP.Parser.prototype.YYDEFAULT = -32766;
  1207. // {{{ Tokens
  1208. PHP.Parser.prototype.YYERRTOK = 256;
  1209. PHP.Parser.prototype.T_INCLUDE = 257;
  1210. PHP.Parser.prototype.T_INCLUDE_ONCE = 258;
  1211. PHP.Parser.prototype.T_EVAL = 259;
  1212. PHP.Parser.prototype.T_REQUIRE = 260;
  1213. PHP.Parser.prototype.T_REQUIRE_ONCE = 261;
  1214. PHP.Parser.prototype.T_LOGICAL_OR = 262;
  1215. PHP.Parser.prototype.T_LOGICAL_XOR = 263;
  1216. PHP.Parser.prototype.T_LOGICAL_AND = 264;
  1217. PHP.Parser.prototype.T_PRINT = 265;
  1218. PHP.Parser.prototype.T_PLUS_EQUAL = 266;
  1219. PHP.Parser.prototype.T_MINUS_EQUAL = 267;
  1220. PHP.Parser.prototype.T_MUL_EQUAL = 268;
  1221. PHP.Parser.prototype.T_DIV_EQUAL = 269;
  1222. PHP.Parser.prototype.T_CONCAT_EQUAL = 270;
  1223. PHP.Parser.prototype.T_MOD_EQUAL = 271;
  1224. PHP.Parser.prototype.T_AND_EQUAL = 272;
  1225. PHP.Parser.prototype.T_OR_EQUAL = 273;
  1226. PHP.Parser.prototype.T_XOR_EQUAL = 274;
  1227. PHP.Parser.prototype.T_SL_EQUAL = 275;
  1228. PHP.Parser.prototype.T_SR_EQUAL = 276;
  1229. PHP.Parser.prototype.T_BOOLEAN_OR = 277;
  1230. PHP.Parser.prototype.T_BOOLEAN_AND = 278;
  1231. PHP.Parser.prototype.T_IS_EQUAL = 279;
  1232. PHP.Parser.prototype.T_IS_NOT_EQUAL = 280;
  1233. PHP.Parser.prototype.T_IS_IDENTICAL = 281;
  1234. PHP.Parser.prototype.T_IS_NOT_IDENTICAL = 282;
  1235. PHP.Parser.prototype.T_IS_SMALLER_OR_EQUAL = 283;
  1236. PHP.Parser.prototype.T_IS_GREATER_OR_EQUAL = 284;
  1237. PHP.Parser.prototype.T_SL = 285;
  1238. PHP.Parser.prototype.T_SR = 286;
  1239. PHP.Parser.prototype.T_INSTANCEOF = 287;
  1240. PHP.Parser.prototype.T_INC = 288;
  1241. PHP.Parser.prototype.T_DEC = 289;
  1242. PHP.Parser.prototype.T_INT_CAST = 290;
  1243. PHP.Parser.prototype.T_DOUBLE_CAST = 291;
  1244. PHP.Parser.prototype.T_STRING_CAST = 292;
  1245. PHP.Parser.prototype.T_ARRAY_CAST = 293;
  1246. PHP.Parser.prototype.T_OBJECT_CAST = 294;
  1247. PHP.Parser.prototype.T_BOOL_CAST = 295;
  1248. PHP.Parser.prototype.T_UNSET_CAST = 296;
  1249. PHP.Parser.prototype.T_NEW = 297;
  1250. PHP.Parser.prototype.T_CLONE = 298;
  1251. PHP.Parser.prototype.T_EXIT = 299;
  1252. PHP.Parser.prototype.T_IF = 300;
  1253. PHP.Parser.prototype.T_ELSEIF = 301;
  1254. PHP.Parser.prototype.T_ELSE = 302;
  1255. PHP.Parser.prototype.T_ENDIF = 303;
  1256. PHP.Parser.prototype.T_LNUMBER = 304;
  1257. PHP.Parser.prototype.T_DNUMBER = 305;
  1258. PHP.Parser.prototype.T_STRING = 306;
  1259. PHP.Parser.prototype.T_STRING_VARNAME = 307;
  1260. PHP.Parser.prototype.T_VARIABLE = 308;
  1261. PHP.Parser.prototype.T_NUM_STRING = 309;
  1262. PHP.Parser.prototype.T_INLINE_HTML = 310;
  1263. PHP.Parser.prototype.T_CHARACTER = 311;
  1264. PHP.Parser.prototype.T_BAD_CHARACTER = 312;
  1265. PHP.Parser.prototype.T_ENCAPSED_AND_WHITESPACE = 313;
  1266. PHP.Parser.prototype.T_CONSTANT_ENCAPSED_STRING = 314;
  1267. PHP.Parser.prototype.T_ECHO = 315;
  1268. PHP.Parser.prototype.T_DO = 316;
  1269. PHP.Parser.prototype.T_WHILE = 317;
  1270. PHP.Parser.prototype.T_ENDWHILE = 318;
  1271. PHP.Parser.prototype.T_FOR = 319;
  1272. PHP.Parser.prototype.T_ENDFOR = 320;
  1273. PHP.Parser.prototype.T_FOREACH = 321;
  1274. PHP.Parser.prototype.T_ENDFOREACH = 322;
  1275. PHP.Parser.prototype.T_DECLARE = 323;
  1276. PHP.Parser.prototype.T_ENDDECLARE = 324;
  1277. PHP.Parser.prototype.T_AS = 325;
  1278. PHP.Parser.prototype.T_SWITCH = 326;
  1279. PHP.Parser.prototype.T_ENDSWITCH = 327;
  1280. PHP.Parser.prototype.T_CASE = 328;
  1281. PHP.Parser.prototype.T_DEFAULT = 329;
  1282. PHP.Parser.prototype.T_BREAK = 330;
  1283. PHP.Parser.prototype.T_CONTINUE = 331;
  1284. PHP.Parser.prototype.T_GOTO = 332;
  1285. PHP.Parser.prototype.T_FUNCTION = 333;
  1286. PHP.Parser.prototype.T_CONST = 334;
  1287. PHP.Parser.prototype.T_RETURN = 335;
  1288. PHP.Parser.prototype.T_TRY = 336;
  1289. PHP.Parser.prototype.T_CATCH = 337;
  1290. PHP.Parser.prototype.T_THROW = 338;
  1291. PHP.Parser.prototype.T_USE = 339;
  1292. PHP.Parser.prototype.T_INSTEADOF = 340;
  1293. PHP.Parser.prototype.T_GLOBAL = 341;
  1294. PHP.Parser.prototype.T_STATIC = 342;
  1295. PHP.Parser.prototype.T_ABSTRACT = 343;
  1296. PHP.Parser.prototype.T_FINAL = 344;
  1297. PHP.Parser.prototype.T_PRIVATE = 345;
  1298. PHP.Parser.prototype.T_PROTECTED = 346;
  1299. PHP.Parser.prototype.T_PUBLIC = 347;
  1300. PHP.Parser.prototype.T_VAR = 348;
  1301. PHP.Parser.prototype.T_UNSET = 349;
  1302. PHP.Parser.prototype.T_ISSET = 350;
  1303. PHP.Parser.prototype.T_EMPTY = 351;
  1304. PHP.Parser.prototype.T_HALT_COMPILER = 352;
  1305. PHP.Parser.prototype.T_CLASS = 353;
  1306. PHP.Parser.prototype.T_TRAIT = 354;
  1307. PHP.Parser.prototype.T_INTERFACE = 355;
  1308. PHP.Parser.prototype.T_EXTENDS = 356;
  1309. PHP.Parser.prototype.T_IMPLEMENTS = 357;
  1310. PHP.Parser.prototype.T_OBJECT_OPERATOR = 358;
  1311. PHP.Parser.prototype.T_DOUBLE_ARROW = 359;
  1312. PHP.Parser.prototype.T_LIST = 360;
  1313. PHP.Parser.prototype.T_ARRAY = 361;
  1314. PHP.Parser.prototype.T_CALLABLE = 362;
  1315. PHP.Parser.prototype.T_CLASS_C = 363;
  1316. PHP.Parser.prototype.T_TRAIT_C = 364;
  1317. PHP.Parser.prototype.T_METHOD_C = 365;
  1318. PHP.Parser.prototype.T_FUNC_C = 366;
  1319. PHP.Parser.prototype.T_LINE = 367;
  1320. PHP.Parser.prototype.T_FILE = 368;
  1321. PHP.Parser.prototype.T_COMMENT = 369;
  1322. PHP.Parser.prototype.T_DOC_COMMENT = 370;
  1323. PHP.Parser.prototype.T_OPEN_TAG = 371;
  1324. PHP.Parser.prototype.T_OPEN_TAG_WITH_ECHO = 372;
  1325. PHP.Parser.prototype.T_CLOSE_TAG = 373;
  1326. PHP.Parser.prototype.T_WHITESPACE = 374;
  1327. PHP.Parser.prototype.T_START_HEREDOC = 375;
  1328. PHP.Parser.prototype.T_END_HEREDOC = 376;
  1329. PHP.Parser.prototype.T_DOLLAR_OPEN_CURLY_BRACES = 377;
  1330. PHP.Parser.prototype.T_CURLY_OPEN = 378;
  1331. PHP.Parser.prototype.T_PAAMAYIM_NEKUDOTAYIM = 379;
  1332. PHP.Parser.prototype.T_NAMESPACE = 380;
  1333. PHP.Parser.prototype.T_NS_C = 381;
  1334. PHP.Parser.prototype.T_DIR = 382;
  1335. PHP.Parser.prototype.T_NS_SEPARATOR = 383;
  1336. // }}}
  1337. /* @var array Map of token ids to their respective names */
  1338. PHP.Parser.prototype.terminals = [
  1339. "$EOF",
  1340. "error",
  1341. "T_INCLUDE",
  1342. "T_INCLUDE_ONCE",
  1343. "T_EVAL",
  1344. "T_REQUIRE",
  1345. "T_REQUIRE_ONCE",
  1346. "','",
  1347. "T_LOGICAL_OR",
  1348. "T_LOGICAL_XOR",
  1349. "T_LOGICAL_AND",
  1350. "T_PRINT",
  1351. "'='",
  1352. "T_PLUS_EQUAL",
  1353. "T_MINUS_EQUAL",
  1354. "T_MUL_EQUAL",
  1355. "T_DIV_EQUAL",
  1356. "T_CONCAT_EQUAL",
  1357. "T_MOD_EQUAL",
  1358. "T_AND_EQUAL",
  1359. "T_OR_EQUAL",
  1360. "T_XOR_EQUAL",
  1361. "T_SL_EQUAL",
  1362. "T_SR_EQUAL",
  1363. "'?'",
  1364. "':'",
  1365. "T_BOOLEAN_OR",
  1366. "T_BOOLEAN_AND",
  1367. "'|'",
  1368. "'^'",
  1369. "'&'",
  1370. "T_IS_EQUAL",
  1371. "T_IS_NOT_EQUAL",
  1372. "T_IS_IDENTICAL",
  1373. "T_IS_NOT_IDENTICAL",
  1374. "'<'",
  1375. "T_IS_SMALLER_OR_EQUAL",
  1376. "'>'",
  1377. "T_IS_GREATER_OR_EQUAL",
  1378. "T_SL",
  1379. "T_SR",
  1380. "'+'",
  1381. "'-'",
  1382. "'.'",
  1383. "'*'",
  1384. "'/'",
  1385. "'%'",
  1386. "'!'",
  1387. "T_INSTANCEOF",
  1388. "'~'",
  1389. "T_INC",
  1390. "T_DEC",
  1391. "T_INT_CAST",
  1392. "T_DOUBLE_CAST",
  1393. "T_STRING_CAST",
  1394. "T_ARRAY_CAST",
  1395. "T_OBJECT_CAST",
  1396. "T_BOOL_CAST",
  1397. "T_UNSET_CAST",
  1398. "'@'",
  1399. "'['",
  1400. "T_NEW",
  1401. "T_CLONE",
  1402. "T_EXIT",
  1403. "T_IF",
  1404. "T_ELSEIF",
  1405. "T_ELSE",
  1406. "T_ENDIF",
  1407. "T_LNUMBER",
  1408. "T_DNUMBER",
  1409. "T_STRING",
  1410. "T_STRING_VARNAME",
  1411. "T_VARIABLE",
  1412. "T_NUM_STRING",
  1413. "T_INLINE_HTML",
  1414. "T_ENCAPSED_AND_WHITESPACE",
  1415. "T_CONSTANT_ENCAPSED_STRING",
  1416. "T_ECHO",
  1417. "T_DO",
  1418. "T_WHILE",
  1419. "T_ENDWHILE",
  1420. "T_FOR",
  1421. "T_ENDFOR",
  1422. "T_FOREACH",
  1423. "T_ENDFOREACH",
  1424. "T_DECLARE",
  1425. "T_ENDDECLARE",
  1426. "T_AS",
  1427. "T_SWITCH",
  1428. "T_ENDSWITCH",
  1429. "T_CASE",
  1430. "T_DEFAULT",
  1431. "T_BREAK",
  1432. "T_CONTINUE",
  1433. "T_GOTO",
  1434. "T_FUNCTION",
  1435. "T_CONST",
  1436. "T_RETURN",
  1437. "T_TRY",
  1438. "T_CATCH",
  1439. "T_THROW",
  1440. "T_USE",
  1441. "T_INSTEADOF",
  1442. "T_GLOBAL",
  1443. "T_STATIC",
  1444. "T_ABSTRACT",
  1445. "T_FINAL",
  1446. "T_PRIVATE",
  1447. "T_PROTECTED",
  1448. "T_PUBLIC",
  1449. "T_VAR",
  1450. "T_UNSET",
  1451. "T_ISSET",
  1452. "T_EMPTY",
  1453. "T_HALT_COMPILER",
  1454. "T_CLASS",
  1455. "T_TRAIT",
  1456. "T_INTERFACE",
  1457. "T_EXTENDS",
  1458. "T_IMPLEMENTS",
  1459. "T_OBJECT_OPERATOR",
  1460. "T_DOUBLE_ARROW",
  1461. "T_LIST",
  1462. "T_ARRAY",
  1463. "T_CALLABLE",
  1464. "T_CLASS_C",
  1465. "T_TRAIT_C",
  1466. "T_METHOD_C",
  1467. "T_FUNC_C",
  1468. "T_LINE",
  1469. "T_FILE",
  1470. "T_START_HEREDOC",
  1471. "T_END_HEREDOC",
  1472. "T_DOLLAR_OPEN_CURLY_BRACES",
  1473. "T_CURLY_OPEN",
  1474. "T_PAAMAYIM_NEKUDOTAYIM",
  1475. "T_NAMESPACE",
  1476. "T_NS_C",
  1477. "T_DIR",
  1478. "T_NS_SEPARATOR",
  1479. "';'",
  1480. "'{'",
  1481. "'}'",
  1482. "'('",
  1483. "')'",
  1484. "'$'",
  1485. "']'",
  1486. "'`'",
  1487. "'\"'"
  1488. , "???"
  1489. ];
  1490. /* @var Map which translates lexer tokens to internal tokens */
  1491. PHP.Parser.prototype.translate = [
  1492. 0, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1493. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1494. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1495. 149, 149, 149, 47, 148, 149, 145, 46, 30, 149,
  1496. 143, 144, 44, 41, 7, 42, 43, 45, 149, 149,
  1497. 149, 149, 149, 149, 149, 149, 149, 149, 25, 140,
  1498. 35, 12, 37, 24, 59, 149, 149, 149, 149, 149,
  1499. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1500. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1501. 149, 60, 149, 146, 29, 149, 147, 149, 149, 149,
  1502. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1503. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1504. 149, 149, 149, 141, 28, 142, 49, 149, 149, 149,
  1505. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1506. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1507. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1508. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1509. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1510. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1511. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1512. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1513. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1514. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1515. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1516. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  1517. 149, 149, 149, 149, 149, 149, 1, 2, 3, 4,
  1518. 5, 6, 8, 9, 10, 11, 13, 14, 15, 16,
  1519. 17, 18, 19, 20, 21, 22, 23, 26, 27, 31,
  1520. 32, 33, 34, 36, 38, 39, 40, 48, 50, 51,
  1521. 52, 53, 54, 55, 56, 57, 58, 61, 62, 63,
  1522. 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
  1523. 74, 149, 149, 75, 76, 77, 78, 79, 80, 81,
  1524. 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
  1525. 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
  1526. 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
  1527. 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
  1528. 122, 123, 124, 125, 126, 127, 128, 129, 130, 149,
  1529. 149, 149, 149, 149, 149, 131, 132, 133, 134, 135,
  1530. 136, 137, 138, 139
  1531. ];
  1532. PHP.Parser.prototype.yyaction = [
  1533. 61, 62, 363, 63, 64,-32766,-32766,-32766, 509, 65,
  1534. 708, 709, 710, 707, 706, 705,-32766,-32766,-32766,-32766,
  1535. -32766,-32766, 132,-32766,-32766,-32766,-32766,-32766,-32767,-32767,
  1536. -32767,-32767,-32766, 335,-32766,-32766,-32766,-32766,-32766, 66,
  1537. 67, 351, 663, 664, 40, 68, 548, 69, 232, 233,
  1538. 70, 71, 72, 73, 74, 75, 76, 77, 30, 246,
  1539. 78, 336, 364, -112, 0, 469, 833, 834, 365, 641,
  1540. 890, 436, 590, 41, 835, 53, 27, 366, 294, 367,
  1541. 687, 368, 921, 369, 923, 922, 370,-32766,-32766,-32766,
  1542. 42, 43, 371, 339, 126, 44, 372, 337, 79, 297,
  1543. 349, 292, 293,-32766, 918,-32766,-32766, 373, 374, 375,
  1544. 376, 377, 391, 199, 361, 338, 573, 613, 378, 379,
  1545. 380, 381, 845, 839, 840, 841, 842, 836, 837, 253,
  1546. -32766, 87, 88, 89, 391, 843, 838, 338, 597, 519,
  1547. 128, 80, 129, 273, 332, 257, 261, 47, 673, 90,
  1548. 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
  1549. 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
  1550. 799, 247, 884, 108, 109, 110, 226, 247, 21,-32766,
  1551. 310,-32766,-32766,-32766, 642, 548,-32766,-32766,-32766,-32766,
  1552. 56, 353,-32766,-32766,-32766, 55,-32766,-32766,-32766,-32766,
  1553. -32766, 58,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766,
  1554. -32766, 557,-32766,-32766, 518,-32766, 548, 890,-32766, 390,
  1555. -32766, 228, 252,-32766,-32766,-32766,-32766,-32766, 275,-32766,
  1556. 234,-32766, 587, 588,-32766,-32766,-32766,-32766,-32766,-32766,
  1557. -32766, 46, 236,-32766,-32766, 281,-32766, 682, 348,-32766,
  1558. 390,-32766, 346, 333, 521,-32766,-32766,-32766, 271, 911,
  1559. 262, 237, 446, 911,-32766, 894, 59, 700, 358, 135,
  1560. 548, 123, 538, 35,-32766, 333, 122,-32766,-32766,-32766,
  1561. 271,-32766, 124,-32766, 692,-32766,-32766,-32766,-32766, 700,
  1562. 273, 22,-32766,-32766,-32766,-32766, 239,-32766,-32766, 612,
  1563. -32766, 548, 134,-32766, 390,-32766, 462, 354,-32766,-32766,
  1564. -32766,-32766,-32766, 227,-32766, 238,-32766, 845, 542,-32766,
  1565. 856, 611, 200,-32766,-32766,-32766, 259, 280,-32766,-32766,
  1566. 201,-32766, 855, 129,-32766, 390, 130, 202, 333, 206,
  1567. -32766,-32766,-32766, 271,-32766,-32766,-32766, 125, 601,-32766,
  1568. 136, 299, 700, 489, 28, 548, 105, 106, 107,-32766,
  1569. 498, 499,-32766,-32766,-32766, 207,-32766, 133,-32766, 525,
  1570. -32766,-32766,-32766,-32766, 663, 664, 527,-32766,-32766,-32766,
  1571. -32766, 528,-32766,-32766, 610,-32766, 548, 427,-32766, 390,
  1572. -32766, 532, 539,-32766,-32766,-32766,-32766,-32766, 240,-32766,
  1573. 247,-32766, 697, 543,-32766, 554, 523, 608,-32766,-32766,
  1574. -32766, 686, 535,-32766,-32766, 54,-32766, 57, 60,-32766,
  1575. 390, 246, -155, 278, 345,-32766,-32766,-32766, 506, 347,
  1576. -152, 471, 402, 403,-32766, 405, 404, 272, 493, 416,
  1577. 548, 318, 417, 505,-32766, 517, 548,-32766,-32766,-32766,
  1578. 549,-32766, 562,-32766, 916,-32766,-32766,-32766,-32766, 564,
  1579. 826, 848,-32766,-32766,-32766,-32766, 694,-32766,-32766, 485,
  1580. -32766, 548, 487,-32766, 390,-32766, 504, 802,-32766,-32766,
  1581. -32766,-32766,-32766, 279,-32766, 911,-32766, 502, 492,-32766,
  1582. 413, 483, 269,-32766,-32766,-32766, 243, 337,-32766,-32766,
  1583. 418,-32766, 454, 229,-32766, 390, 274, 373, 374, 344,
  1584. -32766,-32766,-32766, 360, 614,-32766, 573, 613, 378, 379,
  1585. -274, 548, 615, -332, 844,-32766, 258, 51,-32766,-32766,
  1586. -32766, 270,-32766, 346,-32766, 52,-32766, 260, 0,-32766,
  1587. -333,-32766,-32766,-32766,-32766,-32766,-32766, 205,-32766,-32766,
  1588. 49,-32766, 548, 424,-32766, 390,-32766, -266, 264,-32766,
  1589. -32766,-32766,-32766,-32766, 409,-32766, 343,-32766, 265, 312,
  1590. -32766, 470, 513, -275,-32766,-32766,-32766, 920, 337,-32766,
  1591. -32766, 530,-32766, 531, 600,-32766, 390, 592, 373, 374,
  1592. 578, 581,-32766,-32766, 644, 629,-32766, 573, 613, 378,
  1593. 379, 635, 548, 636, 576, 627,-32766, 625, 693,-32766,
  1594. -32766,-32766, 691,-32766, 591,-32766, 582,-32766, 203, 204,
  1595. -32766, 584, 583,-32766,-32766,-32766,-32766, 586, 599,-32766,
  1596. -32766, 589,-32766, 690, 558,-32766, 390, 197, 683, 919,
  1597. 86, 520, 522,-32766, 524, 833, 834, 529, 533,-32766,
  1598. 534, 537, 541, 835, 48, 111, 112, 113, 114, 115,
  1599. 116, 117, 118, 119, 120, 121, 127, 31, 633, 337,
  1600. 330, 634, 585,-32766, 32, 291, 337, 330, 478, 373,
  1601. 374, 917, 291, 891, 889, 875, 373, 374, 553, 613,
  1602. 378, 379, 737, 739, 887, 553, 613, 378, 379, 824,
  1603. 451, 675, 839, 840, 841, 842, 836, 837, 320, 895,
  1604. 277, 885, 23, 33, 843, 838, 556, 277, 337, 330,
  1605. -32766, 34,-32766, 555, 291, 36, 37, 38, 373, 374,
  1606. 39, 45, 50, 81, 82, 83, 84, 553, 613, 378,
  1607. 379,-32767,-32767,-32767,-32767, 103, 104, 105, 106, 107,
  1608. 337, 85, 131, 137, 337, 138, 198, 224, 225, 277,
  1609. 373, 374, -332, 230, 373, 374, 24, 337, 231, 573,
  1610. 613, 378, 379, 573, 613, 378, 379, 373, 374, 235,
  1611. 248, 249, 250, 337, 251, 0, 573, 613, 378, 379,
  1612. 276, 329, 331, 373, 374,-32766, 337, 574, 490, 792,
  1613. 337, 609, 573, 613, 378, 379, 373, 374, 25, 300,
  1614. 373, 374, 319, 337, 795, 573, 613, 378, 379, 573,
  1615. 613, 378, 379, 373, 374, 516, 355, 359, 445, 482,
  1616. 796, 507, 573, 613, 378, 379, 508, 548, 337, 890,
  1617. 775, 791, 337, 604, 803, 808, 806, 698, 373, 374,
  1618. 888, 807, 373, 374,-32766,-32766,-32766, 573, 613, 378,
  1619. 379, 573, 613, 378, 379, 873, 832, 804, 872, 851,
  1620. -32766, 809,-32766,-32766,-32766,-32766, 805, 20, 26, 29,
  1621. 298, 480, 515, 770, 778, 827, 457, 0, 900, 455,
  1622. 774, 0, 0, 0, 874, 870, 886, 823, 915, 852,
  1623. 869, 488, 0, 391, 793, 0, 338, 0, 0, 0,
  1624. 340, 0, 273
  1625. ];
  1626. PHP.Parser.prototype.yycheck = [
  1627. 2, 3, 4, 5, 6, 8, 9, 10, 70, 11,
  1628. 104, 105, 106, 107, 108, 109, 8, 9, 10, 8,
  1629. 9, 24, 60, 26, 27, 28, 29, 30, 31, 32,
  1630. 33, 34, 24, 7, 26, 27, 28, 29, 30, 41,
  1631. 42, 7, 123, 124, 7, 47, 70, 49, 50, 51,
  1632. 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
  1633. 62, 63, 64, 144, 0, 75, 68, 69, 70, 25,
  1634. 72, 70, 74, 7, 76, 77, 78, 79, 7, 81,
  1635. 142, 83, 70, 85, 72, 73, 88, 8, 9, 10,
  1636. 92, 93, 94, 95, 7, 97, 98, 95, 100, 7,
  1637. 7, 103, 104, 24, 142, 26, 27, 105, 106, 111,
  1638. 112, 113, 136, 7, 7, 139, 114, 115, 116, 117,
  1639. 122, 123, 132, 125, 126, 127, 128, 129, 130, 131,
  1640. 8, 8, 9, 10, 136, 137, 138, 139, 140, 141,
  1641. 25, 143, 141, 145, 142, 147, 148, 24, 72, 26,
  1642. 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
  1643. 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
  1644. 144, 48, 72, 44, 45, 46, 30, 48, 144, 64,
  1645. 72, 8, 9, 10, 140, 70, 8, 9, 10, 74,
  1646. 60, 25, 77, 78, 79, 60, 81, 24, 83, 26,
  1647. 85, 60, 24, 88, 26, 27, 28, 92, 93, 94,
  1648. 64, 140, 97, 98, 70, 100, 70, 72, 103, 104,
  1649. 74, 145, 7, 77, 78, 79, 111, 81, 7, 83,
  1650. 30, 85, 140, 140, 88, 8, 9, 10, 92, 93,
  1651. 94, 133, 134, 97, 98, 145, 100, 140, 7, 103,
  1652. 104, 24, 139, 96, 141, 140, 141, 111, 101, 75,
  1653. 75, 30, 70, 75, 64, 70, 60, 110, 121, 12,
  1654. 70, 141, 25, 143, 74, 96, 141, 77, 78, 79,
  1655. 101, 81, 141, 83, 140, 85, 140, 141, 88, 110,
  1656. 145, 144, 92, 93, 94, 64, 7, 97, 98, 142,
  1657. 100, 70, 141, 103, 104, 74, 145, 141, 77, 78,
  1658. 79, 111, 81, 7, 83, 30, 85, 132, 25, 88,
  1659. 132, 142, 12, 92, 93, 94, 120, 60, 97, 98,
  1660. 12, 100, 148, 141, 103, 104, 141, 12, 96, 12,
  1661. 140, 141, 111, 101, 8, 9, 10, 141, 25, 64,
  1662. 90, 91, 110, 65, 66, 70, 41, 42, 43, 74,
  1663. 65, 66, 77, 78, 79, 12, 81, 25, 83, 25,
  1664. 85, 140, 141, 88, 123, 124, 25, 92, 93, 94,
  1665. 64, 25, 97, 98, 142, 100, 70, 120, 103, 104,
  1666. 74, 25, 25, 77, 78, 79, 111, 81, 30, 83,
  1667. 48, 85, 140, 141, 88, 140, 141, 30, 92, 93,
  1668. 94, 140, 141, 97, 98, 60, 100, 60, 60, 103,
  1669. 104, 61, 72, 75, 70, 140, 141, 111, 67, 70,
  1670. 87, 99, 70, 70, 64, 70, 72, 102, 89, 70,
  1671. 70, 71, 70, 70, 74, 70, 70, 77, 78, 79,
  1672. 70, 81, 70, 83, 70, 85, 140, 141, 88, 70,
  1673. 144, 70, 92, 93, 94, 64, 70, 97, 98, 72,
  1674. 100, 70, 72, 103, 104, 74, 72, 72, 77, 78,
  1675. 79, 111, 81, 75, 83, 75, 85, 89, 86, 88,
  1676. 79, 101, 118, 92, 93, 94, 87, 95, 97, 98,
  1677. 87, 100, 87, 87, 103, 104, 118, 105, 106, 95,
  1678. 140, 141, 111, 95, 115, 64, 114, 115, 116, 117,
  1679. 135, 70, 115, 120, 132, 74, 120, 140, 77, 78,
  1680. 79, 119, 81, 139, 83, 140, 85, 120, -1, 88,
  1681. 120, 140, 141, 92, 93, 94, 64, 121, 97, 98,
  1682. 121, 100, 70, 122, 103, 104, 74, 135, 135, 77,
  1683. 78, 79, 111, 81, 139, 83, 139, 85, 135, 135,
  1684. 88, 135, 135, 135, 92, 93, 94, 142, 95, 97,
  1685. 98, 140, 100, 140, 140, 103, 104, 140, 105, 106,
  1686. 140, 140, 141, 111, 140, 140, 64, 114, 115, 116,
  1687. 117, 140, 70, 140, 140, 140, 74, 140, 140, 77,
  1688. 78, 79, 140, 81, 140, 83, 140, 85, 41, 42,
  1689. 88, 140, 140, 141, 92, 93, 94, 140, 140, 97,
  1690. 98, 140, 100, 140, 140, 103, 104, 60, 140, 142,
  1691. 141, 141, 141, 111, 141, 68, 69, 141, 141, 72,
  1692. 141, 141, 141, 76, 12, 13, 14, 15, 16, 17,
  1693. 18, 19, 20, 21, 22, 23, 141, 143, 142, 95,
  1694. 96, 142, 140, 141, 143, 101, 95, 96, 142, 105,
  1695. 106, 142, 101, 142, 142, 142, 105, 106, 114, 115,
  1696. 116, 117, 50, 51, 142, 114, 115, 116, 117, 142,
  1697. 123, 142, 125, 126, 127, 128, 129, 130, 131, 142,
  1698. 136, 142, 144, 143, 137, 138, 142, 136, 95, 96,
  1699. 143, 143, 145, 142, 101, 143, 143, 143, 105, 106,
  1700. 143, 143, 143, 143, 143, 143, 143, 114, 115, 116,
  1701. 117, 35, 36, 37, 38, 39, 40, 41, 42, 43,
  1702. 95, 143, 143, 143, 95, 143, 143, 143, 143, 136,
  1703. 105, 106, 120, 143, 105, 106, 144, 95, 143, 114,
  1704. 115, 116, 117, 114, 115, 116, 117, 105, 106, 143,
  1705. 143, 143, 143, 95, 143, -1, 114, 115, 116, 117,
  1706. 143, 143, 143, 105, 106, 143, 95, 142, 80, 146,
  1707. 95, 142, 114, 115, 116, 117, 105, 106, 144, 144,
  1708. 105, 106, 144, 95, 142, 114, 115, 116, 117, 114,
  1709. 115, 116, 117, 105, 106, 82, 144, 144, 144, 144,
  1710. 142, 84, 114, 115, 116, 117, 144, 70, 95, 72,
  1711. 144, 144, 95, 142, 144, 146, 144, 142, 105, 106,
  1712. 146, 144, 105, 106, 8, 9, 10, 114, 115, 116,
  1713. 117, 114, 115, 116, 117, 144, 144, 144, 144, 144,
  1714. 24, 104, 26, 27, 28, 29, 144, 144, 144, 144,
  1715. 144, 144, 144, 144, 144, 144, 144, -1, 144, 144,
  1716. 144, -1, -1, -1, 146, 146, 146, 146, 146, 146,
  1717. 146, 146, -1, 136, 147, -1, 139, -1, -1, -1,
  1718. 143, -1, 145
  1719. ];
  1720. PHP.Parser.prototype.yybase = [
  1721. 0, 574, 581, 623, 655, 2, 718, 402, 747, 659,
  1722. 672, 688, 743, 701, 705, 483, 483, 483, 483, 483,
  1723. 351, 356, 366, 366, 367, 366, 344, -2, -2, -2,
  1724. 200, 200, 231, 231, 231, 231, 231, 231, 231, 231,
  1725. 200, 231, 451, 482, 532, 316, 370, 115, 146, 285,
  1726. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1727. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1728. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1729. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1730. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1731. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1732. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1733. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  1734. 401, 401, 401, 401, 401, 401, 401, 401, 401, 44,
  1735. 474, 429, 476, 481, 487, 488, 739, 740, 741, 734,
  1736. 733, 416, 736, 539, 541, 342, 542, 543, 552, 557,
  1737. 559, 536, 567, 737, 755, 569, 735, 738, 123, 123,
  1738. 123, 123, 123, 123, 123, 123, 123, 122, 11, 336,
  1739. 336, 336, 336, 336, 336, 336, 336, 336, 336, 336,
  1740. 336, 336, 336, 336, 227, 227, 173, 577, 577, 577,
  1741. 577, 577, 577, 577, 577, 577, 577, 577, 79, 178,
  1742. 846, 8, -3, -3, -3, -3, 642, 706, 706, 706,
  1743. 706, 157, 179, 242, 431, 431, 360, 431, 525, 368,
  1744. 767, 767, 767, 767, 767, 767, 767, 767, 767, 767,
  1745. 767, 767, 350, 375, 315, 315, 652, 652, -81, -81,
  1746. -81, -81, 251, 185, 188, 184, -62, 348, 195, 195,
  1747. 195, 408, 392, 410, 1, 192, 129, 129, 129, -24,
  1748. -24, -24, -24, 499, -24, -24, -24, 113, 108, 108,
  1749. 12, 161, 349, 526, 271, 398, 529, 438, 130, 206,
  1750. 265, 427, 76, 414, 427, 288, 295, 76, 166, 44,
  1751. 262, 422, 141, 491, 372, 494, 413, 71, 92, 93,
  1752. 267, 135, 100, 34, 415, 745, 746, 742, -38, 420,
  1753. -10, 135, 147, 744, 498, 107, 26, 493, 144, 377,
  1754. 363, 369, 332, 363, 400, 377, 588, 377, 376, 377,
  1755. 360, 37, 582, 376, 377, 374, 376, 388, 363, 364,
  1756. 412, 369, 377, 441, 443, 390, 106, 332, 377, 390,
  1757. 377, 400, 64, 590, 591, 323, 592, 589, 593, 649,
  1758. 608, 362, 500, 399, 407, 620, 625, 636, 365, 354,
  1759. 614, 524, 425, 359, 355, 423, 570, 578, 357, 406,
  1760. 414, 394, 352, 403, 531, 433, 403, 653, 434, 385,
  1761. 417, 411, 444, 310, 318, 501, 425, 668, 757, 380,
  1762. 637, 684, 403, 609, 387, 87, 325, 638, 382, 403,
  1763. 639, 403, 696, 503, 615, 403, 697, 384, 435, 425,
  1764. 352, 352, 352, 700, 66, 699, 583, 702, 707, 704,
  1765. 748, 721, 749, 584, 750, 358, 583, 722, 751, 682,
  1766. 215, 613, 422, 436, 389, 447, 221, 257, 752, 403,
  1767. 403, 506, 499, 403, 395, 685, 397, 426, 753, 392,
  1768. 391, 647, 683, 403, 418, 754, 221, 723, 587, 724,
  1769. 450, 568, 507, 648, 509, 327, 725, 353, 497, 610,
  1770. 454, 622, 455, 461, 404, 510, 373, 732, 612, 247,
  1771. 361, 664, 463, 405, 692, 641, 464, 465, 511, 343,
  1772. 437, 335, 409, 396, 665, 293, 467, 468, 472, 0,
  1773. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1774. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1775. 0, 0, 0, 0, 0, -2, -2, -2, -2, -2,
  1776. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1777. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1778. -2, 0, 0, 0, -2, -2, -2, -2, -2, -2,
  1779. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1780. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1781. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1782. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1783. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1784. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1785. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1786. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1787. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1788. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  1789. -2, -2, -2, 123, 123, 123, 123, 123, 123, 123,
  1790. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  1791. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  1792. 123, 123, 0, 0, 0, 0, 0, 0, 0, 0,
  1793. 0, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  1794. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  1795. 123, 767, 767, 767, 767, 767, 767, 767, 767, 767,
  1796. 767, 767, 123, 123, 123, 123, 123, 123, 123, 123,
  1797. 0, 129, 129, 129, 129, -94, -94, -94, 767, 767,
  1798. 767, 767, 767, 767, 0, 0, 0, 0, 0, 0,
  1799. 0, 0, 0, 0, 0, 0, -94, -94, 129, 129,
  1800. 767, 767, -24, -24, -24, -24, -24, 108, 108, 108,
  1801. -24, 108, 145, 145, 145, 108, 108, 108, 100, 100,
  1802. 0, 0, 0, 0, 0, 0, 0, 145, 0, 0,
  1803. 0, 376, 0, 0, 0, 145, 260, 260, 221, 260,
  1804. 260, 135, 0, 0, 425, 376, 0, 364, 376, 0,
  1805. 0, 0, 0, 0, 0, 531, 0, 87, 637, 241,
  1806. 425, 0, 0, 0, 0, 0, 0, 0, 425, 289,
  1807. 289, 306, 0, 358, 0, 0, 0, 306, 241, 0,
  1808. 0, 221
  1809. ];
  1810. PHP.Parser.prototype.yydefault = [
  1811. 3,32767,32767, 1,32767,32767,32767,32767,32767,32767,
  1812. 32767,32767,32767,32767,32767, 104, 96, 110, 95, 106,
  1813. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1814. 358, 358, 122, 122, 122, 122, 122, 122, 122, 122,
  1815. 316,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1816. 173, 173, 173,32767, 348, 348, 348, 348, 348, 348,
  1817. 348,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1818. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1819. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1820. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1821. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1822. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1823. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1824. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1825. 32767, 363,32767,32767,32767,32767,32767,32767,32767,32767,
  1826. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1827. 32767,32767,32767,32767,32767,32767,32767,32767, 232, 233,
  1828. 235, 236, 172, 125, 349, 362, 171, 199, 201, 250,
  1829. 200, 177, 182, 183, 184, 185, 186, 187, 188, 189,
  1830. 190, 191, 192, 176, 229, 228, 197, 313, 313, 316,
  1831. 32767,32767,32767,32767,32767,32767,32767,32767, 198, 202,
  1832. 204, 203, 219, 220, 217, 218, 175, 221, 222, 223,
  1833. 224, 157, 157, 157, 357, 357,32767, 357,32767,32767,
  1834. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1835. 32767,32767, 158,32767, 211, 212, 276, 276, 117, 117,
  1836. 117, 117, 117,32767,32767,32767,32767, 284,32767,32767,
  1837. 32767,32767,32767, 286,32767,32767, 206, 207, 205,32767,
  1838. 32767,32767,32767,32767,32767,32767,32767,32767, 285,32767,
  1839. 32767,32767,32767,32767,32767,32767,32767, 334, 321, 272,
  1840. 32767,32767,32767, 265,32767, 107, 109,32767,32767,32767,
  1841. 32767, 302, 339,32767,32767,32767, 17,32767,32767,32767,
  1842. 370, 334,32767,32767, 19,32767,32767,32767,32767, 227,
  1843. 32767, 338, 332,32767,32767,32767,32767,32767,32767, 63,
  1844. 32767,32767,32767,32767,32767, 63, 281, 63,32767, 63,
  1845. 32767, 315, 287,32767, 63, 74,32767, 72,32767,32767,
  1846. 76,32767, 63, 93, 93, 254, 315, 54, 63, 254,
  1847. 63,32767,32767,32767,32767, 4,32767,32767,32767,32767,
  1848. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1849. 32767,32767, 267,32767, 323,32767, 337, 336, 324,32767,
  1850. 265,32767, 215, 194, 266,32767, 196,32767,32767, 270,
  1851. 273,32767,32767,32767, 134,32767, 268, 180,32767,32767,
  1852. 32767,32767, 365,32767,32767, 174,32767,32767,32767, 130,
  1853. 32767, 61, 332,32767,32767, 355,32767,32767, 332, 269,
  1854. 208, 209, 210,32767, 121,32767, 310,32767,32767,32767,
  1855. 32767,32767,32767, 327,32767, 333,32767,32767,32767,32767,
  1856. 111,32767, 302,32767,32767,32767, 75,32767,32767, 178,
  1857. 126,32767,32767, 364,32767,32767,32767, 320,32767,32767,
  1858. 32767,32767,32767, 62,32767,32767, 77,32767,32767,32767,
  1859. 32767, 332,32767,32767,32767, 115,32767, 169,32767,32767,
  1860. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  1861. 32767, 332,32767,32767,32767,32767,32767,32767,32767, 4,
  1862. 32767, 151,32767,32767,32767,32767,32767,32767,32767, 25,
  1863. 25, 3, 137, 3, 137, 25, 101, 25, 25, 137,
  1864. 93, 93, 25, 25, 25, 144, 25, 25, 25, 25,
  1865. 25, 25, 25, 25
  1866. ];
  1867. PHP.Parser.prototype.yygoto = [
  1868. 141, 141, 173, 173, 173, 173, 173, 173, 173, 173,
  1869. 141, 173, 142, 143, 144, 148, 153, 155, 181, 175,
  1870. 172, 172, 172, 172, 174, 174, 174, 174, 174, 174,
  1871. 174, 168, 169, 170, 171, 179, 757, 758, 392, 760,
  1872. 781, 782, 783, 784, 785, 786, 787, 789, 725, 145,
  1873. 146, 147, 149, 150, 151, 152, 154, 177, 178, 180,
  1874. 196, 208, 209, 210, 211, 212, 213, 214, 215, 217,
  1875. 218, 219, 220, 244, 245, 266, 267, 268, 430, 431,
  1876. 432, 182, 183, 184, 185, 186, 187, 188, 189, 190,
  1877. 191, 192, 156, 157, 158, 159, 176, 160, 194, 161,
  1878. 162, 163, 164, 195, 165, 193, 139, 166, 167, 452,
  1879. 452, 452, 452, 452, 452, 452, 452, 452, 452, 452,
  1880. 453, 453, 453, 453, 453, 453, 453, 453, 453, 453,
  1881. 453, 551, 551, 551, 464, 491, 394, 394, 394, 394,
  1882. 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
  1883. 394, 394, 394, 394, 407, 552, 552, 552, 810, 810,
  1884. 662, 662, 662, 662, 662, 594, 283, 595, 510, 399,
  1885. 399, 567, 679, 632, 849, 850, 863, 660, 714, 426,
  1886. 222, 622, 622, 622, 622, 223, 617, 623, 494, 395,
  1887. 395, 395, 395, 395, 395, 395, 395, 395, 395, 395,
  1888. 395, 395, 395, 395, 395, 395, 395, 465, 472, 514,
  1889. 904, 398, 398, 425, 425, 459, 425, 419, 322, 421,
  1890. 421, 393, 396, 412, 422, 428, 460, 463, 473, 481,
  1891. 501, 5, 476, 284, 327, 1, 15, 2, 6, 7,
  1892. 550, 550, 550, 8, 9, 10, 668, 16, 11, 17,
  1893. 12, 18, 13, 19, 14, 704, 328, 881, 881, 643,
  1894. 628, 626, 626, 624, 626, 526, 401, 652, 647, 847,
  1895. 847, 847, 847, 847, 847, 847, 847, 847, 847, 847,
  1896. 437, 438, 441, 447, 477, 479, 497, 290, 910, 910,
  1897. 400, 400, 486, 880, 880, 263, 913, 910, 303, 255,
  1898. 723, 306, 822, 821, 306, 896, 896, 896, 861, 304,
  1899. 323, 410, 913, 913, 897, 316, 420, 769, 658, 559,
  1900. 879, 671, 536, 324, 466, 565, 311, 311, 311, 801,
  1901. 241, 676, 496, 439, 440, 442, 444, 448, 475, 631,
  1902. 858, 311, 285, 286, 603, 495, 712, 0, 406, 321,
  1903. 0, 0, 0, 314, 0, 0, 429, 0, 0, 0,
  1904. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1905. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1906. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1907. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1908. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1909. 0, 0, 0, 0, 411
  1910. ];
  1911. PHP.Parser.prototype.yygcheck = [
  1912. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1913. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1914. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1915. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1916. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1917. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1918. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1919. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1920. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1921. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1922. 15, 15, 15, 15, 15, 15, 15, 15, 15, 35,
  1923. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  1924. 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
  1925. 86, 6, 6, 6, 21, 21, 35, 35, 35, 35,
  1926. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  1927. 35, 35, 35, 35, 71, 7, 7, 7, 35, 35,
  1928. 35, 35, 35, 35, 35, 29, 44, 29, 35, 86,
  1929. 86, 12, 12, 12, 12, 12, 12, 12, 12, 75,
  1930. 40, 35, 35, 35, 35, 40, 35, 35, 35, 82,
  1931. 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
  1932. 82, 82, 82, 82, 82, 82, 82, 36, 36, 36,
  1933. 104, 82, 82, 28, 28, 28, 28, 28, 28, 28,
  1934. 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
  1935. 28, 13, 42, 42, 42, 2, 13, 2, 13, 13,
  1936. 5, 5, 5, 13, 13, 13, 54, 13, 13, 13,
  1937. 13, 13, 13, 13, 13, 67, 67, 83, 83, 5,
  1938. 5, 5, 5, 5, 5, 5, 5, 5, 5, 93,
  1939. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  1940. 52, 52, 52, 52, 52, 52, 52, 4, 105, 105,
  1941. 89, 89, 94, 84, 84, 92, 105, 105, 26, 92,
  1942. 71, 4, 91, 91, 4, 84, 84, 84, 97, 30,
  1943. 70, 30, 105, 105, 102, 27, 30, 72, 50, 10,
  1944. 84, 55, 46, 9, 30, 11, 90, 90, 90, 80,
  1945. 30, 56, 30, 85, 85, 85, 85, 85, 85, 43,
  1946. 96, 90, 44, 44, 34, 77, 69, -1, 4, 90,
  1947. -1, -1, -1, 4, -1, -1, 4, -1, -1, -1,
  1948. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1949. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1950. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1951. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1952. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1953. -1, -1, -1, -1, 71
  1954. ];
  1955. PHP.Parser.prototype.yygbase = [
  1956. 0, 0, -286, 0, 10, 239, 130, 154, 0, -10,
  1957. 25, -23, -29, -289, 0, -30, 0, 0, 0, 0,
  1958. 0, 83, 0, 0, 0, 0, 245, 84, -11, 142,
  1959. -28, 0, 0, 0, -13, -88, -42, 0, 0, 0,
  1960. -344, 0, -38, -12, -188, 0, 23, 0, 0, 0,
  1961. 66, 0, 247, 0, 205, 24, -18, 0, 0, 0,
  1962. 0, 0, 0, 0, 0, 0, 0, 13, 0, -15,
  1963. 85, 74, 70, 0, 0, 148, 0, -14, 0, 0,
  1964. -6, 0, -35, 11, 47, 278, -77, 0, 0, 44,
  1965. 68, 43, 38, 72, 94, 0, -16, 109, 0, 0,
  1966. 0, 0, 87, 0, 170, 34, 0
  1967. ];
  1968. PHP.Parser.prototype.yygdefault = [
  1969. -32768, 362, 3, 546, 382, 570, 571, 572, 307, 305,
  1970. 560, 566, 467, 4, 568, 140, 295, 575, 296, 500,
  1971. 577, 414, 579, 580, 308, 309, 415, 315, 216, 593,
  1972. 503, 313, 596, 357, 602, 301, 449, 383, 350, 461,
  1973. 221, 423, 456, 630, 282, 638, 540, 646, 649, 450,
  1974. 657, 352, 433, 434, 667, 672, 677, 680, 334, 325,
  1975. 474, 684, 685, 256, 689, 511, 512, 703, 242, 711,
  1976. 317, 724, 342, 788, 790, 397, 408, 484, 797, 326,
  1977. 800, 384, 385, 386, 387, 435, 818, 815, 289, 866,
  1978. 287, 443, 254, 853, 468, 356, 903, 862, 288, 388,
  1979. 389, 302, 898, 341, 905, 912, 458
  1980. ];
  1981. PHP.Parser.prototype.yylhs = [
  1982. 0, 1, 2, 2, 4, 4, 3, 3, 3, 3,
  1983. 3, 3, 3, 3, 3, 8, 8, 10, 10, 10,
  1984. 10, 9, 9, 11, 13, 13, 14, 14, 14, 14,
  1985. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  1986. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  1987. 5, 5, 5, 5, 5, 5, 5, 5, 33, 33,
  1988. 34, 27, 27, 30, 30, 6, 7, 7, 7, 37,
  1989. 37, 37, 38, 38, 41, 41, 39, 39, 42, 42,
  1990. 22, 22, 29, 29, 32, 32, 31, 31, 43, 23,
  1991. 23, 23, 23, 44, 44, 45, 45, 46, 46, 20,
  1992. 20, 16, 16, 47, 18, 18, 48, 17, 17, 19,
  1993. 19, 36, 36, 49, 49, 50, 50, 51, 51, 51,
  1994. 51, 52, 52, 53, 53, 54, 54, 24, 24, 55,
  1995. 55, 55, 25, 25, 56, 56, 40, 40, 57, 57,
  1996. 57, 57, 62, 62, 63, 63, 64, 64, 64, 64,
  1997. 65, 66, 66, 61, 61, 58, 58, 60, 60, 68,
  1998. 68, 67, 67, 67, 67, 67, 67, 59, 59, 69,
  1999. 69, 26, 26, 21, 21, 15, 15, 15, 15, 15,
  2000. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2001. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2002. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2003. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2004. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2005. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2006. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2007. 15, 15, 15, 71, 77, 77, 79, 79, 80, 81,
  2008. 81, 81, 81, 81, 81, 86, 86, 35, 35, 35,
  2009. 72, 72, 87, 87, 82, 82, 88, 88, 88, 88,
  2010. 88, 73, 73, 73, 76, 76, 76, 78, 78, 93,
  2011. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  2012. 93, 93, 93, 12, 12, 12, 12, 12, 12, 74,
  2013. 74, 74, 74, 94, 94, 96, 96, 95, 95, 97,
  2014. 97, 28, 28, 28, 28, 99, 99, 98, 98, 98,
  2015. 98, 98, 100, 100, 84, 84, 89, 89, 83, 83,
  2016. 101, 101, 101, 101, 90, 90, 90, 90, 85, 85,
  2017. 91, 91, 91, 70, 70, 102, 102, 102, 75, 75,
  2018. 103, 103, 104, 104, 104, 104, 92, 92, 92, 92,
  2019. 105, 105, 105, 105, 105, 105, 105, 106, 106, 106
  2020. ];
  2021. PHP.Parser.prototype.yylen = [
  2022. 1, 1, 2, 0, 1, 3, 1, 1, 1, 1,
  2023. 3, 5, 4, 3, 3, 3, 1, 1, 3, 2,
  2024. 4, 3, 1, 3, 2, 0, 1, 1, 1, 1,
  2025. 3, 7, 10, 5, 7, 9, 5, 2, 3, 2,
  2026. 3, 2, 3, 3, 3, 3, 1, 2, 5, 7,
  2027. 8, 10, 5, 1, 5, 3, 3, 2, 1, 2,
  2028. 8, 1, 3, 0, 1, 9, 7, 6, 5, 1,
  2029. 2, 2, 0, 2, 0, 2, 0, 2, 1, 3,
  2030. 1, 4, 1, 4, 1, 4, 1, 3, 3, 3,
  2031. 4, 4, 5, 0, 2, 4, 3, 1, 1, 1,
  2032. 4, 0, 2, 5, 0, 2, 6, 0, 2, 0,
  2033. 3, 1, 0, 1, 3, 3, 5, 0, 1, 1,
  2034. 1, 1, 0, 1, 3, 1, 2, 3, 1, 1,
  2035. 2, 4, 3, 1, 1, 3, 2, 0, 3, 3,
  2036. 8, 3, 1, 3, 0, 2, 4, 5, 4, 4,
  2037. 3, 1, 1, 1, 3, 1, 1, 0, 1, 1,
  2038. 2, 1, 1, 1, 1, 1, 1, 1, 3, 1,
  2039. 3, 3, 1, 0, 1, 1, 6, 3, 4, 4,
  2040. 1, 2, 3, 3, 3, 3, 3, 3, 3, 3,
  2041. 3, 3, 3, 2, 2, 2, 2, 3, 3, 3,
  2042. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  2043. 3, 3, 3, 2, 2, 2, 2, 3, 3, 3,
  2044. 3, 3, 3, 3, 3, 3, 3, 3, 5, 4,
  2045. 4, 4, 2, 2, 4, 2, 2, 2, 2, 2,
  2046. 2, 2, 2, 2, 2, 2, 1, 4, 3, 3,
  2047. 2, 9, 10, 3, 0, 4, 1, 3, 2, 4,
  2048. 6, 8, 4, 4, 4, 1, 1, 1, 2, 3,
  2049. 1, 1, 1, 1, 1, 1, 0, 3, 3, 4,
  2050. 4, 0, 2, 3, 0, 1, 1, 0, 3, 1,
  2051. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2052. 3, 2, 1, 1, 3, 2, 2, 4, 3, 1,
  2053. 3, 3, 3, 0, 2, 0, 1, 3, 1, 3,
  2054. 1, 1, 1, 1, 1, 6, 4, 3, 6, 4,
  2055. 4, 4, 1, 3, 1, 2, 1, 1, 4, 1,
  2056. 3, 6, 4, 4, 4, 4, 1, 4, 0, 1,
  2057. 1, 3, 1, 3, 1, 1, 4, 0, 0, 2,
  2058. 3, 1, 3, 1, 4, 2, 2, 2, 1, 2,
  2059. 1, 4, 3, 3, 3, 6, 3, 1, 1, 1
  2060. ];
  2061. PHP.Parser.prototype.yyn0 = function () {
  2062. this.yyval = this.yyastk[ this.stackPos ];
  2063. };
  2064. PHP.Parser.prototype.yyn1 = function ( attributes ) {
  2065. this.yyval = this.Stmt_Namespace_postprocess(this.yyastk[ this.stackPos-(1-1) ]);
  2066. };
  2067. PHP.Parser.prototype.yyn2 = function ( attributes ) {
  2068. if (Array.isArray(this.yyastk[ this.stackPos-(2-2) ])) { this.yyval = this.yyastk[ this.stackPos-(2-1) ].concat( this.yyastk[ this.stackPos-(2-2) ]); } else { this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ]; };
  2069. };
  2070. PHP.Parser.prototype.yyn3 = function ( attributes ) {
  2071. this.yyval = [];
  2072. };
  2073. PHP.Parser.prototype.yyn4 = function ( attributes ) {
  2074. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2075. };
  2076. PHP.Parser.prototype.yyn5 = function ( attributes ) {
  2077. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2078. };
  2079. PHP.Parser.prototype.yyn6 = function ( attributes ) {
  2080. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2081. };
  2082. PHP.Parser.prototype.yyn7 = function ( attributes ) {
  2083. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2084. };
  2085. PHP.Parser.prototype.yyn8 = function ( attributes ) {
  2086. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2087. };
  2088. PHP.Parser.prototype.yyn9 = function ( attributes ) {
  2089. this.yyval = this.Node_Stmt_HaltCompiler(attributes);
  2090. };
  2091. PHP.Parser.prototype.yyn10 = function ( attributes ) {
  2092. this.yyval = this.Node_Stmt_Namespace(this.Node_Name(this.yyastk[ this.stackPos-(3-2) ], attributes), null, attributes);
  2093. };
  2094. PHP.Parser.prototype.yyn11 = function ( attributes ) {
  2095. this.yyval = this.Node_Stmt_Namespace(this.Node_Name(this.yyastk[ this.stackPos-(5-2) ], attributes), this.yyastk[ this.stackPos-(5-4) ], attributes);
  2096. };
  2097. PHP.Parser.prototype.yyn12 = function ( attributes ) {
  2098. this.yyval = this.Node_Stmt_Namespace(null, this.yyastk[ this.stackPos-(4-3) ], attributes);
  2099. };
  2100. PHP.Parser.prototype.yyn13 = function ( attributes ) {
  2101. this.yyval = this.Node_Stmt_Use(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2102. };
  2103. PHP.Parser.prototype.yyn14 = function ( attributes ) {
  2104. this.yyval = this.Node_Stmt_Const(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2105. };
  2106. PHP.Parser.prototype.yyn15 = function ( attributes ) {
  2107. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2108. };
  2109. PHP.Parser.prototype.yyn16 = function ( attributes ) {
  2110. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2111. };
  2112. PHP.Parser.prototype.yyn17 = function ( attributes ) {
  2113. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(1-1) ], attributes), null, attributes);
  2114. };
  2115. PHP.Parser.prototype.yyn18 = function ( attributes ) {
  2116. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(3-1) ], attributes), this.yyastk[ this.stackPos-(3-3) ], attributes);
  2117. };
  2118. PHP.Parser.prototype.yyn19 = function ( attributes ) {
  2119. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(2-2) ], attributes), null, attributes);
  2120. };
  2121. PHP.Parser.prototype.yyn20 = function ( attributes ) {
  2122. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(4-2) ], attributes), this.yyastk[ this.stackPos-(4-4) ], attributes);
  2123. };
  2124. PHP.Parser.prototype.yyn21 = function ( attributes ) {
  2125. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2126. };
  2127. PHP.Parser.prototype.yyn22 = function ( attributes ) {
  2128. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2129. };
  2130. PHP.Parser.prototype.yyn23 = function ( attributes ) {
  2131. this.yyval = this.Node_Const(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2132. };
  2133. PHP.Parser.prototype.yyn24 = function ( attributes ) {
  2134. if (Array.isArray(this.yyastk[ this.stackPos-(2-2) ])) { this.yyval = this.yyastk[ this.stackPos-(2-1) ].concat( this.yyastk[ this.stackPos-(2-2) ]); } else { this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ]; };
  2135. };
  2136. PHP.Parser.prototype.yyn25 = function ( attributes ) {
  2137. this.yyval = [];
  2138. };
  2139. PHP.Parser.prototype.yyn26 = function ( attributes ) {
  2140. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2141. };
  2142. PHP.Parser.prototype.yyn27 = function ( attributes ) {
  2143. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2144. };
  2145. PHP.Parser.prototype.yyn28 = function ( attributes ) {
  2146. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2147. };
  2148. PHP.Parser.prototype.yyn29 = function ( attributes ) {
  2149. throw new Error('__halt_compiler() can only be used from the outermost scope');
  2150. };
  2151. PHP.Parser.prototype.yyn30 = function ( attributes ) {
  2152. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2153. };
  2154. PHP.Parser.prototype.yyn31 = function ( attributes ) {
  2155. this.yyval = this.Node_Stmt_If(this.yyastk[ this.stackPos-(7-3) ], {'stmts': Array.isArray(this.yyastk[ this.stackPos-(7-5) ]) ? this.yyastk[ this.stackPos-(7-5) ] : [this.yyastk[ this.stackPos-(7-5) ]], 'elseifs': this.yyastk[ this.stackPos-(7-6) ], 'Else': this.yyastk[ this.stackPos-(7-7) ]}, attributes);
  2156. };
  2157. PHP.Parser.prototype.yyn32 = function ( attributes ) {
  2158. this.yyval = this.Node_Stmt_If(this.yyastk[ this.stackPos-(10-3) ], {'stmts': this.yyastk[ this.stackPos-(10-6) ], 'elseifs': this.yyastk[ this.stackPos-(10-7) ], 'else': this.yyastk[ this.stackPos-(10-8) ]}, attributes);
  2159. };
  2160. PHP.Parser.prototype.yyn33 = function ( attributes ) {
  2161. this.yyval = this.Node_Stmt_While(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  2162. };
  2163. PHP.Parser.prototype.yyn34 = function ( attributes ) {
  2164. this.yyval = this.Node_Stmt_Do(this.yyastk[ this.stackPos-(7-5) ], Array.isArray(this.yyastk[ this.stackPos-(7-2) ]) ? this.yyastk[ this.stackPos-(7-2) ] : [this.yyastk[ this.stackPos-(7-2) ]], attributes);
  2165. };
  2166. PHP.Parser.prototype.yyn35 = function ( attributes ) {
  2167. this.yyval = this.Node_Stmt_For({'init': this.yyastk[ this.stackPos-(9-3) ], 'cond': this.yyastk[ this.stackPos-(9-5) ], 'loop': this.yyastk[ this.stackPos-(9-7) ], 'stmts': this.yyastk[ this.stackPos-(9-9) ]}, attributes);
  2168. };
  2169. PHP.Parser.prototype.yyn36 = function ( attributes ) {
  2170. this.yyval = this.Node_Stmt_Switch(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  2171. };
  2172. PHP.Parser.prototype.yyn37 = function ( attributes ) {
  2173. this.yyval = this.Node_Stmt_Break(null, attributes);
  2174. };
  2175. PHP.Parser.prototype.yyn38 = function ( attributes ) {
  2176. this.yyval = this.Node_Stmt_Break(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2177. };
  2178. PHP.Parser.prototype.yyn39 = function ( attributes ) {
  2179. this.yyval = this.Node_Stmt_Continue(null, attributes);
  2180. };
  2181. PHP.Parser.prototype.yyn40 = function ( attributes ) {
  2182. this.yyval = this.Node_Stmt_Continue(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2183. };
  2184. PHP.Parser.prototype.yyn41 = function ( attributes ) {
  2185. this.yyval = this.Node_Stmt_Return(null, attributes);
  2186. };
  2187. PHP.Parser.prototype.yyn42 = function ( attributes ) {
  2188. this.yyval = this.Node_Stmt_Return(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2189. };
  2190. PHP.Parser.prototype.yyn43 = function ( attributes ) {
  2191. this.yyval = this.Node_Stmt_Global(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2192. };
  2193. PHP.Parser.prototype.yyn44 = function ( attributes ) {
  2194. this.yyval = this.Node_Stmt_Static(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2195. };
  2196. PHP.Parser.prototype.yyn45 = function ( attributes ) {
  2197. this.yyval = this.Node_Stmt_Echo(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2198. };
  2199. PHP.Parser.prototype.yyn46 = function ( attributes ) {
  2200. this.yyval = this.Node_Stmt_InlineHTML(this.yyastk[ this.stackPos-(1-1) ], attributes);
  2201. };
  2202. PHP.Parser.prototype.yyn47 = function ( attributes ) {
  2203. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  2204. };
  2205. PHP.Parser.prototype.yyn48 = function ( attributes ) {
  2206. this.yyval = this.Node_Stmt_Unset(this.yyastk[ this.stackPos-(5-3) ], attributes);
  2207. };
  2208. PHP.Parser.prototype.yyn49 = function ( attributes ) {
  2209. this.yyval = this.Node_Stmt_Foreach(this.yyastk[ this.stackPos-(7-3) ], this.yyastk[ this.stackPos-(7-5) ], {'keyVar': null, 'byRef': false, 'stmts': this.yyastk[ this.stackPos-(7-7) ]}, attributes);
  2210. };
  2211. PHP.Parser.prototype.yyn50 = function ( attributes ) {
  2212. this.yyval = this.Node_Stmt_Foreach(this.yyastk[ this.stackPos-(8-3) ], this.yyastk[ this.stackPos-(8-6) ], {'keyVar': null, 'byRef': true, 'stmts': this.yyastk[ this.stackPos-(8-8) ]}, attributes);
  2213. };
  2214. PHP.Parser.prototype.yyn51 = function ( attributes ) {
  2215. this.yyval = this.Node_Stmt_Foreach(this.yyastk[ this.stackPos-(10-3) ], this.yyastk[ this.stackPos-(10-8) ], {'keyVar': this.yyastk[ this.stackPos-(10-5) ], 'byRef': this.yyastk[ this.stackPos-(10-7) ], 'stmts': this.yyastk[ this.stackPos-(10-10) ]}, attributes);
  2216. };
  2217. PHP.Parser.prototype.yyn52 = function ( attributes ) {
  2218. this.yyval = this.Node_Stmt_Declare(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  2219. };
  2220. PHP.Parser.prototype.yyn53 = function ( attributes ) {
  2221. this.yyval = []; /* means: no statement */
  2222. };
  2223. PHP.Parser.prototype.yyn54 = function ( attributes ) {
  2224. this.yyval = this.Node_Stmt_TryCatch(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  2225. };
  2226. PHP.Parser.prototype.yyn55 = function ( attributes ) {
  2227. this.yyval = this.Node_Stmt_Throw(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2228. };
  2229. PHP.Parser.prototype.yyn56 = function ( attributes ) {
  2230. this.yyval = this.Node_Stmt_Goto(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2231. };
  2232. PHP.Parser.prototype.yyn57 = function ( attributes ) {
  2233. this.yyval = this.Node_Stmt_Label(this.yyastk[ this.stackPos-(2-1) ], attributes);
  2234. };
  2235. PHP.Parser.prototype.yyn58 = function ( attributes ) {
  2236. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2237. };
  2238. PHP.Parser.prototype.yyn59 = function ( attributes ) {
  2239. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  2240. };
  2241. PHP.Parser.prototype.yyn60 = function ( attributes ) {
  2242. this.yyval = this.Node_Stmt_Catch(this.yyastk[ this.stackPos-(8-3) ], this.yyastk[ this.stackPos-(8-4) ].substring( 1 ), this.yyastk[ this.stackPos-(8-7) ], attributes);
  2243. };
  2244. PHP.Parser.prototype.yyn61 = function ( attributes ) {
  2245. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2246. };
  2247. PHP.Parser.prototype.yyn62 = function ( attributes ) {
  2248. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2249. };
  2250. PHP.Parser.prototype.yyn63 = function ( attributes ) {
  2251. this.yyval = false;
  2252. };
  2253. PHP.Parser.prototype.yyn64 = function ( attributes ) {
  2254. this.yyval = true;
  2255. };
  2256. PHP.Parser.prototype.yyn65 = function ( attributes ) {
  2257. this.yyval = this.Node_Stmt_Function(this.yyastk[ this.stackPos-(9-3) ], {'byRef': this.yyastk[ this.stackPos-(9-2) ], 'params': this.yyastk[ this.stackPos-(9-5) ], 'stmts': this.yyastk[ this.stackPos-(9-8) ]}, attributes);
  2258. };
  2259. PHP.Parser.prototype.yyn66 = function ( attributes ) {
  2260. this.yyval = this.Node_Stmt_Class(this.yyastk[ this.stackPos-(7-2) ], {'type': this.yyastk[ this.stackPos-(7-1) ], 'Extends': this.yyastk[ this.stackPos-(7-3) ], 'Implements': this.yyastk[ this.stackPos-(7-4) ], 'stmts': this.yyastk[ this.stackPos-(7-6) ]}, attributes);
  2261. };
  2262. PHP.Parser.prototype.yyn67 = function ( attributes ) {
  2263. this.yyval = this.Node_Stmt_Interface(this.yyastk[ this.stackPos-(6-2) ], {'Extends': this.yyastk[ this.stackPos-(6-3) ], 'stmts': this.yyastk[ this.stackPos-(6-5) ]}, attributes);
  2264. };
  2265. PHP.Parser.prototype.yyn68 = function ( attributes ) {
  2266. this.yyval = this.Node_Stmt_Trait(this.yyastk[ this.stackPos-(5-2) ], this.yyastk[ this.stackPos-(5-4) ], attributes);
  2267. };
  2268. PHP.Parser.prototype.yyn69 = function ( attributes ) {
  2269. this.yyval = 0;
  2270. };
  2271. PHP.Parser.prototype.yyn70 = function ( attributes ) {
  2272. this.yyval = this.MODIFIER_ABSTRACT;
  2273. };
  2274. PHP.Parser.prototype.yyn71 = function ( attributes ) {
  2275. this.yyval = this.MODIFIER_FINAL;
  2276. };
  2277. PHP.Parser.prototype.yyn72 = function ( attributes ) {
  2278. this.yyval = null;
  2279. };
  2280. PHP.Parser.prototype.yyn73 = function ( attributes ) {
  2281. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  2282. };
  2283. PHP.Parser.prototype.yyn74 = function ( attributes ) {
  2284. this.yyval = [];
  2285. };
  2286. PHP.Parser.prototype.yyn75 = function ( attributes ) {
  2287. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  2288. };
  2289. PHP.Parser.prototype.yyn76 = function ( attributes ) {
  2290. this.yyval = [];
  2291. };
  2292. PHP.Parser.prototype.yyn77 = function ( attributes ) {
  2293. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  2294. };
  2295. PHP.Parser.prototype.yyn78 = function ( attributes ) {
  2296. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2297. };
  2298. PHP.Parser.prototype.yyn79 = function ( attributes ) {
  2299. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2300. };
  2301. PHP.Parser.prototype.yyn80 = function ( attributes ) {
  2302. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  2303. };
  2304. PHP.Parser.prototype.yyn81 = function ( attributes ) {
  2305. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  2306. };
  2307. PHP.Parser.prototype.yyn82 = function ( attributes ) {
  2308. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  2309. };
  2310. PHP.Parser.prototype.yyn83 = function ( attributes ) {
  2311. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  2312. };
  2313. PHP.Parser.prototype.yyn84 = function ( attributes ) {
  2314. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  2315. };
  2316. PHP.Parser.prototype.yyn85 = function ( attributes ) {
  2317. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  2318. };
  2319. PHP.Parser.prototype.yyn86 = function ( attributes ) {
  2320. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2321. };
  2322. PHP.Parser.prototype.yyn87 = function ( attributes ) {
  2323. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2324. };
  2325. PHP.Parser.prototype.yyn88 = function ( attributes ) {
  2326. this.yyval = this.Node_Stmt_DeclareDeclare(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2327. };
  2328. PHP.Parser.prototype.yyn89 = function ( attributes ) {
  2329. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2330. };
  2331. PHP.Parser.prototype.yyn90 = function ( attributes ) {
  2332. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  2333. };
  2334. PHP.Parser.prototype.yyn91 = function ( attributes ) {
  2335. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  2336. };
  2337. PHP.Parser.prototype.yyn92 = function ( attributes ) {
  2338. this.yyval = this.yyastk[ this.stackPos-(5-3) ];
  2339. };
  2340. PHP.Parser.prototype.yyn93 = function ( attributes ) {
  2341. this.yyval = [];
  2342. };
  2343. PHP.Parser.prototype.yyn94 = function ( attributes ) {
  2344. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  2345. };
  2346. PHP.Parser.prototype.yyn95 = function ( attributes ) {
  2347. this.yyval = this.Node_Stmt_Case(this.yyastk[ this.stackPos-(4-2) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  2348. };
  2349. PHP.Parser.prototype.yyn96 = function ( attributes ) {
  2350. this.yyval = this.Node_Stmt_Case(null, this.yyastk[ this.stackPos-(3-3) ], attributes);
  2351. };
  2352. PHP.Parser.prototype.yyn97 = function () {
  2353. this.yyval = this.yyastk[ this.stackPos ];
  2354. };
  2355. PHP.Parser.prototype.yyn98 = function () {
  2356. this.yyval = this.yyastk[ this.stackPos ];
  2357. };
  2358. PHP.Parser.prototype.yyn99 = function ( attributes ) {
  2359. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  2360. };
  2361. PHP.Parser.prototype.yyn100 = function ( attributes ) {
  2362. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  2363. };
  2364. PHP.Parser.prototype.yyn101 = function ( attributes ) {
  2365. this.yyval = [];
  2366. };
  2367. PHP.Parser.prototype.yyn102 = function ( attributes ) {
  2368. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  2369. };
  2370. PHP.Parser.prototype.yyn103 = function ( attributes ) {
  2371. this.yyval = this.Node_Stmt_ElseIf(this.yyastk[ this.stackPos-(5-3) ], Array.isArray(this.yyastk[ this.stackPos-(5-5) ]) ? this.yyastk[ this.stackPos-(5-5) ] : [this.yyastk[ this.stackPos-(5-5) ]], attributes);
  2372. };
  2373. PHP.Parser.prototype.yyn104 = function ( attributes ) {
  2374. this.yyval = [];
  2375. };
  2376. PHP.Parser.prototype.yyn105 = function ( attributes ) {
  2377. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  2378. };
  2379. PHP.Parser.prototype.yyn106 = function ( attributes ) {
  2380. this.yyval = this.Node_Stmt_ElseIf(this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-6) ], attributes);
  2381. };
  2382. PHP.Parser.prototype.yyn107 = function ( attributes ) {
  2383. this.yyval = null;
  2384. };
  2385. PHP.Parser.prototype.yyn108 = function ( attributes ) {
  2386. this.yyval = this.Node_Stmt_Else(Array.isArray(this.yyastk[ this.stackPos-(2-2) ]) ? this.yyastk[ this.stackPos-(2-2) ] : [this.yyastk[ this.stackPos-(2-2) ]], attributes);
  2387. };
  2388. PHP.Parser.prototype.yyn109 = function ( attributes ) {
  2389. this.yyval = null;
  2390. };
  2391. PHP.Parser.prototype.yyn110 = function ( attributes ) {
  2392. this.yyval = this.Node_Stmt_Else(this.yyastk[ this.stackPos-(3-3) ], attributes);
  2393. };
  2394. PHP.Parser.prototype.yyn111 = function ( attributes ) {
  2395. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2396. };
  2397. PHP.Parser.prototype.yyn112 = function ( attributes ) {
  2398. this.yyval = [];
  2399. };
  2400. PHP.Parser.prototype.yyn113 = function ( attributes ) {
  2401. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2402. };
  2403. PHP.Parser.prototype.yyn114 = function ( attributes ) {
  2404. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2405. };
  2406. PHP.Parser.prototype.yyn115 = function ( attributes ) {
  2407. this.yyval = this.Node_Param(this.yyastk[ this.stackPos-(3-3) ].substring( 1 ), null, this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ], attributes);
  2408. };
  2409. PHP.Parser.prototype.yyn116 = function ( attributes ) {
  2410. this.yyval = this.Node_Param(this.yyastk[ this.stackPos-(5-3) ].substring( 1 ), this.yyastk[ this.stackPos-(5-5) ], this.yyastk[ this.stackPos-(5-1) ], this.yyastk[ this.stackPos-(5-2) ], attributes);
  2411. };
  2412. PHP.Parser.prototype.yyn117 = function ( attributes ) {
  2413. this.yyval = null;
  2414. };
  2415. PHP.Parser.prototype.yyn118 = function ( attributes ) {
  2416. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2417. };
  2418. PHP.Parser.prototype.yyn119 = function ( attributes ) {
  2419. this.yyval = 'array';
  2420. };
  2421. PHP.Parser.prototype.yyn120 = function ( attributes ) {
  2422. this.yyval = 'callable';
  2423. };
  2424. PHP.Parser.prototype.yyn121 = function ( attributes ) {
  2425. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2426. };
  2427. PHP.Parser.prototype.yyn122 = function ( attributes ) {
  2428. this.yyval = [];
  2429. };
  2430. PHP.Parser.prototype.yyn123 = function ( attributes ) {
  2431. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2432. };
  2433. PHP.Parser.prototype.yyn124 = function ( attributes ) {
  2434. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2435. };
  2436. PHP.Parser.prototype.yyn125 = function ( attributes ) {
  2437. this.yyval = this.Node_Arg(this.yyastk[ this.stackPos-(1-1) ], false, attributes);
  2438. };
  2439. PHP.Parser.prototype.yyn126 = function ( attributes ) {
  2440. this.yyval = this.Node_Arg(this.yyastk[ this.stackPos-(2-2) ], true, attributes);
  2441. };
  2442. PHP.Parser.prototype.yyn127 = function ( attributes ) {
  2443. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2444. };
  2445. PHP.Parser.prototype.yyn128 = function ( attributes ) {
  2446. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2447. };
  2448. PHP.Parser.prototype.yyn129 = function ( attributes ) {
  2449. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  2450. };
  2451. PHP.Parser.prototype.yyn130 = function ( attributes ) {
  2452. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2453. };
  2454. PHP.Parser.prototype.yyn131 = function ( attributes ) {
  2455. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-3) ], attributes);
  2456. };
  2457. PHP.Parser.prototype.yyn132 = function ( attributes ) {
  2458. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2459. };
  2460. PHP.Parser.prototype.yyn133 = function ( attributes ) {
  2461. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2462. };
  2463. PHP.Parser.prototype.yyn134 = function ( attributes ) {
  2464. this.yyval = this.Node_Stmt_StaticVar(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), null, attributes);
  2465. };
  2466. PHP.Parser.prototype.yyn135 = function ( attributes ) {
  2467. this.yyval = this.Node_Stmt_StaticVar(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), this.yyastk[ this.stackPos-(3-3) ], attributes);
  2468. };
  2469. PHP.Parser.prototype.yyn136 = function ( attributes ) {
  2470. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  2471. };
  2472. PHP.Parser.prototype.yyn137 = function ( attributes ) {
  2473. this.yyval = [];
  2474. };
  2475. PHP.Parser.prototype.yyn138 = function ( attributes ) {
  2476. this.yyval = this.Node_Stmt_Property(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ], attributes);
  2477. };
  2478. PHP.Parser.prototype.yyn139 = function ( attributes ) {
  2479. this.yyval = this.Node_Stmt_ClassConst(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2480. };
  2481. PHP.Parser.prototype.yyn140 = function ( attributes ) {
  2482. this.yyval = this.Node_Stmt_ClassMethod(this.yyastk[ this.stackPos-(8-4) ], {'type': this.yyastk[ this.stackPos-(8-1) ], 'byRef': this.yyastk[ this.stackPos-(8-3) ], 'params': this.yyastk[ this.stackPos-(8-6) ], 'stmts': this.yyastk[ this.stackPos-(8-8) ]}, attributes);
  2483. };
  2484. PHP.Parser.prototype.yyn141 = function ( attributes ) {
  2485. this.yyval = this.Node_Stmt_TraitUse(this.yyastk[ this.stackPos-(3-2) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2486. };
  2487. PHP.Parser.prototype.yyn142 = function ( attributes ) {
  2488. this.yyval = [];
  2489. };
  2490. PHP.Parser.prototype.yyn143 = function ( attributes ) {
  2491. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2492. };
  2493. PHP.Parser.prototype.yyn144 = function ( attributes ) {
  2494. this.yyval = [];
  2495. };
  2496. PHP.Parser.prototype.yyn145 = function ( attributes ) {
  2497. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  2498. };
  2499. PHP.Parser.prototype.yyn146 = function ( attributes ) {
  2500. this.yyval = this.Node_Stmt_TraitUseAdaptation_Precedence(this.yyastk[ this.stackPos-(4-1) ][0], this.yyastk[ this.stackPos-(4-1) ][1], this.yyastk[ this.stackPos-(4-3) ], attributes);
  2501. };
  2502. PHP.Parser.prototype.yyn147 = function ( attributes ) {
  2503. this.yyval = this.Node_Stmt_TraitUseAdaptation_Alias(this.yyastk[ this.stackPos-(5-1) ][0], this.yyastk[ this.stackPos-(5-1) ][1], this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-4) ], attributes);
  2504. };
  2505. PHP.Parser.prototype.yyn148 = function ( attributes ) {
  2506. this.yyval = this.Node_Stmt_TraitUseAdaptation_Alias(this.yyastk[ this.stackPos-(4-1) ][0], this.yyastk[ this.stackPos-(4-1) ][1], this.yyastk[ this.stackPos-(4-3) ], null, attributes);
  2507. };
  2508. PHP.Parser.prototype.yyn149 = function ( attributes ) {
  2509. this.yyval = this.Node_Stmt_TraitUseAdaptation_Alias(this.yyastk[ this.stackPos-(4-1) ][0], this.yyastk[ this.stackPos-(4-1) ][1], null, this.yyastk[ this.stackPos-(4-3) ], attributes);
  2510. };
  2511. PHP.Parser.prototype.yyn150 = function ( attributes ) {
  2512. this.yyval = array(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ]);
  2513. };
  2514. PHP.Parser.prototype.yyn151 = function ( attributes ) {
  2515. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2516. };
  2517. PHP.Parser.prototype.yyn152 = function ( attributes ) {
  2518. this.yyval = array(null, this.yyastk[ this.stackPos-(1-1) ]);
  2519. };
  2520. PHP.Parser.prototype.yyn153 = function ( attributes ) {
  2521. this.yyval = null;
  2522. };
  2523. PHP.Parser.prototype.yyn154 = function ( attributes ) {
  2524. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2525. };
  2526. PHP.Parser.prototype.yyn155 = function ( attributes ) {
  2527. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2528. };
  2529. PHP.Parser.prototype.yyn156 = function ( attributes ) {
  2530. this.yyval = this.MODIFIER_PUBLIC;
  2531. };
  2532. PHP.Parser.prototype.yyn157 = function ( attributes ) {
  2533. this.yyval = this.MODIFIER_PUBLIC;
  2534. };
  2535. PHP.Parser.prototype.yyn158 = function ( attributes ) {
  2536. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2537. };
  2538. PHP.Parser.prototype.yyn159 = function ( attributes ) {
  2539. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2540. };
  2541. PHP.Parser.prototype.yyn160 = function ( attributes ) {
  2542. this.Stmt_Class_verifyModifier(this.yyastk[ this.stackPos-(2-1) ], this.yyastk[ this.stackPos-(2-2) ]); this.yyval = this.yyastk[ this.stackPos-(2-1) ] | this.yyastk[ this.stackPos-(2-2) ];
  2543. };
  2544. PHP.Parser.prototype.yyn161 = function ( attributes ) {
  2545. this.yyval = this.MODIFIER_PUBLIC;
  2546. };
  2547. PHP.Parser.prototype.yyn162 = function ( attributes ) {
  2548. this.yyval = this.MODIFIER_PROTECTED;
  2549. };
  2550. PHP.Parser.prototype.yyn163 = function ( attributes ) {
  2551. this.yyval = this.MODIFIER_PRIVATE;
  2552. };
  2553. PHP.Parser.prototype.yyn164 = function ( attributes ) {
  2554. this.yyval = this.MODIFIER_STATIC;
  2555. };
  2556. PHP.Parser.prototype.yyn165 = function ( attributes ) {
  2557. this.yyval = this.MODIFIER_ABSTRACT;
  2558. };
  2559. PHP.Parser.prototype.yyn166 = function ( attributes ) {
  2560. this.yyval = this.MODIFIER_FINAL;
  2561. };
  2562. PHP.Parser.prototype.yyn167 = function ( attributes ) {
  2563. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2564. };
  2565. PHP.Parser.prototype.yyn168 = function ( attributes ) {
  2566. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2567. };
  2568. PHP.Parser.prototype.yyn169 = function ( attributes ) {
  2569. this.yyval = this.Node_Stmt_PropertyProperty(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), null, attributes);
  2570. };
  2571. PHP.Parser.prototype.yyn170 = function ( attributes ) {
  2572. this.yyval = this.Node_Stmt_PropertyProperty(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), this.yyastk[ this.stackPos-(3-3) ], attributes);
  2573. };
  2574. PHP.Parser.prototype.yyn171 = function ( attributes ) {
  2575. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2576. };
  2577. PHP.Parser.prototype.yyn172 = function ( attributes ) {
  2578. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2579. };
  2580. PHP.Parser.prototype.yyn173 = function ( attributes ) {
  2581. this.yyval = [];
  2582. };
  2583. PHP.Parser.prototype.yyn174 = function ( attributes ) {
  2584. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2585. };
  2586. PHP.Parser.prototype.yyn175 = function ( attributes ) {
  2587. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2588. };
  2589. PHP.Parser.prototype.yyn176 = function ( attributes ) {
  2590. this.yyval = this.Node_Expr_AssignList(this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-6) ], attributes);
  2591. };
  2592. PHP.Parser.prototype.yyn177 = function ( attributes ) {
  2593. this.yyval = this.Node_Expr_Assign(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2594. };
  2595. PHP.Parser.prototype.yyn178 = function ( attributes ) {
  2596. this.yyval = this.Node_Expr_AssignRef(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  2597. };
  2598. PHP.Parser.prototype.yyn179 = function ( attributes ) {
  2599. this.yyval = this.Node_Expr_AssignRef(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  2600. };
  2601. PHP.Parser.prototype.yyn180 = function ( attributes ) {
  2602. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2603. };
  2604. PHP.Parser.prototype.yyn181 = function ( attributes ) {
  2605. this.yyval = this.Node_Expr_Clone(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2606. };
  2607. PHP.Parser.prototype.yyn182 = function ( attributes ) {
  2608. this.yyval = this.Node_Expr_AssignPlus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2609. };
  2610. PHP.Parser.prototype.yyn183 = function ( attributes ) {
  2611. this.yyval = this.Node_Expr_AssignMinus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2612. };
  2613. PHP.Parser.prototype.yyn184 = function ( attributes ) {
  2614. this.yyval = this.Node_Expr_AssignMul(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2615. };
  2616. PHP.Parser.prototype.yyn185 = function ( attributes ) {
  2617. this.yyval = this.Node_Expr_AssignDiv(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2618. };
  2619. PHP.Parser.prototype.yyn186 = function ( attributes ) {
  2620. this.yyval = this.Node_Expr_AssignConcat(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2621. };
  2622. PHP.Parser.prototype.yyn187 = function ( attributes ) {
  2623. this.yyval = this.Node_Expr_AssignMod(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2624. };
  2625. PHP.Parser.prototype.yyn188 = function ( attributes ) {
  2626. this.yyval = this.Node_Expr_AssignBitwiseAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2627. };
  2628. PHP.Parser.prototype.yyn189 = function ( attributes ) {
  2629. this.yyval = this.Node_Expr_AssignBitwiseOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2630. };
  2631. PHP.Parser.prototype.yyn190 = function ( attributes ) {
  2632. this.yyval = this.Node_Expr_AssignBitwiseXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2633. };
  2634. PHP.Parser.prototype.yyn191 = function ( attributes ) {
  2635. this.yyval = this.Node_Expr_AssignShiftLeft(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2636. };
  2637. PHP.Parser.prototype.yyn192 = function ( attributes ) {
  2638. this.yyval = this.Node_Expr_AssignShiftRight(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2639. };
  2640. PHP.Parser.prototype.yyn193 = function ( attributes ) {
  2641. this.yyval = this.Node_Expr_PostInc(this.yyastk[ this.stackPos-(2-1) ], attributes);
  2642. };
  2643. PHP.Parser.prototype.yyn194 = function ( attributes ) {
  2644. this.yyval = this.Node_Expr_PreInc(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2645. };
  2646. PHP.Parser.prototype.yyn195 = function ( attributes ) {
  2647. this.yyval = this.Node_Expr_PostDec(this.yyastk[ this.stackPos-(2-1) ], attributes);
  2648. };
  2649. PHP.Parser.prototype.yyn196 = function ( attributes ) {
  2650. this.yyval = this.Node_Expr_PreDec(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2651. };
  2652. PHP.Parser.prototype.yyn197 = function ( attributes ) {
  2653. this.yyval = this.Node_Expr_BooleanOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2654. };
  2655. PHP.Parser.prototype.yyn198 = function ( attributes ) {
  2656. this.yyval = this.Node_Expr_BooleanAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2657. };
  2658. PHP.Parser.prototype.yyn199 = function ( attributes ) {
  2659. this.yyval = this.Node_Expr_LogicalOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2660. };
  2661. PHP.Parser.prototype.yyn200 = function ( attributes ) {
  2662. this.yyval = this.Node_Expr_LogicalAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2663. };
  2664. PHP.Parser.prototype.yyn201 = function ( attributes ) {
  2665. this.yyval = this.Node_Expr_LogicalXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2666. };
  2667. PHP.Parser.prototype.yyn202 = function ( attributes ) {
  2668. this.yyval = this.Node_Expr_BitwiseOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2669. };
  2670. PHP.Parser.prototype.yyn203 = function ( attributes ) {
  2671. this.yyval = this.Node_Expr_BitwiseAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2672. };
  2673. PHP.Parser.prototype.yyn204 = function ( attributes ) {
  2674. this.yyval = this.Node_Expr_BitwiseXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2675. };
  2676. PHP.Parser.prototype.yyn205 = function ( attributes ) {
  2677. this.yyval = this.Node_Expr_Concat(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2678. };
  2679. PHP.Parser.prototype.yyn206 = function ( attributes ) {
  2680. this.yyval = this.Node_Expr_Plus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2681. };
  2682. PHP.Parser.prototype.yyn207 = function ( attributes ) {
  2683. this.yyval = this.Node_Expr_Minus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2684. };
  2685. PHP.Parser.prototype.yyn208 = function ( attributes ) {
  2686. this.yyval = this.Node_Expr_Mul(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2687. };
  2688. PHP.Parser.prototype.yyn209 = function ( attributes ) {
  2689. this.yyval = this.Node_Expr_Div(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2690. };
  2691. PHP.Parser.prototype.yyn210 = function ( attributes ) {
  2692. this.yyval = this.Node_Expr_Mod(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2693. };
  2694. PHP.Parser.prototype.yyn211 = function ( attributes ) {
  2695. this.yyval = this.Node_Expr_ShiftLeft(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2696. };
  2697. PHP.Parser.prototype.yyn212 = function ( attributes ) {
  2698. this.yyval = this.Node_Expr_ShiftRight(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2699. };
  2700. PHP.Parser.prototype.yyn213 = function ( attributes ) {
  2701. this.yyval = this.Node_Expr_UnaryPlus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2702. };
  2703. PHP.Parser.prototype.yyn214 = function ( attributes ) {
  2704. this.yyval = this.Node_Expr_UnaryMinus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2705. };
  2706. PHP.Parser.prototype.yyn215 = function ( attributes ) {
  2707. this.yyval = this.Node_Expr_BooleanNot(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2708. };
  2709. PHP.Parser.prototype.yyn216 = function ( attributes ) {
  2710. this.yyval = this.Node_Expr_BitwiseNot(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2711. };
  2712. PHP.Parser.prototype.yyn217 = function ( attributes ) {
  2713. this.yyval = this.Node_Expr_Identical(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2714. };
  2715. PHP.Parser.prototype.yyn218 = function ( attributes ) {
  2716. this.yyval = this.Node_Expr_NotIdentical(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2717. };
  2718. PHP.Parser.prototype.yyn219 = function ( attributes ) {
  2719. this.yyval = this.Node_Expr_Equal(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2720. };
  2721. PHP.Parser.prototype.yyn220 = function ( attributes ) {
  2722. this.yyval = this.Node_Expr_NotEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2723. };
  2724. PHP.Parser.prototype.yyn221 = function ( attributes ) {
  2725. this.yyval = this.Node_Expr_Smaller(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2726. };
  2727. PHP.Parser.prototype.yyn222 = function ( attributes ) {
  2728. this.yyval = this.Node_Expr_SmallerOrEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2729. };
  2730. PHP.Parser.prototype.yyn223 = function ( attributes ) {
  2731. this.yyval = this.Node_Expr_Greater(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2732. };
  2733. PHP.Parser.prototype.yyn224 = function ( attributes ) {
  2734. this.yyval = this.Node_Expr_GreaterOrEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2735. };
  2736. PHP.Parser.prototype.yyn225 = function ( attributes ) {
  2737. this.yyval = this.Node_Expr_Instanceof(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2738. };
  2739. PHP.Parser.prototype.yyn226 = function ( attributes ) {
  2740. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2741. };
  2742. PHP.Parser.prototype.yyn227 = function ( attributes ) {
  2743. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2744. };
  2745. PHP.Parser.prototype.yyn228 = function ( attributes ) {
  2746. this.yyval = this.Node_Expr_Ternary(this.yyastk[ this.stackPos-(5-1) ], this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  2747. };
  2748. PHP.Parser.prototype.yyn229 = function ( attributes ) {
  2749. this.yyval = this.Node_Expr_Ternary(this.yyastk[ this.stackPos-(4-1) ], null, this.yyastk[ this.stackPos-(4-4) ], attributes);
  2750. };
  2751. PHP.Parser.prototype.yyn230 = function ( attributes ) {
  2752. this.yyval = this.Node_Expr_Isset(this.yyastk[ this.stackPos-(4-3) ], attributes);
  2753. };
  2754. PHP.Parser.prototype.yyn231 = function ( attributes ) {
  2755. this.yyval = this.Node_Expr_Empty(this.yyastk[ this.stackPos-(4-3) ], attributes);
  2756. };
  2757. PHP.Parser.prototype.yyn232 = function ( attributes ) {
  2758. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_Include", attributes);
  2759. };
  2760. PHP.Parser.prototype.yyn233 = function ( attributes ) {
  2761. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_IncludeOnce", attributes);
  2762. };
  2763. PHP.Parser.prototype.yyn234 = function ( attributes ) {
  2764. this.yyval = this.Node_Expr_Eval(this.yyastk[ this.stackPos-(4-3) ], attributes);
  2765. };
  2766. PHP.Parser.prototype.yyn235 = function ( attributes ) {
  2767. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_Require", attributes);
  2768. };
  2769. PHP.Parser.prototype.yyn236 = function ( attributes ) {
  2770. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_RequireOnce", attributes);
  2771. };
  2772. PHP.Parser.prototype.yyn237 = function ( attributes ) {
  2773. this.yyval = this.Node_Expr_Cast_Int(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2774. };
  2775. PHP.Parser.prototype.yyn238 = function ( attributes ) {
  2776. this.yyval = this.Node_Expr_Cast_Double(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2777. };
  2778. PHP.Parser.prototype.yyn239 = function ( attributes ) {
  2779. this.yyval = this.Node_Expr_Cast_String(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2780. };
  2781. PHP.Parser.prototype.yyn240 = function ( attributes ) {
  2782. this.yyval = this.Node_Expr_Cast_Array(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2783. };
  2784. PHP.Parser.prototype.yyn241 = function ( attributes ) {
  2785. this.yyval = this.Node_Expr_Cast_Object(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2786. };
  2787. PHP.Parser.prototype.yyn242 = function ( attributes ) {
  2788. this.yyval = this.Node_Expr_Cast_Bool(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2789. };
  2790. PHP.Parser.prototype.yyn243 = function ( attributes ) {
  2791. this.yyval = this.Node_Expr_Cast_Unset(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2792. };
  2793. PHP.Parser.prototype.yyn244 = function ( attributes ) {
  2794. this.yyval = this.Node_Expr_Exit(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2795. };
  2796. PHP.Parser.prototype.yyn245 = function ( attributes ) {
  2797. this.yyval = this.Node_Expr_ErrorSuppress(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2798. };
  2799. PHP.Parser.prototype.yyn246 = function ( attributes ) {
  2800. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2801. };
  2802. PHP.Parser.prototype.yyn247 = function ( attributes ) {
  2803. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(4-3) ], attributes);
  2804. };
  2805. PHP.Parser.prototype.yyn248 = function ( attributes ) {
  2806. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2807. };
  2808. PHP.Parser.prototype.yyn249 = function ( attributes ) {
  2809. this.yyval = this.Node_Expr_ShellExec(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2810. };
  2811. PHP.Parser.prototype.yyn250 = function ( attributes ) {
  2812. this.yyval = this.Node_Expr_Print(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2813. };
  2814. PHP.Parser.prototype.yyn251 = function ( attributes ) {
  2815. this.yyval = this.Node_Expr_Closure({'static': false, 'byRef': this.yyastk[ this.stackPos-(9-2) ], 'params': this.yyastk[ this.stackPos-(9-4) ], 'uses': this.yyastk[ this.stackPos-(9-6) ], 'stmts': this.yyastk[ this.stackPos-(9-8) ]}, attributes);
  2816. };
  2817. PHP.Parser.prototype.yyn252 = function ( attributes ) {
  2818. this.yyval = this.Node_Expr_Closure({'static': true, 'byRef': this.yyastk[ this.stackPos-(10-3) ], 'params': this.yyastk[ this.stackPos-(10-5) ], 'uses': this.yyastk[ this.stackPos-(10-7) ], 'stmts': this.yyastk[ this.stackPos-(10-9) ]}, attributes);
  2819. };
  2820. PHP.Parser.prototype.yyn253 = function ( attributes ) {
  2821. this.yyval = this.Node_Expr_New(this.yyastk[ this.stackPos-(3-2) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2822. };
  2823. PHP.Parser.prototype.yyn254 = function ( attributes ) {
  2824. this.yyval = [];
  2825. };
  2826. PHP.Parser.prototype.yyn255 = function ( attributes ) {
  2827. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  2828. };
  2829. PHP.Parser.prototype.yyn256 = function ( attributes ) {
  2830. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  2831. };
  2832. PHP.Parser.prototype.yyn257 = function ( attributes ) {
  2833. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  2834. };
  2835. PHP.Parser.prototype.yyn258 = function ( attributes ) {
  2836. this.yyval = this.Node_Expr_ClosureUse(this.yyastk[ this.stackPos-(2-2) ].substring( 1 ), this.yyastk[ this.stackPos-(2-1) ], attributes);
  2837. };
  2838. PHP.Parser.prototype.yyn259 = function ( attributes ) {
  2839. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  2840. };
  2841. PHP.Parser.prototype.yyn260 = function ( attributes ) {
  2842. this.yyval = this.Node_Expr_StaticCall(this.yyastk[ this.stackPos-(6-1) ], this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  2843. };
  2844. PHP.Parser.prototype.yyn261 = function ( attributes ) {
  2845. this.yyval = this.Node_Expr_StaticCall(this.yyastk[ this.stackPos-(8-1) ], this.yyastk[ this.stackPos-(8-4) ], this.yyastk[ this.stackPos-(8-7) ], attributes);
  2846. };
  2847. PHP.Parser.prototype.yyn262 = function ( attributes ) {
  2848. if (this.yyastk[ this.stackPos-(4-1) ].type === "Node_Expr_StaticPropertyFetch") {
  2849. this.yyval = this.Node_Expr_StaticCall(this.yyastk[ this.stackPos-(4-1) ].Class, this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-1) ].name, attributes), this.yyastk[ this.stackPos-(4-3) ], attributes);
  2850. } else if (this.yyastk[ this.stackPos-(4-1) ].type === "Node_Expr_ArrayDimFetch") {
  2851. var tmp = this.yyastk[ this.stackPos-(4-1) ];
  2852. while (tmp.variable.type === "Node_Expr_ArrayDimFetch") {
  2853. tmp = tmp.variable;
  2854. }
  2855. this.yyval = this.Node_Expr_StaticCall(tmp.variable.Class, this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  2856. tmp.variable = this.Node_Expr_Variable(tmp.variable.name, attributes);
  2857. } else {
  2858. throw new Exception;
  2859. }
  2860. };
  2861. PHP.Parser.prototype.yyn263 = function ( attributes ) {
  2862. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  2863. };
  2864. PHP.Parser.prototype.yyn264 = function ( attributes ) {
  2865. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  2866. };
  2867. PHP.Parser.prototype.yyn265 = function ( attributes ) {
  2868. this.yyval = this.Node_Name('static', attributes);
  2869. };
  2870. PHP.Parser.prototype.yyn266 = function ( attributes ) {
  2871. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2872. };
  2873. PHP.Parser.prototype.yyn267 = function ( attributes ) {
  2874. this.yyval = this.Node_Name(this.yyastk[ this.stackPos-(1-1) ], attributes);
  2875. };
  2876. PHP.Parser.prototype.yyn268 = function ( attributes ) {
  2877. this.yyval = this.Node_Name_FullyQualified(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2878. };
  2879. PHP.Parser.prototype.yyn269 = function ( attributes ) {
  2880. this.yyval = this.Node_Name_Relative(this.yyastk[ this.stackPos-(3-3) ], attributes);
  2881. };
  2882. PHP.Parser.prototype.yyn270 = function ( attributes ) {
  2883. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2884. };
  2885. PHP.Parser.prototype.yyn271 = function ( attributes ) {
  2886. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2887. };
  2888. PHP.Parser.prototype.yyn272 = function ( attributes ) {
  2889. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2890. };
  2891. PHP.Parser.prototype.yyn273 = function ( attributes ) {
  2892. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2893. };
  2894. PHP.Parser.prototype.yyn274 = function ( attributes ) {
  2895. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2896. };
  2897. PHP.Parser.prototype.yyn275 = function ( attributes ) {
  2898. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2899. };
  2900. PHP.Parser.prototype.yyn276 = function () {
  2901. this.yyval = this.yyastk[ this.stackPos ];
  2902. };
  2903. PHP.Parser.prototype.yyn277 = function ( attributes ) {
  2904. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2905. };
  2906. PHP.Parser.prototype.yyn278 = function ( attributes ) {
  2907. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2908. };
  2909. PHP.Parser.prototype.yyn279 = function ( attributes ) {
  2910. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  2911. };
  2912. PHP.Parser.prototype.yyn280 = function ( attributes ) {
  2913. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  2914. };
  2915. PHP.Parser.prototype.yyn281 = function ( attributes ) {
  2916. this.yyval = null;
  2917. };
  2918. PHP.Parser.prototype.yyn282 = function ( attributes ) {
  2919. this.yyval = null;
  2920. };
  2921. PHP.Parser.prototype.yyn283 = function ( attributes ) {
  2922. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2923. };
  2924. PHP.Parser.prototype.yyn284 = function ( attributes ) {
  2925. this.yyval = [];
  2926. };
  2927. PHP.Parser.prototype.yyn285 = function ( attributes ) {
  2928. this.yyval = [this.Scalar_String_parseEscapeSequences(this.yyastk[ this.stackPos-(1-1) ], '`')];
  2929. };
  2930. PHP.Parser.prototype.yyn286 = function ( attributes ) {
  2931. ; this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2932. };
  2933. PHP.Parser.prototype.yyn287 = function ( attributes ) {
  2934. this.yyval = [];
  2935. };
  2936. PHP.Parser.prototype.yyn288 = function ( attributes ) {
  2937. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  2938. };
  2939. PHP.Parser.prototype.yyn289 = function ( attributes ) {
  2940. this.yyval = this.Node_Scalar_LNumber(this.Scalar_LNumber_parse(this.yyastk[ this.stackPos-(1-1) ]), attributes);
  2941. };
  2942. PHP.Parser.prototype.yyn290 = function ( attributes ) {
  2943. this.yyval = this.Node_Scalar_DNumber(this.Scalar_DNumber_parse(this.yyastk[ this.stackPos-(1-1) ]), attributes);
  2944. };
  2945. PHP.Parser.prototype.yyn291 = function ( attributes ) {
  2946. this.yyval = this.Scalar_String_create(this.yyastk[ this.stackPos-(1-1) ], attributes);
  2947. };
  2948. PHP.Parser.prototype.yyn292 = function ( attributes ) {
  2949. this.yyval = {type: "Node_Scalar_LineConst", attributes: attributes};
  2950. };
  2951. PHP.Parser.prototype.yyn293 = function ( attributes ) {
  2952. this.yyval = {type: "Node_Scalar_FileConst", attributes: attributes};
  2953. };
  2954. PHP.Parser.prototype.yyn294 = function ( attributes ) {
  2955. this.yyval = {type: "Node_Scalar_DirConst", attributes: attributes};
  2956. };
  2957. PHP.Parser.prototype.yyn295 = function ( attributes ) {
  2958. this.yyval = {type: "Node_Scalar_ClassConst", attributes: attributes};
  2959. };
  2960. PHP.Parser.prototype.yyn296 = function ( attributes ) {
  2961. this.yyval = {type: "Node_Scalar_TraitConst", attributes: attributes};
  2962. };
  2963. PHP.Parser.prototype.yyn297 = function ( attributes ) {
  2964. this.yyval = {type: "Node_Scalar_MethodConst", attributes: attributes};
  2965. };
  2966. PHP.Parser.prototype.yyn298 = function ( attributes ) {
  2967. this.yyval = {type: "Node_Scalar_FuncConst", attributes: attributes};
  2968. };
  2969. PHP.Parser.prototype.yyn299 = function ( attributes ) {
  2970. this.yyval = {type: "Node_Scalar_NSConst", attributes: attributes};
  2971. };
  2972. PHP.Parser.prototype.yyn300 = function ( attributes ) {
  2973. this.yyval = this.Node_Scalar_String(this.Scalar_String_parseDocString(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ]), attributes);
  2974. };
  2975. PHP.Parser.prototype.yyn301 = function ( attributes ) {
  2976. this.yyval = this.Node_Scalar_String('', attributes);
  2977. };
  2978. PHP.Parser.prototype.yyn302 = function ( attributes ) {
  2979. this.yyval = this.Node_Expr_ConstFetch(this.yyastk[ this.stackPos-(1-1) ], attributes);
  2980. };
  2981. PHP.Parser.prototype.yyn303 = function ( attributes ) {
  2982. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2983. };
  2984. PHP.Parser.prototype.yyn304 = function ( attributes ) {
  2985. this.yyval = this.Node_Expr_ClassConstFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  2986. };
  2987. PHP.Parser.prototype.yyn305 = function ( attributes ) {
  2988. this.yyval = this.Node_Expr_UnaryPlus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2989. };
  2990. PHP.Parser.prototype.yyn306 = function ( attributes ) {
  2991. this.yyval = this.Node_Expr_UnaryMinus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  2992. };
  2993. PHP.Parser.prototype.yyn307 = function ( attributes ) {
  2994. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(4-3) ], attributes);
  2995. };
  2996. PHP.Parser.prototype.yyn308 = function ( attributes ) {
  2997. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(3-2) ], attributes);
  2998. };
  2999. PHP.Parser.prototype.yyn309 = function ( attributes ) {
  3000. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3001. };
  3002. PHP.Parser.prototype.yyn310 = function ( attributes ) {
  3003. this.yyval = this.Node_Expr_ClassConstFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3004. };
  3005. PHP.Parser.prototype.yyn311 = function ( attributes ) {
  3006. ; this.yyval = this.Node_Scalar_Encapsed(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3007. };
  3008. PHP.Parser.prototype.yyn312 = function ( attributes ) {
  3009. ; this.yyval = this.Node_Scalar_Encapsed(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3010. };
  3011. PHP.Parser.prototype.yyn313 = function ( attributes ) {
  3012. this.yyval = [];
  3013. };
  3014. PHP.Parser.prototype.yyn314 = function ( attributes ) {
  3015. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3016. };
  3017. PHP.Parser.prototype.yyn315 = function () {
  3018. this.yyval = this.yyastk[ this.stackPos ];
  3019. };
  3020. PHP.Parser.prototype.yyn316 = function () {
  3021. this.yyval = this.yyastk[ this.stackPos ];
  3022. };
  3023. PHP.Parser.prototype.yyn317 = function ( attributes ) {
  3024. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3025. };
  3026. PHP.Parser.prototype.yyn318 = function ( attributes ) {
  3027. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3028. };
  3029. PHP.Parser.prototype.yyn319 = function ( attributes ) {
  3030. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(3-3) ], this.yyastk[ this.stackPos-(3-1) ], false, attributes);
  3031. };
  3032. PHP.Parser.prototype.yyn320 = function ( attributes ) {
  3033. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(1-1) ], null, false, attributes);
  3034. };
  3035. PHP.Parser.prototype.yyn321 = function ( attributes ) {
  3036. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3037. };
  3038. PHP.Parser.prototype.yyn322 = function ( attributes ) {
  3039. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3040. };
  3041. PHP.Parser.prototype.yyn323 = function ( attributes ) {
  3042. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3043. };
  3044. PHP.Parser.prototype.yyn324 = function ( attributes ) {
  3045. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3046. };
  3047. PHP.Parser.prototype.yyn325 = function ( attributes ) {
  3048. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(6-2) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  3049. };
  3050. PHP.Parser.prototype.yyn326 = function ( attributes ) {
  3051. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3052. };
  3053. PHP.Parser.prototype.yyn327 = function ( attributes ) {
  3054. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3055. };
  3056. PHP.Parser.prototype.yyn328 = function ( attributes ) {
  3057. this.yyval = this.Node_Expr_MethodCall(this.yyastk[ this.stackPos-(6-1) ], this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  3058. };
  3059. PHP.Parser.prototype.yyn329 = function ( attributes ) {
  3060. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3061. };
  3062. PHP.Parser.prototype.yyn330 = function ( attributes ) {
  3063. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3064. };
  3065. PHP.Parser.prototype.yyn331 = function ( attributes ) {
  3066. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3067. };
  3068. PHP.Parser.prototype.yyn332 = function ( attributes ) {
  3069. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3070. };
  3071. PHP.Parser.prototype.yyn333 = function ( attributes ) {
  3072. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3073. };
  3074. PHP.Parser.prototype.yyn334 = function ( attributes ) {
  3075. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3076. };
  3077. PHP.Parser.prototype.yyn335 = function ( attributes ) {
  3078. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3079. };
  3080. PHP.Parser.prototype.yyn336 = function ( attributes ) {
  3081. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3082. };
  3083. PHP.Parser.prototype.yyn337 = function ( attributes ) {
  3084. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3085. };
  3086. PHP.Parser.prototype.yyn338 = function ( attributes ) {
  3087. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  3088. };
  3089. PHP.Parser.prototype.yyn339 = function ( attributes ) {
  3090. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3091. };
  3092. PHP.Parser.prototype.yyn340 = function ( attributes ) {
  3093. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ].substring( 1 ), attributes);
  3094. };
  3095. PHP.Parser.prototype.yyn341 = function ( attributes ) {
  3096. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(6-1) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  3097. };
  3098. PHP.Parser.prototype.yyn342 = function ( attributes ) {
  3099. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3100. };
  3101. PHP.Parser.prototype.yyn343 = function ( attributes ) {
  3102. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3103. };
  3104. PHP.Parser.prototype.yyn344 = function ( attributes ) {
  3105. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3106. };
  3107. PHP.Parser.prototype.yyn345 = function ( attributes ) {
  3108. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3109. };
  3110. PHP.Parser.prototype.yyn346 = function ( attributes ) {
  3111. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  3112. };
  3113. PHP.Parser.prototype.yyn347 = function ( attributes ) {
  3114. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-3) ], attributes);
  3115. };
  3116. PHP.Parser.prototype.yyn348 = function ( attributes ) {
  3117. this.yyval = null;
  3118. };
  3119. PHP.Parser.prototype.yyn349 = function ( attributes ) {
  3120. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3121. };
  3122. PHP.Parser.prototype.yyn350 = function ( attributes ) {
  3123. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3124. };
  3125. PHP.Parser.prototype.yyn351 = function ( attributes ) {
  3126. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3127. };
  3128. PHP.Parser.prototype.yyn352 = function ( attributes ) {
  3129. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3130. };
  3131. PHP.Parser.prototype.yyn353 = function ( attributes ) {
  3132. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3133. };
  3134. PHP.Parser.prototype.yyn354 = function ( attributes ) {
  3135. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3136. };
  3137. PHP.Parser.prototype.yyn355 = function ( attributes ) {
  3138. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3139. };
  3140. PHP.Parser.prototype.yyn356 = function ( attributes ) {
  3141. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  3142. };
  3143. PHP.Parser.prototype.yyn357 = function ( attributes ) {
  3144. this.yyval = null;
  3145. };
  3146. PHP.Parser.prototype.yyn358 = function ( attributes ) {
  3147. this.yyval = [];
  3148. };
  3149. PHP.Parser.prototype.yyn359 = function ( attributes ) {
  3150. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3151. };
  3152. PHP.Parser.prototype.yyn360 = function ( attributes ) {
  3153. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3154. };
  3155. PHP.Parser.prototype.yyn361 = function ( attributes ) {
  3156. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3157. };
  3158. PHP.Parser.prototype.yyn362 = function ( attributes ) {
  3159. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(3-3) ], this.yyastk[ this.stackPos-(3-1) ], false, attributes);
  3160. };
  3161. PHP.Parser.prototype.yyn363 = function ( attributes ) {
  3162. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(1-1) ], null, false, attributes);
  3163. };
  3164. PHP.Parser.prototype.yyn364 = function ( attributes ) {
  3165. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(4-4) ], this.yyastk[ this.stackPos-(4-1) ], true, attributes);
  3166. };
  3167. PHP.Parser.prototype.yyn365 = function ( attributes ) {
  3168. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(2-2) ], null, true, attributes);
  3169. };
  3170. PHP.Parser.prototype.yyn366 = function ( attributes ) {
  3171. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3172. };
  3173. PHP.Parser.prototype.yyn367 = function ( attributes ) {
  3174. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3175. };
  3176. PHP.Parser.prototype.yyn368 = function ( attributes ) {
  3177. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3178. };
  3179. PHP.Parser.prototype.yyn369 = function ( attributes ) {
  3180. this.yyval = [this.yyastk[ this.stackPos-(2-1) ], this.yyastk[ this.stackPos-(2-2) ]];
  3181. };
  3182. PHP.Parser.prototype.yyn370 = function ( attributes ) {
  3183. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  3184. };
  3185. PHP.Parser.prototype.yyn371 = function ( attributes ) {
  3186. this.yyval = this.Node_Expr_ArrayDimFetch(this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-1) ].substring( 1 ), attributes), this.yyastk[ this.stackPos-(4-3) ], attributes);
  3187. };
  3188. PHP.Parser.prototype.yyn372 = function ( attributes ) {
  3189. this.yyval = this.Node_Expr_PropertyFetch(this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), attributes), this.yyastk[ this.stackPos-(3-3) ], attributes);
  3190. };
  3191. PHP.Parser.prototype.yyn373 = function ( attributes ) {
  3192. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3193. };
  3194. PHP.Parser.prototype.yyn374 = function ( attributes ) {
  3195. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3196. };
  3197. PHP.Parser.prototype.yyn375 = function ( attributes ) {
  3198. this.yyval = this.Node_Expr_ArrayDimFetch(this.Node_Expr_Variable(this.yyastk[ this.stackPos-(6-2) ], attributes), this.yyastk[ this.stackPos-(6-4) ], attributes);
  3199. };
  3200. PHP.Parser.prototype.yyn376 = function ( attributes ) {
  3201. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3202. };
  3203. PHP.Parser.prototype.yyn377 = function ( attributes ) {
  3204. this.yyval = this.Node_Scalar_String(this.yyastk[ this.stackPos-(1-1) ], attributes);
  3205. };
  3206. PHP.Parser.prototype.yyn378 = function ( attributes ) {
  3207. this.yyval = this.Node_Scalar_String(this.yyastk[ this.stackPos-(1-1) ], attributes);
  3208. };
  3209. PHP.Parser.prototype.yyn379 = function ( attributes ) {
  3210. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  3211. };
  3212. /*
  3213. * @author Niklas von Hertzen <niklas at hertzen.com>
  3214. * @created 20.7.2012
  3215. * @website http://hertzen.com
  3216. */
  3217. PHP.Parser.prototype.Stmt_Namespace_postprocess = function( a ) {
  3218. return a;
  3219. };
  3220. PHP.Parser.prototype.Node_Stmt_Echo = function() {
  3221. return {
  3222. type: "Node_Stmt_Echo",
  3223. exprs: arguments[ 0 ],
  3224. attributes: arguments[ 1 ]
  3225. };
  3226. };
  3227. PHP.Parser.prototype.Node_Stmt_If = function() {
  3228. return {
  3229. type: "Node_Stmt_If",
  3230. cond: arguments[ 0 ],
  3231. stmts: arguments[ 1 ].stmts,
  3232. elseifs: arguments[ 1 ].elseifs,
  3233. Else: arguments[ 1 ].Else || null,
  3234. attributes: arguments[ 2 ]
  3235. };
  3236. };
  3237. PHP.Parser.prototype.Node_Stmt_For = function() {
  3238. return {
  3239. type: "Node_Stmt_For",
  3240. init: arguments[ 0 ].init,
  3241. cond: arguments[ 0 ].cond,
  3242. loop: arguments[ 0 ].loop,
  3243. stmts: arguments[ 0 ].stmts,
  3244. attributes: arguments[ 1 ]
  3245. };
  3246. };
  3247. PHP.Parser.prototype.Node_Stmt_Function = function() {
  3248. return {
  3249. type: "Node_Stmt_Function",
  3250. name: arguments[ 0 ],
  3251. byRef: arguments[ 1 ].byRef,
  3252. params: arguments[ 1 ].params,
  3253. stmts: arguments[ 1 ].stmts,
  3254. attributes: arguments[ 2 ]
  3255. };
  3256. };
  3257. PHP.Parser.prototype.Stmt_Class_verifyModifier = function() {
  3258. };
  3259. PHP.Parser.prototype.Node_Stmt_Namespace = function() {
  3260. return {
  3261. type: "Node_Stmt_Namespace",
  3262. name: arguments[ 0 ],
  3263. attributes: arguments[ 2 ]
  3264. };
  3265. };
  3266. PHP.Parser.prototype.Node_Stmt_Use = function() {
  3267. return {
  3268. type: "Node_Stmt_Use",
  3269. name: arguments[ 0 ],
  3270. attributes: arguments[ 2 ]
  3271. };
  3272. };
  3273. PHP.Parser.prototype.Node_Stmt_UseUse = function() {
  3274. return {
  3275. type: "Node_Stmt_UseUse",
  3276. name: arguments[ 0 ],
  3277. as: arguments[1],
  3278. attributes: arguments[ 2 ]
  3279. };
  3280. };
  3281. PHP.Parser.prototype.Node_Stmt_TraitUseAdaptation_Precedence = function() {
  3282. return {
  3283. type: "Node_Stmt_TraitUseAdaptation_Precedence",
  3284. name: arguments[ 0 ],
  3285. attributes: arguments[ 2 ]
  3286. };
  3287. };
  3288. PHP.Parser.prototype.Node_Stmt_TraitUseAdaptation_Alias = function() {
  3289. return {
  3290. type: "Node_Stmt_TraitUseAdaptation_Alias",
  3291. name: arguments[ 0 ],
  3292. attributes: arguments[ 2 ]
  3293. };
  3294. };
  3295. PHP.Parser.prototype.Node_Stmt_Trait = function() {
  3296. return {
  3297. type: "Node_Stmt_Trait",
  3298. name: arguments[ 0 ],
  3299. attributes: arguments[ 2 ]
  3300. };
  3301. };
  3302. PHP.Parser.prototype.Node_Stmt_TraitUse = function() {
  3303. return {
  3304. type: "Node_Stmt_TraitUse",
  3305. name: arguments[ 0 ],
  3306. attributes: arguments[ 2 ]
  3307. };
  3308. };
  3309. PHP.Parser.prototype.Node_Stmt_Class = function() {
  3310. return {
  3311. type: "Node_Stmt_Class",
  3312. name: arguments[ 0 ],
  3313. Type: arguments[ 1 ].type,
  3314. Extends: arguments[ 1 ].Extends,
  3315. Implements: arguments[ 1 ].Implements,
  3316. stmts: arguments[ 1 ].stmts,
  3317. attributes: arguments[ 2 ]
  3318. };
  3319. };
  3320. PHP.Parser.prototype.Node_Stmt_ClassMethod = function() {
  3321. return {
  3322. type: "Node_Stmt_ClassMethod",
  3323. name: arguments[ 0 ],
  3324. Type: arguments[ 1 ].type,
  3325. byRef: arguments[ 1 ].byRef,
  3326. params: arguments[ 1 ].params,
  3327. stmts: arguments[ 1 ].stmts,
  3328. attributes: arguments[ 2 ]
  3329. };
  3330. };
  3331. PHP.Parser.prototype.Node_Stmt_ClassConst = function() {
  3332. return {
  3333. type: "Node_Stmt_ClassConst",
  3334. consts: arguments[ 0 ],
  3335. attributes: arguments[ 1 ]
  3336. };
  3337. };
  3338. PHP.Parser.prototype.Node_Stmt_Interface = function() {
  3339. return {
  3340. type: "Node_Stmt_Interface",
  3341. name: arguments[ 0 ],
  3342. Extends: arguments[ 1 ].Extends,
  3343. stmts: arguments[ 1 ].stmts,
  3344. attributes: arguments[ 2 ]
  3345. };
  3346. };
  3347. PHP.Parser.prototype.Node_Stmt_Throw = function() {
  3348. return {
  3349. type: "Node_Stmt_Throw",
  3350. expr: arguments[ 0 ],
  3351. attributes: arguments[ 1 ]
  3352. };
  3353. };
  3354. PHP.Parser.prototype.Node_Stmt_Catch = function() {
  3355. return {
  3356. type: "Node_Stmt_Catch",
  3357. Type: arguments[ 0 ],
  3358. variable: arguments[ 1 ],
  3359. stmts: arguments[ 2 ],
  3360. attributes: arguments[ 3 ]
  3361. };
  3362. };
  3363. PHP.Parser.prototype.Node_Stmt_TryCatch = function() {
  3364. return {
  3365. type: "Node_Stmt_TryCatch",
  3366. stmts: arguments[ 0 ],
  3367. catches: arguments[ 1 ],
  3368. attributes: arguments[ 2 ]
  3369. };
  3370. };
  3371. PHP.Parser.prototype.Node_Stmt_Foreach = function() {
  3372. return {
  3373. type: "Node_Stmt_Foreach",
  3374. expr: arguments[ 0 ],
  3375. valueVar: arguments[ 1 ],
  3376. keyVar: arguments[ 2 ].keyVar,
  3377. byRef: arguments[ 2 ].byRef,
  3378. stmts: arguments[ 2 ].stmts,
  3379. attributes: arguments[ 3 ]
  3380. };
  3381. };
  3382. PHP.Parser.prototype.Node_Stmt_While = function() {
  3383. return {
  3384. type: "Node_Stmt_While",
  3385. cond: arguments[ 0 ],
  3386. stmts: arguments[ 1 ],
  3387. attributes: arguments[ 2 ]
  3388. };
  3389. };
  3390. PHP.Parser.prototype.Node_Stmt_Do = function() {
  3391. return {
  3392. type: "Node_Stmt_Do",
  3393. cond: arguments[ 0 ],
  3394. stmts: arguments[ 1 ],
  3395. attributes: arguments[ 2 ]
  3396. };
  3397. };
  3398. PHP.Parser.prototype.Node_Stmt_Break = function() {
  3399. return {
  3400. type: "Node_Stmt_Break",
  3401. num: arguments[ 0 ],
  3402. attributes: arguments[ 1 ]
  3403. };
  3404. };
  3405. PHP.Parser.prototype.Node_Stmt_Continue = function() {
  3406. return {
  3407. type: "Node_Stmt_Continue",
  3408. num: arguments[ 0 ],
  3409. attributes: arguments[ 1 ]
  3410. };
  3411. };
  3412. PHP.Parser.prototype.Node_Stmt_Return = function() {
  3413. return {
  3414. type: "Node_Stmt_Return",
  3415. expr: arguments[ 0 ],
  3416. attributes: arguments[ 1 ]
  3417. };
  3418. };
  3419. PHP.Parser.prototype.Node_Stmt_Case = function() {
  3420. return {
  3421. type: "Node_Stmt_Case",
  3422. cond: arguments[ 0 ],
  3423. stmts: arguments[ 1 ],
  3424. attributes: arguments[ 2 ]
  3425. };
  3426. };
  3427. PHP.Parser.prototype.Node_Stmt_Switch = function() {
  3428. return {
  3429. type: "Node_Stmt_Switch",
  3430. cond: arguments[ 0 ],
  3431. cases: arguments[ 1 ],
  3432. attributes: arguments[ 2 ]
  3433. };
  3434. };
  3435. PHP.Parser.prototype.Node_Stmt_Else = function() {
  3436. return {
  3437. type: "Node_Stmt_Else",
  3438. stmts: arguments[ 0 ],
  3439. attributes: arguments[ 1 ]
  3440. };
  3441. };
  3442. PHP.Parser.prototype.Node_Stmt_ElseIf = function() {
  3443. return {
  3444. type: "Node_Stmt_ElseIf",
  3445. cond: arguments[ 0 ],
  3446. stmts: arguments[ 1 ],
  3447. attributes: arguments[ 1 ]
  3448. };
  3449. };
  3450. PHP.Parser.prototype.Node_Stmt_InlineHTML = function() {
  3451. return {
  3452. type: "Node_Stmt_InlineHTML",
  3453. value: arguments[ 0 ],
  3454. attributes: arguments[ 1 ]
  3455. };
  3456. };
  3457. PHP.Parser.prototype.Node_Stmt_StaticVar = function() {
  3458. return {
  3459. type: "Node_Stmt_StaticVar",
  3460. name: arguments[ 0 ],
  3461. def: arguments[ 1 ],
  3462. attributes: arguments[ 2 ]
  3463. };
  3464. };
  3465. PHP.Parser.prototype.Node_Stmt_Static = function() {
  3466. return {
  3467. type: "Node_Stmt_Static",
  3468. vars: arguments[ 0 ],
  3469. attributes: arguments[ 1 ]
  3470. };
  3471. };
  3472. PHP.Parser.prototype.Node_Stmt_Global = function() {
  3473. return {
  3474. type: "Node_Stmt_Global",
  3475. vars: arguments[ 0 ],
  3476. attributes: arguments[ 1 ]
  3477. };
  3478. };
  3479. PHP.Parser.prototype.Node_Stmt_PropertyProperty = function() {
  3480. return {
  3481. type: "Node_Stmt_PropertyProperty",
  3482. name: arguments[ 0 ],
  3483. def: arguments[ 1 ],
  3484. attributes: arguments[ 2 ]
  3485. };
  3486. };
  3487. PHP.Parser.prototype.Node_Stmt_Property = function() {
  3488. return {
  3489. type: "Node_Stmt_Property",
  3490. Type: arguments[ 0 ],
  3491. props: arguments[ 1 ],
  3492. attributes: arguments[ 2 ]
  3493. };
  3494. };
  3495. PHP.Parser.prototype.Node_Stmt_Unset = function() {
  3496. return {
  3497. type: "Node_Stmt_Unset",
  3498. variables: arguments[ 0 ],
  3499. attributes: arguments[ 1 ]
  3500. };
  3501. };
  3502. /*
  3503. * @author Niklas von Hertzen <niklas at hertzen.com>
  3504. * @created 20.7.2012
  3505. * @website http://hertzen.com
  3506. */
  3507. PHP.Parser.prototype.Node_Expr_Variable = function( a ) {
  3508. return {
  3509. type: "Node_Expr_Variable",
  3510. name: arguments[ 0 ],
  3511. attributes: arguments[ 1 ]
  3512. };
  3513. };
  3514. PHP.Parser.prototype.Node_Expr_FuncCall = function() {
  3515. return {
  3516. type: "Node_Expr_FuncCall",
  3517. func: arguments[ 0 ],
  3518. args: arguments[ 1 ],
  3519. attributes: arguments[ 2 ]
  3520. };
  3521. };
  3522. PHP.Parser.prototype.Node_Expr_MethodCall = function() {
  3523. return {
  3524. type: "Node_Expr_MethodCall",
  3525. variable: arguments[ 0 ],
  3526. name: arguments[ 1 ],
  3527. args: arguments[ 2 ],
  3528. attributes: arguments[ 3 ]
  3529. };
  3530. };
  3531. PHP.Parser.prototype.Node_Expr_StaticCall = function() {
  3532. return {
  3533. type: "Node_Expr_StaticCall",
  3534. Class: arguments[ 0 ],
  3535. func: arguments[ 1 ],
  3536. args: arguments[ 2 ],
  3537. attributes: arguments[ 3 ]
  3538. };
  3539. };
  3540. PHP.Parser.prototype.Node_Expr_Ternary = function() {
  3541. return {
  3542. type: "Node_Expr_Ternary",
  3543. cond: arguments[ 0 ],
  3544. If: arguments[ 1 ],
  3545. Else: arguments[ 2 ],
  3546. attributes: arguments[ 3 ]
  3547. };
  3548. };
  3549. PHP.Parser.prototype.Node_Expr_AssignList = function() {
  3550. return {
  3551. type: "Node_Expr_AssignList",
  3552. assignList: arguments[ 0 ],
  3553. expr: arguments[ 1 ],
  3554. attributes: arguments[ 2 ]
  3555. };
  3556. };
  3557. PHP.Parser.prototype.Node_Expr_Assign = function() {
  3558. return {
  3559. type: "Node_Expr_Assign",
  3560. variable: arguments[ 0 ],
  3561. expr: arguments[ 1 ],
  3562. attributes: arguments[ 2 ]
  3563. };
  3564. };
  3565. PHP.Parser.prototype.Node_Expr_AssignConcat = function() {
  3566. return {
  3567. type: "Node_Expr_AssignConcat",
  3568. variable: arguments[ 0 ],
  3569. expr: arguments[ 1 ],
  3570. attributes: arguments[ 2 ]
  3571. };
  3572. };
  3573. PHP.Parser.prototype.Node_Expr_AssignMinus = function() {
  3574. return {
  3575. type: "Node_Expr_AssignMinus",
  3576. variable: arguments[ 0 ],
  3577. expr: arguments[ 1 ],
  3578. attributes: arguments[ 2 ]
  3579. };
  3580. };
  3581. PHP.Parser.prototype.Node_Expr_AssignPlus = function() {
  3582. return {
  3583. type: "Node_Expr_AssignPlus",
  3584. variable: arguments[ 0 ],
  3585. expr: arguments[ 1 ],
  3586. attributes: arguments[ 2 ]
  3587. };
  3588. };
  3589. PHP.Parser.prototype.Node_Expr_AssignDiv = function() {
  3590. return {
  3591. type: "Node_Expr_AssignDiv",
  3592. variable: arguments[ 0 ],
  3593. expr: arguments[ 1 ],
  3594. attributes: arguments[ 2 ]
  3595. };
  3596. };
  3597. PHP.Parser.prototype.Node_Expr_AssignRef = function() {
  3598. return {
  3599. type: "Node_Expr_AssignRef",
  3600. variable: arguments[ 0 ],
  3601. refVar: arguments[ 1 ],
  3602. attributes: arguments[ 2 ]
  3603. };
  3604. };
  3605. PHP.Parser.prototype.Node_Expr_AssignMul = function() {
  3606. return {
  3607. type: "Node_Expr_AssignMul",
  3608. variable: arguments[ 0 ],
  3609. expr: arguments[ 1 ],
  3610. attributes: arguments[ 2 ]
  3611. };
  3612. };
  3613. PHP.Parser.prototype.Node_Expr_AssignMod = function() {
  3614. return {
  3615. type: "Node_Expr_AssignMod",
  3616. variable: arguments[ 0 ],
  3617. expr: arguments[ 1 ],
  3618. attributes: arguments[ 2 ]
  3619. };
  3620. };
  3621. PHP.Parser.prototype.Node_Expr_Plus = function() {
  3622. return {
  3623. type: "Node_Expr_Plus",
  3624. left: arguments[ 0 ],
  3625. right: arguments[ 1 ],
  3626. attributes: arguments[ 2 ]
  3627. };
  3628. };
  3629. PHP.Parser.prototype.Node_Expr_Minus = function() {
  3630. return {
  3631. type: "Node_Expr_Minus",
  3632. left: arguments[ 0 ],
  3633. right: arguments[ 1 ],
  3634. attributes: arguments[ 2 ]
  3635. };
  3636. };
  3637. PHP.Parser.prototype.Node_Expr_Mul = function() {
  3638. return {
  3639. type: "Node_Expr_Mul",
  3640. left: arguments[ 0 ],
  3641. right: arguments[ 1 ],
  3642. attributes: arguments[ 2 ]
  3643. };
  3644. };
  3645. PHP.Parser.prototype.Node_Expr_Div = function() {
  3646. return {
  3647. type: "Node_Expr_Div",
  3648. left: arguments[ 0 ],
  3649. right: arguments[ 1 ],
  3650. attributes: arguments[ 2 ]
  3651. };
  3652. };
  3653. PHP.Parser.prototype.Node_Expr_Mod = function() {
  3654. return {
  3655. type: "Node_Expr_Mod",
  3656. left: arguments[ 0 ],
  3657. right: arguments[ 1 ],
  3658. attributes: arguments[ 2 ]
  3659. };
  3660. };
  3661. PHP.Parser.prototype.Node_Expr_Greater = function() {
  3662. return {
  3663. type: "Node_Expr_Greater",
  3664. left: arguments[ 0 ],
  3665. right: arguments[ 1 ],
  3666. attributes: arguments[ 2 ]
  3667. };
  3668. };
  3669. PHP.Parser.prototype.Node_Expr_Equal = function() {
  3670. return {
  3671. type: "Node_Expr_Equal",
  3672. left: arguments[ 0 ],
  3673. right: arguments[ 1 ],
  3674. attributes: arguments[ 2 ]
  3675. };
  3676. };
  3677. PHP.Parser.prototype.Node_Expr_NotEqual = function() {
  3678. return {
  3679. type: "Node_Expr_NotEqual",
  3680. left: arguments[ 0 ],
  3681. right: arguments[ 1 ],
  3682. attributes: arguments[ 2 ]
  3683. };
  3684. };
  3685. PHP.Parser.prototype.Node_Expr_Identical = function() {
  3686. return {
  3687. type: "Node_Expr_Identical",
  3688. left: arguments[ 0 ],
  3689. right: arguments[ 1 ],
  3690. attributes: arguments[ 2 ]
  3691. };
  3692. };
  3693. PHP.Parser.prototype.Node_Expr_NotIdentical = function() {
  3694. return {
  3695. type: "Node_Expr_NotIdentical",
  3696. left: arguments[ 0 ],
  3697. right: arguments[ 1 ],
  3698. attributes: arguments[ 2 ]
  3699. };
  3700. };
  3701. PHP.Parser.prototype.Node_Expr_GreaterOrEqual = function() {
  3702. return {
  3703. type: "Node_Expr_GreaterOrEqual",
  3704. left: arguments[ 0 ],
  3705. right: arguments[ 1 ],
  3706. attributes: arguments[ 2 ]
  3707. };
  3708. };
  3709. PHP.Parser.prototype.Node_Expr_SmallerOrEqual = function() {
  3710. return {
  3711. type: "Node_Expr_SmallerOrEqual",
  3712. left: arguments[ 0 ],
  3713. right: arguments[ 1 ],
  3714. attributes: arguments[ 2 ]
  3715. };
  3716. };
  3717. PHP.Parser.prototype.Node_Expr_Concat = function() {
  3718. return {
  3719. type: "Node_Expr_Concat",
  3720. left: arguments[ 0 ],
  3721. right: arguments[ 1 ],
  3722. attributes: arguments[ 2 ]
  3723. };
  3724. };
  3725. PHP.Parser.prototype.Node_Expr_Smaller = function() {
  3726. return {
  3727. type: "Node_Expr_Smaller",
  3728. left: arguments[ 0 ],
  3729. right: arguments[ 1 ],
  3730. attributes: arguments[ 2 ]
  3731. };
  3732. };
  3733. PHP.Parser.prototype.Node_Expr_PostInc = function() {
  3734. return {
  3735. type: "Node_Expr_PostInc",
  3736. variable: arguments[ 0 ],
  3737. attributes: arguments[ 1 ]
  3738. };
  3739. };
  3740. PHP.Parser.prototype.Node_Expr_PostDec = function() {
  3741. return {
  3742. type: "Node_Expr_PostDec",
  3743. variable: arguments[ 0 ],
  3744. attributes: arguments[ 1 ]
  3745. };
  3746. };
  3747. PHP.Parser.prototype.Node_Expr_PreInc = function() {
  3748. return {
  3749. type: "Node_Expr_PreInc",
  3750. variable: arguments[ 0 ],
  3751. attributes: arguments[ 1 ]
  3752. };
  3753. };
  3754. PHP.Parser.prototype.Node_Expr_PreDec = function() {
  3755. return {
  3756. type: "Node_Expr_PreDec",
  3757. variable: arguments[ 0 ],
  3758. attributes: arguments[ 1 ]
  3759. };
  3760. };
  3761. PHP.Parser.prototype.Node_Expr_Include = function() {
  3762. return {
  3763. expr: arguments[ 0 ],
  3764. type: arguments[ 1 ],
  3765. attributes: arguments[ 2 ]
  3766. };
  3767. };
  3768. PHP.Parser.prototype.Node_Expr_ArrayDimFetch = function() {
  3769. return {
  3770. type: "Node_Expr_ArrayDimFetch",
  3771. variable: arguments[ 0 ],
  3772. dim: arguments[ 1 ],
  3773. attributes: arguments[ 2 ]
  3774. };
  3775. };
  3776. PHP.Parser.prototype.Node_Expr_StaticPropertyFetch = function() {
  3777. return {
  3778. type: "Node_Expr_StaticPropertyFetch",
  3779. Class: arguments[ 0 ],
  3780. name: arguments[ 1 ],
  3781. attributes: arguments[ 2 ]
  3782. };
  3783. };
  3784. PHP.Parser.prototype.Node_Expr_ClassConstFetch = function() {
  3785. return {
  3786. type: "Node_Expr_ClassConstFetch",
  3787. Class: arguments[ 0 ],
  3788. name: arguments[ 1 ],
  3789. attributes: arguments[ 2 ]
  3790. };
  3791. };
  3792. PHP.Parser.prototype.Node_Expr_StaticPropertyFetch = function() {
  3793. return {
  3794. type: "Node_Expr_StaticPropertyFetch",
  3795. Class: arguments[ 0 ],
  3796. name: arguments[ 1 ],
  3797. attributes: arguments[ 2 ]
  3798. };
  3799. };
  3800. PHP.Parser.prototype.Node_Expr_ConstFetch = function() {
  3801. return {
  3802. type: "Node_Expr_ConstFetch",
  3803. name: arguments[ 0 ],
  3804. attributes: arguments[ 1 ]
  3805. };
  3806. };
  3807. PHP.Parser.prototype.Node_Expr_ArrayItem = function() {
  3808. return {
  3809. type: "Node_Expr_ArrayItem",
  3810. value: arguments[ 0 ],
  3811. key: arguments[ 1 ],
  3812. byRef: arguments[ 2 ],
  3813. attributes: arguments[ 3 ]
  3814. };
  3815. };
  3816. PHP.Parser.prototype.Node_Expr_Array = function() {
  3817. return {
  3818. type: "Node_Expr_Array",
  3819. items: arguments[ 0 ],
  3820. attributes: arguments[ 1 ]
  3821. };
  3822. };
  3823. PHP.Parser.prototype.Node_Expr_PropertyFetch = function() {
  3824. return {
  3825. type: "Node_Expr_PropertyFetch",
  3826. variable: arguments[ 0 ],
  3827. name: arguments[ 1 ],
  3828. attributes: arguments[ 2 ]
  3829. };
  3830. };
  3831. PHP.Parser.prototype.Node_Expr_New = function() {
  3832. return {
  3833. type: "Node_Expr_New",
  3834. Class: arguments[ 0 ],
  3835. args: arguments[ 1 ],
  3836. attributes: arguments[ 2 ]
  3837. };
  3838. };
  3839. PHP.Parser.prototype.Node_Expr_Print = function() {
  3840. return {
  3841. type: "Node_Expr_Print",
  3842. expr: arguments[ 0 ],
  3843. attributes: arguments[ 1 ]
  3844. };
  3845. };
  3846. PHP.Parser.prototype.Node_Expr_Exit = function() {
  3847. return {
  3848. type: "Node_Expr_Exit",
  3849. expr: arguments[ 0 ],
  3850. attributes: arguments[ 1 ]
  3851. };
  3852. };
  3853. PHP.Parser.prototype.Node_Expr_Cast_Bool = function() {
  3854. return {
  3855. type: "Node_Expr_Cast_Bool",
  3856. expr: arguments[ 0 ],
  3857. attributes: arguments[ 1 ]
  3858. };
  3859. };
  3860. PHP.Parser.prototype.Node_Expr_Cast_Int = function() {
  3861. return {
  3862. type: "Node_Expr_Cast_Int",
  3863. expr: arguments[ 0 ],
  3864. attributes: arguments[ 1 ]
  3865. };
  3866. };
  3867. PHP.Parser.prototype.Node_Expr_Cast_String = function() {
  3868. return {
  3869. type: "Node_Expr_Cast_String",
  3870. expr: arguments[ 0 ],
  3871. attributes: arguments[ 1 ]
  3872. };
  3873. };
  3874. PHP.Parser.prototype.Node_Expr_Cast_Double = function() {
  3875. return {
  3876. type: "Node_Expr_Cast_Double",
  3877. expr: arguments[ 0 ],
  3878. attributes: arguments[ 1 ]
  3879. };
  3880. };
  3881. PHP.Parser.prototype.Node_Expr_Cast_Array = function() {
  3882. return {
  3883. type: "Node_Expr_Cast_Array",
  3884. expr: arguments[ 0 ],
  3885. attributes: arguments[ 1 ]
  3886. };
  3887. };
  3888. PHP.Parser.prototype.Node_Expr_Cast_Object = function() {
  3889. return {
  3890. type: "Node_Expr_Cast_Object",
  3891. expr: arguments[ 0 ],
  3892. attributes: arguments[ 1 ]
  3893. };
  3894. };
  3895. PHP.Parser.prototype.Node_Expr_ErrorSuppress = function() {
  3896. return {
  3897. type: "Node_Expr_ErrorSuppress",
  3898. expr: arguments[ 0 ],
  3899. attributes: arguments[ 1 ]
  3900. };
  3901. };
  3902. PHP.Parser.prototype.Node_Expr_Isset = function() {
  3903. return {
  3904. type: "Node_Expr_Isset",
  3905. variables: arguments[ 0 ],
  3906. attributes: arguments[ 1 ]
  3907. };
  3908. };
  3909. PHP.Parser.prototype.Node_Expr_UnaryMinus = function() {
  3910. return {
  3911. type: "Node_Expr_UnaryMinus",
  3912. expr: arguments[ 0 ],
  3913. attributes: arguments[ 1 ]
  3914. };
  3915. };
  3916. PHP.Parser.prototype.Node_Expr_UnaryPlus = function() {
  3917. return {
  3918. type: "Node_Expr_UnaryPlus",
  3919. expr: arguments[ 0 ],
  3920. attributes: arguments[ 1 ]
  3921. };
  3922. };
  3923. PHP.Parser.prototype.Node_Expr_Empty = function() {
  3924. return {
  3925. type: "Node_Expr_Empty",
  3926. variable: arguments[ 0 ],
  3927. attributes: arguments[ 1 ]
  3928. };
  3929. };
  3930. PHP.Parser.prototype.Node_Expr_BooleanOr = function() {
  3931. return {
  3932. type: "Node_Expr_BooleanOr",
  3933. left: arguments[ 0 ],
  3934. right: arguments[ 1 ],
  3935. attributes: arguments[ 2 ]
  3936. };
  3937. };
  3938. PHP.Parser.prototype.Node_Expr_LogicalOr = function() {
  3939. return {
  3940. type: "Node_Expr_LogicalOr",
  3941. left: arguments[ 0 ],
  3942. right: arguments[ 1 ],
  3943. attributes: arguments[ 2 ]
  3944. };
  3945. };
  3946. PHP.Parser.prototype.Node_Expr_LogicalAnd = function() {
  3947. return {
  3948. type: "Node_Expr_LogicalAnd",
  3949. left: arguments[ 0 ],
  3950. right: arguments[ 1 ],
  3951. attributes: arguments[ 2 ]
  3952. };
  3953. };
  3954. PHP.Parser.prototype.Node_Expr_LogicalXor = function() {
  3955. return {
  3956. type: "Node_Expr_LogicalXor",
  3957. left: arguments[ 0 ],
  3958. right: arguments[ 1 ],
  3959. attributes: arguments[ 2 ]
  3960. };
  3961. };
  3962. PHP.Parser.prototype.Node_Expr_BitwiseAnd = function() {
  3963. return {
  3964. type: "Node_Expr_BitwiseAnd",
  3965. left: arguments[ 0 ],
  3966. right: arguments[ 1 ],
  3967. attributes: arguments[ 2 ]
  3968. };
  3969. };
  3970. PHP.Parser.prototype.Node_Expr_BitwiseOr = function() {
  3971. return {
  3972. type: "Node_Expr_BitwiseOr",
  3973. left: arguments[ 0 ],
  3974. right: arguments[ 1 ],
  3975. attributes: arguments[ 2 ]
  3976. };
  3977. };
  3978. PHP.Parser.prototype.Node_Expr_BitwiseXor = function() {
  3979. return {
  3980. type: "Node_Expr_BitwiseXor",
  3981. left: arguments[ 0 ],
  3982. right: arguments[ 1 ],
  3983. attributes: arguments[ 2 ]
  3984. };
  3985. };
  3986. PHP.Parser.prototype.Node_Expr_BitwiseNot = function() {
  3987. return {
  3988. type: "Node_Expr_BitwiseNot",
  3989. expr: arguments[ 0 ],
  3990. attributes: arguments[ 1 ]
  3991. };
  3992. };
  3993. PHP.Parser.prototype.Node_Expr_BooleanNot = function() {
  3994. return {
  3995. type: "Node_Expr_BooleanNot",
  3996. expr: arguments[ 0 ],
  3997. attributes: arguments[ 1 ]
  3998. };
  3999. };
  4000. PHP.Parser.prototype.Node_Expr_BooleanAnd = function() {
  4001. return {
  4002. type: "Node_Expr_BooleanAnd",
  4003. left: arguments[ 0 ],
  4004. right: arguments[ 1 ],
  4005. attributes: arguments[ 2 ]
  4006. };
  4007. };
  4008. PHP.Parser.prototype.Node_Expr_Instanceof = function() {
  4009. return {
  4010. type: "Node_Expr_Instanceof",
  4011. left: arguments[ 0 ],
  4012. right: arguments[ 1 ],
  4013. attributes: arguments[ 2 ]
  4014. };
  4015. };
  4016. PHP.Parser.prototype.Node_Expr_Clone = function() {
  4017. return {
  4018. type: "Node_Expr_Clone",
  4019. expr: arguments[ 0 ],
  4020. attributes: arguments[ 1 ]
  4021. };
  4022. };
  4023. /*
  4024. * @author Niklas von Hertzen <niklas at hertzen.com>
  4025. * @created 20.7.2012
  4026. * @website http://hertzen.com
  4027. */
  4028. PHP.Parser.prototype.Scalar_LNumber_parse = function( a ) {
  4029. return a;
  4030. };
  4031. PHP.Parser.prototype.Scalar_DNumber_parse = function( a ) {
  4032. return a;
  4033. };
  4034. PHP.Parser.prototype.Scalar_String_parseDocString = function() {
  4035. return '"' + arguments[ 1 ].replace(/([^"\\]*(?:\\.[^"\\]*)*)"/g, '$1\\"') + '"';
  4036. };
  4037. PHP.Parser.prototype.Node_Scalar_String = function( ) {
  4038. return {
  4039. type: "Node_Scalar_String",
  4040. value: arguments[ 0 ],
  4041. attributes: arguments[ 1 ]
  4042. };
  4043. };
  4044. PHP.Parser.prototype.Scalar_String_create = function( ) {
  4045. return {
  4046. type: "Node_Scalar_String",
  4047. value: arguments[ 0 ],
  4048. attributes: arguments[ 1 ]
  4049. };
  4050. };
  4051. PHP.Parser.prototype.Node_Scalar_LNumber = function() {
  4052. return {
  4053. type: "Node_Scalar_LNumber",
  4054. value: arguments[ 0 ],
  4055. attributes: arguments[ 1 ]
  4056. };
  4057. };
  4058. PHP.Parser.prototype.Node_Scalar_DNumber = function() {
  4059. return {
  4060. type: "Node_Scalar_DNumber",
  4061. value: arguments[ 0 ],
  4062. attributes: arguments[ 1 ]
  4063. };
  4064. };
  4065. PHP.Parser.prototype.Node_Scalar_Encapsed = function() {
  4066. return {
  4067. type: "Node_Scalar_Encapsed",
  4068. parts: arguments[ 0 ],
  4069. attributes: arguments[ 1 ]
  4070. };
  4071. };
  4072. PHP.Parser.prototype.Node_Name = function() {
  4073. return {
  4074. type: "Node_Name",
  4075. parts: arguments[ 0 ],
  4076. attributes: arguments[ 1 ]
  4077. };
  4078. };
  4079. PHP.Parser.prototype.Node_Name_FullyQualified = function() {
  4080. return {
  4081. type: "Node_Name_FullyQualified",
  4082. parts: arguments[ 0 ],
  4083. attributes: arguments[ 1 ]
  4084. };
  4085. };
  4086. PHP.Parser.prototype.Node_Name_Relative = function() {
  4087. return {
  4088. type: "Node_Name_Relative",
  4089. parts: arguments[ 0 ],
  4090. attributes: arguments[ 1 ]
  4091. };
  4092. };
  4093. PHP.Parser.prototype.Node_Param = function() {
  4094. return {
  4095. type: "Node_Param",
  4096. name: arguments[ 0 ],
  4097. def: arguments[ 1 ],
  4098. Type: arguments[ 2 ],
  4099. byRef: arguments[ 3 ],
  4100. attributes: arguments[ 4 ]
  4101. };
  4102. };
  4103. PHP.Parser.prototype.Node_Arg = function() {
  4104. return {
  4105. type: "Node_Name",
  4106. value: arguments[ 0 ],
  4107. byRef: arguments[ 1 ],
  4108. attributes: arguments[ 2 ]
  4109. };
  4110. };
  4111. PHP.Parser.prototype.Node_Const = function() {
  4112. return {
  4113. type: "Node_Const",
  4114. name: arguments[ 0 ],
  4115. value: arguments[ 1 ],
  4116. attributes: arguments[ 2 ]
  4117. };
  4118. };
  4119. exports.PHP = PHP;
  4120. });