worker-php.js 227 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937
  1. "no use strict";
  2. ;(function(window) {
  3. if (typeof window.window != "undefined" && window.document) {
  4. return;
  5. }
  6. window.console = function() {
  7. var msgs = Array.prototype.slice.call(arguments, 0);
  8. postMessage({type: "log", data: msgs});
  9. };
  10. window.console.error =
  11. window.console.warn =
  12. window.console.log =
  13. window.console.trace = window.console;
  14. window.window = window;
  15. window.ace = window;
  16. window.onerror = function(message, file, line, col, err) {
  17. console.error("Worker " + (err ? err.stack : message));
  18. };
  19. window.normalizeModule = function(parentId, moduleName) {
  20. // normalize plugin requires
  21. if (moduleName.indexOf("!") !== -1) {
  22. var chunks = moduleName.split("!");
  23. return window.normalizeModule(parentId, chunks[0]) + "!" + window.normalizeModule(parentId, chunks[1]);
  24. }
  25. // normalize relative requires
  26. if (moduleName.charAt(0) == ".") {
  27. var base = parentId.split("/").slice(0, -1).join("/");
  28. moduleName = (base ? base + "/" : "") + moduleName;
  29. while(moduleName.indexOf(".") !== -1 && previous != moduleName) {
  30. var previous = moduleName;
  31. moduleName = moduleName.replace(/^\.\//, "").replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, "");
  32. }
  33. }
  34. return moduleName;
  35. };
  36. window.require = function(parentId, id) {
  37. if (!id) {
  38. id = parentId;
  39. parentId = null;
  40. }
  41. if (!id.charAt)
  42. throw new Error("worker.js require() accepts only (parentId, id) as arguments");
  43. id = window.normalizeModule(parentId, id);
  44. var module = window.require.modules[id];
  45. if (module) {
  46. if (!module.initialized) {
  47. module.initialized = true;
  48. module.exports = module.factory().exports;
  49. }
  50. return module.exports;
  51. }
  52. var chunks = id.split("/");
  53. if (!window.require.tlns)
  54. return console.log("unable to load " + id);
  55. chunks[0] = window.require.tlns[chunks[0]] || chunks[0];
  56. var path = chunks.join("/") + ".js";
  57. window.require.id = id;
  58. importScripts(path);
  59. return window.require(parentId, id);
  60. };
  61. window.require.modules = {};
  62. window.require.tlns = {};
  63. window.define = function(id, deps, factory) {
  64. if (arguments.length == 2) {
  65. factory = deps;
  66. if (typeof id != "string") {
  67. deps = id;
  68. id = window.require.id;
  69. }
  70. } else if (arguments.length == 1) {
  71. factory = id;
  72. deps = [];
  73. id = window.require.id;
  74. }
  75. if (!deps.length)
  76. // If there is no dependencies, we inject 'require', 'exports' and
  77. // 'module' as dependencies, to provide CommonJS compatibility.
  78. deps = ['require', 'exports', 'module'];
  79. if (id.indexOf("text!") === 0)
  80. return;
  81. var req = function(childId) {
  82. return window.require(id, childId);
  83. };
  84. window.require.modules[id] = {
  85. exports: {},
  86. factory: function() {
  87. var module = this;
  88. var returnExports = factory.apply(this, deps.map(function(dep) {
  89. switch(dep) {
  90. // Because 'require', 'exports' and 'module' aren't actual
  91. // dependencies, we must handle them seperately.
  92. case 'require': return req;
  93. case 'exports': return module.exports;
  94. case 'module': return module;
  95. // But for all other dependencies, we can just go ahead and
  96. // require them.
  97. default: return req(dep);
  98. }
  99. }));
  100. if (returnExports)
  101. module.exports = returnExports;
  102. return module;
  103. }
  104. };
  105. };
  106. window.define.amd = {};
  107. window.initBaseUrls = function initBaseUrls(topLevelNamespaces) {
  108. require.tlns = topLevelNamespaces;
  109. };
  110. window.initSender = function initSender() {
  111. var EventEmitter = window.require("ace/lib/event_emitter").EventEmitter;
  112. var oop = window.require("ace/lib/oop");
  113. var Sender = function() {};
  114. (function() {
  115. oop.implement(this, EventEmitter);
  116. this.callback = function(data, callbackId) {
  117. postMessage({
  118. type: "call",
  119. id: callbackId,
  120. data: data
  121. });
  122. };
  123. this.emit = function(name, data) {
  124. postMessage({
  125. type: "event",
  126. name: name,
  127. data: data
  128. });
  129. };
  130. }).call(Sender.prototype);
  131. return new Sender();
  132. };
  133. var main = window.main = null;
  134. var sender = window.sender = null;
  135. window.onmessage = function(e) {
  136. var msg = e.data;
  137. if (msg.command) {
  138. if (main[msg.command])
  139. main[msg.command].apply(main, msg.args);
  140. else
  141. throw new Error("Unknown command:" + msg.command);
  142. }
  143. else if (msg.init) {
  144. initBaseUrls(msg.tlns);
  145. require("ace/lib/es5-shim");
  146. sender = window.sender = initSender();
  147. var clazz = require(msg.module)[msg.classname];
  148. main = window.main = new clazz(sender);
  149. }
  150. else if (msg.event && sender) {
  151. sender._signal(msg.event, msg.data);
  152. }
  153. };
  154. })(this);
  155. ace.define("ace/lib/oop",["require","exports","module"], function(require, exports, module) {
  156. "use strict";
  157. exports.inherits = function(ctor, superCtor) {
  158. ctor.super_ = superCtor;
  159. ctor.prototype = Object.create(superCtor.prototype, {
  160. constructor: {
  161. value: ctor,
  162. enumerable: false,
  163. writable: true,
  164. configurable: true
  165. }
  166. });
  167. };
  168. exports.mixin = function(obj, mixin) {
  169. for (var key in mixin) {
  170. obj[key] = mixin[key];
  171. }
  172. return obj;
  173. };
  174. exports.implement = function(proto, mixin) {
  175. exports.mixin(proto, mixin);
  176. };
  177. });
  178. ace.define("ace/lib/event_emitter",["require","exports","module"], function(require, exports, module) {
  179. "use strict";
  180. var EventEmitter = {};
  181. var stopPropagation = function() { this.propagationStopped = true; };
  182. var preventDefault = function() { this.defaultPrevented = true; };
  183. EventEmitter._emit =
  184. EventEmitter._dispatchEvent = function(eventName, e) {
  185. this._eventRegistry || (this._eventRegistry = {});
  186. this._defaultHandlers || (this._defaultHandlers = {});
  187. var listeners = this._eventRegistry[eventName] || [];
  188. var defaultHandler = this._defaultHandlers[eventName];
  189. if (!listeners.length && !defaultHandler)
  190. return;
  191. if (typeof e != "object" || !e)
  192. e = {};
  193. if (!e.type)
  194. e.type = eventName;
  195. if (!e.stopPropagation)
  196. e.stopPropagation = stopPropagation;
  197. if (!e.preventDefault)
  198. e.preventDefault = preventDefault;
  199. listeners = listeners.slice();
  200. for (var i=0; i<listeners.length; i++) {
  201. listeners[i](e, this);
  202. if (e.propagationStopped)
  203. break;
  204. }
  205. if (defaultHandler && !e.defaultPrevented)
  206. return defaultHandler(e, this);
  207. };
  208. EventEmitter._signal = function(eventName, e) {
  209. var listeners = (this._eventRegistry || {})[eventName];
  210. if (!listeners)
  211. return;
  212. listeners = listeners.slice();
  213. for (var i=0; i<listeners.length; i++)
  214. listeners[i](e, this);
  215. };
  216. EventEmitter.once = function(eventName, callback) {
  217. var _self = this;
  218. callback && this.addEventListener(eventName, function newCallback() {
  219. _self.removeEventListener(eventName, newCallback);
  220. callback.apply(null, arguments);
  221. });
  222. };
  223. EventEmitter.setDefaultHandler = function(eventName, callback) {
  224. var handlers = this._defaultHandlers
  225. if (!handlers)
  226. handlers = this._defaultHandlers = {_disabled_: {}};
  227. if (handlers[eventName]) {
  228. var old = handlers[eventName];
  229. var disabled = handlers._disabled_[eventName];
  230. if (!disabled)
  231. handlers._disabled_[eventName] = disabled = [];
  232. disabled.push(old);
  233. var i = disabled.indexOf(callback);
  234. if (i != -1)
  235. disabled.splice(i, 1);
  236. }
  237. handlers[eventName] = callback;
  238. };
  239. EventEmitter.removeDefaultHandler = function(eventName, callback) {
  240. var handlers = this._defaultHandlers
  241. if (!handlers)
  242. return;
  243. var disabled = handlers._disabled_[eventName];
  244. if (handlers[eventName] == callback) {
  245. var old = handlers[eventName];
  246. if (disabled)
  247. this.setDefaultHandler(eventName, disabled.pop());
  248. } else if (disabled) {
  249. var i = disabled.indexOf(callback);
  250. if (i != -1)
  251. disabled.splice(i, 1);
  252. }
  253. };
  254. EventEmitter.on =
  255. EventEmitter.addEventListener = function(eventName, callback, capturing) {
  256. this._eventRegistry = this._eventRegistry || {};
  257. var listeners = this._eventRegistry[eventName];
  258. if (!listeners)
  259. listeners = this._eventRegistry[eventName] = [];
  260. if (listeners.indexOf(callback) == -1)
  261. listeners[capturing ? "unshift" : "push"](callback);
  262. return callback;
  263. };
  264. EventEmitter.off =
  265. EventEmitter.removeListener =
  266. EventEmitter.removeEventListener = function(eventName, callback) {
  267. this._eventRegistry = this._eventRegistry || {};
  268. var listeners = this._eventRegistry[eventName];
  269. if (!listeners)
  270. return;
  271. var index = listeners.indexOf(callback);
  272. if (index !== -1)
  273. listeners.splice(index, 1);
  274. };
  275. EventEmitter.removeAllListeners = function(eventName) {
  276. if (this._eventRegistry) this._eventRegistry[eventName] = [];
  277. };
  278. exports.EventEmitter = EventEmitter;
  279. });
  280. ace.define("ace/range",["require","exports","module"], function(require, exports, module) {
  281. "use strict";
  282. var comparePoints = function(p1, p2) {
  283. return p1.row - p2.row || p1.column - p2.column;
  284. };
  285. var Range = function(startRow, startColumn, endRow, endColumn) {
  286. this.start = {
  287. row: startRow,
  288. column: startColumn
  289. };
  290. this.end = {
  291. row: endRow,
  292. column: endColumn
  293. };
  294. };
  295. (function() {
  296. this.isEqual = function(range) {
  297. return this.start.row === range.start.row &&
  298. this.end.row === range.end.row &&
  299. this.start.column === range.start.column &&
  300. this.end.column === range.end.column;
  301. };
  302. this.toString = function() {
  303. return ("Range: [" + this.start.row + "/" + this.start.column +
  304. "] -> [" + this.end.row + "/" + this.end.column + "]");
  305. };
  306. this.contains = function(row, column) {
  307. return this.compare(row, column) == 0;
  308. };
  309. this.compareRange = function(range) {
  310. var cmp,
  311. end = range.end,
  312. start = range.start;
  313. cmp = this.compare(end.row, end.column);
  314. if (cmp == 1) {
  315. cmp = this.compare(start.row, start.column);
  316. if (cmp == 1) {
  317. return 2;
  318. } else if (cmp == 0) {
  319. return 1;
  320. } else {
  321. return 0;
  322. }
  323. } else if (cmp == -1) {
  324. return -2;
  325. } else {
  326. cmp = this.compare(start.row, start.column);
  327. if (cmp == -1) {
  328. return -1;
  329. } else if (cmp == 1) {
  330. return 42;
  331. } else {
  332. return 0;
  333. }
  334. }
  335. };
  336. this.comparePoint = function(p) {
  337. return this.compare(p.row, p.column);
  338. };
  339. this.containsRange = function(range) {
  340. return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;
  341. };
  342. this.intersects = function(range) {
  343. var cmp = this.compareRange(range);
  344. return (cmp == -1 || cmp == 0 || cmp == 1);
  345. };
  346. this.isEnd = function(row, column) {
  347. return this.end.row == row && this.end.column == column;
  348. };
  349. this.isStart = function(row, column) {
  350. return this.start.row == row && this.start.column == column;
  351. };
  352. this.setStart = function(row, column) {
  353. if (typeof row == "object") {
  354. this.start.column = row.column;
  355. this.start.row = row.row;
  356. } else {
  357. this.start.row = row;
  358. this.start.column = column;
  359. }
  360. };
  361. this.setEnd = function(row, column) {
  362. if (typeof row == "object") {
  363. this.end.column = row.column;
  364. this.end.row = row.row;
  365. } else {
  366. this.end.row = row;
  367. this.end.column = column;
  368. }
  369. };
  370. this.inside = function(row, column) {
  371. if (this.compare(row, column) == 0) {
  372. if (this.isEnd(row, column) || this.isStart(row, column)) {
  373. return false;
  374. } else {
  375. return true;
  376. }
  377. }
  378. return false;
  379. };
  380. this.insideStart = function(row, column) {
  381. if (this.compare(row, column) == 0) {
  382. if (this.isEnd(row, column)) {
  383. return false;
  384. } else {
  385. return true;
  386. }
  387. }
  388. return false;
  389. };
  390. this.insideEnd = function(row, column) {
  391. if (this.compare(row, column) == 0) {
  392. if (this.isStart(row, column)) {
  393. return false;
  394. } else {
  395. return true;
  396. }
  397. }
  398. return false;
  399. };
  400. this.compare = function(row, column) {
  401. if (!this.isMultiLine()) {
  402. if (row === this.start.row) {
  403. return column < this.start.column ? -1 : (column > this.end.column ? 1 : 0);
  404. };
  405. }
  406. if (row < this.start.row)
  407. return -1;
  408. if (row > this.end.row)
  409. return 1;
  410. if (this.start.row === row)
  411. return column >= this.start.column ? 0 : -1;
  412. if (this.end.row === row)
  413. return column <= this.end.column ? 0 : 1;
  414. return 0;
  415. };
  416. this.compareStart = function(row, column) {
  417. if (this.start.row == row && this.start.column == column) {
  418. return -1;
  419. } else {
  420. return this.compare(row, column);
  421. }
  422. };
  423. this.compareEnd = function(row, column) {
  424. if (this.end.row == row && this.end.column == column) {
  425. return 1;
  426. } else {
  427. return this.compare(row, column);
  428. }
  429. };
  430. this.compareInside = function(row, column) {
  431. if (this.end.row == row && this.end.column == column) {
  432. return 1;
  433. } else if (this.start.row == row && this.start.column == column) {
  434. return -1;
  435. } else {
  436. return this.compare(row, column);
  437. }
  438. };
  439. this.clipRows = function(firstRow, lastRow) {
  440. if (this.end.row > lastRow)
  441. var end = {row: lastRow + 1, column: 0};
  442. else if (this.end.row < firstRow)
  443. var end = {row: firstRow, column: 0};
  444. if (this.start.row > lastRow)
  445. var start = {row: lastRow + 1, column: 0};
  446. else if (this.start.row < firstRow)
  447. var start = {row: firstRow, column: 0};
  448. return Range.fromPoints(start || this.start, end || this.end);
  449. };
  450. this.extend = function(row, column) {
  451. var cmp = this.compare(row, column);
  452. if (cmp == 0)
  453. return this;
  454. else if (cmp == -1)
  455. var start = {row: row, column: column};
  456. else
  457. var end = {row: row, column: column};
  458. return Range.fromPoints(start || this.start, end || this.end);
  459. };
  460. this.isEmpty = function() {
  461. return (this.start.row === this.end.row && this.start.column === this.end.column);
  462. };
  463. this.isMultiLine = function() {
  464. return (this.start.row !== this.end.row);
  465. };
  466. this.clone = function() {
  467. return Range.fromPoints(this.start, this.end);
  468. };
  469. this.collapseRows = function() {
  470. if (this.end.column == 0)
  471. return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0)
  472. else
  473. return new Range(this.start.row, 0, this.end.row, 0)
  474. };
  475. this.toScreenRange = function(session) {
  476. var screenPosStart = session.documentToScreenPosition(this.start);
  477. var screenPosEnd = session.documentToScreenPosition(this.end);
  478. return new Range(
  479. screenPosStart.row, screenPosStart.column,
  480. screenPosEnd.row, screenPosEnd.column
  481. );
  482. };
  483. this.moveBy = function(row, column) {
  484. this.start.row += row;
  485. this.start.column += column;
  486. this.end.row += row;
  487. this.end.column += column;
  488. };
  489. }).call(Range.prototype);
  490. Range.fromPoints = function(start, end) {
  491. return new Range(start.row, start.column, end.row, end.column);
  492. };
  493. Range.comparePoints = comparePoints;
  494. Range.comparePoints = function(p1, p2) {
  495. return p1.row - p2.row || p1.column - p2.column;
  496. };
  497. exports.Range = Range;
  498. });
  499. ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"], function(require, exports, module) {
  500. "use strict";
  501. var oop = require("./lib/oop");
  502. var EventEmitter = require("./lib/event_emitter").EventEmitter;
  503. var Anchor = exports.Anchor = function(doc, row, column) {
  504. this.$onChange = this.onChange.bind(this);
  505. this.attach(doc);
  506. if (typeof column == "undefined")
  507. this.setPosition(row.row, row.column);
  508. else
  509. this.setPosition(row, column);
  510. };
  511. (function() {
  512. oop.implement(this, EventEmitter);
  513. this.getPosition = function() {
  514. return this.$clipPositionToDocument(this.row, this.column);
  515. };
  516. this.getDocument = function() {
  517. return this.document;
  518. };
  519. this.$insertRight = false;
  520. this.onChange = function(e) {
  521. var delta = e.data;
  522. var range = delta.range;
  523. if (range.start.row == range.end.row && range.start.row != this.row)
  524. return;
  525. if (range.start.row > this.row)
  526. return;
  527. if (range.start.row == this.row && range.start.column > this.column)
  528. return;
  529. var row = this.row;
  530. var column = this.column;
  531. var start = range.start;
  532. var end = range.end;
  533. if (delta.action === "insertText") {
  534. if (start.row === row && start.column <= column) {
  535. if (start.column === column && this.$insertRight) {
  536. } else if (start.row === end.row) {
  537. column += end.column - start.column;
  538. } else {
  539. column -= start.column;
  540. row += end.row - start.row;
  541. }
  542. } else if (start.row !== end.row && start.row < row) {
  543. row += end.row - start.row;
  544. }
  545. } else if (delta.action === "insertLines") {
  546. if (start.row === row && column === 0 && this.$insertRight) {
  547. }
  548. else if (start.row <= row) {
  549. row += end.row - start.row;
  550. }
  551. } else if (delta.action === "removeText") {
  552. if (start.row === row && start.column < column) {
  553. if (end.column >= column)
  554. column = start.column;
  555. else
  556. column = Math.max(0, column - (end.column - start.column));
  557. } else if (start.row !== end.row && start.row < row) {
  558. if (end.row === row)
  559. column = Math.max(0, column - end.column) + start.column;
  560. row -= (end.row - start.row);
  561. } else if (end.row === row) {
  562. row -= end.row - start.row;
  563. column = Math.max(0, column - end.column) + start.column;
  564. }
  565. } else if (delta.action == "removeLines") {
  566. if (start.row <= row) {
  567. if (end.row <= row)
  568. row -= end.row - start.row;
  569. else {
  570. row = start.row;
  571. column = 0;
  572. }
  573. }
  574. }
  575. this.setPosition(row, column, true);
  576. };
  577. this.setPosition = function(row, column, noClip) {
  578. var pos;
  579. if (noClip) {
  580. pos = {
  581. row: row,
  582. column: column
  583. };
  584. } else {
  585. pos = this.$clipPositionToDocument(row, column);
  586. }
  587. if (this.row == pos.row && this.column == pos.column)
  588. return;
  589. var old = {
  590. row: this.row,
  591. column: this.column
  592. };
  593. this.row = pos.row;
  594. this.column = pos.column;
  595. this._signal("change", {
  596. old: old,
  597. value: pos
  598. });
  599. };
  600. this.detach = function() {
  601. this.document.removeEventListener("change", this.$onChange);
  602. };
  603. this.attach = function(doc) {
  604. this.document = doc || this.document;
  605. this.document.on("change", this.$onChange);
  606. };
  607. this.$clipPositionToDocument = function(row, column) {
  608. var pos = {};
  609. if (row >= this.document.getLength()) {
  610. pos.row = Math.max(0, this.document.getLength() - 1);
  611. pos.column = this.document.getLine(pos.row).length;
  612. }
  613. else if (row < 0) {
  614. pos.row = 0;
  615. pos.column = 0;
  616. }
  617. else {
  618. pos.row = row;
  619. pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column));
  620. }
  621. if (column < 0)
  622. pos.column = 0;
  623. return pos;
  624. };
  625. }).call(Anchor.prototype);
  626. });
  627. ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/range","ace/anchor"], function(require, exports, module) {
  628. "use strict";
  629. var oop = require("./lib/oop");
  630. var EventEmitter = require("./lib/event_emitter").EventEmitter;
  631. var Range = require("./range").Range;
  632. var Anchor = require("./anchor").Anchor;
  633. var Document = function(text) {
  634. this.$lines = [];
  635. if (text.length === 0) {
  636. this.$lines = [""];
  637. } else if (Array.isArray(text)) {
  638. this._insertLines(0, text);
  639. } else {
  640. this.insert({row: 0, column:0}, text);
  641. }
  642. };
  643. (function() {
  644. oop.implement(this, EventEmitter);
  645. this.setValue = function(text) {
  646. var len = this.getLength();
  647. this.remove(new Range(0, 0, len, this.getLine(len-1).length));
  648. this.insert({row: 0, column:0}, text);
  649. };
  650. this.getValue = function() {
  651. return this.getAllLines().join(this.getNewLineCharacter());
  652. };
  653. this.createAnchor = function(row, column) {
  654. return new Anchor(this, row, column);
  655. };
  656. if ("aaa".split(/a/).length === 0)
  657. this.$split = function(text) {
  658. return text.replace(/\r\n|\r/g, "\n").split("\n");
  659. };
  660. else
  661. this.$split = function(text) {
  662. return text.split(/\r\n|\r|\n/);
  663. };
  664. this.$detectNewLine = function(text) {
  665. var match = text.match(/^.*?(\r\n|\r|\n)/m);
  666. this.$autoNewLine = match ? match[1] : "\n";
  667. this._signal("changeNewLineMode");
  668. };
  669. this.getNewLineCharacter = function() {
  670. switch (this.$newLineMode) {
  671. case "windows":
  672. return "\r\n";
  673. case "unix":
  674. return "\n";
  675. default:
  676. return this.$autoNewLine || "\n";
  677. }
  678. };
  679. this.$autoNewLine = "";
  680. this.$newLineMode = "auto";
  681. this.setNewLineMode = function(newLineMode) {
  682. if (this.$newLineMode === newLineMode)
  683. return;
  684. this.$newLineMode = newLineMode;
  685. this._signal("changeNewLineMode");
  686. };
  687. this.getNewLineMode = function() {
  688. return this.$newLineMode;
  689. };
  690. this.isNewLine = function(text) {
  691. return (text == "\r\n" || text == "\r" || text == "\n");
  692. };
  693. this.getLine = function(row) {
  694. return this.$lines[row] || "";
  695. };
  696. this.getLines = function(firstRow, lastRow) {
  697. return this.$lines.slice(firstRow, lastRow + 1);
  698. };
  699. this.getAllLines = function() {
  700. return this.getLines(0, this.getLength());
  701. };
  702. this.getLength = function() {
  703. return this.$lines.length;
  704. };
  705. this.getTextRange = function(range) {
  706. if (range.start.row == range.end.row) {
  707. return this.getLine(range.start.row)
  708. .substring(range.start.column, range.end.column);
  709. }
  710. var lines = this.getLines(range.start.row, range.end.row);
  711. lines[0] = (lines[0] || "").substring(range.start.column);
  712. var l = lines.length - 1;
  713. if (range.end.row - range.start.row == l)
  714. lines[l] = lines[l].substring(0, range.end.column);
  715. return lines.join(this.getNewLineCharacter());
  716. };
  717. this.$clipPosition = function(position) {
  718. var length = this.getLength();
  719. if (position.row >= length) {
  720. position.row = Math.max(0, length - 1);
  721. position.column = this.getLine(length-1).length;
  722. } else if (position.row < 0)
  723. position.row = 0;
  724. return position;
  725. };
  726. this.insert = function(position, text) {
  727. if (!text || text.length === 0)
  728. return position;
  729. position = this.$clipPosition(position);
  730. if (this.getLength() <= 1)
  731. this.$detectNewLine(text);
  732. var lines = this.$split(text);
  733. var firstLine = lines.splice(0, 1)[0];
  734. var lastLine = lines.length == 0 ? null : lines.splice(lines.length - 1, 1)[0];
  735. position = this.insertInLine(position, firstLine);
  736. if (lastLine !== null) {
  737. position = this.insertNewLine(position); // terminate first line
  738. position = this._insertLines(position.row, lines);
  739. position = this.insertInLine(position, lastLine || "");
  740. }
  741. return position;
  742. };
  743. this.insertLines = function(row, lines) {
  744. if (row >= this.getLength())
  745. return this.insert({row: row, column: 0}, "\n" + lines.join("\n"));
  746. return this._insertLines(Math.max(row, 0), lines);
  747. };
  748. this._insertLines = function(row, lines) {
  749. if (lines.length == 0)
  750. return {row: row, column: 0};
  751. while (lines.length > 0xF000) {
  752. var end = this._insertLines(row, lines.slice(0, 0xF000));
  753. lines = lines.slice(0xF000);
  754. row = end.row;
  755. }
  756. var args = [row, 0];
  757. args.push.apply(args, lines);
  758. this.$lines.splice.apply(this.$lines, args);
  759. var range = new Range(row, 0, row + lines.length, 0);
  760. var delta = {
  761. action: "insertLines",
  762. range: range,
  763. lines: lines
  764. };
  765. this._signal("change", { data: delta });
  766. return range.end;
  767. };
  768. this.insertNewLine = function(position) {
  769. position = this.$clipPosition(position);
  770. var line = this.$lines[position.row] || "";
  771. this.$lines[position.row] = line.substring(0, position.column);
  772. this.$lines.splice(position.row + 1, 0, line.substring(position.column, line.length));
  773. var end = {
  774. row : position.row + 1,
  775. column : 0
  776. };
  777. var delta = {
  778. action: "insertText",
  779. range: Range.fromPoints(position, end),
  780. text: this.getNewLineCharacter()
  781. };
  782. this._signal("change", { data: delta });
  783. return end;
  784. };
  785. this.insertInLine = function(position, text) {
  786. if (text.length == 0)
  787. return position;
  788. var line = this.$lines[position.row] || "";
  789. this.$lines[position.row] = line.substring(0, position.column) + text
  790. + line.substring(position.column);
  791. var end = {
  792. row : position.row,
  793. column : position.column + text.length
  794. };
  795. var delta = {
  796. action: "insertText",
  797. range: Range.fromPoints(position, end),
  798. text: text
  799. };
  800. this._signal("change", { data: delta });
  801. return end;
  802. };
  803. this.remove = function(range) {
  804. if (!(range instanceof Range))
  805. range = Range.fromPoints(range.start, range.end);
  806. range.start = this.$clipPosition(range.start);
  807. range.end = this.$clipPosition(range.end);
  808. if (range.isEmpty())
  809. return range.start;
  810. var firstRow = range.start.row;
  811. var lastRow = range.end.row;
  812. if (range.isMultiLine()) {
  813. var firstFullRow = range.start.column == 0 ? firstRow : firstRow + 1;
  814. var lastFullRow = lastRow - 1;
  815. if (range.end.column > 0)
  816. this.removeInLine(lastRow, 0, range.end.column);
  817. if (lastFullRow >= firstFullRow)
  818. this._removeLines(firstFullRow, lastFullRow);
  819. if (firstFullRow != firstRow) {
  820. this.removeInLine(firstRow, range.start.column, this.getLine(firstRow).length);
  821. this.removeNewLine(range.start.row);
  822. }
  823. }
  824. else {
  825. this.removeInLine(firstRow, range.start.column, range.end.column);
  826. }
  827. return range.start;
  828. };
  829. this.removeInLine = function(row, startColumn, endColumn) {
  830. if (startColumn == endColumn)
  831. return;
  832. var range = new Range(row, startColumn, row, endColumn);
  833. var line = this.getLine(row);
  834. var removed = line.substring(startColumn, endColumn);
  835. var newLine = line.substring(0, startColumn) + line.substring(endColumn, line.length);
  836. this.$lines.splice(row, 1, newLine);
  837. var delta = {
  838. action: "removeText",
  839. range: range,
  840. text: removed
  841. };
  842. this._signal("change", { data: delta });
  843. return range.start;
  844. };
  845. this.removeLines = function(firstRow, lastRow) {
  846. if (firstRow < 0 || lastRow >= this.getLength())
  847. return this.remove(new Range(firstRow, 0, lastRow + 1, 0));
  848. return this._removeLines(firstRow, lastRow);
  849. };
  850. this._removeLines = function(firstRow, lastRow) {
  851. var range = new Range(firstRow, 0, lastRow + 1, 0);
  852. var removed = this.$lines.splice(firstRow, lastRow - firstRow + 1);
  853. var delta = {
  854. action: "removeLines",
  855. range: range,
  856. nl: this.getNewLineCharacter(),
  857. lines: removed
  858. };
  859. this._signal("change", { data: delta });
  860. return removed;
  861. };
  862. this.removeNewLine = function(row) {
  863. var firstLine = this.getLine(row);
  864. var secondLine = this.getLine(row+1);
  865. var range = new Range(row, firstLine.length, row+1, 0);
  866. var line = firstLine + secondLine;
  867. this.$lines.splice(row, 2, line);
  868. var delta = {
  869. action: "removeText",
  870. range: range,
  871. text: this.getNewLineCharacter()
  872. };
  873. this._signal("change", { data: delta });
  874. };
  875. this.replace = function(range, text) {
  876. if (!(range instanceof Range))
  877. range = Range.fromPoints(range.start, range.end);
  878. if (text.length == 0 && range.isEmpty())
  879. return range.start;
  880. if (text == this.getTextRange(range))
  881. return range.end;
  882. this.remove(range);
  883. if (text) {
  884. var end = this.insert(range.start, text);
  885. }
  886. else {
  887. end = range.start;
  888. }
  889. return end;
  890. };
  891. this.applyDeltas = function(deltas) {
  892. for (var i=0; i<deltas.length; i++) {
  893. var delta = deltas[i];
  894. var range = Range.fromPoints(delta.range.start, delta.range.end);
  895. if (delta.action == "insertLines")
  896. this.insertLines(range.start.row, delta.lines);
  897. else if (delta.action == "insertText")
  898. this.insert(range.start, delta.text);
  899. else if (delta.action == "removeLines")
  900. this._removeLines(range.start.row, range.end.row - 1);
  901. else if (delta.action == "removeText")
  902. this.remove(range);
  903. }
  904. };
  905. this.revertDeltas = function(deltas) {
  906. for (var i=deltas.length-1; i>=0; i--) {
  907. var delta = deltas[i];
  908. var range = Range.fromPoints(delta.range.start, delta.range.end);
  909. if (delta.action == "insertLines")
  910. this._removeLines(range.start.row, range.end.row - 1);
  911. else if (delta.action == "insertText")
  912. this.remove(range);
  913. else if (delta.action == "removeLines")
  914. this._insertLines(range.start.row, delta.lines);
  915. else if (delta.action == "removeText")
  916. this.insert(range.start, delta.text);
  917. }
  918. };
  919. this.indexToPosition = function(index, startRow) {
  920. var lines = this.$lines || this.getAllLines();
  921. var newlineLength = this.getNewLineCharacter().length;
  922. for (var i = startRow || 0, l = lines.length; i < l; i++) {
  923. index -= lines[i].length + newlineLength;
  924. if (index < 0)
  925. return {row: i, column: index + lines[i].length + newlineLength};
  926. }
  927. return {row: l-1, column: lines[l-1].length};
  928. };
  929. this.positionToIndex = function(pos, startRow) {
  930. var lines = this.$lines || this.getAllLines();
  931. var newlineLength = this.getNewLineCharacter().length;
  932. var index = 0;
  933. var row = Math.min(pos.row, lines.length);
  934. for (var i = startRow || 0; i < row; ++i)
  935. index += lines[i].length + newlineLength;
  936. return index + pos.column;
  937. };
  938. }).call(Document.prototype);
  939. exports.Document = Document;
  940. });
  941. ace.define("ace/lib/lang",["require","exports","module"], function(require, exports, module) {
  942. "use strict";
  943. exports.last = function(a) {
  944. return a[a.length - 1];
  945. };
  946. exports.stringReverse = function(string) {
  947. return string.split("").reverse().join("");
  948. };
  949. exports.stringRepeat = function (string, count) {
  950. var result = '';
  951. while (count > 0) {
  952. if (count & 1)
  953. result += string;
  954. if (count >>= 1)
  955. string += string;
  956. }
  957. return result;
  958. };
  959. var trimBeginRegexp = /^\s\s*/;
  960. var trimEndRegexp = /\s\s*$/;
  961. exports.stringTrimLeft = function (string) {
  962. return string.replace(trimBeginRegexp, '');
  963. };
  964. exports.stringTrimRight = function (string) {
  965. return string.replace(trimEndRegexp, '');
  966. };
  967. exports.copyObject = function(obj) {
  968. var copy = {};
  969. for (var key in obj) {
  970. copy[key] = obj[key];
  971. }
  972. return copy;
  973. };
  974. exports.copyArray = function(array){
  975. var copy = [];
  976. for (var i=0, l=array.length; i<l; i++) {
  977. if (array[i] && typeof array[i] == "object")
  978. copy[i] = this.copyObject( array[i] );
  979. else
  980. copy[i] = array[i];
  981. }
  982. return copy;
  983. };
  984. exports.deepCopy = function (obj) {
  985. if (typeof obj !== "object" || !obj)
  986. return obj;
  987. var cons = obj.constructor;
  988. if (cons === RegExp)
  989. return obj;
  990. var copy = cons();
  991. for (var key in obj) {
  992. if (typeof obj[key] === "object") {
  993. copy[key] = exports.deepCopy(obj[key]);
  994. } else {
  995. copy[key] = obj[key];
  996. }
  997. }
  998. return copy;
  999. };
  1000. exports.arrayToMap = function(arr) {
  1001. var map = {};
  1002. for (var i=0; i<arr.length; i++) {
  1003. map[arr[i]] = 1;
  1004. }
  1005. return map;
  1006. };
  1007. exports.createMap = function(props) {
  1008. var map = Object.create(null);
  1009. for (var i in props) {
  1010. map[i] = props[i];
  1011. }
  1012. return map;
  1013. };
  1014. exports.arrayRemove = function(array, value) {
  1015. for (var i = 0; i <= array.length; i++) {
  1016. if (value === array[i]) {
  1017. array.splice(i, 1);
  1018. }
  1019. }
  1020. };
  1021. exports.escapeRegExp = function(str) {
  1022. return str.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1');
  1023. };
  1024. exports.escapeHTML = function(str) {
  1025. return str.replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;");
  1026. };
  1027. exports.getMatchOffsets = function(string, regExp) {
  1028. var matches = [];
  1029. string.replace(regExp, function(str) {
  1030. matches.push({
  1031. offset: arguments[arguments.length-2],
  1032. length: str.length
  1033. });
  1034. });
  1035. return matches;
  1036. };
  1037. exports.deferredCall = function(fcn) {
  1038. var timer = null;
  1039. var callback = function() {
  1040. timer = null;
  1041. fcn();
  1042. };
  1043. var deferred = function(timeout) {
  1044. deferred.cancel();
  1045. timer = setTimeout(callback, timeout || 0);
  1046. return deferred;
  1047. };
  1048. deferred.schedule = deferred;
  1049. deferred.call = function() {
  1050. this.cancel();
  1051. fcn();
  1052. return deferred;
  1053. };
  1054. deferred.cancel = function() {
  1055. clearTimeout(timer);
  1056. timer = null;
  1057. return deferred;
  1058. };
  1059. deferred.isPending = function() {
  1060. return timer;
  1061. };
  1062. return deferred;
  1063. };
  1064. exports.delayedCall = function(fcn, defaultTimeout) {
  1065. var timer = null;
  1066. var callback = function() {
  1067. timer = null;
  1068. fcn();
  1069. };
  1070. var _self = function(timeout) {
  1071. if (timer == null)
  1072. timer = setTimeout(callback, timeout || defaultTimeout);
  1073. };
  1074. _self.delay = function(timeout) {
  1075. timer && clearTimeout(timer);
  1076. timer = setTimeout(callback, timeout || defaultTimeout);
  1077. };
  1078. _self.schedule = _self;
  1079. _self.call = function() {
  1080. this.cancel();
  1081. fcn();
  1082. };
  1083. _self.cancel = function() {
  1084. timer && clearTimeout(timer);
  1085. timer = null;
  1086. };
  1087. _self.isPending = function() {
  1088. return timer;
  1089. };
  1090. return _self;
  1091. };
  1092. });
  1093. ace.define("ace/worker/mirror",["require","exports","module","ace/document","ace/lib/lang"], function(require, exports, module) {
  1094. "use strict";
  1095. var Document = require("../document").Document;
  1096. var lang = require("../lib/lang");
  1097. var Mirror = exports.Mirror = function(sender) {
  1098. this.sender = sender;
  1099. var doc = this.doc = new Document("");
  1100. var deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this));
  1101. var _self = this;
  1102. sender.on("change", function(e) {
  1103. doc.applyDeltas(e.data);
  1104. if (_self.$timeout)
  1105. return deferredUpdate.schedule(_self.$timeout);
  1106. _self.onUpdate();
  1107. });
  1108. };
  1109. (function() {
  1110. this.$timeout = 500;
  1111. this.setTimeout = function(timeout) {
  1112. this.$timeout = timeout;
  1113. };
  1114. this.setValue = function(value) {
  1115. this.doc.setValue(value);
  1116. this.deferredUpdate.schedule(this.$timeout);
  1117. };
  1118. this.getValue = function(callbackId) {
  1119. this.sender.callback(this.doc.getValue(), callbackId);
  1120. };
  1121. this.onUpdate = function() {
  1122. };
  1123. this.isPending = function() {
  1124. return this.deferredUpdate.isPending();
  1125. };
  1126. }).call(Mirror.prototype);
  1127. });
  1128. ace.define("ace/mode/php/php",["require","exports","module"], function(require, exports, module) {
  1129. var PHP = {Constants:{}};
  1130. PHP.Constants.T_INCLUDE = 262;
  1131. PHP.Constants.T_INCLUDE_ONCE = 261;
  1132. PHP.Constants.T_EVAL = 260;
  1133. PHP.Constants.T_REQUIRE = 259;
  1134. PHP.Constants.T_REQUIRE_ONCE = 258;
  1135. PHP.Constants.T_LOGICAL_OR = 263;
  1136. PHP.Constants.T_LOGICAL_XOR = 264;
  1137. PHP.Constants.T_LOGICAL_AND = 265;
  1138. PHP.Constants.T_PRINT = 266;
  1139. PHP.Constants.T_PLUS_EQUAL = 277;
  1140. PHP.Constants.T_MINUS_EQUAL = 276;
  1141. PHP.Constants.T_MUL_EQUAL = 275;
  1142. PHP.Constants.T_DIV_EQUAL = 274;
  1143. PHP.Constants.T_CONCAT_EQUAL = 273;
  1144. PHP.Constants.T_MOD_EQUAL = 272;
  1145. PHP.Constants.T_AND_EQUAL = 271;
  1146. PHP.Constants.T_OR_EQUAL = 270;
  1147. PHP.Constants.T_XOR_EQUAL = 269;
  1148. PHP.Constants.T_SL_EQUAL = 268;
  1149. PHP.Constants.T_SR_EQUAL = 267;
  1150. PHP.Constants.T_BOOLEAN_OR = 278;
  1151. PHP.Constants.T_BOOLEAN_AND = 279;
  1152. PHP.Constants.T_IS_EQUAL = 283;
  1153. PHP.Constants.T_IS_NOT_EQUAL = 282;
  1154. PHP.Constants.T_IS_IDENTICAL = 281;
  1155. PHP.Constants.T_IS_NOT_IDENTICAL = 280;
  1156. PHP.Constants.T_IS_SMALLER_OR_EQUAL = 285;
  1157. PHP.Constants.T_IS_GREATER_OR_EQUAL = 284;
  1158. PHP.Constants.T_SL = 287;
  1159. PHP.Constants.T_SR = 286;
  1160. PHP.Constants.T_INSTANCEOF = 288;
  1161. PHP.Constants.T_INC = 297;
  1162. PHP.Constants.T_DEC = 296;
  1163. PHP.Constants.T_INT_CAST = 295;
  1164. PHP.Constants.T_DOUBLE_CAST = 294;
  1165. PHP.Constants.T_STRING_CAST = 293;
  1166. PHP.Constants.T_ARRAY_CAST = 292;
  1167. PHP.Constants.T_OBJECT_CAST = 291;
  1168. PHP.Constants.T_BOOL_CAST = 290;
  1169. PHP.Constants.T_UNSET_CAST = 289;
  1170. PHP.Constants.T_NEW = 299;
  1171. PHP.Constants.T_CLONE = 298;
  1172. PHP.Constants.T_EXIT = 300;
  1173. PHP.Constants.T_IF = 301;
  1174. PHP.Constants.T_ELSEIF = 302;
  1175. PHP.Constants.T_ELSE = 303;
  1176. PHP.Constants.T_ENDIF = 304;
  1177. PHP.Constants.T_LNUMBER = 305;
  1178. PHP.Constants.T_DNUMBER = 306;
  1179. PHP.Constants.T_STRING = 307;
  1180. PHP.Constants.T_STRING_VARNAME = 308;
  1181. PHP.Constants.T_VARIABLE = 309;
  1182. PHP.Constants.T_NUM_STRING = 310;
  1183. PHP.Constants.T_INLINE_HTML = 311;
  1184. PHP.Constants.T_CHARACTER = 312;
  1185. PHP.Constants.T_BAD_CHARACTER = 313;
  1186. PHP.Constants.T_ENCAPSED_AND_WHITESPACE = 314;
  1187. PHP.Constants.T_CONSTANT_ENCAPSED_STRING = 315;
  1188. PHP.Constants.T_ECHO = 316;
  1189. PHP.Constants.T_DO = 317;
  1190. PHP.Constants.T_WHILE = 318;
  1191. PHP.Constants.T_ENDWHILE = 319;
  1192. PHP.Constants.T_FOR = 320;
  1193. PHP.Constants.T_ENDFOR = 321;
  1194. PHP.Constants.T_FOREACH = 322;
  1195. PHP.Constants.T_ENDFOREACH = 323;
  1196. PHP.Constants.T_DECLARE = 324;
  1197. PHP.Constants.T_ENDDECLARE = 325;
  1198. PHP.Constants.T_AS = 326;
  1199. PHP.Constants.T_SWITCH = 327;
  1200. PHP.Constants.T_ENDSWITCH = 328;
  1201. PHP.Constants.T_CASE = 329;
  1202. PHP.Constants.T_DEFAULT = 330;
  1203. PHP.Constants.T_BREAK = 331;
  1204. PHP.Constants.T_CONTINUE = 332;
  1205. PHP.Constants.T_GOTO = 333;
  1206. PHP.Constants.T_FUNCTION = 334;
  1207. PHP.Constants.T_CONST = 335;
  1208. PHP.Constants.T_RETURN = 336;
  1209. PHP.Constants.T_TRY = 337;
  1210. PHP.Constants.T_CATCH = 338;
  1211. PHP.Constants.T_THROW = 339;
  1212. PHP.Constants.T_USE = 340;
  1213. PHP.Constants.T_GLOBAL = 341;
  1214. PHP.Constants.T_STATIC = 347;
  1215. PHP.Constants.T_ABSTRACT = 346;
  1216. PHP.Constants.T_FINAL = 345;
  1217. PHP.Constants.T_PRIVATE = 344;
  1218. PHP.Constants.T_PROTECTED = 343;
  1219. PHP.Constants.T_PUBLIC = 342;
  1220. PHP.Constants.T_VAR = 348;
  1221. PHP.Constants.T_UNSET = 349;
  1222. PHP.Constants.T_ISSET = 350;
  1223. PHP.Constants.T_EMPTY = 351;
  1224. PHP.Constants.T_HALT_COMPILER = 352;
  1225. PHP.Constants.T_CLASS = 353;
  1226. PHP.Constants.T_TRAIT = 382;
  1227. PHP.Constants.T_INTERFACE = 354;
  1228. PHP.Constants.T_EXTENDS = 355;
  1229. PHP.Constants.T_IMPLEMENTS = 356;
  1230. PHP.Constants.T_OBJECT_OPERATOR = 357;
  1231. PHP.Constants.T_DOUBLE_ARROW = 358;
  1232. PHP.Constants.T_LIST = 359;
  1233. PHP.Constants.T_ARRAY = 360;
  1234. PHP.Constants.T_CLASS_C = 361;
  1235. PHP.Constants.T_TRAIT_C = 381;
  1236. PHP.Constants.T_METHOD_C = 362;
  1237. PHP.Constants.T_FUNC_C = 363;
  1238. PHP.Constants.T_LINE = 364;
  1239. PHP.Constants.T_FILE = 365;
  1240. PHP.Constants.T_COMMENT = 366;
  1241. PHP.Constants.T_DOC_COMMENT = 367;
  1242. PHP.Constants.T_OPEN_TAG = 368;
  1243. PHP.Constants.T_OPEN_TAG_WITH_ECHO = 369;
  1244. PHP.Constants.T_CLOSE_TAG = 370;
  1245. PHP.Constants.T_WHITESPACE = 371;
  1246. PHP.Constants.T_START_HEREDOC = 372;
  1247. PHP.Constants.T_END_HEREDOC = 373;
  1248. PHP.Constants.T_DOLLAR_OPEN_CURLY_BRACES = 374;
  1249. PHP.Constants.T_CURLY_OPEN = 375;
  1250. PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM = 376;
  1251. PHP.Constants.T_DOUBLE_COLON = 376;
  1252. PHP.Constants.T_NAMESPACE = 377;
  1253. PHP.Constants.T_NS_C = 378;
  1254. PHP.Constants.T_DIR = 379;
  1255. PHP.Constants.T_NS_SEPARATOR = 380;
  1256. PHP.Lexer = function( src, ini ) {
  1257. var heredoc,
  1258. lineBreaker = function( result ) {
  1259. if (result.match(/\n/) !== null) {
  1260. var quote = result.substring(0, 1);
  1261. result = '[' + result.split(/\n/).join( quote + "," + quote ) + '].join("\\n")';
  1262. }
  1263. return result;
  1264. },
  1265. prev,
  1266. openTag = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag) ) ? /(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
  1267. openTagStart = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag)) ? /^(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /^(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
  1268. tokens = [
  1269. {
  1270. value: PHP.Constants.T_NAMESPACE,
  1271. re: /^namespace(?=\s)/i
  1272. },
  1273. {
  1274. value: PHP.Constants.T_USE,
  1275. re: /^use(?=\s)/i
  1276. },
  1277. {
  1278. value: PHP.Constants.T_ABSTRACT,
  1279. re: /^abstract(?=\s)/i
  1280. },
  1281. {
  1282. value: PHP.Constants.T_IMPLEMENTS,
  1283. re: /^implements(?=\s)/i
  1284. },
  1285. {
  1286. value: PHP.Constants.T_INTERFACE,
  1287. re: /^interface(?=\s)/i
  1288. },
  1289. {
  1290. value: PHP.Constants.T_CONST,
  1291. re: /^const(?=\s)/i
  1292. },
  1293. {
  1294. value: PHP.Constants.T_STATIC,
  1295. re: /^static(?=\s)/i
  1296. },
  1297. {
  1298. value: PHP.Constants.T_FINAL,
  1299. re: /^final(?=\s)/i
  1300. },
  1301. {
  1302. value: PHP.Constants.T_VAR,
  1303. re: /^var(?=\s)/i
  1304. },
  1305. {
  1306. value: PHP.Constants.T_GLOBAL,
  1307. re: /^global(?=\s)/i
  1308. },
  1309. {
  1310. value: PHP.Constants.T_CLONE,
  1311. re: /^clone(?=\s)/i
  1312. },
  1313. {
  1314. value: PHP.Constants.T_THROW,
  1315. re: /^throw(?=\s)/i
  1316. },
  1317. {
  1318. value: PHP.Constants.T_EXTENDS,
  1319. re: /^extends(?=\s)/i
  1320. },
  1321. {
  1322. value: PHP.Constants.T_AND_EQUAL,
  1323. re: /^&=/
  1324. },
  1325. {
  1326. value: PHP.Constants.T_AS,
  1327. re: /^as(?=\s)/i
  1328. },
  1329. {
  1330. value: PHP.Constants.T_ARRAY_CAST,
  1331. re: /^\(array\)/i
  1332. },
  1333. {
  1334. value: PHP.Constants.T_BOOL_CAST,
  1335. re: /^\((bool|boolean)\)/i
  1336. },
  1337. {
  1338. value: PHP.Constants.T_DOUBLE_CAST,
  1339. re: /^\((real|float|double)\)/i
  1340. },
  1341. {
  1342. value: PHP.Constants.T_INT_CAST,
  1343. re: /^\((int|integer)\)/i
  1344. },
  1345. {
  1346. value: PHP.Constants.T_OBJECT_CAST,
  1347. re: /^\(object\)/i
  1348. },
  1349. {
  1350. value: PHP.Constants.T_STRING_CAST,
  1351. re: /^\(string\)/i
  1352. },
  1353. {
  1354. value: PHP.Constants.T_UNSET_CAST,
  1355. re: /^\(unset\)/i
  1356. },
  1357. {
  1358. value: PHP.Constants.T_TRY,
  1359. re: /^try(?=\s*{)/i
  1360. },
  1361. {
  1362. value: PHP.Constants.T_CATCH,
  1363. re: /^catch(?=\s*\()/i
  1364. },
  1365. {
  1366. value: PHP.Constants.T_INSTANCEOF,
  1367. re: /^instanceof(?=\s)/i
  1368. },
  1369. {
  1370. value: PHP.Constants.T_LOGICAL_OR,
  1371. re: /^or(?=\s)/i
  1372. },
  1373. {
  1374. value: PHP.Constants.T_LOGICAL_AND,
  1375. re: /^and(?=\s)/i
  1376. },
  1377. {
  1378. value: PHP.Constants.T_LOGICAL_XOR,
  1379. re: /^xor(?=\s)/i
  1380. },
  1381. {
  1382. value: PHP.Constants.T_BOOLEAN_AND,
  1383. re: /^&&/
  1384. },
  1385. {
  1386. value: PHP.Constants.T_BOOLEAN_OR,
  1387. re: /^\|\|/
  1388. },
  1389. {
  1390. value: PHP.Constants.T_CONTINUE,
  1391. re: /^continue(?=\s|;)/i
  1392. },
  1393. {
  1394. value: PHP.Constants.T_BREAK,
  1395. re: /^break(?=\s|;)/i
  1396. },
  1397. {
  1398. value: PHP.Constants.T_ENDDECLARE,
  1399. re: /^enddeclare(?=\s|;)/i
  1400. },
  1401. {
  1402. value: PHP.Constants.T_ENDFOR,
  1403. re: /^endfor(?=\s|;)/i
  1404. },
  1405. {
  1406. value: PHP.Constants.T_ENDFOREACH,
  1407. re: /^endforeach(?=\s|;)/i
  1408. },
  1409. {
  1410. value: PHP.Constants.T_ENDIF,
  1411. re: /^endif(?=\s|;)/i
  1412. },
  1413. {
  1414. value: PHP.Constants.T_ENDSWITCH,
  1415. re: /^endswitch(?=\s|;)/i
  1416. },
  1417. {
  1418. value: PHP.Constants.T_ENDWHILE,
  1419. re: /^endwhile(?=\s|;)/i
  1420. },
  1421. {
  1422. value: PHP.Constants.T_CASE,
  1423. re: /^case(?=\s)/i
  1424. },
  1425. {
  1426. value: PHP.Constants.T_DEFAULT,
  1427. re: /^default(?=\s|:)/i
  1428. },
  1429. {
  1430. value: PHP.Constants.T_SWITCH,
  1431. re: /^switch(?=[ (])/i
  1432. },
  1433. {
  1434. value: PHP.Constants.T_EXIT,
  1435. re: /^(exit|die)(?=[ \(;])/i
  1436. },
  1437. {
  1438. value: PHP.Constants.T_CLOSE_TAG,
  1439. re: /^(\?\>|\%\>|\<\/script\>)\s?\s?/i,
  1440. func: function( result ) {
  1441. insidePHP = false;
  1442. return result;
  1443. }
  1444. },
  1445. {
  1446. value: PHP.Constants.T_DOUBLE_ARROW,
  1447. re: /^\=\>/
  1448. },
  1449. {
  1450. value: PHP.Constants.T_DOUBLE_COLON,
  1451. re: /^\:\:/
  1452. },
  1453. {
  1454. value: PHP.Constants.T_METHOD_C,
  1455. re: /^__METHOD__/
  1456. },
  1457. {
  1458. value: PHP.Constants.T_LINE,
  1459. re: /^__LINE__/
  1460. },
  1461. {
  1462. value: PHP.Constants.T_FILE,
  1463. re: /^__FILE__/
  1464. },
  1465. {
  1466. value: PHP.Constants.T_FUNC_C,
  1467. re: /^__FUNCTION__/
  1468. },
  1469. {
  1470. value: PHP.Constants.T_NS_C,
  1471. re: /^__NAMESPACE__/
  1472. },
  1473. {
  1474. value: PHP.Constants.T_TRAIT_C,
  1475. re: /^__TRAIT__/
  1476. },
  1477. {
  1478. value: PHP.Constants.T_DIR,
  1479. re: /^__DIR__/
  1480. },
  1481. {
  1482. value: PHP.Constants.T_CLASS_C,
  1483. re: /^__CLASS__/
  1484. },
  1485. {
  1486. value: PHP.Constants.T_INC,
  1487. re: /^\+\+/
  1488. },
  1489. {
  1490. value: PHP.Constants.T_DEC,
  1491. re: /^\-\-/
  1492. },
  1493. {
  1494. value: PHP.Constants.T_CONCAT_EQUAL,
  1495. re: /^\.\=/
  1496. },
  1497. {
  1498. value: PHP.Constants.T_DIV_EQUAL,
  1499. re: /^\/\=/
  1500. },
  1501. {
  1502. value: PHP.Constants.T_XOR_EQUAL,
  1503. re: /^\^\=/
  1504. },
  1505. {
  1506. value: PHP.Constants.T_MUL_EQUAL,
  1507. re: /^\*\=/
  1508. },
  1509. {
  1510. value: PHP.Constants.T_MOD_EQUAL,
  1511. re: /^\%\=/
  1512. },
  1513. {
  1514. value: PHP.Constants.T_SL_EQUAL,
  1515. re: /^<<=/
  1516. },
  1517. {
  1518. value: PHP.Constants.T_START_HEREDOC,
  1519. re: /^<<<[A-Z_0-9]+\s/i,
  1520. func: function( result ){
  1521. heredoc = result.substring(3, result.length - 1);
  1522. return result;
  1523. }
  1524. },
  1525. {
  1526. value: PHP.Constants.T_SL,
  1527. re: /^<</
  1528. },
  1529. {
  1530. value: PHP.Constants.T_IS_SMALLER_OR_EQUAL,
  1531. re: /^<=/
  1532. },
  1533. {
  1534. value: PHP.Constants.T_SR_EQUAL,
  1535. re: /^>>=/
  1536. },
  1537. {
  1538. value: PHP.Constants.T_SR,
  1539. re: /^>>/
  1540. },
  1541. {
  1542. value: PHP.Constants.T_IS_GREATER_OR_EQUAL,
  1543. re: /^>=/
  1544. },
  1545. {
  1546. value: PHP.Constants.T_OR_EQUAL,
  1547. re: /^\|\=/
  1548. },
  1549. {
  1550. value: PHP.Constants.T_PLUS_EQUAL,
  1551. re: /^\+\=/
  1552. },
  1553. {
  1554. value: PHP.Constants.T_MINUS_EQUAL,
  1555. re: /^-\=/
  1556. },
  1557. {
  1558. value: PHP.Constants.T_OBJECT_OPERATOR,
  1559. re: /^\-\>/i
  1560. },
  1561. {
  1562. value: PHP.Constants.T_CLASS,
  1563. re: /^class(?=[\s\{])/i,
  1564. afterWhitespace: true
  1565. },
  1566. {
  1567. value: PHP.Constants.T_TRAIT,
  1568. re: /^trait(?=[\s]+[A-Za-z])/i,
  1569. },
  1570. {
  1571. value: PHP.Constants.T_PUBLIC,
  1572. re: /^public(?=[\s])/i
  1573. },
  1574. {
  1575. value: PHP.Constants.T_PRIVATE,
  1576. re: /^private(?=[\s])/i
  1577. },
  1578. {
  1579. value: PHP.Constants.T_PROTECTED,
  1580. re: /^protected(?=[\s])/i
  1581. },
  1582. {
  1583. value: PHP.Constants.T_ARRAY,
  1584. re: /^array(?=\s*?\()/i
  1585. },
  1586. {
  1587. value: PHP.Constants.T_EMPTY,
  1588. re: /^empty(?=[ \(])/i
  1589. },
  1590. {
  1591. value: PHP.Constants.T_ISSET,
  1592. re: /^isset(?=[ \(])/i
  1593. },
  1594. {
  1595. value: PHP.Constants.T_UNSET,
  1596. re: /^unset(?=[ \(])/i
  1597. },
  1598. {
  1599. value: PHP.Constants.T_RETURN,
  1600. re: /^return(?=[ "'(;])/i
  1601. },
  1602. {
  1603. value: PHP.Constants.T_FUNCTION,
  1604. re: /^function(?=[ "'(;])/i
  1605. },
  1606. {
  1607. value: PHP.Constants.T_ECHO,
  1608. re: /^echo(?=[ "'(;])/i
  1609. },
  1610. {
  1611. value: PHP.Constants.T_LIST,
  1612. re: /^list(?=\s*?\()/i
  1613. },
  1614. {
  1615. value: PHP.Constants.T_PRINT,
  1616. re: /^print(?=[ "'(;])/i
  1617. },
  1618. {
  1619. value: PHP.Constants.T_INCLUDE,
  1620. re: /^include(?=[ "'(;])/i
  1621. },
  1622. {
  1623. value: PHP.Constants.T_INCLUDE_ONCE,
  1624. re: /^include_once(?=[ "'(;])/i
  1625. },
  1626. {
  1627. value: PHP.Constants.T_REQUIRE,
  1628. re: /^require(?=[ "'(;])/i
  1629. },
  1630. {
  1631. value: PHP.Constants.T_REQUIRE_ONCE,
  1632. re: /^require_once(?=[ "'(;])/i
  1633. },
  1634. {
  1635. value: PHP.Constants.T_NEW,
  1636. re: /^new(?=[ ])/i
  1637. },
  1638. {
  1639. value: PHP.Constants.T_COMMENT,
  1640. re: /^\/\*([\S\s]*?)(?:\*\/|$)/
  1641. },
  1642. {
  1643. value: PHP.Constants.T_COMMENT,
  1644. re: /^\/\/.*(\s)?/
  1645. },
  1646. {
  1647. value: PHP.Constants.T_COMMENT,
  1648. re: /^\#.*(\s)?/
  1649. },
  1650. {
  1651. value: PHP.Constants.T_ELSEIF,
  1652. re: /^elseif(?=[\s(])/i
  1653. },
  1654. {
  1655. value: PHP.Constants.T_GOTO,
  1656. re: /^goto(?=[\s(])/i
  1657. },
  1658. {
  1659. value: PHP.Constants.T_ELSE,
  1660. re: /^else(?=[\s{:])/i
  1661. },
  1662. {
  1663. value: PHP.Constants.T_IF,
  1664. re: /^if(?=[\s(])/i
  1665. },
  1666. {
  1667. value: PHP.Constants.T_DO,
  1668. re: /^do(?=[ {])/i
  1669. },
  1670. {
  1671. value: PHP.Constants.T_WHILE,
  1672. re: /^while(?=[ (])/i
  1673. },
  1674. {
  1675. value: PHP.Constants.T_FOREACH,
  1676. re: /^foreach(?=[ (])/i
  1677. },
  1678. {
  1679. value: PHP.Constants.T_ISSET,
  1680. re: /^isset(?=[ (])/i
  1681. },
  1682. {
  1683. value: PHP.Constants.T_IS_IDENTICAL,
  1684. re: /^===/
  1685. },
  1686. {
  1687. value: PHP.Constants.T_IS_EQUAL,
  1688. re: /^==/
  1689. },
  1690. {
  1691. value: PHP.Constants.T_IS_NOT_IDENTICAL,
  1692. re: /^\!==/
  1693. },
  1694. {
  1695. value: PHP.Constants.T_IS_NOT_EQUAL,
  1696. re: /^(\!=|\<\>)/
  1697. },
  1698. {
  1699. value: PHP.Constants.T_FOR,
  1700. re: /^for(?=[ (])/i
  1701. },
  1702. {
  1703. value: PHP.Constants.T_DNUMBER,
  1704. re: /^[0-9]*\.[0-9]+([eE][-]?[0-9]*)?/
  1705. },
  1706. {
  1707. value: PHP.Constants.T_LNUMBER,
  1708. re: /^(0x[0-9A-F]+|[0-9]+)/i
  1709. },
  1710. {
  1711. value: PHP.Constants.T_OPEN_TAG_WITH_ECHO,
  1712. re: /^(\<\?=|\<\%=)/i
  1713. },
  1714. {
  1715. value: PHP.Constants.T_OPEN_TAG,
  1716. re: openTagStart
  1717. },
  1718. {
  1719. value: PHP.Constants.T_VARIABLE,
  1720. re: /^\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/
  1721. },
  1722. {
  1723. value: PHP.Constants.T_WHITESPACE,
  1724. re: /^\s+/
  1725. },
  1726. {
  1727. value: PHP.Constants.T_CONSTANT_ENCAPSED_STRING,
  1728. re: /^("(?:[^"\\]|\\[\s\S])*"|'(?:[^'\\]|\\[\s\S])*')/,
  1729. func: function( result, token ) {
  1730. var curlyOpen = 0,
  1731. len,
  1732. bracketOpen = 0;
  1733. if (result.substring( 0,1 ) === "'") {
  1734. return result;
  1735. }
  1736. var match = result.match( /(?:[^\\]|\\.)*[^\\]\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/g );
  1737. if ( match !== null ) {
  1738. while( result.length > 0 ) {
  1739. len = result.length;
  1740. match = result.match( /^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\@\^\%\"\'\{\}]/ );
  1741. if ( match !== null ) {
  1742. results.push( match[ 0 ] );
  1743. result = result.substring( 1 );
  1744. if ( curlyOpen > 0 && match[ 0 ] === "}") {
  1745. curlyOpen--;
  1746. }
  1747. if ( match[ 0 ] === "[" ) {
  1748. bracketOpen++;
  1749. }
  1750. if ( match[ 0 ] === "]" ) {
  1751. bracketOpen--;
  1752. }
  1753. }
  1754. match = result.match(/^\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/);
  1755. if ( match !== null ) {
  1756. results.push([
  1757. parseInt(PHP.Constants.T_VARIABLE, 10),
  1758. match[ 0 ],
  1759. line
  1760. ]);
  1761. result = result.substring( match[ 0 ].length );
  1762. match = result.match(/^(\-\>)\s*([a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*)\s*(\()/);
  1763. if ( match !== null ) {
  1764. results.push([
  1765. parseInt(PHP.Constants.T_OBJECT_OPERATOR, 10),
  1766. match[ 1 ],
  1767. line
  1768. ]);
  1769. results.push([
  1770. parseInt(PHP.Constants.T_STRING, 10),
  1771. match[ 2 ],
  1772. line
  1773. ]);
  1774. if (match[3]) {
  1775. results.push(match[3]);
  1776. }
  1777. result = result.substring( match[ 0 ].length );
  1778. }
  1779. if ( result.match( /^\[/g ) !== null ) {
  1780. continue;
  1781. }
  1782. }
  1783. var re;
  1784. if ( curlyOpen > 0) {
  1785. re = /^([^\\\$"{}\]\(\)\->]|\\.)+/g;
  1786. } else {
  1787. re = /^([^\\\$"{]|\\.|{[^\$]|\$(?=[^a-zA-Z_\x7f-\uffff]))+/g;;
  1788. }
  1789. var type, match2;
  1790. while(( match = result.match( re )) !== null ) {
  1791. if (result.length === 1) {
  1792. throw new Error(match);
  1793. }
  1794. type = 0;
  1795. if( curlyOpen > 0 ){
  1796. if( match2 = match[0].match(/^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\{\}\@\^\%\$\~]/) ){
  1797. results.push(match2[0]);
  1798. }else{
  1799. type = PHP.Constants.T_STRING;
  1800. }
  1801. }else{
  1802. type = PHP.Constants.T_ENCAPSED_AND_WHITESPACE;
  1803. }
  1804. if( type ){
  1805. results.push([
  1806. parseInt(type, 10),
  1807. match[ 0 ].replace(/\n/g,"\\n").replace(/\r/g,""),
  1808. line
  1809. ]);
  1810. }
  1811. line += match[ 0 ].split('\n').length - 1;
  1812. result = result.substring( match[ 0 ].length );
  1813. }
  1814. if( curlyOpen > 0 && result.match(/^\->/) !== null ) {
  1815. results.push([
  1816. parseInt(PHP.Constants.T_OBJECT_OPERATOR, 10),
  1817. '->',
  1818. line
  1819. ]);
  1820. result = result.substring( 2 );
  1821. }
  1822. if( result.match(/^{\$/) !== null ) {
  1823. results.push([
  1824. parseInt(PHP.Constants.T_CURLY_OPEN, 10),
  1825. "{",
  1826. line
  1827. ]);
  1828. result = result.substring( 1 );
  1829. curlyOpen++;
  1830. }
  1831. if (len === result.length) {
  1832. if ((match = result.match( /^(([^\\]|\\.)*?[^\\]\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*)/g )) !== null) {
  1833. return;
  1834. }
  1835. }
  1836. }
  1837. return undefined;
  1838. } else {
  1839. result = result.replace(/\r/g,"");
  1840. }
  1841. return result;
  1842. }
  1843. },
  1844. {
  1845. value: PHP.Constants.T_NS_SEPARATOR,
  1846. re: /^\\(?=[a-zA-Z_])/
  1847. },
  1848. {
  1849. value: PHP.Constants.T_STRING,
  1850. re: /^[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/
  1851. },
  1852. {
  1853. value: -1,
  1854. re: /^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\{\}\@\^\%\"\'\$\~]/
  1855. }];
  1856. var results = [],
  1857. line = 1,
  1858. insidePHP = false,
  1859. cancel = true;
  1860. if ( src === null ) {
  1861. return results;
  1862. }
  1863. if ( typeof src !== "string" ) {
  1864. src = src.toString();
  1865. }
  1866. while (src.length > 0 && cancel === true) {
  1867. if ( insidePHP === true ) {
  1868. if ( heredoc !== undefined ) {
  1869. var regexp = new RegExp('([\\S\\s]*?)(\\r\\n|\\n|\\r)(' + heredoc + ')(;|\\r\\n|\\n)',"i");
  1870. var result = src.match( regexp );
  1871. if ( result !== null ) {
  1872. results.push([
  1873. parseInt(PHP.Constants.T_ENCAPSED_AND_WHITESPACE, 10),
  1874. result[ 1 ].replace(/^\n/g,"").replace(/\\\$/g,"$") + "\n",
  1875. line
  1876. ]);
  1877. line += result[ 1 ].split('\n').length;
  1878. results.push([
  1879. parseInt(PHP.Constants.T_END_HEREDOC, 10),
  1880. result[ 3 ],
  1881. line
  1882. ]);
  1883. src = src.substring( result[1].length + result[2].length + result[3].length );
  1884. heredoc = undefined;
  1885. }
  1886. if (result === null) {
  1887. throw Error("sup");
  1888. }
  1889. } else {
  1890. cancel = tokens.some(function( token ){
  1891. if ( token.afterWhitespace === true ) {
  1892. var last = results[ results.length - 1 ];
  1893. if ( !Array.isArray( last ) || (last[ 0 ] !== PHP.Constants.T_WHITESPACE && last[ 0 ] !== PHP.Constants.T_OPEN_TAG && last[ 0 ] !== PHP.Constants.T_COMMENT)) {
  1894. return false;
  1895. }
  1896. }
  1897. var result = src.match( token.re );
  1898. if ( result !== null ) {
  1899. if ( token.value !== -1) {
  1900. var resultString = result[ 0 ];
  1901. if (token.func !== undefined ) {
  1902. resultString = token.func( resultString, token );
  1903. }
  1904. if (resultString !== undefined ) {
  1905. results.push([
  1906. parseInt(token.value, 10),
  1907. resultString,
  1908. line
  1909. ]);
  1910. line += resultString.split('\n').length - 1;
  1911. }
  1912. } else {
  1913. results.push( result[ 0 ] );
  1914. }
  1915. src = src.substring(result[ 0 ].length);
  1916. return true;
  1917. }
  1918. return false;
  1919. });
  1920. }
  1921. } else {
  1922. var result = openTag.exec( src );
  1923. if ( result !== null ) {
  1924. if ( result.index > 0 ) {
  1925. var resultString = src.substring(0, result.index);
  1926. results.push ([
  1927. parseInt(PHP.Constants.T_INLINE_HTML, 10),
  1928. resultString,
  1929. line
  1930. ]);
  1931. line += resultString.split('\n').length - 1;
  1932. src = src.substring( result.index );
  1933. }
  1934. insidePHP = true;
  1935. } else {
  1936. results.push ([
  1937. parseInt(PHP.Constants.T_INLINE_HTML, 10),
  1938. src.replace(/^\n/, ""),
  1939. line
  1940. ]);
  1941. return results;
  1942. }
  1943. }
  1944. }
  1945. return results;
  1946. };
  1947. PHP.Parser = function ( preprocessedTokens, eval ) {
  1948. var yybase = this.yybase,
  1949. yydefault = this.yydefault,
  1950. yycheck = this.yycheck,
  1951. yyaction = this.yyaction,
  1952. yylen = this.yylen,
  1953. yygbase = this.yygbase,
  1954. yygcheck = this.yygcheck,
  1955. yyp = this.yyp,
  1956. yygoto = this.yygoto,
  1957. yylhs = this.yylhs,
  1958. terminals = this.terminals,
  1959. translate = this.translate,
  1960. yygdefault = this.yygdefault;
  1961. this.pos = -1;
  1962. this.line = 1;
  1963. this.tokenMap = this.createTokenMap( );
  1964. this.dropTokens = {};
  1965. this.dropTokens[ PHP.Constants.T_WHITESPACE ] = 1;
  1966. this.dropTokens[ PHP.Constants.T_OPEN_TAG ] = 1;
  1967. var tokens = [];
  1968. preprocessedTokens.forEach( function( token, index ) {
  1969. if ( typeof token === "object" && token[ 0 ] === PHP.Constants.T_OPEN_TAG_WITH_ECHO) {
  1970. tokens.push([
  1971. PHP.Constants.T_OPEN_TAG,
  1972. token[ 1 ],
  1973. token[ 2 ]
  1974. ]);
  1975. tokens.push([
  1976. PHP.Constants.T_ECHO,
  1977. token[ 1 ],
  1978. token[ 2 ]
  1979. ]);
  1980. } else {
  1981. tokens.push( token );
  1982. }
  1983. });
  1984. this.tokens = tokens;
  1985. var tokenId = this.TOKEN_NONE;
  1986. this.startAttributes = {
  1987. 'startLine': 1
  1988. };
  1989. this.endAttributes = {};
  1990. var attributeStack = [ this.startAttributes ];
  1991. var state = 0;
  1992. var stateStack = [ state ];
  1993. this.yyastk = [];
  1994. this.stackPos = 0;
  1995. var yyn;
  1996. var origTokenId;
  1997. for (;;) {
  1998. if ( yybase[ state ] === 0 ) {
  1999. yyn = yydefault[ state ];
  2000. } else {
  2001. if (tokenId === this.TOKEN_NONE ) {
  2002. origTokenId = this.getNextToken( );
  2003. tokenId = (origTokenId >= 0 && origTokenId < this.TOKEN_MAP_SIZE) ? translate[ origTokenId ] : this.TOKEN_INVALID;
  2004. attributeStack[ this.stackPos ] = this.startAttributes;
  2005. }
  2006. if (((yyn = yybase[ state ] + tokenId) >= 0
  2007. && yyn < this.YYLAST && yycheck[ yyn ] === tokenId
  2008. || (state < this.YY2TBLSTATE
  2009. && (yyn = yybase[state + this.YYNLSTATES] + tokenId) >= 0
  2010. && yyn < this.YYLAST
  2011. && yycheck[ yyn ] === tokenId))
  2012. && (yyn = yyaction[ yyn ]) !== this.YYDEFAULT ) {
  2013. if (yyn > 0) {
  2014. ++this.stackPos;
  2015. stateStack[ this.stackPos ] = state = yyn;
  2016. this.yyastk[ this.stackPos ] = this.tokenValue;
  2017. attributeStack[ this.stackPos ] = this.startAttributes;
  2018. tokenId = this.TOKEN_NONE;
  2019. if (yyn < this.YYNLSTATES)
  2020. continue;
  2021. yyn -= this.YYNLSTATES;
  2022. } else {
  2023. yyn = -yyn;
  2024. }
  2025. } else {
  2026. yyn = yydefault[ state ];
  2027. }
  2028. }
  2029. for (;;) {
  2030. if ( yyn === 0 ) {
  2031. return this.yyval;
  2032. } else if (yyn !== this.YYUNEXPECTED ) {
  2033. for (var attr in this.endAttributes) {
  2034. attributeStack[ this.stackPos - yylen[ yyn ] ][ attr ] = this.endAttributes[ attr ];
  2035. }
  2036. try {
  2037. this['yyn' + yyn](attributeStack[ this.stackPos - yylen[ yyn ] ]);
  2038. } catch (e) {
  2039. throw e;
  2040. }
  2041. this.stackPos -= yylen[ yyn ];
  2042. yyn = yylhs[ yyn ];
  2043. if ((yyp = yygbase[ yyn ] + stateStack[ this.stackPos ]) >= 0
  2044. && yyp < this.YYGLAST
  2045. && yygcheck[ yyp ] === yyn) {
  2046. state = yygoto[ yyp ];
  2047. } else {
  2048. state = yygdefault[ yyn ];
  2049. }
  2050. ++this.stackPos;
  2051. stateStack[ this.stackPos ] = state;
  2052. this.yyastk[ this.stackPos ] = this.yyval;
  2053. attributeStack[ this.stackPos ] = this.startAttributes;
  2054. } else {
  2055. if (eval !== true) {
  2056. var expected = [];
  2057. for (var i = 0; i < this.TOKEN_MAP_SIZE; ++i) {
  2058. if ((yyn = yybase[ state ] + i) >= 0 && yyn < this.YYLAST && yycheck[ yyn ] == i
  2059. || state < this.YY2TBLSTATE
  2060. && (yyn = yybase[ state + this.YYNLSTATES] + i)
  2061. && yyn < this.YYLAST && yycheck[ yyn ] == i
  2062. ) {
  2063. if (yyaction[ yyn ] != this.YYUNEXPECTED) {
  2064. if (expected.length == 4) {
  2065. expected = [];
  2066. break;
  2067. }
  2068. expected.push( this.terminals[ i ] );
  2069. }
  2070. }
  2071. }
  2072. var expectedString = '';
  2073. if (expected.length) {
  2074. expectedString = ', expecting ' + expected.join(' or ');
  2075. }
  2076. throw new PHP.ParseError('syntax error, unexpected ' + terminals[ tokenId ] + expectedString, this.startAttributes['startLine']);
  2077. } else {
  2078. return this.startAttributes['startLine'];
  2079. }
  2080. }
  2081. if (state < this.YYNLSTATES)
  2082. break;
  2083. yyn = state - this.YYNLSTATES;
  2084. }
  2085. }
  2086. };
  2087. PHP.ParseError = function( msg, line ) {
  2088. this.message = msg;
  2089. this.line = line;
  2090. };
  2091. PHP.Parser.prototype.MODIFIER_PUBLIC = 1;
  2092. PHP.Parser.prototype.MODIFIER_PROTECTED = 2;
  2093. PHP.Parser.prototype.MODIFIER_PRIVATE = 4;
  2094. PHP.Parser.prototype.MODIFIER_STATIC = 8;
  2095. PHP.Parser.prototype.MODIFIER_ABSTRACT = 16;
  2096. PHP.Parser.prototype.MODIFIER_FINAL = 32;
  2097. PHP.Parser.prototype.getNextToken = function( ) {
  2098. this.startAttributes = {};
  2099. this.endAttributes = {};
  2100. var token,
  2101. tmp;
  2102. while (this.tokens[++this.pos] !== undefined) {
  2103. token = this.tokens[this.pos];
  2104. if (typeof token === "string") {
  2105. this.startAttributes['startLine'] = this.line;
  2106. this.endAttributes['endLine'] = this.line;
  2107. if ('b"' === token) {
  2108. this.tokenValue = 'b"';
  2109. return '"'.charCodeAt(0);
  2110. } else {
  2111. this.tokenValue = token;
  2112. return token.charCodeAt(0);
  2113. }
  2114. } else {
  2115. this.line += ((tmp = token[ 1 ].match(/\n/g)) === null) ? 0 : tmp.length;
  2116. if (PHP.Constants.T_COMMENT === token[0]) {
  2117. if (!Array.isArray(this.startAttributes['comments'])) {
  2118. this.startAttributes['comments'] = [];
  2119. }
  2120. this.startAttributes['comments'].push( {
  2121. type: "comment",
  2122. comment: token[1],
  2123. line: token[2]
  2124. });
  2125. } else if (PHP.Constants.T_DOC_COMMENT === token[0]) {
  2126. this.startAttributes['comments'].push( new PHPParser_Comment_Doc(token[1], token[2]) );
  2127. } else if (this.dropTokens[token[0]] === undefined) {
  2128. this.tokenValue = token[1];
  2129. this.startAttributes['startLine'] = token[2];
  2130. this.endAttributes['endLine'] = this.line;
  2131. return this.tokenMap[token[0]];
  2132. }
  2133. }
  2134. }
  2135. this.startAttributes['startLine'] = this.line;
  2136. return 0;
  2137. };
  2138. PHP.Parser.prototype.tokenName = function( token ) {
  2139. 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"];
  2140. var current = "UNKNOWN";
  2141. constants.some(function( constant ) {
  2142. if (PHP.Constants[ constant ] === token) {
  2143. current = constant;
  2144. return true;
  2145. } else {
  2146. return false;
  2147. }
  2148. });
  2149. return current;
  2150. };
  2151. PHP.Parser.prototype.createTokenMap = function() {
  2152. var tokenMap = {},
  2153. name,
  2154. i;
  2155. var T_DOUBLE_COLON = PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM;
  2156. for ( i = 256; i < 1000; ++i ) {
  2157. if ( T_DOUBLE_COLON === i ) {
  2158. tokenMap[ i ] = this.T_PAAMAYIM_NEKUDOTAYIM;
  2159. } else if( PHP.Constants.T_OPEN_TAG_WITH_ECHO === i ) {
  2160. tokenMap[ i ] = PHP.Constants.T_ECHO;
  2161. } else if( PHP.Constants.T_CLOSE_TAG === i ) {
  2162. tokenMap[ i ] = 59;
  2163. } else if ( 'UNKNOWN' !== (name = this.tokenName( i ) ) ) {
  2164. tokenMap[ i ] = this[name];
  2165. }
  2166. }
  2167. return tokenMap;
  2168. };
  2169. var yynStandard = function () {
  2170. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  2171. };
  2172. PHP.Parser.prototype.MakeArray = function( arr ) {
  2173. return Array.isArray( arr ) ? arr : [ arr ];
  2174. }
  2175. PHP.Parser.prototype.parseString = function( str ) {
  2176. var bLength = 0;
  2177. if ('b' === str[0]) {
  2178. bLength = 1;
  2179. }
  2180. if ('\'' === str[ bLength ]) {
  2181. str = str.replace(
  2182. ['\\\\', '\\\''],
  2183. [ '\\', '\'']);
  2184. } else {
  2185. str = this.parseEscapeSequences( str, '"');
  2186. }
  2187. return str;
  2188. };
  2189. PHP.Parser.prototype.parseEscapeSequences = function( str, quote ) {
  2190. if (undefined !== quote) {
  2191. str = str.replace(new RegExp('\\' + quote, "g"), quote);
  2192. }
  2193. var replacements = {
  2194. '\\': '\\',
  2195. '$': '$',
  2196. 'n': "\n",
  2197. 'r': "\r",
  2198. 't': "\t",
  2199. 'f': "\f",
  2200. 'v': "\v",
  2201. 'e': "\x1B"
  2202. };
  2203. return str.replace(
  2204. /~\\\\([\\\\$nrtfve]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3})~/g,
  2205. function ( matches ){
  2206. var str = matches[1];
  2207. if ( replacements[ str ] !== undefined ) {
  2208. return replacements[ str ];
  2209. } else if ('x' === str[ 0 ] || 'X' === str[ 0 ]) {
  2210. return chr(hexdec(str));
  2211. } else {
  2212. return chr(octdec(str));
  2213. }
  2214. }
  2215. );
  2216. return str;
  2217. };
  2218. PHP.Parser.prototype.TOKEN_NONE = -1;
  2219. PHP.Parser.prototype.TOKEN_INVALID = 149;
  2220. PHP.Parser.prototype.TOKEN_MAP_SIZE = 384;
  2221. PHP.Parser.prototype.YYLAST = 913;
  2222. PHP.Parser.prototype.YY2TBLSTATE = 328;
  2223. PHP.Parser.prototype.YYGLAST = 415;
  2224. PHP.Parser.prototype.YYNLSTATES = 544;
  2225. PHP.Parser.prototype.YYUNEXPECTED = 32767;
  2226. PHP.Parser.prototype.YYDEFAULT = -32766;
  2227. PHP.Parser.prototype.YYERRTOK = 256;
  2228. PHP.Parser.prototype.T_INCLUDE = 257;
  2229. PHP.Parser.prototype.T_INCLUDE_ONCE = 258;
  2230. PHP.Parser.prototype.T_EVAL = 259;
  2231. PHP.Parser.prototype.T_REQUIRE = 260;
  2232. PHP.Parser.prototype.T_REQUIRE_ONCE = 261;
  2233. PHP.Parser.prototype.T_LOGICAL_OR = 262;
  2234. PHP.Parser.prototype.T_LOGICAL_XOR = 263;
  2235. PHP.Parser.prototype.T_LOGICAL_AND = 264;
  2236. PHP.Parser.prototype.T_PRINT = 265;
  2237. PHP.Parser.prototype.T_PLUS_EQUAL = 266;
  2238. PHP.Parser.prototype.T_MINUS_EQUAL = 267;
  2239. PHP.Parser.prototype.T_MUL_EQUAL = 268;
  2240. PHP.Parser.prototype.T_DIV_EQUAL = 269;
  2241. PHP.Parser.prototype.T_CONCAT_EQUAL = 270;
  2242. PHP.Parser.prototype.T_MOD_EQUAL = 271;
  2243. PHP.Parser.prototype.T_AND_EQUAL = 272;
  2244. PHP.Parser.prototype.T_OR_EQUAL = 273;
  2245. PHP.Parser.prototype.T_XOR_EQUAL = 274;
  2246. PHP.Parser.prototype.T_SL_EQUAL = 275;
  2247. PHP.Parser.prototype.T_SR_EQUAL = 276;
  2248. PHP.Parser.prototype.T_BOOLEAN_OR = 277;
  2249. PHP.Parser.prototype.T_BOOLEAN_AND = 278;
  2250. PHP.Parser.prototype.T_IS_EQUAL = 279;
  2251. PHP.Parser.prototype.T_IS_NOT_EQUAL = 280;
  2252. PHP.Parser.prototype.T_IS_IDENTICAL = 281;
  2253. PHP.Parser.prototype.T_IS_NOT_IDENTICAL = 282;
  2254. PHP.Parser.prototype.T_IS_SMALLER_OR_EQUAL = 283;
  2255. PHP.Parser.prototype.T_IS_GREATER_OR_EQUAL = 284;
  2256. PHP.Parser.prototype.T_SL = 285;
  2257. PHP.Parser.prototype.T_SR = 286;
  2258. PHP.Parser.prototype.T_INSTANCEOF = 287;
  2259. PHP.Parser.prototype.T_INC = 288;
  2260. PHP.Parser.prototype.T_DEC = 289;
  2261. PHP.Parser.prototype.T_INT_CAST = 290;
  2262. PHP.Parser.prototype.T_DOUBLE_CAST = 291;
  2263. PHP.Parser.prototype.T_STRING_CAST = 292;
  2264. PHP.Parser.prototype.T_ARRAY_CAST = 293;
  2265. PHP.Parser.prototype.T_OBJECT_CAST = 294;
  2266. PHP.Parser.prototype.T_BOOL_CAST = 295;
  2267. PHP.Parser.prototype.T_UNSET_CAST = 296;
  2268. PHP.Parser.prototype.T_NEW = 297;
  2269. PHP.Parser.prototype.T_CLONE = 298;
  2270. PHP.Parser.prototype.T_EXIT = 299;
  2271. PHP.Parser.prototype.T_IF = 300;
  2272. PHP.Parser.prototype.T_ELSEIF = 301;
  2273. PHP.Parser.prototype.T_ELSE = 302;
  2274. PHP.Parser.prototype.T_ENDIF = 303;
  2275. PHP.Parser.prototype.T_LNUMBER = 304;
  2276. PHP.Parser.prototype.T_DNUMBER = 305;
  2277. PHP.Parser.prototype.T_STRING = 306;
  2278. PHP.Parser.prototype.T_STRING_VARNAME = 307;
  2279. PHP.Parser.prototype.T_VARIABLE = 308;
  2280. PHP.Parser.prototype.T_NUM_STRING = 309;
  2281. PHP.Parser.prototype.T_INLINE_HTML = 310;
  2282. PHP.Parser.prototype.T_CHARACTER = 311;
  2283. PHP.Parser.prototype.T_BAD_CHARACTER = 312;
  2284. PHP.Parser.prototype.T_ENCAPSED_AND_WHITESPACE = 313;
  2285. PHP.Parser.prototype.T_CONSTANT_ENCAPSED_STRING = 314;
  2286. PHP.Parser.prototype.T_ECHO = 315;
  2287. PHP.Parser.prototype.T_DO = 316;
  2288. PHP.Parser.prototype.T_WHILE = 317;
  2289. PHP.Parser.prototype.T_ENDWHILE = 318;
  2290. PHP.Parser.prototype.T_FOR = 319;
  2291. PHP.Parser.prototype.T_ENDFOR = 320;
  2292. PHP.Parser.prototype.T_FOREACH = 321;
  2293. PHP.Parser.prototype.T_ENDFOREACH = 322;
  2294. PHP.Parser.prototype.T_DECLARE = 323;
  2295. PHP.Parser.prototype.T_ENDDECLARE = 324;
  2296. PHP.Parser.prototype.T_AS = 325;
  2297. PHP.Parser.prototype.T_SWITCH = 326;
  2298. PHP.Parser.prototype.T_ENDSWITCH = 327;
  2299. PHP.Parser.prototype.T_CASE = 328;
  2300. PHP.Parser.prototype.T_DEFAULT = 329;
  2301. PHP.Parser.prototype.T_BREAK = 330;
  2302. PHP.Parser.prototype.T_CONTINUE = 331;
  2303. PHP.Parser.prototype.T_GOTO = 332;
  2304. PHP.Parser.prototype.T_FUNCTION = 333;
  2305. PHP.Parser.prototype.T_CONST = 334;
  2306. PHP.Parser.prototype.T_RETURN = 335;
  2307. PHP.Parser.prototype.T_TRY = 336;
  2308. PHP.Parser.prototype.T_CATCH = 337;
  2309. PHP.Parser.prototype.T_THROW = 338;
  2310. PHP.Parser.prototype.T_USE = 339;
  2311. PHP.Parser.prototype.T_INSTEADOF = 340;
  2312. PHP.Parser.prototype.T_GLOBAL = 341;
  2313. PHP.Parser.prototype.T_STATIC = 342;
  2314. PHP.Parser.prototype.T_ABSTRACT = 343;
  2315. PHP.Parser.prototype.T_FINAL = 344;
  2316. PHP.Parser.prototype.T_PRIVATE = 345;
  2317. PHP.Parser.prototype.T_PROTECTED = 346;
  2318. PHP.Parser.prototype.T_PUBLIC = 347;
  2319. PHP.Parser.prototype.T_VAR = 348;
  2320. PHP.Parser.prototype.T_UNSET = 349;
  2321. PHP.Parser.prototype.T_ISSET = 350;
  2322. PHP.Parser.prototype.T_EMPTY = 351;
  2323. PHP.Parser.prototype.T_HALT_COMPILER = 352;
  2324. PHP.Parser.prototype.T_CLASS = 353;
  2325. PHP.Parser.prototype.T_TRAIT = 354;
  2326. PHP.Parser.prototype.T_INTERFACE = 355;
  2327. PHP.Parser.prototype.T_EXTENDS = 356;
  2328. PHP.Parser.prototype.T_IMPLEMENTS = 357;
  2329. PHP.Parser.prototype.T_OBJECT_OPERATOR = 358;
  2330. PHP.Parser.prototype.T_DOUBLE_ARROW = 359;
  2331. PHP.Parser.prototype.T_LIST = 360;
  2332. PHP.Parser.prototype.T_ARRAY = 361;
  2333. PHP.Parser.prototype.T_CALLABLE = 362;
  2334. PHP.Parser.prototype.T_CLASS_C = 363;
  2335. PHP.Parser.prototype.T_TRAIT_C = 364;
  2336. PHP.Parser.prototype.T_METHOD_C = 365;
  2337. PHP.Parser.prototype.T_FUNC_C = 366;
  2338. PHP.Parser.prototype.T_LINE = 367;
  2339. PHP.Parser.prototype.T_FILE = 368;
  2340. PHP.Parser.prototype.T_COMMENT = 369;
  2341. PHP.Parser.prototype.T_DOC_COMMENT = 370;
  2342. PHP.Parser.prototype.T_OPEN_TAG = 371;
  2343. PHP.Parser.prototype.T_OPEN_TAG_WITH_ECHO = 372;
  2344. PHP.Parser.prototype.T_CLOSE_TAG = 373;
  2345. PHP.Parser.prototype.T_WHITESPACE = 374;
  2346. PHP.Parser.prototype.T_START_HEREDOC = 375;
  2347. PHP.Parser.prototype.T_END_HEREDOC = 376;
  2348. PHP.Parser.prototype.T_DOLLAR_OPEN_CURLY_BRACES = 377;
  2349. PHP.Parser.prototype.T_CURLY_OPEN = 378;
  2350. PHP.Parser.prototype.T_PAAMAYIM_NEKUDOTAYIM = 379;
  2351. PHP.Parser.prototype.T_NAMESPACE = 380;
  2352. PHP.Parser.prototype.T_NS_C = 381;
  2353. PHP.Parser.prototype.T_DIR = 382;
  2354. PHP.Parser.prototype.T_NS_SEPARATOR = 383;
  2355. PHP.Parser.prototype.terminals = [
  2356. "$EOF",
  2357. "error",
  2358. "T_INCLUDE",
  2359. "T_INCLUDE_ONCE",
  2360. "T_EVAL",
  2361. "T_REQUIRE",
  2362. "T_REQUIRE_ONCE",
  2363. "','",
  2364. "T_LOGICAL_OR",
  2365. "T_LOGICAL_XOR",
  2366. "T_LOGICAL_AND",
  2367. "T_PRINT",
  2368. "'='",
  2369. "T_PLUS_EQUAL",
  2370. "T_MINUS_EQUAL",
  2371. "T_MUL_EQUAL",
  2372. "T_DIV_EQUAL",
  2373. "T_CONCAT_EQUAL",
  2374. "T_MOD_EQUAL",
  2375. "T_AND_EQUAL",
  2376. "T_OR_EQUAL",
  2377. "T_XOR_EQUAL",
  2378. "T_SL_EQUAL",
  2379. "T_SR_EQUAL",
  2380. "'?'",
  2381. "':'",
  2382. "T_BOOLEAN_OR",
  2383. "T_BOOLEAN_AND",
  2384. "'|'",
  2385. "'^'",
  2386. "'&'",
  2387. "T_IS_EQUAL",
  2388. "T_IS_NOT_EQUAL",
  2389. "T_IS_IDENTICAL",
  2390. "T_IS_NOT_IDENTICAL",
  2391. "'<'",
  2392. "T_IS_SMALLER_OR_EQUAL",
  2393. "'>'",
  2394. "T_IS_GREATER_OR_EQUAL",
  2395. "T_SL",
  2396. "T_SR",
  2397. "'+'",
  2398. "'-'",
  2399. "'.'",
  2400. "'*'",
  2401. "'/'",
  2402. "'%'",
  2403. "'!'",
  2404. "T_INSTANCEOF",
  2405. "'~'",
  2406. "T_INC",
  2407. "T_DEC",
  2408. "T_INT_CAST",
  2409. "T_DOUBLE_CAST",
  2410. "T_STRING_CAST",
  2411. "T_ARRAY_CAST",
  2412. "T_OBJECT_CAST",
  2413. "T_BOOL_CAST",
  2414. "T_UNSET_CAST",
  2415. "'@'",
  2416. "'['",
  2417. "T_NEW",
  2418. "T_CLONE",
  2419. "T_EXIT",
  2420. "T_IF",
  2421. "T_ELSEIF",
  2422. "T_ELSE",
  2423. "T_ENDIF",
  2424. "T_LNUMBER",
  2425. "T_DNUMBER",
  2426. "T_STRING",
  2427. "T_STRING_VARNAME",
  2428. "T_VARIABLE",
  2429. "T_NUM_STRING",
  2430. "T_INLINE_HTML",
  2431. "T_ENCAPSED_AND_WHITESPACE",
  2432. "T_CONSTANT_ENCAPSED_STRING",
  2433. "T_ECHO",
  2434. "T_DO",
  2435. "T_WHILE",
  2436. "T_ENDWHILE",
  2437. "T_FOR",
  2438. "T_ENDFOR",
  2439. "T_FOREACH",
  2440. "T_ENDFOREACH",
  2441. "T_DECLARE",
  2442. "T_ENDDECLARE",
  2443. "T_AS",
  2444. "T_SWITCH",
  2445. "T_ENDSWITCH",
  2446. "T_CASE",
  2447. "T_DEFAULT",
  2448. "T_BREAK",
  2449. "T_CONTINUE",
  2450. "T_GOTO",
  2451. "T_FUNCTION",
  2452. "T_CONST",
  2453. "T_RETURN",
  2454. "T_TRY",
  2455. "T_CATCH",
  2456. "T_THROW",
  2457. "T_USE",
  2458. "T_INSTEADOF",
  2459. "T_GLOBAL",
  2460. "T_STATIC",
  2461. "T_ABSTRACT",
  2462. "T_FINAL",
  2463. "T_PRIVATE",
  2464. "T_PROTECTED",
  2465. "T_PUBLIC",
  2466. "T_VAR",
  2467. "T_UNSET",
  2468. "T_ISSET",
  2469. "T_EMPTY",
  2470. "T_HALT_COMPILER",
  2471. "T_CLASS",
  2472. "T_TRAIT",
  2473. "T_INTERFACE",
  2474. "T_EXTENDS",
  2475. "T_IMPLEMENTS",
  2476. "T_OBJECT_OPERATOR",
  2477. "T_DOUBLE_ARROW",
  2478. "T_LIST",
  2479. "T_ARRAY",
  2480. "T_CALLABLE",
  2481. "T_CLASS_C",
  2482. "T_TRAIT_C",
  2483. "T_METHOD_C",
  2484. "T_FUNC_C",
  2485. "T_LINE",
  2486. "T_FILE",
  2487. "T_START_HEREDOC",
  2488. "T_END_HEREDOC",
  2489. "T_DOLLAR_OPEN_CURLY_BRACES",
  2490. "T_CURLY_OPEN",
  2491. "T_PAAMAYIM_NEKUDOTAYIM",
  2492. "T_NAMESPACE",
  2493. "T_NS_C",
  2494. "T_DIR",
  2495. "T_NS_SEPARATOR",
  2496. "';'",
  2497. "'{'",
  2498. "'}'",
  2499. "'('",
  2500. "')'",
  2501. "'$'",
  2502. "']'",
  2503. "'`'",
  2504. "'\"'"
  2505. , "???"
  2506. ];
  2507. PHP.Parser.prototype.translate = [
  2508. 0, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2509. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2510. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2511. 149, 149, 149, 47, 148, 149, 145, 46, 30, 149,
  2512. 143, 144, 44, 41, 7, 42, 43, 45, 149, 149,
  2513. 149, 149, 149, 149, 149, 149, 149, 149, 25, 140,
  2514. 35, 12, 37, 24, 59, 149, 149, 149, 149, 149,
  2515. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2516. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2517. 149, 60, 149, 146, 29, 149, 147, 149, 149, 149,
  2518. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2519. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2520. 149, 149, 149, 141, 28, 142, 49, 149, 149, 149,
  2521. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2522. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2523. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2524. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2525. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2526. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2527. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2528. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2529. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2530. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2531. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2532. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  2533. 149, 149, 149, 149, 149, 149, 1, 2, 3, 4,
  2534. 5, 6, 8, 9, 10, 11, 13, 14, 15, 16,
  2535. 17, 18, 19, 20, 21, 22, 23, 26, 27, 31,
  2536. 32, 33, 34, 36, 38, 39, 40, 48, 50, 51,
  2537. 52, 53, 54, 55, 56, 57, 58, 61, 62, 63,
  2538. 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
  2539. 74, 149, 149, 75, 76, 77, 78, 79, 80, 81,
  2540. 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
  2541. 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
  2542. 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
  2543. 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
  2544. 122, 123, 124, 125, 126, 127, 128, 129, 130, 149,
  2545. 149, 149, 149, 149, 149, 131, 132, 133, 134, 135,
  2546. 136, 137, 138, 139
  2547. ];
  2548. PHP.Parser.prototype.yyaction = [
  2549. 61, 62, 363, 63, 64,-32766,-32766,-32766, 509, 65,
  2550. 708, 709, 710, 707, 706, 705,-32766,-32766,-32766,-32766,
  2551. -32766,-32766, 132,-32766,-32766,-32766,-32766,-32766,-32767,-32767,
  2552. -32767,-32767,-32766, 335,-32766,-32766,-32766,-32766,-32766, 66,
  2553. 67, 351, 663, 664, 40, 68, 548, 69, 232, 233,
  2554. 70, 71, 72, 73, 74, 75, 76, 77, 30, 246,
  2555. 78, 336, 364, -112, 0, 469, 833, 834, 365, 641,
  2556. 890, 436, 590, 41, 835, 53, 27, 366, 294, 367,
  2557. 687, 368, 921, 369, 923, 922, 370,-32766,-32766,-32766,
  2558. 42, 43, 371, 339, 126, 44, 372, 337, 79, 297,
  2559. 349, 292, 293,-32766, 918,-32766,-32766, 373, 374, 375,
  2560. 376, 377, 391, 199, 361, 338, 573, 613, 378, 379,
  2561. 380, 381, 845, 839, 840, 841, 842, 836, 837, 253,
  2562. -32766, 87, 88, 89, 391, 843, 838, 338, 597, 519,
  2563. 128, 80, 129, 273, 332, 257, 261, 47, 673, 90,
  2564. 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
  2565. 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
  2566. 799, 247, 884, 108, 109, 110, 226, 247, 21,-32766,
  2567. 310,-32766,-32766,-32766, 642, 548,-32766,-32766,-32766,-32766,
  2568. 56, 353,-32766,-32766,-32766, 55,-32766,-32766,-32766,-32766,
  2569. -32766, 58,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766,
  2570. -32766, 557,-32766,-32766, 518,-32766, 548, 890,-32766, 390,
  2571. -32766, 228, 252,-32766,-32766,-32766,-32766,-32766, 275,-32766,
  2572. 234,-32766, 587, 588,-32766,-32766,-32766,-32766,-32766,-32766,
  2573. -32766, 46, 236,-32766,-32766, 281,-32766, 682, 348,-32766,
  2574. 390,-32766, 346, 333, 521,-32766,-32766,-32766, 271, 911,
  2575. 262, 237, 446, 911,-32766, 894, 59, 700, 358, 135,
  2576. 548, 123, 538, 35,-32766, 333, 122,-32766,-32766,-32766,
  2577. 271,-32766, 124,-32766, 692,-32766,-32766,-32766,-32766, 700,
  2578. 273, 22,-32766,-32766,-32766,-32766, 239,-32766,-32766, 612,
  2579. -32766, 548, 134,-32766, 390,-32766, 462, 354,-32766,-32766,
  2580. -32766,-32766,-32766, 227,-32766, 238,-32766, 845, 542,-32766,
  2581. 856, 611, 200,-32766,-32766,-32766, 259, 280,-32766,-32766,
  2582. 201,-32766, 855, 129,-32766, 390, 130, 202, 333, 206,
  2583. -32766,-32766,-32766, 271,-32766,-32766,-32766, 125, 601,-32766,
  2584. 136, 299, 700, 489, 28, 548, 105, 106, 107,-32766,
  2585. 498, 499,-32766,-32766,-32766, 207,-32766, 133,-32766, 525,
  2586. -32766,-32766,-32766,-32766, 663, 664, 527,-32766,-32766,-32766,
  2587. -32766, 528,-32766,-32766, 610,-32766, 548, 427,-32766, 390,
  2588. -32766, 532, 539,-32766,-32766,-32766,-32766,-32766, 240,-32766,
  2589. 247,-32766, 697, 543,-32766, 554, 523, 608,-32766,-32766,
  2590. -32766, 686, 535,-32766,-32766, 54,-32766, 57, 60,-32766,
  2591. 390, 246, -155, 278, 345,-32766,-32766,-32766, 506, 347,
  2592. -152, 471, 402, 403,-32766, 405, 404, 272, 493, 416,
  2593. 548, 318, 417, 505,-32766, 517, 548,-32766,-32766,-32766,
  2594. 549,-32766, 562,-32766, 916,-32766,-32766,-32766,-32766, 564,
  2595. 826, 848,-32766,-32766,-32766,-32766, 694,-32766,-32766, 485,
  2596. -32766, 548, 487,-32766, 390,-32766, 504, 802,-32766,-32766,
  2597. -32766,-32766,-32766, 279,-32766, 911,-32766, 502, 492,-32766,
  2598. 413, 483, 269,-32766,-32766,-32766, 243, 337,-32766,-32766,
  2599. 418,-32766, 454, 229,-32766, 390, 274, 373, 374, 344,
  2600. -32766,-32766,-32766, 360, 614,-32766, 573, 613, 378, 379,
  2601. -274, 548, 615, -332, 844,-32766, 258, 51,-32766,-32766,
  2602. -32766, 270,-32766, 346,-32766, 52,-32766, 260, 0,-32766,
  2603. -333,-32766,-32766,-32766,-32766,-32766,-32766, 205,-32766,-32766,
  2604. 49,-32766, 548, 424,-32766, 390,-32766, -266, 264,-32766,
  2605. -32766,-32766,-32766,-32766, 409,-32766, 343,-32766, 265, 312,
  2606. -32766, 470, 513, -275,-32766,-32766,-32766, 920, 337,-32766,
  2607. -32766, 530,-32766, 531, 600,-32766, 390, 592, 373, 374,
  2608. 578, 581,-32766,-32766, 644, 629,-32766, 573, 613, 378,
  2609. 379, 635, 548, 636, 576, 627,-32766, 625, 693,-32766,
  2610. -32766,-32766, 691,-32766, 591,-32766, 582,-32766, 203, 204,
  2611. -32766, 584, 583,-32766,-32766,-32766,-32766, 586, 599,-32766,
  2612. -32766, 589,-32766, 690, 558,-32766, 390, 197, 683, 919,
  2613. 86, 520, 522,-32766, 524, 833, 834, 529, 533,-32766,
  2614. 534, 537, 541, 835, 48, 111, 112, 113, 114, 115,
  2615. 116, 117, 118, 119, 120, 121, 127, 31, 633, 337,
  2616. 330, 634, 585,-32766, 32, 291, 337, 330, 478, 373,
  2617. 374, 917, 291, 891, 889, 875, 373, 374, 553, 613,
  2618. 378, 379, 737, 739, 887, 553, 613, 378, 379, 824,
  2619. 451, 675, 839, 840, 841, 842, 836, 837, 320, 895,
  2620. 277, 885, 23, 33, 843, 838, 556, 277, 337, 330,
  2621. -32766, 34,-32766, 555, 291, 36, 37, 38, 373, 374,
  2622. 39, 45, 50, 81, 82, 83, 84, 553, 613, 378,
  2623. 379,-32767,-32767,-32767,-32767, 103, 104, 105, 106, 107,
  2624. 337, 85, 131, 137, 337, 138, 198, 224, 225, 277,
  2625. 373, 374, -332, 230, 373, 374, 24, 337, 231, 573,
  2626. 613, 378, 379, 573, 613, 378, 379, 373, 374, 235,
  2627. 248, 249, 250, 337, 251, 0, 573, 613, 378, 379,
  2628. 276, 329, 331, 373, 374,-32766, 337, 574, 490, 792,
  2629. 337, 609, 573, 613, 378, 379, 373, 374, 25, 300,
  2630. 373, 374, 319, 337, 795, 573, 613, 378, 379, 573,
  2631. 613, 378, 379, 373, 374, 516, 355, 359, 445, 482,
  2632. 796, 507, 573, 613, 378, 379, 508, 548, 337, 890,
  2633. 775, 791, 337, 604, 803, 808, 806, 698, 373, 374,
  2634. 888, 807, 373, 374,-32766,-32766,-32766, 573, 613, 378,
  2635. 379, 573, 613, 378, 379, 873, 832, 804, 872, 851,
  2636. -32766, 809,-32766,-32766,-32766,-32766, 805, 20, 26, 29,
  2637. 298, 480, 515, 770, 778, 827, 457, 0, 900, 455,
  2638. 774, 0, 0, 0, 874, 870, 886, 823, 915, 852,
  2639. 869, 488, 0, 391, 793, 0, 338, 0, 0, 0,
  2640. 340, 0, 273
  2641. ];
  2642. PHP.Parser.prototype.yycheck = [
  2643. 2, 3, 4, 5, 6, 8, 9, 10, 70, 11,
  2644. 104, 105, 106, 107, 108, 109, 8, 9, 10, 8,
  2645. 9, 24, 60, 26, 27, 28, 29, 30, 31, 32,
  2646. 33, 34, 24, 7, 26, 27, 28, 29, 30, 41,
  2647. 42, 7, 123, 124, 7, 47, 70, 49, 50, 51,
  2648. 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
  2649. 62, 63, 64, 144, 0, 75, 68, 69, 70, 25,
  2650. 72, 70, 74, 7, 76, 77, 78, 79, 7, 81,
  2651. 142, 83, 70, 85, 72, 73, 88, 8, 9, 10,
  2652. 92, 93, 94, 95, 7, 97, 98, 95, 100, 7,
  2653. 7, 103, 104, 24, 142, 26, 27, 105, 106, 111,
  2654. 112, 113, 136, 7, 7, 139, 114, 115, 116, 117,
  2655. 122, 123, 132, 125, 126, 127, 128, 129, 130, 131,
  2656. 8, 8, 9, 10, 136, 137, 138, 139, 140, 141,
  2657. 25, 143, 141, 145, 142, 147, 148, 24, 72, 26,
  2658. 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
  2659. 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
  2660. 144, 48, 72, 44, 45, 46, 30, 48, 144, 64,
  2661. 72, 8, 9, 10, 140, 70, 8, 9, 10, 74,
  2662. 60, 25, 77, 78, 79, 60, 81, 24, 83, 26,
  2663. 85, 60, 24, 88, 26, 27, 28, 92, 93, 94,
  2664. 64, 140, 97, 98, 70, 100, 70, 72, 103, 104,
  2665. 74, 145, 7, 77, 78, 79, 111, 81, 7, 83,
  2666. 30, 85, 140, 140, 88, 8, 9, 10, 92, 93,
  2667. 94, 133, 134, 97, 98, 145, 100, 140, 7, 103,
  2668. 104, 24, 139, 96, 141, 140, 141, 111, 101, 75,
  2669. 75, 30, 70, 75, 64, 70, 60, 110, 121, 12,
  2670. 70, 141, 25, 143, 74, 96, 141, 77, 78, 79,
  2671. 101, 81, 141, 83, 140, 85, 140, 141, 88, 110,
  2672. 145, 144, 92, 93, 94, 64, 7, 97, 98, 142,
  2673. 100, 70, 141, 103, 104, 74, 145, 141, 77, 78,
  2674. 79, 111, 81, 7, 83, 30, 85, 132, 25, 88,
  2675. 132, 142, 12, 92, 93, 94, 120, 60, 97, 98,
  2676. 12, 100, 148, 141, 103, 104, 141, 12, 96, 12,
  2677. 140, 141, 111, 101, 8, 9, 10, 141, 25, 64,
  2678. 90, 91, 110, 65, 66, 70, 41, 42, 43, 74,
  2679. 65, 66, 77, 78, 79, 12, 81, 25, 83, 25,
  2680. 85, 140, 141, 88, 123, 124, 25, 92, 93, 94,
  2681. 64, 25, 97, 98, 142, 100, 70, 120, 103, 104,
  2682. 74, 25, 25, 77, 78, 79, 111, 81, 30, 83,
  2683. 48, 85, 140, 141, 88, 140, 141, 30, 92, 93,
  2684. 94, 140, 141, 97, 98, 60, 100, 60, 60, 103,
  2685. 104, 61, 72, 75, 70, 140, 141, 111, 67, 70,
  2686. 87, 99, 70, 70, 64, 70, 72, 102, 89, 70,
  2687. 70, 71, 70, 70, 74, 70, 70, 77, 78, 79,
  2688. 70, 81, 70, 83, 70, 85, 140, 141, 88, 70,
  2689. 144, 70, 92, 93, 94, 64, 70, 97, 98, 72,
  2690. 100, 70, 72, 103, 104, 74, 72, 72, 77, 78,
  2691. 79, 111, 81, 75, 83, 75, 85, 89, 86, 88,
  2692. 79, 101, 118, 92, 93, 94, 87, 95, 97, 98,
  2693. 87, 100, 87, 87, 103, 104, 118, 105, 106, 95,
  2694. 140, 141, 111, 95, 115, 64, 114, 115, 116, 117,
  2695. 135, 70, 115, 120, 132, 74, 120, 140, 77, 78,
  2696. 79, 119, 81, 139, 83, 140, 85, 120, -1, 88,
  2697. 120, 140, 141, 92, 93, 94, 64, 121, 97, 98,
  2698. 121, 100, 70, 122, 103, 104, 74, 135, 135, 77,
  2699. 78, 79, 111, 81, 139, 83, 139, 85, 135, 135,
  2700. 88, 135, 135, 135, 92, 93, 94, 142, 95, 97,
  2701. 98, 140, 100, 140, 140, 103, 104, 140, 105, 106,
  2702. 140, 140, 141, 111, 140, 140, 64, 114, 115, 116,
  2703. 117, 140, 70, 140, 140, 140, 74, 140, 140, 77,
  2704. 78, 79, 140, 81, 140, 83, 140, 85, 41, 42,
  2705. 88, 140, 140, 141, 92, 93, 94, 140, 140, 97,
  2706. 98, 140, 100, 140, 140, 103, 104, 60, 140, 142,
  2707. 141, 141, 141, 111, 141, 68, 69, 141, 141, 72,
  2708. 141, 141, 141, 76, 12, 13, 14, 15, 16, 17,
  2709. 18, 19, 20, 21, 22, 23, 141, 143, 142, 95,
  2710. 96, 142, 140, 141, 143, 101, 95, 96, 142, 105,
  2711. 106, 142, 101, 142, 142, 142, 105, 106, 114, 115,
  2712. 116, 117, 50, 51, 142, 114, 115, 116, 117, 142,
  2713. 123, 142, 125, 126, 127, 128, 129, 130, 131, 142,
  2714. 136, 142, 144, 143, 137, 138, 142, 136, 95, 96,
  2715. 143, 143, 145, 142, 101, 143, 143, 143, 105, 106,
  2716. 143, 143, 143, 143, 143, 143, 143, 114, 115, 116,
  2717. 117, 35, 36, 37, 38, 39, 40, 41, 42, 43,
  2718. 95, 143, 143, 143, 95, 143, 143, 143, 143, 136,
  2719. 105, 106, 120, 143, 105, 106, 144, 95, 143, 114,
  2720. 115, 116, 117, 114, 115, 116, 117, 105, 106, 143,
  2721. 143, 143, 143, 95, 143, -1, 114, 115, 116, 117,
  2722. 143, 143, 143, 105, 106, 143, 95, 142, 80, 146,
  2723. 95, 142, 114, 115, 116, 117, 105, 106, 144, 144,
  2724. 105, 106, 144, 95, 142, 114, 115, 116, 117, 114,
  2725. 115, 116, 117, 105, 106, 82, 144, 144, 144, 144,
  2726. 142, 84, 114, 115, 116, 117, 144, 70, 95, 72,
  2727. 144, 144, 95, 142, 144, 146, 144, 142, 105, 106,
  2728. 146, 144, 105, 106, 8, 9, 10, 114, 115, 116,
  2729. 117, 114, 115, 116, 117, 144, 144, 144, 144, 144,
  2730. 24, 104, 26, 27, 28, 29, 144, 144, 144, 144,
  2731. 144, 144, 144, 144, 144, 144, 144, -1, 144, 144,
  2732. 144, -1, -1, -1, 146, 146, 146, 146, 146, 146,
  2733. 146, 146, -1, 136, 147, -1, 139, -1, -1, -1,
  2734. 143, -1, 145
  2735. ];
  2736. PHP.Parser.prototype.yybase = [
  2737. 0, 574, 581, 623, 655, 2, 718, 402, 747, 659,
  2738. 672, 688, 743, 701, 705, 483, 483, 483, 483, 483,
  2739. 351, 356, 366, 366, 367, 366, 344, -2, -2, -2,
  2740. 200, 200, 231, 231, 231, 231, 231, 231, 231, 231,
  2741. 200, 231, 451, 482, 532, 316, 370, 115, 146, 285,
  2742. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2743. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2744. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2745. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2746. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2747. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2748. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2749. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  2750. 401, 401, 401, 401, 401, 401, 401, 401, 401, 44,
  2751. 474, 429, 476, 481, 487, 488, 739, 740, 741, 734,
  2752. 733, 416, 736, 539, 541, 342, 542, 543, 552, 557,
  2753. 559, 536, 567, 737, 755, 569, 735, 738, 123, 123,
  2754. 123, 123, 123, 123, 123, 123, 123, 122, 11, 336,
  2755. 336, 336, 336, 336, 336, 336, 336, 336, 336, 336,
  2756. 336, 336, 336, 336, 227, 227, 173, 577, 577, 577,
  2757. 577, 577, 577, 577, 577, 577, 577, 577, 79, 178,
  2758. 846, 8, -3, -3, -3, -3, 642, 706, 706, 706,
  2759. 706, 157, 179, 242, 431, 431, 360, 431, 525, 368,
  2760. 767, 767, 767, 767, 767, 767, 767, 767, 767, 767,
  2761. 767, 767, 350, 375, 315, 315, 652, 652, -81, -81,
  2762. -81, -81, 251, 185, 188, 184, -62, 348, 195, 195,
  2763. 195, 408, 392, 410, 1, 192, 129, 129, 129, -24,
  2764. -24, -24, -24, 499, -24, -24, -24, 113, 108, 108,
  2765. 12, 161, 349, 526, 271, 398, 529, 438, 130, 206,
  2766. 265, 427, 76, 414, 427, 288, 295, 76, 166, 44,
  2767. 262, 422, 141, 491, 372, 494, 413, 71, 92, 93,
  2768. 267, 135, 100, 34, 415, 745, 746, 742, -38, 420,
  2769. -10, 135, 147, 744, 498, 107, 26, 493, 144, 377,
  2770. 363, 369, 332, 363, 400, 377, 588, 377, 376, 377,
  2771. 360, 37, 582, 376, 377, 374, 376, 388, 363, 364,
  2772. 412, 369, 377, 441, 443, 390, 106, 332, 377, 390,
  2773. 377, 400, 64, 590, 591, 323, 592, 589, 593, 649,
  2774. 608, 362, 500, 399, 407, 620, 625, 636, 365, 354,
  2775. 614, 524, 425, 359, 355, 423, 570, 578, 357, 406,
  2776. 414, 394, 352, 403, 531, 433, 403, 653, 434, 385,
  2777. 417, 411, 444, 310, 318, 501, 425, 668, 757, 380,
  2778. 637, 684, 403, 609, 387, 87, 325, 638, 382, 403,
  2779. 639, 403, 696, 503, 615, 403, 697, 384, 435, 425,
  2780. 352, 352, 352, 700, 66, 699, 583, 702, 707, 704,
  2781. 748, 721, 749, 584, 750, 358, 583, 722, 751, 682,
  2782. 215, 613, 422, 436, 389, 447, 221, 257, 752, 403,
  2783. 403, 506, 499, 403, 395, 685, 397, 426, 753, 392,
  2784. 391, 647, 683, 403, 418, 754, 221, 723, 587, 724,
  2785. 450, 568, 507, 648, 509, 327, 725, 353, 497, 610,
  2786. 454, 622, 455, 461, 404, 510, 373, 732, 612, 247,
  2787. 361, 664, 463, 405, 692, 641, 464, 465, 511, 343,
  2788. 437, 335, 409, 396, 665, 293, 467, 468, 472, 0,
  2789. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2790. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2791. 0, 0, 0, 0, 0, -2, -2, -2, -2, -2,
  2792. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2793. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2794. -2, 0, 0, 0, -2, -2, -2, -2, -2, -2,
  2795. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2796. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2797. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2798. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2799. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2800. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2801. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2802. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2803. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2804. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  2805. -2, -2, -2, 123, 123, 123, 123, 123, 123, 123,
  2806. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  2807. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  2808. 123, 123, 0, 0, 0, 0, 0, 0, 0, 0,
  2809. 0, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  2810. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  2811. 123, 767, 767, 767, 767, 767, 767, 767, 767, 767,
  2812. 767, 767, 123, 123, 123, 123, 123, 123, 123, 123,
  2813. 0, 129, 129, 129, 129, -94, -94, -94, 767, 767,
  2814. 767, 767, 767, 767, 0, 0, 0, 0, 0, 0,
  2815. 0, 0, 0, 0, 0, 0, -94, -94, 129, 129,
  2816. 767, 767, -24, -24, -24, -24, -24, 108, 108, 108,
  2817. -24, 108, 145, 145, 145, 108, 108, 108, 100, 100,
  2818. 0, 0, 0, 0, 0, 0, 0, 145, 0, 0,
  2819. 0, 376, 0, 0, 0, 145, 260, 260, 221, 260,
  2820. 260, 135, 0, 0, 425, 376, 0, 364, 376, 0,
  2821. 0, 0, 0, 0, 0, 531, 0, 87, 637, 241,
  2822. 425, 0, 0, 0, 0, 0, 0, 0, 425, 289,
  2823. 289, 306, 0, 358, 0, 0, 0, 306, 241, 0,
  2824. 0, 221
  2825. ];
  2826. PHP.Parser.prototype.yydefault = [
  2827. 3,32767,32767, 1,32767,32767,32767,32767,32767,32767,
  2828. 32767,32767,32767,32767,32767, 104, 96, 110, 95, 106,
  2829. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2830. 358, 358, 122, 122, 122, 122, 122, 122, 122, 122,
  2831. 316,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2832. 173, 173, 173,32767, 348, 348, 348, 348, 348, 348,
  2833. 348,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2834. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2835. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2836. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2837. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2838. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2839. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2840. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2841. 32767, 363,32767,32767,32767,32767,32767,32767,32767,32767,
  2842. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2843. 32767,32767,32767,32767,32767,32767,32767,32767, 232, 233,
  2844. 235, 236, 172, 125, 349, 362, 171, 199, 201, 250,
  2845. 200, 177, 182, 183, 184, 185, 186, 187, 188, 189,
  2846. 190, 191, 192, 176, 229, 228, 197, 313, 313, 316,
  2847. 32767,32767,32767,32767,32767,32767,32767,32767, 198, 202,
  2848. 204, 203, 219, 220, 217, 218, 175, 221, 222, 223,
  2849. 224, 157, 157, 157, 357, 357,32767, 357,32767,32767,
  2850. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2851. 32767,32767, 158,32767, 211, 212, 276, 276, 117, 117,
  2852. 117, 117, 117,32767,32767,32767,32767, 284,32767,32767,
  2853. 32767,32767,32767, 286,32767,32767, 206, 207, 205,32767,
  2854. 32767,32767,32767,32767,32767,32767,32767,32767, 285,32767,
  2855. 32767,32767,32767,32767,32767,32767,32767, 334, 321, 272,
  2856. 32767,32767,32767, 265,32767, 107, 109,32767,32767,32767,
  2857. 32767, 302, 339,32767,32767,32767, 17,32767,32767,32767,
  2858. 370, 334,32767,32767, 19,32767,32767,32767,32767, 227,
  2859. 32767, 338, 332,32767,32767,32767,32767,32767,32767, 63,
  2860. 32767,32767,32767,32767,32767, 63, 281, 63,32767, 63,
  2861. 32767, 315, 287,32767, 63, 74,32767, 72,32767,32767,
  2862. 76,32767, 63, 93, 93, 254, 315, 54, 63, 254,
  2863. 63,32767,32767,32767,32767, 4,32767,32767,32767,32767,
  2864. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2865. 32767,32767, 267,32767, 323,32767, 337, 336, 324,32767,
  2866. 265,32767, 215, 194, 266,32767, 196,32767,32767, 270,
  2867. 273,32767,32767,32767, 134,32767, 268, 180,32767,32767,
  2868. 32767,32767, 365,32767,32767, 174,32767,32767,32767, 130,
  2869. 32767, 61, 332,32767,32767, 355,32767,32767, 332, 269,
  2870. 208, 209, 210,32767, 121,32767, 310,32767,32767,32767,
  2871. 32767,32767,32767, 327,32767, 333,32767,32767,32767,32767,
  2872. 111,32767, 302,32767,32767,32767, 75,32767,32767, 178,
  2873. 126,32767,32767, 364,32767,32767,32767, 320,32767,32767,
  2874. 32767,32767,32767, 62,32767,32767, 77,32767,32767,32767,
  2875. 32767, 332,32767,32767,32767, 115,32767, 169,32767,32767,
  2876. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  2877. 32767, 332,32767,32767,32767,32767,32767,32767,32767, 4,
  2878. 32767, 151,32767,32767,32767,32767,32767,32767,32767, 25,
  2879. 25, 3, 137, 3, 137, 25, 101, 25, 25, 137,
  2880. 93, 93, 25, 25, 25, 144, 25, 25, 25, 25,
  2881. 25, 25, 25, 25
  2882. ];
  2883. PHP.Parser.prototype.yygoto = [
  2884. 141, 141, 173, 173, 173, 173, 173, 173, 173, 173,
  2885. 141, 173, 142, 143, 144, 148, 153, 155, 181, 175,
  2886. 172, 172, 172, 172, 174, 174, 174, 174, 174, 174,
  2887. 174, 168, 169, 170, 171, 179, 757, 758, 392, 760,
  2888. 781, 782, 783, 784, 785, 786, 787, 789, 725, 145,
  2889. 146, 147, 149, 150, 151, 152, 154, 177, 178, 180,
  2890. 196, 208, 209, 210, 211, 212, 213, 214, 215, 217,
  2891. 218, 219, 220, 244, 245, 266, 267, 268, 430, 431,
  2892. 432, 182, 183, 184, 185, 186, 187, 188, 189, 190,
  2893. 191, 192, 156, 157, 158, 159, 176, 160, 194, 161,
  2894. 162, 163, 164, 195, 165, 193, 139, 166, 167, 452,
  2895. 452, 452, 452, 452, 452, 452, 452, 452, 452, 452,
  2896. 453, 453, 453, 453, 453, 453, 453, 453, 453, 453,
  2897. 453, 551, 551, 551, 464, 491, 394, 394, 394, 394,
  2898. 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
  2899. 394, 394, 394, 394, 407, 552, 552, 552, 810, 810,
  2900. 662, 662, 662, 662, 662, 594, 283, 595, 510, 399,
  2901. 399, 567, 679, 632, 849, 850, 863, 660, 714, 426,
  2902. 222, 622, 622, 622, 622, 223, 617, 623, 494, 395,
  2903. 395, 395, 395, 395, 395, 395, 395, 395, 395, 395,
  2904. 395, 395, 395, 395, 395, 395, 395, 465, 472, 514,
  2905. 904, 398, 398, 425, 425, 459, 425, 419, 322, 421,
  2906. 421, 393, 396, 412, 422, 428, 460, 463, 473, 481,
  2907. 501, 5, 476, 284, 327, 1, 15, 2, 6, 7,
  2908. 550, 550, 550, 8, 9, 10, 668, 16, 11, 17,
  2909. 12, 18, 13, 19, 14, 704, 328, 881, 881, 643,
  2910. 628, 626, 626, 624, 626, 526, 401, 652, 647, 847,
  2911. 847, 847, 847, 847, 847, 847, 847, 847, 847, 847,
  2912. 437, 438, 441, 447, 477, 479, 497, 290, 910, 910,
  2913. 400, 400, 486, 880, 880, 263, 913, 910, 303, 255,
  2914. 723, 306, 822, 821, 306, 896, 896, 896, 861, 304,
  2915. 323, 410, 913, 913, 897, 316, 420, 769, 658, 559,
  2916. 879, 671, 536, 324, 466, 565, 311, 311, 311, 801,
  2917. 241, 676, 496, 439, 440, 442, 444, 448, 475, 631,
  2918. 858, 311, 285, 286, 603, 495, 712, 0, 406, 321,
  2919. 0, 0, 0, 314, 0, 0, 429, 0, 0, 0,
  2920. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2921. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2922. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2923. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2924. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2925. 0, 0, 0, 0, 411
  2926. ];
  2927. PHP.Parser.prototype.yygcheck = [
  2928. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2929. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2930. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2931. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2932. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2933. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2934. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2935. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2936. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2937. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  2938. 15, 15, 15, 15, 15, 15, 15, 15, 15, 35,
  2939. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  2940. 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
  2941. 86, 6, 6, 6, 21, 21, 35, 35, 35, 35,
  2942. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  2943. 35, 35, 35, 35, 71, 7, 7, 7, 35, 35,
  2944. 35, 35, 35, 35, 35, 29, 44, 29, 35, 86,
  2945. 86, 12, 12, 12, 12, 12, 12, 12, 12, 75,
  2946. 40, 35, 35, 35, 35, 40, 35, 35, 35, 82,
  2947. 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
  2948. 82, 82, 82, 82, 82, 82, 82, 36, 36, 36,
  2949. 104, 82, 82, 28, 28, 28, 28, 28, 28, 28,
  2950. 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
  2951. 28, 13, 42, 42, 42, 2, 13, 2, 13, 13,
  2952. 5, 5, 5, 13, 13, 13, 54, 13, 13, 13,
  2953. 13, 13, 13, 13, 13, 67, 67, 83, 83, 5,
  2954. 5, 5, 5, 5, 5, 5, 5, 5, 5, 93,
  2955. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  2956. 52, 52, 52, 52, 52, 52, 52, 4, 105, 105,
  2957. 89, 89, 94, 84, 84, 92, 105, 105, 26, 92,
  2958. 71, 4, 91, 91, 4, 84, 84, 84, 97, 30,
  2959. 70, 30, 105, 105, 102, 27, 30, 72, 50, 10,
  2960. 84, 55, 46, 9, 30, 11, 90, 90, 90, 80,
  2961. 30, 56, 30, 85, 85, 85, 85, 85, 85, 43,
  2962. 96, 90, 44, 44, 34, 77, 69, -1, 4, 90,
  2963. -1, -1, -1, 4, -1, -1, 4, -1, -1, -1,
  2964. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2965. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2966. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2967. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2968. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2969. -1, -1, -1, -1, 71
  2970. ];
  2971. PHP.Parser.prototype.yygbase = [
  2972. 0, 0, -286, 0, 10, 239, 130, 154, 0, -10,
  2973. 25, -23, -29, -289, 0, -30, 0, 0, 0, 0,
  2974. 0, 83, 0, 0, 0, 0, 245, 84, -11, 142,
  2975. -28, 0, 0, 0, -13, -88, -42, 0, 0, 0,
  2976. -344, 0, -38, -12, -188, 0, 23, 0, 0, 0,
  2977. 66, 0, 247, 0, 205, 24, -18, 0, 0, 0,
  2978. 0, 0, 0, 0, 0, 0, 0, 13, 0, -15,
  2979. 85, 74, 70, 0, 0, 148, 0, -14, 0, 0,
  2980. -6, 0, -35, 11, 47, 278, -77, 0, 0, 44,
  2981. 68, 43, 38, 72, 94, 0, -16, 109, 0, 0,
  2982. 0, 0, 87, 0, 170, 34, 0
  2983. ];
  2984. PHP.Parser.prototype.yygdefault = [
  2985. -32768, 362, 3, 546, 382, 570, 571, 572, 307, 305,
  2986. 560, 566, 467, 4, 568, 140, 295, 575, 296, 500,
  2987. 577, 414, 579, 580, 308, 309, 415, 315, 216, 593,
  2988. 503, 313, 596, 357, 602, 301, 449, 383, 350, 461,
  2989. 221, 423, 456, 630, 282, 638, 540, 646, 649, 450,
  2990. 657, 352, 433, 434, 667, 672, 677, 680, 334, 325,
  2991. 474, 684, 685, 256, 689, 511, 512, 703, 242, 711,
  2992. 317, 724, 342, 788, 790, 397, 408, 484, 797, 326,
  2993. 800, 384, 385, 386, 387, 435, 818, 815, 289, 866,
  2994. 287, 443, 254, 853, 468, 356, 903, 862, 288, 388,
  2995. 389, 302, 898, 341, 905, 912, 458
  2996. ];
  2997. PHP.Parser.prototype.yylhs = [
  2998. 0, 1, 2, 2, 4, 4, 3, 3, 3, 3,
  2999. 3, 3, 3, 3, 3, 8, 8, 10, 10, 10,
  3000. 10, 9, 9, 11, 13, 13, 14, 14, 14, 14,
  3001. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  3002. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  3003. 5, 5, 5, 5, 5, 5, 5, 5, 33, 33,
  3004. 34, 27, 27, 30, 30, 6, 7, 7, 7, 37,
  3005. 37, 37, 38, 38, 41, 41, 39, 39, 42, 42,
  3006. 22, 22, 29, 29, 32, 32, 31, 31, 43, 23,
  3007. 23, 23, 23, 44, 44, 45, 45, 46, 46, 20,
  3008. 20, 16, 16, 47, 18, 18, 48, 17, 17, 19,
  3009. 19, 36, 36, 49, 49, 50, 50, 51, 51, 51,
  3010. 51, 52, 52, 53, 53, 54, 54, 24, 24, 55,
  3011. 55, 55, 25, 25, 56, 56, 40, 40, 57, 57,
  3012. 57, 57, 62, 62, 63, 63, 64, 64, 64, 64,
  3013. 65, 66, 66, 61, 61, 58, 58, 60, 60, 68,
  3014. 68, 67, 67, 67, 67, 67, 67, 59, 59, 69,
  3015. 69, 26, 26, 21, 21, 15, 15, 15, 15, 15,
  3016. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3017. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3018. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3019. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3020. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3021. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3022. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3023. 15, 15, 15, 71, 77, 77, 79, 79, 80, 81,
  3024. 81, 81, 81, 81, 81, 86, 86, 35, 35, 35,
  3025. 72, 72, 87, 87, 82, 82, 88, 88, 88, 88,
  3026. 88, 73, 73, 73, 76, 76, 76, 78, 78, 93,
  3027. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  3028. 93, 93, 93, 12, 12, 12, 12, 12, 12, 74,
  3029. 74, 74, 74, 94, 94, 96, 96, 95, 95, 97,
  3030. 97, 28, 28, 28, 28, 99, 99, 98, 98, 98,
  3031. 98, 98, 100, 100, 84, 84, 89, 89, 83, 83,
  3032. 101, 101, 101, 101, 90, 90, 90, 90, 85, 85,
  3033. 91, 91, 91, 70, 70, 102, 102, 102, 75, 75,
  3034. 103, 103, 104, 104, 104, 104, 92, 92, 92, 92,
  3035. 105, 105, 105, 105, 105, 105, 105, 106, 106, 106
  3036. ];
  3037. PHP.Parser.prototype.yylen = [
  3038. 1, 1, 2, 0, 1, 3, 1, 1, 1, 1,
  3039. 3, 5, 4, 3, 3, 3, 1, 1, 3, 2,
  3040. 4, 3, 1, 3, 2, 0, 1, 1, 1, 1,
  3041. 3, 7, 10, 5, 7, 9, 5, 2, 3, 2,
  3042. 3, 2, 3, 3, 3, 3, 1, 2, 5, 7,
  3043. 8, 10, 5, 1, 5, 3, 3, 2, 1, 2,
  3044. 8, 1, 3, 0, 1, 9, 7, 6, 5, 1,
  3045. 2, 2, 0, 2, 0, 2, 0, 2, 1, 3,
  3046. 1, 4, 1, 4, 1, 4, 1, 3, 3, 3,
  3047. 4, 4, 5, 0, 2, 4, 3, 1, 1, 1,
  3048. 4, 0, 2, 5, 0, 2, 6, 0, 2, 0,
  3049. 3, 1, 0, 1, 3, 3, 5, 0, 1, 1,
  3050. 1, 1, 0, 1, 3, 1, 2, 3, 1, 1,
  3051. 2, 4, 3, 1, 1, 3, 2, 0, 3, 3,
  3052. 8, 3, 1, 3, 0, 2, 4, 5, 4, 4,
  3053. 3, 1, 1, 1, 3, 1, 1, 0, 1, 1,
  3054. 2, 1, 1, 1, 1, 1, 1, 1, 3, 1,
  3055. 3, 3, 1, 0, 1, 1, 6, 3, 4, 4,
  3056. 1, 2, 3, 3, 3, 3, 3, 3, 3, 3,
  3057. 3, 3, 3, 2, 2, 2, 2, 3, 3, 3,
  3058. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  3059. 3, 3, 3, 2, 2, 2, 2, 3, 3, 3,
  3060. 3, 3, 3, 3, 3, 3, 3, 3, 5, 4,
  3061. 4, 4, 2, 2, 4, 2, 2, 2, 2, 2,
  3062. 2, 2, 2, 2, 2, 2, 1, 4, 3, 3,
  3063. 2, 9, 10, 3, 0, 4, 1, 3, 2, 4,
  3064. 6, 8, 4, 4, 4, 1, 1, 1, 2, 3,
  3065. 1, 1, 1, 1, 1, 1, 0, 3, 3, 4,
  3066. 4, 0, 2, 3, 0, 1, 1, 0, 3, 1,
  3067. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  3068. 3, 2, 1, 1, 3, 2, 2, 4, 3, 1,
  3069. 3, 3, 3, 0, 2, 0, 1, 3, 1, 3,
  3070. 1, 1, 1, 1, 1, 6, 4, 3, 6, 4,
  3071. 4, 4, 1, 3, 1, 2, 1, 1, 4, 1,
  3072. 3, 6, 4, 4, 4, 4, 1, 4, 0, 1,
  3073. 1, 3, 1, 3, 1, 1, 4, 0, 0, 2,
  3074. 3, 1, 3, 1, 4, 2, 2, 2, 1, 2,
  3075. 1, 4, 3, 3, 3, 6, 3, 1, 1, 1
  3076. ];
  3077. PHP.Parser.prototype.yyn0 = function () {
  3078. this.yyval = this.yyastk[ this.stackPos ];
  3079. };
  3080. PHP.Parser.prototype.yyn1 = function ( attributes ) {
  3081. this.yyval = this.Stmt_Namespace_postprocess(this.yyastk[ this.stackPos-(1-1) ]);
  3082. };
  3083. PHP.Parser.prototype.yyn2 = function ( attributes ) {
  3084. 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) ]; };
  3085. };
  3086. PHP.Parser.prototype.yyn3 = function ( attributes ) {
  3087. this.yyval = [];
  3088. };
  3089. PHP.Parser.prototype.yyn4 = function ( attributes ) {
  3090. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3091. };
  3092. PHP.Parser.prototype.yyn5 = function ( attributes ) {
  3093. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3094. };
  3095. PHP.Parser.prototype.yyn6 = function ( attributes ) {
  3096. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3097. };
  3098. PHP.Parser.prototype.yyn7 = function ( attributes ) {
  3099. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3100. };
  3101. PHP.Parser.prototype.yyn8 = function ( attributes ) {
  3102. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3103. };
  3104. PHP.Parser.prototype.yyn9 = function ( attributes ) {
  3105. this.yyval = this.Node_Stmt_HaltCompiler(attributes);
  3106. };
  3107. PHP.Parser.prototype.yyn10 = function ( attributes ) {
  3108. this.yyval = this.Node_Stmt_Namespace(this.Node_Name(this.yyastk[ this.stackPos-(3-2) ], attributes), null, attributes);
  3109. };
  3110. PHP.Parser.prototype.yyn11 = function ( attributes ) {
  3111. this.yyval = this.Node_Stmt_Namespace(this.Node_Name(this.yyastk[ this.stackPos-(5-2) ], attributes), this.yyastk[ this.stackPos-(5-4) ], attributes);
  3112. };
  3113. PHP.Parser.prototype.yyn12 = function ( attributes ) {
  3114. this.yyval = this.Node_Stmt_Namespace(null, this.yyastk[ this.stackPos-(4-3) ], attributes);
  3115. };
  3116. PHP.Parser.prototype.yyn13 = function ( attributes ) {
  3117. this.yyval = this.Node_Stmt_Use(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3118. };
  3119. PHP.Parser.prototype.yyn14 = function ( attributes ) {
  3120. this.yyval = this.Node_Stmt_Const(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3121. };
  3122. PHP.Parser.prototype.yyn15 = function ( attributes ) {
  3123. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3124. };
  3125. PHP.Parser.prototype.yyn16 = function ( attributes ) {
  3126. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3127. };
  3128. PHP.Parser.prototype.yyn17 = function ( attributes ) {
  3129. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(1-1) ], attributes), null, attributes);
  3130. };
  3131. PHP.Parser.prototype.yyn18 = function ( attributes ) {
  3132. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(3-1) ], attributes), this.yyastk[ this.stackPos-(3-3) ], attributes);
  3133. };
  3134. PHP.Parser.prototype.yyn19 = function ( attributes ) {
  3135. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(2-2) ], attributes), null, attributes);
  3136. };
  3137. PHP.Parser.prototype.yyn20 = function ( attributes ) {
  3138. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(4-2) ], attributes), this.yyastk[ this.stackPos-(4-4) ], attributes);
  3139. };
  3140. PHP.Parser.prototype.yyn21 = function ( attributes ) {
  3141. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3142. };
  3143. PHP.Parser.prototype.yyn22 = function ( attributes ) {
  3144. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3145. };
  3146. PHP.Parser.prototype.yyn23 = function ( attributes ) {
  3147. this.yyval = this.Node_Const(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3148. };
  3149. PHP.Parser.prototype.yyn24 = function ( attributes ) {
  3150. 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) ]; };
  3151. };
  3152. PHP.Parser.prototype.yyn25 = function ( attributes ) {
  3153. this.yyval = [];
  3154. };
  3155. PHP.Parser.prototype.yyn26 = function ( attributes ) {
  3156. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3157. };
  3158. PHP.Parser.prototype.yyn27 = function ( attributes ) {
  3159. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3160. };
  3161. PHP.Parser.prototype.yyn28 = function ( attributes ) {
  3162. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3163. };
  3164. PHP.Parser.prototype.yyn29 = function ( attributes ) {
  3165. throw new Error('__halt_compiler() can only be used from the outermost scope');
  3166. };
  3167. PHP.Parser.prototype.yyn30 = function ( attributes ) {
  3168. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3169. };
  3170. PHP.Parser.prototype.yyn31 = function ( attributes ) {
  3171. 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);
  3172. };
  3173. PHP.Parser.prototype.yyn32 = function ( attributes ) {
  3174. 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);
  3175. };
  3176. PHP.Parser.prototype.yyn33 = function ( attributes ) {
  3177. this.yyval = this.Node_Stmt_While(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3178. };
  3179. PHP.Parser.prototype.yyn34 = function ( attributes ) {
  3180. 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);
  3181. };
  3182. PHP.Parser.prototype.yyn35 = function ( attributes ) {
  3183. 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);
  3184. };
  3185. PHP.Parser.prototype.yyn36 = function ( attributes ) {
  3186. this.yyval = this.Node_Stmt_Switch(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3187. };
  3188. PHP.Parser.prototype.yyn37 = function ( attributes ) {
  3189. this.yyval = this.Node_Stmt_Break(null, attributes);
  3190. };
  3191. PHP.Parser.prototype.yyn38 = function ( attributes ) {
  3192. this.yyval = this.Node_Stmt_Break(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3193. };
  3194. PHP.Parser.prototype.yyn39 = function ( attributes ) {
  3195. this.yyval = this.Node_Stmt_Continue(null, attributes);
  3196. };
  3197. PHP.Parser.prototype.yyn40 = function ( attributes ) {
  3198. this.yyval = this.Node_Stmt_Continue(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3199. };
  3200. PHP.Parser.prototype.yyn41 = function ( attributes ) {
  3201. this.yyval = this.Node_Stmt_Return(null, attributes);
  3202. };
  3203. PHP.Parser.prototype.yyn42 = function ( attributes ) {
  3204. this.yyval = this.Node_Stmt_Return(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3205. };
  3206. PHP.Parser.prototype.yyn43 = function ( attributes ) {
  3207. this.yyval = this.Node_Stmt_Global(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3208. };
  3209. PHP.Parser.prototype.yyn44 = function ( attributes ) {
  3210. this.yyval = this.Node_Stmt_Static(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3211. };
  3212. PHP.Parser.prototype.yyn45 = function ( attributes ) {
  3213. this.yyval = this.Node_Stmt_Echo(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3214. };
  3215. PHP.Parser.prototype.yyn46 = function ( attributes ) {
  3216. this.yyval = this.Node_Stmt_InlineHTML(this.yyastk[ this.stackPos-(1-1) ], attributes);
  3217. };
  3218. PHP.Parser.prototype.yyn47 = function ( attributes ) {
  3219. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3220. };
  3221. PHP.Parser.prototype.yyn48 = function ( attributes ) {
  3222. this.yyval = this.Node_Stmt_Unset(this.yyastk[ this.stackPos-(5-3) ], attributes);
  3223. };
  3224. PHP.Parser.prototype.yyn49 = function ( attributes ) {
  3225. 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);
  3226. };
  3227. PHP.Parser.prototype.yyn50 = function ( attributes ) {
  3228. 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);
  3229. };
  3230. PHP.Parser.prototype.yyn51 = function ( attributes ) {
  3231. 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);
  3232. };
  3233. PHP.Parser.prototype.yyn52 = function ( attributes ) {
  3234. this.yyval = this.Node_Stmt_Declare(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3235. };
  3236. PHP.Parser.prototype.yyn53 = function ( attributes ) {
  3237. this.yyval = [];
  3238. };
  3239. PHP.Parser.prototype.yyn54 = function ( attributes ) {
  3240. this.yyval = this.Node_Stmt_TryCatch(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3241. };
  3242. PHP.Parser.prototype.yyn55 = function ( attributes ) {
  3243. this.yyval = this.Node_Stmt_Throw(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3244. };
  3245. PHP.Parser.prototype.yyn56 = function ( attributes ) {
  3246. this.yyval = this.Node_Stmt_Goto(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3247. };
  3248. PHP.Parser.prototype.yyn57 = function ( attributes ) {
  3249. this.yyval = this.Node_Stmt_Label(this.yyastk[ this.stackPos-(2-1) ], attributes);
  3250. };
  3251. PHP.Parser.prototype.yyn58 = function ( attributes ) {
  3252. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3253. };
  3254. PHP.Parser.prototype.yyn59 = function ( attributes ) {
  3255. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3256. };
  3257. PHP.Parser.prototype.yyn60 = function ( attributes ) {
  3258. 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);
  3259. };
  3260. PHP.Parser.prototype.yyn61 = function ( attributes ) {
  3261. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3262. };
  3263. PHP.Parser.prototype.yyn62 = function ( attributes ) {
  3264. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3265. };
  3266. PHP.Parser.prototype.yyn63 = function ( attributes ) {
  3267. this.yyval = false;
  3268. };
  3269. PHP.Parser.prototype.yyn64 = function ( attributes ) {
  3270. this.yyval = true;
  3271. };
  3272. PHP.Parser.prototype.yyn65 = function ( attributes ) {
  3273. 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);
  3274. };
  3275. PHP.Parser.prototype.yyn66 = function ( attributes ) {
  3276. 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);
  3277. };
  3278. PHP.Parser.prototype.yyn67 = function ( attributes ) {
  3279. 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);
  3280. };
  3281. PHP.Parser.prototype.yyn68 = function ( attributes ) {
  3282. this.yyval = this.Node_Stmt_Trait(this.yyastk[ this.stackPos-(5-2) ], this.yyastk[ this.stackPos-(5-4) ], attributes);
  3283. };
  3284. PHP.Parser.prototype.yyn69 = function ( attributes ) {
  3285. this.yyval = 0;
  3286. };
  3287. PHP.Parser.prototype.yyn70 = function ( attributes ) {
  3288. this.yyval = this.MODIFIER_ABSTRACT;
  3289. };
  3290. PHP.Parser.prototype.yyn71 = function ( attributes ) {
  3291. this.yyval = this.MODIFIER_FINAL;
  3292. };
  3293. PHP.Parser.prototype.yyn72 = function ( attributes ) {
  3294. this.yyval = null;
  3295. };
  3296. PHP.Parser.prototype.yyn73 = function ( attributes ) {
  3297. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  3298. };
  3299. PHP.Parser.prototype.yyn74 = function ( attributes ) {
  3300. this.yyval = [];
  3301. };
  3302. PHP.Parser.prototype.yyn75 = function ( attributes ) {
  3303. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  3304. };
  3305. PHP.Parser.prototype.yyn76 = function ( attributes ) {
  3306. this.yyval = [];
  3307. };
  3308. PHP.Parser.prototype.yyn77 = function ( attributes ) {
  3309. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  3310. };
  3311. PHP.Parser.prototype.yyn78 = function ( attributes ) {
  3312. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3313. };
  3314. PHP.Parser.prototype.yyn79 = function ( attributes ) {
  3315. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3316. };
  3317. PHP.Parser.prototype.yyn80 = function ( attributes ) {
  3318. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3319. };
  3320. PHP.Parser.prototype.yyn81 = function ( attributes ) {
  3321. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3322. };
  3323. PHP.Parser.prototype.yyn82 = function ( attributes ) {
  3324. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3325. };
  3326. PHP.Parser.prototype.yyn83 = function ( attributes ) {
  3327. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3328. };
  3329. PHP.Parser.prototype.yyn84 = function ( attributes ) {
  3330. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3331. };
  3332. PHP.Parser.prototype.yyn85 = function ( attributes ) {
  3333. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3334. };
  3335. PHP.Parser.prototype.yyn86 = function ( attributes ) {
  3336. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3337. };
  3338. PHP.Parser.prototype.yyn87 = function ( attributes ) {
  3339. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3340. };
  3341. PHP.Parser.prototype.yyn88 = function ( attributes ) {
  3342. this.yyval = this.Node_Stmt_DeclareDeclare(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3343. };
  3344. PHP.Parser.prototype.yyn89 = function ( attributes ) {
  3345. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3346. };
  3347. PHP.Parser.prototype.yyn90 = function ( attributes ) {
  3348. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  3349. };
  3350. PHP.Parser.prototype.yyn91 = function ( attributes ) {
  3351. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3352. };
  3353. PHP.Parser.prototype.yyn92 = function ( attributes ) {
  3354. this.yyval = this.yyastk[ this.stackPos-(5-3) ];
  3355. };
  3356. PHP.Parser.prototype.yyn93 = function ( attributes ) {
  3357. this.yyval = [];
  3358. };
  3359. PHP.Parser.prototype.yyn94 = function ( attributes ) {
  3360. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3361. };
  3362. PHP.Parser.prototype.yyn95 = function ( attributes ) {
  3363. this.yyval = this.Node_Stmt_Case(this.yyastk[ this.stackPos-(4-2) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  3364. };
  3365. PHP.Parser.prototype.yyn96 = function ( attributes ) {
  3366. this.yyval = this.Node_Stmt_Case(null, this.yyastk[ this.stackPos-(3-3) ], attributes);
  3367. };
  3368. PHP.Parser.prototype.yyn97 = function () {
  3369. this.yyval = this.yyastk[ this.stackPos ];
  3370. };
  3371. PHP.Parser.prototype.yyn98 = function () {
  3372. this.yyval = this.yyastk[ this.stackPos ];
  3373. };
  3374. PHP.Parser.prototype.yyn99 = function ( attributes ) {
  3375. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3376. };
  3377. PHP.Parser.prototype.yyn100 = function ( attributes ) {
  3378. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3379. };
  3380. PHP.Parser.prototype.yyn101 = function ( attributes ) {
  3381. this.yyval = [];
  3382. };
  3383. PHP.Parser.prototype.yyn102 = function ( attributes ) {
  3384. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3385. };
  3386. PHP.Parser.prototype.yyn103 = function ( attributes ) {
  3387. 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);
  3388. };
  3389. PHP.Parser.prototype.yyn104 = function ( attributes ) {
  3390. this.yyval = [];
  3391. };
  3392. PHP.Parser.prototype.yyn105 = function ( attributes ) {
  3393. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3394. };
  3395. PHP.Parser.prototype.yyn106 = function ( attributes ) {
  3396. this.yyval = this.Node_Stmt_ElseIf(this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-6) ], attributes);
  3397. };
  3398. PHP.Parser.prototype.yyn107 = function ( attributes ) {
  3399. this.yyval = null;
  3400. };
  3401. PHP.Parser.prototype.yyn108 = function ( attributes ) {
  3402. 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);
  3403. };
  3404. PHP.Parser.prototype.yyn109 = function ( attributes ) {
  3405. this.yyval = null;
  3406. };
  3407. PHP.Parser.prototype.yyn110 = function ( attributes ) {
  3408. this.yyval = this.Node_Stmt_Else(this.yyastk[ this.stackPos-(3-3) ], attributes);
  3409. };
  3410. PHP.Parser.prototype.yyn111 = function ( attributes ) {
  3411. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3412. };
  3413. PHP.Parser.prototype.yyn112 = function ( attributes ) {
  3414. this.yyval = [];
  3415. };
  3416. PHP.Parser.prototype.yyn113 = function ( attributes ) {
  3417. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3418. };
  3419. PHP.Parser.prototype.yyn114 = function ( attributes ) {
  3420. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3421. };
  3422. PHP.Parser.prototype.yyn115 = function ( attributes ) {
  3423. 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);
  3424. };
  3425. PHP.Parser.prototype.yyn116 = function ( attributes ) {
  3426. 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);
  3427. };
  3428. PHP.Parser.prototype.yyn117 = function ( attributes ) {
  3429. this.yyval = null;
  3430. };
  3431. PHP.Parser.prototype.yyn118 = function ( attributes ) {
  3432. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3433. };
  3434. PHP.Parser.prototype.yyn119 = function ( attributes ) {
  3435. this.yyval = 'array';
  3436. };
  3437. PHP.Parser.prototype.yyn120 = function ( attributes ) {
  3438. this.yyval = 'callable';
  3439. };
  3440. PHP.Parser.prototype.yyn121 = function ( attributes ) {
  3441. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3442. };
  3443. PHP.Parser.prototype.yyn122 = function ( attributes ) {
  3444. this.yyval = [];
  3445. };
  3446. PHP.Parser.prototype.yyn123 = function ( attributes ) {
  3447. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3448. };
  3449. PHP.Parser.prototype.yyn124 = function ( attributes ) {
  3450. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3451. };
  3452. PHP.Parser.prototype.yyn125 = function ( attributes ) {
  3453. this.yyval = this.Node_Arg(this.yyastk[ this.stackPos-(1-1) ], false, attributes);
  3454. };
  3455. PHP.Parser.prototype.yyn126 = function ( attributes ) {
  3456. this.yyval = this.Node_Arg(this.yyastk[ this.stackPos-(2-2) ], true, attributes);
  3457. };
  3458. PHP.Parser.prototype.yyn127 = function ( attributes ) {
  3459. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3460. };
  3461. PHP.Parser.prototype.yyn128 = function ( attributes ) {
  3462. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3463. };
  3464. PHP.Parser.prototype.yyn129 = function ( attributes ) {
  3465. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  3466. };
  3467. PHP.Parser.prototype.yyn130 = function ( attributes ) {
  3468. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3469. };
  3470. PHP.Parser.prototype.yyn131 = function ( attributes ) {
  3471. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-3) ], attributes);
  3472. };
  3473. PHP.Parser.prototype.yyn132 = function ( attributes ) {
  3474. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3475. };
  3476. PHP.Parser.prototype.yyn133 = function ( attributes ) {
  3477. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3478. };
  3479. PHP.Parser.prototype.yyn134 = function ( attributes ) {
  3480. this.yyval = this.Node_Stmt_StaticVar(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), null, attributes);
  3481. };
  3482. PHP.Parser.prototype.yyn135 = function ( attributes ) {
  3483. this.yyval = this.Node_Stmt_StaticVar(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), this.yyastk[ this.stackPos-(3-3) ], attributes);
  3484. };
  3485. PHP.Parser.prototype.yyn136 = function ( attributes ) {
  3486. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3487. };
  3488. PHP.Parser.prototype.yyn137 = function ( attributes ) {
  3489. this.yyval = [];
  3490. };
  3491. PHP.Parser.prototype.yyn138 = function ( attributes ) {
  3492. this.yyval = this.Node_Stmt_Property(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ], attributes);
  3493. };
  3494. PHP.Parser.prototype.yyn139 = function ( attributes ) {
  3495. this.yyval = this.Node_Stmt_ClassConst(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3496. };
  3497. PHP.Parser.prototype.yyn140 = function ( attributes ) {
  3498. 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);
  3499. };
  3500. PHP.Parser.prototype.yyn141 = function ( attributes ) {
  3501. this.yyval = this.Node_Stmt_TraitUse(this.yyastk[ this.stackPos-(3-2) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3502. };
  3503. PHP.Parser.prototype.yyn142 = function ( attributes ) {
  3504. this.yyval = [];
  3505. };
  3506. PHP.Parser.prototype.yyn143 = function ( attributes ) {
  3507. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3508. };
  3509. PHP.Parser.prototype.yyn144 = function ( attributes ) {
  3510. this.yyval = [];
  3511. };
  3512. PHP.Parser.prototype.yyn145 = function ( attributes ) {
  3513. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3514. };
  3515. PHP.Parser.prototype.yyn146 = function ( attributes ) {
  3516. 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);
  3517. };
  3518. PHP.Parser.prototype.yyn147 = function ( attributes ) {
  3519. 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);
  3520. };
  3521. PHP.Parser.prototype.yyn148 = function ( attributes ) {
  3522. 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);
  3523. };
  3524. PHP.Parser.prototype.yyn149 = function ( attributes ) {
  3525. 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);
  3526. };
  3527. PHP.Parser.prototype.yyn150 = function ( attributes ) {
  3528. this.yyval = array(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ]);
  3529. };
  3530. PHP.Parser.prototype.yyn151 = function ( attributes ) {
  3531. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3532. };
  3533. PHP.Parser.prototype.yyn152 = function ( attributes ) {
  3534. this.yyval = array(null, this.yyastk[ this.stackPos-(1-1) ]);
  3535. };
  3536. PHP.Parser.prototype.yyn153 = function ( attributes ) {
  3537. this.yyval = null;
  3538. };
  3539. PHP.Parser.prototype.yyn154 = function ( attributes ) {
  3540. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3541. };
  3542. PHP.Parser.prototype.yyn155 = function ( attributes ) {
  3543. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3544. };
  3545. PHP.Parser.prototype.yyn156 = function ( attributes ) {
  3546. this.yyval = this.MODIFIER_PUBLIC;
  3547. };
  3548. PHP.Parser.prototype.yyn157 = function ( attributes ) {
  3549. this.yyval = this.MODIFIER_PUBLIC;
  3550. };
  3551. PHP.Parser.prototype.yyn158 = function ( attributes ) {
  3552. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3553. };
  3554. PHP.Parser.prototype.yyn159 = function ( attributes ) {
  3555. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3556. };
  3557. PHP.Parser.prototype.yyn160 = function ( attributes ) {
  3558. 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) ];
  3559. };
  3560. PHP.Parser.prototype.yyn161 = function ( attributes ) {
  3561. this.yyval = this.MODIFIER_PUBLIC;
  3562. };
  3563. PHP.Parser.prototype.yyn162 = function ( attributes ) {
  3564. this.yyval = this.MODIFIER_PROTECTED;
  3565. };
  3566. PHP.Parser.prototype.yyn163 = function ( attributes ) {
  3567. this.yyval = this.MODIFIER_PRIVATE;
  3568. };
  3569. PHP.Parser.prototype.yyn164 = function ( attributes ) {
  3570. this.yyval = this.MODIFIER_STATIC;
  3571. };
  3572. PHP.Parser.prototype.yyn165 = function ( attributes ) {
  3573. this.yyval = this.MODIFIER_ABSTRACT;
  3574. };
  3575. PHP.Parser.prototype.yyn166 = function ( attributes ) {
  3576. this.yyval = this.MODIFIER_FINAL;
  3577. };
  3578. PHP.Parser.prototype.yyn167 = function ( attributes ) {
  3579. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3580. };
  3581. PHP.Parser.prototype.yyn168 = function ( attributes ) {
  3582. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3583. };
  3584. PHP.Parser.prototype.yyn169 = function ( attributes ) {
  3585. this.yyval = this.Node_Stmt_PropertyProperty(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), null, attributes);
  3586. };
  3587. PHP.Parser.prototype.yyn170 = function ( attributes ) {
  3588. this.yyval = this.Node_Stmt_PropertyProperty(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), this.yyastk[ this.stackPos-(3-3) ], attributes);
  3589. };
  3590. PHP.Parser.prototype.yyn171 = function ( attributes ) {
  3591. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3592. };
  3593. PHP.Parser.prototype.yyn172 = function ( attributes ) {
  3594. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3595. };
  3596. PHP.Parser.prototype.yyn173 = function ( attributes ) {
  3597. this.yyval = [];
  3598. };
  3599. PHP.Parser.prototype.yyn174 = function ( attributes ) {
  3600. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3601. };
  3602. PHP.Parser.prototype.yyn175 = function ( attributes ) {
  3603. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3604. };
  3605. PHP.Parser.prototype.yyn176 = function ( attributes ) {
  3606. this.yyval = this.Node_Expr_AssignList(this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-6) ], attributes);
  3607. };
  3608. PHP.Parser.prototype.yyn177 = function ( attributes ) {
  3609. this.yyval = this.Node_Expr_Assign(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3610. };
  3611. PHP.Parser.prototype.yyn178 = function ( attributes ) {
  3612. this.yyval = this.Node_Expr_AssignRef(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  3613. };
  3614. PHP.Parser.prototype.yyn179 = function ( attributes ) {
  3615. this.yyval = this.Node_Expr_AssignRef(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  3616. };
  3617. PHP.Parser.prototype.yyn180 = function ( attributes ) {
  3618. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3619. };
  3620. PHP.Parser.prototype.yyn181 = function ( attributes ) {
  3621. this.yyval = this.Node_Expr_Clone(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3622. };
  3623. PHP.Parser.prototype.yyn182 = function ( attributes ) {
  3624. this.yyval = this.Node_Expr_AssignPlus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3625. };
  3626. PHP.Parser.prototype.yyn183 = function ( attributes ) {
  3627. this.yyval = this.Node_Expr_AssignMinus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3628. };
  3629. PHP.Parser.prototype.yyn184 = function ( attributes ) {
  3630. this.yyval = this.Node_Expr_AssignMul(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3631. };
  3632. PHP.Parser.prototype.yyn185 = function ( attributes ) {
  3633. this.yyval = this.Node_Expr_AssignDiv(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3634. };
  3635. PHP.Parser.prototype.yyn186 = function ( attributes ) {
  3636. this.yyval = this.Node_Expr_AssignConcat(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3637. };
  3638. PHP.Parser.prototype.yyn187 = function ( attributes ) {
  3639. this.yyval = this.Node_Expr_AssignMod(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3640. };
  3641. PHP.Parser.prototype.yyn188 = function ( attributes ) {
  3642. this.yyval = this.Node_Expr_AssignBitwiseAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3643. };
  3644. PHP.Parser.prototype.yyn189 = function ( attributes ) {
  3645. this.yyval = this.Node_Expr_AssignBitwiseOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3646. };
  3647. PHP.Parser.prototype.yyn190 = function ( attributes ) {
  3648. this.yyval = this.Node_Expr_AssignBitwiseXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3649. };
  3650. PHP.Parser.prototype.yyn191 = function ( attributes ) {
  3651. this.yyval = this.Node_Expr_AssignShiftLeft(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3652. };
  3653. PHP.Parser.prototype.yyn192 = function ( attributes ) {
  3654. this.yyval = this.Node_Expr_AssignShiftRight(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3655. };
  3656. PHP.Parser.prototype.yyn193 = function ( attributes ) {
  3657. this.yyval = this.Node_Expr_PostInc(this.yyastk[ this.stackPos-(2-1) ], attributes);
  3658. };
  3659. PHP.Parser.prototype.yyn194 = function ( attributes ) {
  3660. this.yyval = this.Node_Expr_PreInc(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3661. };
  3662. PHP.Parser.prototype.yyn195 = function ( attributes ) {
  3663. this.yyval = this.Node_Expr_PostDec(this.yyastk[ this.stackPos-(2-1) ], attributes);
  3664. };
  3665. PHP.Parser.prototype.yyn196 = function ( attributes ) {
  3666. this.yyval = this.Node_Expr_PreDec(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3667. };
  3668. PHP.Parser.prototype.yyn197 = function ( attributes ) {
  3669. this.yyval = this.Node_Expr_BooleanOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3670. };
  3671. PHP.Parser.prototype.yyn198 = function ( attributes ) {
  3672. this.yyval = this.Node_Expr_BooleanAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3673. };
  3674. PHP.Parser.prototype.yyn199 = function ( attributes ) {
  3675. this.yyval = this.Node_Expr_LogicalOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3676. };
  3677. PHP.Parser.prototype.yyn200 = function ( attributes ) {
  3678. this.yyval = this.Node_Expr_LogicalAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3679. };
  3680. PHP.Parser.prototype.yyn201 = function ( attributes ) {
  3681. this.yyval = this.Node_Expr_LogicalXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3682. };
  3683. PHP.Parser.prototype.yyn202 = function ( attributes ) {
  3684. this.yyval = this.Node_Expr_BitwiseOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3685. };
  3686. PHP.Parser.prototype.yyn203 = function ( attributes ) {
  3687. this.yyval = this.Node_Expr_BitwiseAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3688. };
  3689. PHP.Parser.prototype.yyn204 = function ( attributes ) {
  3690. this.yyval = this.Node_Expr_BitwiseXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3691. };
  3692. PHP.Parser.prototype.yyn205 = function ( attributes ) {
  3693. this.yyval = this.Node_Expr_Concat(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3694. };
  3695. PHP.Parser.prototype.yyn206 = function ( attributes ) {
  3696. this.yyval = this.Node_Expr_Plus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3697. };
  3698. PHP.Parser.prototype.yyn207 = function ( attributes ) {
  3699. this.yyval = this.Node_Expr_Minus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3700. };
  3701. PHP.Parser.prototype.yyn208 = function ( attributes ) {
  3702. this.yyval = this.Node_Expr_Mul(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3703. };
  3704. PHP.Parser.prototype.yyn209 = function ( attributes ) {
  3705. this.yyval = this.Node_Expr_Div(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3706. };
  3707. PHP.Parser.prototype.yyn210 = function ( attributes ) {
  3708. this.yyval = this.Node_Expr_Mod(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3709. };
  3710. PHP.Parser.prototype.yyn211 = function ( attributes ) {
  3711. this.yyval = this.Node_Expr_ShiftLeft(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3712. };
  3713. PHP.Parser.prototype.yyn212 = function ( attributes ) {
  3714. this.yyval = this.Node_Expr_ShiftRight(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3715. };
  3716. PHP.Parser.prototype.yyn213 = function ( attributes ) {
  3717. this.yyval = this.Node_Expr_UnaryPlus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3718. };
  3719. PHP.Parser.prototype.yyn214 = function ( attributes ) {
  3720. this.yyval = this.Node_Expr_UnaryMinus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3721. };
  3722. PHP.Parser.prototype.yyn215 = function ( attributes ) {
  3723. this.yyval = this.Node_Expr_BooleanNot(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3724. };
  3725. PHP.Parser.prototype.yyn216 = function ( attributes ) {
  3726. this.yyval = this.Node_Expr_BitwiseNot(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3727. };
  3728. PHP.Parser.prototype.yyn217 = function ( attributes ) {
  3729. this.yyval = this.Node_Expr_Identical(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3730. };
  3731. PHP.Parser.prototype.yyn218 = function ( attributes ) {
  3732. this.yyval = this.Node_Expr_NotIdentical(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3733. };
  3734. PHP.Parser.prototype.yyn219 = function ( attributes ) {
  3735. this.yyval = this.Node_Expr_Equal(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3736. };
  3737. PHP.Parser.prototype.yyn220 = function ( attributes ) {
  3738. this.yyval = this.Node_Expr_NotEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3739. };
  3740. PHP.Parser.prototype.yyn221 = function ( attributes ) {
  3741. this.yyval = this.Node_Expr_Smaller(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3742. };
  3743. PHP.Parser.prototype.yyn222 = function ( attributes ) {
  3744. this.yyval = this.Node_Expr_SmallerOrEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3745. };
  3746. PHP.Parser.prototype.yyn223 = function ( attributes ) {
  3747. this.yyval = this.Node_Expr_Greater(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3748. };
  3749. PHP.Parser.prototype.yyn224 = function ( attributes ) {
  3750. this.yyval = this.Node_Expr_GreaterOrEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3751. };
  3752. PHP.Parser.prototype.yyn225 = function ( attributes ) {
  3753. this.yyval = this.Node_Expr_Instanceof(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3754. };
  3755. PHP.Parser.prototype.yyn226 = function ( attributes ) {
  3756. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3757. };
  3758. PHP.Parser.prototype.yyn227 = function ( attributes ) {
  3759. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3760. };
  3761. PHP.Parser.prototype.yyn228 = function ( attributes ) {
  3762. 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);
  3763. };
  3764. PHP.Parser.prototype.yyn229 = function ( attributes ) {
  3765. this.yyval = this.Node_Expr_Ternary(this.yyastk[ this.stackPos-(4-1) ], null, this.yyastk[ this.stackPos-(4-4) ], attributes);
  3766. };
  3767. PHP.Parser.prototype.yyn230 = function ( attributes ) {
  3768. this.yyval = this.Node_Expr_Isset(this.yyastk[ this.stackPos-(4-3) ], attributes);
  3769. };
  3770. PHP.Parser.prototype.yyn231 = function ( attributes ) {
  3771. this.yyval = this.Node_Expr_Empty(this.yyastk[ this.stackPos-(4-3) ], attributes);
  3772. };
  3773. PHP.Parser.prototype.yyn232 = function ( attributes ) {
  3774. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_Include", attributes);
  3775. };
  3776. PHP.Parser.prototype.yyn233 = function ( attributes ) {
  3777. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_IncludeOnce", attributes);
  3778. };
  3779. PHP.Parser.prototype.yyn234 = function ( attributes ) {
  3780. this.yyval = this.Node_Expr_Eval(this.yyastk[ this.stackPos-(4-3) ], attributes);
  3781. };
  3782. PHP.Parser.prototype.yyn235 = function ( attributes ) {
  3783. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_Require", attributes);
  3784. };
  3785. PHP.Parser.prototype.yyn236 = function ( attributes ) {
  3786. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_RequireOnce", attributes);
  3787. };
  3788. PHP.Parser.prototype.yyn237 = function ( attributes ) {
  3789. this.yyval = this.Node_Expr_Cast_Int(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3790. };
  3791. PHP.Parser.prototype.yyn238 = function ( attributes ) {
  3792. this.yyval = this.Node_Expr_Cast_Double(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3793. };
  3794. PHP.Parser.prototype.yyn239 = function ( attributes ) {
  3795. this.yyval = this.Node_Expr_Cast_String(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3796. };
  3797. PHP.Parser.prototype.yyn240 = function ( attributes ) {
  3798. this.yyval = this.Node_Expr_Cast_Array(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3799. };
  3800. PHP.Parser.prototype.yyn241 = function ( attributes ) {
  3801. this.yyval = this.Node_Expr_Cast_Object(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3802. };
  3803. PHP.Parser.prototype.yyn242 = function ( attributes ) {
  3804. this.yyval = this.Node_Expr_Cast_Bool(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3805. };
  3806. PHP.Parser.prototype.yyn243 = function ( attributes ) {
  3807. this.yyval = this.Node_Expr_Cast_Unset(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3808. };
  3809. PHP.Parser.prototype.yyn244 = function ( attributes ) {
  3810. this.yyval = this.Node_Expr_Exit(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3811. };
  3812. PHP.Parser.prototype.yyn245 = function ( attributes ) {
  3813. this.yyval = this.Node_Expr_ErrorSuppress(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3814. };
  3815. PHP.Parser.prototype.yyn246 = function ( attributes ) {
  3816. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3817. };
  3818. PHP.Parser.prototype.yyn247 = function ( attributes ) {
  3819. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(4-3) ], attributes);
  3820. };
  3821. PHP.Parser.prototype.yyn248 = function ( attributes ) {
  3822. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3823. };
  3824. PHP.Parser.prototype.yyn249 = function ( attributes ) {
  3825. this.yyval = this.Node_Expr_ShellExec(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3826. };
  3827. PHP.Parser.prototype.yyn250 = function ( attributes ) {
  3828. this.yyval = this.Node_Expr_Print(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3829. };
  3830. PHP.Parser.prototype.yyn251 = function ( attributes ) {
  3831. 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);
  3832. };
  3833. PHP.Parser.prototype.yyn252 = function ( attributes ) {
  3834. 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);
  3835. };
  3836. PHP.Parser.prototype.yyn253 = function ( attributes ) {
  3837. this.yyval = this.Node_Expr_New(this.yyastk[ this.stackPos-(3-2) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3838. };
  3839. PHP.Parser.prototype.yyn254 = function ( attributes ) {
  3840. this.yyval = [];
  3841. };
  3842. PHP.Parser.prototype.yyn255 = function ( attributes ) {
  3843. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  3844. };
  3845. PHP.Parser.prototype.yyn256 = function ( attributes ) {
  3846. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3847. };
  3848. PHP.Parser.prototype.yyn257 = function ( attributes ) {
  3849. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3850. };
  3851. PHP.Parser.prototype.yyn258 = function ( attributes ) {
  3852. this.yyval = this.Node_Expr_ClosureUse(this.yyastk[ this.stackPos-(2-2) ].substring( 1 ), this.yyastk[ this.stackPos-(2-1) ], attributes);
  3853. };
  3854. PHP.Parser.prototype.yyn259 = function ( attributes ) {
  3855. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3856. };
  3857. PHP.Parser.prototype.yyn260 = function ( attributes ) {
  3858. 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);
  3859. };
  3860. PHP.Parser.prototype.yyn261 = function ( attributes ) {
  3861. 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);
  3862. };
  3863. PHP.Parser.prototype.yyn262 = function ( attributes ) {
  3864. if (this.yyastk[ this.stackPos-(4-1) ].type === "Node_Expr_StaticPropertyFetch") {
  3865. 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);
  3866. } else if (this.yyastk[ this.stackPos-(4-1) ].type === "Node_Expr_ArrayDimFetch") {
  3867. var tmp = this.yyastk[ this.stackPos-(4-1) ];
  3868. while (tmp.variable.type === "Node_Expr_ArrayDimFetch") {
  3869. tmp = tmp.variable;
  3870. }
  3871. this.yyval = this.Node_Expr_StaticCall(tmp.variable.Class, this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3872. tmp.variable = this.Node_Expr_Variable(tmp.variable.name, attributes);
  3873. } else {
  3874. throw new Exception;
  3875. }
  3876. };
  3877. PHP.Parser.prototype.yyn263 = function ( attributes ) {
  3878. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3879. };
  3880. PHP.Parser.prototype.yyn264 = function ( attributes ) {
  3881. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3882. };
  3883. PHP.Parser.prototype.yyn265 = function ( attributes ) {
  3884. this.yyval = this.Node_Name('static', attributes);
  3885. };
  3886. PHP.Parser.prototype.yyn266 = function ( attributes ) {
  3887. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3888. };
  3889. PHP.Parser.prototype.yyn267 = function ( attributes ) {
  3890. this.yyval = this.Node_Name(this.yyastk[ this.stackPos-(1-1) ], attributes);
  3891. };
  3892. PHP.Parser.prototype.yyn268 = function ( attributes ) {
  3893. this.yyval = this.Node_Name_FullyQualified(this.yyastk[ this.stackPos-(2-2) ], attributes);
  3894. };
  3895. PHP.Parser.prototype.yyn269 = function ( attributes ) {
  3896. this.yyval = this.Node_Name_Relative(this.yyastk[ this.stackPos-(3-3) ], attributes);
  3897. };
  3898. PHP.Parser.prototype.yyn270 = function ( attributes ) {
  3899. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3900. };
  3901. PHP.Parser.prototype.yyn271 = function ( attributes ) {
  3902. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3903. };
  3904. PHP.Parser.prototype.yyn272 = function ( attributes ) {
  3905. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3906. };
  3907. PHP.Parser.prototype.yyn273 = function ( attributes ) {
  3908. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3909. };
  3910. PHP.Parser.prototype.yyn274 = function ( attributes ) {
  3911. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3912. };
  3913. PHP.Parser.prototype.yyn275 = function ( attributes ) {
  3914. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3915. };
  3916. PHP.Parser.prototype.yyn276 = function () {
  3917. this.yyval = this.yyastk[ this.stackPos ];
  3918. };
  3919. PHP.Parser.prototype.yyn277 = function ( attributes ) {
  3920. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3921. };
  3922. PHP.Parser.prototype.yyn278 = function ( attributes ) {
  3923. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3924. };
  3925. PHP.Parser.prototype.yyn279 = function ( attributes ) {
  3926. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3927. };
  3928. PHP.Parser.prototype.yyn280 = function ( attributes ) {
  3929. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  3930. };
  3931. PHP.Parser.prototype.yyn281 = function ( attributes ) {
  3932. this.yyval = null;
  3933. };
  3934. PHP.Parser.prototype.yyn282 = function ( attributes ) {
  3935. this.yyval = null;
  3936. };
  3937. PHP.Parser.prototype.yyn283 = function ( attributes ) {
  3938. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3939. };
  3940. PHP.Parser.prototype.yyn284 = function ( attributes ) {
  3941. this.yyval = [];
  3942. };
  3943. PHP.Parser.prototype.yyn285 = function ( attributes ) {
  3944. this.yyval = [this.Scalar_String_parseEscapeSequences(this.yyastk[ this.stackPos-(1-1) ], '`')];
  3945. };
  3946. PHP.Parser.prototype.yyn286 = function ( attributes ) {
  3947. ; this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3948. };
  3949. PHP.Parser.prototype.yyn287 = function ( attributes ) {
  3950. this.yyval = [];
  3951. };
  3952. PHP.Parser.prototype.yyn288 = function ( attributes ) {
  3953. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3954. };
  3955. PHP.Parser.prototype.yyn289 = function ( attributes ) {
  3956. this.yyval = this.Node_Scalar_LNumber(this.Scalar_LNumber_parse(this.yyastk[ this.stackPos-(1-1) ]), attributes);
  3957. };
  3958. PHP.Parser.prototype.yyn290 = function ( attributes ) {
  3959. this.yyval = this.Node_Scalar_DNumber(this.Scalar_DNumber_parse(this.yyastk[ this.stackPos-(1-1) ]), attributes);
  3960. };
  3961. PHP.Parser.prototype.yyn291 = function ( attributes ) {
  3962. this.yyval = this.Scalar_String_create(this.yyastk[ this.stackPos-(1-1) ], attributes);
  3963. };
  3964. PHP.Parser.prototype.yyn292 = function ( attributes ) {
  3965. this.yyval = {type: "Node_Scalar_LineConst", attributes: attributes};
  3966. };
  3967. PHP.Parser.prototype.yyn293 = function ( attributes ) {
  3968. this.yyval = {type: "Node_Scalar_FileConst", attributes: attributes};
  3969. };
  3970. PHP.Parser.prototype.yyn294 = function ( attributes ) {
  3971. this.yyval = {type: "Node_Scalar_DirConst", attributes: attributes};
  3972. };
  3973. PHP.Parser.prototype.yyn295 = function ( attributes ) {
  3974. this.yyval = {type: "Node_Scalar_ClassConst", attributes: attributes};
  3975. };
  3976. PHP.Parser.prototype.yyn296 = function ( attributes ) {
  3977. this.yyval = {type: "Node_Scalar_TraitConst", attributes: attributes};
  3978. };
  3979. PHP.Parser.prototype.yyn297 = function ( attributes ) {
  3980. this.yyval = {type: "Node_Scalar_MethodConst", attributes: attributes};
  3981. };
  3982. PHP.Parser.prototype.yyn298 = function ( attributes ) {
  3983. this.yyval = {type: "Node_Scalar_FuncConst", attributes: attributes};
  3984. };
  3985. PHP.Parser.prototype.yyn299 = function ( attributes ) {
  3986. this.yyval = {type: "Node_Scalar_NSConst", attributes: attributes};
  3987. };
  3988. PHP.Parser.prototype.yyn300 = function ( attributes ) {
  3989. this.yyval = this.Node_Scalar_String(this.Scalar_String_parseDocString(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ]), attributes);
  3990. };
  3991. PHP.Parser.prototype.yyn301 = function ( attributes ) {
  3992. this.yyval = this.Node_Scalar_String('', attributes);
  3993. };
  3994. PHP.Parser.prototype.yyn302 = function ( attributes ) {
  3995. this.yyval = this.Node_Expr_ConstFetch(this.yyastk[ this.stackPos-(1-1) ], attributes);
  3996. };
  3997. PHP.Parser.prototype.yyn303 = function ( attributes ) {
  3998. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3999. };
  4000. PHP.Parser.prototype.yyn304 = function ( attributes ) {
  4001. this.yyval = this.Node_Expr_ClassConstFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4002. };
  4003. PHP.Parser.prototype.yyn305 = function ( attributes ) {
  4004. this.yyval = this.Node_Expr_UnaryPlus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4005. };
  4006. PHP.Parser.prototype.yyn306 = function ( attributes ) {
  4007. this.yyval = this.Node_Expr_UnaryMinus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4008. };
  4009. PHP.Parser.prototype.yyn307 = function ( attributes ) {
  4010. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4011. };
  4012. PHP.Parser.prototype.yyn308 = function ( attributes ) {
  4013. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4014. };
  4015. PHP.Parser.prototype.yyn309 = function ( attributes ) {
  4016. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4017. };
  4018. PHP.Parser.prototype.yyn310 = function ( attributes ) {
  4019. this.yyval = this.Node_Expr_ClassConstFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4020. };
  4021. PHP.Parser.prototype.yyn311 = function ( attributes ) {
  4022. ; this.yyval = this.Node_Scalar_Encapsed(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4023. };
  4024. PHP.Parser.prototype.yyn312 = function ( attributes ) {
  4025. ; this.yyval = this.Node_Scalar_Encapsed(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4026. };
  4027. PHP.Parser.prototype.yyn313 = function ( attributes ) {
  4028. this.yyval = [];
  4029. };
  4030. PHP.Parser.prototype.yyn314 = function ( attributes ) {
  4031. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4032. };
  4033. PHP.Parser.prototype.yyn315 = function () {
  4034. this.yyval = this.yyastk[ this.stackPos ];
  4035. };
  4036. PHP.Parser.prototype.yyn316 = function () {
  4037. this.yyval = this.yyastk[ this.stackPos ];
  4038. };
  4039. PHP.Parser.prototype.yyn317 = function ( attributes ) {
  4040. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4041. };
  4042. PHP.Parser.prototype.yyn318 = function ( attributes ) {
  4043. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4044. };
  4045. PHP.Parser.prototype.yyn319 = function ( attributes ) {
  4046. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(3-3) ], this.yyastk[ this.stackPos-(3-1) ], false, attributes);
  4047. };
  4048. PHP.Parser.prototype.yyn320 = function ( attributes ) {
  4049. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(1-1) ], null, false, attributes);
  4050. };
  4051. PHP.Parser.prototype.yyn321 = function ( attributes ) {
  4052. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4053. };
  4054. PHP.Parser.prototype.yyn322 = function ( attributes ) {
  4055. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4056. };
  4057. PHP.Parser.prototype.yyn323 = function ( attributes ) {
  4058. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4059. };
  4060. PHP.Parser.prototype.yyn324 = function ( attributes ) {
  4061. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4062. };
  4063. PHP.Parser.prototype.yyn325 = function ( attributes ) {
  4064. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(6-2) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  4065. };
  4066. PHP.Parser.prototype.yyn326 = function ( attributes ) {
  4067. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4068. };
  4069. PHP.Parser.prototype.yyn327 = function ( attributes ) {
  4070. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4071. };
  4072. PHP.Parser.prototype.yyn328 = function ( attributes ) {
  4073. 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);
  4074. };
  4075. PHP.Parser.prototype.yyn329 = function ( attributes ) {
  4076. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4077. };
  4078. PHP.Parser.prototype.yyn330 = function ( attributes ) {
  4079. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4080. };
  4081. PHP.Parser.prototype.yyn331 = function ( attributes ) {
  4082. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4083. };
  4084. PHP.Parser.prototype.yyn332 = function ( attributes ) {
  4085. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4086. };
  4087. PHP.Parser.prototype.yyn333 = function ( attributes ) {
  4088. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4089. };
  4090. PHP.Parser.prototype.yyn334 = function ( attributes ) {
  4091. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4092. };
  4093. PHP.Parser.prototype.yyn335 = function ( attributes ) {
  4094. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4095. };
  4096. PHP.Parser.prototype.yyn336 = function ( attributes ) {
  4097. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4098. };
  4099. PHP.Parser.prototype.yyn337 = function ( attributes ) {
  4100. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4101. };
  4102. PHP.Parser.prototype.yyn338 = function ( attributes ) {
  4103. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  4104. };
  4105. PHP.Parser.prototype.yyn339 = function ( attributes ) {
  4106. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4107. };
  4108. PHP.Parser.prototype.yyn340 = function ( attributes ) {
  4109. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ].substring( 1 ), attributes);
  4110. };
  4111. PHP.Parser.prototype.yyn341 = function ( attributes ) {
  4112. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(6-1) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  4113. };
  4114. PHP.Parser.prototype.yyn342 = function ( attributes ) {
  4115. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4116. };
  4117. PHP.Parser.prototype.yyn343 = function ( attributes ) {
  4118. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4119. };
  4120. PHP.Parser.prototype.yyn344 = function ( attributes ) {
  4121. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4122. };
  4123. PHP.Parser.prototype.yyn345 = function ( attributes ) {
  4124. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4125. };
  4126. PHP.Parser.prototype.yyn346 = function ( attributes ) {
  4127. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  4128. };
  4129. PHP.Parser.prototype.yyn347 = function ( attributes ) {
  4130. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4131. };
  4132. PHP.Parser.prototype.yyn348 = function ( attributes ) {
  4133. this.yyval = null;
  4134. };
  4135. PHP.Parser.prototype.yyn349 = function ( attributes ) {
  4136. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4137. };
  4138. PHP.Parser.prototype.yyn350 = function ( attributes ) {
  4139. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4140. };
  4141. PHP.Parser.prototype.yyn351 = function ( attributes ) {
  4142. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4143. };
  4144. PHP.Parser.prototype.yyn352 = function ( attributes ) {
  4145. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4146. };
  4147. PHP.Parser.prototype.yyn353 = function ( attributes ) {
  4148. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4149. };
  4150. PHP.Parser.prototype.yyn354 = function ( attributes ) {
  4151. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4152. };
  4153. PHP.Parser.prototype.yyn355 = function ( attributes ) {
  4154. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4155. };
  4156. PHP.Parser.prototype.yyn356 = function ( attributes ) {
  4157. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  4158. };
  4159. PHP.Parser.prototype.yyn357 = function ( attributes ) {
  4160. this.yyval = null;
  4161. };
  4162. PHP.Parser.prototype.yyn358 = function ( attributes ) {
  4163. this.yyval = [];
  4164. };
  4165. PHP.Parser.prototype.yyn359 = function ( attributes ) {
  4166. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4167. };
  4168. PHP.Parser.prototype.yyn360 = function ( attributes ) {
  4169. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4170. };
  4171. PHP.Parser.prototype.yyn361 = function ( attributes ) {
  4172. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4173. };
  4174. PHP.Parser.prototype.yyn362 = function ( attributes ) {
  4175. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(3-3) ], this.yyastk[ this.stackPos-(3-1) ], false, attributes);
  4176. };
  4177. PHP.Parser.prototype.yyn363 = function ( attributes ) {
  4178. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(1-1) ], null, false, attributes);
  4179. };
  4180. PHP.Parser.prototype.yyn364 = function ( attributes ) {
  4181. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(4-4) ], this.yyastk[ this.stackPos-(4-1) ], true, attributes);
  4182. };
  4183. PHP.Parser.prototype.yyn365 = function ( attributes ) {
  4184. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(2-2) ], null, true, attributes);
  4185. };
  4186. PHP.Parser.prototype.yyn366 = function ( attributes ) {
  4187. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4188. };
  4189. PHP.Parser.prototype.yyn367 = function ( attributes ) {
  4190. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4191. };
  4192. PHP.Parser.prototype.yyn368 = function ( attributes ) {
  4193. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4194. };
  4195. PHP.Parser.prototype.yyn369 = function ( attributes ) {
  4196. this.yyval = [this.yyastk[ this.stackPos-(2-1) ], this.yyastk[ this.stackPos-(2-2) ]];
  4197. };
  4198. PHP.Parser.prototype.yyn370 = function ( attributes ) {
  4199. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  4200. };
  4201. PHP.Parser.prototype.yyn371 = function ( attributes ) {
  4202. 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);
  4203. };
  4204. PHP.Parser.prototype.yyn372 = function ( attributes ) {
  4205. 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);
  4206. };
  4207. PHP.Parser.prototype.yyn373 = function ( attributes ) {
  4208. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4209. };
  4210. PHP.Parser.prototype.yyn374 = function ( attributes ) {
  4211. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4212. };
  4213. PHP.Parser.prototype.yyn375 = function ( attributes ) {
  4214. this.yyval = this.Node_Expr_ArrayDimFetch(this.Node_Expr_Variable(this.yyastk[ this.stackPos-(6-2) ], attributes), this.yyastk[ this.stackPos-(6-4) ], attributes);
  4215. };
  4216. PHP.Parser.prototype.yyn376 = function ( attributes ) {
  4217. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4218. };
  4219. PHP.Parser.prototype.yyn377 = function ( attributes ) {
  4220. this.yyval = this.Node_Scalar_String(this.yyastk[ this.stackPos-(1-1) ], attributes);
  4221. };
  4222. PHP.Parser.prototype.yyn378 = function ( attributes ) {
  4223. this.yyval = this.Node_Scalar_String(this.yyastk[ this.stackPos-(1-1) ], attributes);
  4224. };
  4225. PHP.Parser.prototype.yyn379 = function ( attributes ) {
  4226. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  4227. };
  4228. PHP.Parser.prototype.Stmt_Namespace_postprocess = function( a ) {
  4229. return a;
  4230. };
  4231. PHP.Parser.prototype.Node_Stmt_Echo = function() {
  4232. return {
  4233. type: "Node_Stmt_Echo",
  4234. exprs: arguments[ 0 ],
  4235. attributes: arguments[ 1 ]
  4236. };
  4237. };
  4238. PHP.Parser.prototype.Node_Stmt_If = function() {
  4239. return {
  4240. type: "Node_Stmt_If",
  4241. cond: arguments[ 0 ],
  4242. stmts: arguments[ 1 ].stmts,
  4243. elseifs: arguments[ 1 ].elseifs,
  4244. Else: arguments[ 1 ].Else || null,
  4245. attributes: arguments[ 2 ]
  4246. };
  4247. };
  4248. PHP.Parser.prototype.Node_Stmt_For = function() {
  4249. return {
  4250. type: "Node_Stmt_For",
  4251. init: arguments[ 0 ].init,
  4252. cond: arguments[ 0 ].cond,
  4253. loop: arguments[ 0 ].loop,
  4254. stmts: arguments[ 0 ].stmts,
  4255. attributes: arguments[ 1 ]
  4256. };
  4257. };
  4258. PHP.Parser.prototype.Node_Stmt_Function = function() {
  4259. return {
  4260. type: "Node_Stmt_Function",
  4261. name: arguments[ 0 ],
  4262. byRef: arguments[ 1 ].byRef,
  4263. params: arguments[ 1 ].params,
  4264. stmts: arguments[ 1 ].stmts,
  4265. attributes: arguments[ 2 ]
  4266. };
  4267. };
  4268. PHP.Parser.prototype.Stmt_Class_verifyModifier = function() {
  4269. };
  4270. PHP.Parser.prototype.Node_Stmt_Namespace = function() {
  4271. return {
  4272. type: "Node_Stmt_Namespace",
  4273. name: arguments[ 0 ],
  4274. attributes: arguments[ 2 ]
  4275. };
  4276. };
  4277. PHP.Parser.prototype.Node_Stmt_Use = function() {
  4278. return {
  4279. type: "Node_Stmt_Use",
  4280. name: arguments[ 0 ],
  4281. attributes: arguments[ 2 ]
  4282. };
  4283. };
  4284. PHP.Parser.prototype.Node_Stmt_UseUse = function() {
  4285. return {
  4286. type: "Node_Stmt_UseUse",
  4287. name: arguments[ 0 ],
  4288. as: arguments[1],
  4289. attributes: arguments[ 2 ]
  4290. };
  4291. };
  4292. PHP.Parser.prototype.Node_Stmt_TraitUseAdaptation_Precedence = function() {
  4293. return {
  4294. type: "Node_Stmt_TraitUseAdaptation_Precedence",
  4295. name: arguments[ 0 ],
  4296. attributes: arguments[ 2 ]
  4297. };
  4298. };
  4299. PHP.Parser.prototype.Node_Stmt_TraitUseAdaptation_Alias = function() {
  4300. return {
  4301. type: "Node_Stmt_TraitUseAdaptation_Alias",
  4302. name: arguments[ 0 ],
  4303. attributes: arguments[ 2 ]
  4304. };
  4305. };
  4306. PHP.Parser.prototype.Node_Stmt_Trait = function() {
  4307. return {
  4308. type: "Node_Stmt_Trait",
  4309. name: arguments[ 0 ],
  4310. attributes: arguments[ 2 ]
  4311. };
  4312. };
  4313. PHP.Parser.prototype.Node_Stmt_TraitUse = function() {
  4314. return {
  4315. type: "Node_Stmt_TraitUse",
  4316. name: arguments[ 0 ],
  4317. attributes: arguments[ 2 ]
  4318. };
  4319. };
  4320. PHP.Parser.prototype.Node_Stmt_Class = function() {
  4321. return {
  4322. type: "Node_Stmt_Class",
  4323. name: arguments[ 0 ],
  4324. Type: arguments[ 1 ].type,
  4325. Extends: arguments[ 1 ].Extends,
  4326. Implements: arguments[ 1 ].Implements,
  4327. stmts: arguments[ 1 ].stmts,
  4328. attributes: arguments[ 2 ]
  4329. };
  4330. };
  4331. PHP.Parser.prototype.Node_Stmt_ClassMethod = function() {
  4332. return {
  4333. type: "Node_Stmt_ClassMethod",
  4334. name: arguments[ 0 ],
  4335. Type: arguments[ 1 ].type,
  4336. byRef: arguments[ 1 ].byRef,
  4337. params: arguments[ 1 ].params,
  4338. stmts: arguments[ 1 ].stmts,
  4339. attributes: arguments[ 2 ]
  4340. };
  4341. };
  4342. PHP.Parser.prototype.Node_Stmt_ClassConst = function() {
  4343. return {
  4344. type: "Node_Stmt_ClassConst",
  4345. consts: arguments[ 0 ],
  4346. attributes: arguments[ 1 ]
  4347. };
  4348. };
  4349. PHP.Parser.prototype.Node_Stmt_Interface = function() {
  4350. return {
  4351. type: "Node_Stmt_Interface",
  4352. name: arguments[ 0 ],
  4353. Extends: arguments[ 1 ].Extends,
  4354. stmts: arguments[ 1 ].stmts,
  4355. attributes: arguments[ 2 ]
  4356. };
  4357. };
  4358. PHP.Parser.prototype.Node_Stmt_Throw = function() {
  4359. return {
  4360. type: "Node_Stmt_Throw",
  4361. expr: arguments[ 0 ],
  4362. attributes: arguments[ 1 ]
  4363. };
  4364. };
  4365. PHP.Parser.prototype.Node_Stmt_Catch = function() {
  4366. return {
  4367. type: "Node_Stmt_Catch",
  4368. Type: arguments[ 0 ],
  4369. variable: arguments[ 1 ],
  4370. stmts: arguments[ 2 ],
  4371. attributes: arguments[ 3 ]
  4372. };
  4373. };
  4374. PHP.Parser.prototype.Node_Stmt_TryCatch = function() {
  4375. return {
  4376. type: "Node_Stmt_TryCatch",
  4377. stmts: arguments[ 0 ],
  4378. catches: arguments[ 1 ],
  4379. attributes: arguments[ 2 ]
  4380. };
  4381. };
  4382. PHP.Parser.prototype.Node_Stmt_Foreach = function() {
  4383. return {
  4384. type: "Node_Stmt_Foreach",
  4385. expr: arguments[ 0 ],
  4386. valueVar: arguments[ 1 ],
  4387. keyVar: arguments[ 2 ].keyVar,
  4388. byRef: arguments[ 2 ].byRef,
  4389. stmts: arguments[ 2 ].stmts,
  4390. attributes: arguments[ 3 ]
  4391. };
  4392. };
  4393. PHP.Parser.prototype.Node_Stmt_While = function() {
  4394. return {
  4395. type: "Node_Stmt_While",
  4396. cond: arguments[ 0 ],
  4397. stmts: arguments[ 1 ],
  4398. attributes: arguments[ 2 ]
  4399. };
  4400. };
  4401. PHP.Parser.prototype.Node_Stmt_Do = function() {
  4402. return {
  4403. type: "Node_Stmt_Do",
  4404. cond: arguments[ 0 ],
  4405. stmts: arguments[ 1 ],
  4406. attributes: arguments[ 2 ]
  4407. };
  4408. };
  4409. PHP.Parser.prototype.Node_Stmt_Break = function() {
  4410. return {
  4411. type: "Node_Stmt_Break",
  4412. num: arguments[ 0 ],
  4413. attributes: arguments[ 1 ]
  4414. };
  4415. };
  4416. PHP.Parser.prototype.Node_Stmt_Continue = function() {
  4417. return {
  4418. type: "Node_Stmt_Continue",
  4419. num: arguments[ 0 ],
  4420. attributes: arguments[ 1 ]
  4421. };
  4422. };
  4423. PHP.Parser.prototype.Node_Stmt_Return = function() {
  4424. return {
  4425. type: "Node_Stmt_Return",
  4426. expr: arguments[ 0 ],
  4427. attributes: arguments[ 1 ]
  4428. };
  4429. };
  4430. PHP.Parser.prototype.Node_Stmt_Case = function() {
  4431. return {
  4432. type: "Node_Stmt_Case",
  4433. cond: arguments[ 0 ],
  4434. stmts: arguments[ 1 ],
  4435. attributes: arguments[ 2 ]
  4436. };
  4437. };
  4438. PHP.Parser.prototype.Node_Stmt_Switch = function() {
  4439. return {
  4440. type: "Node_Stmt_Switch",
  4441. cond: arguments[ 0 ],
  4442. cases: arguments[ 1 ],
  4443. attributes: arguments[ 2 ]
  4444. };
  4445. };
  4446. PHP.Parser.prototype.Node_Stmt_Else = function() {
  4447. return {
  4448. type: "Node_Stmt_Else",
  4449. stmts: arguments[ 0 ],
  4450. attributes: arguments[ 1 ]
  4451. };
  4452. };
  4453. PHP.Parser.prototype.Node_Stmt_ElseIf = function() {
  4454. return {
  4455. type: "Node_Stmt_ElseIf",
  4456. cond: arguments[ 0 ],
  4457. stmts: arguments[ 1 ],
  4458. attributes: arguments[ 1 ]
  4459. };
  4460. };
  4461. PHP.Parser.prototype.Node_Stmt_InlineHTML = function() {
  4462. return {
  4463. type: "Node_Stmt_InlineHTML",
  4464. value: arguments[ 0 ],
  4465. attributes: arguments[ 1 ]
  4466. };
  4467. };
  4468. PHP.Parser.prototype.Node_Stmt_StaticVar = function() {
  4469. return {
  4470. type: "Node_Stmt_StaticVar",
  4471. name: arguments[ 0 ],
  4472. def: arguments[ 1 ],
  4473. attributes: arguments[ 2 ]
  4474. };
  4475. };
  4476. PHP.Parser.prototype.Node_Stmt_Static = function() {
  4477. return {
  4478. type: "Node_Stmt_Static",
  4479. vars: arguments[ 0 ],
  4480. attributes: arguments[ 1 ]
  4481. };
  4482. };
  4483. PHP.Parser.prototype.Node_Stmt_Global = function() {
  4484. return {
  4485. type: "Node_Stmt_Global",
  4486. vars: arguments[ 0 ],
  4487. attributes: arguments[ 1 ]
  4488. };
  4489. };
  4490. PHP.Parser.prototype.Node_Stmt_PropertyProperty = function() {
  4491. return {
  4492. type: "Node_Stmt_PropertyProperty",
  4493. name: arguments[ 0 ],
  4494. def: arguments[ 1 ],
  4495. attributes: arguments[ 2 ]
  4496. };
  4497. };
  4498. PHP.Parser.prototype.Node_Stmt_Property = function() {
  4499. return {
  4500. type: "Node_Stmt_Property",
  4501. Type: arguments[ 0 ],
  4502. props: arguments[ 1 ],
  4503. attributes: arguments[ 2 ]
  4504. };
  4505. };
  4506. PHP.Parser.prototype.Node_Stmt_Unset = function() {
  4507. return {
  4508. type: "Node_Stmt_Unset",
  4509. variables: arguments[ 0 ],
  4510. attributes: arguments[ 1 ]
  4511. };
  4512. };
  4513. PHP.Parser.prototype.Node_Expr_Variable = function( a ) {
  4514. return {
  4515. type: "Node_Expr_Variable",
  4516. name: arguments[ 0 ],
  4517. attributes: arguments[ 1 ]
  4518. };
  4519. };
  4520. PHP.Parser.prototype.Node_Expr_FuncCall = function() {
  4521. return {
  4522. type: "Node_Expr_FuncCall",
  4523. func: arguments[ 0 ],
  4524. args: arguments[ 1 ],
  4525. attributes: arguments[ 2 ]
  4526. };
  4527. };
  4528. PHP.Parser.prototype.Node_Expr_MethodCall = function() {
  4529. return {
  4530. type: "Node_Expr_MethodCall",
  4531. variable: arguments[ 0 ],
  4532. name: arguments[ 1 ],
  4533. args: arguments[ 2 ],
  4534. attributes: arguments[ 3 ]
  4535. };
  4536. };
  4537. PHP.Parser.prototype.Node_Expr_StaticCall = function() {
  4538. return {
  4539. type: "Node_Expr_StaticCall",
  4540. Class: arguments[ 0 ],
  4541. func: arguments[ 1 ],
  4542. args: arguments[ 2 ],
  4543. attributes: arguments[ 3 ]
  4544. };
  4545. };
  4546. PHP.Parser.prototype.Node_Expr_Ternary = function() {
  4547. return {
  4548. type: "Node_Expr_Ternary",
  4549. cond: arguments[ 0 ],
  4550. If: arguments[ 1 ],
  4551. Else: arguments[ 2 ],
  4552. attributes: arguments[ 3 ]
  4553. };
  4554. };
  4555. PHP.Parser.prototype.Node_Expr_AssignList = function() {
  4556. return {
  4557. type: "Node_Expr_AssignList",
  4558. assignList: arguments[ 0 ],
  4559. expr: arguments[ 1 ],
  4560. attributes: arguments[ 2 ]
  4561. };
  4562. };
  4563. PHP.Parser.prototype.Node_Expr_Assign = function() {
  4564. return {
  4565. type: "Node_Expr_Assign",
  4566. variable: arguments[ 0 ],
  4567. expr: arguments[ 1 ],
  4568. attributes: arguments[ 2 ]
  4569. };
  4570. };
  4571. PHP.Parser.prototype.Node_Expr_AssignConcat = function() {
  4572. return {
  4573. type: "Node_Expr_AssignConcat",
  4574. variable: arguments[ 0 ],
  4575. expr: arguments[ 1 ],
  4576. attributes: arguments[ 2 ]
  4577. };
  4578. };
  4579. PHP.Parser.prototype.Node_Expr_AssignMinus = function() {
  4580. return {
  4581. type: "Node_Expr_AssignMinus",
  4582. variable: arguments[ 0 ],
  4583. expr: arguments[ 1 ],
  4584. attributes: arguments[ 2 ]
  4585. };
  4586. };
  4587. PHP.Parser.prototype.Node_Expr_AssignPlus = function() {
  4588. return {
  4589. type: "Node_Expr_AssignPlus",
  4590. variable: arguments[ 0 ],
  4591. expr: arguments[ 1 ],
  4592. attributes: arguments[ 2 ]
  4593. };
  4594. };
  4595. PHP.Parser.prototype.Node_Expr_AssignDiv = function() {
  4596. return {
  4597. type: "Node_Expr_AssignDiv",
  4598. variable: arguments[ 0 ],
  4599. expr: arguments[ 1 ],
  4600. attributes: arguments[ 2 ]
  4601. };
  4602. };
  4603. PHP.Parser.prototype.Node_Expr_AssignRef = function() {
  4604. return {
  4605. type: "Node_Expr_AssignRef",
  4606. variable: arguments[ 0 ],
  4607. refVar: arguments[ 1 ],
  4608. attributes: arguments[ 2 ]
  4609. };
  4610. };
  4611. PHP.Parser.prototype.Node_Expr_AssignMul = function() {
  4612. return {
  4613. type: "Node_Expr_AssignMul",
  4614. variable: arguments[ 0 ],
  4615. expr: arguments[ 1 ],
  4616. attributes: arguments[ 2 ]
  4617. };
  4618. };
  4619. PHP.Parser.prototype.Node_Expr_AssignMod = function() {
  4620. return {
  4621. type: "Node_Expr_AssignMod",
  4622. variable: arguments[ 0 ],
  4623. expr: arguments[ 1 ],
  4624. attributes: arguments[ 2 ]
  4625. };
  4626. };
  4627. PHP.Parser.prototype.Node_Expr_Plus = function() {
  4628. return {
  4629. type: "Node_Expr_Plus",
  4630. left: arguments[ 0 ],
  4631. right: arguments[ 1 ],
  4632. attributes: arguments[ 2 ]
  4633. };
  4634. };
  4635. PHP.Parser.prototype.Node_Expr_Minus = function() {
  4636. return {
  4637. type: "Node_Expr_Minus",
  4638. left: arguments[ 0 ],
  4639. right: arguments[ 1 ],
  4640. attributes: arguments[ 2 ]
  4641. };
  4642. };
  4643. PHP.Parser.prototype.Node_Expr_Mul = function() {
  4644. return {
  4645. type: "Node_Expr_Mul",
  4646. left: arguments[ 0 ],
  4647. right: arguments[ 1 ],
  4648. attributes: arguments[ 2 ]
  4649. };
  4650. };
  4651. PHP.Parser.prototype.Node_Expr_Div = function() {
  4652. return {
  4653. type: "Node_Expr_Div",
  4654. left: arguments[ 0 ],
  4655. right: arguments[ 1 ],
  4656. attributes: arguments[ 2 ]
  4657. };
  4658. };
  4659. PHP.Parser.prototype.Node_Expr_Mod = function() {
  4660. return {
  4661. type: "Node_Expr_Mod",
  4662. left: arguments[ 0 ],
  4663. right: arguments[ 1 ],
  4664. attributes: arguments[ 2 ]
  4665. };
  4666. };
  4667. PHP.Parser.prototype.Node_Expr_Greater = function() {
  4668. return {
  4669. type: "Node_Expr_Greater",
  4670. left: arguments[ 0 ],
  4671. right: arguments[ 1 ],
  4672. attributes: arguments[ 2 ]
  4673. };
  4674. };
  4675. PHP.Parser.prototype.Node_Expr_Equal = function() {
  4676. return {
  4677. type: "Node_Expr_Equal",
  4678. left: arguments[ 0 ],
  4679. right: arguments[ 1 ],
  4680. attributes: arguments[ 2 ]
  4681. };
  4682. };
  4683. PHP.Parser.prototype.Node_Expr_NotEqual = function() {
  4684. return {
  4685. type: "Node_Expr_NotEqual",
  4686. left: arguments[ 0 ],
  4687. right: arguments[ 1 ],
  4688. attributes: arguments[ 2 ]
  4689. };
  4690. };
  4691. PHP.Parser.prototype.Node_Expr_Identical = function() {
  4692. return {
  4693. type: "Node_Expr_Identical",
  4694. left: arguments[ 0 ],
  4695. right: arguments[ 1 ],
  4696. attributes: arguments[ 2 ]
  4697. };
  4698. };
  4699. PHP.Parser.prototype.Node_Expr_NotIdentical = function() {
  4700. return {
  4701. type: "Node_Expr_NotIdentical",
  4702. left: arguments[ 0 ],
  4703. right: arguments[ 1 ],
  4704. attributes: arguments[ 2 ]
  4705. };
  4706. };
  4707. PHP.Parser.prototype.Node_Expr_GreaterOrEqual = function() {
  4708. return {
  4709. type: "Node_Expr_GreaterOrEqual",
  4710. left: arguments[ 0 ],
  4711. right: arguments[ 1 ],
  4712. attributes: arguments[ 2 ]
  4713. };
  4714. };
  4715. PHP.Parser.prototype.Node_Expr_SmallerOrEqual = function() {
  4716. return {
  4717. type: "Node_Expr_SmallerOrEqual",
  4718. left: arguments[ 0 ],
  4719. right: arguments[ 1 ],
  4720. attributes: arguments[ 2 ]
  4721. };
  4722. };
  4723. PHP.Parser.prototype.Node_Expr_Concat = function() {
  4724. return {
  4725. type: "Node_Expr_Concat",
  4726. left: arguments[ 0 ],
  4727. right: arguments[ 1 ],
  4728. attributes: arguments[ 2 ]
  4729. };
  4730. };
  4731. PHP.Parser.prototype.Node_Expr_Smaller = function() {
  4732. return {
  4733. type: "Node_Expr_Smaller",
  4734. left: arguments[ 0 ],
  4735. right: arguments[ 1 ],
  4736. attributes: arguments[ 2 ]
  4737. };
  4738. };
  4739. PHP.Parser.prototype.Node_Expr_PostInc = function() {
  4740. return {
  4741. type: "Node_Expr_PostInc",
  4742. variable: arguments[ 0 ],
  4743. attributes: arguments[ 1 ]
  4744. };
  4745. };
  4746. PHP.Parser.prototype.Node_Expr_PostDec = function() {
  4747. return {
  4748. type: "Node_Expr_PostDec",
  4749. variable: arguments[ 0 ],
  4750. attributes: arguments[ 1 ]
  4751. };
  4752. };
  4753. PHP.Parser.prototype.Node_Expr_PreInc = function() {
  4754. return {
  4755. type: "Node_Expr_PreInc",
  4756. variable: arguments[ 0 ],
  4757. attributes: arguments[ 1 ]
  4758. };
  4759. };
  4760. PHP.Parser.prototype.Node_Expr_PreDec = function() {
  4761. return {
  4762. type: "Node_Expr_PreDec",
  4763. variable: arguments[ 0 ],
  4764. attributes: arguments[ 1 ]
  4765. };
  4766. };
  4767. PHP.Parser.prototype.Node_Expr_Include = function() {
  4768. return {
  4769. expr: arguments[ 0 ],
  4770. type: arguments[ 1 ],
  4771. attributes: arguments[ 2 ]
  4772. };
  4773. };
  4774. PHP.Parser.prototype.Node_Expr_ArrayDimFetch = function() {
  4775. return {
  4776. type: "Node_Expr_ArrayDimFetch",
  4777. variable: arguments[ 0 ],
  4778. dim: arguments[ 1 ],
  4779. attributes: arguments[ 2 ]
  4780. };
  4781. };
  4782. PHP.Parser.prototype.Node_Expr_StaticPropertyFetch = function() {
  4783. return {
  4784. type: "Node_Expr_StaticPropertyFetch",
  4785. Class: arguments[ 0 ],
  4786. name: arguments[ 1 ],
  4787. attributes: arguments[ 2 ]
  4788. };
  4789. };
  4790. PHP.Parser.prototype.Node_Expr_ClassConstFetch = function() {
  4791. return {
  4792. type: "Node_Expr_ClassConstFetch",
  4793. Class: arguments[ 0 ],
  4794. name: arguments[ 1 ],
  4795. attributes: arguments[ 2 ]
  4796. };
  4797. };
  4798. PHP.Parser.prototype.Node_Expr_StaticPropertyFetch = function() {
  4799. return {
  4800. type: "Node_Expr_StaticPropertyFetch",
  4801. Class: arguments[ 0 ],
  4802. name: arguments[ 1 ],
  4803. attributes: arguments[ 2 ]
  4804. };
  4805. };
  4806. PHP.Parser.prototype.Node_Expr_ConstFetch = function() {
  4807. return {
  4808. type: "Node_Expr_ConstFetch",
  4809. name: arguments[ 0 ],
  4810. attributes: arguments[ 1 ]
  4811. };
  4812. };
  4813. PHP.Parser.prototype.Node_Expr_ArrayItem = function() {
  4814. return {
  4815. type: "Node_Expr_ArrayItem",
  4816. value: arguments[ 0 ],
  4817. key: arguments[ 1 ],
  4818. byRef: arguments[ 2 ],
  4819. attributes: arguments[ 3 ]
  4820. };
  4821. };
  4822. PHP.Parser.prototype.Node_Expr_Array = function() {
  4823. return {
  4824. type: "Node_Expr_Array",
  4825. items: arguments[ 0 ],
  4826. attributes: arguments[ 1 ]
  4827. };
  4828. };
  4829. PHP.Parser.prototype.Node_Expr_PropertyFetch = function() {
  4830. return {
  4831. type: "Node_Expr_PropertyFetch",
  4832. variable: arguments[ 0 ],
  4833. name: arguments[ 1 ],
  4834. attributes: arguments[ 2 ]
  4835. };
  4836. };
  4837. PHP.Parser.prototype.Node_Expr_New = function() {
  4838. return {
  4839. type: "Node_Expr_New",
  4840. Class: arguments[ 0 ],
  4841. args: arguments[ 1 ],
  4842. attributes: arguments[ 2 ]
  4843. };
  4844. };
  4845. PHP.Parser.prototype.Node_Expr_Print = function() {
  4846. return {
  4847. type: "Node_Expr_Print",
  4848. expr: arguments[ 0 ],
  4849. attributes: arguments[ 1 ]
  4850. };
  4851. };
  4852. PHP.Parser.prototype.Node_Expr_Exit = function() {
  4853. return {
  4854. type: "Node_Expr_Exit",
  4855. expr: arguments[ 0 ],
  4856. attributes: arguments[ 1 ]
  4857. };
  4858. };
  4859. PHP.Parser.prototype.Node_Expr_Cast_Bool = function() {
  4860. return {
  4861. type: "Node_Expr_Cast_Bool",
  4862. expr: arguments[ 0 ],
  4863. attributes: arguments[ 1 ]
  4864. };
  4865. };
  4866. PHP.Parser.prototype.Node_Expr_Cast_Int = function() {
  4867. return {
  4868. type: "Node_Expr_Cast_Int",
  4869. expr: arguments[ 0 ],
  4870. attributes: arguments[ 1 ]
  4871. };
  4872. };
  4873. PHP.Parser.prototype.Node_Expr_Cast_String = function() {
  4874. return {
  4875. type: "Node_Expr_Cast_String",
  4876. expr: arguments[ 0 ],
  4877. attributes: arguments[ 1 ]
  4878. };
  4879. };
  4880. PHP.Parser.prototype.Node_Expr_Cast_Double = function() {
  4881. return {
  4882. type: "Node_Expr_Cast_Double",
  4883. expr: arguments[ 0 ],
  4884. attributes: arguments[ 1 ]
  4885. };
  4886. };
  4887. PHP.Parser.prototype.Node_Expr_Cast_Array = function() {
  4888. return {
  4889. type: "Node_Expr_Cast_Array",
  4890. expr: arguments[ 0 ],
  4891. attributes: arguments[ 1 ]
  4892. };
  4893. };
  4894. PHP.Parser.prototype.Node_Expr_Cast_Object = function() {
  4895. return {
  4896. type: "Node_Expr_Cast_Object",
  4897. expr: arguments[ 0 ],
  4898. attributes: arguments[ 1 ]
  4899. };
  4900. };
  4901. PHP.Parser.prototype.Node_Expr_ErrorSuppress = function() {
  4902. return {
  4903. type: "Node_Expr_ErrorSuppress",
  4904. expr: arguments[ 0 ],
  4905. attributes: arguments[ 1 ]
  4906. };
  4907. };
  4908. PHP.Parser.prototype.Node_Expr_Isset = function() {
  4909. return {
  4910. type: "Node_Expr_Isset",
  4911. variables: arguments[ 0 ],
  4912. attributes: arguments[ 1 ]
  4913. };
  4914. };
  4915. PHP.Parser.prototype.Node_Expr_UnaryMinus = function() {
  4916. return {
  4917. type: "Node_Expr_UnaryMinus",
  4918. expr: arguments[ 0 ],
  4919. attributes: arguments[ 1 ]
  4920. };
  4921. };
  4922. PHP.Parser.prototype.Node_Expr_UnaryPlus = function() {
  4923. return {
  4924. type: "Node_Expr_UnaryPlus",
  4925. expr: arguments[ 0 ],
  4926. attributes: arguments[ 1 ]
  4927. };
  4928. };
  4929. PHP.Parser.prototype.Node_Expr_Empty = function() {
  4930. return {
  4931. type: "Node_Expr_Empty",
  4932. variable: arguments[ 0 ],
  4933. attributes: arguments[ 1 ]
  4934. };
  4935. };
  4936. PHP.Parser.prototype.Node_Expr_BooleanOr = function() {
  4937. return {
  4938. type: "Node_Expr_BooleanOr",
  4939. left: arguments[ 0 ],
  4940. right: arguments[ 1 ],
  4941. attributes: arguments[ 2 ]
  4942. };
  4943. };
  4944. PHP.Parser.prototype.Node_Expr_LogicalOr = function() {
  4945. return {
  4946. type: "Node_Expr_LogicalOr",
  4947. left: arguments[ 0 ],
  4948. right: arguments[ 1 ],
  4949. attributes: arguments[ 2 ]
  4950. };
  4951. };
  4952. PHP.Parser.prototype.Node_Expr_LogicalAnd = function() {
  4953. return {
  4954. type: "Node_Expr_LogicalAnd",
  4955. left: arguments[ 0 ],
  4956. right: arguments[ 1 ],
  4957. attributes: arguments[ 2 ]
  4958. };
  4959. };
  4960. PHP.Parser.prototype.Node_Expr_LogicalXor = function() {
  4961. return {
  4962. type: "Node_Expr_LogicalXor",
  4963. left: arguments[ 0 ],
  4964. right: arguments[ 1 ],
  4965. attributes: arguments[ 2 ]
  4966. };
  4967. };
  4968. PHP.Parser.prototype.Node_Expr_BitwiseAnd = function() {
  4969. return {
  4970. type: "Node_Expr_BitwiseAnd",
  4971. left: arguments[ 0 ],
  4972. right: arguments[ 1 ],
  4973. attributes: arguments[ 2 ]
  4974. };
  4975. };
  4976. PHP.Parser.prototype.Node_Expr_BitwiseOr = function() {
  4977. return {
  4978. type: "Node_Expr_BitwiseOr",
  4979. left: arguments[ 0 ],
  4980. right: arguments[ 1 ],
  4981. attributes: arguments[ 2 ]
  4982. };
  4983. };
  4984. PHP.Parser.prototype.Node_Expr_BitwiseXor = function() {
  4985. return {
  4986. type: "Node_Expr_BitwiseXor",
  4987. left: arguments[ 0 ],
  4988. right: arguments[ 1 ],
  4989. attributes: arguments[ 2 ]
  4990. };
  4991. };
  4992. PHP.Parser.prototype.Node_Expr_BitwiseNot = function() {
  4993. return {
  4994. type: "Node_Expr_BitwiseNot",
  4995. expr: arguments[ 0 ],
  4996. attributes: arguments[ 1 ]
  4997. };
  4998. };
  4999. PHP.Parser.prototype.Node_Expr_BooleanNot = function() {
  5000. return {
  5001. type: "Node_Expr_BooleanNot",
  5002. expr: arguments[ 0 ],
  5003. attributes: arguments[ 1 ]
  5004. };
  5005. };
  5006. PHP.Parser.prototype.Node_Expr_BooleanAnd = function() {
  5007. return {
  5008. type: "Node_Expr_BooleanAnd",
  5009. left: arguments[ 0 ],
  5010. right: arguments[ 1 ],
  5011. attributes: arguments[ 2 ]
  5012. };
  5013. };
  5014. PHP.Parser.prototype.Node_Expr_Instanceof = function() {
  5015. return {
  5016. type: "Node_Expr_Instanceof",
  5017. left: arguments[ 0 ],
  5018. right: arguments[ 1 ],
  5019. attributes: arguments[ 2 ]
  5020. };
  5021. };
  5022. PHP.Parser.prototype.Node_Expr_Clone = function() {
  5023. return {
  5024. type: "Node_Expr_Clone",
  5025. expr: arguments[ 0 ],
  5026. attributes: arguments[ 1 ]
  5027. };
  5028. };
  5029. PHP.Parser.prototype.Scalar_LNumber_parse = function( a ) {
  5030. return a;
  5031. };
  5032. PHP.Parser.prototype.Scalar_DNumber_parse = function( a ) {
  5033. return a;
  5034. };
  5035. PHP.Parser.prototype.Scalar_String_parseDocString = function() {
  5036. return '"' + arguments[ 1 ].replace(/([^"\\]*(?:\\.[^"\\]*)*)"/g, '$1\\"') + '"';
  5037. };
  5038. PHP.Parser.prototype.Node_Scalar_String = function( ) {
  5039. return {
  5040. type: "Node_Scalar_String",
  5041. value: arguments[ 0 ],
  5042. attributes: arguments[ 1 ]
  5043. };
  5044. };
  5045. PHP.Parser.prototype.Scalar_String_create = function( ) {
  5046. return {
  5047. type: "Node_Scalar_String",
  5048. value: arguments[ 0 ],
  5049. attributes: arguments[ 1 ]
  5050. };
  5051. };
  5052. PHP.Parser.prototype.Node_Scalar_LNumber = function() {
  5053. return {
  5054. type: "Node_Scalar_LNumber",
  5055. value: arguments[ 0 ],
  5056. attributes: arguments[ 1 ]
  5057. };
  5058. };
  5059. PHP.Parser.prototype.Node_Scalar_DNumber = function() {
  5060. return {
  5061. type: "Node_Scalar_DNumber",
  5062. value: arguments[ 0 ],
  5063. attributes: arguments[ 1 ]
  5064. };
  5065. };
  5066. PHP.Parser.prototype.Node_Scalar_Encapsed = function() {
  5067. return {
  5068. type: "Node_Scalar_Encapsed",
  5069. parts: arguments[ 0 ],
  5070. attributes: arguments[ 1 ]
  5071. };
  5072. };
  5073. PHP.Parser.prototype.Node_Name = function() {
  5074. return {
  5075. type: "Node_Name",
  5076. parts: arguments[ 0 ],
  5077. attributes: arguments[ 1 ]
  5078. };
  5079. };
  5080. PHP.Parser.prototype.Node_Name_FullyQualified = function() {
  5081. return {
  5082. type: "Node_Name_FullyQualified",
  5083. parts: arguments[ 0 ],
  5084. attributes: arguments[ 1 ]
  5085. };
  5086. };
  5087. PHP.Parser.prototype.Node_Name_Relative = function() {
  5088. return {
  5089. type: "Node_Name_Relative",
  5090. parts: arguments[ 0 ],
  5091. attributes: arguments[ 1 ]
  5092. };
  5093. };
  5094. PHP.Parser.prototype.Node_Param = function() {
  5095. return {
  5096. type: "Node_Param",
  5097. name: arguments[ 0 ],
  5098. def: arguments[ 1 ],
  5099. Type: arguments[ 2 ],
  5100. byRef: arguments[ 3 ],
  5101. attributes: arguments[ 4 ]
  5102. };
  5103. };
  5104. PHP.Parser.prototype.Node_Arg = function() {
  5105. return {
  5106. type: "Node_Name",
  5107. value: arguments[ 0 ],
  5108. byRef: arguments[ 1 ],
  5109. attributes: arguments[ 2 ]
  5110. };
  5111. };
  5112. PHP.Parser.prototype.Node_Const = function() {
  5113. return {
  5114. type: "Node_Const",
  5115. name: arguments[ 0 ],
  5116. value: arguments[ 1 ],
  5117. attributes: arguments[ 2 ]
  5118. };
  5119. };
  5120. exports.PHP = PHP;
  5121. });
  5122. ace.define("ace/mode/php_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/php/php"], function(require, exports, module) {
  5123. "use strict";
  5124. var oop = require("../lib/oop");
  5125. var Mirror = require("../worker/mirror").Mirror;
  5126. var PHP = require("./php/php").PHP;
  5127. var PhpWorker = exports.PhpWorker = function(sender) {
  5128. Mirror.call(this, sender);
  5129. this.setTimeout(500);
  5130. };
  5131. oop.inherits(PhpWorker, Mirror);
  5132. (function() {
  5133. this.setOptions = function(opts) {
  5134. this.inlinePhp = opts && opts.inline;
  5135. };
  5136. this.onUpdate = function() {
  5137. var value = this.doc.getValue();
  5138. var errors = [];
  5139. if (this.inlinePhp)
  5140. value = "<?" + value + "?>";
  5141. var tokens = PHP.Lexer(value, {short_open_tag: 1});
  5142. try {
  5143. new PHP.Parser(tokens);
  5144. } catch(e) {
  5145. errors.push({
  5146. row: e.line - 1,
  5147. column: null,
  5148. text: e.message.charAt(0).toUpperCase() + e.message.substring(1),
  5149. type: "error"
  5150. });
  5151. }
  5152. if (errors.length) {
  5153. this.sender.emit("error", errors);
  5154. } else {
  5155. this.sender.emit("ok");
  5156. }
  5157. };
  5158. }).call(PhpWorker.prototype);
  5159. });
  5160. ace.define("ace/lib/es5-shim",["require","exports","module"], function(require, exports, module) {
  5161. function Empty() {}
  5162. if (!Function.prototype.bind) {
  5163. Function.prototype.bind = function bind(that) { // .length is 1
  5164. var target = this;
  5165. if (typeof target != "function") {
  5166. throw new TypeError("Function.prototype.bind called on incompatible " + target);
  5167. }
  5168. var args = slice.call(arguments, 1); // for normal call
  5169. var bound = function () {
  5170. if (this instanceof bound) {
  5171. var result = target.apply(
  5172. this,
  5173. args.concat(slice.call(arguments))
  5174. );
  5175. if (Object(result) === result) {
  5176. return result;
  5177. }
  5178. return this;
  5179. } else {
  5180. return target.apply(
  5181. that,
  5182. args.concat(slice.call(arguments))
  5183. );
  5184. }
  5185. };
  5186. if(target.prototype) {
  5187. Empty.prototype = target.prototype;
  5188. bound.prototype = new Empty();
  5189. Empty.prototype = null;
  5190. }
  5191. return bound;
  5192. };
  5193. }
  5194. var call = Function.prototype.call;
  5195. var prototypeOfArray = Array.prototype;
  5196. var prototypeOfObject = Object.prototype;
  5197. var slice = prototypeOfArray.slice;
  5198. var _toString = call.bind(prototypeOfObject.toString);
  5199. var owns = call.bind(prototypeOfObject.hasOwnProperty);
  5200. var defineGetter;
  5201. var defineSetter;
  5202. var lookupGetter;
  5203. var lookupSetter;
  5204. var supportsAccessors;
  5205. if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__"))) {
  5206. defineGetter = call.bind(prototypeOfObject.__defineGetter__);
  5207. defineSetter = call.bind(prototypeOfObject.__defineSetter__);
  5208. lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);
  5209. lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);
  5210. }
  5211. if ([1,2].splice(0).length != 2) {
  5212. if(function() { // test IE < 9 to splice bug - see issue #138
  5213. function makeArray(l) {
  5214. var a = new Array(l+2);
  5215. a[0] = a[1] = 0;
  5216. return a;
  5217. }
  5218. var array = [], lengthBefore;
  5219. array.splice.apply(array, makeArray(20));
  5220. array.splice.apply(array, makeArray(26));
  5221. lengthBefore = array.length; //46
  5222. array.splice(5, 0, "XXX"); // add one element
  5223. lengthBefore + 1 == array.length
  5224. if (lengthBefore + 1 == array.length) {
  5225. return true;// has right splice implementation without bugs
  5226. }
  5227. }()) {//IE 6/7
  5228. var array_splice = Array.prototype.splice;
  5229. Array.prototype.splice = function(start, deleteCount) {
  5230. if (!arguments.length) {
  5231. return [];
  5232. } else {
  5233. return array_splice.apply(this, [
  5234. start === void 0 ? 0 : start,
  5235. deleteCount === void 0 ? (this.length - start) : deleteCount
  5236. ].concat(slice.call(arguments, 2)))
  5237. }
  5238. };
  5239. } else {//IE8
  5240. Array.prototype.splice = function(pos, removeCount){
  5241. var length = this.length;
  5242. if (pos > 0) {
  5243. if (pos > length)
  5244. pos = length;
  5245. } else if (pos == void 0) {
  5246. pos = 0;
  5247. } else if (pos < 0) {
  5248. pos = Math.max(length + pos, 0);
  5249. }
  5250. if (!(pos+removeCount < length))
  5251. removeCount = length - pos;
  5252. var removed = this.slice(pos, pos+removeCount);
  5253. var insert = slice.call(arguments, 2);
  5254. var add = insert.length;
  5255. if (pos === length) {
  5256. if (add) {
  5257. this.push.apply(this, insert);
  5258. }
  5259. } else {
  5260. var remove = Math.min(removeCount, length - pos);
  5261. var tailOldPos = pos + remove;
  5262. var tailNewPos = tailOldPos + add - remove;
  5263. var tailCount = length - tailOldPos;
  5264. var lengthAfterRemove = length - remove;
  5265. if (tailNewPos < tailOldPos) { // case A
  5266. for (var i = 0; i < tailCount; ++i) {
  5267. this[tailNewPos+i] = this[tailOldPos+i];
  5268. }
  5269. } else if (tailNewPos > tailOldPos) { // case B
  5270. for (i = tailCount; i--; ) {
  5271. this[tailNewPos+i] = this[tailOldPos+i];
  5272. }
  5273. } // else, add == remove (nothing to do)
  5274. if (add && pos === lengthAfterRemove) {
  5275. this.length = lengthAfterRemove; // truncate array
  5276. this.push.apply(this, insert);
  5277. } else {
  5278. this.length = lengthAfterRemove + add; // reserves space
  5279. for (i = 0; i < add; ++i) {
  5280. this[pos+i] = insert[i];
  5281. }
  5282. }
  5283. }
  5284. return removed;
  5285. };
  5286. }
  5287. }
  5288. if (!Array.isArray) {
  5289. Array.isArray = function isArray(obj) {
  5290. return _toString(obj) == "[object Array]";
  5291. };
  5292. }
  5293. var boxedString = Object("a"),
  5294. splitString = boxedString[0] != "a" || !(0 in boxedString);
  5295. if (!Array.prototype.forEach) {
  5296. Array.prototype.forEach = function forEach(fun /*, thisp*/) {
  5297. var object = toObject(this),
  5298. self = splitString && _toString(this) == "[object String]" ?
  5299. this.split("") :
  5300. object,
  5301. thisp = arguments[1],
  5302. i = -1,
  5303. length = self.length >>> 0;
  5304. if (_toString(fun) != "[object Function]") {
  5305. throw new TypeError(); // TODO message
  5306. }
  5307. while (++i < length) {
  5308. if (i in self) {
  5309. fun.call(thisp, self[i], i, object);
  5310. }
  5311. }
  5312. };
  5313. }
  5314. if (!Array.prototype.map) {
  5315. Array.prototype.map = function map(fun /*, thisp*/) {
  5316. var object = toObject(this),
  5317. self = splitString && _toString(this) == "[object String]" ?
  5318. this.split("") :
  5319. object,
  5320. length = self.length >>> 0,
  5321. result = Array(length),
  5322. thisp = arguments[1];
  5323. if (_toString(fun) != "[object Function]") {
  5324. throw new TypeError(fun + " is not a function");
  5325. }
  5326. for (var i = 0; i < length; i++) {
  5327. if (i in self)
  5328. result[i] = fun.call(thisp, self[i], i, object);
  5329. }
  5330. return result;
  5331. };
  5332. }
  5333. if (!Array.prototype.filter) {
  5334. Array.prototype.filter = function filter(fun /*, thisp */) {
  5335. var object = toObject(this),
  5336. self = splitString && _toString(this) == "[object String]" ?
  5337. this.split("") :
  5338. object,
  5339. length = self.length >>> 0,
  5340. result = [],
  5341. value,
  5342. thisp = arguments[1];
  5343. if (_toString(fun) != "[object Function]") {
  5344. throw new TypeError(fun + " is not a function");
  5345. }
  5346. for (var i = 0; i < length; i++) {
  5347. if (i in self) {
  5348. value = self[i];
  5349. if (fun.call(thisp, value, i, object)) {
  5350. result.push(value);
  5351. }
  5352. }
  5353. }
  5354. return result;
  5355. };
  5356. }
  5357. if (!Array.prototype.every) {
  5358. Array.prototype.every = function every(fun /*, thisp */) {
  5359. var object = toObject(this),
  5360. self = splitString && _toString(this) == "[object String]" ?
  5361. this.split("") :
  5362. object,
  5363. length = self.length >>> 0,
  5364. thisp = arguments[1];
  5365. if (_toString(fun) != "[object Function]") {
  5366. throw new TypeError(fun + " is not a function");
  5367. }
  5368. for (var i = 0; i < length; i++) {
  5369. if (i in self && !fun.call(thisp, self[i], i, object)) {
  5370. return false;
  5371. }
  5372. }
  5373. return true;
  5374. };
  5375. }
  5376. if (!Array.prototype.some) {
  5377. Array.prototype.some = function some(fun /*, thisp */) {
  5378. var object = toObject(this),
  5379. self = splitString && _toString(this) == "[object String]" ?
  5380. this.split("") :
  5381. object,
  5382. length = self.length >>> 0,
  5383. thisp = arguments[1];
  5384. if (_toString(fun) != "[object Function]") {
  5385. throw new TypeError(fun + " is not a function");
  5386. }
  5387. for (var i = 0; i < length; i++) {
  5388. if (i in self && fun.call(thisp, self[i], i, object)) {
  5389. return true;
  5390. }
  5391. }
  5392. return false;
  5393. };
  5394. }
  5395. if (!Array.prototype.reduce) {
  5396. Array.prototype.reduce = function reduce(fun /*, initial*/) {
  5397. var object = toObject(this),
  5398. self = splitString && _toString(this) == "[object String]" ?
  5399. this.split("") :
  5400. object,
  5401. length = self.length >>> 0;
  5402. if (_toString(fun) != "[object Function]") {
  5403. throw new TypeError(fun + " is not a function");
  5404. }
  5405. if (!length && arguments.length == 1) {
  5406. throw new TypeError("reduce of empty array with no initial value");
  5407. }
  5408. var i = 0;
  5409. var result;
  5410. if (arguments.length >= 2) {
  5411. result = arguments[1];
  5412. } else {
  5413. do {
  5414. if (i in self) {
  5415. result = self[i++];
  5416. break;
  5417. }
  5418. if (++i >= length) {
  5419. throw new TypeError("reduce of empty array with no initial value");
  5420. }
  5421. } while (true);
  5422. }
  5423. for (; i < length; i++) {
  5424. if (i in self) {
  5425. result = fun.call(void 0, result, self[i], i, object);
  5426. }
  5427. }
  5428. return result;
  5429. };
  5430. }
  5431. if (!Array.prototype.reduceRight) {
  5432. Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {
  5433. var object = toObject(this),
  5434. self = splitString && _toString(this) == "[object String]" ?
  5435. this.split("") :
  5436. object,
  5437. length = self.length >>> 0;
  5438. if (_toString(fun) != "[object Function]") {
  5439. throw new TypeError(fun + " is not a function");
  5440. }
  5441. if (!length && arguments.length == 1) {
  5442. throw new TypeError("reduceRight of empty array with no initial value");
  5443. }
  5444. var result, i = length - 1;
  5445. if (arguments.length >= 2) {
  5446. result = arguments[1];
  5447. } else {
  5448. do {
  5449. if (i in self) {
  5450. result = self[i--];
  5451. break;
  5452. }
  5453. if (--i < 0) {
  5454. throw new TypeError("reduceRight of empty array with no initial value");
  5455. }
  5456. } while (true);
  5457. }
  5458. do {
  5459. if (i in this) {
  5460. result = fun.call(void 0, result, self[i], i, object);
  5461. }
  5462. } while (i--);
  5463. return result;
  5464. };
  5465. }
  5466. if (!Array.prototype.indexOf || ([0, 1].indexOf(1, 2) != -1)) {
  5467. Array.prototype.indexOf = function indexOf(sought /*, fromIndex */ ) {
  5468. var self = splitString && _toString(this) == "[object String]" ?
  5469. this.split("") :
  5470. toObject(this),
  5471. length = self.length >>> 0;
  5472. if (!length) {
  5473. return -1;
  5474. }
  5475. var i = 0;
  5476. if (arguments.length > 1) {
  5477. i = toInteger(arguments[1]);
  5478. }
  5479. i = i >= 0 ? i : Math.max(0, length + i);
  5480. for (; i < length; i++) {
  5481. if (i in self && self[i] === sought) {
  5482. return i;
  5483. }
  5484. }
  5485. return -1;
  5486. };
  5487. }
  5488. if (!Array.prototype.lastIndexOf || ([0, 1].lastIndexOf(0, -3) != -1)) {
  5489. Array.prototype.lastIndexOf = function lastIndexOf(sought /*, fromIndex */) {
  5490. var self = splitString && _toString(this) == "[object String]" ?
  5491. this.split("") :
  5492. toObject(this),
  5493. length = self.length >>> 0;
  5494. if (!length) {
  5495. return -1;
  5496. }
  5497. var i = length - 1;
  5498. if (arguments.length > 1) {
  5499. i = Math.min(i, toInteger(arguments[1]));
  5500. }
  5501. i = i >= 0 ? i : length - Math.abs(i);
  5502. for (; i >= 0; i--) {
  5503. if (i in self && sought === self[i]) {
  5504. return i;
  5505. }
  5506. }
  5507. return -1;
  5508. };
  5509. }
  5510. if (!Object.getPrototypeOf) {
  5511. Object.getPrototypeOf = function getPrototypeOf(object) {
  5512. return object.__proto__ || (
  5513. object.constructor ?
  5514. object.constructor.prototype :
  5515. prototypeOfObject
  5516. );
  5517. };
  5518. }
  5519. if (!Object.getOwnPropertyDescriptor) {
  5520. var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a " +
  5521. "non-object: ";
  5522. Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {
  5523. if ((typeof object != "object" && typeof object != "function") || object === null)
  5524. throw new TypeError(ERR_NON_OBJECT + object);
  5525. if (!owns(object, property))
  5526. return;
  5527. var descriptor, getter, setter;
  5528. descriptor = { enumerable: true, configurable: true };
  5529. if (supportsAccessors) {
  5530. var prototype = object.__proto__;
  5531. object.__proto__ = prototypeOfObject;
  5532. var getter = lookupGetter(object, property);
  5533. var setter = lookupSetter(object, property);
  5534. object.__proto__ = prototype;
  5535. if (getter || setter) {
  5536. if (getter) descriptor.get = getter;
  5537. if (setter) descriptor.set = setter;
  5538. return descriptor;
  5539. }
  5540. }
  5541. descriptor.value = object[property];
  5542. return descriptor;
  5543. };
  5544. }
  5545. if (!Object.getOwnPropertyNames) {
  5546. Object.getOwnPropertyNames = function getOwnPropertyNames(object) {
  5547. return Object.keys(object);
  5548. };
  5549. }
  5550. if (!Object.create) {
  5551. var createEmpty;
  5552. if (Object.prototype.__proto__ === null) {
  5553. createEmpty = function () {
  5554. return { "__proto__": null };
  5555. };
  5556. } else {
  5557. createEmpty = function () {
  5558. var empty = {};
  5559. for (var i in empty)
  5560. empty[i] = null;
  5561. empty.constructor =
  5562. empty.hasOwnProperty =
  5563. empty.propertyIsEnumerable =
  5564. empty.isPrototypeOf =
  5565. empty.toLocaleString =
  5566. empty.toString =
  5567. empty.valueOf =
  5568. empty.__proto__ = null;
  5569. return empty;
  5570. }
  5571. }
  5572. Object.create = function create(prototype, properties) {
  5573. var object;
  5574. if (prototype === null) {
  5575. object = createEmpty();
  5576. } else {
  5577. if (typeof prototype != "object")
  5578. throw new TypeError("typeof prototype["+(typeof prototype)+"] != 'object'");
  5579. var Type = function () {};
  5580. Type.prototype = prototype;
  5581. object = new Type();
  5582. object.__proto__ = prototype;
  5583. }
  5584. if (properties !== void 0)
  5585. Object.defineProperties(object, properties);
  5586. return object;
  5587. };
  5588. }
  5589. function doesDefinePropertyWork(object) {
  5590. try {
  5591. Object.defineProperty(object, "sentinel", {});
  5592. return "sentinel" in object;
  5593. } catch (exception) {
  5594. }
  5595. }
  5596. if (Object.defineProperty) {
  5597. var definePropertyWorksOnObject = doesDefinePropertyWork({});
  5598. var definePropertyWorksOnDom = typeof document == "undefined" ||
  5599. doesDefinePropertyWork(document.createElement("div"));
  5600. if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
  5601. var definePropertyFallback = Object.defineProperty;
  5602. }
  5603. }
  5604. if (!Object.defineProperty || definePropertyFallback) {
  5605. var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ";
  5606. var ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: "
  5607. var ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined " +
  5608. "on this javascript engine";
  5609. Object.defineProperty = function defineProperty(object, property, descriptor) {
  5610. if ((typeof object != "object" && typeof object != "function") || object === null)
  5611. throw new TypeError(ERR_NON_OBJECT_TARGET + object);
  5612. if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null)
  5613. throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);
  5614. if (definePropertyFallback) {
  5615. try {
  5616. return definePropertyFallback.call(Object, object, property, descriptor);
  5617. } catch (exception) {
  5618. }
  5619. }
  5620. if (owns(descriptor, "value")) {
  5621. if (supportsAccessors && (lookupGetter(object, property) ||
  5622. lookupSetter(object, property)))
  5623. {
  5624. var prototype = object.__proto__;
  5625. object.__proto__ = prototypeOfObject;
  5626. delete object[property];
  5627. object[property] = descriptor.value;
  5628. object.__proto__ = prototype;
  5629. } else {
  5630. object[property] = descriptor.value;
  5631. }
  5632. } else {
  5633. if (!supportsAccessors)
  5634. throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
  5635. if (owns(descriptor, "get"))
  5636. defineGetter(object, property, descriptor.get);
  5637. if (owns(descriptor, "set"))
  5638. defineSetter(object, property, descriptor.set);
  5639. }
  5640. return object;
  5641. };
  5642. }
  5643. if (!Object.defineProperties) {
  5644. Object.defineProperties = function defineProperties(object, properties) {
  5645. for (var property in properties) {
  5646. if (owns(properties, property))
  5647. Object.defineProperty(object, property, properties[property]);
  5648. }
  5649. return object;
  5650. };
  5651. }
  5652. if (!Object.seal) {
  5653. Object.seal = function seal(object) {
  5654. return object;
  5655. };
  5656. }
  5657. if (!Object.freeze) {
  5658. Object.freeze = function freeze(object) {
  5659. return object;
  5660. };
  5661. }
  5662. try {
  5663. Object.freeze(function () {});
  5664. } catch (exception) {
  5665. Object.freeze = (function freeze(freezeObject) {
  5666. return function freeze(object) {
  5667. if (typeof object == "function") {
  5668. return object;
  5669. } else {
  5670. return freezeObject(object);
  5671. }
  5672. };
  5673. })(Object.freeze);
  5674. }
  5675. if (!Object.preventExtensions) {
  5676. Object.preventExtensions = function preventExtensions(object) {
  5677. return object;
  5678. };
  5679. }
  5680. if (!Object.isSealed) {
  5681. Object.isSealed = function isSealed(object) {
  5682. return false;
  5683. };
  5684. }
  5685. if (!Object.isFrozen) {
  5686. Object.isFrozen = function isFrozen(object) {
  5687. return false;
  5688. };
  5689. }
  5690. if (!Object.isExtensible) {
  5691. Object.isExtensible = function isExtensible(object) {
  5692. if (Object(object) === object) {
  5693. throw new TypeError(); // TODO message
  5694. }
  5695. var name = '';
  5696. while (owns(object, name)) {
  5697. name += '?';
  5698. }
  5699. object[name] = true;
  5700. var returnValue = owns(object, name);
  5701. delete object[name];
  5702. return returnValue;
  5703. };
  5704. }
  5705. if (!Object.keys) {
  5706. var hasDontEnumBug = true,
  5707. dontEnums = [
  5708. "toString",
  5709. "toLocaleString",
  5710. "valueOf",
  5711. "hasOwnProperty",
  5712. "isPrototypeOf",
  5713. "propertyIsEnumerable",
  5714. "constructor"
  5715. ],
  5716. dontEnumsLength = dontEnums.length;
  5717. for (var key in {"toString": null}) {
  5718. hasDontEnumBug = false;
  5719. }
  5720. Object.keys = function keys(object) {
  5721. if (
  5722. (typeof object != "object" && typeof object != "function") ||
  5723. object === null
  5724. ) {
  5725. throw new TypeError("Object.keys called on a non-object");
  5726. }
  5727. var keys = [];
  5728. for (var name in object) {
  5729. if (owns(object, name)) {
  5730. keys.push(name);
  5731. }
  5732. }
  5733. if (hasDontEnumBug) {
  5734. for (var i = 0, ii = dontEnumsLength; i < ii; i++) {
  5735. var dontEnum = dontEnums[i];
  5736. if (owns(object, dontEnum)) {
  5737. keys.push(dontEnum);
  5738. }
  5739. }
  5740. }
  5741. return keys;
  5742. };
  5743. }
  5744. if (!Date.now) {
  5745. Date.now = function now() {
  5746. return new Date().getTime();
  5747. };
  5748. }
  5749. var ws = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003" +
  5750. "\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028" +
  5751. "\u2029\uFEFF";
  5752. if (!String.prototype.trim || ws.trim()) {
  5753. ws = "[" + ws + "]";
  5754. var trimBeginRegexp = new RegExp("^" + ws + ws + "*"),
  5755. trimEndRegexp = new RegExp(ws + ws + "*$");
  5756. String.prototype.trim = function trim() {
  5757. return String(this).replace(trimBeginRegexp, "").replace(trimEndRegexp, "");
  5758. };
  5759. }
  5760. function toInteger(n) {
  5761. n = +n;
  5762. if (n !== n) { // isNaN
  5763. n = 0;
  5764. } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {
  5765. n = (n > 0 || -1) * Math.floor(Math.abs(n));
  5766. }
  5767. return n;
  5768. }
  5769. function isPrimitive(input) {
  5770. var type = typeof input;
  5771. return (
  5772. input === null ||
  5773. type === "undefined" ||
  5774. type === "boolean" ||
  5775. type === "number" ||
  5776. type === "string"
  5777. );
  5778. }
  5779. function toPrimitive(input) {
  5780. var val, valueOf, toString;
  5781. if (isPrimitive(input)) {
  5782. return input;
  5783. }
  5784. valueOf = input.valueOf;
  5785. if (typeof valueOf === "function") {
  5786. val = valueOf.call(input);
  5787. if (isPrimitive(val)) {
  5788. return val;
  5789. }
  5790. }
  5791. toString = input.toString;
  5792. if (typeof toString === "function") {
  5793. val = toString.call(input);
  5794. if (isPrimitive(val)) {
  5795. return val;
  5796. }
  5797. }
  5798. throw new TypeError();
  5799. }
  5800. var toObject = function (o) {
  5801. if (o == null) { // this matches both null and undefined
  5802. throw new TypeError("can't convert "+o+" to object");
  5803. }
  5804. return Object(o);
  5805. };
  5806. });