php.js 170 KB

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