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

worker-php.js 227KB

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