worker-php.js 231 KB

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