12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256 |
- // Code generated from SQLiteParser.g4 by ANTLR 4.12.0. DO NOT EDIT.
- package parser // SQLiteParser
- import (
- "fmt"
- "strconv"
- "sync"
- "github.com/antlr/antlr4/runtime/Go/antlr/v4"
- )
- // Suppress unused import errors
- var _ = fmt.Printf
- var _ = strconv.Itoa
- var _ = sync.Once{}
- type SQLiteParser struct {
- *antlr.BaseParser
- }
- var sqliteparserParserStaticData struct {
- once sync.Once
- serializedATN []int32
- literalNames []string
- symbolicNames []string
- ruleNames []string
- predictionContextCache *antlr.PredictionContextCache
- atn *antlr.ATN
- decisionToDFA []*antlr.DFA
- }
- func sqliteparserParserInit() {
- staticData := &sqliteparserParserStaticData
- staticData.literalNames = []string{
- "", "';'", "'.'", "'('", "')'", "','", "'='", "'*'", "'+'", "'->>'",
- "'->'", "'-'", "'~'", "'||'", "'/'", "'%'", "'<<'", "'>>'", "'&'", "'|'",
- "'<'", "'<='", "'>'", "'>='", "'=='", "'!='", "'<>'",
- }
- staticData.symbolicNames = []string{
- "", "SCOL", "DOT", "OPEN_PAR", "CLOSE_PAR", "COMMA", "ASSIGN", "STAR",
- "PLUS", "PTR2", "PTR", "MINUS", "TILDE", "PIPE2", "DIV", "MOD", "LT2",
- "GT2", "AMP", "PIPE", "LT", "LT_EQ", "GT", "GT_EQ", "EQ", "NOT_EQ1",
- "NOT_EQ2", "ABORT_", "ACTION_", "ADD_", "AFTER_", "ALL_", "ALTER_",
- "ANALYZE_", "AND_", "AS_", "ASC_", "ATTACH_", "AUTOINCREMENT_", "BEFORE_",
- "BEGIN_", "BETWEEN_", "BY_", "CASCADE_", "CASE_", "CAST_", "CHECK_",
- "COLLATE_", "COLUMN_", "COMMIT_", "CONFLICT_", "CONSTRAINT_", "CREATE_",
- "CROSS_", "CURRENT_DATE_", "CURRENT_TIME_", "CURRENT_TIMESTAMP_", "DATABASE_",
- "DEFAULT_", "DEFERRABLE_", "DEFERRED_", "DELETE_", "DESC_", "DETACH_",
- "DISTINCT_", "DROP_", "EACH_", "ELSE_", "END_", "ESCAPE_", "EXCEPT_",
- "EXCLUSIVE_", "EXISTS_", "EXPLAIN_", "FAIL_", "FOR_", "FOREIGN_", "FROM_",
- "FULL_", "GLOB_", "GROUP_", "HAVING_", "IF_", "IGNORE_", "IMMEDIATE_",
- "IN_", "INDEX_", "INDEXED_", "INITIALLY_", "INNER_", "INSERT_", "INSTEAD_",
- "INTERSECT_", "INTO_", "IS_", "ISNULL_", "JOIN_", "KEY_", "LEFT_", "LIKE_",
- "LIMIT_", "MATCH_", "NATURAL_", "NO_", "NOT_", "NOTNULL_", "NULL_",
- "OF_", "OFFSET_", "ON_", "OR_", "ORDER_", "OUTER_", "PLAN_", "PRAGMA_",
- "PRIMARY_", "QUERY_", "RAISE_", "RECURSIVE_", "REFERENCES_", "REGEXP_",
- "REINDEX_", "RELEASE_", "RENAME_", "REPLACE_", "RESTRICT_", "RETURNING_",
- "RIGHT_", "ROLLBACK_", "ROW_", "ROWS_", "SAVEPOINT_", "SELECT_", "SET_",
- "STRICT_", "TABLE_", "TEMP_", "TEMPORARY_", "THEN_", "TO_", "TRANSACTION_",
- "TRIGGER_", "UNION_", "UNIQUE_", "UPDATE_", "USING_", "VACUUM_", "VALUES_",
- "VIEW_", "VIRTUAL_", "WHEN_", "WHERE_", "WITH_", "WITHOUT_", "FIRST_VALUE_",
- "OVER_", "PARTITION_", "RANGE_", "PRECEDING_", "UNBOUNDED_", "CURRENT_",
- "FOLLOWING_", "CUME_DIST_", "DENSE_RANK_", "LAG_", "LAST_VALUE_", "LEAD_",
- "NTH_VALUE_", "NTILE_", "PERCENT_RANK_", "RANK_", "ROW_NUMBER_", "GENERATED_",
- "ALWAYS_", "STORED_", "TRUE_", "FALSE_", "WINDOW_", "NULLS_", "FIRST_",
- "LAST_", "FILTER_", "GROUPS_", "EXCLUDE_", "TIES_", "OTHERS_", "DO_",
- "NOTHING_", "IDENTIFIER", "NUMERIC_LITERAL", "NUMBERED_BIND_PARAMETER",
- "NAMED_BIND_PARAMETER", "STRING_LITERAL", "BLOB_LITERAL", "SINGLE_LINE_COMMENT",
- "MULTILINE_COMMENT", "SPACES", "UNEXPECTED_CHAR",
- }
- staticData.ruleNames = []string{
- "parse", "sql_stmt_list", "sql_stmt", "alter_table_stmt", "analyze_stmt",
- "attach_stmt", "begin_stmt", "commit_stmt", "rollback_stmt", "savepoint_stmt",
- "release_stmt", "create_index_stmt", "indexed_column", "table_option",
- "create_table_stmt", "column_def", "type_name", "column_constraint",
- "signed_number", "table_constraint", "foreign_key_clause", "conflict_clause",
- "create_trigger_stmt", "create_view_stmt", "create_virtual_table_stmt",
- "with_clause", "cte_table_name", "recursive_cte", "common_table_expression",
- "returning_clause", "delete_stmt", "delete_stmt_limited", "detach_stmt",
- "drop_stmt", "expr", "raise_function", "literal_value", "insert_stmt",
- "upsert_clause", "pragma_stmt", "pragma_value", "reindex_stmt", "select_stmt",
- "join_clause", "select_core", "factored_select_stmt", "simple_select_stmt",
- "compound_select_stmt", "table_or_subquery", "result_column", "join_operator",
- "join_constraint", "compound_operator", "update_stmt", "column_name_list",
- "update_stmt_limited", "qualified_table_name", "vacuum_stmt", "filter_clause",
- "window_defn", "over_clause", "frame_spec", "frame_clause", "simple_function_invocation",
- "aggregate_function_invocation", "window_function_invocation", "common_table_stmt",
- "order_by_stmt", "limit_stmt", "ordering_term", "asc_desc", "frame_left",
- "frame_right", "frame_single", "window_function", "of_OF_fset", "default_DEFAULT__value",
- "partition_by", "order_by_expr", "order_by_expr_asc_desc", "expr_asc_desc",
- "initial_select", "recursive__select", "unary_operator", "error_message",
- "module_argument", "column_alias", "keyword", "name", "function_name",
- "qualified_function_name", "schema_name", "table_name", "table_or_index_name",
- "new_table_name", "column_name", "collation_name", "foreign_table",
- "index_name", "trigger_name", "view_name", "module_name", "pragma_name",
- "savepoint_name", "table_alias", "table_alias_fallback", "transaction_name",
- "window_name", "alias", "filename", "base_window_name", "simple_func",
- "aggregate_func", "table_function_name", "any_name",
- }
- staticData.predictionContextCache = antlr.NewPredictionContextCache()
- staticData.serializedATN = []int32{
- 4, 1, 197, 2178, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4,
- 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10,
- 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7,
- 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20,
- 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2,
- 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31,
- 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7,
- 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41,
- 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2,
- 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52,
- 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7,
- 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62,
- 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2,
- 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73,
- 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7,
- 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83,
- 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2,
- 89, 7, 89, 2, 90, 7, 90, 2, 91, 7, 91, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94,
- 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7,
- 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2,
- 104, 7, 104, 2, 105, 7, 105, 2, 106, 7, 106, 2, 107, 7, 107, 2, 108, 7,
- 108, 2, 109, 7, 109, 2, 110, 7, 110, 2, 111, 7, 111, 2, 112, 7, 112, 2,
- 113, 7, 113, 2, 114, 7, 114, 1, 0, 5, 0, 232, 8, 0, 10, 0, 12, 0, 235,
- 9, 0, 1, 0, 1, 0, 1, 1, 5, 1, 240, 8, 1, 10, 1, 12, 1, 243, 9, 1, 1, 1,
- 1, 1, 4, 1, 247, 8, 1, 11, 1, 12, 1, 248, 1, 1, 5, 1, 252, 8, 1, 10, 1,
- 12, 1, 255, 9, 1, 1, 1, 5, 1, 258, 8, 1, 10, 1, 12, 1, 261, 9, 1, 1, 2,
- 1, 2, 1, 2, 3, 2, 266, 8, 2, 3, 2, 268, 8, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1,
- 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1,
- 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 294, 8, 2, 1, 3, 1,
- 3, 1, 3, 1, 3, 1, 3, 3, 3, 301, 8, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3,
- 3, 308, 8, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 314, 8, 3, 1, 3, 1, 3, 3, 3,
- 318, 8, 3, 1, 3, 1, 3, 1, 3, 3, 3, 323, 8, 3, 1, 3, 3, 3, 326, 8, 3, 1,
- 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 333, 8, 4, 1, 4, 3, 4, 336, 8, 4, 1, 5,
- 1, 5, 3, 5, 340, 8, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 3, 6, 348, 8,
- 6, 1, 6, 1, 6, 3, 6, 352, 8, 6, 3, 6, 354, 8, 6, 1, 7, 1, 7, 3, 7, 358,
- 8, 7, 1, 8, 1, 8, 3, 8, 362, 8, 8, 1, 8, 1, 8, 3, 8, 366, 8, 8, 1, 8, 3,
- 8, 369, 8, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 3, 10, 376, 8, 10, 1, 10,
- 1, 10, 1, 11, 1, 11, 3, 11, 382, 8, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3,
- 11, 388, 8, 11, 1, 11, 1, 11, 1, 11, 3, 11, 393, 8, 11, 1, 11, 1, 11, 1,
- 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 402, 8, 11, 10, 11, 12, 11, 405,
- 9, 11, 1, 11, 1, 11, 1, 11, 3, 11, 410, 8, 11, 1, 12, 1, 12, 3, 12, 414,
- 8, 12, 1, 12, 1, 12, 3, 12, 418, 8, 12, 1, 12, 3, 12, 421, 8, 12, 1, 13,
- 1, 13, 1, 13, 3, 13, 426, 8, 13, 1, 14, 1, 14, 3, 14, 430, 8, 14, 1, 14,
- 1, 14, 1, 14, 1, 14, 3, 14, 436, 8, 14, 1, 14, 1, 14, 1, 14, 3, 14, 441,
- 8, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 448, 8, 14, 10, 14, 12,
- 14, 451, 9, 14, 1, 14, 1, 14, 5, 14, 455, 8, 14, 10, 14, 12, 14, 458, 9,
- 14, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 464, 8, 14, 10, 14, 12, 14, 467,
- 9, 14, 3, 14, 469, 8, 14, 1, 14, 1, 14, 3, 14, 473, 8, 14, 1, 15, 1, 15,
- 3, 15, 477, 8, 15, 1, 15, 5, 15, 480, 8, 15, 10, 15, 12, 15, 483, 9, 15,
- 1, 16, 4, 16, 486, 8, 16, 11, 16, 12, 16, 487, 1, 16, 1, 16, 1, 16, 1,
- 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 500, 8, 16, 1, 17,
- 1, 17, 3, 17, 504, 8, 17, 1, 17, 1, 17, 1, 17, 3, 17, 509, 8, 17, 1, 17,
- 3, 17, 512, 8, 17, 1, 17, 3, 17, 515, 8, 17, 1, 17, 1, 17, 1, 17, 3, 17,
- 520, 8, 17, 1, 17, 3, 17, 523, 8, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17,
- 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 3, 17, 537, 8, 17, 1,
- 17, 1, 17, 1, 17, 1, 17, 1, 17, 3, 17, 544, 8, 17, 1, 17, 1, 17, 1, 17,
- 1, 17, 1, 17, 3, 17, 551, 8, 17, 3, 17, 553, 8, 17, 1, 18, 3, 18, 556,
- 8, 18, 1, 18, 1, 18, 1, 19, 1, 19, 3, 19, 562, 8, 19, 1, 19, 1, 19, 1,
- 19, 3, 19, 567, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 573, 8, 19, 10,
- 19, 12, 19, 576, 9, 19, 1, 19, 1, 19, 3, 19, 580, 8, 19, 1, 19, 1, 19,
- 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 593,
- 8, 19, 10, 19, 12, 19, 596, 9, 19, 1, 19, 1, 19, 1, 19, 3, 19, 601, 8,
- 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 5, 20, 609, 8, 20, 10, 20,
- 12, 20, 612, 9, 20, 1, 20, 1, 20, 3, 20, 616, 8, 20, 1, 20, 1, 20, 1, 20,
- 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 626, 8, 20, 1, 20, 1, 20, 5,
- 20, 630, 8, 20, 10, 20, 12, 20, 633, 9, 20, 1, 20, 3, 20, 636, 8, 20, 1,
- 20, 1, 20, 1, 20, 3, 20, 641, 8, 20, 3, 20, 643, 8, 20, 1, 21, 1, 21, 1,
- 21, 1, 21, 1, 22, 1, 22, 3, 22, 651, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22,
- 3, 22, 657, 8, 22, 1, 22, 1, 22, 1, 22, 3, 22, 662, 8, 22, 1, 22, 1, 22,
- 1, 22, 1, 22, 1, 22, 3, 22, 669, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1,
- 22, 1, 22, 1, 22, 5, 22, 678, 8, 22, 10, 22, 12, 22, 681, 9, 22, 3, 22,
- 683, 8, 22, 3, 22, 685, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22,
- 692, 8, 22, 1, 22, 1, 22, 3, 22, 696, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22,
- 1, 22, 3, 22, 703, 8, 22, 1, 22, 1, 22, 4, 22, 707, 8, 22, 11, 22, 12,
- 22, 708, 1, 22, 1, 22, 1, 23, 1, 23, 3, 23, 715, 8, 23, 1, 23, 1, 23, 1,
- 23, 1, 23, 3, 23, 721, 8, 23, 1, 23, 1, 23, 1, 23, 3, 23, 726, 8, 23, 1,
- 23, 1, 23, 1, 23, 1, 23, 1, 23, 5, 23, 733, 8, 23, 10, 23, 12, 23, 736,
- 9, 23, 1, 23, 1, 23, 3, 23, 740, 8, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1,
- 24, 1, 24, 1, 24, 1, 24, 1, 24, 3, 24, 751, 8, 24, 1, 24, 1, 24, 1, 24,
- 3, 24, 756, 8, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 5,
- 24, 765, 8, 24, 10, 24, 12, 24, 768, 9, 24, 1, 24, 1, 24, 3, 24, 772, 8,
- 24, 1, 25, 1, 25, 3, 25, 776, 8, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25,
- 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 5, 25, 790, 8, 25, 10,
- 25, 12, 25, 793, 9, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 5, 26, 800,
- 8, 26, 10, 26, 12, 26, 803, 9, 26, 1, 26, 1, 26, 3, 26, 807, 8, 26, 1,
- 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 815, 8, 27, 1, 27, 1, 27,
- 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 5, 28, 825, 8, 28, 10, 28, 12,
- 28, 828, 9, 28, 1, 28, 1, 28, 3, 28, 832, 8, 28, 1, 28, 1, 28, 1, 28, 1,
- 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 3, 29, 843, 8, 29, 1, 29, 3, 29,
- 846, 8, 29, 3, 29, 848, 8, 29, 1, 29, 1, 29, 1, 29, 1, 29, 3, 29, 854,
- 8, 29, 1, 29, 3, 29, 857, 8, 29, 3, 29, 859, 8, 29, 5, 29, 861, 8, 29,
- 10, 29, 12, 29, 864, 9, 29, 1, 30, 3, 30, 867, 8, 30, 1, 30, 1, 30, 1,
- 30, 1, 30, 1, 30, 3, 30, 874, 8, 30, 1, 30, 3, 30, 877, 8, 30, 1, 31, 3,
- 31, 880, 8, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 887, 8, 31, 1,
- 31, 3, 31, 890, 8, 31, 1, 31, 3, 31, 893, 8, 31, 1, 31, 3, 31, 896, 8,
- 31, 1, 32, 1, 32, 3, 32, 900, 8, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33,
- 1, 33, 3, 33, 908, 8, 33, 1, 33, 1, 33, 1, 33, 3, 33, 913, 8, 33, 1, 33,
- 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 924, 8,
- 34, 1, 34, 1, 34, 1, 34, 3, 34, 929, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34,
- 1, 34, 1, 34, 1, 34, 3, 34, 938, 8, 34, 1, 34, 1, 34, 1, 34, 5, 34, 943,
- 8, 34, 10, 34, 12, 34, 946, 9, 34, 1, 34, 3, 34, 949, 8, 34, 1, 34, 1,
- 34, 3, 34, 953, 8, 34, 1, 34, 3, 34, 956, 8, 34, 1, 34, 1, 34, 1, 34, 1,
- 34, 5, 34, 962, 8, 34, 10, 34, 12, 34, 965, 9, 34, 1, 34, 1, 34, 1, 34,
- 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 977, 8, 34, 1,
- 34, 3, 34, 980, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34,
- 988, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 4, 34, 995, 8, 34, 11, 34,
- 12, 34, 996, 1, 34, 1, 34, 3, 34, 1001, 8, 34, 1, 34, 1, 34, 1, 34, 3,
- 34, 1006, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34,
- 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1,
- 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 1035,
- 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 1042, 8, 34, 1, 34, 1,
- 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 1053, 8, 34,
- 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 1062, 8, 34, 1,
- 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 5, 34, 1070, 8, 34, 10, 34, 12,
- 34, 1073, 9, 34, 3, 34, 1075, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34,
- 1081, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 1087, 8, 34, 1, 34, 1,
- 34, 1, 34, 1, 34, 1, 34, 5, 34, 1094, 8, 34, 10, 34, 12, 34, 1097, 9, 34,
- 3, 34, 1099, 8, 34, 1, 34, 1, 34, 3, 34, 1103, 8, 34, 1, 34, 1, 34, 1,
- 34, 1, 34, 1, 34, 3, 34, 1110, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34,
- 1116, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 1123, 8, 34, 5,
- 34, 1125, 8, 34, 10, 34, 12, 34, 1128, 9, 34, 1, 35, 1, 35, 1, 35, 1, 35,
- 1, 35, 1, 35, 3, 35, 1136, 8, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 37, 3,
- 37, 1143, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 1150, 8, 37,
- 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 1156, 8, 37, 1, 37, 1, 37, 1, 37, 3,
- 37, 1161, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 5, 37, 1167, 8, 37, 10, 37,
- 12, 37, 1170, 9, 37, 1, 37, 1, 37, 3, 37, 1174, 8, 37, 1, 37, 1, 37, 1,
- 37, 1, 37, 1, 37, 5, 37, 1181, 8, 37, 10, 37, 12, 37, 1184, 9, 37, 1, 37,
- 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 5, 37, 1192, 8, 37, 10, 37, 12, 37,
- 1195, 9, 37, 1, 37, 1, 37, 5, 37, 1199, 8, 37, 10, 37, 12, 37, 1202, 9,
- 37, 1, 37, 3, 37, 1205, 8, 37, 1, 37, 3, 37, 1208, 8, 37, 1, 37, 3, 37,
- 1211, 8, 37, 1, 37, 1, 37, 3, 37, 1215, 8, 37, 1, 38, 1, 38, 1, 38, 1,
- 38, 1, 38, 1, 38, 5, 38, 1223, 8, 38, 10, 38, 12, 38, 1226, 9, 38, 1, 38,
- 1, 38, 1, 38, 3, 38, 1231, 8, 38, 3, 38, 1233, 8, 38, 1, 38, 1, 38, 1,
- 38, 1, 38, 1, 38, 1, 38, 3, 38, 1241, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38,
- 1, 38, 3, 38, 1248, 8, 38, 1, 38, 1, 38, 1, 38, 5, 38, 1253, 8, 38, 10,
- 38, 12, 38, 1256, 9, 38, 1, 38, 1, 38, 3, 38, 1260, 8, 38, 3, 38, 1262,
- 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 1268, 8, 39, 1, 39, 1, 39, 1,
- 39, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 1277, 8, 39, 1, 40, 1, 40, 1, 40,
- 3, 40, 1282, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 1289, 8,
- 41, 1, 41, 1, 41, 3, 41, 1293, 8, 41, 3, 41, 1295, 8, 41, 1, 42, 3, 42,
- 1298, 8, 42, 1, 42, 1, 42, 1, 42, 1, 42, 5, 42, 1304, 8, 42, 10, 42, 12,
- 42, 1307, 9, 42, 1, 42, 3, 42, 1310, 8, 42, 1, 42, 3, 42, 1313, 8, 42,
- 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 5, 43, 1320, 8, 43, 10, 43, 12, 43,
- 1323, 9, 43, 1, 44, 1, 44, 3, 44, 1327, 8, 44, 1, 44, 1, 44, 1, 44, 5,
- 44, 1332, 8, 44, 10, 44, 12, 44, 1335, 9, 44, 1, 44, 1, 44, 1, 44, 1, 44,
- 5, 44, 1341, 8, 44, 10, 44, 12, 44, 1344, 9, 44, 1, 44, 3, 44, 1347, 8,
- 44, 3, 44, 1349, 8, 44, 1, 44, 1, 44, 3, 44, 1353, 8, 44, 1, 44, 1, 44,
- 1, 44, 1, 44, 1, 44, 5, 44, 1360, 8, 44, 10, 44, 12, 44, 1363, 9, 44, 1,
- 44, 1, 44, 3, 44, 1367, 8, 44, 3, 44, 1369, 8, 44, 1, 44, 1, 44, 1, 44,
- 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 5, 44, 1380, 8, 44, 10, 44, 12,
- 44, 1383, 9, 44, 3, 44, 1385, 8, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44,
- 5, 44, 1392, 8, 44, 10, 44, 12, 44, 1395, 9, 44, 1, 44, 1, 44, 1, 44, 1,
- 44, 1, 44, 1, 44, 5, 44, 1403, 8, 44, 10, 44, 12, 44, 1406, 9, 44, 1, 44,
- 1, 44, 5, 44, 1410, 8, 44, 10, 44, 12, 44, 1413, 9, 44, 3, 44, 1415, 8,
- 44, 1, 45, 1, 45, 1, 46, 3, 46, 1420, 8, 46, 1, 46, 1, 46, 3, 46, 1424,
- 8, 46, 1, 46, 3, 46, 1427, 8, 46, 1, 47, 3, 47, 1430, 8, 47, 1, 47, 1,
- 47, 1, 47, 3, 47, 1435, 8, 47, 1, 47, 1, 47, 3, 47, 1439, 8, 47, 1, 47,
- 4, 47, 1442, 8, 47, 11, 47, 12, 47, 1443, 1, 47, 3, 47, 1447, 8, 47, 1,
- 47, 3, 47, 1450, 8, 47, 1, 48, 1, 48, 1, 48, 3, 48, 1455, 8, 48, 1, 48,
- 1, 48, 3, 48, 1459, 8, 48, 1, 48, 3, 48, 1462, 8, 48, 1, 48, 1, 48, 1,
- 48, 1, 48, 1, 48, 3, 48, 1469, 8, 48, 1, 48, 1, 48, 1, 48, 3, 48, 1474,
- 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 1481, 8, 48, 10, 48, 12,
- 48, 1484, 9, 48, 1, 48, 1, 48, 3, 48, 1488, 8, 48, 1, 48, 3, 48, 1491,
- 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 1497, 8, 48, 10, 48, 12, 48,
- 1500, 9, 48, 1, 48, 3, 48, 1503, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1,
- 48, 1, 48, 3, 48, 1511, 8, 48, 1, 48, 3, 48, 1514, 8, 48, 1, 48, 1, 48,
- 1, 48, 3, 48, 1519, 8, 48, 1, 48, 1, 48, 3, 48, 1523, 8, 48, 1, 48, 3,
- 48, 1526, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 1533, 8, 48,
- 1, 48, 1, 48, 1, 48, 3, 48, 1538, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1,
- 48, 5, 48, 1545, 8, 48, 10, 48, 12, 48, 1548, 9, 48, 1, 48, 1, 48, 3, 48,
- 1552, 8, 48, 1, 48, 3, 48, 1555, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 5,
- 48, 1561, 8, 48, 10, 48, 12, 48, 1564, 9, 48, 1, 48, 3, 48, 1567, 8, 48,
- 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 1575, 8, 48, 1, 48, 3,
- 48, 1578, 8, 48, 3, 48, 1580, 8, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49,
- 1, 49, 1, 49, 3, 49, 1589, 8, 49, 1, 49, 3, 49, 1592, 8, 49, 3, 49, 1594,
- 8, 49, 1, 50, 1, 50, 3, 50, 1598, 8, 50, 1, 50, 1, 50, 3, 50, 1602, 8,
- 50, 1, 50, 3, 50, 1605, 8, 50, 1, 50, 1, 50, 1, 50, 3, 50, 1610, 8, 50,
- 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 5, 51, 1619, 8, 51, 10,
- 51, 12, 51, 1622, 9, 51, 1, 51, 1, 51, 3, 51, 1626, 8, 51, 1, 52, 1, 52,
- 3, 52, 1630, 8, 52, 1, 52, 1, 52, 3, 52, 1634, 8, 52, 1, 53, 3, 53, 1637,
- 8, 53, 1, 53, 1, 53, 1, 53, 3, 53, 1642, 8, 53, 1, 53, 1, 53, 1, 53, 1,
- 53, 3, 53, 1648, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 1655,
- 8, 53, 1, 53, 1, 53, 1, 53, 5, 53, 1660, 8, 53, 10, 53, 12, 53, 1663, 9,
- 53, 1, 53, 1, 53, 3, 53, 1667, 8, 53, 1, 53, 3, 53, 1670, 8, 53, 1, 54,
- 1, 54, 1, 54, 1, 54, 5, 54, 1676, 8, 54, 10, 54, 12, 54, 1679, 9, 54, 1,
- 54, 1, 54, 1, 55, 3, 55, 1684, 8, 55, 1, 55, 1, 55, 1, 55, 3, 55, 1689,
- 8, 55, 1, 55, 1, 55, 1, 55, 1, 55, 3, 55, 1695, 8, 55, 1, 55, 1, 55, 1,
- 55, 1, 55, 1, 55, 3, 55, 1702, 8, 55, 1, 55, 1, 55, 1, 55, 5, 55, 1707,
- 8, 55, 10, 55, 12, 55, 1710, 9, 55, 1, 55, 1, 55, 3, 55, 1714, 8, 55, 1,
- 55, 3, 55, 1717, 8, 55, 1, 55, 3, 55, 1720, 8, 55, 1, 56, 1, 56, 1, 56,
- 3, 56, 1725, 8, 56, 1, 56, 1, 56, 1, 56, 3, 56, 1730, 8, 56, 1, 56, 1,
- 56, 1, 56, 1, 56, 1, 56, 3, 56, 1737, 8, 56, 1, 57, 1, 57, 3, 57, 1741,
- 8, 57, 1, 57, 1, 57, 3, 57, 1745, 8, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1,
- 58, 1, 58, 1, 59, 1, 59, 3, 59, 1755, 8, 59, 1, 59, 1, 59, 1, 59, 1, 59,
- 1, 59, 5, 59, 1762, 8, 59, 10, 59, 12, 59, 1765, 9, 59, 3, 59, 1767, 8,
- 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 5, 59, 1774, 8, 59, 10, 59, 12,
- 59, 1777, 9, 59, 1, 59, 3, 59, 1780, 8, 59, 1, 59, 1, 59, 1, 60, 1, 60,
- 1, 60, 1, 60, 3, 60, 1788, 8, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 5,
- 60, 1795, 8, 60, 10, 60, 12, 60, 1798, 9, 60, 3, 60, 1800, 8, 60, 1, 60,
- 1, 60, 1, 60, 1, 60, 1, 60, 5, 60, 1807, 8, 60, 10, 60, 12, 60, 1810, 9,
- 60, 3, 60, 1812, 8, 60, 1, 60, 3, 60, 1815, 8, 60, 1, 60, 3, 60, 1818,
- 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 3, 61, 1828,
- 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 3, 62, 1837, 8,
- 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 5, 63, 1844, 8, 63, 10, 63, 12,
- 63, 1847, 9, 63, 1, 63, 3, 63, 1850, 8, 63, 1, 63, 1, 63, 1, 64, 1, 64,
- 1, 64, 3, 64, 1857, 8, 64, 1, 64, 1, 64, 1, 64, 5, 64, 1862, 8, 64, 10,
- 64, 12, 64, 1865, 9, 64, 1, 64, 3, 64, 1868, 8, 64, 1, 64, 1, 64, 3, 64,
- 1872, 8, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 5, 65, 1879, 8, 65, 10,
- 65, 12, 65, 1882, 9, 65, 1, 65, 3, 65, 1885, 8, 65, 1, 65, 1, 65, 3, 65,
- 1889, 8, 65, 1, 65, 1, 65, 1, 65, 3, 65, 1894, 8, 65, 1, 66, 1, 66, 3,
- 66, 1898, 8, 66, 1, 66, 1, 66, 1, 66, 5, 66, 1903, 8, 66, 10, 66, 12, 66,
- 1906, 9, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 5, 67, 1913, 8, 67, 10,
- 67, 12, 67, 1916, 9, 67, 1, 68, 1, 68, 1, 68, 1, 68, 3, 68, 1922, 8, 68,
- 1, 69, 1, 69, 1, 69, 3, 69, 1927, 8, 69, 1, 69, 3, 69, 1930, 8, 69, 1,
- 69, 1, 69, 3, 69, 1934, 8, 69, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71,
- 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 3, 71, 1948, 8, 71, 1, 72, 1,
- 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 3, 72, 1960,
- 8, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 3, 73, 1969, 8,
- 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 3, 74, 1978, 8, 74,
- 1, 74, 1, 74, 3, 74, 1982, 8, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1,
- 74, 1, 74, 1, 74, 3, 74, 1992, 8, 74, 1, 74, 3, 74, 1995, 8, 74, 1, 74,
- 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 3, 74, 2004, 8, 74, 1, 74, 1,
- 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 3, 74, 2013, 8, 74, 1, 74, 3, 74,
- 2016, 8, 74, 1, 74, 1, 74, 1, 74, 1, 74, 3, 74, 2022, 8, 74, 1, 74, 1,
- 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74,
- 3, 74, 2036, 8, 74, 1, 74, 1, 74, 3, 74, 2040, 8, 74, 1, 74, 1, 74, 1,
- 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 3, 74, 2051, 8, 74, 1, 74,
- 1, 74, 1, 74, 3, 74, 2056, 8, 74, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1,
- 76, 1, 77, 1, 77, 1, 77, 4, 77, 2067, 8, 77, 11, 77, 12, 77, 2068, 1, 78,
- 1, 78, 1, 78, 4, 78, 2074, 8, 78, 11, 78, 12, 78, 2075, 1, 79, 1, 79, 1,
- 79, 1, 79, 1, 80, 1, 80, 3, 80, 2084, 8, 80, 1, 80, 1, 80, 1, 80, 3, 80,
- 2089, 8, 80, 5, 80, 2091, 8, 80, 10, 80, 12, 80, 2094, 9, 80, 1, 81, 1,
- 81, 1, 82, 1, 82, 1, 83, 1, 83, 1, 84, 1, 84, 1, 85, 1, 85, 3, 85, 2106,
- 8, 85, 1, 86, 1, 86, 1, 87, 1, 87, 1, 88, 1, 88, 1, 89, 1, 89, 1, 90, 1,
- 90, 1, 90, 3, 90, 2119, 8, 90, 1, 90, 1, 90, 1, 91, 1, 91, 1, 92, 1, 92,
- 1, 93, 1, 93, 1, 94, 1, 94, 1, 95, 1, 95, 1, 96, 1, 96, 1, 97, 1, 97, 1,
- 98, 1, 98, 1, 99, 1, 99, 1, 100, 1, 100, 1, 101, 1, 101, 1, 102, 1, 102,
- 1, 103, 1, 103, 1, 104, 1, 104, 1, 105, 1, 105, 1, 106, 1, 106, 1, 107,
- 1, 107, 1, 108, 1, 108, 1, 109, 1, 109, 1, 110, 1, 110, 1, 111, 1, 111,
- 1, 112, 1, 112, 1, 113, 1, 113, 1, 114, 1, 114, 1, 114, 1, 114, 1, 114,
- 1, 114, 1, 114, 3, 114, 2176, 8, 114, 1, 114, 2, 449, 487, 1, 68, 115,
- 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36,
- 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72,
- 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106,
- 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136,
- 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166,
- 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196,
- 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226,
- 228, 0, 30, 3, 0, 60, 60, 71, 71, 84, 84, 2, 0, 49, 49, 68, 68, 1, 0, 136,
- 137, 2, 0, 149, 149, 174, 174, 2, 0, 8, 8, 11, 11, 2, 0, 61, 61, 144, 144,
- 2, 0, 58, 58, 106, 106, 2, 0, 60, 60, 84, 84, 5, 0, 27, 27, 74, 74, 83,
- 83, 124, 124, 128, 128, 4, 0, 86, 86, 135, 135, 141, 141, 148, 148, 1,
- 0, 9, 10, 2, 0, 7, 7, 14, 15, 1, 0, 16, 19, 1, 0, 20, 23, 4, 0, 79, 79,
- 99, 99, 101, 101, 120, 120, 3, 0, 27, 27, 74, 74, 128, 128, 5, 0, 54, 56,
- 106, 106, 175, 176, 189, 189, 192, 193, 2, 0, 31, 31, 64, 64, 3, 0, 78,
- 78, 98, 98, 127, 127, 3, 0, 130, 130, 157, 157, 182, 182, 2, 0, 5, 5, 108,
- 108, 1, 0, 179, 180, 2, 0, 36, 36, 62, 62, 2, 0, 154, 154, 165, 165, 2,
- 0, 162, 162, 169, 169, 2, 0, 163, 163, 170, 171, 2, 0, 164, 164, 166, 166,
- 3, 0, 8, 8, 11, 12, 104, 104, 2, 0, 188, 188, 192, 192, 1, 0, 27, 183,
- 2484, 0, 233, 1, 0, 0, 0, 2, 241, 1, 0, 0, 0, 4, 267, 1, 0, 0, 0, 6, 295,
- 1, 0, 0, 0, 8, 327, 1, 0, 0, 0, 10, 337, 1, 0, 0, 0, 12, 345, 1, 0, 0,
- 0, 14, 355, 1, 0, 0, 0, 16, 359, 1, 0, 0, 0, 18, 370, 1, 0, 0, 0, 20, 373,
- 1, 0, 0, 0, 22, 379, 1, 0, 0, 0, 24, 413, 1, 0, 0, 0, 26, 425, 1, 0, 0,
- 0, 28, 427, 1, 0, 0, 0, 30, 474, 1, 0, 0, 0, 32, 485, 1, 0, 0, 0, 34, 503,
- 1, 0, 0, 0, 36, 555, 1, 0, 0, 0, 38, 561, 1, 0, 0, 0, 40, 602, 1, 0, 0,
- 0, 42, 644, 1, 0, 0, 0, 44, 648, 1, 0, 0, 0, 46, 712, 1, 0, 0, 0, 48, 744,
- 1, 0, 0, 0, 50, 773, 1, 0, 0, 0, 52, 794, 1, 0, 0, 0, 54, 808, 1, 0, 0,
- 0, 56, 819, 1, 0, 0, 0, 58, 838, 1, 0, 0, 0, 60, 866, 1, 0, 0, 0, 62, 879,
- 1, 0, 0, 0, 64, 897, 1, 0, 0, 0, 66, 903, 1, 0, 0, 0, 68, 1005, 1, 0, 0,
- 0, 70, 1129, 1, 0, 0, 0, 72, 1139, 1, 0, 0, 0, 74, 1214, 1, 0, 0, 0, 76,
- 1216, 1, 0, 0, 0, 78, 1263, 1, 0, 0, 0, 80, 1281, 1, 0, 0, 0, 82, 1283,
- 1, 0, 0, 0, 84, 1297, 1, 0, 0, 0, 86, 1314, 1, 0, 0, 0, 88, 1414, 1, 0,
- 0, 0, 90, 1416, 1, 0, 0, 0, 92, 1419, 1, 0, 0, 0, 94, 1429, 1, 0, 0, 0,
- 96, 1579, 1, 0, 0, 0, 98, 1593, 1, 0, 0, 0, 100, 1609, 1, 0, 0, 0, 102,
- 1625, 1, 0, 0, 0, 104, 1633, 1, 0, 0, 0, 106, 1636, 1, 0, 0, 0, 108, 1671,
- 1, 0, 0, 0, 110, 1683, 1, 0, 0, 0, 112, 1724, 1, 0, 0, 0, 114, 1738, 1,
- 0, 0, 0, 116, 1746, 1, 0, 0, 0, 118, 1752, 1, 0, 0, 0, 120, 1783, 1, 0,
- 0, 0, 122, 1819, 1, 0, 0, 0, 124, 1829, 1, 0, 0, 0, 126, 1838, 1, 0, 0,
- 0, 128, 1853, 1, 0, 0, 0, 130, 1873, 1, 0, 0, 0, 132, 1895, 1, 0, 0, 0,
- 134, 1907, 1, 0, 0, 0, 136, 1917, 1, 0, 0, 0, 138, 1923, 1, 0, 0, 0, 140,
- 1935, 1, 0, 0, 0, 142, 1947, 1, 0, 0, 0, 144, 1959, 1, 0, 0, 0, 146, 1968,
- 1, 0, 0, 0, 148, 2055, 1, 0, 0, 0, 150, 2057, 1, 0, 0, 0, 152, 2060, 1,
- 0, 0, 0, 154, 2063, 1, 0, 0, 0, 156, 2070, 1, 0, 0, 0, 158, 2077, 1, 0,
- 0, 0, 160, 2081, 1, 0, 0, 0, 162, 2095, 1, 0, 0, 0, 164, 2097, 1, 0, 0,
- 0, 166, 2099, 1, 0, 0, 0, 168, 2101, 1, 0, 0, 0, 170, 2105, 1, 0, 0, 0,
- 172, 2107, 1, 0, 0, 0, 174, 2109, 1, 0, 0, 0, 176, 2111, 1, 0, 0, 0, 178,
- 2113, 1, 0, 0, 0, 180, 2118, 1, 0, 0, 0, 182, 2122, 1, 0, 0, 0, 184, 2124,
- 1, 0, 0, 0, 186, 2126, 1, 0, 0, 0, 188, 2128, 1, 0, 0, 0, 190, 2130, 1,
- 0, 0, 0, 192, 2132, 1, 0, 0, 0, 194, 2134, 1, 0, 0, 0, 196, 2136, 1, 0,
- 0, 0, 198, 2138, 1, 0, 0, 0, 200, 2140, 1, 0, 0, 0, 202, 2142, 1, 0, 0,
- 0, 204, 2144, 1, 0, 0, 0, 206, 2146, 1, 0, 0, 0, 208, 2148, 1, 0, 0, 0,
- 210, 2150, 1, 0, 0, 0, 212, 2152, 1, 0, 0, 0, 214, 2154, 1, 0, 0, 0, 216,
- 2156, 1, 0, 0, 0, 218, 2158, 1, 0, 0, 0, 220, 2160, 1, 0, 0, 0, 222, 2162,
- 1, 0, 0, 0, 224, 2164, 1, 0, 0, 0, 226, 2166, 1, 0, 0, 0, 228, 2175, 1,
- 0, 0, 0, 230, 232, 3, 2, 1, 0, 231, 230, 1, 0, 0, 0, 232, 235, 1, 0, 0,
- 0, 233, 231, 1, 0, 0, 0, 233, 234, 1, 0, 0, 0, 234, 236, 1, 0, 0, 0, 235,
- 233, 1, 0, 0, 0, 236, 237, 5, 0, 0, 1, 237, 1, 1, 0, 0, 0, 238, 240, 5,
- 1, 0, 0, 239, 238, 1, 0, 0, 0, 240, 243, 1, 0, 0, 0, 241, 239, 1, 0, 0,
- 0, 241, 242, 1, 0, 0, 0, 242, 244, 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 244,
- 253, 3, 4, 2, 0, 245, 247, 5, 1, 0, 0, 246, 245, 1, 0, 0, 0, 247, 248,
- 1, 0, 0, 0, 248, 246, 1, 0, 0, 0, 248, 249, 1, 0, 0, 0, 249, 250, 1, 0,
- 0, 0, 250, 252, 3, 4, 2, 0, 251, 246, 1, 0, 0, 0, 252, 255, 1, 0, 0, 0,
- 253, 251, 1, 0, 0, 0, 253, 254, 1, 0, 0, 0, 254, 259, 1, 0, 0, 0, 255,
- 253, 1, 0, 0, 0, 256, 258, 5, 1, 0, 0, 257, 256, 1, 0, 0, 0, 258, 261,
- 1, 0, 0, 0, 259, 257, 1, 0, 0, 0, 259, 260, 1, 0, 0, 0, 260, 3, 1, 0, 0,
- 0, 261, 259, 1, 0, 0, 0, 262, 265, 5, 73, 0, 0, 263, 264, 5, 116, 0, 0,
- 264, 266, 5, 113, 0, 0, 265, 263, 1, 0, 0, 0, 265, 266, 1, 0, 0, 0, 266,
- 268, 1, 0, 0, 0, 267, 262, 1, 0, 0, 0, 267, 268, 1, 0, 0, 0, 268, 293,
- 1, 0, 0, 0, 269, 294, 3, 6, 3, 0, 270, 294, 3, 8, 4, 0, 271, 294, 3, 10,
- 5, 0, 272, 294, 3, 12, 6, 0, 273, 294, 3, 14, 7, 0, 274, 294, 3, 22, 11,
- 0, 275, 294, 3, 28, 14, 0, 276, 294, 3, 44, 22, 0, 277, 294, 3, 46, 23,
- 0, 278, 294, 3, 48, 24, 0, 279, 294, 3, 60, 30, 0, 280, 294, 3, 62, 31,
- 0, 281, 294, 3, 64, 32, 0, 282, 294, 3, 66, 33, 0, 283, 294, 3, 74, 37,
- 0, 284, 294, 3, 78, 39, 0, 285, 294, 3, 82, 41, 0, 286, 294, 3, 20, 10,
- 0, 287, 294, 3, 16, 8, 0, 288, 294, 3, 18, 9, 0, 289, 294, 3, 84, 42, 0,
- 290, 294, 3, 106, 53, 0, 291, 294, 3, 110, 55, 0, 292, 294, 3, 114, 57,
- 0, 293, 269, 1, 0, 0, 0, 293, 270, 1, 0, 0, 0, 293, 271, 1, 0, 0, 0, 293,
- 272, 1, 0, 0, 0, 293, 273, 1, 0, 0, 0, 293, 274, 1, 0, 0, 0, 293, 275,
- 1, 0, 0, 0, 293, 276, 1, 0, 0, 0, 293, 277, 1, 0, 0, 0, 293, 278, 1, 0,
- 0, 0, 293, 279, 1, 0, 0, 0, 293, 280, 1, 0, 0, 0, 293, 281, 1, 0, 0, 0,
- 293, 282, 1, 0, 0, 0, 293, 283, 1, 0, 0, 0, 293, 284, 1, 0, 0, 0, 293,
- 285, 1, 0, 0, 0, 293, 286, 1, 0, 0, 0, 293, 287, 1, 0, 0, 0, 293, 288,
- 1, 0, 0, 0, 293, 289, 1, 0, 0, 0, 293, 290, 1, 0, 0, 0, 293, 291, 1, 0,
- 0, 0, 293, 292, 1, 0, 0, 0, 294, 5, 1, 0, 0, 0, 295, 296, 5, 32, 0, 0,
- 296, 300, 5, 135, 0, 0, 297, 298, 3, 182, 91, 0, 298, 299, 5, 2, 0, 0,
- 299, 301, 1, 0, 0, 0, 300, 297, 1, 0, 0, 0, 300, 301, 1, 0, 0, 0, 301,
- 302, 1, 0, 0, 0, 302, 325, 3, 184, 92, 0, 303, 313, 5, 123, 0, 0, 304,
- 305, 5, 139, 0, 0, 305, 314, 3, 188, 94, 0, 306, 308, 5, 48, 0, 0, 307,
- 306, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 309, 1, 0, 0, 0, 309, 310,
- 3, 190, 95, 0, 310, 311, 5, 139, 0, 0, 311, 312, 3, 190, 95, 0, 312, 314,
- 1, 0, 0, 0, 313, 304, 1, 0, 0, 0, 313, 307, 1, 0, 0, 0, 314, 326, 1, 0,
- 0, 0, 315, 317, 5, 29, 0, 0, 316, 318, 5, 48, 0, 0, 317, 316, 1, 0, 0,
- 0, 317, 318, 1, 0, 0, 0, 318, 319, 1, 0, 0, 0, 319, 326, 3, 30, 15, 0,
- 320, 322, 5, 65, 0, 0, 321, 323, 5, 48, 0, 0, 322, 321, 1, 0, 0, 0, 322,
- 323, 1, 0, 0, 0, 323, 324, 1, 0, 0, 0, 324, 326, 3, 190, 95, 0, 325, 303,
- 1, 0, 0, 0, 325, 315, 1, 0, 0, 0, 325, 320, 1, 0, 0, 0, 326, 7, 1, 0, 0,
- 0, 327, 335, 5, 33, 0, 0, 328, 336, 3, 182, 91, 0, 329, 330, 3, 182, 91,
- 0, 330, 331, 5, 2, 0, 0, 331, 333, 1, 0, 0, 0, 332, 329, 1, 0, 0, 0, 332,
- 333, 1, 0, 0, 0, 333, 334, 1, 0, 0, 0, 334, 336, 3, 186, 93, 0, 335, 328,
- 1, 0, 0, 0, 335, 332, 1, 0, 0, 0, 335, 336, 1, 0, 0, 0, 336, 9, 1, 0, 0,
- 0, 337, 339, 5, 37, 0, 0, 338, 340, 5, 57, 0, 0, 339, 338, 1, 0, 0, 0,
- 339, 340, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 342, 3, 68, 34, 0, 342,
- 343, 5, 35, 0, 0, 343, 344, 3, 182, 91, 0, 344, 11, 1, 0, 0, 0, 345, 347,
- 5, 40, 0, 0, 346, 348, 7, 0, 0, 0, 347, 346, 1, 0, 0, 0, 347, 348, 1, 0,
- 0, 0, 348, 353, 1, 0, 0, 0, 349, 351, 5, 140, 0, 0, 350, 352, 3, 212, 106,
- 0, 351, 350, 1, 0, 0, 0, 351, 352, 1, 0, 0, 0, 352, 354, 1, 0, 0, 0, 353,
- 349, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 13, 1, 0, 0, 0, 355, 357, 7,
- 1, 0, 0, 356, 358, 5, 140, 0, 0, 357, 356, 1, 0, 0, 0, 357, 358, 1, 0,
- 0, 0, 358, 15, 1, 0, 0, 0, 359, 361, 5, 128, 0, 0, 360, 362, 5, 140, 0,
- 0, 361, 360, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 368, 1, 0, 0, 0, 363,
- 365, 5, 139, 0, 0, 364, 366, 5, 131, 0, 0, 365, 364, 1, 0, 0, 0, 365, 366,
- 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 369, 3, 206, 103, 0, 368, 363, 1,
- 0, 0, 0, 368, 369, 1, 0, 0, 0, 369, 17, 1, 0, 0, 0, 370, 371, 5, 131, 0,
- 0, 371, 372, 3, 206, 103, 0, 372, 19, 1, 0, 0, 0, 373, 375, 5, 122, 0,
- 0, 374, 376, 5, 131, 0, 0, 375, 374, 1, 0, 0, 0, 375, 376, 1, 0, 0, 0,
- 376, 377, 1, 0, 0, 0, 377, 378, 3, 206, 103, 0, 378, 21, 1, 0, 0, 0, 379,
- 381, 5, 52, 0, 0, 380, 382, 5, 143, 0, 0, 381, 380, 1, 0, 0, 0, 381, 382,
- 1, 0, 0, 0, 382, 383, 1, 0, 0, 0, 383, 387, 5, 86, 0, 0, 384, 385, 5, 82,
- 0, 0, 385, 386, 5, 104, 0, 0, 386, 388, 5, 72, 0, 0, 387, 384, 1, 0, 0,
- 0, 387, 388, 1, 0, 0, 0, 388, 392, 1, 0, 0, 0, 389, 390, 3, 182, 91, 0,
- 390, 391, 5, 2, 0, 0, 391, 393, 1, 0, 0, 0, 392, 389, 1, 0, 0, 0, 392,
- 393, 1, 0, 0, 0, 393, 394, 1, 0, 0, 0, 394, 395, 3, 196, 98, 0, 395, 396,
- 5, 109, 0, 0, 396, 397, 3, 184, 92, 0, 397, 398, 5, 3, 0, 0, 398, 403,
- 3, 24, 12, 0, 399, 400, 5, 5, 0, 0, 400, 402, 3, 24, 12, 0, 401, 399, 1,
- 0, 0, 0, 402, 405, 1, 0, 0, 0, 403, 401, 1, 0, 0, 0, 403, 404, 1, 0, 0,
- 0, 404, 406, 1, 0, 0, 0, 405, 403, 1, 0, 0, 0, 406, 409, 5, 4, 0, 0, 407,
- 408, 5, 151, 0, 0, 408, 410, 3, 68, 34, 0, 409, 407, 1, 0, 0, 0, 409, 410,
- 1, 0, 0, 0, 410, 23, 1, 0, 0, 0, 411, 414, 3, 190, 95, 0, 412, 414, 3,
- 68, 34, 0, 413, 411, 1, 0, 0, 0, 413, 412, 1, 0, 0, 0, 414, 417, 1, 0,
- 0, 0, 415, 416, 5, 47, 0, 0, 416, 418, 3, 192, 96, 0, 417, 415, 1, 0, 0,
- 0, 417, 418, 1, 0, 0, 0, 418, 420, 1, 0, 0, 0, 419, 421, 3, 140, 70, 0,
- 420, 419, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 25, 1, 0, 0, 0, 422, 423,
- 5, 153, 0, 0, 423, 426, 5, 188, 0, 0, 424, 426, 5, 134, 0, 0, 425, 422,
- 1, 0, 0, 0, 425, 424, 1, 0, 0, 0, 426, 27, 1, 0, 0, 0, 427, 429, 5, 52,
- 0, 0, 428, 430, 7, 2, 0, 0, 429, 428, 1, 0, 0, 0, 429, 430, 1, 0, 0, 0,
- 430, 431, 1, 0, 0, 0, 431, 435, 5, 135, 0, 0, 432, 433, 5, 82, 0, 0, 433,
- 434, 5, 104, 0, 0, 434, 436, 5, 72, 0, 0, 435, 432, 1, 0, 0, 0, 435, 436,
- 1, 0, 0, 0, 436, 440, 1, 0, 0, 0, 437, 438, 3, 182, 91, 0, 438, 439, 5,
- 2, 0, 0, 439, 441, 1, 0, 0, 0, 440, 437, 1, 0, 0, 0, 440, 441, 1, 0, 0,
- 0, 441, 442, 1, 0, 0, 0, 442, 472, 3, 184, 92, 0, 443, 444, 5, 3, 0, 0,
- 444, 449, 3, 30, 15, 0, 445, 446, 5, 5, 0, 0, 446, 448, 3, 30, 15, 0, 447,
- 445, 1, 0, 0, 0, 448, 451, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 449, 447,
- 1, 0, 0, 0, 450, 456, 1, 0, 0, 0, 451, 449, 1, 0, 0, 0, 452, 453, 5, 5,
- 0, 0, 453, 455, 3, 38, 19, 0, 454, 452, 1, 0, 0, 0, 455, 458, 1, 0, 0,
- 0, 456, 454, 1, 0, 0, 0, 456, 457, 1, 0, 0, 0, 457, 459, 1, 0, 0, 0, 458,
- 456, 1, 0, 0, 0, 459, 468, 5, 4, 0, 0, 460, 465, 3, 26, 13, 0, 461, 462,
- 5, 5, 0, 0, 462, 464, 3, 26, 13, 0, 463, 461, 1, 0, 0, 0, 464, 467, 1,
- 0, 0, 0, 465, 463, 1, 0, 0, 0, 465, 466, 1, 0, 0, 0, 466, 469, 1, 0, 0,
- 0, 467, 465, 1, 0, 0, 0, 468, 460, 1, 0, 0, 0, 468, 469, 1, 0, 0, 0, 469,
- 473, 1, 0, 0, 0, 470, 471, 5, 35, 0, 0, 471, 473, 3, 84, 42, 0, 472, 443,
- 1, 0, 0, 0, 472, 470, 1, 0, 0, 0, 473, 29, 1, 0, 0, 0, 474, 476, 3, 190,
- 95, 0, 475, 477, 3, 32, 16, 0, 476, 475, 1, 0, 0, 0, 476, 477, 1, 0, 0,
- 0, 477, 481, 1, 0, 0, 0, 478, 480, 3, 34, 17, 0, 479, 478, 1, 0, 0, 0,
- 480, 483, 1, 0, 0, 0, 481, 479, 1, 0, 0, 0, 481, 482, 1, 0, 0, 0, 482,
- 31, 1, 0, 0, 0, 483, 481, 1, 0, 0, 0, 484, 486, 3, 176, 88, 0, 485, 484,
- 1, 0, 0, 0, 486, 487, 1, 0, 0, 0, 487, 488, 1, 0, 0, 0, 487, 485, 1, 0,
- 0, 0, 488, 499, 1, 0, 0, 0, 489, 490, 5, 3, 0, 0, 490, 491, 3, 36, 18,
- 0, 491, 492, 5, 4, 0, 0, 492, 500, 1, 0, 0, 0, 493, 494, 5, 3, 0, 0, 494,
- 495, 3, 36, 18, 0, 495, 496, 5, 5, 0, 0, 496, 497, 3, 36, 18, 0, 497, 498,
- 5, 4, 0, 0, 498, 500, 1, 0, 0, 0, 499, 489, 1, 0, 0, 0, 499, 493, 1, 0,
- 0, 0, 499, 500, 1, 0, 0, 0, 500, 33, 1, 0, 0, 0, 501, 502, 5, 51, 0, 0,
- 502, 504, 3, 176, 88, 0, 503, 501, 1, 0, 0, 0, 503, 504, 1, 0, 0, 0, 504,
- 552, 1, 0, 0, 0, 505, 506, 5, 115, 0, 0, 506, 508, 5, 97, 0, 0, 507, 509,
- 3, 140, 70, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 511, 1,
- 0, 0, 0, 510, 512, 3, 42, 21, 0, 511, 510, 1, 0, 0, 0, 511, 512, 1, 0,
- 0, 0, 512, 514, 1, 0, 0, 0, 513, 515, 5, 38, 0, 0, 514, 513, 1, 0, 0, 0,
- 514, 515, 1, 0, 0, 0, 515, 553, 1, 0, 0, 0, 516, 517, 5, 104, 0, 0, 517,
- 520, 5, 106, 0, 0, 518, 520, 5, 143, 0, 0, 519, 516, 1, 0, 0, 0, 519, 518,
- 1, 0, 0, 0, 520, 522, 1, 0, 0, 0, 521, 523, 3, 42, 21, 0, 522, 521, 1,
- 0, 0, 0, 522, 523, 1, 0, 0, 0, 523, 553, 1, 0, 0, 0, 524, 525, 5, 46, 0,
- 0, 525, 526, 5, 3, 0, 0, 526, 527, 3, 68, 34, 0, 527, 528, 5, 4, 0, 0,
- 528, 553, 1, 0, 0, 0, 529, 536, 5, 58, 0, 0, 530, 537, 3, 36, 18, 0, 531,
- 537, 3, 72, 36, 0, 532, 533, 5, 3, 0, 0, 533, 534, 3, 68, 34, 0, 534, 535,
- 5, 4, 0, 0, 535, 537, 1, 0, 0, 0, 536, 530, 1, 0, 0, 0, 536, 531, 1, 0,
- 0, 0, 536, 532, 1, 0, 0, 0, 537, 553, 1, 0, 0, 0, 538, 539, 5, 47, 0, 0,
- 539, 553, 3, 192, 96, 0, 540, 553, 3, 40, 20, 0, 541, 542, 5, 172, 0, 0,
- 542, 544, 5, 173, 0, 0, 543, 541, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544,
- 545, 1, 0, 0, 0, 545, 546, 5, 35, 0, 0, 546, 547, 5, 3, 0, 0, 547, 548,
- 3, 68, 34, 0, 548, 550, 5, 4, 0, 0, 549, 551, 7, 3, 0, 0, 550, 549, 1,
- 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 553, 1, 0, 0, 0, 552, 505, 1, 0, 0,
- 0, 552, 519, 1, 0, 0, 0, 552, 524, 1, 0, 0, 0, 552, 529, 1, 0, 0, 0, 552,
- 538, 1, 0, 0, 0, 552, 540, 1, 0, 0, 0, 552, 543, 1, 0, 0, 0, 553, 35, 1,
- 0, 0, 0, 554, 556, 7, 4, 0, 0, 555, 554, 1, 0, 0, 0, 555, 556, 1, 0, 0,
- 0, 556, 557, 1, 0, 0, 0, 557, 558, 5, 189, 0, 0, 558, 37, 1, 0, 0, 0, 559,
- 560, 5, 51, 0, 0, 560, 562, 3, 176, 88, 0, 561, 559, 1, 0, 0, 0, 561, 562,
- 1, 0, 0, 0, 562, 600, 1, 0, 0, 0, 563, 564, 5, 115, 0, 0, 564, 567, 5,
- 97, 0, 0, 565, 567, 5, 143, 0, 0, 566, 563, 1, 0, 0, 0, 566, 565, 1, 0,
- 0, 0, 567, 568, 1, 0, 0, 0, 568, 569, 5, 3, 0, 0, 569, 574, 3, 24, 12,
- 0, 570, 571, 5, 5, 0, 0, 571, 573, 3, 24, 12, 0, 572, 570, 1, 0, 0, 0,
- 573, 576, 1, 0, 0, 0, 574, 572, 1, 0, 0, 0, 574, 575, 1, 0, 0, 0, 575,
- 577, 1, 0, 0, 0, 576, 574, 1, 0, 0, 0, 577, 579, 5, 4, 0, 0, 578, 580,
- 3, 42, 21, 0, 579, 578, 1, 0, 0, 0, 579, 580, 1, 0, 0, 0, 580, 601, 1,
- 0, 0, 0, 581, 582, 5, 46, 0, 0, 582, 583, 5, 3, 0, 0, 583, 584, 3, 68,
- 34, 0, 584, 585, 5, 4, 0, 0, 585, 601, 1, 0, 0, 0, 586, 587, 5, 76, 0,
- 0, 587, 588, 5, 97, 0, 0, 588, 589, 5, 3, 0, 0, 589, 594, 3, 190, 95, 0,
- 590, 591, 5, 5, 0, 0, 591, 593, 3, 190, 95, 0, 592, 590, 1, 0, 0, 0, 593,
- 596, 1, 0, 0, 0, 594, 592, 1, 0, 0, 0, 594, 595, 1, 0, 0, 0, 595, 597,
- 1, 0, 0, 0, 596, 594, 1, 0, 0, 0, 597, 598, 5, 4, 0, 0, 598, 599, 3, 40,
- 20, 0, 599, 601, 1, 0, 0, 0, 600, 566, 1, 0, 0, 0, 600, 581, 1, 0, 0, 0,
- 600, 586, 1, 0, 0, 0, 601, 39, 1, 0, 0, 0, 602, 603, 5, 119, 0, 0, 603,
- 615, 3, 194, 97, 0, 604, 605, 5, 3, 0, 0, 605, 610, 3, 190, 95, 0, 606,
- 607, 5, 5, 0, 0, 607, 609, 3, 190, 95, 0, 608, 606, 1, 0, 0, 0, 609, 612,
- 1, 0, 0, 0, 610, 608, 1, 0, 0, 0, 610, 611, 1, 0, 0, 0, 611, 613, 1, 0,
- 0, 0, 612, 610, 1, 0, 0, 0, 613, 614, 5, 4, 0, 0, 614, 616, 1, 0, 0, 0,
- 615, 604, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 631, 1, 0, 0, 0, 617,
- 618, 5, 109, 0, 0, 618, 625, 7, 5, 0, 0, 619, 620, 5, 133, 0, 0, 620, 626,
- 7, 6, 0, 0, 621, 626, 5, 43, 0, 0, 622, 626, 5, 125, 0, 0, 623, 624, 5,
- 103, 0, 0, 624, 626, 5, 28, 0, 0, 625, 619, 1, 0, 0, 0, 625, 621, 1, 0,
- 0, 0, 625, 622, 1, 0, 0, 0, 625, 623, 1, 0, 0, 0, 626, 630, 1, 0, 0, 0,
- 627, 628, 5, 101, 0, 0, 628, 630, 3, 176, 88, 0, 629, 617, 1, 0, 0, 0,
- 629, 627, 1, 0, 0, 0, 630, 633, 1, 0, 0, 0, 631, 629, 1, 0, 0, 0, 631,
- 632, 1, 0, 0, 0, 632, 642, 1, 0, 0, 0, 633, 631, 1, 0, 0, 0, 634, 636,
- 5, 104, 0, 0, 635, 634, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 637, 1,
- 0, 0, 0, 637, 640, 5, 59, 0, 0, 638, 639, 5, 88, 0, 0, 639, 641, 7, 7,
- 0, 0, 640, 638, 1, 0, 0, 0, 640, 641, 1, 0, 0, 0, 641, 643, 1, 0, 0, 0,
- 642, 635, 1, 0, 0, 0, 642, 643, 1, 0, 0, 0, 643, 41, 1, 0, 0, 0, 644, 645,
- 5, 109, 0, 0, 645, 646, 5, 50, 0, 0, 646, 647, 7, 8, 0, 0, 647, 43, 1,
- 0, 0, 0, 648, 650, 5, 52, 0, 0, 649, 651, 7, 2, 0, 0, 650, 649, 1, 0, 0,
- 0, 650, 651, 1, 0, 0, 0, 651, 652, 1, 0, 0, 0, 652, 656, 5, 141, 0, 0,
- 653, 654, 5, 82, 0, 0, 654, 655, 5, 104, 0, 0, 655, 657, 5, 72, 0, 0, 656,
- 653, 1, 0, 0, 0, 656, 657, 1, 0, 0, 0, 657, 661, 1, 0, 0, 0, 658, 659,
- 3, 182, 91, 0, 659, 660, 5, 2, 0, 0, 660, 662, 1, 0, 0, 0, 661, 658, 1,
- 0, 0, 0, 661, 662, 1, 0, 0, 0, 662, 663, 1, 0, 0, 0, 663, 668, 3, 198,
- 99, 0, 664, 669, 5, 39, 0, 0, 665, 669, 5, 30, 0, 0, 666, 667, 5, 91, 0,
- 0, 667, 669, 5, 107, 0, 0, 668, 664, 1, 0, 0, 0, 668, 665, 1, 0, 0, 0,
- 668, 666, 1, 0, 0, 0, 668, 669, 1, 0, 0, 0, 669, 684, 1, 0, 0, 0, 670,
- 685, 5, 61, 0, 0, 671, 685, 5, 90, 0, 0, 672, 682, 5, 144, 0, 0, 673, 674,
- 5, 107, 0, 0, 674, 679, 3, 190, 95, 0, 675, 676, 5, 5, 0, 0, 676, 678,
- 3, 190, 95, 0, 677, 675, 1, 0, 0, 0, 678, 681, 1, 0, 0, 0, 679, 677, 1,
- 0, 0, 0, 679, 680, 1, 0, 0, 0, 680, 683, 1, 0, 0, 0, 681, 679, 1, 0, 0,
- 0, 682, 673, 1, 0, 0, 0, 682, 683, 1, 0, 0, 0, 683, 685, 1, 0, 0, 0, 684,
- 670, 1, 0, 0, 0, 684, 671, 1, 0, 0, 0, 684, 672, 1, 0, 0, 0, 685, 686,
- 1, 0, 0, 0, 686, 687, 5, 109, 0, 0, 687, 691, 3, 184, 92, 0, 688, 689,
- 5, 75, 0, 0, 689, 690, 5, 66, 0, 0, 690, 692, 5, 129, 0, 0, 691, 688, 1,
- 0, 0, 0, 691, 692, 1, 0, 0, 0, 692, 695, 1, 0, 0, 0, 693, 694, 5, 150,
- 0, 0, 694, 696, 3, 68, 34, 0, 695, 693, 1, 0, 0, 0, 695, 696, 1, 0, 0,
- 0, 696, 697, 1, 0, 0, 0, 697, 706, 5, 40, 0, 0, 698, 703, 3, 106, 53, 0,
- 699, 703, 3, 74, 37, 0, 700, 703, 3, 60, 30, 0, 701, 703, 3, 84, 42, 0,
- 702, 698, 1, 0, 0, 0, 702, 699, 1, 0, 0, 0, 702, 700, 1, 0, 0, 0, 702,
- 701, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 705, 5, 1, 0, 0, 705, 707,
- 1, 0, 0, 0, 706, 702, 1, 0, 0, 0, 707, 708, 1, 0, 0, 0, 708, 706, 1, 0,
- 0, 0, 708, 709, 1, 0, 0, 0, 709, 710, 1, 0, 0, 0, 710, 711, 5, 68, 0, 0,
- 711, 45, 1, 0, 0, 0, 712, 714, 5, 52, 0, 0, 713, 715, 7, 2, 0, 0, 714,
- 713, 1, 0, 0, 0, 714, 715, 1, 0, 0, 0, 715, 716, 1, 0, 0, 0, 716, 720,
- 5, 148, 0, 0, 717, 718, 5, 82, 0, 0, 718, 719, 5, 104, 0, 0, 719, 721,
- 5, 72, 0, 0, 720, 717, 1, 0, 0, 0, 720, 721, 1, 0, 0, 0, 721, 725, 1, 0,
- 0, 0, 722, 723, 3, 182, 91, 0, 723, 724, 5, 2, 0, 0, 724, 726, 1, 0, 0,
- 0, 725, 722, 1, 0, 0, 0, 725, 726, 1, 0, 0, 0, 726, 727, 1, 0, 0, 0, 727,
- 739, 3, 200, 100, 0, 728, 729, 5, 3, 0, 0, 729, 734, 3, 190, 95, 0, 730,
- 731, 5, 5, 0, 0, 731, 733, 3, 190, 95, 0, 732, 730, 1, 0, 0, 0, 733, 736,
- 1, 0, 0, 0, 734, 732, 1, 0, 0, 0, 734, 735, 1, 0, 0, 0, 735, 737, 1, 0,
- 0, 0, 736, 734, 1, 0, 0, 0, 737, 738, 5, 4, 0, 0, 738, 740, 1, 0, 0, 0,
- 739, 728, 1, 0, 0, 0, 739, 740, 1, 0, 0, 0, 740, 741, 1, 0, 0, 0, 741,
- 742, 5, 35, 0, 0, 742, 743, 3, 84, 42, 0, 743, 47, 1, 0, 0, 0, 744, 745,
- 5, 52, 0, 0, 745, 746, 5, 149, 0, 0, 746, 750, 5, 135, 0, 0, 747, 748,
- 5, 82, 0, 0, 748, 749, 5, 104, 0, 0, 749, 751, 5, 72, 0, 0, 750, 747, 1,
- 0, 0, 0, 750, 751, 1, 0, 0, 0, 751, 755, 1, 0, 0, 0, 752, 753, 3, 182,
- 91, 0, 753, 754, 5, 2, 0, 0, 754, 756, 1, 0, 0, 0, 755, 752, 1, 0, 0, 0,
- 755, 756, 1, 0, 0, 0, 756, 757, 1, 0, 0, 0, 757, 758, 3, 184, 92, 0, 758,
- 759, 5, 145, 0, 0, 759, 771, 3, 202, 101, 0, 760, 761, 5, 3, 0, 0, 761,
- 766, 3, 170, 85, 0, 762, 763, 5, 5, 0, 0, 763, 765, 3, 170, 85, 0, 764,
- 762, 1, 0, 0, 0, 765, 768, 1, 0, 0, 0, 766, 764, 1, 0, 0, 0, 766, 767,
- 1, 0, 0, 0, 767, 769, 1, 0, 0, 0, 768, 766, 1, 0, 0, 0, 769, 770, 5, 4,
- 0, 0, 770, 772, 1, 0, 0, 0, 771, 760, 1, 0, 0, 0, 771, 772, 1, 0, 0, 0,
- 772, 49, 1, 0, 0, 0, 773, 775, 5, 152, 0, 0, 774, 776, 5, 118, 0, 0, 775,
- 774, 1, 0, 0, 0, 775, 776, 1, 0, 0, 0, 776, 777, 1, 0, 0, 0, 777, 778,
- 3, 52, 26, 0, 778, 779, 5, 35, 0, 0, 779, 780, 5, 3, 0, 0, 780, 781, 3,
- 84, 42, 0, 781, 791, 5, 4, 0, 0, 782, 783, 5, 5, 0, 0, 783, 784, 3, 52,
- 26, 0, 784, 785, 5, 35, 0, 0, 785, 786, 5, 3, 0, 0, 786, 787, 3, 84, 42,
- 0, 787, 788, 5, 4, 0, 0, 788, 790, 1, 0, 0, 0, 789, 782, 1, 0, 0, 0, 790,
- 793, 1, 0, 0, 0, 791, 789, 1, 0, 0, 0, 791, 792, 1, 0, 0, 0, 792, 51, 1,
- 0, 0, 0, 793, 791, 1, 0, 0, 0, 794, 806, 3, 184, 92, 0, 795, 796, 5, 3,
- 0, 0, 796, 801, 3, 190, 95, 0, 797, 798, 5, 5, 0, 0, 798, 800, 3, 190,
- 95, 0, 799, 797, 1, 0, 0, 0, 800, 803, 1, 0, 0, 0, 801, 799, 1, 0, 0, 0,
- 801, 802, 1, 0, 0, 0, 802, 804, 1, 0, 0, 0, 803, 801, 1, 0, 0, 0, 804,
- 805, 5, 4, 0, 0, 805, 807, 1, 0, 0, 0, 806, 795, 1, 0, 0, 0, 806, 807,
- 1, 0, 0, 0, 807, 53, 1, 0, 0, 0, 808, 809, 3, 52, 26, 0, 809, 810, 5, 35,
- 0, 0, 810, 811, 5, 3, 0, 0, 811, 812, 3, 162, 81, 0, 812, 814, 5, 142,
- 0, 0, 813, 815, 5, 31, 0, 0, 814, 813, 1, 0, 0, 0, 814, 815, 1, 0, 0, 0,
- 815, 816, 1, 0, 0, 0, 816, 817, 3, 164, 82, 0, 817, 818, 5, 4, 0, 0, 818,
- 55, 1, 0, 0, 0, 819, 831, 3, 184, 92, 0, 820, 821, 5, 3, 0, 0, 821, 826,
- 3, 190, 95, 0, 822, 823, 5, 5, 0, 0, 823, 825, 3, 190, 95, 0, 824, 822,
- 1, 0, 0, 0, 825, 828, 1, 0, 0, 0, 826, 824, 1, 0, 0, 0, 826, 827, 1, 0,
- 0, 0, 827, 829, 1, 0, 0, 0, 828, 826, 1, 0, 0, 0, 829, 830, 5, 4, 0, 0,
- 830, 832, 1, 0, 0, 0, 831, 820, 1, 0, 0, 0, 831, 832, 1, 0, 0, 0, 832,
- 833, 1, 0, 0, 0, 833, 834, 5, 35, 0, 0, 834, 835, 5, 3, 0, 0, 835, 836,
- 3, 84, 42, 0, 836, 837, 5, 4, 0, 0, 837, 57, 1, 0, 0, 0, 838, 847, 5, 126,
- 0, 0, 839, 848, 5, 7, 0, 0, 840, 845, 3, 68, 34, 0, 841, 843, 5, 35, 0,
- 0, 842, 841, 1, 0, 0, 0, 842, 843, 1, 0, 0, 0, 843, 844, 1, 0, 0, 0, 844,
- 846, 3, 172, 86, 0, 845, 842, 1, 0, 0, 0, 845, 846, 1, 0, 0, 0, 846, 848,
- 1, 0, 0, 0, 847, 839, 1, 0, 0, 0, 847, 840, 1, 0, 0, 0, 848, 862, 1, 0,
- 0, 0, 849, 858, 5, 5, 0, 0, 850, 859, 5, 7, 0, 0, 851, 856, 3, 68, 34,
- 0, 852, 854, 5, 35, 0, 0, 853, 852, 1, 0, 0, 0, 853, 854, 1, 0, 0, 0, 854,
- 855, 1, 0, 0, 0, 855, 857, 3, 172, 86, 0, 856, 853, 1, 0, 0, 0, 856, 857,
- 1, 0, 0, 0, 857, 859, 1, 0, 0, 0, 858, 850, 1, 0, 0, 0, 858, 851, 1, 0,
- 0, 0, 859, 861, 1, 0, 0, 0, 860, 849, 1, 0, 0, 0, 861, 864, 1, 0, 0, 0,
- 862, 860, 1, 0, 0, 0, 862, 863, 1, 0, 0, 0, 863, 59, 1, 0, 0, 0, 864, 862,
- 1, 0, 0, 0, 865, 867, 3, 50, 25, 0, 866, 865, 1, 0, 0, 0, 866, 867, 1,
- 0, 0, 0, 867, 868, 1, 0, 0, 0, 868, 869, 5, 61, 0, 0, 869, 870, 5, 77,
- 0, 0, 870, 873, 3, 112, 56, 0, 871, 872, 5, 151, 0, 0, 872, 874, 3, 68,
- 34, 0, 873, 871, 1, 0, 0, 0, 873, 874, 1, 0, 0, 0, 874, 876, 1, 0, 0, 0,
- 875, 877, 3, 58, 29, 0, 876, 875, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877,
- 61, 1, 0, 0, 0, 878, 880, 3, 50, 25, 0, 879, 878, 1, 0, 0, 0, 879, 880,
- 1, 0, 0, 0, 880, 881, 1, 0, 0, 0, 881, 882, 5, 61, 0, 0, 882, 883, 5, 77,
- 0, 0, 883, 886, 3, 112, 56, 0, 884, 885, 5, 151, 0, 0, 885, 887, 3, 68,
- 34, 0, 886, 884, 1, 0, 0, 0, 886, 887, 1, 0, 0, 0, 887, 892, 1, 0, 0, 0,
- 888, 890, 3, 134, 67, 0, 889, 888, 1, 0, 0, 0, 889, 890, 1, 0, 0, 0, 890,
- 891, 1, 0, 0, 0, 891, 893, 3, 136, 68, 0, 892, 889, 1, 0, 0, 0, 892, 893,
- 1, 0, 0, 0, 893, 895, 1, 0, 0, 0, 894, 896, 3, 58, 29, 0, 895, 894, 1,
- 0, 0, 0, 895, 896, 1, 0, 0, 0, 896, 63, 1, 0, 0, 0, 897, 899, 5, 63, 0,
- 0, 898, 900, 5, 57, 0, 0, 899, 898, 1, 0, 0, 0, 899, 900, 1, 0, 0, 0, 900,
- 901, 1, 0, 0, 0, 901, 902, 3, 182, 91, 0, 902, 65, 1, 0, 0, 0, 903, 904,
- 5, 65, 0, 0, 904, 907, 7, 9, 0, 0, 905, 906, 5, 82, 0, 0, 906, 908, 5,
- 72, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 912, 1, 0, 0,
- 0, 909, 910, 3, 182, 91, 0, 910, 911, 5, 2, 0, 0, 911, 913, 1, 0, 0, 0,
- 912, 909, 1, 0, 0, 0, 912, 913, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914,
- 915, 3, 228, 114, 0, 915, 67, 1, 0, 0, 0, 916, 917, 6, 34, -1, 0, 917,
- 1006, 3, 72, 36, 0, 918, 1006, 5, 190, 0, 0, 919, 1006, 5, 191, 0, 0, 920,
- 921, 3, 182, 91, 0, 921, 922, 5, 2, 0, 0, 922, 924, 1, 0, 0, 0, 923, 920,
- 1, 0, 0, 0, 923, 924, 1, 0, 0, 0, 924, 925, 1, 0, 0, 0, 925, 926, 3, 184,
- 92, 0, 926, 927, 5, 2, 0, 0, 927, 929, 1, 0, 0, 0, 928, 923, 1, 0, 0, 0,
- 928, 929, 1, 0, 0, 0, 929, 930, 1, 0, 0, 0, 930, 1006, 3, 190, 95, 0, 931,
- 932, 3, 166, 83, 0, 932, 933, 3, 68, 34, 21, 933, 1006, 1, 0, 0, 0, 934,
- 935, 3, 180, 90, 0, 935, 948, 5, 3, 0, 0, 936, 938, 5, 64, 0, 0, 937, 936,
- 1, 0, 0, 0, 937, 938, 1, 0, 0, 0, 938, 939, 1, 0, 0, 0, 939, 944, 3, 68,
- 34, 0, 940, 941, 5, 5, 0, 0, 941, 943, 3, 68, 34, 0, 942, 940, 1, 0, 0,
- 0, 943, 946, 1, 0, 0, 0, 944, 942, 1, 0, 0, 0, 944, 945, 1, 0, 0, 0, 945,
- 949, 1, 0, 0, 0, 946, 944, 1, 0, 0, 0, 947, 949, 5, 7, 0, 0, 948, 937,
- 1, 0, 0, 0, 948, 947, 1, 0, 0, 0, 948, 949, 1, 0, 0, 0, 949, 950, 1, 0,
- 0, 0, 950, 952, 5, 4, 0, 0, 951, 953, 3, 116, 58, 0, 952, 951, 1, 0, 0,
- 0, 952, 953, 1, 0, 0, 0, 953, 955, 1, 0, 0, 0, 954, 956, 3, 120, 60, 0,
- 955, 954, 1, 0, 0, 0, 955, 956, 1, 0, 0, 0, 956, 1006, 1, 0, 0, 0, 957,
- 958, 5, 3, 0, 0, 958, 963, 3, 68, 34, 0, 959, 960, 5, 5, 0, 0, 960, 962,
- 3, 68, 34, 0, 961, 959, 1, 0, 0, 0, 962, 965, 1, 0, 0, 0, 963, 961, 1,
- 0, 0, 0, 963, 964, 1, 0, 0, 0, 964, 966, 1, 0, 0, 0, 965, 963, 1, 0, 0,
- 0, 966, 967, 5, 4, 0, 0, 967, 1006, 1, 0, 0, 0, 968, 969, 5, 45, 0, 0,
- 969, 970, 5, 3, 0, 0, 970, 971, 3, 68, 34, 0, 971, 972, 5, 35, 0, 0, 972,
- 973, 3, 32, 16, 0, 973, 974, 5, 4, 0, 0, 974, 1006, 1, 0, 0, 0, 975, 977,
- 5, 104, 0, 0, 976, 975, 1, 0, 0, 0, 976, 977, 1, 0, 0, 0, 977, 978, 1,
- 0, 0, 0, 978, 980, 5, 72, 0, 0, 979, 976, 1, 0, 0, 0, 979, 980, 1, 0, 0,
- 0, 980, 981, 1, 0, 0, 0, 981, 982, 5, 3, 0, 0, 982, 983, 3, 84, 42, 0,
- 983, 984, 5, 4, 0, 0, 984, 1006, 1, 0, 0, 0, 985, 987, 5, 44, 0, 0, 986,
- 988, 3, 68, 34, 0, 987, 986, 1, 0, 0, 0, 987, 988, 1, 0, 0, 0, 988, 994,
- 1, 0, 0, 0, 989, 990, 5, 150, 0, 0, 990, 991, 3, 68, 34, 0, 991, 992, 5,
- 138, 0, 0, 992, 993, 3, 68, 34, 0, 993, 995, 1, 0, 0, 0, 994, 989, 1, 0,
- 0, 0, 995, 996, 1, 0, 0, 0, 996, 994, 1, 0, 0, 0, 996, 997, 1, 0, 0, 0,
- 997, 1000, 1, 0, 0, 0, 998, 999, 5, 67, 0, 0, 999, 1001, 3, 68, 34, 0,
- 1000, 998, 1, 0, 0, 0, 1000, 1001, 1, 0, 0, 0, 1001, 1002, 1, 0, 0, 0,
- 1002, 1003, 5, 68, 0, 0, 1003, 1006, 1, 0, 0, 0, 1004, 1006, 3, 70, 35,
- 0, 1005, 916, 1, 0, 0, 0, 1005, 918, 1, 0, 0, 0, 1005, 919, 1, 0, 0, 0,
- 1005, 928, 1, 0, 0, 0, 1005, 931, 1, 0, 0, 0, 1005, 934, 1, 0, 0, 0, 1005,
- 957, 1, 0, 0, 0, 1005, 968, 1, 0, 0, 0, 1005, 979, 1, 0, 0, 0, 1005, 985,
- 1, 0, 0, 0, 1005, 1004, 1, 0, 0, 0, 1006, 1126, 1, 0, 0, 0, 1007, 1008,
- 10, 20, 0, 0, 1008, 1009, 5, 13, 0, 0, 1009, 1125, 3, 68, 34, 21, 1010,
- 1011, 10, 19, 0, 0, 1011, 1012, 7, 10, 0, 0, 1012, 1125, 3, 68, 34, 20,
- 1013, 1014, 10, 18, 0, 0, 1014, 1015, 7, 11, 0, 0, 1015, 1125, 3, 68, 34,
- 19, 1016, 1017, 10, 17, 0, 0, 1017, 1018, 7, 4, 0, 0, 1018, 1125, 3, 68,
- 34, 18, 1019, 1020, 10, 16, 0, 0, 1020, 1021, 7, 12, 0, 0, 1021, 1125,
- 3, 68, 34, 17, 1022, 1023, 10, 15, 0, 0, 1023, 1024, 7, 13, 0, 0, 1024,
- 1125, 3, 68, 34, 16, 1025, 1041, 10, 14, 0, 0, 1026, 1042, 5, 6, 0, 0,
- 1027, 1042, 5, 24, 0, 0, 1028, 1042, 5, 25, 0, 0, 1029, 1042, 5, 26, 0,
- 0, 1030, 1042, 5, 94, 0, 0, 1031, 1032, 5, 94, 0, 0, 1032, 1042, 5, 104,
- 0, 0, 1033, 1035, 5, 104, 0, 0, 1034, 1033, 1, 0, 0, 0, 1034, 1035, 1,
- 0, 0, 0, 1035, 1036, 1, 0, 0, 0, 1036, 1042, 5, 85, 0, 0, 1037, 1042, 5,
- 99, 0, 0, 1038, 1042, 5, 79, 0, 0, 1039, 1042, 5, 101, 0, 0, 1040, 1042,
- 5, 120, 0, 0, 1041, 1026, 1, 0, 0, 0, 1041, 1027, 1, 0, 0, 0, 1041, 1028,
- 1, 0, 0, 0, 1041, 1029, 1, 0, 0, 0, 1041, 1030, 1, 0, 0, 0, 1041, 1031,
- 1, 0, 0, 0, 1041, 1034, 1, 0, 0, 0, 1041, 1037, 1, 0, 0, 0, 1041, 1038,
- 1, 0, 0, 0, 1041, 1039, 1, 0, 0, 0, 1041, 1040, 1, 0, 0, 0, 1042, 1043,
- 1, 0, 0, 0, 1043, 1125, 3, 68, 34, 15, 1044, 1045, 10, 12, 0, 0, 1045,
- 1046, 5, 34, 0, 0, 1046, 1125, 3, 68, 34, 13, 1047, 1048, 10, 11, 0, 0,
- 1048, 1049, 5, 110, 0, 0, 1049, 1125, 3, 68, 34, 12, 1050, 1052, 10, 4,
- 0, 0, 1051, 1053, 5, 104, 0, 0, 1052, 1051, 1, 0, 0, 0, 1052, 1053, 1,
- 0, 0, 0, 1053, 1054, 1, 0, 0, 0, 1054, 1055, 5, 41, 0, 0, 1055, 1056, 3,
- 68, 34, 0, 1056, 1057, 5, 34, 0, 0, 1057, 1058, 3, 68, 34, 5, 1058, 1125,
- 1, 0, 0, 0, 1059, 1061, 10, 13, 0, 0, 1060, 1062, 5, 104, 0, 0, 1061, 1060,
- 1, 0, 0, 0, 1061, 1062, 1, 0, 0, 0, 1062, 1063, 1, 0, 0, 0, 1063, 1102,
- 5, 85, 0, 0, 1064, 1074, 5, 3, 0, 0, 1065, 1075, 3, 84, 42, 0, 1066, 1071,
- 3, 68, 34, 0, 1067, 1068, 5, 5, 0, 0, 1068, 1070, 3, 68, 34, 0, 1069, 1067,
- 1, 0, 0, 0, 1070, 1073, 1, 0, 0, 0, 1071, 1069, 1, 0, 0, 0, 1071, 1072,
- 1, 0, 0, 0, 1072, 1075, 1, 0, 0, 0, 1073, 1071, 1, 0, 0, 0, 1074, 1065,
- 1, 0, 0, 0, 1074, 1066, 1, 0, 0, 0, 1074, 1075, 1, 0, 0, 0, 1075, 1076,
- 1, 0, 0, 0, 1076, 1103, 5, 4, 0, 0, 1077, 1078, 3, 182, 91, 0, 1078, 1079,
- 5, 2, 0, 0, 1079, 1081, 1, 0, 0, 0, 1080, 1077, 1, 0, 0, 0, 1080, 1081,
- 1, 0, 0, 0, 1081, 1082, 1, 0, 0, 0, 1082, 1103, 3, 184, 92, 0, 1083, 1084,
- 3, 182, 91, 0, 1084, 1085, 5, 2, 0, 0, 1085, 1087, 1, 0, 0, 0, 1086, 1083,
- 1, 0, 0, 0, 1086, 1087, 1, 0, 0, 0, 1087, 1088, 1, 0, 0, 0, 1088, 1089,
- 3, 226, 113, 0, 1089, 1098, 5, 3, 0, 0, 1090, 1095, 3, 68, 34, 0, 1091,
- 1092, 5, 5, 0, 0, 1092, 1094, 3, 68, 34, 0, 1093, 1091, 1, 0, 0, 0, 1094,
- 1097, 1, 0, 0, 0, 1095, 1093, 1, 0, 0, 0, 1095, 1096, 1, 0, 0, 0, 1096,
- 1099, 1, 0, 0, 0, 1097, 1095, 1, 0, 0, 0, 1098, 1090, 1, 0, 0, 0, 1098,
- 1099, 1, 0, 0, 0, 1099, 1100, 1, 0, 0, 0, 1100, 1101, 5, 4, 0, 0, 1101,
- 1103, 1, 0, 0, 0, 1102, 1064, 1, 0, 0, 0, 1102, 1080, 1, 0, 0, 0, 1102,
- 1086, 1, 0, 0, 0, 1103, 1125, 1, 0, 0, 0, 1104, 1105, 10, 7, 0, 0, 1105,
- 1106, 5, 47, 0, 0, 1106, 1125, 3, 192, 96, 0, 1107, 1109, 10, 6, 0, 0,
- 1108, 1110, 5, 104, 0, 0, 1109, 1108, 1, 0, 0, 0, 1109, 1110, 1, 0, 0,
- 0, 1110, 1111, 1, 0, 0, 0, 1111, 1112, 7, 14, 0, 0, 1112, 1115, 3, 68,
- 34, 0, 1113, 1114, 5, 69, 0, 0, 1114, 1116, 3, 68, 34, 0, 1115, 1113, 1,
- 0, 0, 0, 1115, 1116, 1, 0, 0, 0, 1116, 1125, 1, 0, 0, 0, 1117, 1122, 10,
- 5, 0, 0, 1118, 1123, 5, 95, 0, 0, 1119, 1123, 5, 105, 0, 0, 1120, 1121,
- 5, 104, 0, 0, 1121, 1123, 5, 106, 0, 0, 1122, 1118, 1, 0, 0, 0, 1122, 1119,
- 1, 0, 0, 0, 1122, 1120, 1, 0, 0, 0, 1123, 1125, 1, 0, 0, 0, 1124, 1007,
- 1, 0, 0, 0, 1124, 1010, 1, 0, 0, 0, 1124, 1013, 1, 0, 0, 0, 1124, 1016,
- 1, 0, 0, 0, 1124, 1019, 1, 0, 0, 0, 1124, 1022, 1, 0, 0, 0, 1124, 1025,
- 1, 0, 0, 0, 1124, 1044, 1, 0, 0, 0, 1124, 1047, 1, 0, 0, 0, 1124, 1050,
- 1, 0, 0, 0, 1124, 1059, 1, 0, 0, 0, 1124, 1104, 1, 0, 0, 0, 1124, 1107,
- 1, 0, 0, 0, 1124, 1117, 1, 0, 0, 0, 1125, 1128, 1, 0, 0, 0, 1126, 1124,
- 1, 0, 0, 0, 1126, 1127, 1, 0, 0, 0, 1127, 69, 1, 0, 0, 0, 1128, 1126, 1,
- 0, 0, 0, 1129, 1130, 5, 117, 0, 0, 1130, 1135, 5, 3, 0, 0, 1131, 1136,
- 5, 83, 0, 0, 1132, 1133, 7, 15, 0, 0, 1133, 1134, 5, 5, 0, 0, 1134, 1136,
- 3, 168, 84, 0, 1135, 1131, 1, 0, 0, 0, 1135, 1132, 1, 0, 0, 0, 1136, 1137,
- 1, 0, 0, 0, 1137, 1138, 5, 4, 0, 0, 1138, 71, 1, 0, 0, 0, 1139, 1140, 7,
- 16, 0, 0, 1140, 73, 1, 0, 0, 0, 1141, 1143, 3, 50, 25, 0, 1142, 1141, 1,
- 0, 0, 0, 1142, 1143, 1, 0, 0, 0, 1143, 1149, 1, 0, 0, 0, 1144, 1150, 5,
- 90, 0, 0, 1145, 1150, 5, 124, 0, 0, 1146, 1147, 5, 90, 0, 0, 1147, 1148,
- 5, 110, 0, 0, 1148, 1150, 7, 8, 0, 0, 1149, 1144, 1, 0, 0, 0, 1149, 1145,
- 1, 0, 0, 0, 1149, 1146, 1, 0, 0, 0, 1150, 1151, 1, 0, 0, 0, 1151, 1155,
- 5, 93, 0, 0, 1152, 1153, 3, 182, 91, 0, 1153, 1154, 5, 2, 0, 0, 1154, 1156,
- 1, 0, 0, 0, 1155, 1152, 1, 0, 0, 0, 1155, 1156, 1, 0, 0, 0, 1156, 1157,
- 1, 0, 0, 0, 1157, 1160, 3, 184, 92, 0, 1158, 1159, 5, 35, 0, 0, 1159, 1161,
- 3, 208, 104, 0, 1160, 1158, 1, 0, 0, 0, 1160, 1161, 1, 0, 0, 0, 1161, 1173,
- 1, 0, 0, 0, 1162, 1163, 5, 3, 0, 0, 1163, 1168, 3, 190, 95, 0, 1164, 1165,
- 5, 5, 0, 0, 1165, 1167, 3, 190, 95, 0, 1166, 1164, 1, 0, 0, 0, 1167, 1170,
- 1, 0, 0, 0, 1168, 1166, 1, 0, 0, 0, 1168, 1169, 1, 0, 0, 0, 1169, 1171,
- 1, 0, 0, 0, 1170, 1168, 1, 0, 0, 0, 1171, 1172, 5, 4, 0, 0, 1172, 1174,
- 1, 0, 0, 0, 1173, 1162, 1, 0, 0, 0, 1173, 1174, 1, 0, 0, 0, 1174, 1204,
- 1, 0, 0, 0, 1175, 1176, 5, 147, 0, 0, 1176, 1177, 5, 3, 0, 0, 1177, 1182,
- 3, 68, 34, 0, 1178, 1179, 5, 5, 0, 0, 1179, 1181, 3, 68, 34, 0, 1180, 1178,
- 1, 0, 0, 0, 1181, 1184, 1, 0, 0, 0, 1182, 1180, 1, 0, 0, 0, 1182, 1183,
- 1, 0, 0, 0, 1183, 1185, 1, 0, 0, 0, 1184, 1182, 1, 0, 0, 0, 1185, 1200,
- 5, 4, 0, 0, 1186, 1187, 5, 5, 0, 0, 1187, 1188, 5, 3, 0, 0, 1188, 1193,
- 3, 68, 34, 0, 1189, 1190, 5, 5, 0, 0, 1190, 1192, 3, 68, 34, 0, 1191, 1189,
- 1, 0, 0, 0, 1192, 1195, 1, 0, 0, 0, 1193, 1191, 1, 0, 0, 0, 1193, 1194,
- 1, 0, 0, 0, 1194, 1196, 1, 0, 0, 0, 1195, 1193, 1, 0, 0, 0, 1196, 1197,
- 5, 4, 0, 0, 1197, 1199, 1, 0, 0, 0, 1198, 1186, 1, 0, 0, 0, 1199, 1202,
- 1, 0, 0, 0, 1200, 1198, 1, 0, 0, 0, 1200, 1201, 1, 0, 0, 0, 1201, 1205,
- 1, 0, 0, 0, 1202, 1200, 1, 0, 0, 0, 1203, 1205, 3, 84, 42, 0, 1204, 1175,
- 1, 0, 0, 0, 1204, 1203, 1, 0, 0, 0, 1205, 1207, 1, 0, 0, 0, 1206, 1208,
- 3, 76, 38, 0, 1207, 1206, 1, 0, 0, 0, 1207, 1208, 1, 0, 0, 0, 1208, 1210,
- 1, 0, 0, 0, 1209, 1211, 3, 58, 29, 0, 1210, 1209, 1, 0, 0, 0, 1210, 1211,
- 1, 0, 0, 0, 1211, 1215, 1, 0, 0, 0, 1212, 1213, 5, 58, 0, 0, 1213, 1215,
- 5, 147, 0, 0, 1214, 1142, 1, 0, 0, 0, 1214, 1212, 1, 0, 0, 0, 1215, 75,
- 1, 0, 0, 0, 1216, 1217, 5, 109, 0, 0, 1217, 1232, 5, 50, 0, 0, 1218, 1219,
- 5, 3, 0, 0, 1219, 1224, 3, 24, 12, 0, 1220, 1221, 5, 5, 0, 0, 1221, 1223,
- 3, 24, 12, 0, 1222, 1220, 1, 0, 0, 0, 1223, 1226, 1, 0, 0, 0, 1224, 1222,
- 1, 0, 0, 0, 1224, 1225, 1, 0, 0, 0, 1225, 1227, 1, 0, 0, 0, 1226, 1224,
- 1, 0, 0, 0, 1227, 1230, 5, 4, 0, 0, 1228, 1229, 5, 151, 0, 0, 1229, 1231,
- 3, 68, 34, 0, 1230, 1228, 1, 0, 0, 0, 1230, 1231, 1, 0, 0, 0, 1231, 1233,
- 1, 0, 0, 0, 1232, 1218, 1, 0, 0, 0, 1232, 1233, 1, 0, 0, 0, 1233, 1234,
- 1, 0, 0, 0, 1234, 1261, 5, 186, 0, 0, 1235, 1262, 5, 187, 0, 0, 1236, 1237,
- 5, 144, 0, 0, 1237, 1240, 5, 133, 0, 0, 1238, 1241, 3, 190, 95, 0, 1239,
- 1241, 3, 108, 54, 0, 1240, 1238, 1, 0, 0, 0, 1240, 1239, 1, 0, 0, 0, 1241,
- 1242, 1, 0, 0, 0, 1242, 1243, 5, 6, 0, 0, 1243, 1254, 3, 68, 34, 0, 1244,
- 1247, 5, 5, 0, 0, 1245, 1248, 3, 190, 95, 0, 1246, 1248, 3, 108, 54, 0,
- 1247, 1245, 1, 0, 0, 0, 1247, 1246, 1, 0, 0, 0, 1248, 1249, 1, 0, 0, 0,
- 1249, 1250, 5, 6, 0, 0, 1250, 1251, 3, 68, 34, 0, 1251, 1253, 1, 0, 0,
- 0, 1252, 1244, 1, 0, 0, 0, 1253, 1256, 1, 0, 0, 0, 1254, 1252, 1, 0, 0,
- 0, 1254, 1255, 1, 0, 0, 0, 1255, 1259, 1, 0, 0, 0, 1256, 1254, 1, 0, 0,
- 0, 1257, 1258, 5, 151, 0, 0, 1258, 1260, 3, 68, 34, 0, 1259, 1257, 1, 0,
- 0, 0, 1259, 1260, 1, 0, 0, 0, 1260, 1262, 1, 0, 0, 0, 1261, 1235, 1, 0,
- 0, 0, 1261, 1236, 1, 0, 0, 0, 1262, 77, 1, 0, 0, 0, 1263, 1267, 5, 114,
- 0, 0, 1264, 1265, 3, 182, 91, 0, 1265, 1266, 5, 2, 0, 0, 1266, 1268, 1,
- 0, 0, 0, 1267, 1264, 1, 0, 0, 0, 1267, 1268, 1, 0, 0, 0, 1268, 1269, 1,
- 0, 0, 0, 1269, 1276, 3, 204, 102, 0, 1270, 1271, 5, 6, 0, 0, 1271, 1277,
- 3, 80, 40, 0, 1272, 1273, 5, 3, 0, 0, 1273, 1274, 3, 80, 40, 0, 1274, 1275,
- 5, 4, 0, 0, 1275, 1277, 1, 0, 0, 0, 1276, 1270, 1, 0, 0, 0, 1276, 1272,
- 1, 0, 0, 0, 1276, 1277, 1, 0, 0, 0, 1277, 79, 1, 0, 0, 0, 1278, 1282, 3,
- 36, 18, 0, 1279, 1282, 3, 176, 88, 0, 1280, 1282, 5, 192, 0, 0, 1281, 1278,
- 1, 0, 0, 0, 1281, 1279, 1, 0, 0, 0, 1281, 1280, 1, 0, 0, 0, 1282, 81, 1,
- 0, 0, 0, 1283, 1294, 5, 121, 0, 0, 1284, 1295, 3, 192, 96, 0, 1285, 1286,
- 3, 182, 91, 0, 1286, 1287, 5, 2, 0, 0, 1287, 1289, 1, 0, 0, 0, 1288, 1285,
- 1, 0, 0, 0, 1288, 1289, 1, 0, 0, 0, 1289, 1292, 1, 0, 0, 0, 1290, 1293,
- 3, 184, 92, 0, 1291, 1293, 3, 196, 98, 0, 1292, 1290, 1, 0, 0, 0, 1292,
- 1291, 1, 0, 0, 0, 1293, 1295, 1, 0, 0, 0, 1294, 1284, 1, 0, 0, 0, 1294,
- 1288, 1, 0, 0, 0, 1294, 1295, 1, 0, 0, 0, 1295, 83, 1, 0, 0, 0, 1296, 1298,
- 3, 132, 66, 0, 1297, 1296, 1, 0, 0, 0, 1297, 1298, 1, 0, 0, 0, 1298, 1299,
- 1, 0, 0, 0, 1299, 1305, 3, 88, 44, 0, 1300, 1301, 3, 104, 52, 0, 1301,
- 1302, 3, 88, 44, 0, 1302, 1304, 1, 0, 0, 0, 1303, 1300, 1, 0, 0, 0, 1304,
- 1307, 1, 0, 0, 0, 1305, 1303, 1, 0, 0, 0, 1305, 1306, 1, 0, 0, 0, 1306,
- 1309, 1, 0, 0, 0, 1307, 1305, 1, 0, 0, 0, 1308, 1310, 3, 134, 67, 0, 1309,
- 1308, 1, 0, 0, 0, 1309, 1310, 1, 0, 0, 0, 1310, 1312, 1, 0, 0, 0, 1311,
- 1313, 3, 136, 68, 0, 1312, 1311, 1, 0, 0, 0, 1312, 1313, 1, 0, 0, 0, 1313,
- 85, 1, 0, 0, 0, 1314, 1321, 3, 96, 48, 0, 1315, 1316, 3, 100, 50, 0, 1316,
- 1317, 3, 96, 48, 0, 1317, 1318, 3, 102, 51, 0, 1318, 1320, 1, 0, 0, 0,
- 1319, 1315, 1, 0, 0, 0, 1320, 1323, 1, 0, 0, 0, 1321, 1319, 1, 0, 0, 0,
- 1321, 1322, 1, 0, 0, 0, 1322, 87, 1, 0, 0, 0, 1323, 1321, 1, 0, 0, 0, 1324,
- 1326, 5, 132, 0, 0, 1325, 1327, 7, 17, 0, 0, 1326, 1325, 1, 0, 0, 0, 1326,
- 1327, 1, 0, 0, 0, 1327, 1328, 1, 0, 0, 0, 1328, 1333, 3, 98, 49, 0, 1329,
- 1330, 5, 5, 0, 0, 1330, 1332, 3, 98, 49, 0, 1331, 1329, 1, 0, 0, 0, 1332,
- 1335, 1, 0, 0, 0, 1333, 1331, 1, 0, 0, 0, 1333, 1334, 1, 0, 0, 0, 1334,
- 1348, 1, 0, 0, 0, 1335, 1333, 1, 0, 0, 0, 1336, 1346, 5, 77, 0, 0, 1337,
- 1342, 3, 96, 48, 0, 1338, 1339, 5, 5, 0, 0, 1339, 1341, 3, 96, 48, 0, 1340,
- 1338, 1, 0, 0, 0, 1341, 1344, 1, 0, 0, 0, 1342, 1340, 1, 0, 0, 0, 1342,
- 1343, 1, 0, 0, 0, 1343, 1347, 1, 0, 0, 0, 1344, 1342, 1, 0, 0, 0, 1345,
- 1347, 3, 86, 43, 0, 1346, 1337, 1, 0, 0, 0, 1346, 1345, 1, 0, 0, 0, 1347,
- 1349, 1, 0, 0, 0, 1348, 1336, 1, 0, 0, 0, 1348, 1349, 1, 0, 0, 0, 1349,
- 1352, 1, 0, 0, 0, 1350, 1351, 5, 151, 0, 0, 1351, 1353, 3, 68, 34, 0, 1352,
- 1350, 1, 0, 0, 0, 1352, 1353, 1, 0, 0, 0, 1353, 1368, 1, 0, 0, 0, 1354,
- 1355, 5, 80, 0, 0, 1355, 1356, 5, 42, 0, 0, 1356, 1361, 3, 68, 34, 0, 1357,
- 1358, 5, 5, 0, 0, 1358, 1360, 3, 68, 34, 0, 1359, 1357, 1, 0, 0, 0, 1360,
- 1363, 1, 0, 0, 0, 1361, 1359, 1, 0, 0, 0, 1361, 1362, 1, 0, 0, 0, 1362,
- 1366, 1, 0, 0, 0, 1363, 1361, 1, 0, 0, 0, 1364, 1365, 5, 81, 0, 0, 1365,
- 1367, 3, 68, 34, 0, 1366, 1364, 1, 0, 0, 0, 1366, 1367, 1, 0, 0, 0, 1367,
- 1369, 1, 0, 0, 0, 1368, 1354, 1, 0, 0, 0, 1368, 1369, 1, 0, 0, 0, 1369,
- 1384, 1, 0, 0, 0, 1370, 1371, 5, 177, 0, 0, 1371, 1372, 3, 214, 107, 0,
- 1372, 1373, 5, 35, 0, 0, 1373, 1381, 3, 118, 59, 0, 1374, 1375, 5, 5, 0,
- 0, 1375, 1376, 3, 214, 107, 0, 1376, 1377, 5, 35, 0, 0, 1377, 1378, 3,
- 118, 59, 0, 1378, 1380, 1, 0, 0, 0, 1379, 1374, 1, 0, 0, 0, 1380, 1383,
- 1, 0, 0, 0, 1381, 1379, 1, 0, 0, 0, 1381, 1382, 1, 0, 0, 0, 1382, 1385,
- 1, 0, 0, 0, 1383, 1381, 1, 0, 0, 0, 1384, 1370, 1, 0, 0, 0, 1384, 1385,
- 1, 0, 0, 0, 1385, 1415, 1, 0, 0, 0, 1386, 1387, 5, 147, 0, 0, 1387, 1388,
- 5, 3, 0, 0, 1388, 1393, 3, 68, 34, 0, 1389, 1390, 5, 5, 0, 0, 1390, 1392,
- 3, 68, 34, 0, 1391, 1389, 1, 0, 0, 0, 1392, 1395, 1, 0, 0, 0, 1393, 1391,
- 1, 0, 0, 0, 1393, 1394, 1, 0, 0, 0, 1394, 1396, 1, 0, 0, 0, 1395, 1393,
- 1, 0, 0, 0, 1396, 1411, 5, 4, 0, 0, 1397, 1398, 5, 5, 0, 0, 1398, 1399,
- 5, 3, 0, 0, 1399, 1404, 3, 68, 34, 0, 1400, 1401, 5, 5, 0, 0, 1401, 1403,
- 3, 68, 34, 0, 1402, 1400, 1, 0, 0, 0, 1403, 1406, 1, 0, 0, 0, 1404, 1402,
- 1, 0, 0, 0, 1404, 1405, 1, 0, 0, 0, 1405, 1407, 1, 0, 0, 0, 1406, 1404,
- 1, 0, 0, 0, 1407, 1408, 5, 4, 0, 0, 1408, 1410, 1, 0, 0, 0, 1409, 1397,
- 1, 0, 0, 0, 1410, 1413, 1, 0, 0, 0, 1411, 1409, 1, 0, 0, 0, 1411, 1412,
- 1, 0, 0, 0, 1412, 1415, 1, 0, 0, 0, 1413, 1411, 1, 0, 0, 0, 1414, 1324,
- 1, 0, 0, 0, 1414, 1386, 1, 0, 0, 0, 1415, 89, 1, 0, 0, 0, 1416, 1417, 3,
- 84, 42, 0, 1417, 91, 1, 0, 0, 0, 1418, 1420, 3, 132, 66, 0, 1419, 1418,
- 1, 0, 0, 0, 1419, 1420, 1, 0, 0, 0, 1420, 1421, 1, 0, 0, 0, 1421, 1423,
- 3, 88, 44, 0, 1422, 1424, 3, 134, 67, 0, 1423, 1422, 1, 0, 0, 0, 1423,
- 1424, 1, 0, 0, 0, 1424, 1426, 1, 0, 0, 0, 1425, 1427, 3, 136, 68, 0, 1426,
- 1425, 1, 0, 0, 0, 1426, 1427, 1, 0, 0, 0, 1427, 93, 1, 0, 0, 0, 1428, 1430,
- 3, 132, 66, 0, 1429, 1428, 1, 0, 0, 0, 1429, 1430, 1, 0, 0, 0, 1430, 1431,
- 1, 0, 0, 0, 1431, 1441, 3, 88, 44, 0, 1432, 1434, 5, 142, 0, 0, 1433, 1435,
- 5, 31, 0, 0, 1434, 1433, 1, 0, 0, 0, 1434, 1435, 1, 0, 0, 0, 1435, 1439,
- 1, 0, 0, 0, 1436, 1439, 5, 92, 0, 0, 1437, 1439, 5, 70, 0, 0, 1438, 1432,
- 1, 0, 0, 0, 1438, 1436, 1, 0, 0, 0, 1438, 1437, 1, 0, 0, 0, 1439, 1440,
- 1, 0, 0, 0, 1440, 1442, 3, 88, 44, 0, 1441, 1438, 1, 0, 0, 0, 1442, 1443,
- 1, 0, 0, 0, 1443, 1441, 1, 0, 0, 0, 1443, 1444, 1, 0, 0, 0, 1444, 1446,
- 1, 0, 0, 0, 1445, 1447, 3, 134, 67, 0, 1446, 1445, 1, 0, 0, 0, 1446, 1447,
- 1, 0, 0, 0, 1447, 1449, 1, 0, 0, 0, 1448, 1450, 3, 136, 68, 0, 1449, 1448,
- 1, 0, 0, 0, 1449, 1450, 1, 0, 0, 0, 1450, 95, 1, 0, 0, 0, 1451, 1452, 3,
- 182, 91, 0, 1452, 1453, 5, 2, 0, 0, 1453, 1455, 1, 0, 0, 0, 1454, 1451,
- 1, 0, 0, 0, 1454, 1455, 1, 0, 0, 0, 1455, 1456, 1, 0, 0, 0, 1456, 1461,
- 3, 184, 92, 0, 1457, 1459, 5, 35, 0, 0, 1458, 1457, 1, 0, 0, 0, 1458, 1459,
- 1, 0, 0, 0, 1459, 1460, 1, 0, 0, 0, 1460, 1462, 3, 208, 104, 0, 1461, 1458,
- 1, 0, 0, 0, 1461, 1462, 1, 0, 0, 0, 1462, 1468, 1, 0, 0, 0, 1463, 1464,
- 5, 87, 0, 0, 1464, 1465, 5, 42, 0, 0, 1465, 1469, 3, 196, 98, 0, 1466,
- 1467, 5, 104, 0, 0, 1467, 1469, 5, 87, 0, 0, 1468, 1463, 1, 0, 0, 0, 1468,
- 1466, 1, 0, 0, 0, 1468, 1469, 1, 0, 0, 0, 1469, 1580, 1, 0, 0, 0, 1470,
- 1471, 3, 182, 91, 0, 1471, 1472, 5, 2, 0, 0, 1472, 1474, 1, 0, 0, 0, 1473,
- 1470, 1, 0, 0, 0, 1473, 1474, 1, 0, 0, 0, 1474, 1475, 1, 0, 0, 0, 1475,
- 1476, 3, 226, 113, 0, 1476, 1477, 5, 3, 0, 0, 1477, 1482, 3, 68, 34, 0,
- 1478, 1479, 5, 5, 0, 0, 1479, 1481, 3, 68, 34, 0, 1480, 1478, 1, 0, 0,
- 0, 1481, 1484, 1, 0, 0, 0, 1482, 1480, 1, 0, 0, 0, 1482, 1483, 1, 0, 0,
- 0, 1483, 1485, 1, 0, 0, 0, 1484, 1482, 1, 0, 0, 0, 1485, 1490, 5, 4, 0,
- 0, 1486, 1488, 5, 35, 0, 0, 1487, 1486, 1, 0, 0, 0, 1487, 1488, 1, 0, 0,
- 0, 1488, 1489, 1, 0, 0, 0, 1489, 1491, 3, 208, 104, 0, 1490, 1487, 1, 0,
- 0, 0, 1490, 1491, 1, 0, 0, 0, 1491, 1580, 1, 0, 0, 0, 1492, 1502, 5, 3,
- 0, 0, 1493, 1498, 3, 96, 48, 0, 1494, 1495, 5, 5, 0, 0, 1495, 1497, 3,
- 96, 48, 0, 1496, 1494, 1, 0, 0, 0, 1497, 1500, 1, 0, 0, 0, 1498, 1496,
- 1, 0, 0, 0, 1498, 1499, 1, 0, 0, 0, 1499, 1503, 1, 0, 0, 0, 1500, 1498,
- 1, 0, 0, 0, 1501, 1503, 3, 86, 43, 0, 1502, 1493, 1, 0, 0, 0, 1502, 1501,
- 1, 0, 0, 0, 1503, 1504, 1, 0, 0, 0, 1504, 1505, 5, 4, 0, 0, 1505, 1580,
- 1, 0, 0, 0, 1506, 1507, 5, 3, 0, 0, 1507, 1508, 3, 84, 42, 0, 1508, 1513,
- 5, 4, 0, 0, 1509, 1511, 5, 35, 0, 0, 1510, 1509, 1, 0, 0, 0, 1510, 1511,
- 1, 0, 0, 0, 1511, 1512, 1, 0, 0, 0, 1512, 1514, 3, 208, 104, 0, 1513, 1510,
- 1, 0, 0, 0, 1513, 1514, 1, 0, 0, 0, 1514, 1580, 1, 0, 0, 0, 1515, 1516,
- 3, 182, 91, 0, 1516, 1517, 5, 2, 0, 0, 1517, 1519, 1, 0, 0, 0, 1518, 1515,
- 1, 0, 0, 0, 1518, 1519, 1, 0, 0, 0, 1519, 1520, 1, 0, 0, 0, 1520, 1525,
- 3, 184, 92, 0, 1521, 1523, 5, 35, 0, 0, 1522, 1521, 1, 0, 0, 0, 1522, 1523,
- 1, 0, 0, 0, 1523, 1524, 1, 0, 0, 0, 1524, 1526, 3, 210, 105, 0, 1525, 1522,
- 1, 0, 0, 0, 1525, 1526, 1, 0, 0, 0, 1526, 1532, 1, 0, 0, 0, 1527, 1528,
- 5, 87, 0, 0, 1528, 1529, 5, 42, 0, 0, 1529, 1533, 3, 196, 98, 0, 1530,
- 1531, 5, 104, 0, 0, 1531, 1533, 5, 87, 0, 0, 1532, 1527, 1, 0, 0, 0, 1532,
- 1530, 1, 0, 0, 0, 1532, 1533, 1, 0, 0, 0, 1533, 1580, 1, 0, 0, 0, 1534,
- 1535, 3, 182, 91, 0, 1535, 1536, 5, 2, 0, 0, 1536, 1538, 1, 0, 0, 0, 1537,
- 1534, 1, 0, 0, 0, 1537, 1538, 1, 0, 0, 0, 1538, 1539, 1, 0, 0, 0, 1539,
- 1540, 3, 226, 113, 0, 1540, 1541, 5, 3, 0, 0, 1541, 1546, 3, 68, 34, 0,
- 1542, 1543, 5, 5, 0, 0, 1543, 1545, 3, 68, 34, 0, 1544, 1542, 1, 0, 0,
- 0, 1545, 1548, 1, 0, 0, 0, 1546, 1544, 1, 0, 0, 0, 1546, 1547, 1, 0, 0,
- 0, 1547, 1549, 1, 0, 0, 0, 1548, 1546, 1, 0, 0, 0, 1549, 1554, 5, 4, 0,
- 0, 1550, 1552, 5, 35, 0, 0, 1551, 1550, 1, 0, 0, 0, 1551, 1552, 1, 0, 0,
- 0, 1552, 1553, 1, 0, 0, 0, 1553, 1555, 3, 210, 105, 0, 1554, 1551, 1, 0,
- 0, 0, 1554, 1555, 1, 0, 0, 0, 1555, 1580, 1, 0, 0, 0, 1556, 1566, 5, 3,
- 0, 0, 1557, 1562, 3, 96, 48, 0, 1558, 1559, 5, 5, 0, 0, 1559, 1561, 3,
- 96, 48, 0, 1560, 1558, 1, 0, 0, 0, 1561, 1564, 1, 0, 0, 0, 1562, 1560,
- 1, 0, 0, 0, 1562, 1563, 1, 0, 0, 0, 1563, 1567, 1, 0, 0, 0, 1564, 1562,
- 1, 0, 0, 0, 1565, 1567, 3, 86, 43, 0, 1566, 1557, 1, 0, 0, 0, 1566, 1565,
- 1, 0, 0, 0, 1567, 1568, 1, 0, 0, 0, 1568, 1569, 5, 4, 0, 0, 1569, 1580,
- 1, 0, 0, 0, 1570, 1571, 5, 3, 0, 0, 1571, 1572, 3, 84, 42, 0, 1572, 1577,
- 5, 4, 0, 0, 1573, 1575, 5, 35, 0, 0, 1574, 1573, 1, 0, 0, 0, 1574, 1575,
- 1, 0, 0, 0, 1575, 1576, 1, 0, 0, 0, 1576, 1578, 3, 210, 105, 0, 1577, 1574,
- 1, 0, 0, 0, 1577, 1578, 1, 0, 0, 0, 1578, 1580, 1, 0, 0, 0, 1579, 1454,
- 1, 0, 0, 0, 1579, 1473, 1, 0, 0, 0, 1579, 1492, 1, 0, 0, 0, 1579, 1506,
- 1, 0, 0, 0, 1579, 1518, 1, 0, 0, 0, 1579, 1537, 1, 0, 0, 0, 1579, 1556,
- 1, 0, 0, 0, 1579, 1570, 1, 0, 0, 0, 1580, 97, 1, 0, 0, 0, 1581, 1594, 5,
- 7, 0, 0, 1582, 1583, 3, 184, 92, 0, 1583, 1584, 5, 2, 0, 0, 1584, 1585,
- 5, 7, 0, 0, 1585, 1594, 1, 0, 0, 0, 1586, 1591, 3, 68, 34, 0, 1587, 1589,
- 5, 35, 0, 0, 1588, 1587, 1, 0, 0, 0, 1588, 1589, 1, 0, 0, 0, 1589, 1590,
- 1, 0, 0, 0, 1590, 1592, 3, 172, 86, 0, 1591, 1588, 1, 0, 0, 0, 1591, 1592,
- 1, 0, 0, 0, 1592, 1594, 1, 0, 0, 0, 1593, 1581, 1, 0, 0, 0, 1593, 1582,
- 1, 0, 0, 0, 1593, 1586, 1, 0, 0, 0, 1594, 99, 1, 0, 0, 0, 1595, 1610, 5,
- 5, 0, 0, 1596, 1598, 5, 102, 0, 0, 1597, 1596, 1, 0, 0, 0, 1597, 1598,
- 1, 0, 0, 0, 1598, 1604, 1, 0, 0, 0, 1599, 1601, 7, 18, 0, 0, 1600, 1602,
- 5, 112, 0, 0, 1601, 1600, 1, 0, 0, 0, 1601, 1602, 1, 0, 0, 0, 1602, 1605,
- 1, 0, 0, 0, 1603, 1605, 5, 89, 0, 0, 1604, 1599, 1, 0, 0, 0, 1604, 1603,
- 1, 0, 0, 0, 1604, 1605, 1, 0, 0, 0, 1605, 1606, 1, 0, 0, 0, 1606, 1610,
- 5, 96, 0, 0, 1607, 1608, 5, 53, 0, 0, 1608, 1610, 5, 96, 0, 0, 1609, 1595,
- 1, 0, 0, 0, 1609, 1597, 1, 0, 0, 0, 1609, 1607, 1, 0, 0, 0, 1610, 101,
- 1, 0, 0, 0, 1611, 1612, 5, 109, 0, 0, 1612, 1626, 3, 68, 34, 0, 1613, 1614,
- 5, 145, 0, 0, 1614, 1615, 5, 3, 0, 0, 1615, 1620, 3, 190, 95, 0, 1616,
- 1617, 5, 5, 0, 0, 1617, 1619, 3, 190, 95, 0, 1618, 1616, 1, 0, 0, 0, 1619,
- 1622, 1, 0, 0, 0, 1620, 1618, 1, 0, 0, 0, 1620, 1621, 1, 0, 0, 0, 1621,
- 1623, 1, 0, 0, 0, 1622, 1620, 1, 0, 0, 0, 1623, 1624, 5, 4, 0, 0, 1624,
- 1626, 1, 0, 0, 0, 1625, 1611, 1, 0, 0, 0, 1625, 1613, 1, 0, 0, 0, 1625,
- 1626, 1, 0, 0, 0, 1626, 103, 1, 0, 0, 0, 1627, 1629, 5, 142, 0, 0, 1628,
- 1630, 5, 31, 0, 0, 1629, 1628, 1, 0, 0, 0, 1629, 1630, 1, 0, 0, 0, 1630,
- 1634, 1, 0, 0, 0, 1631, 1634, 5, 92, 0, 0, 1632, 1634, 5, 70, 0, 0, 1633,
- 1627, 1, 0, 0, 0, 1633, 1631, 1, 0, 0, 0, 1633, 1632, 1, 0, 0, 0, 1634,
- 105, 1, 0, 0, 0, 1635, 1637, 3, 50, 25, 0, 1636, 1635, 1, 0, 0, 0, 1636,
- 1637, 1, 0, 0, 0, 1637, 1638, 1, 0, 0, 0, 1638, 1641, 5, 144, 0, 0, 1639,
- 1640, 5, 110, 0, 0, 1640, 1642, 7, 8, 0, 0, 1641, 1639, 1, 0, 0, 0, 1641,
- 1642, 1, 0, 0, 0, 1642, 1643, 1, 0, 0, 0, 1643, 1644, 3, 112, 56, 0, 1644,
- 1647, 5, 133, 0, 0, 1645, 1648, 3, 190, 95, 0, 1646, 1648, 3, 108, 54,
- 0, 1647, 1645, 1, 0, 0, 0, 1647, 1646, 1, 0, 0, 0, 1648, 1649, 1, 0, 0,
- 0, 1649, 1650, 5, 6, 0, 0, 1650, 1661, 3, 68, 34, 0, 1651, 1654, 5, 5,
- 0, 0, 1652, 1655, 3, 190, 95, 0, 1653, 1655, 3, 108, 54, 0, 1654, 1652,
- 1, 0, 0, 0, 1654, 1653, 1, 0, 0, 0, 1655, 1656, 1, 0, 0, 0, 1656, 1657,
- 5, 6, 0, 0, 1657, 1658, 3, 68, 34, 0, 1658, 1660, 1, 0, 0, 0, 1659, 1651,
- 1, 0, 0, 0, 1660, 1663, 1, 0, 0, 0, 1661, 1659, 1, 0, 0, 0, 1661, 1662,
- 1, 0, 0, 0, 1662, 1666, 1, 0, 0, 0, 1663, 1661, 1, 0, 0, 0, 1664, 1665,
- 5, 151, 0, 0, 1665, 1667, 3, 68, 34, 0, 1666, 1664, 1, 0, 0, 0, 1666, 1667,
- 1, 0, 0, 0, 1667, 1669, 1, 0, 0, 0, 1668, 1670, 3, 58, 29, 0, 1669, 1668,
- 1, 0, 0, 0, 1669, 1670, 1, 0, 0, 0, 1670, 107, 1, 0, 0, 0, 1671, 1672,
- 5, 3, 0, 0, 1672, 1677, 3, 190, 95, 0, 1673, 1674, 5, 5, 0, 0, 1674, 1676,
- 3, 190, 95, 0, 1675, 1673, 1, 0, 0, 0, 1676, 1679, 1, 0, 0, 0, 1677, 1675,
- 1, 0, 0, 0, 1677, 1678, 1, 0, 0, 0, 1678, 1680, 1, 0, 0, 0, 1679, 1677,
- 1, 0, 0, 0, 1680, 1681, 5, 4, 0, 0, 1681, 109, 1, 0, 0, 0, 1682, 1684,
- 3, 50, 25, 0, 1683, 1682, 1, 0, 0, 0, 1683, 1684, 1, 0, 0, 0, 1684, 1685,
- 1, 0, 0, 0, 1685, 1688, 5, 144, 0, 0, 1686, 1687, 5, 110, 0, 0, 1687, 1689,
- 7, 8, 0, 0, 1688, 1686, 1, 0, 0, 0, 1688, 1689, 1, 0, 0, 0, 1689, 1690,
- 1, 0, 0, 0, 1690, 1691, 3, 112, 56, 0, 1691, 1694, 5, 133, 0, 0, 1692,
- 1695, 3, 190, 95, 0, 1693, 1695, 3, 108, 54, 0, 1694, 1692, 1, 0, 0, 0,
- 1694, 1693, 1, 0, 0, 0, 1695, 1696, 1, 0, 0, 0, 1696, 1697, 5, 6, 0, 0,
- 1697, 1708, 3, 68, 34, 0, 1698, 1701, 5, 5, 0, 0, 1699, 1702, 3, 190, 95,
- 0, 1700, 1702, 3, 108, 54, 0, 1701, 1699, 1, 0, 0, 0, 1701, 1700, 1, 0,
- 0, 0, 1702, 1703, 1, 0, 0, 0, 1703, 1704, 5, 6, 0, 0, 1704, 1705, 3, 68,
- 34, 0, 1705, 1707, 1, 0, 0, 0, 1706, 1698, 1, 0, 0, 0, 1707, 1710, 1, 0,
- 0, 0, 1708, 1706, 1, 0, 0, 0, 1708, 1709, 1, 0, 0, 0, 1709, 1713, 1, 0,
- 0, 0, 1710, 1708, 1, 0, 0, 0, 1711, 1712, 5, 151, 0, 0, 1712, 1714, 3,
- 68, 34, 0, 1713, 1711, 1, 0, 0, 0, 1713, 1714, 1, 0, 0, 0, 1714, 1719,
- 1, 0, 0, 0, 1715, 1717, 3, 134, 67, 0, 1716, 1715, 1, 0, 0, 0, 1716, 1717,
- 1, 0, 0, 0, 1717, 1718, 1, 0, 0, 0, 1718, 1720, 3, 136, 68, 0, 1719, 1716,
- 1, 0, 0, 0, 1719, 1720, 1, 0, 0, 0, 1720, 111, 1, 0, 0, 0, 1721, 1722,
- 3, 182, 91, 0, 1722, 1723, 5, 2, 0, 0, 1723, 1725, 1, 0, 0, 0, 1724, 1721,
- 1, 0, 0, 0, 1724, 1725, 1, 0, 0, 0, 1725, 1726, 1, 0, 0, 0, 1726, 1729,
- 3, 184, 92, 0, 1727, 1728, 5, 35, 0, 0, 1728, 1730, 3, 216, 108, 0, 1729,
- 1727, 1, 0, 0, 0, 1729, 1730, 1, 0, 0, 0, 1730, 1736, 1, 0, 0, 0, 1731,
- 1732, 5, 87, 0, 0, 1732, 1733, 5, 42, 0, 0, 1733, 1737, 3, 196, 98, 0,
- 1734, 1735, 5, 104, 0, 0, 1735, 1737, 5, 87, 0, 0, 1736, 1731, 1, 0, 0,
- 0, 1736, 1734, 1, 0, 0, 0, 1736, 1737, 1, 0, 0, 0, 1737, 113, 1, 0, 0,
- 0, 1738, 1740, 5, 146, 0, 0, 1739, 1741, 3, 182, 91, 0, 1740, 1739, 1,
- 0, 0, 0, 1740, 1741, 1, 0, 0, 0, 1741, 1744, 1, 0, 0, 0, 1742, 1743, 5,
- 93, 0, 0, 1743, 1745, 3, 218, 109, 0, 1744, 1742, 1, 0, 0, 0, 1744, 1745,
- 1, 0, 0, 0, 1745, 115, 1, 0, 0, 0, 1746, 1747, 5, 181, 0, 0, 1747, 1748,
- 5, 3, 0, 0, 1748, 1749, 5, 151, 0, 0, 1749, 1750, 3, 68, 34, 0, 1750, 1751,
- 5, 4, 0, 0, 1751, 117, 1, 0, 0, 0, 1752, 1754, 5, 3, 0, 0, 1753, 1755,
- 3, 220, 110, 0, 1754, 1753, 1, 0, 0, 0, 1754, 1755, 1, 0, 0, 0, 1755, 1766,
- 1, 0, 0, 0, 1756, 1757, 5, 156, 0, 0, 1757, 1758, 5, 42, 0, 0, 1758, 1763,
- 3, 68, 34, 0, 1759, 1760, 5, 5, 0, 0, 1760, 1762, 3, 68, 34, 0, 1761, 1759,
- 1, 0, 0, 0, 1762, 1765, 1, 0, 0, 0, 1763, 1761, 1, 0, 0, 0, 1763, 1764,
- 1, 0, 0, 0, 1764, 1767, 1, 0, 0, 0, 1765, 1763, 1, 0, 0, 0, 1766, 1756,
- 1, 0, 0, 0, 1766, 1767, 1, 0, 0, 0, 1767, 1768, 1, 0, 0, 0, 1768, 1769,
- 5, 111, 0, 0, 1769, 1770, 5, 42, 0, 0, 1770, 1775, 3, 138, 69, 0, 1771,
- 1772, 5, 5, 0, 0, 1772, 1774, 3, 138, 69, 0, 1773, 1771, 1, 0, 0, 0, 1774,
- 1777, 1, 0, 0, 0, 1775, 1773, 1, 0, 0, 0, 1775, 1776, 1, 0, 0, 0, 1776,
- 1779, 1, 0, 0, 0, 1777, 1775, 1, 0, 0, 0, 1778, 1780, 3, 122, 61, 0, 1779,
- 1778, 1, 0, 0, 0, 1779, 1780, 1, 0, 0, 0, 1780, 1781, 1, 0, 0, 0, 1781,
- 1782, 5, 4, 0, 0, 1782, 119, 1, 0, 0, 0, 1783, 1817, 5, 155, 0, 0, 1784,
- 1818, 3, 214, 107, 0, 1785, 1787, 5, 3, 0, 0, 1786, 1788, 3, 220, 110,
- 0, 1787, 1786, 1, 0, 0, 0, 1787, 1788, 1, 0, 0, 0, 1788, 1799, 1, 0, 0,
- 0, 1789, 1790, 5, 156, 0, 0, 1790, 1791, 5, 42, 0, 0, 1791, 1796, 3, 68,
- 34, 0, 1792, 1793, 5, 5, 0, 0, 1793, 1795, 3, 68, 34, 0, 1794, 1792, 1,
- 0, 0, 0, 1795, 1798, 1, 0, 0, 0, 1796, 1794, 1, 0, 0, 0, 1796, 1797, 1,
- 0, 0, 0, 1797, 1800, 1, 0, 0, 0, 1798, 1796, 1, 0, 0, 0, 1799, 1789, 1,
- 0, 0, 0, 1799, 1800, 1, 0, 0, 0, 1800, 1811, 1, 0, 0, 0, 1801, 1802, 5,
- 111, 0, 0, 1802, 1803, 5, 42, 0, 0, 1803, 1808, 3, 138, 69, 0, 1804, 1805,
- 5, 5, 0, 0, 1805, 1807, 3, 138, 69, 0, 1806, 1804, 1, 0, 0, 0, 1807, 1810,
- 1, 0, 0, 0, 1808, 1806, 1, 0, 0, 0, 1808, 1809, 1, 0, 0, 0, 1809, 1812,
- 1, 0, 0, 0, 1810, 1808, 1, 0, 0, 0, 1811, 1801, 1, 0, 0, 0, 1811, 1812,
- 1, 0, 0, 0, 1812, 1814, 1, 0, 0, 0, 1813, 1815, 3, 122, 61, 0, 1814, 1813,
- 1, 0, 0, 0, 1814, 1815, 1, 0, 0, 0, 1815, 1816, 1, 0, 0, 0, 1816, 1818,
- 5, 4, 0, 0, 1817, 1784, 1, 0, 0, 0, 1817, 1785, 1, 0, 0, 0, 1818, 121,
- 1, 0, 0, 0, 1819, 1827, 3, 124, 62, 0, 1820, 1821, 5, 183, 0, 0, 1821,
- 1822, 5, 103, 0, 0, 1822, 1828, 5, 185, 0, 0, 1823, 1824, 5, 160, 0, 0,
- 1824, 1828, 5, 129, 0, 0, 1825, 1828, 5, 80, 0, 0, 1826, 1828, 5, 184,
- 0, 0, 1827, 1820, 1, 0, 0, 0, 1827, 1823, 1, 0, 0, 0, 1827, 1825, 1, 0,
- 0, 0, 1827, 1826, 1, 0, 0, 0, 1827, 1828, 1, 0, 0, 0, 1828, 123, 1, 0,
- 0, 0, 1829, 1836, 7, 19, 0, 0, 1830, 1837, 3, 146, 73, 0, 1831, 1832, 5,
- 41, 0, 0, 1832, 1833, 3, 142, 71, 0, 1833, 1834, 5, 34, 0, 0, 1834, 1835,
- 3, 144, 72, 0, 1835, 1837, 1, 0, 0, 0, 1836, 1830, 1, 0, 0, 0, 1836, 1831,
- 1, 0, 0, 0, 1837, 125, 1, 0, 0, 0, 1838, 1839, 3, 222, 111, 0, 1839, 1849,
- 5, 3, 0, 0, 1840, 1845, 3, 68, 34, 0, 1841, 1842, 5, 5, 0, 0, 1842, 1844,
- 3, 68, 34, 0, 1843, 1841, 1, 0, 0, 0, 1844, 1847, 1, 0, 0, 0, 1845, 1843,
- 1, 0, 0, 0, 1845, 1846, 1, 0, 0, 0, 1846, 1850, 1, 0, 0, 0, 1847, 1845,
- 1, 0, 0, 0, 1848, 1850, 5, 7, 0, 0, 1849, 1840, 1, 0, 0, 0, 1849, 1848,
- 1, 0, 0, 0, 1850, 1851, 1, 0, 0, 0, 1851, 1852, 5, 4, 0, 0, 1852, 127,
- 1, 0, 0, 0, 1853, 1854, 3, 224, 112, 0, 1854, 1867, 5, 3, 0, 0, 1855, 1857,
- 5, 64, 0, 0, 1856, 1855, 1, 0, 0, 0, 1856, 1857, 1, 0, 0, 0, 1857, 1858,
- 1, 0, 0, 0, 1858, 1863, 3, 68, 34, 0, 1859, 1860, 5, 5, 0, 0, 1860, 1862,
- 3, 68, 34, 0, 1861, 1859, 1, 0, 0, 0, 1862, 1865, 1, 0, 0, 0, 1863, 1861,
- 1, 0, 0, 0, 1863, 1864, 1, 0, 0, 0, 1864, 1868, 1, 0, 0, 0, 1865, 1863,
- 1, 0, 0, 0, 1866, 1868, 5, 7, 0, 0, 1867, 1856, 1, 0, 0, 0, 1867, 1866,
- 1, 0, 0, 0, 1867, 1868, 1, 0, 0, 0, 1868, 1869, 1, 0, 0, 0, 1869, 1871,
- 5, 4, 0, 0, 1870, 1872, 3, 116, 58, 0, 1871, 1870, 1, 0, 0, 0, 1871, 1872,
- 1, 0, 0, 0, 1872, 129, 1, 0, 0, 0, 1873, 1874, 3, 148, 74, 0, 1874, 1884,
- 5, 3, 0, 0, 1875, 1880, 3, 68, 34, 0, 1876, 1877, 5, 5, 0, 0, 1877, 1879,
- 3, 68, 34, 0, 1878, 1876, 1, 0, 0, 0, 1879, 1882, 1, 0, 0, 0, 1880, 1878,
- 1, 0, 0, 0, 1880, 1881, 1, 0, 0, 0, 1881, 1885, 1, 0, 0, 0, 1882, 1880,
- 1, 0, 0, 0, 1883, 1885, 5, 7, 0, 0, 1884, 1875, 1, 0, 0, 0, 1884, 1883,
- 1, 0, 0, 0, 1884, 1885, 1, 0, 0, 0, 1885, 1886, 1, 0, 0, 0, 1886, 1888,
- 5, 4, 0, 0, 1887, 1889, 3, 116, 58, 0, 1888, 1887, 1, 0, 0, 0, 1888, 1889,
- 1, 0, 0, 0, 1889, 1890, 1, 0, 0, 0, 1890, 1893, 5, 155, 0, 0, 1891, 1894,
- 3, 118, 59, 0, 1892, 1894, 3, 214, 107, 0, 1893, 1891, 1, 0, 0, 0, 1893,
- 1892, 1, 0, 0, 0, 1894, 131, 1, 0, 0, 0, 1895, 1897, 5, 152, 0, 0, 1896,
- 1898, 5, 118, 0, 0, 1897, 1896, 1, 0, 0, 0, 1897, 1898, 1, 0, 0, 0, 1898,
- 1899, 1, 0, 0, 0, 1899, 1904, 3, 56, 28, 0, 1900, 1901, 5, 5, 0, 0, 1901,
- 1903, 3, 56, 28, 0, 1902, 1900, 1, 0, 0, 0, 1903, 1906, 1, 0, 0, 0, 1904,
- 1902, 1, 0, 0, 0, 1904, 1905, 1, 0, 0, 0, 1905, 133, 1, 0, 0, 0, 1906,
- 1904, 1, 0, 0, 0, 1907, 1908, 5, 111, 0, 0, 1908, 1909, 5, 42, 0, 0, 1909,
- 1914, 3, 138, 69, 0, 1910, 1911, 5, 5, 0, 0, 1911, 1913, 3, 138, 69, 0,
- 1912, 1910, 1, 0, 0, 0, 1913, 1916, 1, 0, 0, 0, 1914, 1912, 1, 0, 0, 0,
- 1914, 1915, 1, 0, 0, 0, 1915, 135, 1, 0, 0, 0, 1916, 1914, 1, 0, 0, 0,
- 1917, 1918, 5, 100, 0, 0, 1918, 1921, 3, 68, 34, 0, 1919, 1920, 7, 20,
- 0, 0, 1920, 1922, 3, 68, 34, 0, 1921, 1919, 1, 0, 0, 0, 1921, 1922, 1,
- 0, 0, 0, 1922, 137, 1, 0, 0, 0, 1923, 1926, 3, 68, 34, 0, 1924, 1925, 5,
- 47, 0, 0, 1925, 1927, 3, 192, 96, 0, 1926, 1924, 1, 0, 0, 0, 1926, 1927,
- 1, 0, 0, 0, 1927, 1929, 1, 0, 0, 0, 1928, 1930, 3, 140, 70, 0, 1929, 1928,
- 1, 0, 0, 0, 1929, 1930, 1, 0, 0, 0, 1930, 1933, 1, 0, 0, 0, 1931, 1932,
- 5, 178, 0, 0, 1932, 1934, 7, 21, 0, 0, 1933, 1931, 1, 0, 0, 0, 1933, 1934,
- 1, 0, 0, 0, 1934, 139, 1, 0, 0, 0, 1935, 1936, 7, 22, 0, 0, 1936, 141,
- 1, 0, 0, 0, 1937, 1938, 3, 68, 34, 0, 1938, 1939, 5, 158, 0, 0, 1939, 1948,
- 1, 0, 0, 0, 1940, 1941, 3, 68, 34, 0, 1941, 1942, 5, 161, 0, 0, 1942, 1948,
- 1, 0, 0, 0, 1943, 1944, 5, 160, 0, 0, 1944, 1948, 5, 129, 0, 0, 1945, 1946,
- 5, 159, 0, 0, 1946, 1948, 5, 158, 0, 0, 1947, 1937, 1, 0, 0, 0, 1947, 1940,
- 1, 0, 0, 0, 1947, 1943, 1, 0, 0, 0, 1947, 1945, 1, 0, 0, 0, 1948, 143,
- 1, 0, 0, 0, 1949, 1950, 3, 68, 34, 0, 1950, 1951, 5, 158, 0, 0, 1951, 1960,
- 1, 0, 0, 0, 1952, 1953, 3, 68, 34, 0, 1953, 1954, 5, 161, 0, 0, 1954, 1960,
- 1, 0, 0, 0, 1955, 1956, 5, 160, 0, 0, 1956, 1960, 5, 129, 0, 0, 1957, 1958,
- 5, 159, 0, 0, 1958, 1960, 5, 161, 0, 0, 1959, 1949, 1, 0, 0, 0, 1959, 1952,
- 1, 0, 0, 0, 1959, 1955, 1, 0, 0, 0, 1959, 1957, 1, 0, 0, 0, 1960, 145,
- 1, 0, 0, 0, 1961, 1962, 3, 68, 34, 0, 1962, 1963, 5, 158, 0, 0, 1963, 1969,
- 1, 0, 0, 0, 1964, 1965, 5, 159, 0, 0, 1965, 1969, 5, 158, 0, 0, 1966, 1967,
- 5, 160, 0, 0, 1967, 1969, 5, 129, 0, 0, 1968, 1961, 1, 0, 0, 0, 1968, 1964,
- 1, 0, 0, 0, 1968, 1966, 1, 0, 0, 0, 1969, 147, 1, 0, 0, 0, 1970, 1971,
- 7, 23, 0, 0, 1971, 1972, 5, 3, 0, 0, 1972, 1973, 3, 68, 34, 0, 1973, 1974,
- 5, 4, 0, 0, 1974, 1975, 5, 155, 0, 0, 1975, 1977, 5, 3, 0, 0, 1976, 1978,
- 3, 154, 77, 0, 1977, 1976, 1, 0, 0, 0, 1977, 1978, 1, 0, 0, 0, 1978, 1979,
- 1, 0, 0, 0, 1979, 1981, 3, 158, 79, 0, 1980, 1982, 3, 124, 62, 0, 1981,
- 1980, 1, 0, 0, 0, 1981, 1982, 1, 0, 0, 0, 1982, 1983, 1, 0, 0, 0, 1983,
- 1984, 5, 4, 0, 0, 1984, 2056, 1, 0, 0, 0, 1985, 1986, 7, 24, 0, 0, 1986,
- 1987, 5, 3, 0, 0, 1987, 1988, 5, 4, 0, 0, 1988, 1989, 5, 155, 0, 0, 1989,
- 1991, 5, 3, 0, 0, 1990, 1992, 3, 154, 77, 0, 1991, 1990, 1, 0, 0, 0, 1991,
- 1992, 1, 0, 0, 0, 1992, 1994, 1, 0, 0, 0, 1993, 1995, 3, 156, 78, 0, 1994,
- 1993, 1, 0, 0, 0, 1994, 1995, 1, 0, 0, 0, 1995, 1996, 1, 0, 0, 0, 1996,
- 2056, 5, 4, 0, 0, 1997, 1998, 7, 25, 0, 0, 1998, 1999, 5, 3, 0, 0, 1999,
- 2000, 5, 4, 0, 0, 2000, 2001, 5, 155, 0, 0, 2001, 2003, 5, 3, 0, 0, 2002,
- 2004, 3, 154, 77, 0, 2003, 2002, 1, 0, 0, 0, 2003, 2004, 1, 0, 0, 0, 2004,
- 2005, 1, 0, 0, 0, 2005, 2006, 3, 158, 79, 0, 2006, 2007, 5, 4, 0, 0, 2007,
- 2056, 1, 0, 0, 0, 2008, 2009, 7, 26, 0, 0, 2009, 2010, 5, 3, 0, 0, 2010,
- 2012, 3, 68, 34, 0, 2011, 2013, 3, 150, 75, 0, 2012, 2011, 1, 0, 0, 0,
- 2012, 2013, 1, 0, 0, 0, 2013, 2015, 1, 0, 0, 0, 2014, 2016, 3, 152, 76,
- 0, 2015, 2014, 1, 0, 0, 0, 2015, 2016, 1, 0, 0, 0, 2016, 2017, 1, 0, 0,
- 0, 2017, 2018, 5, 4, 0, 0, 2018, 2019, 5, 155, 0, 0, 2019, 2021, 5, 3,
- 0, 0, 2020, 2022, 3, 154, 77, 0, 2021, 2020, 1, 0, 0, 0, 2021, 2022, 1,
- 0, 0, 0, 2022, 2023, 1, 0, 0, 0, 2023, 2024, 3, 158, 79, 0, 2024, 2025,
- 5, 4, 0, 0, 2025, 2056, 1, 0, 0, 0, 2026, 2027, 5, 167, 0, 0, 2027, 2028,
- 5, 3, 0, 0, 2028, 2029, 3, 68, 34, 0, 2029, 2030, 5, 5, 0, 0, 2030, 2031,
- 3, 36, 18, 0, 2031, 2032, 5, 4, 0, 0, 2032, 2033, 5, 155, 0, 0, 2033, 2035,
- 5, 3, 0, 0, 2034, 2036, 3, 154, 77, 0, 2035, 2034, 1, 0, 0, 0, 2035, 2036,
- 1, 0, 0, 0, 2036, 2037, 1, 0, 0, 0, 2037, 2039, 3, 158, 79, 0, 2038, 2040,
- 3, 124, 62, 0, 2039, 2038, 1, 0, 0, 0, 2039, 2040, 1, 0, 0, 0, 2040, 2041,
- 1, 0, 0, 0, 2041, 2042, 5, 4, 0, 0, 2042, 2056, 1, 0, 0, 0, 2043, 2044,
- 5, 168, 0, 0, 2044, 2045, 5, 3, 0, 0, 2045, 2046, 3, 68, 34, 0, 2046, 2047,
- 5, 4, 0, 0, 2047, 2048, 5, 155, 0, 0, 2048, 2050, 5, 3, 0, 0, 2049, 2051,
- 3, 154, 77, 0, 2050, 2049, 1, 0, 0, 0, 2050, 2051, 1, 0, 0, 0, 2051, 2052,
- 1, 0, 0, 0, 2052, 2053, 3, 158, 79, 0, 2053, 2054, 5, 4, 0, 0, 2054, 2056,
- 1, 0, 0, 0, 2055, 1970, 1, 0, 0, 0, 2055, 1985, 1, 0, 0, 0, 2055, 1997,
- 1, 0, 0, 0, 2055, 2008, 1, 0, 0, 0, 2055, 2026, 1, 0, 0, 0, 2055, 2043,
- 1, 0, 0, 0, 2056, 149, 1, 0, 0, 0, 2057, 2058, 5, 5, 0, 0, 2058, 2059,
- 3, 36, 18, 0, 2059, 151, 1, 0, 0, 0, 2060, 2061, 5, 5, 0, 0, 2061, 2062,
- 3, 36, 18, 0, 2062, 153, 1, 0, 0, 0, 2063, 2064, 5, 156, 0, 0, 2064, 2066,
- 5, 42, 0, 0, 2065, 2067, 3, 68, 34, 0, 2066, 2065, 1, 0, 0, 0, 2067, 2068,
- 1, 0, 0, 0, 2068, 2066, 1, 0, 0, 0, 2068, 2069, 1, 0, 0, 0, 2069, 155,
- 1, 0, 0, 0, 2070, 2071, 5, 111, 0, 0, 2071, 2073, 5, 42, 0, 0, 2072, 2074,
- 3, 68, 34, 0, 2073, 2072, 1, 0, 0, 0, 2074, 2075, 1, 0, 0, 0, 2075, 2073,
- 1, 0, 0, 0, 2075, 2076, 1, 0, 0, 0, 2076, 157, 1, 0, 0, 0, 2077, 2078,
- 5, 111, 0, 0, 2078, 2079, 5, 42, 0, 0, 2079, 2080, 3, 158, 79, 0, 2080,
- 159, 1, 0, 0, 0, 2081, 2083, 3, 68, 34, 0, 2082, 2084, 3, 140, 70, 0, 2083,
- 2082, 1, 0, 0, 0, 2083, 2084, 1, 0, 0, 0, 2084, 2092, 1, 0, 0, 0, 2085,
- 2086, 5, 5, 0, 0, 2086, 2088, 3, 68, 34, 0, 2087, 2089, 3, 140, 70, 0,
- 2088, 2087, 1, 0, 0, 0, 2088, 2089, 1, 0, 0, 0, 2089, 2091, 1, 0, 0, 0,
- 2090, 2085, 1, 0, 0, 0, 2091, 2094, 1, 0, 0, 0, 2092, 2090, 1, 0, 0, 0,
- 2092, 2093, 1, 0, 0, 0, 2093, 161, 1, 0, 0, 0, 2094, 2092, 1, 0, 0, 0,
- 2095, 2096, 3, 84, 42, 0, 2096, 163, 1, 0, 0, 0, 2097, 2098, 3, 84, 42,
- 0, 2098, 165, 1, 0, 0, 0, 2099, 2100, 7, 27, 0, 0, 2100, 167, 1, 0, 0,
- 0, 2101, 2102, 5, 192, 0, 0, 2102, 169, 1, 0, 0, 0, 2103, 2106, 3, 68,
- 34, 0, 2104, 2106, 3, 30, 15, 0, 2105, 2103, 1, 0, 0, 0, 2105, 2104, 1,
- 0, 0, 0, 2106, 171, 1, 0, 0, 0, 2107, 2108, 7, 28, 0, 0, 2108, 173, 1,
- 0, 0, 0, 2109, 2110, 7, 29, 0, 0, 2110, 175, 1, 0, 0, 0, 2111, 2112, 3,
- 228, 114, 0, 2112, 177, 1, 0, 0, 0, 2113, 2114, 3, 228, 114, 0, 2114, 179,
- 1, 0, 0, 0, 2115, 2116, 3, 182, 91, 0, 2116, 2117, 5, 2, 0, 0, 2117, 2119,
- 1, 0, 0, 0, 2118, 2115, 1, 0, 0, 0, 2118, 2119, 1, 0, 0, 0, 2119, 2120,
- 1, 0, 0, 0, 2120, 2121, 3, 178, 89, 0, 2121, 181, 1, 0, 0, 0, 2122, 2123,
- 3, 228, 114, 0, 2123, 183, 1, 0, 0, 0, 2124, 2125, 3, 228, 114, 0, 2125,
- 185, 1, 0, 0, 0, 2126, 2127, 3, 228, 114, 0, 2127, 187, 1, 0, 0, 0, 2128,
- 2129, 3, 228, 114, 0, 2129, 189, 1, 0, 0, 0, 2130, 2131, 3, 228, 114, 0,
- 2131, 191, 1, 0, 0, 0, 2132, 2133, 3, 228, 114, 0, 2133, 193, 1, 0, 0,
- 0, 2134, 2135, 3, 228, 114, 0, 2135, 195, 1, 0, 0, 0, 2136, 2137, 3, 228,
- 114, 0, 2137, 197, 1, 0, 0, 0, 2138, 2139, 3, 228, 114, 0, 2139, 199, 1,
- 0, 0, 0, 2140, 2141, 3, 228, 114, 0, 2141, 201, 1, 0, 0, 0, 2142, 2143,
- 3, 228, 114, 0, 2143, 203, 1, 0, 0, 0, 2144, 2145, 3, 228, 114, 0, 2145,
- 205, 1, 0, 0, 0, 2146, 2147, 3, 228, 114, 0, 2147, 207, 1, 0, 0, 0, 2148,
- 2149, 7, 28, 0, 0, 2149, 209, 1, 0, 0, 0, 2150, 2151, 3, 228, 114, 0, 2151,
- 211, 1, 0, 0, 0, 2152, 2153, 3, 228, 114, 0, 2153, 213, 1, 0, 0, 0, 2154,
- 2155, 3, 228, 114, 0, 2155, 215, 1, 0, 0, 0, 2156, 2157, 3, 228, 114, 0,
- 2157, 217, 1, 0, 0, 0, 2158, 2159, 3, 228, 114, 0, 2159, 219, 1, 0, 0,
- 0, 2160, 2161, 3, 228, 114, 0, 2161, 221, 1, 0, 0, 0, 2162, 2163, 3, 228,
- 114, 0, 2163, 223, 1, 0, 0, 0, 2164, 2165, 3, 228, 114, 0, 2165, 225, 1,
- 0, 0, 0, 2166, 2167, 3, 228, 114, 0, 2167, 227, 1, 0, 0, 0, 2168, 2176,
- 5, 188, 0, 0, 2169, 2176, 3, 174, 87, 0, 2170, 2176, 5, 192, 0, 0, 2171,
- 2172, 5, 3, 0, 0, 2172, 2173, 3, 228, 114, 0, 2173, 2174, 5, 4, 0, 0, 2174,
- 2176, 1, 0, 0, 0, 2175, 2168, 1, 0, 0, 0, 2175, 2169, 1, 0, 0, 0, 2175,
- 2170, 1, 0, 0, 0, 2175, 2171, 1, 0, 0, 0, 2176, 229, 1, 0, 0, 0, 314, 233,
- 241, 248, 253, 259, 265, 267, 293, 300, 307, 313, 317, 322, 325, 332, 335,
- 339, 347, 351, 353, 357, 361, 365, 368, 375, 381, 387, 392, 403, 409, 413,
- 417, 420, 425, 429, 435, 440, 449, 456, 465, 468, 472, 476, 481, 487, 499,
- 503, 508, 511, 514, 519, 522, 536, 543, 550, 552, 555, 561, 566, 574, 579,
- 594, 600, 610, 615, 625, 629, 631, 635, 640, 642, 650, 656, 661, 668, 679,
- 682, 684, 691, 695, 702, 708, 714, 720, 725, 734, 739, 750, 755, 766, 771,
- 775, 791, 801, 806, 814, 826, 831, 842, 845, 847, 853, 856, 858, 862, 866,
- 873, 876, 879, 886, 889, 892, 895, 899, 907, 912, 923, 928, 937, 944, 948,
- 952, 955, 963, 976, 979, 987, 996, 1000, 1005, 1034, 1041, 1052, 1061,
- 1071, 1074, 1080, 1086, 1095, 1098, 1102, 1109, 1115, 1122, 1124, 1126,
- 1135, 1142, 1149, 1155, 1160, 1168, 1173, 1182, 1193, 1200, 1204, 1207,
- 1210, 1214, 1224, 1230, 1232, 1240, 1247, 1254, 1259, 1261, 1267, 1276,
- 1281, 1288, 1292, 1294, 1297, 1305, 1309, 1312, 1321, 1326, 1333, 1342,
- 1346, 1348, 1352, 1361, 1366, 1368, 1381, 1384, 1393, 1404, 1411, 1414,
- 1419, 1423, 1426, 1429, 1434, 1438, 1443, 1446, 1449, 1454, 1458, 1461,
- 1468, 1473, 1482, 1487, 1490, 1498, 1502, 1510, 1513, 1518, 1522, 1525,
- 1532, 1537, 1546, 1551, 1554, 1562, 1566, 1574, 1577, 1579, 1588, 1591,
- 1593, 1597, 1601, 1604, 1609, 1620, 1625, 1629, 1633, 1636, 1641, 1647,
- 1654, 1661, 1666, 1669, 1677, 1683, 1688, 1694, 1701, 1708, 1713, 1716,
- 1719, 1724, 1729, 1736, 1740, 1744, 1754, 1763, 1766, 1775, 1779, 1787,
- 1796, 1799, 1808, 1811, 1814, 1817, 1827, 1836, 1845, 1849, 1856, 1863,
- 1867, 1871, 1880, 1884, 1888, 1893, 1897, 1904, 1914, 1921, 1926, 1929,
- 1933, 1947, 1959, 1968, 1977, 1981, 1991, 1994, 2003, 2012, 2015, 2021,
- 2035, 2039, 2050, 2055, 2068, 2075, 2083, 2088, 2092, 2105, 2118, 2175,
- }
- deserializer := antlr.NewATNDeserializer(nil)
- staticData.atn = deserializer.Deserialize(staticData.serializedATN)
- atn := staticData.atn
- staticData.decisionToDFA = make([]*antlr.DFA, len(atn.DecisionToState))
- decisionToDFA := staticData.decisionToDFA
- for index, state := range atn.DecisionToState {
- decisionToDFA[index] = antlr.NewDFA(state, index)
- }
- }
- // SQLiteParserInit initializes any static state used to implement SQLiteParser. By default the
- // static state used to implement the parser is lazily initialized during the first call to
- // NewSQLiteParser(). You can call this function if you wish to initialize the static state ahead
- // of time.
- func SQLiteParserInit() {
- staticData := &sqliteparserParserStaticData
- staticData.once.Do(sqliteparserParserInit)
- }
- // NewSQLiteParser produces a new parser instance for the optional input antlr.TokenStream.
- func NewSQLiteParser(input antlr.TokenStream) *SQLiteParser {
- SQLiteParserInit()
- this := new(SQLiteParser)
- this.BaseParser = antlr.NewBaseParser(input)
- staticData := &sqliteparserParserStaticData
- this.Interpreter = antlr.NewParserATNSimulator(this, staticData.atn, staticData.decisionToDFA, staticData.predictionContextCache)
- this.RuleNames = staticData.ruleNames
- this.LiteralNames = staticData.literalNames
- this.SymbolicNames = staticData.symbolicNames
- this.GrammarFileName = "SQLiteParser.g4"
- return this
- }
- // SQLiteParser tokens.
- const (
- SQLiteParserEOF = antlr.TokenEOF
- SQLiteParserSCOL = 1
- SQLiteParserDOT = 2
- SQLiteParserOPEN_PAR = 3
- SQLiteParserCLOSE_PAR = 4
- SQLiteParserCOMMA = 5
- SQLiteParserASSIGN = 6
- SQLiteParserSTAR = 7
- SQLiteParserPLUS = 8
- SQLiteParserPTR2 = 9
- SQLiteParserPTR = 10
- SQLiteParserMINUS = 11
- SQLiteParserTILDE = 12
- SQLiteParserPIPE2 = 13
- SQLiteParserDIV = 14
- SQLiteParserMOD = 15
- SQLiteParserLT2 = 16
- SQLiteParserGT2 = 17
- SQLiteParserAMP = 18
- SQLiteParserPIPE = 19
- SQLiteParserLT = 20
- SQLiteParserLT_EQ = 21
- SQLiteParserGT = 22
- SQLiteParserGT_EQ = 23
- SQLiteParserEQ = 24
- SQLiteParserNOT_EQ1 = 25
- SQLiteParserNOT_EQ2 = 26
- SQLiteParserABORT_ = 27
- SQLiteParserACTION_ = 28
- SQLiteParserADD_ = 29
- SQLiteParserAFTER_ = 30
- SQLiteParserALL_ = 31
- SQLiteParserALTER_ = 32
- SQLiteParserANALYZE_ = 33
- SQLiteParserAND_ = 34
- SQLiteParserAS_ = 35
- SQLiteParserASC_ = 36
- SQLiteParserATTACH_ = 37
- SQLiteParserAUTOINCREMENT_ = 38
- SQLiteParserBEFORE_ = 39
- SQLiteParserBEGIN_ = 40
- SQLiteParserBETWEEN_ = 41
- SQLiteParserBY_ = 42
- SQLiteParserCASCADE_ = 43
- SQLiteParserCASE_ = 44
- SQLiteParserCAST_ = 45
- SQLiteParserCHECK_ = 46
- SQLiteParserCOLLATE_ = 47
- SQLiteParserCOLUMN_ = 48
- SQLiteParserCOMMIT_ = 49
- SQLiteParserCONFLICT_ = 50
- SQLiteParserCONSTRAINT_ = 51
- SQLiteParserCREATE_ = 52
- SQLiteParserCROSS_ = 53
- SQLiteParserCURRENT_DATE_ = 54
- SQLiteParserCURRENT_TIME_ = 55
- SQLiteParserCURRENT_TIMESTAMP_ = 56
- SQLiteParserDATABASE_ = 57
- SQLiteParserDEFAULT_ = 58
- SQLiteParserDEFERRABLE_ = 59
- SQLiteParserDEFERRED_ = 60
- SQLiteParserDELETE_ = 61
- SQLiteParserDESC_ = 62
- SQLiteParserDETACH_ = 63
- SQLiteParserDISTINCT_ = 64
- SQLiteParserDROP_ = 65
- SQLiteParserEACH_ = 66
- SQLiteParserELSE_ = 67
- SQLiteParserEND_ = 68
- SQLiteParserESCAPE_ = 69
- SQLiteParserEXCEPT_ = 70
- SQLiteParserEXCLUSIVE_ = 71
- SQLiteParserEXISTS_ = 72
- SQLiteParserEXPLAIN_ = 73
- SQLiteParserFAIL_ = 74
- SQLiteParserFOR_ = 75
- SQLiteParserFOREIGN_ = 76
- SQLiteParserFROM_ = 77
- SQLiteParserFULL_ = 78
- SQLiteParserGLOB_ = 79
- SQLiteParserGROUP_ = 80
- SQLiteParserHAVING_ = 81
- SQLiteParserIF_ = 82
- SQLiteParserIGNORE_ = 83
- SQLiteParserIMMEDIATE_ = 84
- SQLiteParserIN_ = 85
- SQLiteParserINDEX_ = 86
- SQLiteParserINDEXED_ = 87
- SQLiteParserINITIALLY_ = 88
- SQLiteParserINNER_ = 89
- SQLiteParserINSERT_ = 90
- SQLiteParserINSTEAD_ = 91
- SQLiteParserINTERSECT_ = 92
- SQLiteParserINTO_ = 93
- SQLiteParserIS_ = 94
- SQLiteParserISNULL_ = 95
- SQLiteParserJOIN_ = 96
- SQLiteParserKEY_ = 97
- SQLiteParserLEFT_ = 98
- SQLiteParserLIKE_ = 99
- SQLiteParserLIMIT_ = 100
- SQLiteParserMATCH_ = 101
- SQLiteParserNATURAL_ = 102
- SQLiteParserNO_ = 103
- SQLiteParserNOT_ = 104
- SQLiteParserNOTNULL_ = 105
- SQLiteParserNULL_ = 106
- SQLiteParserOF_ = 107
- SQLiteParserOFFSET_ = 108
- SQLiteParserON_ = 109
- SQLiteParserOR_ = 110
- SQLiteParserORDER_ = 111
- SQLiteParserOUTER_ = 112
- SQLiteParserPLAN_ = 113
- SQLiteParserPRAGMA_ = 114
- SQLiteParserPRIMARY_ = 115
- SQLiteParserQUERY_ = 116
- SQLiteParserRAISE_ = 117
- SQLiteParserRECURSIVE_ = 118
- SQLiteParserREFERENCES_ = 119
- SQLiteParserREGEXP_ = 120
- SQLiteParserREINDEX_ = 121
- SQLiteParserRELEASE_ = 122
- SQLiteParserRENAME_ = 123
- SQLiteParserREPLACE_ = 124
- SQLiteParserRESTRICT_ = 125
- SQLiteParserRETURNING_ = 126
- SQLiteParserRIGHT_ = 127
- SQLiteParserROLLBACK_ = 128
- SQLiteParserROW_ = 129
- SQLiteParserROWS_ = 130
- SQLiteParserSAVEPOINT_ = 131
- SQLiteParserSELECT_ = 132
- SQLiteParserSET_ = 133
- SQLiteParserSTRICT_ = 134
- SQLiteParserTABLE_ = 135
- SQLiteParserTEMP_ = 136
- SQLiteParserTEMPORARY_ = 137
- SQLiteParserTHEN_ = 138
- SQLiteParserTO_ = 139
- SQLiteParserTRANSACTION_ = 140
- SQLiteParserTRIGGER_ = 141
- SQLiteParserUNION_ = 142
- SQLiteParserUNIQUE_ = 143
- SQLiteParserUPDATE_ = 144
- SQLiteParserUSING_ = 145
- SQLiteParserVACUUM_ = 146
- SQLiteParserVALUES_ = 147
- SQLiteParserVIEW_ = 148
- SQLiteParserVIRTUAL_ = 149
- SQLiteParserWHEN_ = 150
- SQLiteParserWHERE_ = 151
- SQLiteParserWITH_ = 152
- SQLiteParserWITHOUT_ = 153
- SQLiteParserFIRST_VALUE_ = 154
- SQLiteParserOVER_ = 155
- SQLiteParserPARTITION_ = 156
- SQLiteParserRANGE_ = 157
- SQLiteParserPRECEDING_ = 158
- SQLiteParserUNBOUNDED_ = 159
- SQLiteParserCURRENT_ = 160
- SQLiteParserFOLLOWING_ = 161
- SQLiteParserCUME_DIST_ = 162
- SQLiteParserDENSE_RANK_ = 163
- SQLiteParserLAG_ = 164
- SQLiteParserLAST_VALUE_ = 165
- SQLiteParserLEAD_ = 166
- SQLiteParserNTH_VALUE_ = 167
- SQLiteParserNTILE_ = 168
- SQLiteParserPERCENT_RANK_ = 169
- SQLiteParserRANK_ = 170
- SQLiteParserROW_NUMBER_ = 171
- SQLiteParserGENERATED_ = 172
- SQLiteParserALWAYS_ = 173
- SQLiteParserSTORED_ = 174
- SQLiteParserTRUE_ = 175
- SQLiteParserFALSE_ = 176
- SQLiteParserWINDOW_ = 177
- SQLiteParserNULLS_ = 178
- SQLiteParserFIRST_ = 179
- SQLiteParserLAST_ = 180
- SQLiteParserFILTER_ = 181
- SQLiteParserGROUPS_ = 182
- SQLiteParserEXCLUDE_ = 183
- SQLiteParserTIES_ = 184
- SQLiteParserOTHERS_ = 185
- SQLiteParserDO_ = 186
- SQLiteParserNOTHING_ = 187
- SQLiteParserIDENTIFIER = 188
- SQLiteParserNUMERIC_LITERAL = 189
- SQLiteParserNUMBERED_BIND_PARAMETER = 190
- SQLiteParserNAMED_BIND_PARAMETER = 191
- SQLiteParserSTRING_LITERAL = 192
- SQLiteParserBLOB_LITERAL = 193
- SQLiteParserSINGLE_LINE_COMMENT = 194
- SQLiteParserMULTILINE_COMMENT = 195
- SQLiteParserSPACES = 196
- SQLiteParserUNEXPECTED_CHAR = 197
- )
- // SQLiteParser rules.
- const (
- SQLiteParserRULE_parse = 0
- SQLiteParserRULE_sql_stmt_list = 1
- SQLiteParserRULE_sql_stmt = 2
- SQLiteParserRULE_alter_table_stmt = 3
- SQLiteParserRULE_analyze_stmt = 4
- SQLiteParserRULE_attach_stmt = 5
- SQLiteParserRULE_begin_stmt = 6
- SQLiteParserRULE_commit_stmt = 7
- SQLiteParserRULE_rollback_stmt = 8
- SQLiteParserRULE_savepoint_stmt = 9
- SQLiteParserRULE_release_stmt = 10
- SQLiteParserRULE_create_index_stmt = 11
- SQLiteParserRULE_indexed_column = 12
- SQLiteParserRULE_table_option = 13
- SQLiteParserRULE_create_table_stmt = 14
- SQLiteParserRULE_column_def = 15
- SQLiteParserRULE_type_name = 16
- SQLiteParserRULE_column_constraint = 17
- SQLiteParserRULE_signed_number = 18
- SQLiteParserRULE_table_constraint = 19
- SQLiteParserRULE_foreign_key_clause = 20
- SQLiteParserRULE_conflict_clause = 21
- SQLiteParserRULE_create_trigger_stmt = 22
- SQLiteParserRULE_create_view_stmt = 23
- SQLiteParserRULE_create_virtual_table_stmt = 24
- SQLiteParserRULE_with_clause = 25
- SQLiteParserRULE_cte_table_name = 26
- SQLiteParserRULE_recursive_cte = 27
- SQLiteParserRULE_common_table_expression = 28
- SQLiteParserRULE_returning_clause = 29
- SQLiteParserRULE_delete_stmt = 30
- SQLiteParserRULE_delete_stmt_limited = 31
- SQLiteParserRULE_detach_stmt = 32
- SQLiteParserRULE_drop_stmt = 33
- SQLiteParserRULE_expr = 34
- SQLiteParserRULE_raise_function = 35
- SQLiteParserRULE_literal_value = 36
- SQLiteParserRULE_insert_stmt = 37
- SQLiteParserRULE_upsert_clause = 38
- SQLiteParserRULE_pragma_stmt = 39
- SQLiteParserRULE_pragma_value = 40
- SQLiteParserRULE_reindex_stmt = 41
- SQLiteParserRULE_select_stmt = 42
- SQLiteParserRULE_join_clause = 43
- SQLiteParserRULE_select_core = 44
- SQLiteParserRULE_factored_select_stmt = 45
- SQLiteParserRULE_simple_select_stmt = 46
- SQLiteParserRULE_compound_select_stmt = 47
- SQLiteParserRULE_table_or_subquery = 48
- SQLiteParserRULE_result_column = 49
- SQLiteParserRULE_join_operator = 50
- SQLiteParserRULE_join_constraint = 51
- SQLiteParserRULE_compound_operator = 52
- SQLiteParserRULE_update_stmt = 53
- SQLiteParserRULE_column_name_list = 54
- SQLiteParserRULE_update_stmt_limited = 55
- SQLiteParserRULE_qualified_table_name = 56
- SQLiteParserRULE_vacuum_stmt = 57
- SQLiteParserRULE_filter_clause = 58
- SQLiteParserRULE_window_defn = 59
- SQLiteParserRULE_over_clause = 60
- SQLiteParserRULE_frame_spec = 61
- SQLiteParserRULE_frame_clause = 62
- SQLiteParserRULE_simple_function_invocation = 63
- SQLiteParserRULE_aggregate_function_invocation = 64
- SQLiteParserRULE_window_function_invocation = 65
- SQLiteParserRULE_common_table_stmt = 66
- SQLiteParserRULE_order_by_stmt = 67
- SQLiteParserRULE_limit_stmt = 68
- SQLiteParserRULE_ordering_term = 69
- SQLiteParserRULE_asc_desc = 70
- SQLiteParserRULE_frame_left = 71
- SQLiteParserRULE_frame_right = 72
- SQLiteParserRULE_frame_single = 73
- SQLiteParserRULE_window_function = 74
- SQLiteParserRULE_of_OF_fset = 75
- SQLiteParserRULE_default_DEFAULT__value = 76
- SQLiteParserRULE_partition_by = 77
- SQLiteParserRULE_order_by_expr = 78
- SQLiteParserRULE_order_by_expr_asc_desc = 79
- SQLiteParserRULE_expr_asc_desc = 80
- SQLiteParserRULE_initial_select = 81
- SQLiteParserRULE_recursive__select = 82
- SQLiteParserRULE_unary_operator = 83
- SQLiteParserRULE_error_message = 84
- SQLiteParserRULE_module_argument = 85
- SQLiteParserRULE_column_alias = 86
- SQLiteParserRULE_keyword = 87
- SQLiteParserRULE_name = 88
- SQLiteParserRULE_function_name = 89
- SQLiteParserRULE_qualified_function_name = 90
- SQLiteParserRULE_schema_name = 91
- SQLiteParserRULE_table_name = 92
- SQLiteParserRULE_table_or_index_name = 93
- SQLiteParserRULE_new_table_name = 94
- SQLiteParserRULE_column_name = 95
- SQLiteParserRULE_collation_name = 96
- SQLiteParserRULE_foreign_table = 97
- SQLiteParserRULE_index_name = 98
- SQLiteParserRULE_trigger_name = 99
- SQLiteParserRULE_view_name = 100
- SQLiteParserRULE_module_name = 101
- SQLiteParserRULE_pragma_name = 102
- SQLiteParserRULE_savepoint_name = 103
- SQLiteParserRULE_table_alias = 104
- SQLiteParserRULE_table_alias_fallback = 105
- SQLiteParserRULE_transaction_name = 106
- SQLiteParserRULE_window_name = 107
- SQLiteParserRULE_alias = 108
- SQLiteParserRULE_filename = 109
- SQLiteParserRULE_base_window_name = 110
- SQLiteParserRULE_simple_func = 111
- SQLiteParserRULE_aggregate_func = 112
- SQLiteParserRULE_table_function_name = 113
- SQLiteParserRULE_any_name = 114
- )
- // IParseContext is an interface to support dynamic dispatch.
- type IParseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- EOF() antlr.TerminalNode
- AllSql_stmt_list() []ISql_stmt_listContext
- Sql_stmt_list(i int) ISql_stmt_listContext
- // IsParseContext differentiates from other interfaces.
- IsParseContext()
- }
- type ParseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyParseContext() *ParseContext {
- var p = new(ParseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_parse
- return p
- }
- func (*ParseContext) IsParseContext() {}
- func NewParseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParseContext {
- var p = new(ParseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_parse
- return p
- }
- func (s *ParseContext) GetParser() antlr.Parser { return s.parser }
- func (s *ParseContext) EOF() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEOF, 0)
- }
- func (s *ParseContext) AllSql_stmt_list() []ISql_stmt_listContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ISql_stmt_listContext); ok {
- len++
- }
- }
- tst := make([]ISql_stmt_listContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ISql_stmt_listContext); ok {
- tst[i] = t.(ISql_stmt_listContext)
- i++
- }
- }
- return tst
- }
- func (s *ParseContext) Sql_stmt_list(i int) ISql_stmt_listContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISql_stmt_listContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISql_stmt_listContext)
- }
- func (s *ParseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *ParseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *ParseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterParse(s)
- }
- }
- func (s *ParseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitParse(s)
- }
- }
- func (p *SQLiteParser) Parse() (localctx IParseContext) {
- this := p
- _ = this
- localctx = NewParseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 0, SQLiteParserRULE_parse)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(233)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&-6624230852073095166) != 0) || ((int64((_la-65)) & ^0x3f) == 0 && ((int64(1)<<(_la-65))&-8430175552450592503) != 0) || ((int64((_la-131)) & ^0x3f) == 0 && ((int64(1)<<(_la-131))&2203651) != 0) {
- {
- p.SetState(230)
- p.Sql_stmt_list()
- }
- p.SetState(235)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(236)
- p.Match(SQLiteParserEOF)
- }
- return localctx
- }
- // ISql_stmt_listContext is an interface to support dynamic dispatch.
- type ISql_stmt_listContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- AllSql_stmt() []ISql_stmtContext
- Sql_stmt(i int) ISql_stmtContext
- AllSCOL() []antlr.TerminalNode
- SCOL(i int) antlr.TerminalNode
- // IsSql_stmt_listContext differentiates from other interfaces.
- IsSql_stmt_listContext()
- }
- type Sql_stmt_listContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySql_stmt_listContext() *Sql_stmt_listContext {
- var p = new(Sql_stmt_listContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_sql_stmt_list
- return p
- }
- func (*Sql_stmt_listContext) IsSql_stmt_listContext() {}
- func NewSql_stmt_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Sql_stmt_listContext {
- var p = new(Sql_stmt_listContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_sql_stmt_list
- return p
- }
- func (s *Sql_stmt_listContext) GetParser() antlr.Parser { return s.parser }
- func (s *Sql_stmt_listContext) AllSql_stmt() []ISql_stmtContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ISql_stmtContext); ok {
- len++
- }
- }
- tst := make([]ISql_stmtContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ISql_stmtContext); ok {
- tst[i] = t.(ISql_stmtContext)
- i++
- }
- }
- return tst
- }
- func (s *Sql_stmt_listContext) Sql_stmt(i int) ISql_stmtContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISql_stmtContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISql_stmtContext)
- }
- func (s *Sql_stmt_listContext) AllSCOL() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserSCOL)
- }
- func (s *Sql_stmt_listContext) SCOL(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserSCOL, i)
- }
- func (s *Sql_stmt_listContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Sql_stmt_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Sql_stmt_listContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSql_stmt_list(s)
- }
- }
- func (s *Sql_stmt_listContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSql_stmt_list(s)
- }
- }
- func (p *SQLiteParser) Sql_stmt_list() (localctx ISql_stmt_listContext) {
- this := p
- _ = this
- localctx = NewSql_stmt_listContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 2, SQLiteParserRULE_sql_stmt_list)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- var _alt int
- p.EnterOuterAlt(localctx, 1)
- p.SetState(241)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserSCOL {
- {
- p.SetState(238)
- p.Match(SQLiteParserSCOL)
- }
- p.SetState(243)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(244)
- p.Sql_stmt()
- }
- p.SetState(253)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 3, p.GetParserRuleContext())
- for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
- if _alt == 1 {
- p.SetState(246)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for ok := true; ok; ok = _la == SQLiteParserSCOL {
- {
- p.SetState(245)
- p.Match(SQLiteParserSCOL)
- }
- p.SetState(248)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(250)
- p.Sql_stmt()
- }
- }
- p.SetState(255)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 3, p.GetParserRuleContext())
- }
- p.SetState(259)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 4, p.GetParserRuleContext())
- for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
- if _alt == 1 {
- {
- p.SetState(256)
- p.Match(SQLiteParserSCOL)
- }
- }
- p.SetState(261)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 4, p.GetParserRuleContext())
- }
- return localctx
- }
- // ISql_stmtContext is an interface to support dynamic dispatch.
- type ISql_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Alter_table_stmt() IAlter_table_stmtContext
- Analyze_stmt() IAnalyze_stmtContext
- Attach_stmt() IAttach_stmtContext
- Begin_stmt() IBegin_stmtContext
- Commit_stmt() ICommit_stmtContext
- Create_index_stmt() ICreate_index_stmtContext
- Create_table_stmt() ICreate_table_stmtContext
- Create_trigger_stmt() ICreate_trigger_stmtContext
- Create_view_stmt() ICreate_view_stmtContext
- Create_virtual_table_stmt() ICreate_virtual_table_stmtContext
- Delete_stmt() IDelete_stmtContext
- Delete_stmt_limited() IDelete_stmt_limitedContext
- Detach_stmt() IDetach_stmtContext
- Drop_stmt() IDrop_stmtContext
- Insert_stmt() IInsert_stmtContext
- Pragma_stmt() IPragma_stmtContext
- Reindex_stmt() IReindex_stmtContext
- Release_stmt() IRelease_stmtContext
- Rollback_stmt() IRollback_stmtContext
- Savepoint_stmt() ISavepoint_stmtContext
- Select_stmt() ISelect_stmtContext
- Update_stmt() IUpdate_stmtContext
- Update_stmt_limited() IUpdate_stmt_limitedContext
- Vacuum_stmt() IVacuum_stmtContext
- EXPLAIN_() antlr.TerminalNode
- QUERY_() antlr.TerminalNode
- PLAN_() antlr.TerminalNode
- // IsSql_stmtContext differentiates from other interfaces.
- IsSql_stmtContext()
- }
- type Sql_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySql_stmtContext() *Sql_stmtContext {
- var p = new(Sql_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_sql_stmt
- return p
- }
- func (*Sql_stmtContext) IsSql_stmtContext() {}
- func NewSql_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Sql_stmtContext {
- var p = new(Sql_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_sql_stmt
- return p
- }
- func (s *Sql_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Sql_stmtContext) Alter_table_stmt() IAlter_table_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAlter_table_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAlter_table_stmtContext)
- }
- func (s *Sql_stmtContext) Analyze_stmt() IAnalyze_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAnalyze_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAnalyze_stmtContext)
- }
- func (s *Sql_stmtContext) Attach_stmt() IAttach_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAttach_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAttach_stmtContext)
- }
- func (s *Sql_stmtContext) Begin_stmt() IBegin_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IBegin_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IBegin_stmtContext)
- }
- func (s *Sql_stmtContext) Commit_stmt() ICommit_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICommit_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICommit_stmtContext)
- }
- func (s *Sql_stmtContext) Create_index_stmt() ICreate_index_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICreate_index_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICreate_index_stmtContext)
- }
- func (s *Sql_stmtContext) Create_table_stmt() ICreate_table_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICreate_table_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICreate_table_stmtContext)
- }
- func (s *Sql_stmtContext) Create_trigger_stmt() ICreate_trigger_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICreate_trigger_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICreate_trigger_stmtContext)
- }
- func (s *Sql_stmtContext) Create_view_stmt() ICreate_view_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICreate_view_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICreate_view_stmtContext)
- }
- func (s *Sql_stmtContext) Create_virtual_table_stmt() ICreate_virtual_table_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICreate_virtual_table_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICreate_virtual_table_stmtContext)
- }
- func (s *Sql_stmtContext) Delete_stmt() IDelete_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IDelete_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IDelete_stmtContext)
- }
- func (s *Sql_stmtContext) Delete_stmt_limited() IDelete_stmt_limitedContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IDelete_stmt_limitedContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IDelete_stmt_limitedContext)
- }
- func (s *Sql_stmtContext) Detach_stmt() IDetach_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IDetach_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IDetach_stmtContext)
- }
- func (s *Sql_stmtContext) Drop_stmt() IDrop_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IDrop_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IDrop_stmtContext)
- }
- func (s *Sql_stmtContext) Insert_stmt() IInsert_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IInsert_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IInsert_stmtContext)
- }
- func (s *Sql_stmtContext) Pragma_stmt() IPragma_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IPragma_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IPragma_stmtContext)
- }
- func (s *Sql_stmtContext) Reindex_stmt() IReindex_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IReindex_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IReindex_stmtContext)
- }
- func (s *Sql_stmtContext) Release_stmt() IRelease_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IRelease_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IRelease_stmtContext)
- }
- func (s *Sql_stmtContext) Rollback_stmt() IRollback_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IRollback_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IRollback_stmtContext)
- }
- func (s *Sql_stmtContext) Savepoint_stmt() ISavepoint_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISavepoint_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISavepoint_stmtContext)
- }
- func (s *Sql_stmtContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Sql_stmtContext) Update_stmt() IUpdate_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IUpdate_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IUpdate_stmtContext)
- }
- func (s *Sql_stmtContext) Update_stmt_limited() IUpdate_stmt_limitedContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IUpdate_stmt_limitedContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IUpdate_stmt_limitedContext)
- }
- func (s *Sql_stmtContext) Vacuum_stmt() IVacuum_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IVacuum_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IVacuum_stmtContext)
- }
- func (s *Sql_stmtContext) EXPLAIN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXPLAIN_, 0)
- }
- func (s *Sql_stmtContext) QUERY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserQUERY_, 0)
- }
- func (s *Sql_stmtContext) PLAN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPLAN_, 0)
- }
- func (s *Sql_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Sql_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Sql_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSql_stmt(s)
- }
- }
- func (s *Sql_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSql_stmt(s)
- }
- }
- func (p *SQLiteParser) Sql_stmt() (localctx ISql_stmtContext) {
- this := p
- _ = this
- localctx = NewSql_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 4, SQLiteParserRULE_sql_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(267)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserEXPLAIN_ {
- {
- p.SetState(262)
- p.Match(SQLiteParserEXPLAIN_)
- }
- p.SetState(265)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserQUERY_ {
- {
- p.SetState(263)
- p.Match(SQLiteParserQUERY_)
- }
- {
- p.SetState(264)
- p.Match(SQLiteParserPLAN_)
- }
- }
- }
- p.SetState(293)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 7, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(269)
- p.Alter_table_stmt()
- }
- case 2:
- {
- p.SetState(270)
- p.Analyze_stmt()
- }
- case 3:
- {
- p.SetState(271)
- p.Attach_stmt()
- }
- case 4:
- {
- p.SetState(272)
- p.Begin_stmt()
- }
- case 5:
- {
- p.SetState(273)
- p.Commit_stmt()
- }
- case 6:
- {
- p.SetState(274)
- p.Create_index_stmt()
- }
- case 7:
- {
- p.SetState(275)
- p.Create_table_stmt()
- }
- case 8:
- {
- p.SetState(276)
- p.Create_trigger_stmt()
- }
- case 9:
- {
- p.SetState(277)
- p.Create_view_stmt()
- }
- case 10:
- {
- p.SetState(278)
- p.Create_virtual_table_stmt()
- }
- case 11:
- {
- p.SetState(279)
- p.Delete_stmt()
- }
- case 12:
- {
- p.SetState(280)
- p.Delete_stmt_limited()
- }
- case 13:
- {
- p.SetState(281)
- p.Detach_stmt()
- }
- case 14:
- {
- p.SetState(282)
- p.Drop_stmt()
- }
- case 15:
- {
- p.SetState(283)
- p.Insert_stmt()
- }
- case 16:
- {
- p.SetState(284)
- p.Pragma_stmt()
- }
- case 17:
- {
- p.SetState(285)
- p.Reindex_stmt()
- }
- case 18:
- {
- p.SetState(286)
- p.Release_stmt()
- }
- case 19:
- {
- p.SetState(287)
- p.Rollback_stmt()
- }
- case 20:
- {
- p.SetState(288)
- p.Savepoint_stmt()
- }
- case 21:
- {
- p.SetState(289)
- p.Select_stmt()
- }
- case 22:
- {
- p.SetState(290)
- p.Update_stmt()
- }
- case 23:
- {
- p.SetState(291)
- p.Update_stmt_limited()
- }
- case 24:
- {
- p.SetState(292)
- p.Vacuum_stmt()
- }
- }
- return localctx
- }
- // IAlter_table_stmtContext is an interface to support dynamic dispatch.
- type IAlter_table_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // GetOld_column_name returns the old_column_name rule contexts.
- GetOld_column_name() IColumn_nameContext
- // GetNew_column_name returns the new_column_name rule contexts.
- GetNew_column_name() IColumn_nameContext
- // SetOld_column_name sets the old_column_name rule contexts.
- SetOld_column_name(IColumn_nameContext)
- // SetNew_column_name sets the new_column_name rule contexts.
- SetNew_column_name(IColumn_nameContext)
- // Getter signatures
- ALTER_() antlr.TerminalNode
- TABLE_() antlr.TerminalNode
- Table_name() ITable_nameContext
- RENAME_() antlr.TerminalNode
- ADD_() antlr.TerminalNode
- Column_def() IColumn_defContext
- DROP_() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- TO_() antlr.TerminalNode
- New_table_name() INew_table_nameContext
- COLUMN_() antlr.TerminalNode
- // IsAlter_table_stmtContext differentiates from other interfaces.
- IsAlter_table_stmtContext()
- }
- type Alter_table_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- old_column_name IColumn_nameContext
- new_column_name IColumn_nameContext
- }
- func NewEmptyAlter_table_stmtContext() *Alter_table_stmtContext {
- var p = new(Alter_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_alter_table_stmt
- return p
- }
- func (*Alter_table_stmtContext) IsAlter_table_stmtContext() {}
- func NewAlter_table_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Alter_table_stmtContext {
- var p = new(Alter_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_alter_table_stmt
- return p
- }
- func (s *Alter_table_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Alter_table_stmtContext) GetOld_column_name() IColumn_nameContext { return s.old_column_name }
- func (s *Alter_table_stmtContext) GetNew_column_name() IColumn_nameContext { return s.new_column_name }
- func (s *Alter_table_stmtContext) SetOld_column_name(v IColumn_nameContext) { s.old_column_name = v }
- func (s *Alter_table_stmtContext) SetNew_column_name(v IColumn_nameContext) { s.new_column_name = v }
- func (s *Alter_table_stmtContext) ALTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALTER_, 0)
- }
- func (s *Alter_table_stmtContext) TABLE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTABLE_, 0)
- }
- func (s *Alter_table_stmtContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Alter_table_stmtContext) RENAME_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRENAME_, 0)
- }
- func (s *Alter_table_stmtContext) ADD_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserADD_, 0)
- }
- func (s *Alter_table_stmtContext) Column_def() IColumn_defContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_defContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_defContext)
- }
- func (s *Alter_table_stmtContext) DROP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDROP_, 0)
- }
- func (s *Alter_table_stmtContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Alter_table_stmtContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Alter_table_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Alter_table_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Alter_table_stmtContext) TO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTO_, 0)
- }
- func (s *Alter_table_stmtContext) New_table_name() INew_table_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(INew_table_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(INew_table_nameContext)
- }
- func (s *Alter_table_stmtContext) COLUMN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOLUMN_, 0)
- }
- func (s *Alter_table_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Alter_table_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Alter_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAlter_table_stmt(s)
- }
- }
- func (s *Alter_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAlter_table_stmt(s)
- }
- }
- func (p *SQLiteParser) Alter_table_stmt() (localctx IAlter_table_stmtContext) {
- this := p
- _ = this
- localctx = NewAlter_table_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 6, SQLiteParserRULE_alter_table_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(295)
- p.Match(SQLiteParserALTER_)
- }
- {
- p.SetState(296)
- p.Match(SQLiteParserTABLE_)
- }
- p.SetState(300)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 8, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(297)
- p.Schema_name()
- }
- {
- p.SetState(298)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(302)
- p.Table_name()
- }
- p.SetState(325)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserRENAME_:
- {
- p.SetState(303)
- p.Match(SQLiteParserRENAME_)
- }
- p.SetState(313)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 10, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(304)
- p.Match(SQLiteParserTO_)
- }
- {
- p.SetState(305)
- p.New_table_name()
- }
- case 2:
- p.SetState(307)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 9, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(306)
- p.Match(SQLiteParserCOLUMN_)
- }
- }
- {
- p.SetState(309)
- var _x = p.Column_name()
- localctx.(*Alter_table_stmtContext).old_column_name = _x
- }
- {
- p.SetState(310)
- p.Match(SQLiteParserTO_)
- }
- {
- p.SetState(311)
- var _x = p.Column_name()
- localctx.(*Alter_table_stmtContext).new_column_name = _x
- }
- }
- case SQLiteParserADD_:
- {
- p.SetState(315)
- p.Match(SQLiteParserADD_)
- }
- p.SetState(317)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 11, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(316)
- p.Match(SQLiteParserCOLUMN_)
- }
- }
- {
- p.SetState(319)
- p.Column_def()
- }
- case SQLiteParserDROP_:
- {
- p.SetState(320)
- p.Match(SQLiteParserDROP_)
- }
- p.SetState(322)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 12, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(321)
- p.Match(SQLiteParserCOLUMN_)
- }
- }
- {
- p.SetState(324)
- p.Column_name()
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IAnalyze_stmtContext is an interface to support dynamic dispatch.
- type IAnalyze_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ANALYZE_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- Table_or_index_name() ITable_or_index_nameContext
- DOT() antlr.TerminalNode
- // IsAnalyze_stmtContext differentiates from other interfaces.
- IsAnalyze_stmtContext()
- }
- type Analyze_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyAnalyze_stmtContext() *Analyze_stmtContext {
- var p = new(Analyze_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_analyze_stmt
- return p
- }
- func (*Analyze_stmtContext) IsAnalyze_stmtContext() {}
- func NewAnalyze_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Analyze_stmtContext {
- var p = new(Analyze_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_analyze_stmt
- return p
- }
- func (s *Analyze_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Analyze_stmtContext) ANALYZE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserANALYZE_, 0)
- }
- func (s *Analyze_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Analyze_stmtContext) Table_or_index_name() ITable_or_index_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_or_index_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_or_index_nameContext)
- }
- func (s *Analyze_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Analyze_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Analyze_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Analyze_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAnalyze_stmt(s)
- }
- }
- func (s *Analyze_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAnalyze_stmt(s)
- }
- }
- func (p *SQLiteParser) Analyze_stmt() (localctx IAnalyze_stmtContext) {
- this := p
- _ = this
- localctx = NewAnalyze_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 8, SQLiteParserRULE_analyze_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(327)
- p.Match(SQLiteParserANALYZE_)
- }
- p.SetState(335)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 15, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(328)
- p.Schema_name()
- }
- } else if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 15, p.GetParserRuleContext()) == 2 {
- p.SetState(332)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 14, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(329)
- p.Schema_name()
- }
- {
- p.SetState(330)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(334)
- p.Table_or_index_name()
- }
- }
- return localctx
- }
- // IAttach_stmtContext is an interface to support dynamic dispatch.
- type IAttach_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ATTACH_() antlr.TerminalNode
- Expr() IExprContext
- AS_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DATABASE_() antlr.TerminalNode
- // IsAttach_stmtContext differentiates from other interfaces.
- IsAttach_stmtContext()
- }
- type Attach_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyAttach_stmtContext() *Attach_stmtContext {
- var p = new(Attach_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_attach_stmt
- return p
- }
- func (*Attach_stmtContext) IsAttach_stmtContext() {}
- func NewAttach_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Attach_stmtContext {
- var p = new(Attach_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_attach_stmt
- return p
- }
- func (s *Attach_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Attach_stmtContext) ATTACH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserATTACH_, 0)
- }
- func (s *Attach_stmtContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Attach_stmtContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Attach_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Attach_stmtContext) DATABASE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDATABASE_, 0)
- }
- func (s *Attach_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Attach_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Attach_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAttach_stmt(s)
- }
- }
- func (s *Attach_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAttach_stmt(s)
- }
- }
- func (p *SQLiteParser) Attach_stmt() (localctx IAttach_stmtContext) {
- this := p
- _ = this
- localctx = NewAttach_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 10, SQLiteParserRULE_attach_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(337)
- p.Match(SQLiteParserATTACH_)
- }
- p.SetState(339)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 16, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(338)
- p.Match(SQLiteParserDATABASE_)
- }
- }
- {
- p.SetState(341)
- p.expr(0)
- }
- {
- p.SetState(342)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(343)
- p.Schema_name()
- }
- return localctx
- }
- // IBegin_stmtContext is an interface to support dynamic dispatch.
- type IBegin_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- BEGIN_() antlr.TerminalNode
- TRANSACTION_() antlr.TerminalNode
- DEFERRED_() antlr.TerminalNode
- IMMEDIATE_() antlr.TerminalNode
- EXCLUSIVE_() antlr.TerminalNode
- Transaction_name() ITransaction_nameContext
- // IsBegin_stmtContext differentiates from other interfaces.
- IsBegin_stmtContext()
- }
- type Begin_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyBegin_stmtContext() *Begin_stmtContext {
- var p = new(Begin_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_begin_stmt
- return p
- }
- func (*Begin_stmtContext) IsBegin_stmtContext() {}
- func NewBegin_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Begin_stmtContext {
- var p = new(Begin_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_begin_stmt
- return p
- }
- func (s *Begin_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Begin_stmtContext) BEGIN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBEGIN_, 0)
- }
- func (s *Begin_stmtContext) TRANSACTION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRANSACTION_, 0)
- }
- func (s *Begin_stmtContext) DEFERRED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFERRED_, 0)
- }
- func (s *Begin_stmtContext) IMMEDIATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIMMEDIATE_, 0)
- }
- func (s *Begin_stmtContext) EXCLUSIVE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXCLUSIVE_, 0)
- }
- func (s *Begin_stmtContext) Transaction_name() ITransaction_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITransaction_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITransaction_nameContext)
- }
- func (s *Begin_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Begin_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Begin_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterBegin_stmt(s)
- }
- }
- func (s *Begin_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitBegin_stmt(s)
- }
- }
- func (p *SQLiteParser) Begin_stmt() (localctx IBegin_stmtContext) {
- this := p
- _ = this
- localctx = NewBegin_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 12, SQLiteParserRULE_begin_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(345)
- p.Match(SQLiteParserBEGIN_)
- }
- p.SetState(347)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if (int64((_la-60)) & ^0x3f) == 0 && ((int64(1)<<(_la-60))&16779265) != 0 {
- {
- p.SetState(346)
- _la = p.GetTokenStream().LA(1)
- if !((int64((_la-60)) & ^0x3f) == 0 && ((int64(1)<<(_la-60))&16779265) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- p.SetState(353)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserTRANSACTION_ {
- {
- p.SetState(349)
- p.Match(SQLiteParserTRANSACTION_)
- }
- p.SetState(351)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 18, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(350)
- p.Transaction_name()
- }
- }
- }
- return localctx
- }
- // ICommit_stmtContext is an interface to support dynamic dispatch.
- type ICommit_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- COMMIT_() antlr.TerminalNode
- END_() antlr.TerminalNode
- TRANSACTION_() antlr.TerminalNode
- // IsCommit_stmtContext differentiates from other interfaces.
- IsCommit_stmtContext()
- }
- type Commit_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCommit_stmtContext() *Commit_stmtContext {
- var p = new(Commit_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_commit_stmt
- return p
- }
- func (*Commit_stmtContext) IsCommit_stmtContext() {}
- func NewCommit_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Commit_stmtContext {
- var p = new(Commit_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_commit_stmt
- return p
- }
- func (s *Commit_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Commit_stmtContext) COMMIT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMIT_, 0)
- }
- func (s *Commit_stmtContext) END_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEND_, 0)
- }
- func (s *Commit_stmtContext) TRANSACTION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRANSACTION_, 0)
- }
- func (s *Commit_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Commit_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Commit_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCommit_stmt(s)
- }
- }
- func (s *Commit_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCommit_stmt(s)
- }
- }
- func (p *SQLiteParser) Commit_stmt() (localctx ICommit_stmtContext) {
- this := p
- _ = this
- localctx = NewCommit_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 14, SQLiteParserRULE_commit_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(355)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserCOMMIT_ || _la == SQLiteParserEND_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- p.SetState(357)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserTRANSACTION_ {
- {
- p.SetState(356)
- p.Match(SQLiteParserTRANSACTION_)
- }
- }
- return localctx
- }
- // IRollback_stmtContext is an interface to support dynamic dispatch.
- type IRollback_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ROLLBACK_() antlr.TerminalNode
- TRANSACTION_() antlr.TerminalNode
- TO_() antlr.TerminalNode
- Savepoint_name() ISavepoint_nameContext
- SAVEPOINT_() antlr.TerminalNode
- // IsRollback_stmtContext differentiates from other interfaces.
- IsRollback_stmtContext()
- }
- type Rollback_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyRollback_stmtContext() *Rollback_stmtContext {
- var p = new(Rollback_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_rollback_stmt
- return p
- }
- func (*Rollback_stmtContext) IsRollback_stmtContext() {}
- func NewRollback_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Rollback_stmtContext {
- var p = new(Rollback_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_rollback_stmt
- return p
- }
- func (s *Rollback_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Rollback_stmtContext) ROLLBACK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROLLBACK_, 0)
- }
- func (s *Rollback_stmtContext) TRANSACTION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRANSACTION_, 0)
- }
- func (s *Rollback_stmtContext) TO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTO_, 0)
- }
- func (s *Rollback_stmtContext) Savepoint_name() ISavepoint_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISavepoint_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISavepoint_nameContext)
- }
- func (s *Rollback_stmtContext) SAVEPOINT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSAVEPOINT_, 0)
- }
- func (s *Rollback_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Rollback_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Rollback_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterRollback_stmt(s)
- }
- }
- func (s *Rollback_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitRollback_stmt(s)
- }
- }
- func (p *SQLiteParser) Rollback_stmt() (localctx IRollback_stmtContext) {
- this := p
- _ = this
- localctx = NewRollback_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 16, SQLiteParserRULE_rollback_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(359)
- p.Match(SQLiteParserROLLBACK_)
- }
- p.SetState(361)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserTRANSACTION_ {
- {
- p.SetState(360)
- p.Match(SQLiteParserTRANSACTION_)
- }
- }
- p.SetState(368)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserTO_ {
- {
- p.SetState(363)
- p.Match(SQLiteParserTO_)
- }
- p.SetState(365)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 22, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(364)
- p.Match(SQLiteParserSAVEPOINT_)
- }
- }
- {
- p.SetState(367)
- p.Savepoint_name()
- }
- }
- return localctx
- }
- // ISavepoint_stmtContext is an interface to support dynamic dispatch.
- type ISavepoint_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- SAVEPOINT_() antlr.TerminalNode
- Savepoint_name() ISavepoint_nameContext
- // IsSavepoint_stmtContext differentiates from other interfaces.
- IsSavepoint_stmtContext()
- }
- type Savepoint_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySavepoint_stmtContext() *Savepoint_stmtContext {
- var p = new(Savepoint_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_savepoint_stmt
- return p
- }
- func (*Savepoint_stmtContext) IsSavepoint_stmtContext() {}
- func NewSavepoint_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Savepoint_stmtContext {
- var p = new(Savepoint_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_savepoint_stmt
- return p
- }
- func (s *Savepoint_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Savepoint_stmtContext) SAVEPOINT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSAVEPOINT_, 0)
- }
- func (s *Savepoint_stmtContext) Savepoint_name() ISavepoint_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISavepoint_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISavepoint_nameContext)
- }
- func (s *Savepoint_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Savepoint_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Savepoint_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSavepoint_stmt(s)
- }
- }
- func (s *Savepoint_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSavepoint_stmt(s)
- }
- }
- func (p *SQLiteParser) Savepoint_stmt() (localctx ISavepoint_stmtContext) {
- this := p
- _ = this
- localctx = NewSavepoint_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 18, SQLiteParserRULE_savepoint_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(370)
- p.Match(SQLiteParserSAVEPOINT_)
- }
- {
- p.SetState(371)
- p.Savepoint_name()
- }
- return localctx
- }
- // IRelease_stmtContext is an interface to support dynamic dispatch.
- type IRelease_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- RELEASE_() antlr.TerminalNode
- Savepoint_name() ISavepoint_nameContext
- SAVEPOINT_() antlr.TerminalNode
- // IsRelease_stmtContext differentiates from other interfaces.
- IsRelease_stmtContext()
- }
- type Release_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyRelease_stmtContext() *Release_stmtContext {
- var p = new(Release_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_release_stmt
- return p
- }
- func (*Release_stmtContext) IsRelease_stmtContext() {}
- func NewRelease_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Release_stmtContext {
- var p = new(Release_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_release_stmt
- return p
- }
- func (s *Release_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Release_stmtContext) RELEASE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRELEASE_, 0)
- }
- func (s *Release_stmtContext) Savepoint_name() ISavepoint_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISavepoint_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISavepoint_nameContext)
- }
- func (s *Release_stmtContext) SAVEPOINT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSAVEPOINT_, 0)
- }
- func (s *Release_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Release_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Release_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterRelease_stmt(s)
- }
- }
- func (s *Release_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitRelease_stmt(s)
- }
- }
- func (p *SQLiteParser) Release_stmt() (localctx IRelease_stmtContext) {
- this := p
- _ = this
- localctx = NewRelease_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 20, SQLiteParserRULE_release_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(373)
- p.Match(SQLiteParserRELEASE_)
- }
- p.SetState(375)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 24, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(374)
- p.Match(SQLiteParserSAVEPOINT_)
- }
- }
- {
- p.SetState(377)
- p.Savepoint_name()
- }
- return localctx
- }
- // ICreate_index_stmtContext is an interface to support dynamic dispatch.
- type ICreate_index_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- CREATE_() antlr.TerminalNode
- INDEX_() antlr.TerminalNode
- Index_name() IIndex_nameContext
- ON_() antlr.TerminalNode
- Table_name() ITable_nameContext
- OPEN_PAR() antlr.TerminalNode
- AllIndexed_column() []IIndexed_columnContext
- Indexed_column(i int) IIndexed_columnContext
- CLOSE_PAR() antlr.TerminalNode
- UNIQUE_() antlr.TerminalNode
- IF_() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- EXISTS_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- WHERE_() antlr.TerminalNode
- Expr() IExprContext
- // IsCreate_index_stmtContext differentiates from other interfaces.
- IsCreate_index_stmtContext()
- }
- type Create_index_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCreate_index_stmtContext() *Create_index_stmtContext {
- var p = new(Create_index_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_create_index_stmt
- return p
- }
- func (*Create_index_stmtContext) IsCreate_index_stmtContext() {}
- func NewCreate_index_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Create_index_stmtContext {
- var p = new(Create_index_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_create_index_stmt
- return p
- }
- func (s *Create_index_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Create_index_stmtContext) CREATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCREATE_, 0)
- }
- func (s *Create_index_stmtContext) INDEX_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINDEX_, 0)
- }
- func (s *Create_index_stmtContext) Index_name() IIndex_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IIndex_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IIndex_nameContext)
- }
- func (s *Create_index_stmtContext) ON_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserON_, 0)
- }
- func (s *Create_index_stmtContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Create_index_stmtContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Create_index_stmtContext) AllIndexed_column() []IIndexed_columnContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IIndexed_columnContext); ok {
- len++
- }
- }
- tst := make([]IIndexed_columnContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IIndexed_columnContext); ok {
- tst[i] = t.(IIndexed_columnContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_index_stmtContext) Indexed_column(i int) IIndexed_columnContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IIndexed_columnContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IIndexed_columnContext)
- }
- func (s *Create_index_stmtContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Create_index_stmtContext) UNIQUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNIQUE_, 0)
- }
- func (s *Create_index_stmtContext) IF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIF_, 0)
- }
- func (s *Create_index_stmtContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Create_index_stmtContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *Create_index_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Create_index_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Create_index_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Create_index_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Create_index_stmtContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *Create_index_stmtContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Create_index_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Create_index_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Create_index_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCreate_index_stmt(s)
- }
- }
- func (s *Create_index_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCreate_index_stmt(s)
- }
- }
- func (p *SQLiteParser) Create_index_stmt() (localctx ICreate_index_stmtContext) {
- this := p
- _ = this
- localctx = NewCreate_index_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 22, SQLiteParserRULE_create_index_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(379)
- p.Match(SQLiteParserCREATE_)
- }
- p.SetState(381)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserUNIQUE_ {
- {
- p.SetState(380)
- p.Match(SQLiteParserUNIQUE_)
- }
- }
- {
- p.SetState(383)
- p.Match(SQLiteParserINDEX_)
- }
- p.SetState(387)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 26, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(384)
- p.Match(SQLiteParserIF_)
- }
- {
- p.SetState(385)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(386)
- p.Match(SQLiteParserEXISTS_)
- }
- }
- p.SetState(392)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 27, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(389)
- p.Schema_name()
- }
- {
- p.SetState(390)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(394)
- p.Index_name()
- }
- {
- p.SetState(395)
- p.Match(SQLiteParserON_)
- }
- {
- p.SetState(396)
- p.Table_name()
- }
- {
- p.SetState(397)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(398)
- p.Indexed_column()
- }
- p.SetState(403)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(399)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(400)
- p.Indexed_column()
- }
- p.SetState(405)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(406)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(409)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(407)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(408)
- p.expr(0)
- }
- }
- return localctx
- }
- // IIndexed_columnContext is an interface to support dynamic dispatch.
- type IIndexed_columnContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Column_name() IColumn_nameContext
- Expr() IExprContext
- COLLATE_() antlr.TerminalNode
- Collation_name() ICollation_nameContext
- Asc_desc() IAsc_descContext
- // IsIndexed_columnContext differentiates from other interfaces.
- IsIndexed_columnContext()
- }
- type Indexed_columnContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyIndexed_columnContext() *Indexed_columnContext {
- var p = new(Indexed_columnContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_indexed_column
- return p
- }
- func (*Indexed_columnContext) IsIndexed_columnContext() {}
- func NewIndexed_columnContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Indexed_columnContext {
- var p = new(Indexed_columnContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_indexed_column
- return p
- }
- func (s *Indexed_columnContext) GetParser() antlr.Parser { return s.parser }
- func (s *Indexed_columnContext) Column_name() IColumn_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Indexed_columnContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Indexed_columnContext) COLLATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOLLATE_, 0)
- }
- func (s *Indexed_columnContext) Collation_name() ICollation_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICollation_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICollation_nameContext)
- }
- func (s *Indexed_columnContext) Asc_desc() IAsc_descContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAsc_descContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAsc_descContext)
- }
- func (s *Indexed_columnContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Indexed_columnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Indexed_columnContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterIndexed_column(s)
- }
- }
- func (s *Indexed_columnContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitIndexed_column(s)
- }
- }
- func (p *SQLiteParser) Indexed_column() (localctx IIndexed_columnContext) {
- this := p
- _ = this
- localctx = NewIndexed_columnContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 24, SQLiteParserRULE_indexed_column)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(413)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 30, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(411)
- p.Column_name()
- }
- case 2:
- {
- p.SetState(412)
- p.expr(0)
- }
- }
- p.SetState(417)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserCOLLATE_ {
- {
- p.SetState(415)
- p.Match(SQLiteParserCOLLATE_)
- }
- {
- p.SetState(416)
- p.Collation_name()
- }
- }
- p.SetState(420)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
- {
- p.SetState(419)
- p.Asc_desc()
- }
- }
- return localctx
- }
- // ITable_optionContext is an interface to support dynamic dispatch.
- type ITable_optionContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // GetRow_ROW_ID returns the row_ROW_ID token.
- GetRow_ROW_ID() antlr.Token
- // SetRow_ROW_ID sets the row_ROW_ID token.
- SetRow_ROW_ID(antlr.Token)
- // Getter signatures
- WITHOUT_() antlr.TerminalNode
- IDENTIFIER() antlr.TerminalNode
- STRICT_() antlr.TerminalNode
- // IsTable_optionContext differentiates from other interfaces.
- IsTable_optionContext()
- }
- type Table_optionContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- row_ROW_ID antlr.Token
- }
- func NewEmptyTable_optionContext() *Table_optionContext {
- var p = new(Table_optionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_option
- return p
- }
- func (*Table_optionContext) IsTable_optionContext() {}
- func NewTable_optionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_optionContext {
- var p = new(Table_optionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_option
- return p
- }
- func (s *Table_optionContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_optionContext) GetRow_ROW_ID() antlr.Token { return s.row_ROW_ID }
- func (s *Table_optionContext) SetRow_ROW_ID(v antlr.Token) { s.row_ROW_ID = v }
- func (s *Table_optionContext) WITHOUT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWITHOUT_, 0)
- }
- func (s *Table_optionContext) IDENTIFIER() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIDENTIFIER, 0)
- }
- func (s *Table_optionContext) STRICT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRICT_, 0)
- }
- func (s *Table_optionContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_optionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_optionContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_option(s)
- }
- }
- func (s *Table_optionContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_option(s)
- }
- }
- func (p *SQLiteParser) Table_option() (localctx ITable_optionContext) {
- this := p
- _ = this
- localctx = NewTable_optionContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 26, SQLiteParserRULE_table_option)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(425)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserWITHOUT_:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(422)
- p.Match(SQLiteParserWITHOUT_)
- }
- {
- p.SetState(423)
- var _m = p.Match(SQLiteParserIDENTIFIER)
- localctx.(*Table_optionContext).row_ROW_ID = _m
- }
- case SQLiteParserSTRICT_:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(424)
- p.Match(SQLiteParserSTRICT_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // ICreate_table_stmtContext is an interface to support dynamic dispatch.
- type ICreate_table_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- CREATE_() antlr.TerminalNode
- TABLE_() antlr.TerminalNode
- Table_name() ITable_nameContext
- OPEN_PAR() antlr.TerminalNode
- AllColumn_def() []IColumn_defContext
- Column_def(i int) IColumn_defContext
- CLOSE_PAR() antlr.TerminalNode
- AS_() antlr.TerminalNode
- Select_stmt() ISelect_stmtContext
- IF_() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- EXISTS_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- TEMP_() antlr.TerminalNode
- TEMPORARY_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- AllTable_constraint() []ITable_constraintContext
- Table_constraint(i int) ITable_constraintContext
- AllTable_option() []ITable_optionContext
- Table_option(i int) ITable_optionContext
- // IsCreate_table_stmtContext differentiates from other interfaces.
- IsCreate_table_stmtContext()
- }
- type Create_table_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCreate_table_stmtContext() *Create_table_stmtContext {
- var p = new(Create_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_create_table_stmt
- return p
- }
- func (*Create_table_stmtContext) IsCreate_table_stmtContext() {}
- func NewCreate_table_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Create_table_stmtContext {
- var p = new(Create_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_create_table_stmt
- return p
- }
- func (s *Create_table_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Create_table_stmtContext) CREATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCREATE_, 0)
- }
- func (s *Create_table_stmtContext) TABLE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTABLE_, 0)
- }
- func (s *Create_table_stmtContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Create_table_stmtContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Create_table_stmtContext) AllColumn_def() []IColumn_defContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_defContext); ok {
- len++
- }
- }
- tst := make([]IColumn_defContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_defContext); ok {
- tst[i] = t.(IColumn_defContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_table_stmtContext) Column_def(i int) IColumn_defContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_defContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_defContext)
- }
- func (s *Create_table_stmtContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Create_table_stmtContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Create_table_stmtContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Create_table_stmtContext) IF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIF_, 0)
- }
- func (s *Create_table_stmtContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Create_table_stmtContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *Create_table_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Create_table_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Create_table_stmtContext) TEMP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMP_, 0)
- }
- func (s *Create_table_stmtContext) TEMPORARY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMPORARY_, 0)
- }
- func (s *Create_table_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Create_table_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Create_table_stmtContext) AllTable_constraint() []ITable_constraintContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ITable_constraintContext); ok {
- len++
- }
- }
- tst := make([]ITable_constraintContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ITable_constraintContext); ok {
- tst[i] = t.(ITable_constraintContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_table_stmtContext) Table_constraint(i int) ITable_constraintContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_constraintContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_constraintContext)
- }
- func (s *Create_table_stmtContext) AllTable_option() []ITable_optionContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ITable_optionContext); ok {
- len++
- }
- }
- tst := make([]ITable_optionContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ITable_optionContext); ok {
- tst[i] = t.(ITable_optionContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_table_stmtContext) Table_option(i int) ITable_optionContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_optionContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_optionContext)
- }
- func (s *Create_table_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Create_table_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Create_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCreate_table_stmt(s)
- }
- }
- func (s *Create_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCreate_table_stmt(s)
- }
- }
- func (p *SQLiteParser) Create_table_stmt() (localctx ICreate_table_stmtContext) {
- this := p
- _ = this
- localctx = NewCreate_table_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 28, SQLiteParserRULE_create_table_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- var _alt int
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(427)
- p.Match(SQLiteParserCREATE_)
- }
- p.SetState(429)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_ {
- {
- p.SetState(428)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(431)
- p.Match(SQLiteParserTABLE_)
- }
- p.SetState(435)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 35, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(432)
- p.Match(SQLiteParserIF_)
- }
- {
- p.SetState(433)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(434)
- p.Match(SQLiteParserEXISTS_)
- }
- }
- p.SetState(440)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 36, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(437)
- p.Schema_name()
- }
- {
- p.SetState(438)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(442)
- p.Table_name()
- }
- p.SetState(472)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserOPEN_PAR:
- {
- p.SetState(443)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(444)
- p.Column_def()
- }
- p.SetState(449)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 37, p.GetParserRuleContext())
- for _alt != 1 && _alt != antlr.ATNInvalidAltNumber {
- if _alt == 1+1 {
- {
- p.SetState(445)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(446)
- p.Column_def()
- }
- }
- p.SetState(451)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 37, p.GetParserRuleContext())
- }
- p.SetState(456)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(452)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(453)
- p.Table_constraint()
- }
- p.SetState(458)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(459)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(468)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserSTRICT_ || _la == SQLiteParserWITHOUT_ {
- {
- p.SetState(460)
- p.Table_option()
- }
- p.SetState(465)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(461)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(462)
- p.Table_option()
- }
- p.SetState(467)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- case SQLiteParserAS_:
- {
- p.SetState(470)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(471)
- p.Select_stmt()
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IColumn_defContext is an interface to support dynamic dispatch.
- type IColumn_defContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Column_name() IColumn_nameContext
- Type_name() IType_nameContext
- AllColumn_constraint() []IColumn_constraintContext
- Column_constraint(i int) IColumn_constraintContext
- // IsColumn_defContext differentiates from other interfaces.
- IsColumn_defContext()
- }
- type Column_defContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyColumn_defContext() *Column_defContext {
- var p = new(Column_defContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_column_def
- return p
- }
- func (*Column_defContext) IsColumn_defContext() {}
- func NewColumn_defContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Column_defContext {
- var p = new(Column_defContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_column_def
- return p
- }
- func (s *Column_defContext) GetParser() antlr.Parser { return s.parser }
- func (s *Column_defContext) Column_name() IColumn_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Column_defContext) Type_name() IType_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IType_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IType_nameContext)
- }
- func (s *Column_defContext) AllColumn_constraint() []IColumn_constraintContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_constraintContext); ok {
- len++
- }
- }
- tst := make([]IColumn_constraintContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_constraintContext); ok {
- tst[i] = t.(IColumn_constraintContext)
- i++
- }
- }
- return tst
- }
- func (s *Column_defContext) Column_constraint(i int) IColumn_constraintContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_constraintContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_constraintContext)
- }
- func (s *Column_defContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Column_defContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Column_defContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterColumn_def(s)
- }
- }
- func (s *Column_defContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitColumn_def(s)
- }
- }
- func (p *SQLiteParser) Column_def() (localctx IColumn_defContext) {
- this := p
- _ = this
- localctx = NewColumn_defContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 30, SQLiteParserRULE_column_def)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- var _alt int
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(474)
- p.Column_name()
- }
- p.SetState(476)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 42, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(475)
- p.Type_name()
- }
- }
- p.SetState(481)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 43, p.GetParserRuleContext())
- for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
- if _alt == 1 {
- {
- p.SetState(478)
- p.Column_constraint()
- }
- }
- p.SetState(483)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 43, p.GetParserRuleContext())
- }
- return localctx
- }
- // IType_nameContext is an interface to support dynamic dispatch.
- type IType_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- AllName() []INameContext
- Name(i int) INameContext
- OPEN_PAR() antlr.TerminalNode
- AllSigned_number() []ISigned_numberContext
- Signed_number(i int) ISigned_numberContext
- CLOSE_PAR() antlr.TerminalNode
- COMMA() antlr.TerminalNode
- // IsType_nameContext differentiates from other interfaces.
- IsType_nameContext()
- }
- type Type_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyType_nameContext() *Type_nameContext {
- var p = new(Type_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_type_name
- return p
- }
- func (*Type_nameContext) IsType_nameContext() {}
- func NewType_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Type_nameContext {
- var p = new(Type_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_type_name
- return p
- }
- func (s *Type_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Type_nameContext) AllName() []INameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(INameContext); ok {
- len++
- }
- }
- tst := make([]INameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(INameContext); ok {
- tst[i] = t.(INameContext)
- i++
- }
- }
- return tst
- }
- func (s *Type_nameContext) Name(i int) INameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(INameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(INameContext)
- }
- func (s *Type_nameContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Type_nameContext) AllSigned_number() []ISigned_numberContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ISigned_numberContext); ok {
- len++
- }
- }
- tst := make([]ISigned_numberContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ISigned_numberContext); ok {
- tst[i] = t.(ISigned_numberContext)
- i++
- }
- }
- return tst
- }
- func (s *Type_nameContext) Signed_number(i int) ISigned_numberContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISigned_numberContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISigned_numberContext)
- }
- func (s *Type_nameContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Type_nameContext) COMMA() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, 0)
- }
- func (s *Type_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Type_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Type_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterType_name(s)
- }
- }
- func (s *Type_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitType_name(s)
- }
- }
- func (p *SQLiteParser) Type_name() (localctx IType_nameContext) {
- this := p
- _ = this
- localctx = NewType_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 32, SQLiteParserRULE_type_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- var _alt int
- p.EnterOuterAlt(localctx, 1)
- p.SetState(485)
- p.GetErrorHandler().Sync(p)
- _alt = 1 + 1
- for ok := true; ok; ok = _alt != 1 && _alt != antlr.ATNInvalidAltNumber {
- switch _alt {
- case 1 + 1:
- {
- p.SetState(484)
- p.Name()
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- p.SetState(487)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 44, p.GetParserRuleContext())
- }
- p.SetState(499)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 45, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(489)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(490)
- p.Signed_number()
- }
- {
- p.SetState(491)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- } else if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 45, p.GetParserRuleContext()) == 2 {
- {
- p.SetState(493)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(494)
- p.Signed_number()
- }
- {
- p.SetState(495)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(496)
- p.Signed_number()
- }
- {
- p.SetState(497)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- return localctx
- }
- // IColumn_constraintContext is an interface to support dynamic dispatch.
- type IColumn_constraintContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- CHECK_() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- Expr() IExprContext
- CLOSE_PAR() antlr.TerminalNode
- DEFAULT_() antlr.TerminalNode
- COLLATE_() antlr.TerminalNode
- Collation_name() ICollation_nameContext
- Foreign_key_clause() IForeign_key_clauseContext
- AS_() antlr.TerminalNode
- CONSTRAINT_() antlr.TerminalNode
- Name() INameContext
- PRIMARY_() antlr.TerminalNode
- KEY_() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- NULL_() antlr.TerminalNode
- UNIQUE_() antlr.TerminalNode
- Signed_number() ISigned_numberContext
- Literal_value() ILiteral_valueContext
- Conflict_clause() IConflict_clauseContext
- GENERATED_() antlr.TerminalNode
- ALWAYS_() antlr.TerminalNode
- STORED_() antlr.TerminalNode
- VIRTUAL_() antlr.TerminalNode
- Asc_desc() IAsc_descContext
- AUTOINCREMENT_() antlr.TerminalNode
- // IsColumn_constraintContext differentiates from other interfaces.
- IsColumn_constraintContext()
- }
- type Column_constraintContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyColumn_constraintContext() *Column_constraintContext {
- var p = new(Column_constraintContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_column_constraint
- return p
- }
- func (*Column_constraintContext) IsColumn_constraintContext() {}
- func NewColumn_constraintContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Column_constraintContext {
- var p = new(Column_constraintContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_column_constraint
- return p
- }
- func (s *Column_constraintContext) GetParser() antlr.Parser { return s.parser }
- func (s *Column_constraintContext) CHECK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCHECK_, 0)
- }
- func (s *Column_constraintContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Column_constraintContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Column_constraintContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Column_constraintContext) DEFAULT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFAULT_, 0)
- }
- func (s *Column_constraintContext) COLLATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOLLATE_, 0)
- }
- func (s *Column_constraintContext) Collation_name() ICollation_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICollation_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICollation_nameContext)
- }
- func (s *Column_constraintContext) Foreign_key_clause() IForeign_key_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IForeign_key_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IForeign_key_clauseContext)
- }
- func (s *Column_constraintContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Column_constraintContext) CONSTRAINT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCONSTRAINT_, 0)
- }
- func (s *Column_constraintContext) Name() INameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(INameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(INameContext)
- }
- func (s *Column_constraintContext) PRIMARY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRIMARY_, 0)
- }
- func (s *Column_constraintContext) KEY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserKEY_, 0)
- }
- func (s *Column_constraintContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Column_constraintContext) NULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNULL_, 0)
- }
- func (s *Column_constraintContext) UNIQUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNIQUE_, 0)
- }
- func (s *Column_constraintContext) Signed_number() ISigned_numberContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISigned_numberContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISigned_numberContext)
- }
- func (s *Column_constraintContext) Literal_value() ILiteral_valueContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ILiteral_valueContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ILiteral_valueContext)
- }
- func (s *Column_constraintContext) Conflict_clause() IConflict_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IConflict_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IConflict_clauseContext)
- }
- func (s *Column_constraintContext) GENERATED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGENERATED_, 0)
- }
- func (s *Column_constraintContext) ALWAYS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALWAYS_, 0)
- }
- func (s *Column_constraintContext) STORED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTORED_, 0)
- }
- func (s *Column_constraintContext) VIRTUAL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVIRTUAL_, 0)
- }
- func (s *Column_constraintContext) Asc_desc() IAsc_descContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAsc_descContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAsc_descContext)
- }
- func (s *Column_constraintContext) AUTOINCREMENT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAUTOINCREMENT_, 0)
- }
- func (s *Column_constraintContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Column_constraintContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Column_constraintContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterColumn_constraint(s)
- }
- }
- func (s *Column_constraintContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitColumn_constraint(s)
- }
- }
- func (p *SQLiteParser) Column_constraint() (localctx IColumn_constraintContext) {
- this := p
- _ = this
- localctx = NewColumn_constraintContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 34, SQLiteParserRULE_column_constraint)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(503)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserCONSTRAINT_ {
- {
- p.SetState(501)
- p.Match(SQLiteParserCONSTRAINT_)
- }
- {
- p.SetState(502)
- p.Name()
- }
- }
- p.SetState(552)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserPRIMARY_:
- {
- p.SetState(505)
- p.Match(SQLiteParserPRIMARY_)
- }
- {
- p.SetState(506)
- p.Match(SQLiteParserKEY_)
- }
- p.SetState(508)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
- {
- p.SetState(507)
- p.Asc_desc()
- }
- }
- p.SetState(511)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserON_ {
- {
- p.SetState(510)
- p.Conflict_clause()
- }
- }
- p.SetState(514)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAUTOINCREMENT_ {
- {
- p.SetState(513)
- p.Match(SQLiteParserAUTOINCREMENT_)
- }
- }
- case SQLiteParserNOT_, SQLiteParserUNIQUE_:
- p.SetState(519)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserNOT_:
- {
- p.SetState(516)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(517)
- p.Match(SQLiteParserNULL_)
- }
- case SQLiteParserUNIQUE_:
- {
- p.SetState(518)
- p.Match(SQLiteParserUNIQUE_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- p.SetState(522)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserON_ {
- {
- p.SetState(521)
- p.Conflict_clause()
- }
- }
- case SQLiteParserCHECK_:
- {
- p.SetState(524)
- p.Match(SQLiteParserCHECK_)
- }
- {
- p.SetState(525)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(526)
- p.expr(0)
- }
- {
- p.SetState(527)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserDEFAULT_:
- {
- p.SetState(529)
- p.Match(SQLiteParserDEFAULT_)
- }
- p.SetState(536)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 52, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(530)
- p.Signed_number()
- }
- case 2:
- {
- p.SetState(531)
- p.Literal_value()
- }
- case 3:
- {
- p.SetState(532)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(533)
- p.expr(0)
- }
- {
- p.SetState(534)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- case SQLiteParserCOLLATE_:
- {
- p.SetState(538)
- p.Match(SQLiteParserCOLLATE_)
- }
- {
- p.SetState(539)
- p.Collation_name()
- }
- case SQLiteParserREFERENCES_:
- {
- p.SetState(540)
- p.Foreign_key_clause()
- }
- case SQLiteParserAS_, SQLiteParserGENERATED_:
- p.SetState(543)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserGENERATED_ {
- {
- p.SetState(541)
- p.Match(SQLiteParserGENERATED_)
- }
- {
- p.SetState(542)
- p.Match(SQLiteParserALWAYS_)
- }
- }
- {
- p.SetState(545)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(546)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(547)
- p.expr(0)
- }
- {
- p.SetState(548)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(550)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserVIRTUAL_ || _la == SQLiteParserSTORED_ {
- {
- p.SetState(549)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserVIRTUAL_ || _la == SQLiteParserSTORED_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // ISigned_numberContext is an interface to support dynamic dispatch.
- type ISigned_numberContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- NUMERIC_LITERAL() antlr.TerminalNode
- PLUS() antlr.TerminalNode
- MINUS() antlr.TerminalNode
- // IsSigned_numberContext differentiates from other interfaces.
- IsSigned_numberContext()
- }
- type Signed_numberContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySigned_numberContext() *Signed_numberContext {
- var p = new(Signed_numberContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_signed_number
- return p
- }
- func (*Signed_numberContext) IsSigned_numberContext() {}
- func NewSigned_numberContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Signed_numberContext {
- var p = new(Signed_numberContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_signed_number
- return p
- }
- func (s *Signed_numberContext) GetParser() antlr.Parser { return s.parser }
- func (s *Signed_numberContext) NUMERIC_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNUMERIC_LITERAL, 0)
- }
- func (s *Signed_numberContext) PLUS() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPLUS, 0)
- }
- func (s *Signed_numberContext) MINUS() antlr.TerminalNode {
- return s.GetToken(SQLiteParserMINUS, 0)
- }
- func (s *Signed_numberContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Signed_numberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Signed_numberContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSigned_number(s)
- }
- }
- func (s *Signed_numberContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSigned_number(s)
- }
- }
- func (p *SQLiteParser) Signed_number() (localctx ISigned_numberContext) {
- this := p
- _ = this
- localctx = NewSigned_numberContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 36, SQLiteParserRULE_signed_number)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(555)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPLUS || _la == SQLiteParserMINUS {
- {
- p.SetState(554)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserPLUS || _la == SQLiteParserMINUS) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(557)
- p.Match(SQLiteParserNUMERIC_LITERAL)
- }
- return localctx
- }
- // ITable_constraintContext is an interface to support dynamic dispatch.
- type ITable_constraintContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- OPEN_PAR() antlr.TerminalNode
- AllIndexed_column() []IIndexed_columnContext
- Indexed_column(i int) IIndexed_columnContext
- CLOSE_PAR() antlr.TerminalNode
- CHECK_() antlr.TerminalNode
- Expr() IExprContext
- FOREIGN_() antlr.TerminalNode
- KEY_() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- Foreign_key_clause() IForeign_key_clauseContext
- CONSTRAINT_() antlr.TerminalNode
- Name() INameContext
- PRIMARY_() antlr.TerminalNode
- UNIQUE_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- Conflict_clause() IConflict_clauseContext
- // IsTable_constraintContext differentiates from other interfaces.
- IsTable_constraintContext()
- }
- type Table_constraintContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTable_constraintContext() *Table_constraintContext {
- var p = new(Table_constraintContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_constraint
- return p
- }
- func (*Table_constraintContext) IsTable_constraintContext() {}
- func NewTable_constraintContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_constraintContext {
- var p = new(Table_constraintContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_constraint
- return p
- }
- func (s *Table_constraintContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_constraintContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Table_constraintContext) AllIndexed_column() []IIndexed_columnContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IIndexed_columnContext); ok {
- len++
- }
- }
- tst := make([]IIndexed_columnContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IIndexed_columnContext); ok {
- tst[i] = t.(IIndexed_columnContext)
- i++
- }
- }
- return tst
- }
- func (s *Table_constraintContext) Indexed_column(i int) IIndexed_columnContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IIndexed_columnContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IIndexed_columnContext)
- }
- func (s *Table_constraintContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Table_constraintContext) CHECK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCHECK_, 0)
- }
- func (s *Table_constraintContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Table_constraintContext) FOREIGN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFOREIGN_, 0)
- }
- func (s *Table_constraintContext) KEY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserKEY_, 0)
- }
- func (s *Table_constraintContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Table_constraintContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Table_constraintContext) Foreign_key_clause() IForeign_key_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IForeign_key_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IForeign_key_clauseContext)
- }
- func (s *Table_constraintContext) CONSTRAINT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCONSTRAINT_, 0)
- }
- func (s *Table_constraintContext) Name() INameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(INameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(INameContext)
- }
- func (s *Table_constraintContext) PRIMARY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRIMARY_, 0)
- }
- func (s *Table_constraintContext) UNIQUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNIQUE_, 0)
- }
- func (s *Table_constraintContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Table_constraintContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Table_constraintContext) Conflict_clause() IConflict_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IConflict_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IConflict_clauseContext)
- }
- func (s *Table_constraintContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_constraintContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_constraintContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_constraint(s)
- }
- }
- func (s *Table_constraintContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_constraint(s)
- }
- }
- func (p *SQLiteParser) Table_constraint() (localctx ITable_constraintContext) {
- this := p
- _ = this
- localctx = NewTable_constraintContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 38, SQLiteParserRULE_table_constraint)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(561)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserCONSTRAINT_ {
- {
- p.SetState(559)
- p.Match(SQLiteParserCONSTRAINT_)
- }
- {
- p.SetState(560)
- p.Name()
- }
- }
- p.SetState(600)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserPRIMARY_, SQLiteParserUNIQUE_:
- p.SetState(566)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserPRIMARY_:
- {
- p.SetState(563)
- p.Match(SQLiteParserPRIMARY_)
- }
- {
- p.SetState(564)
- p.Match(SQLiteParserKEY_)
- }
- case SQLiteParserUNIQUE_:
- {
- p.SetState(565)
- p.Match(SQLiteParserUNIQUE_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- {
- p.SetState(568)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(569)
- p.Indexed_column()
- }
- p.SetState(574)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(570)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(571)
- p.Indexed_column()
- }
- p.SetState(576)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(577)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(579)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserON_ {
- {
- p.SetState(578)
- p.Conflict_clause()
- }
- }
- case SQLiteParserCHECK_:
- {
- p.SetState(581)
- p.Match(SQLiteParserCHECK_)
- }
- {
- p.SetState(582)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(583)
- p.expr(0)
- }
- {
- p.SetState(584)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserFOREIGN_:
- {
- p.SetState(586)
- p.Match(SQLiteParserFOREIGN_)
- }
- {
- p.SetState(587)
- p.Match(SQLiteParserKEY_)
- }
- {
- p.SetState(588)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(589)
- p.Column_name()
- }
- p.SetState(594)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(590)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(591)
- p.Column_name()
- }
- p.SetState(596)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(597)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- {
- p.SetState(598)
- p.Foreign_key_clause()
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IForeign_key_clauseContext is an interface to support dynamic dispatch.
- type IForeign_key_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- REFERENCES_() antlr.TerminalNode
- Foreign_table() IForeign_tableContext
- OPEN_PAR() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- CLOSE_PAR() antlr.TerminalNode
- AllON_() []antlr.TerminalNode
- ON_(i int) antlr.TerminalNode
- AllMATCH_() []antlr.TerminalNode
- MATCH_(i int) antlr.TerminalNode
- AllName() []INameContext
- Name(i int) INameContext
- DEFERRABLE_() antlr.TerminalNode
- AllDELETE_() []antlr.TerminalNode
- DELETE_(i int) antlr.TerminalNode
- AllUPDATE_() []antlr.TerminalNode
- UPDATE_(i int) antlr.TerminalNode
- AllSET_() []antlr.TerminalNode
- SET_(i int) antlr.TerminalNode
- AllCASCADE_() []antlr.TerminalNode
- CASCADE_(i int) antlr.TerminalNode
- AllRESTRICT_() []antlr.TerminalNode
- RESTRICT_(i int) antlr.TerminalNode
- AllNO_() []antlr.TerminalNode
- NO_(i int) antlr.TerminalNode
- AllACTION_() []antlr.TerminalNode
- ACTION_(i int) antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- AllNULL_() []antlr.TerminalNode
- NULL_(i int) antlr.TerminalNode
- AllDEFAULT_() []antlr.TerminalNode
- DEFAULT_(i int) antlr.TerminalNode
- NOT_() antlr.TerminalNode
- INITIALLY_() antlr.TerminalNode
- DEFERRED_() antlr.TerminalNode
- IMMEDIATE_() antlr.TerminalNode
- // IsForeign_key_clauseContext differentiates from other interfaces.
- IsForeign_key_clauseContext()
- }
- type Foreign_key_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyForeign_key_clauseContext() *Foreign_key_clauseContext {
- var p = new(Foreign_key_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_foreign_key_clause
- return p
- }
- func (*Foreign_key_clauseContext) IsForeign_key_clauseContext() {}
- func NewForeign_key_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Foreign_key_clauseContext {
- var p = new(Foreign_key_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_foreign_key_clause
- return p
- }
- func (s *Foreign_key_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Foreign_key_clauseContext) REFERENCES_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREFERENCES_, 0)
- }
- func (s *Foreign_key_clauseContext) Foreign_table() IForeign_tableContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IForeign_tableContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IForeign_tableContext)
- }
- func (s *Foreign_key_clauseContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Foreign_key_clauseContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Foreign_key_clauseContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Foreign_key_clauseContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Foreign_key_clauseContext) AllON_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserON_)
- }
- func (s *Foreign_key_clauseContext) ON_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserON_, i)
- }
- func (s *Foreign_key_clauseContext) AllMATCH_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserMATCH_)
- }
- func (s *Foreign_key_clauseContext) MATCH_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserMATCH_, i)
- }
- func (s *Foreign_key_clauseContext) AllName() []INameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(INameContext); ok {
- len++
- }
- }
- tst := make([]INameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(INameContext); ok {
- tst[i] = t.(INameContext)
- i++
- }
- }
- return tst
- }
- func (s *Foreign_key_clauseContext) Name(i int) INameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(INameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(INameContext)
- }
- func (s *Foreign_key_clauseContext) DEFERRABLE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFERRABLE_, 0)
- }
- func (s *Foreign_key_clauseContext) AllDELETE_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserDELETE_)
- }
- func (s *Foreign_key_clauseContext) DELETE_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserDELETE_, i)
- }
- func (s *Foreign_key_clauseContext) AllUPDATE_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserUPDATE_)
- }
- func (s *Foreign_key_clauseContext) UPDATE_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserUPDATE_, i)
- }
- func (s *Foreign_key_clauseContext) AllSET_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserSET_)
- }
- func (s *Foreign_key_clauseContext) SET_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserSET_, i)
- }
- func (s *Foreign_key_clauseContext) AllCASCADE_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCASCADE_)
- }
- func (s *Foreign_key_clauseContext) CASCADE_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCASCADE_, i)
- }
- func (s *Foreign_key_clauseContext) AllRESTRICT_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserRESTRICT_)
- }
- func (s *Foreign_key_clauseContext) RESTRICT_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserRESTRICT_, i)
- }
- func (s *Foreign_key_clauseContext) AllNO_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserNO_)
- }
- func (s *Foreign_key_clauseContext) NO_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserNO_, i)
- }
- func (s *Foreign_key_clauseContext) AllACTION_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserACTION_)
- }
- func (s *Foreign_key_clauseContext) ACTION_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserACTION_, i)
- }
- func (s *Foreign_key_clauseContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Foreign_key_clauseContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Foreign_key_clauseContext) AllNULL_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserNULL_)
- }
- func (s *Foreign_key_clauseContext) NULL_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserNULL_, i)
- }
- func (s *Foreign_key_clauseContext) AllDEFAULT_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserDEFAULT_)
- }
- func (s *Foreign_key_clauseContext) DEFAULT_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFAULT_, i)
- }
- func (s *Foreign_key_clauseContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Foreign_key_clauseContext) INITIALLY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINITIALLY_, 0)
- }
- func (s *Foreign_key_clauseContext) DEFERRED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFERRED_, 0)
- }
- func (s *Foreign_key_clauseContext) IMMEDIATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIMMEDIATE_, 0)
- }
- func (s *Foreign_key_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Foreign_key_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Foreign_key_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterForeign_key_clause(s)
- }
- }
- func (s *Foreign_key_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitForeign_key_clause(s)
- }
- }
- func (p *SQLiteParser) Foreign_key_clause() (localctx IForeign_key_clauseContext) {
- this := p
- _ = this
- localctx = NewForeign_key_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 40, SQLiteParserRULE_foreign_key_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(602)
- p.Match(SQLiteParserREFERENCES_)
- }
- {
- p.SetState(603)
- p.Foreign_table()
- }
- p.SetState(615)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOPEN_PAR {
- {
- p.SetState(604)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(605)
- p.Column_name()
- }
- p.SetState(610)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(606)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(607)
- p.Column_name()
- }
- p.SetState(612)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(613)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- p.SetState(631)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserMATCH_ || _la == SQLiteParserON_ {
- p.SetState(629)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserON_:
- {
- p.SetState(617)
- p.Match(SQLiteParserON_)
- }
- {
- p.SetState(618)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserDELETE_ || _la == SQLiteParserUPDATE_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- p.SetState(625)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserSET_:
- {
- p.SetState(619)
- p.Match(SQLiteParserSET_)
- }
- {
- p.SetState(620)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserDEFAULT_ || _la == SQLiteParserNULL_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- case SQLiteParserCASCADE_:
- {
- p.SetState(621)
- p.Match(SQLiteParserCASCADE_)
- }
- case SQLiteParserRESTRICT_:
- {
- p.SetState(622)
- p.Match(SQLiteParserRESTRICT_)
- }
- case SQLiteParserNO_:
- {
- p.SetState(623)
- p.Match(SQLiteParserNO_)
- }
- {
- p.SetState(624)
- p.Match(SQLiteParserACTION_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- case SQLiteParserMATCH_:
- {
- p.SetState(627)
- p.Match(SQLiteParserMATCH_)
- }
- {
- p.SetState(628)
- p.Name()
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- p.SetState(633)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(642)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 70, p.GetParserRuleContext()) == 1 {
- p.SetState(635)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNOT_ {
- {
- p.SetState(634)
- p.Match(SQLiteParserNOT_)
- }
- }
- {
- p.SetState(637)
- p.Match(SQLiteParserDEFERRABLE_)
- }
- p.SetState(640)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserINITIALLY_ {
- {
- p.SetState(638)
- p.Match(SQLiteParserINITIALLY_)
- }
- {
- p.SetState(639)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserDEFERRED_ || _la == SQLiteParserIMMEDIATE_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- }
- return localctx
- }
- // IConflict_clauseContext is an interface to support dynamic dispatch.
- type IConflict_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ON_() antlr.TerminalNode
- CONFLICT_() antlr.TerminalNode
- ROLLBACK_() antlr.TerminalNode
- ABORT_() antlr.TerminalNode
- FAIL_() antlr.TerminalNode
- IGNORE_() antlr.TerminalNode
- REPLACE_() antlr.TerminalNode
- // IsConflict_clauseContext differentiates from other interfaces.
- IsConflict_clauseContext()
- }
- type Conflict_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyConflict_clauseContext() *Conflict_clauseContext {
- var p = new(Conflict_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_conflict_clause
- return p
- }
- func (*Conflict_clauseContext) IsConflict_clauseContext() {}
- func NewConflict_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Conflict_clauseContext {
- var p = new(Conflict_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_conflict_clause
- return p
- }
- func (s *Conflict_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Conflict_clauseContext) ON_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserON_, 0)
- }
- func (s *Conflict_clauseContext) CONFLICT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCONFLICT_, 0)
- }
- func (s *Conflict_clauseContext) ROLLBACK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROLLBACK_, 0)
- }
- func (s *Conflict_clauseContext) ABORT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserABORT_, 0)
- }
- func (s *Conflict_clauseContext) FAIL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFAIL_, 0)
- }
- func (s *Conflict_clauseContext) IGNORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIGNORE_, 0)
- }
- func (s *Conflict_clauseContext) REPLACE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREPLACE_, 0)
- }
- func (s *Conflict_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Conflict_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Conflict_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterConflict_clause(s)
- }
- }
- func (s *Conflict_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitConflict_clause(s)
- }
- }
- func (p *SQLiteParser) Conflict_clause() (localctx IConflict_clauseContext) {
- this := p
- _ = this
- localctx = NewConflict_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 42, SQLiteParserRULE_conflict_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(644)
- p.Match(SQLiteParserON_)
- }
- {
- p.SetState(645)
- p.Match(SQLiteParserCONFLICT_)
- }
- {
- p.SetState(646)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserABORT_ || ((int64((_la-74)) & ^0x3f) == 0 && ((int64(1)<<(_la-74))&19140298416325121) != 0)) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- return localctx
- }
- // ICreate_trigger_stmtContext is an interface to support dynamic dispatch.
- type ICreate_trigger_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- CREATE_() antlr.TerminalNode
- TRIGGER_() antlr.TerminalNode
- Trigger_name() ITrigger_nameContext
- ON_() antlr.TerminalNode
- Table_name() ITable_nameContext
- BEGIN_() antlr.TerminalNode
- END_() antlr.TerminalNode
- DELETE_() antlr.TerminalNode
- INSERT_() antlr.TerminalNode
- UPDATE_() antlr.TerminalNode
- IF_() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- EXISTS_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- BEFORE_() antlr.TerminalNode
- AFTER_() antlr.TerminalNode
- INSTEAD_() antlr.TerminalNode
- AllOF_() []antlr.TerminalNode
- OF_(i int) antlr.TerminalNode
- FOR_() antlr.TerminalNode
- EACH_() antlr.TerminalNode
- ROW_() antlr.TerminalNode
- WHEN_() antlr.TerminalNode
- Expr() IExprContext
- AllSCOL() []antlr.TerminalNode
- SCOL(i int) antlr.TerminalNode
- TEMP_() antlr.TerminalNode
- TEMPORARY_() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- AllUpdate_stmt() []IUpdate_stmtContext
- Update_stmt(i int) IUpdate_stmtContext
- AllInsert_stmt() []IInsert_stmtContext
- Insert_stmt(i int) IInsert_stmtContext
- AllDelete_stmt() []IDelete_stmtContext
- Delete_stmt(i int) IDelete_stmtContext
- AllSelect_stmt() []ISelect_stmtContext
- Select_stmt(i int) ISelect_stmtContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsCreate_trigger_stmtContext differentiates from other interfaces.
- IsCreate_trigger_stmtContext()
- }
- type Create_trigger_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCreate_trigger_stmtContext() *Create_trigger_stmtContext {
- var p = new(Create_trigger_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_create_trigger_stmt
- return p
- }
- func (*Create_trigger_stmtContext) IsCreate_trigger_stmtContext() {}
- func NewCreate_trigger_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Create_trigger_stmtContext {
- var p = new(Create_trigger_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_create_trigger_stmt
- return p
- }
- func (s *Create_trigger_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Create_trigger_stmtContext) CREATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCREATE_, 0)
- }
- func (s *Create_trigger_stmtContext) TRIGGER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRIGGER_, 0)
- }
- func (s *Create_trigger_stmtContext) Trigger_name() ITrigger_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITrigger_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITrigger_nameContext)
- }
- func (s *Create_trigger_stmtContext) ON_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserON_, 0)
- }
- func (s *Create_trigger_stmtContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Create_trigger_stmtContext) BEGIN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBEGIN_, 0)
- }
- func (s *Create_trigger_stmtContext) END_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEND_, 0)
- }
- func (s *Create_trigger_stmtContext) DELETE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDELETE_, 0)
- }
- func (s *Create_trigger_stmtContext) INSERT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINSERT_, 0)
- }
- func (s *Create_trigger_stmtContext) UPDATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUPDATE_, 0)
- }
- func (s *Create_trigger_stmtContext) IF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIF_, 0)
- }
- func (s *Create_trigger_stmtContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Create_trigger_stmtContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *Create_trigger_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Create_trigger_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Create_trigger_stmtContext) BEFORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBEFORE_, 0)
- }
- func (s *Create_trigger_stmtContext) AFTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAFTER_, 0)
- }
- func (s *Create_trigger_stmtContext) INSTEAD_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINSTEAD_, 0)
- }
- func (s *Create_trigger_stmtContext) AllOF_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserOF_)
- }
- func (s *Create_trigger_stmtContext) OF_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserOF_, i)
- }
- func (s *Create_trigger_stmtContext) FOR_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFOR_, 0)
- }
- func (s *Create_trigger_stmtContext) EACH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEACH_, 0)
- }
- func (s *Create_trigger_stmtContext) ROW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_, 0)
- }
- func (s *Create_trigger_stmtContext) WHEN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHEN_, 0)
- }
- func (s *Create_trigger_stmtContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Create_trigger_stmtContext) AllSCOL() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserSCOL)
- }
- func (s *Create_trigger_stmtContext) SCOL(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserSCOL, i)
- }
- func (s *Create_trigger_stmtContext) TEMP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMP_, 0)
- }
- func (s *Create_trigger_stmtContext) TEMPORARY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMPORARY_, 0)
- }
- func (s *Create_trigger_stmtContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_trigger_stmtContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Create_trigger_stmtContext) AllUpdate_stmt() []IUpdate_stmtContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IUpdate_stmtContext); ok {
- len++
- }
- }
- tst := make([]IUpdate_stmtContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IUpdate_stmtContext); ok {
- tst[i] = t.(IUpdate_stmtContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_trigger_stmtContext) Update_stmt(i int) IUpdate_stmtContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IUpdate_stmtContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IUpdate_stmtContext)
- }
- func (s *Create_trigger_stmtContext) AllInsert_stmt() []IInsert_stmtContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IInsert_stmtContext); ok {
- len++
- }
- }
- tst := make([]IInsert_stmtContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IInsert_stmtContext); ok {
- tst[i] = t.(IInsert_stmtContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_trigger_stmtContext) Insert_stmt(i int) IInsert_stmtContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IInsert_stmtContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IInsert_stmtContext)
- }
- func (s *Create_trigger_stmtContext) AllDelete_stmt() []IDelete_stmtContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IDelete_stmtContext); ok {
- len++
- }
- }
- tst := make([]IDelete_stmtContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IDelete_stmtContext); ok {
- tst[i] = t.(IDelete_stmtContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_trigger_stmtContext) Delete_stmt(i int) IDelete_stmtContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IDelete_stmtContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IDelete_stmtContext)
- }
- func (s *Create_trigger_stmtContext) AllSelect_stmt() []ISelect_stmtContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- len++
- }
- }
- tst := make([]ISelect_stmtContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ISelect_stmtContext); ok {
- tst[i] = t.(ISelect_stmtContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_trigger_stmtContext) Select_stmt(i int) ISelect_stmtContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Create_trigger_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Create_trigger_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Create_trigger_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Create_trigger_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Create_trigger_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCreate_trigger_stmt(s)
- }
- }
- func (s *Create_trigger_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCreate_trigger_stmt(s)
- }
- }
- func (p *SQLiteParser) Create_trigger_stmt() (localctx ICreate_trigger_stmtContext) {
- this := p
- _ = this
- localctx = NewCreate_trigger_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 44, SQLiteParserRULE_create_trigger_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(648)
- p.Match(SQLiteParserCREATE_)
- }
- p.SetState(650)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_ {
- {
- p.SetState(649)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(652)
- p.Match(SQLiteParserTRIGGER_)
- }
- p.SetState(656)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 72, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(653)
- p.Match(SQLiteParserIF_)
- }
- {
- p.SetState(654)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(655)
- p.Match(SQLiteParserEXISTS_)
- }
- }
- p.SetState(661)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 73, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(658)
- p.Schema_name()
- }
- {
- p.SetState(659)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(663)
- p.Trigger_name()
- }
- p.SetState(668)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserBEFORE_:
- {
- p.SetState(664)
- p.Match(SQLiteParserBEFORE_)
- }
- case SQLiteParserAFTER_:
- {
- p.SetState(665)
- p.Match(SQLiteParserAFTER_)
- }
- case SQLiteParserINSTEAD_:
- {
- p.SetState(666)
- p.Match(SQLiteParserINSTEAD_)
- }
- {
- p.SetState(667)
- p.Match(SQLiteParserOF_)
- }
- case SQLiteParserDELETE_, SQLiteParserINSERT_, SQLiteParserUPDATE_:
- default:
- }
- p.SetState(684)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserDELETE_:
- {
- p.SetState(670)
- p.Match(SQLiteParserDELETE_)
- }
- case SQLiteParserINSERT_:
- {
- p.SetState(671)
- p.Match(SQLiteParserINSERT_)
- }
- case SQLiteParserUPDATE_:
- {
- p.SetState(672)
- p.Match(SQLiteParserUPDATE_)
- }
- p.SetState(682)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOF_ {
- {
- p.SetState(673)
- p.Match(SQLiteParserOF_)
- }
- {
- p.SetState(674)
- p.Column_name()
- }
- p.SetState(679)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(675)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(676)
- p.Column_name()
- }
- p.SetState(681)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- {
- p.SetState(686)
- p.Match(SQLiteParserON_)
- }
- {
- p.SetState(687)
- p.Table_name()
- }
- p.SetState(691)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserFOR_ {
- {
- p.SetState(688)
- p.Match(SQLiteParserFOR_)
- }
- {
- p.SetState(689)
- p.Match(SQLiteParserEACH_)
- }
- {
- p.SetState(690)
- p.Match(SQLiteParserROW_)
- }
- }
- p.SetState(695)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHEN_ {
- {
- p.SetState(693)
- p.Match(SQLiteParserWHEN_)
- }
- {
- p.SetState(694)
- p.expr(0)
- }
- }
- {
- p.SetState(697)
- p.Match(SQLiteParserBEGIN_)
- }
- p.SetState(706)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for ok := true; ok; ok = _la == SQLiteParserDEFAULT_ || _la == SQLiteParserDELETE_ || ((int64((_la-90)) & ^0x3f) == 0 && ((int64(1)<<(_la-90))&4773820020239106049) != 0) {
- p.SetState(702)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 80, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(698)
- p.Update_stmt()
- }
- case 2:
- {
- p.SetState(699)
- p.Insert_stmt()
- }
- case 3:
- {
- p.SetState(700)
- p.Delete_stmt()
- }
- case 4:
- {
- p.SetState(701)
- p.Select_stmt()
- }
- }
- {
- p.SetState(704)
- p.Match(SQLiteParserSCOL)
- }
- p.SetState(708)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(710)
- p.Match(SQLiteParserEND_)
- }
- return localctx
- }
- // ICreate_view_stmtContext is an interface to support dynamic dispatch.
- type ICreate_view_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- CREATE_() antlr.TerminalNode
- VIEW_() antlr.TerminalNode
- View_name() IView_nameContext
- AS_() antlr.TerminalNode
- Select_stmt() ISelect_stmtContext
- IF_() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- EXISTS_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- CLOSE_PAR() antlr.TerminalNode
- TEMP_() antlr.TerminalNode
- TEMPORARY_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsCreate_view_stmtContext differentiates from other interfaces.
- IsCreate_view_stmtContext()
- }
- type Create_view_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCreate_view_stmtContext() *Create_view_stmtContext {
- var p = new(Create_view_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_create_view_stmt
- return p
- }
- func (*Create_view_stmtContext) IsCreate_view_stmtContext() {}
- func NewCreate_view_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Create_view_stmtContext {
- var p = new(Create_view_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_create_view_stmt
- return p
- }
- func (s *Create_view_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Create_view_stmtContext) CREATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCREATE_, 0)
- }
- func (s *Create_view_stmtContext) VIEW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVIEW_, 0)
- }
- func (s *Create_view_stmtContext) View_name() IView_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IView_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IView_nameContext)
- }
- func (s *Create_view_stmtContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Create_view_stmtContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Create_view_stmtContext) IF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIF_, 0)
- }
- func (s *Create_view_stmtContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Create_view_stmtContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *Create_view_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Create_view_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Create_view_stmtContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Create_view_stmtContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_view_stmtContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Create_view_stmtContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Create_view_stmtContext) TEMP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMP_, 0)
- }
- func (s *Create_view_stmtContext) TEMPORARY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMPORARY_, 0)
- }
- func (s *Create_view_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Create_view_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Create_view_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Create_view_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Create_view_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCreate_view_stmt(s)
- }
- }
- func (s *Create_view_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCreate_view_stmt(s)
- }
- }
- func (p *SQLiteParser) Create_view_stmt() (localctx ICreate_view_stmtContext) {
- this := p
- _ = this
- localctx = NewCreate_view_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 46, SQLiteParserRULE_create_view_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(712)
- p.Match(SQLiteParserCREATE_)
- }
- p.SetState(714)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_ {
- {
- p.SetState(713)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(716)
- p.Match(SQLiteParserVIEW_)
- }
- p.SetState(720)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 83, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(717)
- p.Match(SQLiteParserIF_)
- }
- {
- p.SetState(718)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(719)
- p.Match(SQLiteParserEXISTS_)
- }
- }
- p.SetState(725)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 84, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(722)
- p.Schema_name()
- }
- {
- p.SetState(723)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(727)
- p.View_name()
- }
- p.SetState(739)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOPEN_PAR {
- {
- p.SetState(728)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(729)
- p.Column_name()
- }
- p.SetState(734)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(730)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(731)
- p.Column_name()
- }
- p.SetState(736)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(737)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- {
- p.SetState(741)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(742)
- p.Select_stmt()
- }
- return localctx
- }
- // ICreate_virtual_table_stmtContext is an interface to support dynamic dispatch.
- type ICreate_virtual_table_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- CREATE_() antlr.TerminalNode
- VIRTUAL_() antlr.TerminalNode
- TABLE_() antlr.TerminalNode
- Table_name() ITable_nameContext
- USING_() antlr.TerminalNode
- Module_name() IModule_nameContext
- IF_() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- EXISTS_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- AllModule_argument() []IModule_argumentContext
- Module_argument(i int) IModule_argumentContext
- CLOSE_PAR() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsCreate_virtual_table_stmtContext differentiates from other interfaces.
- IsCreate_virtual_table_stmtContext()
- }
- type Create_virtual_table_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCreate_virtual_table_stmtContext() *Create_virtual_table_stmtContext {
- var p = new(Create_virtual_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_create_virtual_table_stmt
- return p
- }
- func (*Create_virtual_table_stmtContext) IsCreate_virtual_table_stmtContext() {}
- func NewCreate_virtual_table_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Create_virtual_table_stmtContext {
- var p = new(Create_virtual_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_create_virtual_table_stmt
- return p
- }
- func (s *Create_virtual_table_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Create_virtual_table_stmtContext) CREATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCREATE_, 0)
- }
- func (s *Create_virtual_table_stmtContext) VIRTUAL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVIRTUAL_, 0)
- }
- func (s *Create_virtual_table_stmtContext) TABLE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTABLE_, 0)
- }
- func (s *Create_virtual_table_stmtContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Create_virtual_table_stmtContext) USING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUSING_, 0)
- }
- func (s *Create_virtual_table_stmtContext) Module_name() IModule_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IModule_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IModule_nameContext)
- }
- func (s *Create_virtual_table_stmtContext) IF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIF_, 0)
- }
- func (s *Create_virtual_table_stmtContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Create_virtual_table_stmtContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *Create_virtual_table_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Create_virtual_table_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Create_virtual_table_stmtContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Create_virtual_table_stmtContext) AllModule_argument() []IModule_argumentContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IModule_argumentContext); ok {
- len++
- }
- }
- tst := make([]IModule_argumentContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IModule_argumentContext); ok {
- tst[i] = t.(IModule_argumentContext)
- i++
- }
- }
- return tst
- }
- func (s *Create_virtual_table_stmtContext) Module_argument(i int) IModule_argumentContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IModule_argumentContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IModule_argumentContext)
- }
- func (s *Create_virtual_table_stmtContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Create_virtual_table_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Create_virtual_table_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Create_virtual_table_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Create_virtual_table_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Create_virtual_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCreate_virtual_table_stmt(s)
- }
- }
- func (s *Create_virtual_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCreate_virtual_table_stmt(s)
- }
- }
- func (p *SQLiteParser) Create_virtual_table_stmt() (localctx ICreate_virtual_table_stmtContext) {
- this := p
- _ = this
- localctx = NewCreate_virtual_table_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 48, SQLiteParserRULE_create_virtual_table_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(744)
- p.Match(SQLiteParserCREATE_)
- }
- {
- p.SetState(745)
- p.Match(SQLiteParserVIRTUAL_)
- }
- {
- p.SetState(746)
- p.Match(SQLiteParserTABLE_)
- }
- p.SetState(750)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 87, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(747)
- p.Match(SQLiteParserIF_)
- }
- {
- p.SetState(748)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(749)
- p.Match(SQLiteParserEXISTS_)
- }
- }
- p.SetState(755)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 88, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(752)
- p.Schema_name()
- }
- {
- p.SetState(753)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(757)
- p.Table_name()
- }
- {
- p.SetState(758)
- p.Match(SQLiteParserUSING_)
- }
- {
- p.SetState(759)
- p.Module_name()
- }
- p.SetState(771)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOPEN_PAR {
- {
- p.SetState(760)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(761)
- p.Module_argument()
- }
- p.SetState(766)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(762)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(763)
- p.Module_argument()
- }
- p.SetState(768)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(769)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- return localctx
- }
- // IWith_clauseContext is an interface to support dynamic dispatch.
- type IWith_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- WITH_() antlr.TerminalNode
- AllCte_table_name() []ICte_table_nameContext
- Cte_table_name(i int) ICte_table_nameContext
- AllAS_() []antlr.TerminalNode
- AS_(i int) antlr.TerminalNode
- AllOPEN_PAR() []antlr.TerminalNode
- OPEN_PAR(i int) antlr.TerminalNode
- AllSelect_stmt() []ISelect_stmtContext
- Select_stmt(i int) ISelect_stmtContext
- AllCLOSE_PAR() []antlr.TerminalNode
- CLOSE_PAR(i int) antlr.TerminalNode
- RECURSIVE_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsWith_clauseContext differentiates from other interfaces.
- IsWith_clauseContext()
- }
- type With_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyWith_clauseContext() *With_clauseContext {
- var p = new(With_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_with_clause
- return p
- }
- func (*With_clauseContext) IsWith_clauseContext() {}
- func NewWith_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *With_clauseContext {
- var p = new(With_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_with_clause
- return p
- }
- func (s *With_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *With_clauseContext) WITH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWITH_, 0)
- }
- func (s *With_clauseContext) AllCte_table_name() []ICte_table_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ICte_table_nameContext); ok {
- len++
- }
- }
- tst := make([]ICte_table_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ICte_table_nameContext); ok {
- tst[i] = t.(ICte_table_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *With_clauseContext) Cte_table_name(i int) ICte_table_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICte_table_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICte_table_nameContext)
- }
- func (s *With_clauseContext) AllAS_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserAS_)
- }
- func (s *With_clauseContext) AS_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, i)
- }
- func (s *With_clauseContext) AllOPEN_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserOPEN_PAR)
- }
- func (s *With_clauseContext) OPEN_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, i)
- }
- func (s *With_clauseContext) AllSelect_stmt() []ISelect_stmtContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- len++
- }
- }
- tst := make([]ISelect_stmtContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ISelect_stmtContext); ok {
- tst[i] = t.(ISelect_stmtContext)
- i++
- }
- }
- return tst
- }
- func (s *With_clauseContext) Select_stmt(i int) ISelect_stmtContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *With_clauseContext) AllCLOSE_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCLOSE_PAR)
- }
- func (s *With_clauseContext) CLOSE_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, i)
- }
- func (s *With_clauseContext) RECURSIVE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRECURSIVE_, 0)
- }
- func (s *With_clauseContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *With_clauseContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *With_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *With_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *With_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterWith_clause(s)
- }
- }
- func (s *With_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitWith_clause(s)
- }
- }
- func (p *SQLiteParser) With_clause() (localctx IWith_clauseContext) {
- this := p
- _ = this
- localctx = NewWith_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 50, SQLiteParserRULE_with_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(773)
- p.Match(SQLiteParserWITH_)
- }
- p.SetState(775)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 91, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(774)
- p.Match(SQLiteParserRECURSIVE_)
- }
- }
- {
- p.SetState(777)
- p.Cte_table_name()
- }
- {
- p.SetState(778)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(779)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(780)
- p.Select_stmt()
- }
- {
- p.SetState(781)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(791)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(782)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(783)
- p.Cte_table_name()
- }
- {
- p.SetState(784)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(785)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(786)
- p.Select_stmt()
- }
- {
- p.SetState(787)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(793)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- return localctx
- }
- // ICte_table_nameContext is an interface to support dynamic dispatch.
- type ICte_table_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Table_name() ITable_nameContext
- OPEN_PAR() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- CLOSE_PAR() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsCte_table_nameContext differentiates from other interfaces.
- IsCte_table_nameContext()
- }
- type Cte_table_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCte_table_nameContext() *Cte_table_nameContext {
- var p = new(Cte_table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_cte_table_name
- return p
- }
- func (*Cte_table_nameContext) IsCte_table_nameContext() {}
- func NewCte_table_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Cte_table_nameContext {
- var p = new(Cte_table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_cte_table_name
- return p
- }
- func (s *Cte_table_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Cte_table_nameContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Cte_table_nameContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Cte_table_nameContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Cte_table_nameContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Cte_table_nameContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Cte_table_nameContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Cte_table_nameContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Cte_table_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Cte_table_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Cte_table_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCte_table_name(s)
- }
- }
- func (s *Cte_table_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCte_table_name(s)
- }
- }
- func (p *SQLiteParser) Cte_table_name() (localctx ICte_table_nameContext) {
- this := p
- _ = this
- localctx = NewCte_table_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 52, SQLiteParserRULE_cte_table_name)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(794)
- p.Table_name()
- }
- p.SetState(806)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOPEN_PAR {
- {
- p.SetState(795)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(796)
- p.Column_name()
- }
- p.SetState(801)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(797)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(798)
- p.Column_name()
- }
- p.SetState(803)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(804)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- return localctx
- }
- // IRecursive_cteContext is an interface to support dynamic dispatch.
- type IRecursive_cteContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Cte_table_name() ICte_table_nameContext
- AS_() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- Initial_select() IInitial_selectContext
- UNION_() antlr.TerminalNode
- Recursive__select() IRecursive__selectContext
- CLOSE_PAR() antlr.TerminalNode
- ALL_() antlr.TerminalNode
- // IsRecursive_cteContext differentiates from other interfaces.
- IsRecursive_cteContext()
- }
- type Recursive_cteContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyRecursive_cteContext() *Recursive_cteContext {
- var p = new(Recursive_cteContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_recursive_cte
- return p
- }
- func (*Recursive_cteContext) IsRecursive_cteContext() {}
- func NewRecursive_cteContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Recursive_cteContext {
- var p = new(Recursive_cteContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_recursive_cte
- return p
- }
- func (s *Recursive_cteContext) GetParser() antlr.Parser { return s.parser }
- func (s *Recursive_cteContext) Cte_table_name() ICte_table_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICte_table_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICte_table_nameContext)
- }
- func (s *Recursive_cteContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Recursive_cteContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Recursive_cteContext) Initial_select() IInitial_selectContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IInitial_selectContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IInitial_selectContext)
- }
- func (s *Recursive_cteContext) UNION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNION_, 0)
- }
- func (s *Recursive_cteContext) Recursive__select() IRecursive__selectContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IRecursive__selectContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IRecursive__selectContext)
- }
- func (s *Recursive_cteContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Recursive_cteContext) ALL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALL_, 0)
- }
- func (s *Recursive_cteContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Recursive_cteContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Recursive_cteContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterRecursive_cte(s)
- }
- }
- func (s *Recursive_cteContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitRecursive_cte(s)
- }
- }
- func (p *SQLiteParser) Recursive_cte() (localctx IRecursive_cteContext) {
- this := p
- _ = this
- localctx = NewRecursive_cteContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 54, SQLiteParserRULE_recursive_cte)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(808)
- p.Cte_table_name()
- }
- {
- p.SetState(809)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(810)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(811)
- p.Initial_select()
- }
- {
- p.SetState(812)
- p.Match(SQLiteParserUNION_)
- }
- p.SetState(814)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserALL_ {
- {
- p.SetState(813)
- p.Match(SQLiteParserALL_)
- }
- }
- {
- p.SetState(816)
- p.Recursive__select()
- }
- {
- p.SetState(817)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- return localctx
- }
- // ICommon_table_expressionContext is an interface to support dynamic dispatch.
- type ICommon_table_expressionContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Table_name() ITable_nameContext
- AS_() antlr.TerminalNode
- AllOPEN_PAR() []antlr.TerminalNode
- OPEN_PAR(i int) antlr.TerminalNode
- Select_stmt() ISelect_stmtContext
- AllCLOSE_PAR() []antlr.TerminalNode
- CLOSE_PAR(i int) antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsCommon_table_expressionContext differentiates from other interfaces.
- IsCommon_table_expressionContext()
- }
- type Common_table_expressionContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCommon_table_expressionContext() *Common_table_expressionContext {
- var p = new(Common_table_expressionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_common_table_expression
- return p
- }
- func (*Common_table_expressionContext) IsCommon_table_expressionContext() {}
- func NewCommon_table_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Common_table_expressionContext {
- var p = new(Common_table_expressionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_common_table_expression
- return p
- }
- func (s *Common_table_expressionContext) GetParser() antlr.Parser { return s.parser }
- func (s *Common_table_expressionContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Common_table_expressionContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Common_table_expressionContext) AllOPEN_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserOPEN_PAR)
- }
- func (s *Common_table_expressionContext) OPEN_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, i)
- }
- func (s *Common_table_expressionContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Common_table_expressionContext) AllCLOSE_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCLOSE_PAR)
- }
- func (s *Common_table_expressionContext) CLOSE_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, i)
- }
- func (s *Common_table_expressionContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Common_table_expressionContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Common_table_expressionContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Common_table_expressionContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Common_table_expressionContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Common_table_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Common_table_expressionContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCommon_table_expression(s)
- }
- }
- func (s *Common_table_expressionContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCommon_table_expression(s)
- }
- }
- func (p *SQLiteParser) Common_table_expression() (localctx ICommon_table_expressionContext) {
- this := p
- _ = this
- localctx = NewCommon_table_expressionContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 56, SQLiteParserRULE_common_table_expression)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(819)
- p.Table_name()
- }
- p.SetState(831)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOPEN_PAR {
- {
- p.SetState(820)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(821)
- p.Column_name()
- }
- p.SetState(826)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(822)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(823)
- p.Column_name()
- }
- p.SetState(828)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(829)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- {
- p.SetState(833)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(834)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(835)
- p.Select_stmt()
- }
- {
- p.SetState(836)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- return localctx
- }
- // IReturning_clauseContext is an interface to support dynamic dispatch.
- type IReturning_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- RETURNING_() antlr.TerminalNode
- AllSTAR() []antlr.TerminalNode
- STAR(i int) antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- AllColumn_alias() []IColumn_aliasContext
- Column_alias(i int) IColumn_aliasContext
- AllAS_() []antlr.TerminalNode
- AS_(i int) antlr.TerminalNode
- // IsReturning_clauseContext differentiates from other interfaces.
- IsReturning_clauseContext()
- }
- type Returning_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyReturning_clauseContext() *Returning_clauseContext {
- var p = new(Returning_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_returning_clause
- return p
- }
- func (*Returning_clauseContext) IsReturning_clauseContext() {}
- func NewReturning_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Returning_clauseContext {
- var p = new(Returning_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_returning_clause
- return p
- }
- func (s *Returning_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Returning_clauseContext) RETURNING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRETURNING_, 0)
- }
- func (s *Returning_clauseContext) AllSTAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserSTAR)
- }
- func (s *Returning_clauseContext) STAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTAR, i)
- }
- func (s *Returning_clauseContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Returning_clauseContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Returning_clauseContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Returning_clauseContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Returning_clauseContext) AllColumn_alias() []IColumn_aliasContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_aliasContext); ok {
- len++
- }
- }
- tst := make([]IColumn_aliasContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_aliasContext); ok {
- tst[i] = t.(IColumn_aliasContext)
- i++
- }
- }
- return tst
- }
- func (s *Returning_clauseContext) Column_alias(i int) IColumn_aliasContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_aliasContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_aliasContext)
- }
- func (s *Returning_clauseContext) AllAS_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserAS_)
- }
- func (s *Returning_clauseContext) AS_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, i)
- }
- func (s *Returning_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Returning_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Returning_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterReturning_clause(s)
- }
- }
- func (s *Returning_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitReturning_clause(s)
- }
- }
- func (p *SQLiteParser) Returning_clause() (localctx IReturning_clauseContext) {
- this := p
- _ = this
- localctx = NewReturning_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 58, SQLiteParserRULE_returning_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(838)
- p.Match(SQLiteParserRETURNING_)
- }
- p.SetState(847)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserSTAR:
- {
- p.SetState(839)
- p.Match(SQLiteParserSTAR)
- }
- case SQLiteParserOPEN_PAR, SQLiteParserPLUS, SQLiteParserMINUS, SQLiteParserTILDE, SQLiteParserABORT_, SQLiteParserACTION_, SQLiteParserADD_, SQLiteParserAFTER_, SQLiteParserALL_, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserAND_, SQLiteParserAS_, SQLiteParserASC_, SQLiteParserATTACH_, SQLiteParserAUTOINCREMENT_, SQLiteParserBEFORE_, SQLiteParserBEGIN_, SQLiteParserBETWEEN_, SQLiteParserBY_, SQLiteParserCASCADE_, SQLiteParserCASE_, SQLiteParserCAST_, SQLiteParserCHECK_, SQLiteParserCOLLATE_, SQLiteParserCOLUMN_, SQLiteParserCOMMIT_, SQLiteParserCONFLICT_, SQLiteParserCONSTRAINT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserCURRENT_DATE_, SQLiteParserCURRENT_TIME_, SQLiteParserCURRENT_TIMESTAMP_, SQLiteParserDATABASE_, SQLiteParserDEFAULT_, SQLiteParserDEFERRABLE_, SQLiteParserDEFERRED_, SQLiteParserDELETE_, SQLiteParserDESC_, SQLiteParserDETACH_, SQLiteParserDISTINCT_, SQLiteParserDROP_, SQLiteParserEACH_, SQLiteParserELSE_, SQLiteParserEND_, SQLiteParserESCAPE_, SQLiteParserEXCEPT_, SQLiteParserEXCLUSIVE_, SQLiteParserEXISTS_, SQLiteParserEXPLAIN_, SQLiteParserFAIL_, SQLiteParserFOR_, SQLiteParserFOREIGN_, SQLiteParserFROM_, SQLiteParserFULL_, SQLiteParserGLOB_, SQLiteParserGROUP_, SQLiteParserHAVING_, SQLiteParserIF_, SQLiteParserIGNORE_, SQLiteParserIMMEDIATE_, SQLiteParserIN_, SQLiteParserINDEX_, SQLiteParserINDEXED_, SQLiteParserINITIALLY_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINSTEAD_, SQLiteParserINTERSECT_, SQLiteParserINTO_, SQLiteParserIS_, SQLiteParserISNULL_, SQLiteParserJOIN_, SQLiteParserKEY_, SQLiteParserLEFT_, SQLiteParserLIKE_, SQLiteParserLIMIT_, SQLiteParserMATCH_, SQLiteParserNATURAL_, SQLiteParserNO_, SQLiteParserNOT_, SQLiteParserNOTNULL_, SQLiteParserNULL_, SQLiteParserOF_, SQLiteParserOFFSET_, SQLiteParserON_, SQLiteParserOR_, SQLiteParserORDER_, SQLiteParserOUTER_, SQLiteParserPLAN_, SQLiteParserPRAGMA_, SQLiteParserPRIMARY_, SQLiteParserQUERY_, SQLiteParserRAISE_, SQLiteParserRECURSIVE_, SQLiteParserREFERENCES_, SQLiteParserREGEXP_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserRENAME_, SQLiteParserREPLACE_, SQLiteParserRESTRICT_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserROW_, SQLiteParserROWS_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserSTRICT_, SQLiteParserTABLE_, SQLiteParserTEMP_, SQLiteParserTEMPORARY_, SQLiteParserTHEN_, SQLiteParserTO_, SQLiteParserTRANSACTION_, SQLiteParserTRIGGER_, SQLiteParserUNION_, SQLiteParserUNIQUE_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserVIEW_, SQLiteParserVIRTUAL_, SQLiteParserWHEN_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWITHOUT_, SQLiteParserFIRST_VALUE_, SQLiteParserOVER_, SQLiteParserPARTITION_, SQLiteParserRANGE_, SQLiteParserPRECEDING_, SQLiteParserUNBOUNDED_, SQLiteParserCURRENT_, SQLiteParserFOLLOWING_, SQLiteParserCUME_DIST_, SQLiteParserDENSE_RANK_, SQLiteParserLAG_, SQLiteParserLAST_VALUE_, SQLiteParserLEAD_, SQLiteParserNTH_VALUE_, SQLiteParserNTILE_, SQLiteParserPERCENT_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_, SQLiteParserGENERATED_, SQLiteParserALWAYS_, SQLiteParserSTORED_, SQLiteParserTRUE_, SQLiteParserFALSE_, SQLiteParserWINDOW_, SQLiteParserNULLS_, SQLiteParserFIRST_, SQLiteParserLAST_, SQLiteParserFILTER_, SQLiteParserGROUPS_, SQLiteParserEXCLUDE_, SQLiteParserIDENTIFIER, SQLiteParserNUMERIC_LITERAL, SQLiteParserNUMBERED_BIND_PARAMETER, SQLiteParserNAMED_BIND_PARAMETER, SQLiteParserSTRING_LITERAL, SQLiteParserBLOB_LITERAL:
- {
- p.SetState(840)
- p.expr(0)
- }
- p.SetState(845)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ || _la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL {
- p.SetState(842)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(841)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(844)
- p.Column_alias()
- }
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- p.SetState(862)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(849)
- p.Match(SQLiteParserCOMMA)
- }
- p.SetState(858)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserSTAR:
- {
- p.SetState(850)
- p.Match(SQLiteParserSTAR)
- }
- case SQLiteParserOPEN_PAR, SQLiteParserPLUS, SQLiteParserMINUS, SQLiteParserTILDE, SQLiteParserABORT_, SQLiteParserACTION_, SQLiteParserADD_, SQLiteParserAFTER_, SQLiteParserALL_, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserAND_, SQLiteParserAS_, SQLiteParserASC_, SQLiteParserATTACH_, SQLiteParserAUTOINCREMENT_, SQLiteParserBEFORE_, SQLiteParserBEGIN_, SQLiteParserBETWEEN_, SQLiteParserBY_, SQLiteParserCASCADE_, SQLiteParserCASE_, SQLiteParserCAST_, SQLiteParserCHECK_, SQLiteParserCOLLATE_, SQLiteParserCOLUMN_, SQLiteParserCOMMIT_, SQLiteParserCONFLICT_, SQLiteParserCONSTRAINT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserCURRENT_DATE_, SQLiteParserCURRENT_TIME_, SQLiteParserCURRENT_TIMESTAMP_, SQLiteParserDATABASE_, SQLiteParserDEFAULT_, SQLiteParserDEFERRABLE_, SQLiteParserDEFERRED_, SQLiteParserDELETE_, SQLiteParserDESC_, SQLiteParserDETACH_, SQLiteParserDISTINCT_, SQLiteParserDROP_, SQLiteParserEACH_, SQLiteParserELSE_, SQLiteParserEND_, SQLiteParserESCAPE_, SQLiteParserEXCEPT_, SQLiteParserEXCLUSIVE_, SQLiteParserEXISTS_, SQLiteParserEXPLAIN_, SQLiteParserFAIL_, SQLiteParserFOR_, SQLiteParserFOREIGN_, SQLiteParserFROM_, SQLiteParserFULL_, SQLiteParserGLOB_, SQLiteParserGROUP_, SQLiteParserHAVING_, SQLiteParserIF_, SQLiteParserIGNORE_, SQLiteParserIMMEDIATE_, SQLiteParserIN_, SQLiteParserINDEX_, SQLiteParserINDEXED_, SQLiteParserINITIALLY_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINSTEAD_, SQLiteParserINTERSECT_, SQLiteParserINTO_, SQLiteParserIS_, SQLiteParserISNULL_, SQLiteParserJOIN_, SQLiteParserKEY_, SQLiteParserLEFT_, SQLiteParserLIKE_, SQLiteParserLIMIT_, SQLiteParserMATCH_, SQLiteParserNATURAL_, SQLiteParserNO_, SQLiteParserNOT_, SQLiteParserNOTNULL_, SQLiteParserNULL_, SQLiteParserOF_, SQLiteParserOFFSET_, SQLiteParserON_, SQLiteParserOR_, SQLiteParserORDER_, SQLiteParserOUTER_, SQLiteParserPLAN_, SQLiteParserPRAGMA_, SQLiteParserPRIMARY_, SQLiteParserQUERY_, SQLiteParserRAISE_, SQLiteParserRECURSIVE_, SQLiteParserREFERENCES_, SQLiteParserREGEXP_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserRENAME_, SQLiteParserREPLACE_, SQLiteParserRESTRICT_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserROW_, SQLiteParserROWS_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserSTRICT_, SQLiteParserTABLE_, SQLiteParserTEMP_, SQLiteParserTEMPORARY_, SQLiteParserTHEN_, SQLiteParserTO_, SQLiteParserTRANSACTION_, SQLiteParserTRIGGER_, SQLiteParserUNION_, SQLiteParserUNIQUE_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserVIEW_, SQLiteParserVIRTUAL_, SQLiteParserWHEN_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWITHOUT_, SQLiteParserFIRST_VALUE_, SQLiteParserOVER_, SQLiteParserPARTITION_, SQLiteParserRANGE_, SQLiteParserPRECEDING_, SQLiteParserUNBOUNDED_, SQLiteParserCURRENT_, SQLiteParserFOLLOWING_, SQLiteParserCUME_DIST_, SQLiteParserDENSE_RANK_, SQLiteParserLAG_, SQLiteParserLAST_VALUE_, SQLiteParserLEAD_, SQLiteParserNTH_VALUE_, SQLiteParserNTILE_, SQLiteParserPERCENT_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_, SQLiteParserGENERATED_, SQLiteParserALWAYS_, SQLiteParserSTORED_, SQLiteParserTRUE_, SQLiteParserFALSE_, SQLiteParserWINDOW_, SQLiteParserNULLS_, SQLiteParserFIRST_, SQLiteParserLAST_, SQLiteParserFILTER_, SQLiteParserGROUPS_, SQLiteParserEXCLUDE_, SQLiteParserIDENTIFIER, SQLiteParserNUMERIC_LITERAL, SQLiteParserNUMBERED_BIND_PARAMETER, SQLiteParserNAMED_BIND_PARAMETER, SQLiteParserSTRING_LITERAL, SQLiteParserBLOB_LITERAL:
- {
- p.SetState(851)
- p.expr(0)
- }
- p.SetState(856)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ || _la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL {
- p.SetState(853)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(852)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(855)
- p.Column_alias()
- }
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- p.SetState(864)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- return localctx
- }
- // IDelete_stmtContext is an interface to support dynamic dispatch.
- type IDelete_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- DELETE_() antlr.TerminalNode
- FROM_() antlr.TerminalNode
- Qualified_table_name() IQualified_table_nameContext
- With_clause() IWith_clauseContext
- WHERE_() antlr.TerminalNode
- Expr() IExprContext
- Returning_clause() IReturning_clauseContext
- // IsDelete_stmtContext differentiates from other interfaces.
- IsDelete_stmtContext()
- }
- type Delete_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyDelete_stmtContext() *Delete_stmtContext {
- var p = new(Delete_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_delete_stmt
- return p
- }
- func (*Delete_stmtContext) IsDelete_stmtContext() {}
- func NewDelete_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Delete_stmtContext {
- var p = new(Delete_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_delete_stmt
- return p
- }
- func (s *Delete_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Delete_stmtContext) DELETE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDELETE_, 0)
- }
- func (s *Delete_stmtContext) FROM_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFROM_, 0)
- }
- func (s *Delete_stmtContext) Qualified_table_name() IQualified_table_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IQualified_table_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IQualified_table_nameContext)
- }
- func (s *Delete_stmtContext) With_clause() IWith_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWith_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWith_clauseContext)
- }
- func (s *Delete_stmtContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *Delete_stmtContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Delete_stmtContext) Returning_clause() IReturning_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IReturning_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IReturning_clauseContext)
- }
- func (s *Delete_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Delete_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Delete_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterDelete_stmt(s)
- }
- }
- func (s *Delete_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitDelete_stmt(s)
- }
- }
- func (p *SQLiteParser) Delete_stmt() (localctx IDelete_stmtContext) {
- this := p
- _ = this
- localctx = NewDelete_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 60, SQLiteParserRULE_delete_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(866)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(865)
- p.With_clause()
- }
- }
- {
- p.SetState(868)
- p.Match(SQLiteParserDELETE_)
- }
- {
- p.SetState(869)
- p.Match(SQLiteParserFROM_)
- }
- {
- p.SetState(870)
- p.Qualified_table_name()
- }
- p.SetState(873)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(871)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(872)
- p.expr(0)
- }
- }
- p.SetState(876)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserRETURNING_ {
- {
- p.SetState(875)
- p.Returning_clause()
- }
- }
- return localctx
- }
- // IDelete_stmt_limitedContext is an interface to support dynamic dispatch.
- type IDelete_stmt_limitedContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- DELETE_() antlr.TerminalNode
- FROM_() antlr.TerminalNode
- Qualified_table_name() IQualified_table_nameContext
- With_clause() IWith_clauseContext
- WHERE_() antlr.TerminalNode
- Expr() IExprContext
- Limit_stmt() ILimit_stmtContext
- Returning_clause() IReturning_clauseContext
- Order_by_stmt() IOrder_by_stmtContext
- // IsDelete_stmt_limitedContext differentiates from other interfaces.
- IsDelete_stmt_limitedContext()
- }
- type Delete_stmt_limitedContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyDelete_stmt_limitedContext() *Delete_stmt_limitedContext {
- var p = new(Delete_stmt_limitedContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_delete_stmt_limited
- return p
- }
- func (*Delete_stmt_limitedContext) IsDelete_stmt_limitedContext() {}
- func NewDelete_stmt_limitedContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Delete_stmt_limitedContext {
- var p = new(Delete_stmt_limitedContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_delete_stmt_limited
- return p
- }
- func (s *Delete_stmt_limitedContext) GetParser() antlr.Parser { return s.parser }
- func (s *Delete_stmt_limitedContext) DELETE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDELETE_, 0)
- }
- func (s *Delete_stmt_limitedContext) FROM_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFROM_, 0)
- }
- func (s *Delete_stmt_limitedContext) Qualified_table_name() IQualified_table_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IQualified_table_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IQualified_table_nameContext)
- }
- func (s *Delete_stmt_limitedContext) With_clause() IWith_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWith_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWith_clauseContext)
- }
- func (s *Delete_stmt_limitedContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *Delete_stmt_limitedContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Delete_stmt_limitedContext) Limit_stmt() ILimit_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ILimit_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ILimit_stmtContext)
- }
- func (s *Delete_stmt_limitedContext) Returning_clause() IReturning_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IReturning_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IReturning_clauseContext)
- }
- func (s *Delete_stmt_limitedContext) Order_by_stmt() IOrder_by_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_stmtContext)
- }
- func (s *Delete_stmt_limitedContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Delete_stmt_limitedContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Delete_stmt_limitedContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterDelete_stmt_limited(s)
- }
- }
- func (s *Delete_stmt_limitedContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitDelete_stmt_limited(s)
- }
- }
- func (p *SQLiteParser) Delete_stmt_limited() (localctx IDelete_stmt_limitedContext) {
- this := p
- _ = this
- localctx = NewDelete_stmt_limitedContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 62, SQLiteParserRULE_delete_stmt_limited)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(879)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(878)
- p.With_clause()
- }
- }
- {
- p.SetState(881)
- p.Match(SQLiteParserDELETE_)
- }
- {
- p.SetState(882)
- p.Match(SQLiteParserFROM_)
- }
- {
- p.SetState(883)
- p.Qualified_table_name()
- }
- p.SetState(886)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(884)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(885)
- p.expr(0)
- }
- }
- p.SetState(892)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserLIMIT_ || _la == SQLiteParserORDER_ {
- p.SetState(889)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserORDER_ {
- {
- p.SetState(888)
- p.Order_by_stmt()
- }
- }
- {
- p.SetState(891)
- p.Limit_stmt()
- }
- }
- p.SetState(895)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserRETURNING_ {
- {
- p.SetState(894)
- p.Returning_clause()
- }
- }
- return localctx
- }
- // IDetach_stmtContext is an interface to support dynamic dispatch.
- type IDetach_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- DETACH_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DATABASE_() antlr.TerminalNode
- // IsDetach_stmtContext differentiates from other interfaces.
- IsDetach_stmtContext()
- }
- type Detach_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyDetach_stmtContext() *Detach_stmtContext {
- var p = new(Detach_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_detach_stmt
- return p
- }
- func (*Detach_stmtContext) IsDetach_stmtContext() {}
- func NewDetach_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Detach_stmtContext {
- var p = new(Detach_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_detach_stmt
- return p
- }
- func (s *Detach_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Detach_stmtContext) DETACH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDETACH_, 0)
- }
- func (s *Detach_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Detach_stmtContext) DATABASE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDATABASE_, 0)
- }
- func (s *Detach_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Detach_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Detach_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterDetach_stmt(s)
- }
- }
- func (s *Detach_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitDetach_stmt(s)
- }
- }
- func (p *SQLiteParser) Detach_stmt() (localctx IDetach_stmtContext) {
- this := p
- _ = this
- localctx = NewDetach_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 64, SQLiteParserRULE_detach_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(897)
- p.Match(SQLiteParserDETACH_)
- }
- p.SetState(899)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 113, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(898)
- p.Match(SQLiteParserDATABASE_)
- }
- }
- {
- p.SetState(901)
- p.Schema_name()
- }
- return localctx
- }
- // IDrop_stmtContext is an interface to support dynamic dispatch.
- type IDrop_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // GetObject returns the object token.
- GetObject() antlr.Token
- // SetObject sets the object token.
- SetObject(antlr.Token)
- // Getter signatures
- DROP_() antlr.TerminalNode
- Any_name() IAny_nameContext
- INDEX_() antlr.TerminalNode
- TABLE_() antlr.TerminalNode
- TRIGGER_() antlr.TerminalNode
- VIEW_() antlr.TerminalNode
- IF_() antlr.TerminalNode
- EXISTS_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- // IsDrop_stmtContext differentiates from other interfaces.
- IsDrop_stmtContext()
- }
- type Drop_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- object antlr.Token
- }
- func NewEmptyDrop_stmtContext() *Drop_stmtContext {
- var p = new(Drop_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_drop_stmt
- return p
- }
- func (*Drop_stmtContext) IsDrop_stmtContext() {}
- func NewDrop_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Drop_stmtContext {
- var p = new(Drop_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_drop_stmt
- return p
- }
- func (s *Drop_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Drop_stmtContext) GetObject() antlr.Token { return s.object }
- func (s *Drop_stmtContext) SetObject(v antlr.Token) { s.object = v }
- func (s *Drop_stmtContext) DROP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDROP_, 0)
- }
- func (s *Drop_stmtContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Drop_stmtContext) INDEX_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINDEX_, 0)
- }
- func (s *Drop_stmtContext) TABLE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTABLE_, 0)
- }
- func (s *Drop_stmtContext) TRIGGER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRIGGER_, 0)
- }
- func (s *Drop_stmtContext) VIEW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVIEW_, 0)
- }
- func (s *Drop_stmtContext) IF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIF_, 0)
- }
- func (s *Drop_stmtContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *Drop_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Drop_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Drop_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Drop_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Drop_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterDrop_stmt(s)
- }
- }
- func (s *Drop_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitDrop_stmt(s)
- }
- }
- func (p *SQLiteParser) Drop_stmt() (localctx IDrop_stmtContext) {
- this := p
- _ = this
- localctx = NewDrop_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 66, SQLiteParserRULE_drop_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(903)
- p.Match(SQLiteParserDROP_)
- }
- {
- p.SetState(904)
- var _lt = p.GetTokenStream().LT(1)
- localctx.(*Drop_stmtContext).object = _lt
- _la = p.GetTokenStream().LA(1)
- if !((int64((_la-86)) & ^0x3f) == 0 && ((int64(1)<<(_la-86))&4648277765399773185) != 0) {
- var _ri = p.GetErrorHandler().RecoverInline(p)
- localctx.(*Drop_stmtContext).object = _ri
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- p.SetState(907)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 114, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(905)
- p.Match(SQLiteParserIF_)
- }
- {
- p.SetState(906)
- p.Match(SQLiteParserEXISTS_)
- }
- }
- p.SetState(912)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 115, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(909)
- p.Schema_name()
- }
- {
- p.SetState(910)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(914)
- p.Any_name()
- }
- return localctx
- }
- // IExprContext is an interface to support dynamic dispatch.
- type IExprContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // IsExprContext differentiates from other interfaces.
- IsExprContext()
- }
- type ExprContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyExprContext() *ExprContext {
- var p = new(ExprContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_expr
- return p
- }
- func (*ExprContext) IsExprContext() {}
- func NewExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExprContext {
- var p = new(ExprContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_expr
- return p
- }
- func (s *ExprContext) GetParser() antlr.Parser { return s.parser }
- func (s *ExprContext) CopyFrom(ctx *ExprContext) {
- s.BaseParserRuleContext.CopyFrom(ctx.BaseParserRuleContext)
- }
- func (s *ExprContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- type Expr_caseContext struct {
- *ExprContext
- }
- func NewExpr_caseContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_caseContext {
- var p = new(Expr_caseContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_caseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_caseContext) CASE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCASE_, 0)
- }
- func (s *Expr_caseContext) END_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEND_, 0)
- }
- func (s *Expr_caseContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_caseContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_caseContext) AllWHEN_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserWHEN_)
- }
- func (s *Expr_caseContext) WHEN_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHEN_, i)
- }
- func (s *Expr_caseContext) AllTHEN_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserTHEN_)
- }
- func (s *Expr_caseContext) THEN_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserTHEN_, i)
- }
- func (s *Expr_caseContext) ELSE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserELSE_, 0)
- }
- func (s *Expr_caseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_case(s)
- }
- }
- func (s *Expr_caseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_case(s)
- }
- }
- type Expr_raiseContext struct {
- *ExprContext
- }
- func NewExpr_raiseContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_raiseContext {
- var p = new(Expr_raiseContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_raiseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_raiseContext) Raise_function() IRaise_functionContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IRaise_functionContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IRaise_functionContext)
- }
- func (s *Expr_raiseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_raise(s)
- }
- }
- func (s *Expr_raiseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_raise(s)
- }
- }
- type Expr_functionContext struct {
- *ExprContext
- }
- func NewExpr_functionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_functionContext {
- var p = new(Expr_functionContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_functionContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_functionContext) Qualified_function_name() IQualified_function_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IQualified_function_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IQualified_function_nameContext)
- }
- func (s *Expr_functionContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Expr_functionContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Expr_functionContext) STAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTAR, 0)
- }
- func (s *Expr_functionContext) Filter_clause() IFilter_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFilter_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFilter_clauseContext)
- }
- func (s *Expr_functionContext) Over_clause() IOver_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOver_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOver_clauseContext)
- }
- func (s *Expr_functionContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_functionContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_functionContext) DISTINCT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDISTINCT_, 0)
- }
- func (s *Expr_functionContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Expr_functionContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Expr_functionContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_function(s)
- }
- }
- func (s *Expr_functionContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_function(s)
- }
- }
- type Expr_comparisonContext struct {
- *ExprContext
- }
- func NewExpr_comparisonContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_comparisonContext {
- var p = new(Expr_comparisonContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_comparisonContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_comparisonContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_comparisonContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_comparisonContext) LT2() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLT2, 0)
- }
- func (s *Expr_comparisonContext) GT2() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGT2, 0)
- }
- func (s *Expr_comparisonContext) AMP() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAMP, 0)
- }
- func (s *Expr_comparisonContext) PIPE() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPIPE, 0)
- }
- func (s *Expr_comparisonContext) LT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLT, 0)
- }
- func (s *Expr_comparisonContext) LT_EQ() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLT_EQ, 0)
- }
- func (s *Expr_comparisonContext) GT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGT, 0)
- }
- func (s *Expr_comparisonContext) GT_EQ() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGT_EQ, 0)
- }
- func (s *Expr_comparisonContext) ASSIGN() antlr.TerminalNode {
- return s.GetToken(SQLiteParserASSIGN, 0)
- }
- func (s *Expr_comparisonContext) EQ() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEQ, 0)
- }
- func (s *Expr_comparisonContext) NOT_EQ1() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_EQ1, 0)
- }
- func (s *Expr_comparisonContext) NOT_EQ2() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_EQ2, 0)
- }
- func (s *Expr_comparisonContext) IS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIS_, 0)
- }
- func (s *Expr_comparisonContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Expr_comparisonContext) IN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIN_, 0)
- }
- func (s *Expr_comparisonContext) LIKE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLIKE_, 0)
- }
- func (s *Expr_comparisonContext) GLOB_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGLOB_, 0)
- }
- func (s *Expr_comparisonContext) MATCH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserMATCH_, 0)
- }
- func (s *Expr_comparisonContext) REGEXP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREGEXP_, 0)
- }
- func (s *Expr_comparisonContext) ESCAPE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserESCAPE_, 0)
- }
- func (s *Expr_comparisonContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_comparison(s)
- }
- }
- func (s *Expr_comparisonContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_comparison(s)
- }
- }
- type Expr_boolContext struct {
- *ExprContext
- }
- func NewExpr_boolContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_boolContext {
- var p = new(Expr_boolContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_boolContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_boolContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_boolContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_boolContext) AND_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAND_, 0)
- }
- func (s *Expr_boolContext) OR_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOR_, 0)
- }
- func (s *Expr_boolContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_bool(s)
- }
- }
- func (s *Expr_boolContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_bool(s)
- }
- }
- type Expr_binaryContext struct {
- *ExprContext
- }
- func NewExpr_binaryContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_binaryContext {
- var p = new(Expr_binaryContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_binaryContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_binaryContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_binaryContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_binaryContext) PIPE2() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPIPE2, 0)
- }
- func (s *Expr_binaryContext) PTR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPTR, 0)
- }
- func (s *Expr_binaryContext) PTR2() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPTR2, 0)
- }
- func (s *Expr_binaryContext) STAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTAR, 0)
- }
- func (s *Expr_binaryContext) DIV() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDIV, 0)
- }
- func (s *Expr_binaryContext) MOD() antlr.TerminalNode {
- return s.GetToken(SQLiteParserMOD, 0)
- }
- func (s *Expr_binaryContext) PLUS() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPLUS, 0)
- }
- func (s *Expr_binaryContext) MINUS() antlr.TerminalNode {
- return s.GetToken(SQLiteParserMINUS, 0)
- }
- func (s *Expr_binaryContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_binary(s)
- }
- }
- func (s *Expr_binaryContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_binary(s)
- }
- }
- type Expr_literalContext struct {
- *ExprContext
- }
- func NewExpr_literalContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_literalContext {
- var p = new(Expr_literalContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_literalContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_literalContext) Literal_value() ILiteral_valueContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ILiteral_valueContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ILiteral_valueContext)
- }
- func (s *Expr_literalContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_literal(s)
- }
- }
- func (s *Expr_literalContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_literal(s)
- }
- }
- type Expr_castContext struct {
- *ExprContext
- }
- func NewExpr_castContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_castContext {
- var p = new(Expr_castContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_castContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_castContext) CAST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCAST_, 0)
- }
- func (s *Expr_castContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Expr_castContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_castContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Expr_castContext) Type_name() IType_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IType_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IType_nameContext)
- }
- func (s *Expr_castContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Expr_castContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_cast(s)
- }
- }
- func (s *Expr_castContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_cast(s)
- }
- }
- type Expr_in_selectContext struct {
- *ExprContext
- }
- func NewExpr_in_selectContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_in_selectContext {
- var p = new(Expr_in_selectContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_in_selectContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_in_selectContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Expr_in_selectContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Expr_in_selectContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Expr_in_selectContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *Expr_in_selectContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Expr_in_selectContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_in_selectContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_in_selectContext) IN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIN_, 0)
- }
- func (s *Expr_in_selectContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Expr_in_selectContext) Table_function_name() ITable_function_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_function_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_function_nameContext)
- }
- func (s *Expr_in_selectContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Expr_in_selectContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Expr_in_selectContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Expr_in_selectContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Expr_in_selectContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_in_select(s)
- }
- }
- func (s *Expr_in_selectContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_in_select(s)
- }
- }
- type Expr_listContext struct {
- *ExprContext
- }
- func NewExpr_listContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_listContext {
- var p = new(Expr_listContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_listContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_listContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Expr_listContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_listContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_listContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Expr_listContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Expr_listContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Expr_listContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_list(s)
- }
- }
- func (s *Expr_listContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_list(s)
- }
- }
- type Expr_betweenContext struct {
- *ExprContext
- }
- func NewExpr_betweenContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_betweenContext {
- var p = new(Expr_betweenContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_betweenContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_betweenContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_betweenContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_betweenContext) BETWEEN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBETWEEN_, 0)
- }
- func (s *Expr_betweenContext) AND_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAND_, 0)
- }
- func (s *Expr_betweenContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Expr_betweenContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_between(s)
- }
- }
- func (s *Expr_betweenContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_between(s)
- }
- }
- type Expr_collateContext struct {
- *ExprContext
- }
- func NewExpr_collateContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_collateContext {
- var p = new(Expr_collateContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_collateContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_collateContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_collateContext) COLLATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOLLATE_, 0)
- }
- func (s *Expr_collateContext) Collation_name() ICollation_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICollation_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICollation_nameContext)
- }
- func (s *Expr_collateContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_collate(s)
- }
- }
- func (s *Expr_collateContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_collate(s)
- }
- }
- type Expr_qualified_column_nameContext struct {
- *ExprContext
- }
- func NewExpr_qualified_column_nameContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_qualified_column_nameContext {
- var p = new(Expr_qualified_column_nameContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_qualified_column_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_qualified_column_nameContext) Column_name() IColumn_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Expr_qualified_column_nameContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Expr_qualified_column_nameContext) AllDOT() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserDOT)
- }
- func (s *Expr_qualified_column_nameContext) DOT(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, i)
- }
- func (s *Expr_qualified_column_nameContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Expr_qualified_column_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_qualified_column_name(s)
- }
- }
- func (s *Expr_qualified_column_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_qualified_column_name(s)
- }
- }
- type Expr_unaryContext struct {
- *ExprContext
- }
- func NewExpr_unaryContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_unaryContext {
- var p = new(Expr_unaryContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_unaryContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_unaryContext) Unary_operator() IUnary_operatorContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IUnary_operatorContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IUnary_operatorContext)
- }
- func (s *Expr_unaryContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_unaryContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_unary(s)
- }
- }
- func (s *Expr_unaryContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_unary(s)
- }
- }
- type Expr_null_compContext struct {
- *ExprContext
- }
- func NewExpr_null_compContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_null_compContext {
- var p = new(Expr_null_compContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_null_compContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_null_compContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_null_compContext) ISNULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserISNULL_, 0)
- }
- func (s *Expr_null_compContext) NOTNULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOTNULL_, 0)
- }
- func (s *Expr_null_compContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Expr_null_compContext) NULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNULL_, 0)
- }
- func (s *Expr_null_compContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_null_comp(s)
- }
- }
- func (s *Expr_null_compContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_null_comp(s)
- }
- }
- type Expr_bindContext struct {
- *ExprContext
- }
- func NewExpr_bindContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_bindContext {
- var p = new(Expr_bindContext)
- p.ExprContext = NewEmptyExprContext()
- p.parser = parser
- p.CopyFrom(ctx.(*ExprContext))
- return p
- }
- func (s *Expr_bindContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_bindContext) NUMBERED_BIND_PARAMETER() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNUMBERED_BIND_PARAMETER, 0)
- }
- func (s *Expr_bindContext) NAMED_BIND_PARAMETER() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNAMED_BIND_PARAMETER, 0)
- }
- func (s *Expr_bindContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_bind(s)
- }
- }
- func (s *Expr_bindContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_bind(s)
- }
- }
- func (p *SQLiteParser) Expr() (localctx IExprContext) {
- return p.expr(0)
- }
- func (p *SQLiteParser) expr(_p int) (localctx IExprContext) {
- this := p
- _ = this
- var _parentctx antlr.ParserRuleContext = p.GetParserRuleContext()
- _parentState := p.GetState()
- localctx = NewExprContext(p, p.GetParserRuleContext(), _parentState)
- var _prevctx IExprContext = localctx
- var _ antlr.ParserRuleContext = _prevctx // TODO: To prevent unused variable warning.
- _startState := 68
- p.EnterRecursionRule(localctx, 68, SQLiteParserRULE_expr, _p)
- var _la int
- defer func() {
- p.UnrollRecursionContexts(_parentctx)
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- var _alt int
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1005)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 129, p.GetParserRuleContext()) {
- case 1:
- localctx = NewExpr_literalContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(917)
- p.Literal_value()
- }
- case 2:
- localctx = NewExpr_bindContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(918)
- p.Match(SQLiteParserNUMBERED_BIND_PARAMETER)
- }
- case 3:
- localctx = NewExpr_bindContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(919)
- p.Match(SQLiteParserNAMED_BIND_PARAMETER)
- }
- case 4:
- localctx = NewExpr_qualified_column_nameContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- p.SetState(928)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 117, p.GetParserRuleContext()) == 1 {
- p.SetState(923)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 116, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(920)
- p.Schema_name()
- }
- {
- p.SetState(921)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(925)
- p.Table_name()
- }
- {
- p.SetState(926)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(930)
- p.Column_name()
- }
- case 5:
- localctx = NewExpr_unaryContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(931)
- p.Unary_operator()
- }
- {
- p.SetState(932)
- p.expr(21)
- }
- case 6:
- localctx = NewExpr_functionContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(934)
- p.Qualified_function_name()
- }
- {
- p.SetState(935)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(948)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserOPEN_PAR, SQLiteParserPLUS, SQLiteParserMINUS, SQLiteParserTILDE, SQLiteParserABORT_, SQLiteParserACTION_, SQLiteParserADD_, SQLiteParserAFTER_, SQLiteParserALL_, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserAND_, SQLiteParserAS_, SQLiteParserASC_, SQLiteParserATTACH_, SQLiteParserAUTOINCREMENT_, SQLiteParserBEFORE_, SQLiteParserBEGIN_, SQLiteParserBETWEEN_, SQLiteParserBY_, SQLiteParserCASCADE_, SQLiteParserCASE_, SQLiteParserCAST_, SQLiteParserCHECK_, SQLiteParserCOLLATE_, SQLiteParserCOLUMN_, SQLiteParserCOMMIT_, SQLiteParserCONFLICT_, SQLiteParserCONSTRAINT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserCURRENT_DATE_, SQLiteParserCURRENT_TIME_, SQLiteParserCURRENT_TIMESTAMP_, SQLiteParserDATABASE_, SQLiteParserDEFAULT_, SQLiteParserDEFERRABLE_, SQLiteParserDEFERRED_, SQLiteParserDELETE_, SQLiteParserDESC_, SQLiteParserDETACH_, SQLiteParserDISTINCT_, SQLiteParserDROP_, SQLiteParserEACH_, SQLiteParserELSE_, SQLiteParserEND_, SQLiteParserESCAPE_, SQLiteParserEXCEPT_, SQLiteParserEXCLUSIVE_, SQLiteParserEXISTS_, SQLiteParserEXPLAIN_, SQLiteParserFAIL_, SQLiteParserFOR_, SQLiteParserFOREIGN_, SQLiteParserFROM_, SQLiteParserFULL_, SQLiteParserGLOB_, SQLiteParserGROUP_, SQLiteParserHAVING_, SQLiteParserIF_, SQLiteParserIGNORE_, SQLiteParserIMMEDIATE_, SQLiteParserIN_, SQLiteParserINDEX_, SQLiteParserINDEXED_, SQLiteParserINITIALLY_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINSTEAD_, SQLiteParserINTERSECT_, SQLiteParserINTO_, SQLiteParserIS_, SQLiteParserISNULL_, SQLiteParserJOIN_, SQLiteParserKEY_, SQLiteParserLEFT_, SQLiteParserLIKE_, SQLiteParserLIMIT_, SQLiteParserMATCH_, SQLiteParserNATURAL_, SQLiteParserNO_, SQLiteParserNOT_, SQLiteParserNOTNULL_, SQLiteParserNULL_, SQLiteParserOF_, SQLiteParserOFFSET_, SQLiteParserON_, SQLiteParserOR_, SQLiteParserORDER_, SQLiteParserOUTER_, SQLiteParserPLAN_, SQLiteParserPRAGMA_, SQLiteParserPRIMARY_, SQLiteParserQUERY_, SQLiteParserRAISE_, SQLiteParserRECURSIVE_, SQLiteParserREFERENCES_, SQLiteParserREGEXP_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserRENAME_, SQLiteParserREPLACE_, SQLiteParserRESTRICT_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserROW_, SQLiteParserROWS_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserSTRICT_, SQLiteParserTABLE_, SQLiteParserTEMP_, SQLiteParserTEMPORARY_, SQLiteParserTHEN_, SQLiteParserTO_, SQLiteParserTRANSACTION_, SQLiteParserTRIGGER_, SQLiteParserUNION_, SQLiteParserUNIQUE_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserVIEW_, SQLiteParserVIRTUAL_, SQLiteParserWHEN_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWITHOUT_, SQLiteParserFIRST_VALUE_, SQLiteParserOVER_, SQLiteParserPARTITION_, SQLiteParserRANGE_, SQLiteParserPRECEDING_, SQLiteParserUNBOUNDED_, SQLiteParserCURRENT_, SQLiteParserFOLLOWING_, SQLiteParserCUME_DIST_, SQLiteParserDENSE_RANK_, SQLiteParserLAG_, SQLiteParserLAST_VALUE_, SQLiteParserLEAD_, SQLiteParserNTH_VALUE_, SQLiteParserNTILE_, SQLiteParserPERCENT_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_, SQLiteParserGENERATED_, SQLiteParserALWAYS_, SQLiteParserSTORED_, SQLiteParserTRUE_, SQLiteParserFALSE_, SQLiteParserWINDOW_, SQLiteParserNULLS_, SQLiteParserFIRST_, SQLiteParserLAST_, SQLiteParserFILTER_, SQLiteParserGROUPS_, SQLiteParserEXCLUDE_, SQLiteParserIDENTIFIER, SQLiteParserNUMERIC_LITERAL, SQLiteParserNUMBERED_BIND_PARAMETER, SQLiteParserNAMED_BIND_PARAMETER, SQLiteParserSTRING_LITERAL, SQLiteParserBLOB_LITERAL:
- p.SetState(937)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 118, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(936)
- p.Match(SQLiteParserDISTINCT_)
- }
- }
- {
- p.SetState(939)
- p.expr(0)
- }
- p.SetState(944)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(940)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(941)
- p.expr(0)
- }
- p.SetState(946)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case SQLiteParserSTAR:
- {
- p.SetState(947)
- p.Match(SQLiteParserSTAR)
- }
- case SQLiteParserCLOSE_PAR:
- default:
- }
- {
- p.SetState(950)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(952)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 121, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(951)
- p.Filter_clause()
- }
- }
- p.SetState(955)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 122, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(954)
- p.Over_clause()
- }
- }
- case 7:
- localctx = NewExpr_listContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(957)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(958)
- p.expr(0)
- }
- p.SetState(963)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(959)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(960)
- p.expr(0)
- }
- p.SetState(965)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(966)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case 8:
- localctx = NewExpr_castContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(968)
- p.Match(SQLiteParserCAST_)
- }
- {
- p.SetState(969)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(970)
- p.expr(0)
- }
- {
- p.SetState(971)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(972)
- p.Type_name()
- }
- {
- p.SetState(973)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case 9:
- localctx = NewExpr_in_selectContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- p.SetState(979)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserEXISTS_ || _la == SQLiteParserNOT_ {
- p.SetState(976)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNOT_ {
- {
- p.SetState(975)
- p.Match(SQLiteParserNOT_)
- }
- }
- {
- p.SetState(978)
- p.Match(SQLiteParserEXISTS_)
- }
- }
- {
- p.SetState(981)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(982)
- p.Select_stmt()
- }
- {
- p.SetState(983)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case 10:
- localctx = NewExpr_caseContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(985)
- p.Match(SQLiteParserCASE_)
- }
- p.SetState(987)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 126, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(986)
- p.expr(0)
- }
- }
- p.SetState(994)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for ok := true; ok; ok = _la == SQLiteParserWHEN_ {
- {
- p.SetState(989)
- p.Match(SQLiteParserWHEN_)
- }
- {
- p.SetState(990)
- p.expr(0)
- }
- {
- p.SetState(991)
- p.Match(SQLiteParserTHEN_)
- }
- {
- p.SetState(992)
- p.expr(0)
- }
- p.SetState(996)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1000)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserELSE_ {
- {
- p.SetState(998)
- p.Match(SQLiteParserELSE_)
- }
- {
- p.SetState(999)
- p.expr(0)
- }
- }
- {
- p.SetState(1002)
- p.Match(SQLiteParserEND_)
- }
- case 11:
- localctx = NewExpr_raiseContext(p, localctx)
- p.SetParserRuleContext(localctx)
- _prevctx = localctx
- {
- p.SetState(1004)
- p.Raise_function()
- }
- }
- p.GetParserRuleContext().SetStop(p.GetTokenStream().LT(-1))
- p.SetState(1126)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 145, p.GetParserRuleContext())
- for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
- if _alt == 1 {
- if p.GetParseListeners() != nil {
- p.TriggerExitRuleEvent()
- }
- _prevctx = localctx
- p.SetState(1124)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 144, p.GetParserRuleContext()) {
- case 1:
- localctx = NewExpr_binaryContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1007)
- if !(p.Precpred(p.GetParserRuleContext(), 20)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 20)", ""))
- }
- {
- p.SetState(1008)
- p.Match(SQLiteParserPIPE2)
- }
- {
- p.SetState(1009)
- p.expr(21)
- }
- case 2:
- localctx = NewExpr_binaryContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1010)
- if !(p.Precpred(p.GetParserRuleContext(), 19)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 19)", ""))
- }
- {
- p.SetState(1011)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserPTR2 || _la == SQLiteParserPTR) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1012)
- p.expr(20)
- }
- case 3:
- localctx = NewExpr_binaryContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1013)
- if !(p.Precpred(p.GetParserRuleContext(), 18)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 18)", ""))
- }
- {
- p.SetState(1014)
- _la = p.GetTokenStream().LA(1)
- if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&49280) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1015)
- p.expr(19)
- }
- case 4:
- localctx = NewExpr_binaryContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1016)
- if !(p.Precpred(p.GetParserRuleContext(), 17)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 17)", ""))
- }
- {
- p.SetState(1017)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserPLUS || _la == SQLiteParserMINUS) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1018)
- p.expr(18)
- }
- case 5:
- localctx = NewExpr_comparisonContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1019)
- if !(p.Precpred(p.GetParserRuleContext(), 16)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 16)", ""))
- }
- {
- p.SetState(1020)
- _la = p.GetTokenStream().LA(1)
- if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&983040) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1021)
- p.expr(17)
- }
- case 6:
- localctx = NewExpr_comparisonContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1022)
- if !(p.Precpred(p.GetParserRuleContext(), 15)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 15)", ""))
- }
- {
- p.SetState(1023)
- _la = p.GetTokenStream().LA(1)
- if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&15728640) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1024)
- p.expr(16)
- }
- case 7:
- localctx = NewExpr_comparisonContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1025)
- if !(p.Precpred(p.GetParserRuleContext(), 14)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 14)", ""))
- }
- p.SetState(1041)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 131, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1026)
- p.Match(SQLiteParserASSIGN)
- }
- case 2:
- {
- p.SetState(1027)
- p.Match(SQLiteParserEQ)
- }
- case 3:
- {
- p.SetState(1028)
- p.Match(SQLiteParserNOT_EQ1)
- }
- case 4:
- {
- p.SetState(1029)
- p.Match(SQLiteParserNOT_EQ2)
- }
- case 5:
- {
- p.SetState(1030)
- p.Match(SQLiteParserIS_)
- }
- case 6:
- {
- p.SetState(1031)
- p.Match(SQLiteParserIS_)
- }
- {
- p.SetState(1032)
- p.Match(SQLiteParserNOT_)
- }
- case 7:
- p.SetState(1034)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNOT_ {
- {
- p.SetState(1033)
- p.Match(SQLiteParserNOT_)
- }
- }
- {
- p.SetState(1036)
- p.Match(SQLiteParserIN_)
- }
- case 8:
- {
- p.SetState(1037)
- p.Match(SQLiteParserLIKE_)
- }
- case 9:
- {
- p.SetState(1038)
- p.Match(SQLiteParserGLOB_)
- }
- case 10:
- {
- p.SetState(1039)
- p.Match(SQLiteParserMATCH_)
- }
- case 11:
- {
- p.SetState(1040)
- p.Match(SQLiteParserREGEXP_)
- }
- }
- {
- p.SetState(1043)
- p.expr(15)
- }
- case 8:
- localctx = NewExpr_boolContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1044)
- if !(p.Precpred(p.GetParserRuleContext(), 12)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 12)", ""))
- }
- {
- p.SetState(1045)
- p.Match(SQLiteParserAND_)
- }
- {
- p.SetState(1046)
- p.expr(13)
- }
- case 9:
- localctx = NewExpr_boolContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1047)
- if !(p.Precpred(p.GetParserRuleContext(), 11)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 11)", ""))
- }
- {
- p.SetState(1048)
- p.Match(SQLiteParserOR_)
- }
- {
- p.SetState(1049)
- p.expr(12)
- }
- case 10:
- localctx = NewExpr_betweenContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1050)
- if !(p.Precpred(p.GetParserRuleContext(), 4)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 4)", ""))
- }
- p.SetState(1052)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNOT_ {
- {
- p.SetState(1051)
- p.Match(SQLiteParserNOT_)
- }
- }
- {
- p.SetState(1054)
- p.Match(SQLiteParserBETWEEN_)
- }
- {
- p.SetState(1055)
- p.expr(0)
- }
- {
- p.SetState(1056)
- p.Match(SQLiteParserAND_)
- }
- {
- p.SetState(1057)
- p.expr(5)
- }
- case 11:
- localctx = NewExpr_in_selectContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1059)
- if !(p.Precpred(p.GetParserRuleContext(), 13)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 13)", ""))
- }
- p.SetState(1061)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNOT_ {
- {
- p.SetState(1060)
- p.Match(SQLiteParserNOT_)
- }
- }
- {
- p.SetState(1063)
- p.Match(SQLiteParserIN_)
- }
- p.SetState(1102)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 140, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1064)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1074)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 135, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1065)
- p.Select_stmt()
- }
- } else if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 135, p.GetParserRuleContext()) == 2 {
- {
- p.SetState(1066)
- p.expr(0)
- }
- p.SetState(1071)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1067)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1068)
- p.expr(0)
- }
- p.SetState(1073)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- {
- p.SetState(1076)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case 2:
- p.SetState(1080)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 136, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1077)
- p.Schema_name()
- }
- {
- p.SetState(1078)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1082)
- p.Table_name()
- }
- case 3:
- p.SetState(1086)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 137, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1083)
- p.Schema_name()
- }
- {
- p.SetState(1084)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1088)
- p.Table_function_name()
- }
- {
- p.SetState(1089)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1098)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if ((int64((_la-3)) & ^0x3f) == 0 && ((int64(1)<<(_la-3))&-16776415) != 0) || ((int64((_la-67)) & ^0x3f) == 0 && ((int64(1)<<(_la-67))&-1) != 0) || ((int64((_la-131)) & ^0x3f) == 0 && ((int64(1)<<(_la-131))&9088264048033660927) != 0) {
- {
- p.SetState(1090)
- p.expr(0)
- }
- p.SetState(1095)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1091)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1092)
- p.expr(0)
- }
- p.SetState(1097)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- {
- p.SetState(1100)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- case 12:
- localctx = NewExpr_collateContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1104)
- if !(p.Precpred(p.GetParserRuleContext(), 7)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 7)", ""))
- }
- {
- p.SetState(1105)
- p.Match(SQLiteParserCOLLATE_)
- }
- {
- p.SetState(1106)
- p.Collation_name()
- }
- case 13:
- localctx = NewExpr_comparisonContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1107)
- if !(p.Precpred(p.GetParserRuleContext(), 6)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 6)", ""))
- }
- p.SetState(1109)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNOT_ {
- {
- p.SetState(1108)
- p.Match(SQLiteParserNOT_)
- }
- }
- {
- p.SetState(1111)
- _la = p.GetTokenStream().LA(1)
- if !((int64((_la-79)) & ^0x3f) == 0 && ((int64(1)<<(_la-79))&2199028498433) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1112)
- p.expr(0)
- }
- p.SetState(1115)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 142, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1113)
- p.Match(SQLiteParserESCAPE_)
- }
- {
- p.SetState(1114)
- p.expr(0)
- }
- }
- case 14:
- localctx = NewExpr_null_compContext(p, NewExprContext(p, _parentctx, _parentState))
- p.PushNewRecursionContext(localctx, _startState, SQLiteParserRULE_expr)
- p.SetState(1117)
- if !(p.Precpred(p.GetParserRuleContext(), 5)) {
- panic(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 5)", ""))
- }
- p.SetState(1122)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserISNULL_:
- {
- p.SetState(1118)
- p.Match(SQLiteParserISNULL_)
- }
- case SQLiteParserNOTNULL_:
- {
- p.SetState(1119)
- p.Match(SQLiteParserNOTNULL_)
- }
- case SQLiteParserNOT_:
- {
- p.SetState(1120)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(1121)
- p.Match(SQLiteParserNULL_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- }
- }
- p.SetState(1128)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 145, p.GetParserRuleContext())
- }
- return localctx
- }
- // IRaise_functionContext is an interface to support dynamic dispatch.
- type IRaise_functionContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- RAISE_() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- CLOSE_PAR() antlr.TerminalNode
- IGNORE_() antlr.TerminalNode
- COMMA() antlr.TerminalNode
- Error_message() IError_messageContext
- ROLLBACK_() antlr.TerminalNode
- ABORT_() antlr.TerminalNode
- FAIL_() antlr.TerminalNode
- // IsRaise_functionContext differentiates from other interfaces.
- IsRaise_functionContext()
- }
- type Raise_functionContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyRaise_functionContext() *Raise_functionContext {
- var p = new(Raise_functionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_raise_function
- return p
- }
- func (*Raise_functionContext) IsRaise_functionContext() {}
- func NewRaise_functionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Raise_functionContext {
- var p = new(Raise_functionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_raise_function
- return p
- }
- func (s *Raise_functionContext) GetParser() antlr.Parser { return s.parser }
- func (s *Raise_functionContext) RAISE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRAISE_, 0)
- }
- func (s *Raise_functionContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Raise_functionContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Raise_functionContext) IGNORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIGNORE_, 0)
- }
- func (s *Raise_functionContext) COMMA() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, 0)
- }
- func (s *Raise_functionContext) Error_message() IError_messageContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IError_messageContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IError_messageContext)
- }
- func (s *Raise_functionContext) ROLLBACK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROLLBACK_, 0)
- }
- func (s *Raise_functionContext) ABORT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserABORT_, 0)
- }
- func (s *Raise_functionContext) FAIL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFAIL_, 0)
- }
- func (s *Raise_functionContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Raise_functionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Raise_functionContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterRaise_function(s)
- }
- }
- func (s *Raise_functionContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitRaise_function(s)
- }
- }
- func (p *SQLiteParser) Raise_function() (localctx IRaise_functionContext) {
- this := p
- _ = this
- localctx = NewRaise_functionContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 70, SQLiteParserRULE_raise_function)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1129)
- p.Match(SQLiteParserRAISE_)
- }
- {
- p.SetState(1130)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1135)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserIGNORE_:
- {
- p.SetState(1131)
- p.Match(SQLiteParserIGNORE_)
- }
- case SQLiteParserABORT_, SQLiteParserFAIL_, SQLiteParserROLLBACK_:
- {
- p.SetState(1132)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserABORT_ || _la == SQLiteParserFAIL_ || _la == SQLiteParserROLLBACK_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1133)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1134)
- p.Error_message()
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- {
- p.SetState(1137)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- return localctx
- }
- // ILiteral_valueContext is an interface to support dynamic dispatch.
- type ILiteral_valueContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- NUMERIC_LITERAL() antlr.TerminalNode
- STRING_LITERAL() antlr.TerminalNode
- BLOB_LITERAL() antlr.TerminalNode
- NULL_() antlr.TerminalNode
- TRUE_() antlr.TerminalNode
- FALSE_() antlr.TerminalNode
- CURRENT_TIME_() antlr.TerminalNode
- CURRENT_DATE_() antlr.TerminalNode
- CURRENT_TIMESTAMP_() antlr.TerminalNode
- // IsLiteral_valueContext differentiates from other interfaces.
- IsLiteral_valueContext()
- }
- type Literal_valueContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyLiteral_valueContext() *Literal_valueContext {
- var p = new(Literal_valueContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_literal_value
- return p
- }
- func (*Literal_valueContext) IsLiteral_valueContext() {}
- func NewLiteral_valueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Literal_valueContext {
- var p = new(Literal_valueContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_literal_value
- return p
- }
- func (s *Literal_valueContext) GetParser() antlr.Parser { return s.parser }
- func (s *Literal_valueContext) NUMERIC_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNUMERIC_LITERAL, 0)
- }
- func (s *Literal_valueContext) STRING_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRING_LITERAL, 0)
- }
- func (s *Literal_valueContext) BLOB_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBLOB_LITERAL, 0)
- }
- func (s *Literal_valueContext) NULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNULL_, 0)
- }
- func (s *Literal_valueContext) TRUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRUE_, 0)
- }
- func (s *Literal_valueContext) FALSE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFALSE_, 0)
- }
- func (s *Literal_valueContext) CURRENT_TIME_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_TIME_, 0)
- }
- func (s *Literal_valueContext) CURRENT_DATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_DATE_, 0)
- }
- func (s *Literal_valueContext) CURRENT_TIMESTAMP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_TIMESTAMP_, 0)
- }
- func (s *Literal_valueContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Literal_valueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Literal_valueContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterLiteral_value(s)
- }
- }
- func (s *Literal_valueContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitLiteral_value(s)
- }
- }
- func (p *SQLiteParser) Literal_value() (localctx ILiteral_valueContext) {
- this := p
- _ = this
- localctx = NewLiteral_valueContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 72, SQLiteParserRULE_literal_value)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1139)
- _la = p.GetTokenStream().LA(1)
- if !(((int64((_la-54)) & ^0x3f) == 0 && ((int64(1)<<(_la-54))&4503599627370503) != 0) || ((int64((_la-175)) & ^0x3f) == 0 && ((int64(1)<<(_la-175))&409603) != 0)) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- return localctx
- }
- // IInsert_stmtContext is an interface to support dynamic dispatch.
- type IInsert_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- INTO_() antlr.TerminalNode
- Table_name() ITable_nameContext
- INSERT_() antlr.TerminalNode
- REPLACE_() antlr.TerminalNode
- OR_() antlr.TerminalNode
- With_clause() IWith_clauseContext
- ROLLBACK_() antlr.TerminalNode
- ABORT_() antlr.TerminalNode
- FAIL_() antlr.TerminalNode
- IGNORE_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- AS_() antlr.TerminalNode
- Table_alias() ITable_aliasContext
- AllOPEN_PAR() []antlr.TerminalNode
- OPEN_PAR(i int) antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- AllCLOSE_PAR() []antlr.TerminalNode
- CLOSE_PAR(i int) antlr.TerminalNode
- VALUES_() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- Select_stmt() ISelect_stmtContext
- Upsert_clause() IUpsert_clauseContext
- Returning_clause() IReturning_clauseContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- DEFAULT_() antlr.TerminalNode
- // IsInsert_stmtContext differentiates from other interfaces.
- IsInsert_stmtContext()
- }
- type Insert_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyInsert_stmtContext() *Insert_stmtContext {
- var p = new(Insert_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_insert_stmt
- return p
- }
- func (*Insert_stmtContext) IsInsert_stmtContext() {}
- func NewInsert_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Insert_stmtContext {
- var p = new(Insert_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_insert_stmt
- return p
- }
- func (s *Insert_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Insert_stmtContext) INTO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINTO_, 0)
- }
- func (s *Insert_stmtContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Insert_stmtContext) INSERT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINSERT_, 0)
- }
- func (s *Insert_stmtContext) REPLACE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREPLACE_, 0)
- }
- func (s *Insert_stmtContext) OR_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOR_, 0)
- }
- func (s *Insert_stmtContext) With_clause() IWith_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWith_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWith_clauseContext)
- }
- func (s *Insert_stmtContext) ROLLBACK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROLLBACK_, 0)
- }
- func (s *Insert_stmtContext) ABORT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserABORT_, 0)
- }
- func (s *Insert_stmtContext) FAIL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFAIL_, 0)
- }
- func (s *Insert_stmtContext) IGNORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIGNORE_, 0)
- }
- func (s *Insert_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Insert_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Insert_stmtContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Insert_stmtContext) Table_alias() ITable_aliasContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_aliasContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_aliasContext)
- }
- func (s *Insert_stmtContext) AllOPEN_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserOPEN_PAR)
- }
- func (s *Insert_stmtContext) OPEN_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, i)
- }
- func (s *Insert_stmtContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Insert_stmtContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Insert_stmtContext) AllCLOSE_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCLOSE_PAR)
- }
- func (s *Insert_stmtContext) CLOSE_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, i)
- }
- func (s *Insert_stmtContext) VALUES_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVALUES_, 0)
- }
- func (s *Insert_stmtContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Insert_stmtContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Insert_stmtContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Insert_stmtContext) Upsert_clause() IUpsert_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IUpsert_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IUpsert_clauseContext)
- }
- func (s *Insert_stmtContext) Returning_clause() IReturning_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IReturning_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IReturning_clauseContext)
- }
- func (s *Insert_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Insert_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Insert_stmtContext) DEFAULT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFAULT_, 0)
- }
- func (s *Insert_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Insert_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Insert_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterInsert_stmt(s)
- }
- }
- func (s *Insert_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitInsert_stmt(s)
- }
- }
- func (p *SQLiteParser) Insert_stmt() (localctx IInsert_stmtContext) {
- this := p
- _ = this
- localctx = NewInsert_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 74, SQLiteParserRULE_insert_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1214)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserINSERT_, SQLiteParserREPLACE_, SQLiteParserWITH_:
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1142)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(1141)
- p.With_clause()
- }
- }
- p.SetState(1149)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 148, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1144)
- p.Match(SQLiteParserINSERT_)
- }
- case 2:
- {
- p.SetState(1145)
- p.Match(SQLiteParserREPLACE_)
- }
- case 3:
- {
- p.SetState(1146)
- p.Match(SQLiteParserINSERT_)
- }
- {
- p.SetState(1147)
- p.Match(SQLiteParserOR_)
- }
- {
- p.SetState(1148)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserABORT_ || ((int64((_la-74)) & ^0x3f) == 0 && ((int64(1)<<(_la-74))&19140298416325121) != 0)) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(1151)
- p.Match(SQLiteParserINTO_)
- }
- p.SetState(1155)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 149, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1152)
- p.Schema_name()
- }
- {
- p.SetState(1153)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1157)
- p.Table_name()
- }
- p.SetState(1160)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(1158)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(1159)
- p.Table_alias()
- }
- }
- p.SetState(1173)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOPEN_PAR {
- {
- p.SetState(1162)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1163)
- p.Column_name()
- }
- p.SetState(1168)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1164)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1165)
- p.Column_name()
- }
- p.SetState(1170)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1171)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- p.SetState(1204)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 156, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1175)
- p.Match(SQLiteParserVALUES_)
- }
- {
- p.SetState(1176)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1177)
- p.expr(0)
- }
- p.SetState(1182)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1178)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1179)
- p.expr(0)
- }
- p.SetState(1184)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1185)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1200)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1186)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1187)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1188)
- p.expr(0)
- }
- p.SetState(1193)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1189)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1190)
- p.expr(0)
- }
- p.SetState(1195)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1196)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1202)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case 2:
- {
- p.SetState(1203)
- p.Select_stmt()
- }
- }
- p.SetState(1207)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserON_ {
- {
- p.SetState(1206)
- p.Upsert_clause()
- }
- }
- p.SetState(1210)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserRETURNING_ {
- {
- p.SetState(1209)
- p.Returning_clause()
- }
- }
- case SQLiteParserDEFAULT_:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1212)
- p.Match(SQLiteParserDEFAULT_)
- }
- {
- p.SetState(1213)
- p.Match(SQLiteParserVALUES_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IUpsert_clauseContext is an interface to support dynamic dispatch.
- type IUpsert_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ON_() antlr.TerminalNode
- CONFLICT_() antlr.TerminalNode
- DO_() antlr.TerminalNode
- NOTHING_() antlr.TerminalNode
- UPDATE_() antlr.TerminalNode
- SET_() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- AllIndexed_column() []IIndexed_columnContext
- Indexed_column(i int) IIndexed_columnContext
- CLOSE_PAR() antlr.TerminalNode
- AllASSIGN() []antlr.TerminalNode
- ASSIGN(i int) antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- AllWHERE_() []antlr.TerminalNode
- WHERE_(i int) antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- AllColumn_name_list() []IColumn_name_listContext
- Column_name_list(i int) IColumn_name_listContext
- // IsUpsert_clauseContext differentiates from other interfaces.
- IsUpsert_clauseContext()
- }
- type Upsert_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyUpsert_clauseContext() *Upsert_clauseContext {
- var p = new(Upsert_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_upsert_clause
- return p
- }
- func (*Upsert_clauseContext) IsUpsert_clauseContext() {}
- func NewUpsert_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Upsert_clauseContext {
- var p = new(Upsert_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_upsert_clause
- return p
- }
- func (s *Upsert_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Upsert_clauseContext) ON_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserON_, 0)
- }
- func (s *Upsert_clauseContext) CONFLICT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCONFLICT_, 0)
- }
- func (s *Upsert_clauseContext) DO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDO_, 0)
- }
- func (s *Upsert_clauseContext) NOTHING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOTHING_, 0)
- }
- func (s *Upsert_clauseContext) UPDATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUPDATE_, 0)
- }
- func (s *Upsert_clauseContext) SET_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSET_, 0)
- }
- func (s *Upsert_clauseContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Upsert_clauseContext) AllIndexed_column() []IIndexed_columnContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IIndexed_columnContext); ok {
- len++
- }
- }
- tst := make([]IIndexed_columnContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IIndexed_columnContext); ok {
- tst[i] = t.(IIndexed_columnContext)
- i++
- }
- }
- return tst
- }
- func (s *Upsert_clauseContext) Indexed_column(i int) IIndexed_columnContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IIndexed_columnContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IIndexed_columnContext)
- }
- func (s *Upsert_clauseContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Upsert_clauseContext) AllASSIGN() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserASSIGN)
- }
- func (s *Upsert_clauseContext) ASSIGN(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserASSIGN, i)
- }
- func (s *Upsert_clauseContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Upsert_clauseContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Upsert_clauseContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Upsert_clauseContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Upsert_clauseContext) AllWHERE_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserWHERE_)
- }
- func (s *Upsert_clauseContext) WHERE_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, i)
- }
- func (s *Upsert_clauseContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Upsert_clauseContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Upsert_clauseContext) AllColumn_name_list() []IColumn_name_listContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_name_listContext); ok {
- len++
- }
- }
- tst := make([]IColumn_name_listContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_name_listContext); ok {
- tst[i] = t.(IColumn_name_listContext)
- i++
- }
- }
- return tst
- }
- func (s *Upsert_clauseContext) Column_name_list(i int) IColumn_name_listContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_name_listContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_name_listContext)
- }
- func (s *Upsert_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Upsert_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Upsert_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterUpsert_clause(s)
- }
- }
- func (s *Upsert_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitUpsert_clause(s)
- }
- }
- func (p *SQLiteParser) Upsert_clause() (localctx IUpsert_clauseContext) {
- this := p
- _ = this
- localctx = NewUpsert_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 76, SQLiteParserRULE_upsert_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1216)
- p.Match(SQLiteParserON_)
- }
- {
- p.SetState(1217)
- p.Match(SQLiteParserCONFLICT_)
- }
- p.SetState(1232)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOPEN_PAR {
- {
- p.SetState(1218)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1219)
- p.Indexed_column()
- }
- p.SetState(1224)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1220)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1221)
- p.Indexed_column()
- }
- p.SetState(1226)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1227)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1230)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(1228)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(1229)
- p.expr(0)
- }
- }
- }
- {
- p.SetState(1234)
- p.Match(SQLiteParserDO_)
- }
- p.SetState(1261)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserNOTHING_:
- {
- p.SetState(1235)
- p.Match(SQLiteParserNOTHING_)
- }
- case SQLiteParserUPDATE_:
- {
- p.SetState(1236)
- p.Match(SQLiteParserUPDATE_)
- }
- {
- p.SetState(1237)
- p.Match(SQLiteParserSET_)
- }
- p.SetState(1240)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 163, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1238)
- p.Column_name()
- }
- case 2:
- {
- p.SetState(1239)
- p.Column_name_list()
- }
- }
- {
- p.SetState(1242)
- p.Match(SQLiteParserASSIGN)
- }
- {
- p.SetState(1243)
- p.expr(0)
- }
- p.SetState(1254)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1244)
- p.Match(SQLiteParserCOMMA)
- }
- p.SetState(1247)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 164, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1245)
- p.Column_name()
- }
- case 2:
- {
- p.SetState(1246)
- p.Column_name_list()
- }
- }
- {
- p.SetState(1249)
- p.Match(SQLiteParserASSIGN)
- }
- {
- p.SetState(1250)
- p.expr(0)
- }
- p.SetState(1256)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1259)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(1257)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(1258)
- p.expr(0)
- }
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IPragma_stmtContext is an interface to support dynamic dispatch.
- type IPragma_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- PRAGMA_() antlr.TerminalNode
- Pragma_name() IPragma_nameContext
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- ASSIGN() antlr.TerminalNode
- Pragma_value() IPragma_valueContext
- OPEN_PAR() antlr.TerminalNode
- CLOSE_PAR() antlr.TerminalNode
- // IsPragma_stmtContext differentiates from other interfaces.
- IsPragma_stmtContext()
- }
- type Pragma_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyPragma_stmtContext() *Pragma_stmtContext {
- var p = new(Pragma_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_pragma_stmt
- return p
- }
- func (*Pragma_stmtContext) IsPragma_stmtContext() {}
- func NewPragma_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Pragma_stmtContext {
- var p = new(Pragma_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_pragma_stmt
- return p
- }
- func (s *Pragma_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Pragma_stmtContext) PRAGMA_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRAGMA_, 0)
- }
- func (s *Pragma_stmtContext) Pragma_name() IPragma_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IPragma_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IPragma_nameContext)
- }
- func (s *Pragma_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Pragma_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Pragma_stmtContext) ASSIGN() antlr.TerminalNode {
- return s.GetToken(SQLiteParserASSIGN, 0)
- }
- func (s *Pragma_stmtContext) Pragma_value() IPragma_valueContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IPragma_valueContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IPragma_valueContext)
- }
- func (s *Pragma_stmtContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Pragma_stmtContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Pragma_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Pragma_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Pragma_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterPragma_stmt(s)
- }
- }
- func (s *Pragma_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitPragma_stmt(s)
- }
- }
- func (p *SQLiteParser) Pragma_stmt() (localctx IPragma_stmtContext) {
- this := p
- _ = this
- localctx = NewPragma_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 78, SQLiteParserRULE_pragma_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1263)
- p.Match(SQLiteParserPRAGMA_)
- }
- p.SetState(1267)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 168, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1264)
- p.Schema_name()
- }
- {
- p.SetState(1265)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1269)
- p.Pragma_name()
- }
- p.SetState(1276)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserASSIGN:
- {
- p.SetState(1270)
- p.Match(SQLiteParserASSIGN)
- }
- {
- p.SetState(1271)
- p.Pragma_value()
- }
- case SQLiteParserOPEN_PAR:
- {
- p.SetState(1272)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1273)
- p.Pragma_value()
- }
- {
- p.SetState(1274)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserEOF, SQLiteParserSCOL, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserATTACH_, SQLiteParserBEGIN_, SQLiteParserCOMMIT_, SQLiteParserCREATE_, SQLiteParserDEFAULT_, SQLiteParserDELETE_, SQLiteParserDETACH_, SQLiteParserDROP_, SQLiteParserEND_, SQLiteParserEXPLAIN_, SQLiteParserINSERT_, SQLiteParserPRAGMA_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserREPLACE_, SQLiteParserROLLBACK_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserUPDATE_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserWITH_:
- default:
- }
- return localctx
- }
- // IPragma_valueContext is an interface to support dynamic dispatch.
- type IPragma_valueContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Signed_number() ISigned_numberContext
- Name() INameContext
- STRING_LITERAL() antlr.TerminalNode
- // IsPragma_valueContext differentiates from other interfaces.
- IsPragma_valueContext()
- }
- type Pragma_valueContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyPragma_valueContext() *Pragma_valueContext {
- var p = new(Pragma_valueContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_pragma_value
- return p
- }
- func (*Pragma_valueContext) IsPragma_valueContext() {}
- func NewPragma_valueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Pragma_valueContext {
- var p = new(Pragma_valueContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_pragma_value
- return p
- }
- func (s *Pragma_valueContext) GetParser() antlr.Parser { return s.parser }
- func (s *Pragma_valueContext) Signed_number() ISigned_numberContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISigned_numberContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISigned_numberContext)
- }
- func (s *Pragma_valueContext) Name() INameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(INameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(INameContext)
- }
- func (s *Pragma_valueContext) STRING_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRING_LITERAL, 0)
- }
- func (s *Pragma_valueContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Pragma_valueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Pragma_valueContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterPragma_value(s)
- }
- }
- func (s *Pragma_valueContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitPragma_value(s)
- }
- }
- func (p *SQLiteParser) Pragma_value() (localctx IPragma_valueContext) {
- this := p
- _ = this
- localctx = NewPragma_valueContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 80, SQLiteParserRULE_pragma_value)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1281)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 170, p.GetParserRuleContext()) {
- case 1:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1278)
- p.Signed_number()
- }
- case 2:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1279)
- p.Name()
- }
- case 3:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1280)
- p.Match(SQLiteParserSTRING_LITERAL)
- }
- }
- return localctx
- }
- // IReindex_stmtContext is an interface to support dynamic dispatch.
- type IReindex_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- REINDEX_() antlr.TerminalNode
- Collation_name() ICollation_nameContext
- Table_name() ITable_nameContext
- Index_name() IIndex_nameContext
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- // IsReindex_stmtContext differentiates from other interfaces.
- IsReindex_stmtContext()
- }
- type Reindex_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyReindex_stmtContext() *Reindex_stmtContext {
- var p = new(Reindex_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_reindex_stmt
- return p
- }
- func (*Reindex_stmtContext) IsReindex_stmtContext() {}
- func NewReindex_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Reindex_stmtContext {
- var p = new(Reindex_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_reindex_stmt
- return p
- }
- func (s *Reindex_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Reindex_stmtContext) REINDEX_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREINDEX_, 0)
- }
- func (s *Reindex_stmtContext) Collation_name() ICollation_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICollation_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICollation_nameContext)
- }
- func (s *Reindex_stmtContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Reindex_stmtContext) Index_name() IIndex_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IIndex_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IIndex_nameContext)
- }
- func (s *Reindex_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Reindex_stmtContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Reindex_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Reindex_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Reindex_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterReindex_stmt(s)
- }
- }
- func (s *Reindex_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitReindex_stmt(s)
- }
- }
- func (p *SQLiteParser) Reindex_stmt() (localctx IReindex_stmtContext) {
- this := p
- _ = this
- localctx = NewReindex_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 82, SQLiteParserRULE_reindex_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1283)
- p.Match(SQLiteParserREINDEX_)
- }
- p.SetState(1294)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 173, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1284)
- p.Collation_name()
- }
- } else if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 173, p.GetParserRuleContext()) == 2 {
- p.SetState(1288)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 171, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1285)
- p.Schema_name()
- }
- {
- p.SetState(1286)
- p.Match(SQLiteParserDOT)
- }
- }
- p.SetState(1292)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 172, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1290)
- p.Table_name()
- }
- case 2:
- {
- p.SetState(1291)
- p.Index_name()
- }
- }
- }
- return localctx
- }
- // ISelect_stmtContext is an interface to support dynamic dispatch.
- type ISelect_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- AllSelect_core() []ISelect_coreContext
- Select_core(i int) ISelect_coreContext
- Common_table_stmt() ICommon_table_stmtContext
- AllCompound_operator() []ICompound_operatorContext
- Compound_operator(i int) ICompound_operatorContext
- Order_by_stmt() IOrder_by_stmtContext
- Limit_stmt() ILimit_stmtContext
- // IsSelect_stmtContext differentiates from other interfaces.
- IsSelect_stmtContext()
- }
- type Select_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySelect_stmtContext() *Select_stmtContext {
- var p = new(Select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_select_stmt
- return p
- }
- func (*Select_stmtContext) IsSelect_stmtContext() {}
- func NewSelect_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Select_stmtContext {
- var p = new(Select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_select_stmt
- return p
- }
- func (s *Select_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Select_stmtContext) AllSelect_core() []ISelect_coreContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ISelect_coreContext); ok {
- len++
- }
- }
- tst := make([]ISelect_coreContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ISelect_coreContext); ok {
- tst[i] = t.(ISelect_coreContext)
- i++
- }
- }
- return tst
- }
- func (s *Select_stmtContext) Select_core(i int) ISelect_coreContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_coreContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_coreContext)
- }
- func (s *Select_stmtContext) Common_table_stmt() ICommon_table_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICommon_table_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICommon_table_stmtContext)
- }
- func (s *Select_stmtContext) AllCompound_operator() []ICompound_operatorContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ICompound_operatorContext); ok {
- len++
- }
- }
- tst := make([]ICompound_operatorContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ICompound_operatorContext); ok {
- tst[i] = t.(ICompound_operatorContext)
- i++
- }
- }
- return tst
- }
- func (s *Select_stmtContext) Compound_operator(i int) ICompound_operatorContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICompound_operatorContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICompound_operatorContext)
- }
- func (s *Select_stmtContext) Order_by_stmt() IOrder_by_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_stmtContext)
- }
- func (s *Select_stmtContext) Limit_stmt() ILimit_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ILimit_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ILimit_stmtContext)
- }
- func (s *Select_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Select_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Select_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSelect_stmt(s)
- }
- }
- func (s *Select_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSelect_stmt(s)
- }
- }
- func (p *SQLiteParser) Select_stmt() (localctx ISelect_stmtContext) {
- this := p
- _ = this
- localctx = NewSelect_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 84, SQLiteParserRULE_select_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- var _alt int
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1297)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(1296)
- p.Common_table_stmt()
- }
- }
- {
- p.SetState(1299)
- p.Select_core()
- }
- p.SetState(1305)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 175, p.GetParserRuleContext())
- for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
- if _alt == 1 {
- {
- p.SetState(1300)
- p.Compound_operator()
- }
- {
- p.SetState(1301)
- p.Select_core()
- }
- }
- p.SetState(1307)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 175, p.GetParserRuleContext())
- }
- p.SetState(1309)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserORDER_ {
- {
- p.SetState(1308)
- p.Order_by_stmt()
- }
- }
- p.SetState(1312)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserLIMIT_ {
- {
- p.SetState(1311)
- p.Limit_stmt()
- }
- }
- return localctx
- }
- // IJoin_clauseContext is an interface to support dynamic dispatch.
- type IJoin_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- AllTable_or_subquery() []ITable_or_subqueryContext
- Table_or_subquery(i int) ITable_or_subqueryContext
- AllJoin_operator() []IJoin_operatorContext
- Join_operator(i int) IJoin_operatorContext
- AllJoin_constraint() []IJoin_constraintContext
- Join_constraint(i int) IJoin_constraintContext
- // IsJoin_clauseContext differentiates from other interfaces.
- IsJoin_clauseContext()
- }
- type Join_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyJoin_clauseContext() *Join_clauseContext {
- var p = new(Join_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_join_clause
- return p
- }
- func (*Join_clauseContext) IsJoin_clauseContext() {}
- func NewJoin_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Join_clauseContext {
- var p = new(Join_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_join_clause
- return p
- }
- func (s *Join_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Join_clauseContext) AllTable_or_subquery() []ITable_or_subqueryContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ITable_or_subqueryContext); ok {
- len++
- }
- }
- tst := make([]ITable_or_subqueryContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ITable_or_subqueryContext); ok {
- tst[i] = t.(ITable_or_subqueryContext)
- i++
- }
- }
- return tst
- }
- func (s *Join_clauseContext) Table_or_subquery(i int) ITable_or_subqueryContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_or_subqueryContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_or_subqueryContext)
- }
- func (s *Join_clauseContext) AllJoin_operator() []IJoin_operatorContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IJoin_operatorContext); ok {
- len++
- }
- }
- tst := make([]IJoin_operatorContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IJoin_operatorContext); ok {
- tst[i] = t.(IJoin_operatorContext)
- i++
- }
- }
- return tst
- }
- func (s *Join_clauseContext) Join_operator(i int) IJoin_operatorContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IJoin_operatorContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IJoin_operatorContext)
- }
- func (s *Join_clauseContext) AllJoin_constraint() []IJoin_constraintContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IJoin_constraintContext); ok {
- len++
- }
- }
- tst := make([]IJoin_constraintContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IJoin_constraintContext); ok {
- tst[i] = t.(IJoin_constraintContext)
- i++
- }
- }
- return tst
- }
- func (s *Join_clauseContext) Join_constraint(i int) IJoin_constraintContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IJoin_constraintContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IJoin_constraintContext)
- }
- func (s *Join_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Join_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Join_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterJoin_clause(s)
- }
- }
- func (s *Join_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitJoin_clause(s)
- }
- }
- func (p *SQLiteParser) Join_clause() (localctx IJoin_clauseContext) {
- this := p
- _ = this
- localctx = NewJoin_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 86, SQLiteParserRULE_join_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1314)
- p.Table_or_subquery()
- }
- p.SetState(1321)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA || _la == SQLiteParserCROSS_ || ((int64((_la-78)) & ^0x3f) == 0 && ((int64(1)<<(_la-78))&562949971511297) != 0) {
- {
- p.SetState(1315)
- p.Join_operator()
- }
- {
- p.SetState(1316)
- p.Table_or_subquery()
- }
- {
- p.SetState(1317)
- p.Join_constraint()
- }
- p.SetState(1323)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- return localctx
- }
- // ISelect_coreContext is an interface to support dynamic dispatch.
- type ISelect_coreContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- SELECT_() antlr.TerminalNode
- AllResult_column() []IResult_columnContext
- Result_column(i int) IResult_columnContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- FROM_() antlr.TerminalNode
- WHERE_() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- GROUP_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- WINDOW_() antlr.TerminalNode
- AllWindow_name() []IWindow_nameContext
- Window_name(i int) IWindow_nameContext
- AllAS_() []antlr.TerminalNode
- AS_(i int) antlr.TerminalNode
- AllWindow_defn() []IWindow_defnContext
- Window_defn(i int) IWindow_defnContext
- DISTINCT_() antlr.TerminalNode
- ALL_() antlr.TerminalNode
- AllTable_or_subquery() []ITable_or_subqueryContext
- Table_or_subquery(i int) ITable_or_subqueryContext
- Join_clause() IJoin_clauseContext
- HAVING_() antlr.TerminalNode
- VALUES_() antlr.TerminalNode
- AllOPEN_PAR() []antlr.TerminalNode
- OPEN_PAR(i int) antlr.TerminalNode
- AllCLOSE_PAR() []antlr.TerminalNode
- CLOSE_PAR(i int) antlr.TerminalNode
- // IsSelect_coreContext differentiates from other interfaces.
- IsSelect_coreContext()
- }
- type Select_coreContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySelect_coreContext() *Select_coreContext {
- var p = new(Select_coreContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_select_core
- return p
- }
- func (*Select_coreContext) IsSelect_coreContext() {}
- func NewSelect_coreContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Select_coreContext {
- var p = new(Select_coreContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_select_core
- return p
- }
- func (s *Select_coreContext) GetParser() antlr.Parser { return s.parser }
- func (s *Select_coreContext) SELECT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSELECT_, 0)
- }
- func (s *Select_coreContext) AllResult_column() []IResult_columnContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IResult_columnContext); ok {
- len++
- }
- }
- tst := make([]IResult_columnContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IResult_columnContext); ok {
- tst[i] = t.(IResult_columnContext)
- i++
- }
- }
- return tst
- }
- func (s *Select_coreContext) Result_column(i int) IResult_columnContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IResult_columnContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IResult_columnContext)
- }
- func (s *Select_coreContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Select_coreContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Select_coreContext) FROM_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFROM_, 0)
- }
- func (s *Select_coreContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *Select_coreContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Select_coreContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Select_coreContext) GROUP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGROUP_, 0)
- }
- func (s *Select_coreContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *Select_coreContext) WINDOW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWINDOW_, 0)
- }
- func (s *Select_coreContext) AllWindow_name() []IWindow_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IWindow_nameContext); ok {
- len++
- }
- }
- tst := make([]IWindow_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IWindow_nameContext); ok {
- tst[i] = t.(IWindow_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Select_coreContext) Window_name(i int) IWindow_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWindow_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWindow_nameContext)
- }
- func (s *Select_coreContext) AllAS_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserAS_)
- }
- func (s *Select_coreContext) AS_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, i)
- }
- func (s *Select_coreContext) AllWindow_defn() []IWindow_defnContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IWindow_defnContext); ok {
- len++
- }
- }
- tst := make([]IWindow_defnContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IWindow_defnContext); ok {
- tst[i] = t.(IWindow_defnContext)
- i++
- }
- }
- return tst
- }
- func (s *Select_coreContext) Window_defn(i int) IWindow_defnContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWindow_defnContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWindow_defnContext)
- }
- func (s *Select_coreContext) DISTINCT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDISTINCT_, 0)
- }
- func (s *Select_coreContext) ALL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALL_, 0)
- }
- func (s *Select_coreContext) AllTable_or_subquery() []ITable_or_subqueryContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ITable_or_subqueryContext); ok {
- len++
- }
- }
- tst := make([]ITable_or_subqueryContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ITable_or_subqueryContext); ok {
- tst[i] = t.(ITable_or_subqueryContext)
- i++
- }
- }
- return tst
- }
- func (s *Select_coreContext) Table_or_subquery(i int) ITable_or_subqueryContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_or_subqueryContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_or_subqueryContext)
- }
- func (s *Select_coreContext) Join_clause() IJoin_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IJoin_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IJoin_clauseContext)
- }
- func (s *Select_coreContext) HAVING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserHAVING_, 0)
- }
- func (s *Select_coreContext) VALUES_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVALUES_, 0)
- }
- func (s *Select_coreContext) AllOPEN_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserOPEN_PAR)
- }
- func (s *Select_coreContext) OPEN_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, i)
- }
- func (s *Select_coreContext) AllCLOSE_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCLOSE_PAR)
- }
- func (s *Select_coreContext) CLOSE_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, i)
- }
- func (s *Select_coreContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Select_coreContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Select_coreContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSelect_core(s)
- }
- }
- func (s *Select_coreContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSelect_core(s)
- }
- }
- func (p *SQLiteParser) Select_core() (localctx ISelect_coreContext) {
- this := p
- _ = this
- localctx = NewSelect_coreContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 88, SQLiteParserRULE_select_core)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1414)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserSELECT_:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1324)
- p.Match(SQLiteParserSELECT_)
- }
- p.SetState(1326)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 179, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1325)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserALL_ || _la == SQLiteParserDISTINCT_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(1328)
- p.Result_column()
- }
- p.SetState(1333)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1329)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1330)
- p.Result_column()
- }
- p.SetState(1335)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1348)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserFROM_ {
- {
- p.SetState(1336)
- p.Match(SQLiteParserFROM_)
- }
- p.SetState(1346)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 182, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1337)
- p.Table_or_subquery()
- }
- p.SetState(1342)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1338)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1339)
- p.Table_or_subquery()
- }
- p.SetState(1344)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case 2:
- {
- p.SetState(1345)
- p.Join_clause()
- }
- }
- }
- p.SetState(1352)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(1350)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(1351)
- p.expr(0)
- }
- }
- p.SetState(1368)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserGROUP_ {
- {
- p.SetState(1354)
- p.Match(SQLiteParserGROUP_)
- }
- {
- p.SetState(1355)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1356)
- p.expr(0)
- }
- p.SetState(1361)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1357)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1358)
- p.expr(0)
- }
- p.SetState(1363)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1366)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserHAVING_ {
- {
- p.SetState(1364)
- p.Match(SQLiteParserHAVING_)
- }
- {
- p.SetState(1365)
- p.expr(0)
- }
- }
- }
- p.SetState(1384)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWINDOW_ {
- {
- p.SetState(1370)
- p.Match(SQLiteParserWINDOW_)
- }
- {
- p.SetState(1371)
- p.Window_name()
- }
- {
- p.SetState(1372)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(1373)
- p.Window_defn()
- }
- p.SetState(1381)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1374)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1375)
- p.Window_name()
- }
- {
- p.SetState(1376)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(1377)
- p.Window_defn()
- }
- p.SetState(1383)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- case SQLiteParserVALUES_:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1386)
- p.Match(SQLiteParserVALUES_)
- }
- {
- p.SetState(1387)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1388)
- p.expr(0)
- }
- p.SetState(1393)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1389)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1390)
- p.expr(0)
- }
- p.SetState(1395)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1396)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1411)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1397)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1398)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1399)
- p.expr(0)
- }
- p.SetState(1404)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1400)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1401)
- p.expr(0)
- }
- p.SetState(1406)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1407)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1413)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IFactored_select_stmtContext is an interface to support dynamic dispatch.
- type IFactored_select_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Select_stmt() ISelect_stmtContext
- // IsFactored_select_stmtContext differentiates from other interfaces.
- IsFactored_select_stmtContext()
- }
- type Factored_select_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFactored_select_stmtContext() *Factored_select_stmtContext {
- var p = new(Factored_select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_factored_select_stmt
- return p
- }
- func (*Factored_select_stmtContext) IsFactored_select_stmtContext() {}
- func NewFactored_select_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Factored_select_stmtContext {
- var p = new(Factored_select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_factored_select_stmt
- return p
- }
- func (s *Factored_select_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Factored_select_stmtContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Factored_select_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Factored_select_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Factored_select_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFactored_select_stmt(s)
- }
- }
- func (s *Factored_select_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFactored_select_stmt(s)
- }
- }
- func (p *SQLiteParser) Factored_select_stmt() (localctx IFactored_select_stmtContext) {
- this := p
- _ = this
- localctx = NewFactored_select_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 90, SQLiteParserRULE_factored_select_stmt)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1416)
- p.Select_stmt()
- }
- return localctx
- }
- // ISimple_select_stmtContext is an interface to support dynamic dispatch.
- type ISimple_select_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Select_core() ISelect_coreContext
- Common_table_stmt() ICommon_table_stmtContext
- Order_by_stmt() IOrder_by_stmtContext
- Limit_stmt() ILimit_stmtContext
- // IsSimple_select_stmtContext differentiates from other interfaces.
- IsSimple_select_stmtContext()
- }
- type Simple_select_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySimple_select_stmtContext() *Simple_select_stmtContext {
- var p = new(Simple_select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_simple_select_stmt
- return p
- }
- func (*Simple_select_stmtContext) IsSimple_select_stmtContext() {}
- func NewSimple_select_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Simple_select_stmtContext {
- var p = new(Simple_select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_simple_select_stmt
- return p
- }
- func (s *Simple_select_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Simple_select_stmtContext) Select_core() ISelect_coreContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_coreContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_coreContext)
- }
- func (s *Simple_select_stmtContext) Common_table_stmt() ICommon_table_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICommon_table_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICommon_table_stmtContext)
- }
- func (s *Simple_select_stmtContext) Order_by_stmt() IOrder_by_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_stmtContext)
- }
- func (s *Simple_select_stmtContext) Limit_stmt() ILimit_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ILimit_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ILimit_stmtContext)
- }
- func (s *Simple_select_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Simple_select_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Simple_select_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSimple_select_stmt(s)
- }
- }
- func (s *Simple_select_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSimple_select_stmt(s)
- }
- }
- func (p *SQLiteParser) Simple_select_stmt() (localctx ISimple_select_stmtContext) {
- this := p
- _ = this
- localctx = NewSimple_select_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 92, SQLiteParserRULE_simple_select_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1419)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(1418)
- p.Common_table_stmt()
- }
- }
- {
- p.SetState(1421)
- p.Select_core()
- }
- p.SetState(1423)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserORDER_ {
- {
- p.SetState(1422)
- p.Order_by_stmt()
- }
- }
- p.SetState(1426)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserLIMIT_ {
- {
- p.SetState(1425)
- p.Limit_stmt()
- }
- }
- return localctx
- }
- // ICompound_select_stmtContext is an interface to support dynamic dispatch.
- type ICompound_select_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- AllSelect_core() []ISelect_coreContext
- Select_core(i int) ISelect_coreContext
- Common_table_stmt() ICommon_table_stmtContext
- Order_by_stmt() IOrder_by_stmtContext
- Limit_stmt() ILimit_stmtContext
- AllUNION_() []antlr.TerminalNode
- UNION_(i int) antlr.TerminalNode
- AllINTERSECT_() []antlr.TerminalNode
- INTERSECT_(i int) antlr.TerminalNode
- AllEXCEPT_() []antlr.TerminalNode
- EXCEPT_(i int) antlr.TerminalNode
- AllALL_() []antlr.TerminalNode
- ALL_(i int) antlr.TerminalNode
- // IsCompound_select_stmtContext differentiates from other interfaces.
- IsCompound_select_stmtContext()
- }
- type Compound_select_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCompound_select_stmtContext() *Compound_select_stmtContext {
- var p = new(Compound_select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_compound_select_stmt
- return p
- }
- func (*Compound_select_stmtContext) IsCompound_select_stmtContext() {}
- func NewCompound_select_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Compound_select_stmtContext {
- var p = new(Compound_select_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_compound_select_stmt
- return p
- }
- func (s *Compound_select_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Compound_select_stmtContext) AllSelect_core() []ISelect_coreContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ISelect_coreContext); ok {
- len++
- }
- }
- tst := make([]ISelect_coreContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ISelect_coreContext); ok {
- tst[i] = t.(ISelect_coreContext)
- i++
- }
- }
- return tst
- }
- func (s *Compound_select_stmtContext) Select_core(i int) ISelect_coreContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_coreContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_coreContext)
- }
- func (s *Compound_select_stmtContext) Common_table_stmt() ICommon_table_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICommon_table_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICommon_table_stmtContext)
- }
- func (s *Compound_select_stmtContext) Order_by_stmt() IOrder_by_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_stmtContext)
- }
- func (s *Compound_select_stmtContext) Limit_stmt() ILimit_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ILimit_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ILimit_stmtContext)
- }
- func (s *Compound_select_stmtContext) AllUNION_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserUNION_)
- }
- func (s *Compound_select_stmtContext) UNION_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNION_, i)
- }
- func (s *Compound_select_stmtContext) AllINTERSECT_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserINTERSECT_)
- }
- func (s *Compound_select_stmtContext) INTERSECT_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserINTERSECT_, i)
- }
- func (s *Compound_select_stmtContext) AllEXCEPT_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserEXCEPT_)
- }
- func (s *Compound_select_stmtContext) EXCEPT_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXCEPT_, i)
- }
- func (s *Compound_select_stmtContext) AllALL_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserALL_)
- }
- func (s *Compound_select_stmtContext) ALL_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserALL_, i)
- }
- func (s *Compound_select_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Compound_select_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Compound_select_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCompound_select_stmt(s)
- }
- }
- func (s *Compound_select_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCompound_select_stmt(s)
- }
- }
- func (p *SQLiteParser) Compound_select_stmt() (localctx ICompound_select_stmtContext) {
- this := p
- _ = this
- localctx = NewCompound_select_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 94, SQLiteParserRULE_compound_select_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1429)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(1428)
- p.Common_table_stmt()
- }
- }
- {
- p.SetState(1431)
- p.Select_core()
- }
- p.SetState(1441)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for ok := true; ok; ok = _la == SQLiteParserEXCEPT_ || _la == SQLiteParserINTERSECT_ || _la == SQLiteParserUNION_ {
- p.SetState(1438)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserUNION_:
- {
- p.SetState(1432)
- p.Match(SQLiteParserUNION_)
- }
- p.SetState(1434)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserALL_ {
- {
- p.SetState(1433)
- p.Match(SQLiteParserALL_)
- }
- }
- case SQLiteParserINTERSECT_:
- {
- p.SetState(1436)
- p.Match(SQLiteParserINTERSECT_)
- }
- case SQLiteParserEXCEPT_:
- {
- p.SetState(1437)
- p.Match(SQLiteParserEXCEPT_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- {
- p.SetState(1440)
- p.Select_core()
- }
- p.SetState(1443)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1446)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserORDER_ {
- {
- p.SetState(1445)
- p.Order_by_stmt()
- }
- }
- p.SetState(1449)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserLIMIT_ {
- {
- p.SetState(1448)
- p.Limit_stmt()
- }
- }
- return localctx
- }
- // ITable_or_subqueryContext is an interface to support dynamic dispatch.
- type ITable_or_subqueryContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Table_name() ITable_nameContext
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- Table_alias() ITable_aliasContext
- INDEXED_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- Index_name() IIndex_nameContext
- NOT_() antlr.TerminalNode
- AS_() antlr.TerminalNode
- Table_function_name() ITable_function_nameContext
- OPEN_PAR() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- CLOSE_PAR() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- AllTable_or_subquery() []ITable_or_subqueryContext
- Table_or_subquery(i int) ITable_or_subqueryContext
- Join_clause() IJoin_clauseContext
- Select_stmt() ISelect_stmtContext
- Table_alias_fallback() ITable_alias_fallbackContext
- // IsTable_or_subqueryContext differentiates from other interfaces.
- IsTable_or_subqueryContext()
- }
- type Table_or_subqueryContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTable_or_subqueryContext() *Table_or_subqueryContext {
- var p = new(Table_or_subqueryContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_or_subquery
- return p
- }
- func (*Table_or_subqueryContext) IsTable_or_subqueryContext() {}
- func NewTable_or_subqueryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_or_subqueryContext {
- var p = new(Table_or_subqueryContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_or_subquery
- return p
- }
- func (s *Table_or_subqueryContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_or_subqueryContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Table_or_subqueryContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Table_or_subqueryContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Table_or_subqueryContext) Table_alias() ITable_aliasContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_aliasContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_aliasContext)
- }
- func (s *Table_or_subqueryContext) INDEXED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINDEXED_, 0)
- }
- func (s *Table_or_subqueryContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *Table_or_subqueryContext) Index_name() IIndex_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IIndex_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IIndex_nameContext)
- }
- func (s *Table_or_subqueryContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Table_or_subqueryContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Table_or_subqueryContext) Table_function_name() ITable_function_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_function_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_function_nameContext)
- }
- func (s *Table_or_subqueryContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Table_or_subqueryContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Table_or_subqueryContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Table_or_subqueryContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Table_or_subqueryContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Table_or_subqueryContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Table_or_subqueryContext) AllTable_or_subquery() []ITable_or_subqueryContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ITable_or_subqueryContext); ok {
- len++
- }
- }
- tst := make([]ITable_or_subqueryContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ITable_or_subqueryContext); ok {
- tst[i] = t.(ITable_or_subqueryContext)
- i++
- }
- }
- return tst
- }
- func (s *Table_or_subqueryContext) Table_or_subquery(i int) ITable_or_subqueryContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_or_subqueryContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_or_subqueryContext)
- }
- func (s *Table_or_subqueryContext) Join_clause() IJoin_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IJoin_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IJoin_clauseContext)
- }
- func (s *Table_or_subqueryContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Table_or_subqueryContext) Table_alias_fallback() ITable_alias_fallbackContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_alias_fallbackContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_alias_fallbackContext)
- }
- func (s *Table_or_subqueryContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_or_subqueryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_or_subqueryContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_or_subquery(s)
- }
- }
- func (s *Table_or_subqueryContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_or_subquery(s)
- }
- }
- func (p *SQLiteParser) Table_or_subquery() (localctx ITable_or_subqueryContext) {
- this := p
- _ = this
- localctx = NewTable_or_subqueryContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 96, SQLiteParserRULE_table_or_subquery)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1579)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 227, p.GetParserRuleContext()) {
- case 1:
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1454)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 203, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1451)
- p.Schema_name()
- }
- {
- p.SetState(1452)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1456)
- p.Table_name()
- }
- p.SetState(1461)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ || _la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL {
- p.SetState(1458)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(1457)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(1460)
- p.Table_alias()
- }
- }
- p.SetState(1468)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserINDEXED_:
- {
- p.SetState(1463)
- p.Match(SQLiteParserINDEXED_)
- }
- {
- p.SetState(1464)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1465)
- p.Index_name()
- }
- case SQLiteParserNOT_:
- {
- p.SetState(1466)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(1467)
- p.Match(SQLiteParserINDEXED_)
- }
- case SQLiteParserEOF, SQLiteParserSCOL, SQLiteParserCLOSE_PAR, SQLiteParserCOMMA, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserATTACH_, SQLiteParserBEGIN_, SQLiteParserCOMMIT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserDEFAULT_, SQLiteParserDELETE_, SQLiteParserDETACH_, SQLiteParserDROP_, SQLiteParserEND_, SQLiteParserEXCEPT_, SQLiteParserEXPLAIN_, SQLiteParserFULL_, SQLiteParserGROUP_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINTERSECT_, SQLiteParserJOIN_, SQLiteParserLEFT_, SQLiteParserLIMIT_, SQLiteParserNATURAL_, SQLiteParserON_, SQLiteParserORDER_, SQLiteParserPRAGMA_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserREPLACE_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserUNION_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWINDOW_:
- default:
- }
- case 2:
- p.EnterOuterAlt(localctx, 2)
- p.SetState(1473)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 207, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1470)
- p.Schema_name()
- }
- {
- p.SetState(1471)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1475)
- p.Table_function_name()
- }
- {
- p.SetState(1476)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1477)
- p.expr(0)
- }
- p.SetState(1482)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1478)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1479)
- p.expr(0)
- }
- p.SetState(1484)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1485)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1490)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ || _la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL {
- p.SetState(1487)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(1486)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(1489)
- p.Table_alias()
- }
- }
- case 3:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1492)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1502)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 212, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1493)
- p.Table_or_subquery()
- }
- p.SetState(1498)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1494)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1495)
- p.Table_or_subquery()
- }
- p.SetState(1500)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case 2:
- {
- p.SetState(1501)
- p.Join_clause()
- }
- }
- {
- p.SetState(1504)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case 4:
- p.EnterOuterAlt(localctx, 4)
- {
- p.SetState(1506)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1507)
- p.Select_stmt()
- }
- {
- p.SetState(1508)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1513)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ || _la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL {
- p.SetState(1510)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(1509)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(1512)
- p.Table_alias()
- }
- }
- case 5:
- p.EnterOuterAlt(localctx, 5)
- p.SetState(1518)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 215, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1515)
- p.Schema_name()
- }
- {
- p.SetState(1516)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1520)
- p.Table_name()
- }
- p.SetState(1525)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 217, p.GetParserRuleContext()) == 1 {
- p.SetState(1522)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 216, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1521)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(1524)
- p.Table_alias_fallback()
- }
- }
- p.SetState(1532)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserINDEXED_:
- {
- p.SetState(1527)
- p.Match(SQLiteParserINDEXED_)
- }
- {
- p.SetState(1528)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1529)
- p.Index_name()
- }
- case SQLiteParserNOT_:
- {
- p.SetState(1530)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(1531)
- p.Match(SQLiteParserINDEXED_)
- }
- case SQLiteParserEOF, SQLiteParserSCOL, SQLiteParserCLOSE_PAR, SQLiteParserCOMMA, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserATTACH_, SQLiteParserBEGIN_, SQLiteParserCOMMIT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserDEFAULT_, SQLiteParserDELETE_, SQLiteParserDETACH_, SQLiteParserDROP_, SQLiteParserEND_, SQLiteParserEXCEPT_, SQLiteParserEXPLAIN_, SQLiteParserFULL_, SQLiteParserGROUP_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINTERSECT_, SQLiteParserJOIN_, SQLiteParserLEFT_, SQLiteParserLIMIT_, SQLiteParserNATURAL_, SQLiteParserON_, SQLiteParserORDER_, SQLiteParserPRAGMA_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserREPLACE_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserUNION_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWINDOW_:
- default:
- }
- case 6:
- p.EnterOuterAlt(localctx, 6)
- p.SetState(1537)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 219, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1534)
- p.Schema_name()
- }
- {
- p.SetState(1535)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1539)
- p.Table_function_name()
- }
- {
- p.SetState(1540)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1541)
- p.expr(0)
- }
- p.SetState(1546)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1542)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1543)
- p.expr(0)
- }
- p.SetState(1548)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1549)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1554)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 222, p.GetParserRuleContext()) == 1 {
- p.SetState(1551)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 221, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1550)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(1553)
- p.Table_alias_fallback()
- }
- }
- case 7:
- p.EnterOuterAlt(localctx, 7)
- {
- p.SetState(1556)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1566)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 224, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1557)
- p.Table_or_subquery()
- }
- p.SetState(1562)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1558)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1559)
- p.Table_or_subquery()
- }
- p.SetState(1564)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case 2:
- {
- p.SetState(1565)
- p.Join_clause()
- }
- }
- {
- p.SetState(1568)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case 8:
- p.EnterOuterAlt(localctx, 8)
- {
- p.SetState(1570)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1571)
- p.Select_stmt()
- }
- {
- p.SetState(1572)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1577)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 226, p.GetParserRuleContext()) == 1 {
- p.SetState(1574)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 225, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1573)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(1576)
- p.Table_alias_fallback()
- }
- }
- }
- return localctx
- }
- // IResult_columnContext is an interface to support dynamic dispatch.
- type IResult_columnContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- STAR() antlr.TerminalNode
- Table_name() ITable_nameContext
- DOT() antlr.TerminalNode
- Expr() IExprContext
- Column_alias() IColumn_aliasContext
- AS_() antlr.TerminalNode
- // IsResult_columnContext differentiates from other interfaces.
- IsResult_columnContext()
- }
- type Result_columnContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyResult_columnContext() *Result_columnContext {
- var p = new(Result_columnContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_result_column
- return p
- }
- func (*Result_columnContext) IsResult_columnContext() {}
- func NewResult_columnContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Result_columnContext {
- var p = new(Result_columnContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_result_column
- return p
- }
- func (s *Result_columnContext) GetParser() antlr.Parser { return s.parser }
- func (s *Result_columnContext) STAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTAR, 0)
- }
- func (s *Result_columnContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Result_columnContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Result_columnContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Result_columnContext) Column_alias() IColumn_aliasContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_aliasContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_aliasContext)
- }
- func (s *Result_columnContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Result_columnContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Result_columnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Result_columnContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterResult_column(s)
- }
- }
- func (s *Result_columnContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitResult_column(s)
- }
- }
- func (p *SQLiteParser) Result_column() (localctx IResult_columnContext) {
- this := p
- _ = this
- localctx = NewResult_columnContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 98, SQLiteParserRULE_result_column)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1593)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 230, p.GetParserRuleContext()) {
- case 1:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1581)
- p.Match(SQLiteParserSTAR)
- }
- case 2:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1582)
- p.Table_name()
- }
- {
- p.SetState(1583)
- p.Match(SQLiteParserDOT)
- }
- {
- p.SetState(1584)
- p.Match(SQLiteParserSTAR)
- }
- case 3:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1586)
- p.expr(0)
- }
- p.SetState(1591)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ || _la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL {
- p.SetState(1588)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(1587)
- p.Match(SQLiteParserAS_)
- }
- }
- {
- p.SetState(1590)
- p.Column_alias()
- }
- }
- }
- return localctx
- }
- // IJoin_operatorContext is an interface to support dynamic dispatch.
- type IJoin_operatorContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- COMMA() antlr.TerminalNode
- JOIN_() antlr.TerminalNode
- NATURAL_() antlr.TerminalNode
- INNER_() antlr.TerminalNode
- LEFT_() antlr.TerminalNode
- RIGHT_() antlr.TerminalNode
- FULL_() antlr.TerminalNode
- OUTER_() antlr.TerminalNode
- CROSS_() antlr.TerminalNode
- // IsJoin_operatorContext differentiates from other interfaces.
- IsJoin_operatorContext()
- }
- type Join_operatorContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyJoin_operatorContext() *Join_operatorContext {
- var p = new(Join_operatorContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_join_operator
- return p
- }
- func (*Join_operatorContext) IsJoin_operatorContext() {}
- func NewJoin_operatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Join_operatorContext {
- var p = new(Join_operatorContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_join_operator
- return p
- }
- func (s *Join_operatorContext) GetParser() antlr.Parser { return s.parser }
- func (s *Join_operatorContext) COMMA() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, 0)
- }
- func (s *Join_operatorContext) JOIN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserJOIN_, 0)
- }
- func (s *Join_operatorContext) NATURAL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNATURAL_, 0)
- }
- func (s *Join_operatorContext) INNER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINNER_, 0)
- }
- func (s *Join_operatorContext) LEFT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLEFT_, 0)
- }
- func (s *Join_operatorContext) RIGHT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRIGHT_, 0)
- }
- func (s *Join_operatorContext) FULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFULL_, 0)
- }
- func (s *Join_operatorContext) OUTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOUTER_, 0)
- }
- func (s *Join_operatorContext) CROSS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCROSS_, 0)
- }
- func (s *Join_operatorContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Join_operatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Join_operatorContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterJoin_operator(s)
- }
- }
- func (s *Join_operatorContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitJoin_operator(s)
- }
- }
- func (p *SQLiteParser) Join_operator() (localctx IJoin_operatorContext) {
- this := p
- _ = this
- localctx = NewJoin_operatorContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 100, SQLiteParserRULE_join_operator)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1609)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserCOMMA:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1595)
- p.Match(SQLiteParserCOMMA)
- }
- case SQLiteParserFULL_, SQLiteParserINNER_, SQLiteParserJOIN_, SQLiteParserLEFT_, SQLiteParserNATURAL_, SQLiteParserRIGHT_:
- p.EnterOuterAlt(localctx, 2)
- p.SetState(1597)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNATURAL_ {
- {
- p.SetState(1596)
- p.Match(SQLiteParserNATURAL_)
- }
- }
- p.SetState(1604)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserFULL_, SQLiteParserLEFT_, SQLiteParserRIGHT_:
- {
- p.SetState(1599)
- _la = p.GetTokenStream().LA(1)
- if !((int64((_la-78)) & ^0x3f) == 0 && ((int64(1)<<(_la-78))&562949954469889) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- p.SetState(1601)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserOUTER_ {
- {
- p.SetState(1600)
- p.Match(SQLiteParserOUTER_)
- }
- }
- case SQLiteParserINNER_:
- {
- p.SetState(1603)
- p.Match(SQLiteParserINNER_)
- }
- case SQLiteParserJOIN_:
- default:
- }
- {
- p.SetState(1606)
- p.Match(SQLiteParserJOIN_)
- }
- case SQLiteParserCROSS_:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1607)
- p.Match(SQLiteParserCROSS_)
- }
- {
- p.SetState(1608)
- p.Match(SQLiteParserJOIN_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IJoin_constraintContext is an interface to support dynamic dispatch.
- type IJoin_constraintContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ON_() antlr.TerminalNode
- Expr() IExprContext
- USING_() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- CLOSE_PAR() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsJoin_constraintContext differentiates from other interfaces.
- IsJoin_constraintContext()
- }
- type Join_constraintContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyJoin_constraintContext() *Join_constraintContext {
- var p = new(Join_constraintContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_join_constraint
- return p
- }
- func (*Join_constraintContext) IsJoin_constraintContext() {}
- func NewJoin_constraintContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Join_constraintContext {
- var p = new(Join_constraintContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_join_constraint
- return p
- }
- func (s *Join_constraintContext) GetParser() antlr.Parser { return s.parser }
- func (s *Join_constraintContext) ON_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserON_, 0)
- }
- func (s *Join_constraintContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Join_constraintContext) USING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUSING_, 0)
- }
- func (s *Join_constraintContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Join_constraintContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Join_constraintContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Join_constraintContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Join_constraintContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Join_constraintContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Join_constraintContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Join_constraintContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Join_constraintContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterJoin_constraint(s)
- }
- }
- func (s *Join_constraintContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitJoin_constraint(s)
- }
- }
- func (p *SQLiteParser) Join_constraint() (localctx IJoin_constraintContext) {
- this := p
- _ = this
- localctx = NewJoin_constraintContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 102, SQLiteParserRULE_join_constraint)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1625)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 236, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1611)
- p.Match(SQLiteParserON_)
- }
- {
- p.SetState(1612)
- p.expr(0)
- }
- } else if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 236, p.GetParserRuleContext()) == 2 {
- {
- p.SetState(1613)
- p.Match(SQLiteParserUSING_)
- }
- {
- p.SetState(1614)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1615)
- p.Column_name()
- }
- p.SetState(1620)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1616)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1617)
- p.Column_name()
- }
- p.SetState(1622)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1623)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- return localctx
- }
- // ICompound_operatorContext is an interface to support dynamic dispatch.
- type ICompound_operatorContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- UNION_() antlr.TerminalNode
- ALL_() antlr.TerminalNode
- INTERSECT_() antlr.TerminalNode
- EXCEPT_() antlr.TerminalNode
- // IsCompound_operatorContext differentiates from other interfaces.
- IsCompound_operatorContext()
- }
- type Compound_operatorContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCompound_operatorContext() *Compound_operatorContext {
- var p = new(Compound_operatorContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_compound_operator
- return p
- }
- func (*Compound_operatorContext) IsCompound_operatorContext() {}
- func NewCompound_operatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Compound_operatorContext {
- var p = new(Compound_operatorContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_compound_operator
- return p
- }
- func (s *Compound_operatorContext) GetParser() antlr.Parser { return s.parser }
- func (s *Compound_operatorContext) UNION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNION_, 0)
- }
- func (s *Compound_operatorContext) ALL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALL_, 0)
- }
- func (s *Compound_operatorContext) INTERSECT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINTERSECT_, 0)
- }
- func (s *Compound_operatorContext) EXCEPT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXCEPT_, 0)
- }
- func (s *Compound_operatorContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Compound_operatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Compound_operatorContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCompound_operator(s)
- }
- }
- func (s *Compound_operatorContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCompound_operator(s)
- }
- }
- func (p *SQLiteParser) Compound_operator() (localctx ICompound_operatorContext) {
- this := p
- _ = this
- localctx = NewCompound_operatorContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 104, SQLiteParserRULE_compound_operator)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1633)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserUNION_:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1627)
- p.Match(SQLiteParserUNION_)
- }
- p.SetState(1629)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserALL_ {
- {
- p.SetState(1628)
- p.Match(SQLiteParserALL_)
- }
- }
- case SQLiteParserINTERSECT_:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1631)
- p.Match(SQLiteParserINTERSECT_)
- }
- case SQLiteParserEXCEPT_:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1632)
- p.Match(SQLiteParserEXCEPT_)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IUpdate_stmtContext is an interface to support dynamic dispatch.
- type IUpdate_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- UPDATE_() antlr.TerminalNode
- Qualified_table_name() IQualified_table_nameContext
- SET_() antlr.TerminalNode
- AllASSIGN() []antlr.TerminalNode
- ASSIGN(i int) antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- AllColumn_name_list() []IColumn_name_listContext
- Column_name_list(i int) IColumn_name_listContext
- With_clause() IWith_clauseContext
- OR_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- WHERE_() antlr.TerminalNode
- Returning_clause() IReturning_clauseContext
- ROLLBACK_() antlr.TerminalNode
- ABORT_() antlr.TerminalNode
- REPLACE_() antlr.TerminalNode
- FAIL_() antlr.TerminalNode
- IGNORE_() antlr.TerminalNode
- // IsUpdate_stmtContext differentiates from other interfaces.
- IsUpdate_stmtContext()
- }
- type Update_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyUpdate_stmtContext() *Update_stmtContext {
- var p = new(Update_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_update_stmt
- return p
- }
- func (*Update_stmtContext) IsUpdate_stmtContext() {}
- func NewUpdate_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Update_stmtContext {
- var p = new(Update_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_update_stmt
- return p
- }
- func (s *Update_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Update_stmtContext) UPDATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUPDATE_, 0)
- }
- func (s *Update_stmtContext) Qualified_table_name() IQualified_table_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IQualified_table_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IQualified_table_nameContext)
- }
- func (s *Update_stmtContext) SET_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSET_, 0)
- }
- func (s *Update_stmtContext) AllASSIGN() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserASSIGN)
- }
- func (s *Update_stmtContext) ASSIGN(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserASSIGN, i)
- }
- func (s *Update_stmtContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Update_stmtContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Update_stmtContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Update_stmtContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Update_stmtContext) AllColumn_name_list() []IColumn_name_listContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_name_listContext); ok {
- len++
- }
- }
- tst := make([]IColumn_name_listContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_name_listContext); ok {
- tst[i] = t.(IColumn_name_listContext)
- i++
- }
- }
- return tst
- }
- func (s *Update_stmtContext) Column_name_list(i int) IColumn_name_listContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_name_listContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_name_listContext)
- }
- func (s *Update_stmtContext) With_clause() IWith_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWith_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWith_clauseContext)
- }
- func (s *Update_stmtContext) OR_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOR_, 0)
- }
- func (s *Update_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Update_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Update_stmtContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *Update_stmtContext) Returning_clause() IReturning_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IReturning_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IReturning_clauseContext)
- }
- func (s *Update_stmtContext) ROLLBACK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROLLBACK_, 0)
- }
- func (s *Update_stmtContext) ABORT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserABORT_, 0)
- }
- func (s *Update_stmtContext) REPLACE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREPLACE_, 0)
- }
- func (s *Update_stmtContext) FAIL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFAIL_, 0)
- }
- func (s *Update_stmtContext) IGNORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIGNORE_, 0)
- }
- func (s *Update_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Update_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Update_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterUpdate_stmt(s)
- }
- }
- func (s *Update_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitUpdate_stmt(s)
- }
- }
- func (p *SQLiteParser) Update_stmt() (localctx IUpdate_stmtContext) {
- this := p
- _ = this
- localctx = NewUpdate_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 106, SQLiteParserRULE_update_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1636)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(1635)
- p.With_clause()
- }
- }
- {
- p.SetState(1638)
- p.Match(SQLiteParserUPDATE_)
- }
- p.SetState(1641)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 240, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1639)
- p.Match(SQLiteParserOR_)
- }
- {
- p.SetState(1640)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserABORT_ || ((int64((_la-74)) & ^0x3f) == 0 && ((int64(1)<<(_la-74))&19140298416325121) != 0)) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(1643)
- p.Qualified_table_name()
- }
- {
- p.SetState(1644)
- p.Match(SQLiteParserSET_)
- }
- p.SetState(1647)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 241, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1645)
- p.Column_name()
- }
- case 2:
- {
- p.SetState(1646)
- p.Column_name_list()
- }
- }
- {
- p.SetState(1649)
- p.Match(SQLiteParserASSIGN)
- }
- {
- p.SetState(1650)
- p.expr(0)
- }
- p.SetState(1661)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1651)
- p.Match(SQLiteParserCOMMA)
- }
- p.SetState(1654)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 242, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1652)
- p.Column_name()
- }
- case 2:
- {
- p.SetState(1653)
- p.Column_name_list()
- }
- }
- {
- p.SetState(1656)
- p.Match(SQLiteParserASSIGN)
- }
- {
- p.SetState(1657)
- p.expr(0)
- }
- p.SetState(1663)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1666)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(1664)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(1665)
- p.expr(0)
- }
- }
- p.SetState(1669)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserRETURNING_ {
- {
- p.SetState(1668)
- p.Returning_clause()
- }
- }
- return localctx
- }
- // IColumn_name_listContext is an interface to support dynamic dispatch.
- type IColumn_name_listContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- OPEN_PAR() antlr.TerminalNode
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- CLOSE_PAR() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsColumn_name_listContext differentiates from other interfaces.
- IsColumn_name_listContext()
- }
- type Column_name_listContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyColumn_name_listContext() *Column_name_listContext {
- var p = new(Column_name_listContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_column_name_list
- return p
- }
- func (*Column_name_listContext) IsColumn_name_listContext() {}
- func NewColumn_name_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Column_name_listContext {
- var p = new(Column_name_listContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_column_name_list
- return p
- }
- func (s *Column_name_listContext) GetParser() antlr.Parser { return s.parser }
- func (s *Column_name_listContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Column_name_listContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Column_name_listContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Column_name_listContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Column_name_listContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Column_name_listContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Column_name_listContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Column_name_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Column_name_listContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterColumn_name_list(s)
- }
- }
- func (s *Column_name_listContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitColumn_name_list(s)
- }
- }
- func (p *SQLiteParser) Column_name_list() (localctx IColumn_name_listContext) {
- this := p
- _ = this
- localctx = NewColumn_name_listContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 108, SQLiteParserRULE_column_name_list)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1671)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1672)
- p.Column_name()
- }
- p.SetState(1677)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1673)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1674)
- p.Column_name()
- }
- p.SetState(1679)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- {
- p.SetState(1680)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- return localctx
- }
- // IUpdate_stmt_limitedContext is an interface to support dynamic dispatch.
- type IUpdate_stmt_limitedContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- UPDATE_() antlr.TerminalNode
- Qualified_table_name() IQualified_table_nameContext
- SET_() antlr.TerminalNode
- AllASSIGN() []antlr.TerminalNode
- ASSIGN(i int) antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- AllColumn_name() []IColumn_nameContext
- Column_name(i int) IColumn_nameContext
- AllColumn_name_list() []IColumn_name_listContext
- Column_name_list(i int) IColumn_name_listContext
- With_clause() IWith_clauseContext
- OR_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- WHERE_() antlr.TerminalNode
- Limit_stmt() ILimit_stmtContext
- ROLLBACK_() antlr.TerminalNode
- ABORT_() antlr.TerminalNode
- REPLACE_() antlr.TerminalNode
- FAIL_() antlr.TerminalNode
- IGNORE_() antlr.TerminalNode
- Order_by_stmt() IOrder_by_stmtContext
- // IsUpdate_stmt_limitedContext differentiates from other interfaces.
- IsUpdate_stmt_limitedContext()
- }
- type Update_stmt_limitedContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyUpdate_stmt_limitedContext() *Update_stmt_limitedContext {
- var p = new(Update_stmt_limitedContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_update_stmt_limited
- return p
- }
- func (*Update_stmt_limitedContext) IsUpdate_stmt_limitedContext() {}
- func NewUpdate_stmt_limitedContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Update_stmt_limitedContext {
- var p = new(Update_stmt_limitedContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_update_stmt_limited
- return p
- }
- func (s *Update_stmt_limitedContext) GetParser() antlr.Parser { return s.parser }
- func (s *Update_stmt_limitedContext) UPDATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUPDATE_, 0)
- }
- func (s *Update_stmt_limitedContext) Qualified_table_name() IQualified_table_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IQualified_table_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IQualified_table_nameContext)
- }
- func (s *Update_stmt_limitedContext) SET_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSET_, 0)
- }
- func (s *Update_stmt_limitedContext) AllASSIGN() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserASSIGN)
- }
- func (s *Update_stmt_limitedContext) ASSIGN(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserASSIGN, i)
- }
- func (s *Update_stmt_limitedContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Update_stmt_limitedContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Update_stmt_limitedContext) AllColumn_name() []IColumn_nameContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_nameContext); ok {
- len++
- }
- }
- tst := make([]IColumn_nameContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_nameContext); ok {
- tst[i] = t.(IColumn_nameContext)
- i++
- }
- }
- return tst
- }
- func (s *Update_stmt_limitedContext) Column_name(i int) IColumn_nameContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_nameContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_nameContext)
- }
- func (s *Update_stmt_limitedContext) AllColumn_name_list() []IColumn_name_listContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IColumn_name_listContext); ok {
- len++
- }
- }
- tst := make([]IColumn_name_listContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IColumn_name_listContext); ok {
- tst[i] = t.(IColumn_name_listContext)
- i++
- }
- }
- return tst
- }
- func (s *Update_stmt_limitedContext) Column_name_list(i int) IColumn_name_listContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_name_listContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_name_listContext)
- }
- func (s *Update_stmt_limitedContext) With_clause() IWith_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWith_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWith_clauseContext)
- }
- func (s *Update_stmt_limitedContext) OR_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOR_, 0)
- }
- func (s *Update_stmt_limitedContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Update_stmt_limitedContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Update_stmt_limitedContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *Update_stmt_limitedContext) Limit_stmt() ILimit_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ILimit_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ILimit_stmtContext)
- }
- func (s *Update_stmt_limitedContext) ROLLBACK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROLLBACK_, 0)
- }
- func (s *Update_stmt_limitedContext) ABORT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserABORT_, 0)
- }
- func (s *Update_stmt_limitedContext) REPLACE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREPLACE_, 0)
- }
- func (s *Update_stmt_limitedContext) FAIL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFAIL_, 0)
- }
- func (s *Update_stmt_limitedContext) IGNORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIGNORE_, 0)
- }
- func (s *Update_stmt_limitedContext) Order_by_stmt() IOrder_by_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_stmtContext)
- }
- func (s *Update_stmt_limitedContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Update_stmt_limitedContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Update_stmt_limitedContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterUpdate_stmt_limited(s)
- }
- }
- func (s *Update_stmt_limitedContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitUpdate_stmt_limited(s)
- }
- }
- func (p *SQLiteParser) Update_stmt_limited() (localctx IUpdate_stmt_limitedContext) {
- this := p
- _ = this
- localctx = NewUpdate_stmt_limitedContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 110, SQLiteParserRULE_update_stmt_limited)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1683)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWITH_ {
- {
- p.SetState(1682)
- p.With_clause()
- }
- }
- {
- p.SetState(1685)
- p.Match(SQLiteParserUPDATE_)
- }
- p.SetState(1688)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 248, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1686)
- p.Match(SQLiteParserOR_)
- }
- {
- p.SetState(1687)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserABORT_ || ((int64((_la-74)) & ^0x3f) == 0 && ((int64(1)<<(_la-74))&19140298416325121) != 0)) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- {
- p.SetState(1690)
- p.Qualified_table_name()
- }
- {
- p.SetState(1691)
- p.Match(SQLiteParserSET_)
- }
- p.SetState(1694)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 249, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1692)
- p.Column_name()
- }
- case 2:
- {
- p.SetState(1693)
- p.Column_name_list()
- }
- }
- {
- p.SetState(1696)
- p.Match(SQLiteParserASSIGN)
- }
- {
- p.SetState(1697)
- p.expr(0)
- }
- p.SetState(1708)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1698)
- p.Match(SQLiteParserCOMMA)
- }
- p.SetState(1701)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 250, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1699)
- p.Column_name()
- }
- case 2:
- {
- p.SetState(1700)
- p.Column_name_list()
- }
- }
- {
- p.SetState(1703)
- p.Match(SQLiteParserASSIGN)
- }
- {
- p.SetState(1704)
- p.expr(0)
- }
- p.SetState(1710)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1713)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserWHERE_ {
- {
- p.SetState(1711)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(1712)
- p.expr(0)
- }
- }
- p.SetState(1719)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserLIMIT_ || _la == SQLiteParserORDER_ {
- p.SetState(1716)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserORDER_ {
- {
- p.SetState(1715)
- p.Order_by_stmt()
- }
- }
- {
- p.SetState(1718)
- p.Limit_stmt()
- }
- }
- return localctx
- }
- // IQualified_table_nameContext is an interface to support dynamic dispatch.
- type IQualified_table_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Table_name() ITable_nameContext
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- AS_() antlr.TerminalNode
- Alias() IAliasContext
- INDEXED_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- Index_name() IIndex_nameContext
- NOT_() antlr.TerminalNode
- // IsQualified_table_nameContext differentiates from other interfaces.
- IsQualified_table_nameContext()
- }
- type Qualified_table_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyQualified_table_nameContext() *Qualified_table_nameContext {
- var p = new(Qualified_table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_qualified_table_name
- return p
- }
- func (*Qualified_table_nameContext) IsQualified_table_nameContext() {}
- func NewQualified_table_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Qualified_table_nameContext {
- var p = new(Qualified_table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_qualified_table_name
- return p
- }
- func (s *Qualified_table_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Qualified_table_nameContext) Table_name() ITable_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ITable_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ITable_nameContext)
- }
- func (s *Qualified_table_nameContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Qualified_table_nameContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Qualified_table_nameContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *Qualified_table_nameContext) Alias() IAliasContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAliasContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAliasContext)
- }
- func (s *Qualified_table_nameContext) INDEXED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINDEXED_, 0)
- }
- func (s *Qualified_table_nameContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *Qualified_table_nameContext) Index_name() IIndex_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IIndex_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IIndex_nameContext)
- }
- func (s *Qualified_table_nameContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Qualified_table_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Qualified_table_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Qualified_table_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterQualified_table_name(s)
- }
- }
- func (s *Qualified_table_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitQualified_table_name(s)
- }
- }
- func (p *SQLiteParser) Qualified_table_name() (localctx IQualified_table_nameContext) {
- this := p
- _ = this
- localctx = NewQualified_table_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 112, SQLiteParserRULE_qualified_table_name)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(1724)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 255, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1721)
- p.Schema_name()
- }
- {
- p.SetState(1722)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(1726)
- p.Table_name()
- }
- p.SetState(1729)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserAS_ {
- {
- p.SetState(1727)
- p.Match(SQLiteParserAS_)
- }
- {
- p.SetState(1728)
- p.Alias()
- }
- }
- p.SetState(1736)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserINDEXED_:
- {
- p.SetState(1731)
- p.Match(SQLiteParserINDEXED_)
- }
- {
- p.SetState(1732)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1733)
- p.Index_name()
- }
- case SQLiteParserNOT_:
- {
- p.SetState(1734)
- p.Match(SQLiteParserNOT_)
- }
- {
- p.SetState(1735)
- p.Match(SQLiteParserINDEXED_)
- }
- case SQLiteParserEOF, SQLiteParserSCOL, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserATTACH_, SQLiteParserBEGIN_, SQLiteParserCOMMIT_, SQLiteParserCREATE_, SQLiteParserDEFAULT_, SQLiteParserDELETE_, SQLiteParserDETACH_, SQLiteParserDROP_, SQLiteParserEND_, SQLiteParserEXPLAIN_, SQLiteParserINSERT_, SQLiteParserLIMIT_, SQLiteParserORDER_, SQLiteParserPRAGMA_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserREPLACE_, SQLiteParserRETURNING_, SQLiteParserROLLBACK_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserUPDATE_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserWHERE_, SQLiteParserWITH_:
- default:
- }
- return localctx
- }
- // IVacuum_stmtContext is an interface to support dynamic dispatch.
- type IVacuum_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- VACUUM_() antlr.TerminalNode
- Schema_name() ISchema_nameContext
- INTO_() antlr.TerminalNode
- Filename() IFilenameContext
- // IsVacuum_stmtContext differentiates from other interfaces.
- IsVacuum_stmtContext()
- }
- type Vacuum_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyVacuum_stmtContext() *Vacuum_stmtContext {
- var p = new(Vacuum_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_vacuum_stmt
- return p
- }
- func (*Vacuum_stmtContext) IsVacuum_stmtContext() {}
- func NewVacuum_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Vacuum_stmtContext {
- var p = new(Vacuum_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_vacuum_stmt
- return p
- }
- func (s *Vacuum_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Vacuum_stmtContext) VACUUM_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVACUUM_, 0)
- }
- func (s *Vacuum_stmtContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Vacuum_stmtContext) INTO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINTO_, 0)
- }
- func (s *Vacuum_stmtContext) Filename() IFilenameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFilenameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFilenameContext)
- }
- func (s *Vacuum_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Vacuum_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Vacuum_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterVacuum_stmt(s)
- }
- }
- func (s *Vacuum_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitVacuum_stmt(s)
- }
- }
- func (p *SQLiteParser) Vacuum_stmt() (localctx IVacuum_stmtContext) {
- this := p
- _ = this
- localctx = NewVacuum_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 114, SQLiteParserRULE_vacuum_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1738)
- p.Match(SQLiteParserVACUUM_)
- }
- p.SetState(1740)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 258, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1739)
- p.Schema_name()
- }
- }
- p.SetState(1744)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserINTO_ {
- {
- p.SetState(1742)
- p.Match(SQLiteParserINTO_)
- }
- {
- p.SetState(1743)
- p.Filename()
- }
- }
- return localctx
- }
- // IFilter_clauseContext is an interface to support dynamic dispatch.
- type IFilter_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- FILTER_() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- WHERE_() antlr.TerminalNode
- Expr() IExprContext
- CLOSE_PAR() antlr.TerminalNode
- // IsFilter_clauseContext differentiates from other interfaces.
- IsFilter_clauseContext()
- }
- type Filter_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFilter_clauseContext() *Filter_clauseContext {
- var p = new(Filter_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_filter_clause
- return p
- }
- func (*Filter_clauseContext) IsFilter_clauseContext() {}
- func NewFilter_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Filter_clauseContext {
- var p = new(Filter_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_filter_clause
- return p
- }
- func (s *Filter_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Filter_clauseContext) FILTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFILTER_, 0)
- }
- func (s *Filter_clauseContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Filter_clauseContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *Filter_clauseContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Filter_clauseContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Filter_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Filter_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Filter_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFilter_clause(s)
- }
- }
- func (s *Filter_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFilter_clause(s)
- }
- }
- func (p *SQLiteParser) Filter_clause() (localctx IFilter_clauseContext) {
- this := p
- _ = this
- localctx = NewFilter_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 116, SQLiteParserRULE_filter_clause)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1746)
- p.Match(SQLiteParserFILTER_)
- }
- {
- p.SetState(1747)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1748)
- p.Match(SQLiteParserWHERE_)
- }
- {
- p.SetState(1749)
- p.expr(0)
- }
- {
- p.SetState(1750)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- return localctx
- }
- // IWindow_defnContext is an interface to support dynamic dispatch.
- type IWindow_defnContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- OPEN_PAR() antlr.TerminalNode
- CLOSE_PAR() antlr.TerminalNode
- ORDER_() antlr.TerminalNode
- AllBY_() []antlr.TerminalNode
- BY_(i int) antlr.TerminalNode
- AllOrdering_term() []IOrdering_termContext
- Ordering_term(i int) IOrdering_termContext
- Base_window_name() IBase_window_nameContext
- PARTITION_() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- Frame_spec() IFrame_specContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsWindow_defnContext differentiates from other interfaces.
- IsWindow_defnContext()
- }
- type Window_defnContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyWindow_defnContext() *Window_defnContext {
- var p = new(Window_defnContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_window_defn
- return p
- }
- func (*Window_defnContext) IsWindow_defnContext() {}
- func NewWindow_defnContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Window_defnContext {
- var p = new(Window_defnContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_window_defn
- return p
- }
- func (s *Window_defnContext) GetParser() antlr.Parser { return s.parser }
- func (s *Window_defnContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Window_defnContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Window_defnContext) ORDER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserORDER_, 0)
- }
- func (s *Window_defnContext) AllBY_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserBY_)
- }
- func (s *Window_defnContext) BY_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, i)
- }
- func (s *Window_defnContext) AllOrdering_term() []IOrdering_termContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IOrdering_termContext); ok {
- len++
- }
- }
- tst := make([]IOrdering_termContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IOrdering_termContext); ok {
- tst[i] = t.(IOrdering_termContext)
- i++
- }
- }
- return tst
- }
- func (s *Window_defnContext) Ordering_term(i int) IOrdering_termContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrdering_termContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrdering_termContext)
- }
- func (s *Window_defnContext) Base_window_name() IBase_window_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IBase_window_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IBase_window_nameContext)
- }
- func (s *Window_defnContext) PARTITION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPARTITION_, 0)
- }
- func (s *Window_defnContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Window_defnContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Window_defnContext) Frame_spec() IFrame_specContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFrame_specContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFrame_specContext)
- }
- func (s *Window_defnContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Window_defnContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Window_defnContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Window_defnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Window_defnContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterWindow_defn(s)
- }
- }
- func (s *Window_defnContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitWindow_defn(s)
- }
- }
- func (p *SQLiteParser) Window_defn() (localctx IWindow_defnContext) {
- this := p
- _ = this
- localctx = NewWindow_defnContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 118, SQLiteParserRULE_window_defn)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1752)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1754)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 260, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1753)
- p.Base_window_name()
- }
- }
- p.SetState(1766)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(1756)
- p.Match(SQLiteParserPARTITION_)
- }
- {
- p.SetState(1757)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1758)
- p.expr(0)
- }
- p.SetState(1763)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1759)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1760)
- p.expr(0)
- }
- p.SetState(1765)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- {
- p.SetState(1768)
- p.Match(SQLiteParserORDER_)
- }
- {
- p.SetState(1769)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1770)
- p.Ordering_term()
- }
- p.SetState(1775)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1771)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1772)
- p.Ordering_term()
- }
- p.SetState(1777)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- p.SetState(1779)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if (int64((_la-130)) & ^0x3f) == 0 && ((int64(1)<<(_la-130))&4503599761588225) != 0 {
- {
- p.SetState(1778)
- p.Frame_spec()
- }
- }
- {
- p.SetState(1781)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- return localctx
- }
- // IOver_clauseContext is an interface to support dynamic dispatch.
- type IOver_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- OVER_() antlr.TerminalNode
- Window_name() IWindow_nameContext
- OPEN_PAR() antlr.TerminalNode
- CLOSE_PAR() antlr.TerminalNode
- Base_window_name() IBase_window_nameContext
- PARTITION_() antlr.TerminalNode
- AllBY_() []antlr.TerminalNode
- BY_(i int) antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- ORDER_() antlr.TerminalNode
- AllOrdering_term() []IOrdering_termContext
- Ordering_term(i int) IOrdering_termContext
- Frame_spec() IFrame_specContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsOver_clauseContext differentiates from other interfaces.
- IsOver_clauseContext()
- }
- type Over_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyOver_clauseContext() *Over_clauseContext {
- var p = new(Over_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_over_clause
- return p
- }
- func (*Over_clauseContext) IsOver_clauseContext() {}
- func NewOver_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Over_clauseContext {
- var p = new(Over_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_over_clause
- return p
- }
- func (s *Over_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Over_clauseContext) OVER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOVER_, 0)
- }
- func (s *Over_clauseContext) Window_name() IWindow_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWindow_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWindow_nameContext)
- }
- func (s *Over_clauseContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Over_clauseContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Over_clauseContext) Base_window_name() IBase_window_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IBase_window_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IBase_window_nameContext)
- }
- func (s *Over_clauseContext) PARTITION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPARTITION_, 0)
- }
- func (s *Over_clauseContext) AllBY_() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserBY_)
- }
- func (s *Over_clauseContext) BY_(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, i)
- }
- func (s *Over_clauseContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Over_clauseContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Over_clauseContext) ORDER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserORDER_, 0)
- }
- func (s *Over_clauseContext) AllOrdering_term() []IOrdering_termContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IOrdering_termContext); ok {
- len++
- }
- }
- tst := make([]IOrdering_termContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IOrdering_termContext); ok {
- tst[i] = t.(IOrdering_termContext)
- i++
- }
- }
- return tst
- }
- func (s *Over_clauseContext) Ordering_term(i int) IOrdering_termContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrdering_termContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrdering_termContext)
- }
- func (s *Over_clauseContext) Frame_spec() IFrame_specContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFrame_specContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFrame_specContext)
- }
- func (s *Over_clauseContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Over_clauseContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Over_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Over_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Over_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterOver_clause(s)
- }
- }
- func (s *Over_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitOver_clause(s)
- }
- }
- func (p *SQLiteParser) Over_clause() (localctx IOver_clauseContext) {
- this := p
- _ = this
- localctx = NewOver_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 120, SQLiteParserRULE_over_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1783)
- p.Match(SQLiteParserOVER_)
- }
- p.SetState(1817)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 271, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1784)
- p.Window_name()
- }
- case 2:
- {
- p.SetState(1785)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1787)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 265, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1786)
- p.Base_window_name()
- }
- }
- p.SetState(1799)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(1789)
- p.Match(SQLiteParserPARTITION_)
- }
- {
- p.SetState(1790)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1791)
- p.expr(0)
- }
- p.SetState(1796)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1792)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1793)
- p.expr(0)
- }
- p.SetState(1798)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- p.SetState(1811)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserORDER_ {
- {
- p.SetState(1801)
- p.Match(SQLiteParserORDER_)
- }
- {
- p.SetState(1802)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1803)
- p.Ordering_term()
- }
- p.SetState(1808)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1804)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1805)
- p.Ordering_term()
- }
- p.SetState(1810)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- }
- p.SetState(1814)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if (int64((_la-130)) & ^0x3f) == 0 && ((int64(1)<<(_la-130))&4503599761588225) != 0 {
- {
- p.SetState(1813)
- p.Frame_spec()
- }
- }
- {
- p.SetState(1816)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- }
- return localctx
- }
- // IFrame_specContext is an interface to support dynamic dispatch.
- type IFrame_specContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Frame_clause() IFrame_clauseContext
- EXCLUDE_() antlr.TerminalNode
- CURRENT_() antlr.TerminalNode
- ROW_() antlr.TerminalNode
- GROUP_() antlr.TerminalNode
- TIES_() antlr.TerminalNode
- NO_() antlr.TerminalNode
- OTHERS_() antlr.TerminalNode
- // IsFrame_specContext differentiates from other interfaces.
- IsFrame_specContext()
- }
- type Frame_specContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFrame_specContext() *Frame_specContext {
- var p = new(Frame_specContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_frame_spec
- return p
- }
- func (*Frame_specContext) IsFrame_specContext() {}
- func NewFrame_specContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Frame_specContext {
- var p = new(Frame_specContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_frame_spec
- return p
- }
- func (s *Frame_specContext) GetParser() antlr.Parser { return s.parser }
- func (s *Frame_specContext) Frame_clause() IFrame_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFrame_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFrame_clauseContext)
- }
- func (s *Frame_specContext) EXCLUDE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXCLUDE_, 0)
- }
- func (s *Frame_specContext) CURRENT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_, 0)
- }
- func (s *Frame_specContext) ROW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_, 0)
- }
- func (s *Frame_specContext) GROUP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGROUP_, 0)
- }
- func (s *Frame_specContext) TIES_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTIES_, 0)
- }
- func (s *Frame_specContext) NO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNO_, 0)
- }
- func (s *Frame_specContext) OTHERS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOTHERS_, 0)
- }
- func (s *Frame_specContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Frame_specContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Frame_specContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFrame_spec(s)
- }
- }
- func (s *Frame_specContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFrame_spec(s)
- }
- }
- func (p *SQLiteParser) Frame_spec() (localctx IFrame_specContext) {
- this := p
- _ = this
- localctx = NewFrame_specContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 122, SQLiteParserRULE_frame_spec)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1819)
- p.Frame_clause()
- }
- p.SetState(1827)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserEXCLUDE_:
- {
- p.SetState(1820)
- p.Match(SQLiteParserEXCLUDE_)
- }
- {
- p.SetState(1821)
- p.Match(SQLiteParserNO_)
- }
- {
- p.SetState(1822)
- p.Match(SQLiteParserOTHERS_)
- }
- case SQLiteParserCURRENT_:
- {
- p.SetState(1823)
- p.Match(SQLiteParserCURRENT_)
- }
- {
- p.SetState(1824)
- p.Match(SQLiteParserROW_)
- }
- case SQLiteParserGROUP_:
- {
- p.SetState(1825)
- p.Match(SQLiteParserGROUP_)
- }
- case SQLiteParserTIES_:
- {
- p.SetState(1826)
- p.Match(SQLiteParserTIES_)
- }
- case SQLiteParserCLOSE_PAR:
- default:
- }
- return localctx
- }
- // IFrame_clauseContext is an interface to support dynamic dispatch.
- type IFrame_clauseContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- RANGE_() antlr.TerminalNode
- ROWS_() antlr.TerminalNode
- GROUPS_() antlr.TerminalNode
- Frame_single() IFrame_singleContext
- BETWEEN_() antlr.TerminalNode
- Frame_left() IFrame_leftContext
- AND_() antlr.TerminalNode
- Frame_right() IFrame_rightContext
- // IsFrame_clauseContext differentiates from other interfaces.
- IsFrame_clauseContext()
- }
- type Frame_clauseContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFrame_clauseContext() *Frame_clauseContext {
- var p = new(Frame_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_frame_clause
- return p
- }
- func (*Frame_clauseContext) IsFrame_clauseContext() {}
- func NewFrame_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Frame_clauseContext {
- var p = new(Frame_clauseContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_frame_clause
- return p
- }
- func (s *Frame_clauseContext) GetParser() antlr.Parser { return s.parser }
- func (s *Frame_clauseContext) RANGE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRANGE_, 0)
- }
- func (s *Frame_clauseContext) ROWS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROWS_, 0)
- }
- func (s *Frame_clauseContext) GROUPS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGROUPS_, 0)
- }
- func (s *Frame_clauseContext) Frame_single() IFrame_singleContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFrame_singleContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFrame_singleContext)
- }
- func (s *Frame_clauseContext) BETWEEN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBETWEEN_, 0)
- }
- func (s *Frame_clauseContext) Frame_left() IFrame_leftContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFrame_leftContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFrame_leftContext)
- }
- func (s *Frame_clauseContext) AND_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAND_, 0)
- }
- func (s *Frame_clauseContext) Frame_right() IFrame_rightContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFrame_rightContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFrame_rightContext)
- }
- func (s *Frame_clauseContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Frame_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Frame_clauseContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFrame_clause(s)
- }
- }
- func (s *Frame_clauseContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFrame_clause(s)
- }
- }
- func (p *SQLiteParser) Frame_clause() (localctx IFrame_clauseContext) {
- this := p
- _ = this
- localctx = NewFrame_clauseContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 124, SQLiteParserRULE_frame_clause)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1829)
- _la = p.GetTokenStream().LA(1)
- if !((int64((_la-130)) & ^0x3f) == 0 && ((int64(1)<<(_la-130))&4503599761588225) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- p.SetState(1836)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 273, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1830)
- p.Frame_single()
- }
- case 2:
- {
- p.SetState(1831)
- p.Match(SQLiteParserBETWEEN_)
- }
- {
- p.SetState(1832)
- p.Frame_left()
- }
- {
- p.SetState(1833)
- p.Match(SQLiteParserAND_)
- }
- {
- p.SetState(1834)
- p.Frame_right()
- }
- }
- return localctx
- }
- // ISimple_function_invocationContext is an interface to support dynamic dispatch.
- type ISimple_function_invocationContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Simple_func() ISimple_funcContext
- OPEN_PAR() antlr.TerminalNode
- CLOSE_PAR() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- STAR() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsSimple_function_invocationContext differentiates from other interfaces.
- IsSimple_function_invocationContext()
- }
- type Simple_function_invocationContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySimple_function_invocationContext() *Simple_function_invocationContext {
- var p = new(Simple_function_invocationContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_simple_function_invocation
- return p
- }
- func (*Simple_function_invocationContext) IsSimple_function_invocationContext() {}
- func NewSimple_function_invocationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Simple_function_invocationContext {
- var p = new(Simple_function_invocationContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_simple_function_invocation
- return p
- }
- func (s *Simple_function_invocationContext) GetParser() antlr.Parser { return s.parser }
- func (s *Simple_function_invocationContext) Simple_func() ISimple_funcContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISimple_funcContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISimple_funcContext)
- }
- func (s *Simple_function_invocationContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Simple_function_invocationContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Simple_function_invocationContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Simple_function_invocationContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Simple_function_invocationContext) STAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTAR, 0)
- }
- func (s *Simple_function_invocationContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Simple_function_invocationContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Simple_function_invocationContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Simple_function_invocationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Simple_function_invocationContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSimple_function_invocation(s)
- }
- }
- func (s *Simple_function_invocationContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSimple_function_invocation(s)
- }
- }
- func (p *SQLiteParser) Simple_function_invocation() (localctx ISimple_function_invocationContext) {
- this := p
- _ = this
- localctx = NewSimple_function_invocationContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 126, SQLiteParserRULE_simple_function_invocation)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1838)
- p.Simple_func()
- }
- {
- p.SetState(1839)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1849)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserOPEN_PAR, SQLiteParserPLUS, SQLiteParserMINUS, SQLiteParserTILDE, SQLiteParserABORT_, SQLiteParserACTION_, SQLiteParserADD_, SQLiteParserAFTER_, SQLiteParserALL_, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserAND_, SQLiteParserAS_, SQLiteParserASC_, SQLiteParserATTACH_, SQLiteParserAUTOINCREMENT_, SQLiteParserBEFORE_, SQLiteParserBEGIN_, SQLiteParserBETWEEN_, SQLiteParserBY_, SQLiteParserCASCADE_, SQLiteParserCASE_, SQLiteParserCAST_, SQLiteParserCHECK_, SQLiteParserCOLLATE_, SQLiteParserCOLUMN_, SQLiteParserCOMMIT_, SQLiteParserCONFLICT_, SQLiteParserCONSTRAINT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserCURRENT_DATE_, SQLiteParserCURRENT_TIME_, SQLiteParserCURRENT_TIMESTAMP_, SQLiteParserDATABASE_, SQLiteParserDEFAULT_, SQLiteParserDEFERRABLE_, SQLiteParserDEFERRED_, SQLiteParserDELETE_, SQLiteParserDESC_, SQLiteParserDETACH_, SQLiteParserDISTINCT_, SQLiteParserDROP_, SQLiteParserEACH_, SQLiteParserELSE_, SQLiteParserEND_, SQLiteParserESCAPE_, SQLiteParserEXCEPT_, SQLiteParserEXCLUSIVE_, SQLiteParserEXISTS_, SQLiteParserEXPLAIN_, SQLiteParserFAIL_, SQLiteParserFOR_, SQLiteParserFOREIGN_, SQLiteParserFROM_, SQLiteParserFULL_, SQLiteParserGLOB_, SQLiteParserGROUP_, SQLiteParserHAVING_, SQLiteParserIF_, SQLiteParserIGNORE_, SQLiteParserIMMEDIATE_, SQLiteParserIN_, SQLiteParserINDEX_, SQLiteParserINDEXED_, SQLiteParserINITIALLY_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINSTEAD_, SQLiteParserINTERSECT_, SQLiteParserINTO_, SQLiteParserIS_, SQLiteParserISNULL_, SQLiteParserJOIN_, SQLiteParserKEY_, SQLiteParserLEFT_, SQLiteParserLIKE_, SQLiteParserLIMIT_, SQLiteParserMATCH_, SQLiteParserNATURAL_, SQLiteParserNO_, SQLiteParserNOT_, SQLiteParserNOTNULL_, SQLiteParserNULL_, SQLiteParserOF_, SQLiteParserOFFSET_, SQLiteParserON_, SQLiteParserOR_, SQLiteParserORDER_, SQLiteParserOUTER_, SQLiteParserPLAN_, SQLiteParserPRAGMA_, SQLiteParserPRIMARY_, SQLiteParserQUERY_, SQLiteParserRAISE_, SQLiteParserRECURSIVE_, SQLiteParserREFERENCES_, SQLiteParserREGEXP_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserRENAME_, SQLiteParserREPLACE_, SQLiteParserRESTRICT_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserROW_, SQLiteParserROWS_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserSTRICT_, SQLiteParserTABLE_, SQLiteParserTEMP_, SQLiteParserTEMPORARY_, SQLiteParserTHEN_, SQLiteParserTO_, SQLiteParserTRANSACTION_, SQLiteParserTRIGGER_, SQLiteParserUNION_, SQLiteParserUNIQUE_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserVIEW_, SQLiteParserVIRTUAL_, SQLiteParserWHEN_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWITHOUT_, SQLiteParserFIRST_VALUE_, SQLiteParserOVER_, SQLiteParserPARTITION_, SQLiteParserRANGE_, SQLiteParserPRECEDING_, SQLiteParserUNBOUNDED_, SQLiteParserCURRENT_, SQLiteParserFOLLOWING_, SQLiteParserCUME_DIST_, SQLiteParserDENSE_RANK_, SQLiteParserLAG_, SQLiteParserLAST_VALUE_, SQLiteParserLEAD_, SQLiteParserNTH_VALUE_, SQLiteParserNTILE_, SQLiteParserPERCENT_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_, SQLiteParserGENERATED_, SQLiteParserALWAYS_, SQLiteParserSTORED_, SQLiteParserTRUE_, SQLiteParserFALSE_, SQLiteParserWINDOW_, SQLiteParserNULLS_, SQLiteParserFIRST_, SQLiteParserLAST_, SQLiteParserFILTER_, SQLiteParserGROUPS_, SQLiteParserEXCLUDE_, SQLiteParserIDENTIFIER, SQLiteParserNUMERIC_LITERAL, SQLiteParserNUMBERED_BIND_PARAMETER, SQLiteParserNAMED_BIND_PARAMETER, SQLiteParserSTRING_LITERAL, SQLiteParserBLOB_LITERAL:
- {
- p.SetState(1840)
- p.expr(0)
- }
- p.SetState(1845)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1841)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1842)
- p.expr(0)
- }
- p.SetState(1847)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case SQLiteParserSTAR:
- {
- p.SetState(1848)
- p.Match(SQLiteParserSTAR)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- {
- p.SetState(1851)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- return localctx
- }
- // IAggregate_function_invocationContext is an interface to support dynamic dispatch.
- type IAggregate_function_invocationContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Aggregate_func() IAggregate_funcContext
- OPEN_PAR() antlr.TerminalNode
- CLOSE_PAR() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- STAR() antlr.TerminalNode
- Filter_clause() IFilter_clauseContext
- DISTINCT_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsAggregate_function_invocationContext differentiates from other interfaces.
- IsAggregate_function_invocationContext()
- }
- type Aggregate_function_invocationContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyAggregate_function_invocationContext() *Aggregate_function_invocationContext {
- var p = new(Aggregate_function_invocationContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_aggregate_function_invocation
- return p
- }
- func (*Aggregate_function_invocationContext) IsAggregate_function_invocationContext() {}
- func NewAggregate_function_invocationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Aggregate_function_invocationContext {
- var p = new(Aggregate_function_invocationContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_aggregate_function_invocation
- return p
- }
- func (s *Aggregate_function_invocationContext) GetParser() antlr.Parser { return s.parser }
- func (s *Aggregate_function_invocationContext) Aggregate_func() IAggregate_funcContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAggregate_funcContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAggregate_funcContext)
- }
- func (s *Aggregate_function_invocationContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Aggregate_function_invocationContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Aggregate_function_invocationContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Aggregate_function_invocationContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Aggregate_function_invocationContext) STAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTAR, 0)
- }
- func (s *Aggregate_function_invocationContext) Filter_clause() IFilter_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFilter_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFilter_clauseContext)
- }
- func (s *Aggregate_function_invocationContext) DISTINCT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDISTINCT_, 0)
- }
- func (s *Aggregate_function_invocationContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Aggregate_function_invocationContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Aggregate_function_invocationContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Aggregate_function_invocationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Aggregate_function_invocationContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAggregate_function_invocation(s)
- }
- }
- func (s *Aggregate_function_invocationContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAggregate_function_invocation(s)
- }
- }
- func (p *SQLiteParser) Aggregate_function_invocation() (localctx IAggregate_function_invocationContext) {
- this := p
- _ = this
- localctx = NewAggregate_function_invocationContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 128, SQLiteParserRULE_aggregate_function_invocation)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1853)
- p.Aggregate_func()
- }
- {
- p.SetState(1854)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1867)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserOPEN_PAR, SQLiteParserPLUS, SQLiteParserMINUS, SQLiteParserTILDE, SQLiteParserABORT_, SQLiteParserACTION_, SQLiteParserADD_, SQLiteParserAFTER_, SQLiteParserALL_, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserAND_, SQLiteParserAS_, SQLiteParserASC_, SQLiteParserATTACH_, SQLiteParserAUTOINCREMENT_, SQLiteParserBEFORE_, SQLiteParserBEGIN_, SQLiteParserBETWEEN_, SQLiteParserBY_, SQLiteParserCASCADE_, SQLiteParserCASE_, SQLiteParserCAST_, SQLiteParserCHECK_, SQLiteParserCOLLATE_, SQLiteParserCOLUMN_, SQLiteParserCOMMIT_, SQLiteParserCONFLICT_, SQLiteParserCONSTRAINT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserCURRENT_DATE_, SQLiteParserCURRENT_TIME_, SQLiteParserCURRENT_TIMESTAMP_, SQLiteParserDATABASE_, SQLiteParserDEFAULT_, SQLiteParserDEFERRABLE_, SQLiteParserDEFERRED_, SQLiteParserDELETE_, SQLiteParserDESC_, SQLiteParserDETACH_, SQLiteParserDISTINCT_, SQLiteParserDROP_, SQLiteParserEACH_, SQLiteParserELSE_, SQLiteParserEND_, SQLiteParserESCAPE_, SQLiteParserEXCEPT_, SQLiteParserEXCLUSIVE_, SQLiteParserEXISTS_, SQLiteParserEXPLAIN_, SQLiteParserFAIL_, SQLiteParserFOR_, SQLiteParserFOREIGN_, SQLiteParserFROM_, SQLiteParserFULL_, SQLiteParserGLOB_, SQLiteParserGROUP_, SQLiteParserHAVING_, SQLiteParserIF_, SQLiteParserIGNORE_, SQLiteParserIMMEDIATE_, SQLiteParserIN_, SQLiteParserINDEX_, SQLiteParserINDEXED_, SQLiteParserINITIALLY_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINSTEAD_, SQLiteParserINTERSECT_, SQLiteParserINTO_, SQLiteParserIS_, SQLiteParserISNULL_, SQLiteParserJOIN_, SQLiteParserKEY_, SQLiteParserLEFT_, SQLiteParserLIKE_, SQLiteParserLIMIT_, SQLiteParserMATCH_, SQLiteParserNATURAL_, SQLiteParserNO_, SQLiteParserNOT_, SQLiteParserNOTNULL_, SQLiteParserNULL_, SQLiteParserOF_, SQLiteParserOFFSET_, SQLiteParserON_, SQLiteParserOR_, SQLiteParserORDER_, SQLiteParserOUTER_, SQLiteParserPLAN_, SQLiteParserPRAGMA_, SQLiteParserPRIMARY_, SQLiteParserQUERY_, SQLiteParserRAISE_, SQLiteParserRECURSIVE_, SQLiteParserREFERENCES_, SQLiteParserREGEXP_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserRENAME_, SQLiteParserREPLACE_, SQLiteParserRESTRICT_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserROW_, SQLiteParserROWS_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserSTRICT_, SQLiteParserTABLE_, SQLiteParserTEMP_, SQLiteParserTEMPORARY_, SQLiteParserTHEN_, SQLiteParserTO_, SQLiteParserTRANSACTION_, SQLiteParserTRIGGER_, SQLiteParserUNION_, SQLiteParserUNIQUE_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserVIEW_, SQLiteParserVIRTUAL_, SQLiteParserWHEN_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWITHOUT_, SQLiteParserFIRST_VALUE_, SQLiteParserOVER_, SQLiteParserPARTITION_, SQLiteParserRANGE_, SQLiteParserPRECEDING_, SQLiteParserUNBOUNDED_, SQLiteParserCURRENT_, SQLiteParserFOLLOWING_, SQLiteParserCUME_DIST_, SQLiteParserDENSE_RANK_, SQLiteParserLAG_, SQLiteParserLAST_VALUE_, SQLiteParserLEAD_, SQLiteParserNTH_VALUE_, SQLiteParserNTILE_, SQLiteParserPERCENT_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_, SQLiteParserGENERATED_, SQLiteParserALWAYS_, SQLiteParserSTORED_, SQLiteParserTRUE_, SQLiteParserFALSE_, SQLiteParserWINDOW_, SQLiteParserNULLS_, SQLiteParserFIRST_, SQLiteParserLAST_, SQLiteParserFILTER_, SQLiteParserGROUPS_, SQLiteParserEXCLUDE_, SQLiteParserIDENTIFIER, SQLiteParserNUMERIC_LITERAL, SQLiteParserNUMBERED_BIND_PARAMETER, SQLiteParserNAMED_BIND_PARAMETER, SQLiteParserSTRING_LITERAL, SQLiteParserBLOB_LITERAL:
- p.SetState(1856)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 276, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1855)
- p.Match(SQLiteParserDISTINCT_)
- }
- }
- {
- p.SetState(1858)
- p.expr(0)
- }
- p.SetState(1863)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1859)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1860)
- p.expr(0)
- }
- p.SetState(1865)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case SQLiteParserSTAR:
- {
- p.SetState(1866)
- p.Match(SQLiteParserSTAR)
- }
- case SQLiteParserCLOSE_PAR:
- default:
- }
- {
- p.SetState(1869)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1871)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserFILTER_ {
- {
- p.SetState(1870)
- p.Filter_clause()
- }
- }
- return localctx
- }
- // IWindow_function_invocationContext is an interface to support dynamic dispatch.
- type IWindow_function_invocationContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Window_function() IWindow_functionContext
- OPEN_PAR() antlr.TerminalNode
- CLOSE_PAR() antlr.TerminalNode
- OVER_() antlr.TerminalNode
- Window_defn() IWindow_defnContext
- Window_name() IWindow_nameContext
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- STAR() antlr.TerminalNode
- Filter_clause() IFilter_clauseContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsWindow_function_invocationContext differentiates from other interfaces.
- IsWindow_function_invocationContext()
- }
- type Window_function_invocationContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyWindow_function_invocationContext() *Window_function_invocationContext {
- var p = new(Window_function_invocationContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_window_function_invocation
- return p
- }
- func (*Window_function_invocationContext) IsWindow_function_invocationContext() {}
- func NewWindow_function_invocationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Window_function_invocationContext {
- var p = new(Window_function_invocationContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_window_function_invocation
- return p
- }
- func (s *Window_function_invocationContext) GetParser() antlr.Parser { return s.parser }
- func (s *Window_function_invocationContext) Window_function() IWindow_functionContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWindow_functionContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWindow_functionContext)
- }
- func (s *Window_function_invocationContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Window_function_invocationContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Window_function_invocationContext) OVER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOVER_, 0)
- }
- func (s *Window_function_invocationContext) Window_defn() IWindow_defnContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWindow_defnContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWindow_defnContext)
- }
- func (s *Window_function_invocationContext) Window_name() IWindow_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IWindow_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IWindow_nameContext)
- }
- func (s *Window_function_invocationContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Window_function_invocationContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Window_function_invocationContext) STAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTAR, 0)
- }
- func (s *Window_function_invocationContext) Filter_clause() IFilter_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFilter_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFilter_clauseContext)
- }
- func (s *Window_function_invocationContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Window_function_invocationContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Window_function_invocationContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Window_function_invocationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Window_function_invocationContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterWindow_function_invocation(s)
- }
- }
- func (s *Window_function_invocationContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitWindow_function_invocation(s)
- }
- }
- func (p *SQLiteParser) Window_function_invocation() (localctx IWindow_function_invocationContext) {
- this := p
- _ = this
- localctx = NewWindow_function_invocationContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 130, SQLiteParserRULE_window_function_invocation)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1873)
- p.Window_function()
- }
- {
- p.SetState(1874)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1884)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserOPEN_PAR, SQLiteParserPLUS, SQLiteParserMINUS, SQLiteParserTILDE, SQLiteParserABORT_, SQLiteParserACTION_, SQLiteParserADD_, SQLiteParserAFTER_, SQLiteParserALL_, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserAND_, SQLiteParserAS_, SQLiteParserASC_, SQLiteParserATTACH_, SQLiteParserAUTOINCREMENT_, SQLiteParserBEFORE_, SQLiteParserBEGIN_, SQLiteParserBETWEEN_, SQLiteParserBY_, SQLiteParserCASCADE_, SQLiteParserCASE_, SQLiteParserCAST_, SQLiteParserCHECK_, SQLiteParserCOLLATE_, SQLiteParserCOLUMN_, SQLiteParserCOMMIT_, SQLiteParserCONFLICT_, SQLiteParserCONSTRAINT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserCURRENT_DATE_, SQLiteParserCURRENT_TIME_, SQLiteParserCURRENT_TIMESTAMP_, SQLiteParserDATABASE_, SQLiteParserDEFAULT_, SQLiteParserDEFERRABLE_, SQLiteParserDEFERRED_, SQLiteParserDELETE_, SQLiteParserDESC_, SQLiteParserDETACH_, SQLiteParserDISTINCT_, SQLiteParserDROP_, SQLiteParserEACH_, SQLiteParserELSE_, SQLiteParserEND_, SQLiteParserESCAPE_, SQLiteParserEXCEPT_, SQLiteParserEXCLUSIVE_, SQLiteParserEXISTS_, SQLiteParserEXPLAIN_, SQLiteParserFAIL_, SQLiteParserFOR_, SQLiteParserFOREIGN_, SQLiteParserFROM_, SQLiteParserFULL_, SQLiteParserGLOB_, SQLiteParserGROUP_, SQLiteParserHAVING_, SQLiteParserIF_, SQLiteParserIGNORE_, SQLiteParserIMMEDIATE_, SQLiteParserIN_, SQLiteParserINDEX_, SQLiteParserINDEXED_, SQLiteParserINITIALLY_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINSTEAD_, SQLiteParserINTERSECT_, SQLiteParserINTO_, SQLiteParserIS_, SQLiteParserISNULL_, SQLiteParserJOIN_, SQLiteParserKEY_, SQLiteParserLEFT_, SQLiteParserLIKE_, SQLiteParserLIMIT_, SQLiteParserMATCH_, SQLiteParserNATURAL_, SQLiteParserNO_, SQLiteParserNOT_, SQLiteParserNOTNULL_, SQLiteParserNULL_, SQLiteParserOF_, SQLiteParserOFFSET_, SQLiteParserON_, SQLiteParserOR_, SQLiteParserORDER_, SQLiteParserOUTER_, SQLiteParserPLAN_, SQLiteParserPRAGMA_, SQLiteParserPRIMARY_, SQLiteParserQUERY_, SQLiteParserRAISE_, SQLiteParserRECURSIVE_, SQLiteParserREFERENCES_, SQLiteParserREGEXP_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserRENAME_, SQLiteParserREPLACE_, SQLiteParserRESTRICT_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserROW_, SQLiteParserROWS_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserSTRICT_, SQLiteParserTABLE_, SQLiteParserTEMP_, SQLiteParserTEMPORARY_, SQLiteParserTHEN_, SQLiteParserTO_, SQLiteParserTRANSACTION_, SQLiteParserTRIGGER_, SQLiteParserUNION_, SQLiteParserUNIQUE_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserVIEW_, SQLiteParserVIRTUAL_, SQLiteParserWHEN_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWITHOUT_, SQLiteParserFIRST_VALUE_, SQLiteParserOVER_, SQLiteParserPARTITION_, SQLiteParserRANGE_, SQLiteParserPRECEDING_, SQLiteParserUNBOUNDED_, SQLiteParserCURRENT_, SQLiteParserFOLLOWING_, SQLiteParserCUME_DIST_, SQLiteParserDENSE_RANK_, SQLiteParserLAG_, SQLiteParserLAST_VALUE_, SQLiteParserLEAD_, SQLiteParserNTH_VALUE_, SQLiteParserNTILE_, SQLiteParserPERCENT_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_, SQLiteParserGENERATED_, SQLiteParserALWAYS_, SQLiteParserSTORED_, SQLiteParserTRUE_, SQLiteParserFALSE_, SQLiteParserWINDOW_, SQLiteParserNULLS_, SQLiteParserFIRST_, SQLiteParserLAST_, SQLiteParserFILTER_, SQLiteParserGROUPS_, SQLiteParserEXCLUDE_, SQLiteParserIDENTIFIER, SQLiteParserNUMERIC_LITERAL, SQLiteParserNUMBERED_BIND_PARAMETER, SQLiteParserNAMED_BIND_PARAMETER, SQLiteParserSTRING_LITERAL, SQLiteParserBLOB_LITERAL:
- {
- p.SetState(1875)
- p.expr(0)
- }
- p.SetState(1880)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1876)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1877)
- p.expr(0)
- }
- p.SetState(1882)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- case SQLiteParserSTAR:
- {
- p.SetState(1883)
- p.Match(SQLiteParserSTAR)
- }
- case SQLiteParserCLOSE_PAR:
- default:
- }
- {
- p.SetState(1886)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- p.SetState(1888)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserFILTER_ {
- {
- p.SetState(1887)
- p.Filter_clause()
- }
- }
- {
- p.SetState(1890)
- p.Match(SQLiteParserOVER_)
- }
- p.SetState(1893)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 283, p.GetParserRuleContext()) {
- case 1:
- {
- p.SetState(1891)
- p.Window_defn()
- }
- case 2:
- {
- p.SetState(1892)
- p.Window_name()
- }
- }
- return localctx
- }
- // ICommon_table_stmtContext is an interface to support dynamic dispatch.
- type ICommon_table_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- WITH_() antlr.TerminalNode
- AllCommon_table_expression() []ICommon_table_expressionContext
- Common_table_expression(i int) ICommon_table_expressionContext
- RECURSIVE_() antlr.TerminalNode
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsCommon_table_stmtContext differentiates from other interfaces.
- IsCommon_table_stmtContext()
- }
- type Common_table_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCommon_table_stmtContext() *Common_table_stmtContext {
- var p = new(Common_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_common_table_stmt
- return p
- }
- func (*Common_table_stmtContext) IsCommon_table_stmtContext() {}
- func NewCommon_table_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Common_table_stmtContext {
- var p = new(Common_table_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_common_table_stmt
- return p
- }
- func (s *Common_table_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Common_table_stmtContext) WITH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWITH_, 0)
- }
- func (s *Common_table_stmtContext) AllCommon_table_expression() []ICommon_table_expressionContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(ICommon_table_expressionContext); ok {
- len++
- }
- }
- tst := make([]ICommon_table_expressionContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(ICommon_table_expressionContext); ok {
- tst[i] = t.(ICommon_table_expressionContext)
- i++
- }
- }
- return tst
- }
- func (s *Common_table_stmtContext) Common_table_expression(i int) ICommon_table_expressionContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICommon_table_expressionContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICommon_table_expressionContext)
- }
- func (s *Common_table_stmtContext) RECURSIVE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRECURSIVE_, 0)
- }
- func (s *Common_table_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Common_table_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Common_table_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Common_table_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Common_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCommon_table_stmt(s)
- }
- }
- func (s *Common_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCommon_table_stmt(s)
- }
- }
- func (p *SQLiteParser) Common_table_stmt() (localctx ICommon_table_stmtContext) {
- this := p
- _ = this
- localctx = NewCommon_table_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 132, SQLiteParserRULE_common_table_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1895)
- p.Match(SQLiteParserWITH_)
- }
- p.SetState(1897)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 284, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(1896)
- p.Match(SQLiteParserRECURSIVE_)
- }
- }
- {
- p.SetState(1899)
- p.Common_table_expression()
- }
- p.SetState(1904)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1900)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1901)
- p.Common_table_expression()
- }
- p.SetState(1906)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- return localctx
- }
- // IOrder_by_stmtContext is an interface to support dynamic dispatch.
- type IOrder_by_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ORDER_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- AllOrdering_term() []IOrdering_termContext
- Ordering_term(i int) IOrdering_termContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsOrder_by_stmtContext differentiates from other interfaces.
- IsOrder_by_stmtContext()
- }
- type Order_by_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyOrder_by_stmtContext() *Order_by_stmtContext {
- var p = new(Order_by_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_order_by_stmt
- return p
- }
- func (*Order_by_stmtContext) IsOrder_by_stmtContext() {}
- func NewOrder_by_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Order_by_stmtContext {
- var p = new(Order_by_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_order_by_stmt
- return p
- }
- func (s *Order_by_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Order_by_stmtContext) ORDER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserORDER_, 0)
- }
- func (s *Order_by_stmtContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *Order_by_stmtContext) AllOrdering_term() []IOrdering_termContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IOrdering_termContext); ok {
- len++
- }
- }
- tst := make([]IOrdering_termContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IOrdering_termContext); ok {
- tst[i] = t.(IOrdering_termContext)
- i++
- }
- }
- return tst
- }
- func (s *Order_by_stmtContext) Ordering_term(i int) IOrdering_termContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrdering_termContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrdering_termContext)
- }
- func (s *Order_by_stmtContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Order_by_stmtContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Order_by_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Order_by_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Order_by_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterOrder_by_stmt(s)
- }
- }
- func (s *Order_by_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitOrder_by_stmt(s)
- }
- }
- func (p *SQLiteParser) Order_by_stmt() (localctx IOrder_by_stmtContext) {
- this := p
- _ = this
- localctx = NewOrder_by_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 134, SQLiteParserRULE_order_by_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1907)
- p.Match(SQLiteParserORDER_)
- }
- {
- p.SetState(1908)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(1909)
- p.Ordering_term()
- }
- p.SetState(1914)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(1910)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(1911)
- p.Ordering_term()
- }
- p.SetState(1916)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- return localctx
- }
- // ILimit_stmtContext is an interface to support dynamic dispatch.
- type ILimit_stmtContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- LIMIT_() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- OFFSET_() antlr.TerminalNode
- COMMA() antlr.TerminalNode
- // IsLimit_stmtContext differentiates from other interfaces.
- IsLimit_stmtContext()
- }
- type Limit_stmtContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyLimit_stmtContext() *Limit_stmtContext {
- var p = new(Limit_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_limit_stmt
- return p
- }
- func (*Limit_stmtContext) IsLimit_stmtContext() {}
- func NewLimit_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Limit_stmtContext {
- var p = new(Limit_stmtContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_limit_stmt
- return p
- }
- func (s *Limit_stmtContext) GetParser() antlr.Parser { return s.parser }
- func (s *Limit_stmtContext) LIMIT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLIMIT_, 0)
- }
- func (s *Limit_stmtContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Limit_stmtContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Limit_stmtContext) OFFSET_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOFFSET_, 0)
- }
- func (s *Limit_stmtContext) COMMA() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, 0)
- }
- func (s *Limit_stmtContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Limit_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Limit_stmtContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterLimit_stmt(s)
- }
- }
- func (s *Limit_stmtContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitLimit_stmt(s)
- }
- }
- func (p *SQLiteParser) Limit_stmt() (localctx ILimit_stmtContext) {
- this := p
- _ = this
- localctx = NewLimit_stmtContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 136, SQLiteParserRULE_limit_stmt)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1917)
- p.Match(SQLiteParserLIMIT_)
- }
- {
- p.SetState(1918)
- p.expr(0)
- }
- p.SetState(1921)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserCOMMA || _la == SQLiteParserOFFSET_ {
- {
- p.SetState(1919)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserCOMMA || _la == SQLiteParserOFFSET_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1920)
- p.expr(0)
- }
- }
- return localctx
- }
- // IOrdering_termContext is an interface to support dynamic dispatch.
- type IOrdering_termContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Expr() IExprContext
- COLLATE_() antlr.TerminalNode
- Collation_name() ICollation_nameContext
- Asc_desc() IAsc_descContext
- NULLS_() antlr.TerminalNode
- FIRST_() antlr.TerminalNode
- LAST_() antlr.TerminalNode
- // IsOrdering_termContext differentiates from other interfaces.
- IsOrdering_termContext()
- }
- type Ordering_termContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyOrdering_termContext() *Ordering_termContext {
- var p = new(Ordering_termContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_ordering_term
- return p
- }
- func (*Ordering_termContext) IsOrdering_termContext() {}
- func NewOrdering_termContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ordering_termContext {
- var p = new(Ordering_termContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_ordering_term
- return p
- }
- func (s *Ordering_termContext) GetParser() antlr.Parser { return s.parser }
- func (s *Ordering_termContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Ordering_termContext) COLLATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOLLATE_, 0)
- }
- func (s *Ordering_termContext) Collation_name() ICollation_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ICollation_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ICollation_nameContext)
- }
- func (s *Ordering_termContext) Asc_desc() IAsc_descContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAsc_descContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAsc_descContext)
- }
- func (s *Ordering_termContext) NULLS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNULLS_, 0)
- }
- func (s *Ordering_termContext) FIRST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFIRST_, 0)
- }
- func (s *Ordering_termContext) LAST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLAST_, 0)
- }
- func (s *Ordering_termContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Ordering_termContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Ordering_termContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterOrdering_term(s)
- }
- }
- func (s *Ordering_termContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitOrdering_term(s)
- }
- }
- func (p *SQLiteParser) Ordering_term() (localctx IOrdering_termContext) {
- this := p
- _ = this
- localctx = NewOrdering_termContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 138, SQLiteParserRULE_ordering_term)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1923)
- p.expr(0)
- }
- p.SetState(1926)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserCOLLATE_ {
- {
- p.SetState(1924)
- p.Match(SQLiteParserCOLLATE_)
- }
- {
- p.SetState(1925)
- p.Collation_name()
- }
- }
- p.SetState(1929)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
- {
- p.SetState(1928)
- p.Asc_desc()
- }
- }
- p.SetState(1933)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserNULLS_ {
- {
- p.SetState(1931)
- p.Match(SQLiteParserNULLS_)
- }
- {
- p.SetState(1932)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserFIRST_ || _la == SQLiteParserLAST_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- }
- return localctx
- }
- // IAsc_descContext is an interface to support dynamic dispatch.
- type IAsc_descContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ASC_() antlr.TerminalNode
- DESC_() antlr.TerminalNode
- // IsAsc_descContext differentiates from other interfaces.
- IsAsc_descContext()
- }
- type Asc_descContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyAsc_descContext() *Asc_descContext {
- var p = new(Asc_descContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_asc_desc
- return p
- }
- func (*Asc_descContext) IsAsc_descContext() {}
- func NewAsc_descContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Asc_descContext {
- var p = new(Asc_descContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_asc_desc
- return p
- }
- func (s *Asc_descContext) GetParser() antlr.Parser { return s.parser }
- func (s *Asc_descContext) ASC_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserASC_, 0)
- }
- func (s *Asc_descContext) DESC_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDESC_, 0)
- }
- func (s *Asc_descContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Asc_descContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Asc_descContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAsc_desc(s)
- }
- }
- func (s *Asc_descContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAsc_desc(s)
- }
- }
- func (p *SQLiteParser) Asc_desc() (localctx IAsc_descContext) {
- this := p
- _ = this
- localctx = NewAsc_descContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 140, SQLiteParserRULE_asc_desc)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1935)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserASC_ || _la == SQLiteParserDESC_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- return localctx
- }
- // IFrame_leftContext is an interface to support dynamic dispatch.
- type IFrame_leftContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Expr() IExprContext
- PRECEDING_() antlr.TerminalNode
- FOLLOWING_() antlr.TerminalNode
- CURRENT_() antlr.TerminalNode
- ROW_() antlr.TerminalNode
- UNBOUNDED_() antlr.TerminalNode
- // IsFrame_leftContext differentiates from other interfaces.
- IsFrame_leftContext()
- }
- type Frame_leftContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFrame_leftContext() *Frame_leftContext {
- var p = new(Frame_leftContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_frame_left
- return p
- }
- func (*Frame_leftContext) IsFrame_leftContext() {}
- func NewFrame_leftContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Frame_leftContext {
- var p = new(Frame_leftContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_frame_left
- return p
- }
- func (s *Frame_leftContext) GetParser() antlr.Parser { return s.parser }
- func (s *Frame_leftContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Frame_leftContext) PRECEDING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRECEDING_, 0)
- }
- func (s *Frame_leftContext) FOLLOWING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFOLLOWING_, 0)
- }
- func (s *Frame_leftContext) CURRENT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_, 0)
- }
- func (s *Frame_leftContext) ROW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_, 0)
- }
- func (s *Frame_leftContext) UNBOUNDED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNBOUNDED_, 0)
- }
- func (s *Frame_leftContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Frame_leftContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Frame_leftContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFrame_left(s)
- }
- }
- func (s *Frame_leftContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFrame_left(s)
- }
- }
- func (p *SQLiteParser) Frame_left() (localctx IFrame_leftContext) {
- this := p
- _ = this
- localctx = NewFrame_leftContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 142, SQLiteParserRULE_frame_left)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1947)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 291, p.GetParserRuleContext()) {
- case 1:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1937)
- p.expr(0)
- }
- {
- p.SetState(1938)
- p.Match(SQLiteParserPRECEDING_)
- }
- case 2:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1940)
- p.expr(0)
- }
- {
- p.SetState(1941)
- p.Match(SQLiteParserFOLLOWING_)
- }
- case 3:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1943)
- p.Match(SQLiteParserCURRENT_)
- }
- {
- p.SetState(1944)
- p.Match(SQLiteParserROW_)
- }
- case 4:
- p.EnterOuterAlt(localctx, 4)
- {
- p.SetState(1945)
- p.Match(SQLiteParserUNBOUNDED_)
- }
- {
- p.SetState(1946)
- p.Match(SQLiteParserPRECEDING_)
- }
- }
- return localctx
- }
- // IFrame_rightContext is an interface to support dynamic dispatch.
- type IFrame_rightContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Expr() IExprContext
- PRECEDING_() antlr.TerminalNode
- FOLLOWING_() antlr.TerminalNode
- CURRENT_() antlr.TerminalNode
- ROW_() antlr.TerminalNode
- UNBOUNDED_() antlr.TerminalNode
- // IsFrame_rightContext differentiates from other interfaces.
- IsFrame_rightContext()
- }
- type Frame_rightContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFrame_rightContext() *Frame_rightContext {
- var p = new(Frame_rightContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_frame_right
- return p
- }
- func (*Frame_rightContext) IsFrame_rightContext() {}
- func NewFrame_rightContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Frame_rightContext {
- var p = new(Frame_rightContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_frame_right
- return p
- }
- func (s *Frame_rightContext) GetParser() antlr.Parser { return s.parser }
- func (s *Frame_rightContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Frame_rightContext) PRECEDING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRECEDING_, 0)
- }
- func (s *Frame_rightContext) FOLLOWING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFOLLOWING_, 0)
- }
- func (s *Frame_rightContext) CURRENT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_, 0)
- }
- func (s *Frame_rightContext) ROW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_, 0)
- }
- func (s *Frame_rightContext) UNBOUNDED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNBOUNDED_, 0)
- }
- func (s *Frame_rightContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Frame_rightContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Frame_rightContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFrame_right(s)
- }
- }
- func (s *Frame_rightContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFrame_right(s)
- }
- }
- func (p *SQLiteParser) Frame_right() (localctx IFrame_rightContext) {
- this := p
- _ = this
- localctx = NewFrame_rightContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 144, SQLiteParserRULE_frame_right)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1959)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 292, p.GetParserRuleContext()) {
- case 1:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1949)
- p.expr(0)
- }
- {
- p.SetState(1950)
- p.Match(SQLiteParserPRECEDING_)
- }
- case 2:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1952)
- p.expr(0)
- }
- {
- p.SetState(1953)
- p.Match(SQLiteParserFOLLOWING_)
- }
- case 3:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1955)
- p.Match(SQLiteParserCURRENT_)
- }
- {
- p.SetState(1956)
- p.Match(SQLiteParserROW_)
- }
- case 4:
- p.EnterOuterAlt(localctx, 4)
- {
- p.SetState(1957)
- p.Match(SQLiteParserUNBOUNDED_)
- }
- {
- p.SetState(1958)
- p.Match(SQLiteParserFOLLOWING_)
- }
- }
- return localctx
- }
- // IFrame_singleContext is an interface to support dynamic dispatch.
- type IFrame_singleContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Expr() IExprContext
- PRECEDING_() antlr.TerminalNode
- UNBOUNDED_() antlr.TerminalNode
- CURRENT_() antlr.TerminalNode
- ROW_() antlr.TerminalNode
- // IsFrame_singleContext differentiates from other interfaces.
- IsFrame_singleContext()
- }
- type Frame_singleContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFrame_singleContext() *Frame_singleContext {
- var p = new(Frame_singleContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_frame_single
- return p
- }
- func (*Frame_singleContext) IsFrame_singleContext() {}
- func NewFrame_singleContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Frame_singleContext {
- var p = new(Frame_singleContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_frame_single
- return p
- }
- func (s *Frame_singleContext) GetParser() antlr.Parser { return s.parser }
- func (s *Frame_singleContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Frame_singleContext) PRECEDING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRECEDING_, 0)
- }
- func (s *Frame_singleContext) UNBOUNDED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNBOUNDED_, 0)
- }
- func (s *Frame_singleContext) CURRENT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_, 0)
- }
- func (s *Frame_singleContext) ROW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_, 0)
- }
- func (s *Frame_singleContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Frame_singleContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Frame_singleContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFrame_single(s)
- }
- }
- func (s *Frame_singleContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFrame_single(s)
- }
- }
- func (p *SQLiteParser) Frame_single() (localctx IFrame_singleContext) {
- this := p
- _ = this
- localctx = NewFrame_singleContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 146, SQLiteParserRULE_frame_single)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(1968)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 293, p.GetParserRuleContext()) {
- case 1:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1961)
- p.expr(0)
- }
- {
- p.SetState(1962)
- p.Match(SQLiteParserPRECEDING_)
- }
- case 2:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1964)
- p.Match(SQLiteParserUNBOUNDED_)
- }
- {
- p.SetState(1965)
- p.Match(SQLiteParserPRECEDING_)
- }
- case 3:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1966)
- p.Match(SQLiteParserCURRENT_)
- }
- {
- p.SetState(1967)
- p.Match(SQLiteParserROW_)
- }
- }
- return localctx
- }
- // IWindow_functionContext is an interface to support dynamic dispatch.
- type IWindow_functionContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- AllOPEN_PAR() []antlr.TerminalNode
- OPEN_PAR(i int) antlr.TerminalNode
- Expr() IExprContext
- AllCLOSE_PAR() []antlr.TerminalNode
- CLOSE_PAR(i int) antlr.TerminalNode
- OVER_() antlr.TerminalNode
- Order_by_expr_asc_desc() IOrder_by_expr_asc_descContext
- FIRST_VALUE_() antlr.TerminalNode
- LAST_VALUE_() antlr.TerminalNode
- Partition_by() IPartition_byContext
- Frame_clause() IFrame_clauseContext
- CUME_DIST_() antlr.TerminalNode
- PERCENT_RANK_() antlr.TerminalNode
- Order_by_expr() IOrder_by_exprContext
- DENSE_RANK_() antlr.TerminalNode
- RANK_() antlr.TerminalNode
- ROW_NUMBER_() antlr.TerminalNode
- LAG_() antlr.TerminalNode
- LEAD_() antlr.TerminalNode
- Of_OF_fset() IOf_OF_fsetContext
- Default_DEFAULT__value() IDefault_DEFAULT__valueContext
- NTH_VALUE_() antlr.TerminalNode
- COMMA() antlr.TerminalNode
- Signed_number() ISigned_numberContext
- NTILE_() antlr.TerminalNode
- // IsWindow_functionContext differentiates from other interfaces.
- IsWindow_functionContext()
- }
- type Window_functionContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyWindow_functionContext() *Window_functionContext {
- var p = new(Window_functionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_window_function
- return p
- }
- func (*Window_functionContext) IsWindow_functionContext() {}
- func NewWindow_functionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Window_functionContext {
- var p = new(Window_functionContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_window_function
- return p
- }
- func (s *Window_functionContext) GetParser() antlr.Parser { return s.parser }
- func (s *Window_functionContext) AllOPEN_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserOPEN_PAR)
- }
- func (s *Window_functionContext) OPEN_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, i)
- }
- func (s *Window_functionContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Window_functionContext) AllCLOSE_PAR() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCLOSE_PAR)
- }
- func (s *Window_functionContext) CLOSE_PAR(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, i)
- }
- func (s *Window_functionContext) OVER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOVER_, 0)
- }
- func (s *Window_functionContext) Order_by_expr_asc_desc() IOrder_by_expr_asc_descContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_expr_asc_descContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_expr_asc_descContext)
- }
- func (s *Window_functionContext) FIRST_VALUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFIRST_VALUE_, 0)
- }
- func (s *Window_functionContext) LAST_VALUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLAST_VALUE_, 0)
- }
- func (s *Window_functionContext) Partition_by() IPartition_byContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IPartition_byContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IPartition_byContext)
- }
- func (s *Window_functionContext) Frame_clause() IFrame_clauseContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFrame_clauseContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFrame_clauseContext)
- }
- func (s *Window_functionContext) CUME_DIST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCUME_DIST_, 0)
- }
- func (s *Window_functionContext) PERCENT_RANK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPERCENT_RANK_, 0)
- }
- func (s *Window_functionContext) Order_by_expr() IOrder_by_exprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_exprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_exprContext)
- }
- func (s *Window_functionContext) DENSE_RANK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDENSE_RANK_, 0)
- }
- func (s *Window_functionContext) RANK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRANK_, 0)
- }
- func (s *Window_functionContext) ROW_NUMBER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_NUMBER_, 0)
- }
- func (s *Window_functionContext) LAG_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLAG_, 0)
- }
- func (s *Window_functionContext) LEAD_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLEAD_, 0)
- }
- func (s *Window_functionContext) Of_OF_fset() IOf_OF_fsetContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOf_OF_fsetContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOf_OF_fsetContext)
- }
- func (s *Window_functionContext) Default_DEFAULT__value() IDefault_DEFAULT__valueContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IDefault_DEFAULT__valueContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IDefault_DEFAULT__valueContext)
- }
- func (s *Window_functionContext) NTH_VALUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNTH_VALUE_, 0)
- }
- func (s *Window_functionContext) COMMA() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, 0)
- }
- func (s *Window_functionContext) Signed_number() ISigned_numberContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISigned_numberContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISigned_numberContext)
- }
- func (s *Window_functionContext) NTILE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNTILE_, 0)
- }
- func (s *Window_functionContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Window_functionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Window_functionContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterWindow_function(s)
- }
- }
- func (s *Window_functionContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitWindow_function(s)
- }
- }
- func (p *SQLiteParser) Window_function() (localctx IWindow_functionContext) {
- this := p
- _ = this
- localctx = NewWindow_functionContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 148, SQLiteParserRULE_window_function)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(2055)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserFIRST_VALUE_, SQLiteParserLAST_VALUE_:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(1970)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserFIRST_VALUE_ || _la == SQLiteParserLAST_VALUE_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1971)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1972)
- p.expr(0)
- }
- {
- p.SetState(1973)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- {
- p.SetState(1974)
- p.Match(SQLiteParserOVER_)
- }
- {
- p.SetState(1975)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1977)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(1976)
- p.Partition_by()
- }
- }
- {
- p.SetState(1979)
- p.Order_by_expr_asc_desc()
- }
- p.SetState(1981)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if (int64((_la-130)) & ^0x3f) == 0 && ((int64(1)<<(_la-130))&4503599761588225) != 0 {
- {
- p.SetState(1980)
- p.Frame_clause()
- }
- }
- {
- p.SetState(1983)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserCUME_DIST_, SQLiteParserPERCENT_RANK_:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(1985)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserCUME_DIST_ || _la == SQLiteParserPERCENT_RANK_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1986)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1987)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- {
- p.SetState(1988)
- p.Match(SQLiteParserOVER_)
- }
- {
- p.SetState(1989)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(1991)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(1990)
- p.Partition_by()
- }
- }
- p.SetState(1994)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserORDER_ {
- {
- p.SetState(1993)
- p.Order_by_expr()
- }
- }
- {
- p.SetState(1996)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserDENSE_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(1997)
- _la = p.GetTokenStream().LA(1)
- if !((int64((_la-163)) & ^0x3f) == 0 && ((int64(1)<<(_la-163))&385) != 0) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(1998)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(1999)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- {
- p.SetState(2000)
- p.Match(SQLiteParserOVER_)
- }
- {
- p.SetState(2001)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(2003)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(2002)
- p.Partition_by()
- }
- }
- {
- p.SetState(2005)
- p.Order_by_expr_asc_desc()
- }
- {
- p.SetState(2006)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserLAG_, SQLiteParserLEAD_:
- p.EnterOuterAlt(localctx, 4)
- {
- p.SetState(2008)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserLAG_ || _la == SQLiteParserLEAD_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- {
- p.SetState(2009)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(2010)
- p.expr(0)
- }
- p.SetState(2012)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 299, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(2011)
- p.Of_OF_fset()
- }
- }
- p.SetState(2015)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserCOMMA {
- {
- p.SetState(2014)
- p.Default_DEFAULT__value()
- }
- }
- {
- p.SetState(2017)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- {
- p.SetState(2018)
- p.Match(SQLiteParserOVER_)
- }
- {
- p.SetState(2019)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(2021)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(2020)
- p.Partition_by()
- }
- }
- {
- p.SetState(2023)
- p.Order_by_expr_asc_desc()
- }
- {
- p.SetState(2024)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserNTH_VALUE_:
- p.EnterOuterAlt(localctx, 5)
- {
- p.SetState(2026)
- p.Match(SQLiteParserNTH_VALUE_)
- }
- {
- p.SetState(2027)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(2028)
- p.expr(0)
- }
- {
- p.SetState(2029)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(2030)
- p.Signed_number()
- }
- {
- p.SetState(2031)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- {
- p.SetState(2032)
- p.Match(SQLiteParserOVER_)
- }
- {
- p.SetState(2033)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(2035)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(2034)
- p.Partition_by()
- }
- }
- {
- p.SetState(2037)
- p.Order_by_expr_asc_desc()
- }
- p.SetState(2039)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if (int64((_la-130)) & ^0x3f) == 0 && ((int64(1)<<(_la-130))&4503599761588225) != 0 {
- {
- p.SetState(2038)
- p.Frame_clause()
- }
- }
- {
- p.SetState(2041)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- case SQLiteParserNTILE_:
- p.EnterOuterAlt(localctx, 6)
- {
- p.SetState(2043)
- p.Match(SQLiteParserNTILE_)
- }
- {
- p.SetState(2044)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(2045)
- p.expr(0)
- }
- {
- p.SetState(2046)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- {
- p.SetState(2047)
- p.Match(SQLiteParserOVER_)
- }
- {
- p.SetState(2048)
- p.Match(SQLiteParserOPEN_PAR)
- }
- p.SetState(2050)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserPARTITION_ {
- {
- p.SetState(2049)
- p.Partition_by()
- }
- }
- {
- p.SetState(2052)
- p.Order_by_expr_asc_desc()
- }
- {
- p.SetState(2053)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- // IOf_OF_fsetContext is an interface to support dynamic dispatch.
- type IOf_OF_fsetContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- COMMA() antlr.TerminalNode
- Signed_number() ISigned_numberContext
- // IsOf_OF_fsetContext differentiates from other interfaces.
- IsOf_OF_fsetContext()
- }
- type Of_OF_fsetContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyOf_OF_fsetContext() *Of_OF_fsetContext {
- var p = new(Of_OF_fsetContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_of_OF_fset
- return p
- }
- func (*Of_OF_fsetContext) IsOf_OF_fsetContext() {}
- func NewOf_OF_fsetContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Of_OF_fsetContext {
- var p = new(Of_OF_fsetContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_of_OF_fset
- return p
- }
- func (s *Of_OF_fsetContext) GetParser() antlr.Parser { return s.parser }
- func (s *Of_OF_fsetContext) COMMA() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, 0)
- }
- func (s *Of_OF_fsetContext) Signed_number() ISigned_numberContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISigned_numberContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISigned_numberContext)
- }
- func (s *Of_OF_fsetContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Of_OF_fsetContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Of_OF_fsetContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterOf_OF_fset(s)
- }
- }
- func (s *Of_OF_fsetContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitOf_OF_fset(s)
- }
- }
- func (p *SQLiteParser) Of_OF_fset() (localctx IOf_OF_fsetContext) {
- this := p
- _ = this
- localctx = NewOf_OF_fsetContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 150, SQLiteParserRULE_of_OF_fset)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2057)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(2058)
- p.Signed_number()
- }
- return localctx
- }
- // IDefault_DEFAULT__valueContext is an interface to support dynamic dispatch.
- type IDefault_DEFAULT__valueContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- COMMA() antlr.TerminalNode
- Signed_number() ISigned_numberContext
- // IsDefault_DEFAULT__valueContext differentiates from other interfaces.
- IsDefault_DEFAULT__valueContext()
- }
- type Default_DEFAULT__valueContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyDefault_DEFAULT__valueContext() *Default_DEFAULT__valueContext {
- var p = new(Default_DEFAULT__valueContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_default_DEFAULT__value
- return p
- }
- func (*Default_DEFAULT__valueContext) IsDefault_DEFAULT__valueContext() {}
- func NewDefault_DEFAULT__valueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Default_DEFAULT__valueContext {
- var p = new(Default_DEFAULT__valueContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_default_DEFAULT__value
- return p
- }
- func (s *Default_DEFAULT__valueContext) GetParser() antlr.Parser { return s.parser }
- func (s *Default_DEFAULT__valueContext) COMMA() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, 0)
- }
- func (s *Default_DEFAULT__valueContext) Signed_number() ISigned_numberContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISigned_numberContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISigned_numberContext)
- }
- func (s *Default_DEFAULT__valueContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Default_DEFAULT__valueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Default_DEFAULT__valueContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterDefault_DEFAULT__value(s)
- }
- }
- func (s *Default_DEFAULT__valueContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitDefault_DEFAULT__value(s)
- }
- }
- func (p *SQLiteParser) Default_DEFAULT__value() (localctx IDefault_DEFAULT__valueContext) {
- this := p
- _ = this
- localctx = NewDefault_DEFAULT__valueContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 152, SQLiteParserRULE_default_DEFAULT__value)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2060)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(2061)
- p.Signed_number()
- }
- return localctx
- }
- // IPartition_byContext is an interface to support dynamic dispatch.
- type IPartition_byContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- PARTITION_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- // IsPartition_byContext differentiates from other interfaces.
- IsPartition_byContext()
- }
- type Partition_byContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyPartition_byContext() *Partition_byContext {
- var p = new(Partition_byContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_partition_by
- return p
- }
- func (*Partition_byContext) IsPartition_byContext() {}
- func NewPartition_byContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Partition_byContext {
- var p = new(Partition_byContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_partition_by
- return p
- }
- func (s *Partition_byContext) GetParser() antlr.Parser { return s.parser }
- func (s *Partition_byContext) PARTITION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPARTITION_, 0)
- }
- func (s *Partition_byContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *Partition_byContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Partition_byContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Partition_byContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Partition_byContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Partition_byContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterPartition_by(s)
- }
- }
- func (s *Partition_byContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitPartition_by(s)
- }
- }
- func (p *SQLiteParser) Partition_by() (localctx IPartition_byContext) {
- this := p
- _ = this
- localctx = NewPartition_byContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 154, SQLiteParserRULE_partition_by)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- var _alt int
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2063)
- p.Match(SQLiteParserPARTITION_)
- }
- {
- p.SetState(2064)
- p.Match(SQLiteParserBY_)
- }
- p.SetState(2066)
- p.GetErrorHandler().Sync(p)
- _alt = 1
- for ok := true; ok; ok = _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
- switch _alt {
- case 1:
- {
- p.SetState(2065)
- p.expr(0)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- p.SetState(2068)
- p.GetErrorHandler().Sync(p)
- _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 306, p.GetParserRuleContext())
- }
- return localctx
- }
- // IOrder_by_exprContext is an interface to support dynamic dispatch.
- type IOrder_by_exprContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ORDER_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- // IsOrder_by_exprContext differentiates from other interfaces.
- IsOrder_by_exprContext()
- }
- type Order_by_exprContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyOrder_by_exprContext() *Order_by_exprContext {
- var p = new(Order_by_exprContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_order_by_expr
- return p
- }
- func (*Order_by_exprContext) IsOrder_by_exprContext() {}
- func NewOrder_by_exprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Order_by_exprContext {
- var p = new(Order_by_exprContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_order_by_expr
- return p
- }
- func (s *Order_by_exprContext) GetParser() antlr.Parser { return s.parser }
- func (s *Order_by_exprContext) ORDER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserORDER_, 0)
- }
- func (s *Order_by_exprContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *Order_by_exprContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Order_by_exprContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Order_by_exprContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Order_by_exprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Order_by_exprContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterOrder_by_expr(s)
- }
- }
- func (s *Order_by_exprContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitOrder_by_expr(s)
- }
- }
- func (p *SQLiteParser) Order_by_expr() (localctx IOrder_by_exprContext) {
- this := p
- _ = this
- localctx = NewOrder_by_exprContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 156, SQLiteParserRULE_order_by_expr)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2070)
- p.Match(SQLiteParserORDER_)
- }
- {
- p.SetState(2071)
- p.Match(SQLiteParserBY_)
- }
- p.SetState(2073)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for ok := true; ok; ok = ((int64((_la-3)) & ^0x3f) == 0 && ((int64(1)<<(_la-3))&-16776415) != 0) || ((int64((_la-67)) & ^0x3f) == 0 && ((int64(1)<<(_la-67))&-1) != 0) || ((int64((_la-131)) & ^0x3f) == 0 && ((int64(1)<<(_la-131))&9088264048033660927) != 0) {
- {
- p.SetState(2072)
- p.expr(0)
- }
- p.SetState(2075)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- return localctx
- }
- // IOrder_by_expr_asc_descContext is an interface to support dynamic dispatch.
- type IOrder_by_expr_asc_descContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ORDER_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- Order_by_expr_asc_desc() IOrder_by_expr_asc_descContext
- // IsOrder_by_expr_asc_descContext differentiates from other interfaces.
- IsOrder_by_expr_asc_descContext()
- }
- type Order_by_expr_asc_descContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyOrder_by_expr_asc_descContext() *Order_by_expr_asc_descContext {
- var p = new(Order_by_expr_asc_descContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_order_by_expr_asc_desc
- return p
- }
- func (*Order_by_expr_asc_descContext) IsOrder_by_expr_asc_descContext() {}
- func NewOrder_by_expr_asc_descContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Order_by_expr_asc_descContext {
- var p = new(Order_by_expr_asc_descContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_order_by_expr_asc_desc
- return p
- }
- func (s *Order_by_expr_asc_descContext) GetParser() antlr.Parser { return s.parser }
- func (s *Order_by_expr_asc_descContext) ORDER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserORDER_, 0)
- }
- func (s *Order_by_expr_asc_descContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *Order_by_expr_asc_descContext) Order_by_expr_asc_desc() IOrder_by_expr_asc_descContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IOrder_by_expr_asc_descContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IOrder_by_expr_asc_descContext)
- }
- func (s *Order_by_expr_asc_descContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Order_by_expr_asc_descContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Order_by_expr_asc_descContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterOrder_by_expr_asc_desc(s)
- }
- }
- func (s *Order_by_expr_asc_descContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitOrder_by_expr_asc_desc(s)
- }
- }
- func (p *SQLiteParser) Order_by_expr_asc_desc() (localctx IOrder_by_expr_asc_descContext) {
- this := p
- _ = this
- localctx = NewOrder_by_expr_asc_descContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 158, SQLiteParserRULE_order_by_expr_asc_desc)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2077)
- p.Match(SQLiteParserORDER_)
- }
- {
- p.SetState(2078)
- p.Match(SQLiteParserBY_)
- }
- {
- p.SetState(2079)
- p.Order_by_expr_asc_desc()
- }
- return localctx
- }
- // IExpr_asc_descContext is an interface to support dynamic dispatch.
- type IExpr_asc_descContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- AllExpr() []IExprContext
- Expr(i int) IExprContext
- AllAsc_desc() []IAsc_descContext
- Asc_desc(i int) IAsc_descContext
- AllCOMMA() []antlr.TerminalNode
- COMMA(i int) antlr.TerminalNode
- // IsExpr_asc_descContext differentiates from other interfaces.
- IsExpr_asc_descContext()
- }
- type Expr_asc_descContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyExpr_asc_descContext() *Expr_asc_descContext {
- var p = new(Expr_asc_descContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_expr_asc_desc
- return p
- }
- func (*Expr_asc_descContext) IsExpr_asc_descContext() {}
- func NewExpr_asc_descContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Expr_asc_descContext {
- var p = new(Expr_asc_descContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_expr_asc_desc
- return p
- }
- func (s *Expr_asc_descContext) GetParser() antlr.Parser { return s.parser }
- func (s *Expr_asc_descContext) AllExpr() []IExprContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IExprContext); ok {
- len++
- }
- }
- tst := make([]IExprContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IExprContext); ok {
- tst[i] = t.(IExprContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_asc_descContext) Expr(i int) IExprContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Expr_asc_descContext) AllAsc_desc() []IAsc_descContext {
- children := s.GetChildren()
- len := 0
- for _, ctx := range children {
- if _, ok := ctx.(IAsc_descContext); ok {
- len++
- }
- }
- tst := make([]IAsc_descContext, len)
- i := 0
- for _, ctx := range children {
- if t, ok := ctx.(IAsc_descContext); ok {
- tst[i] = t.(IAsc_descContext)
- i++
- }
- }
- return tst
- }
- func (s *Expr_asc_descContext) Asc_desc(i int) IAsc_descContext {
- var t antlr.RuleContext
- j := 0
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAsc_descContext); ok {
- if j == i {
- t = ctx.(antlr.RuleContext)
- break
- }
- j++
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAsc_descContext)
- }
- func (s *Expr_asc_descContext) AllCOMMA() []antlr.TerminalNode {
- return s.GetTokens(SQLiteParserCOMMA)
- }
- func (s *Expr_asc_descContext) COMMA(i int) antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMA, i)
- }
- func (s *Expr_asc_descContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Expr_asc_descContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Expr_asc_descContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterExpr_asc_desc(s)
- }
- }
- func (s *Expr_asc_descContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitExpr_asc_desc(s)
- }
- }
- func (p *SQLiteParser) Expr_asc_desc() (localctx IExpr_asc_descContext) {
- this := p
- _ = this
- localctx = NewExpr_asc_descContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 160, SQLiteParserRULE_expr_asc_desc)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2081)
- p.expr(0)
- }
- p.SetState(2083)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
- {
- p.SetState(2082)
- p.Asc_desc()
- }
- }
- p.SetState(2092)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- for _la == SQLiteParserCOMMA {
- {
- p.SetState(2085)
- p.Match(SQLiteParserCOMMA)
- }
- {
- p.SetState(2086)
- p.expr(0)
- }
- p.SetState(2088)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
- {
- p.SetState(2087)
- p.Asc_desc()
- }
- }
- p.SetState(2094)
- p.GetErrorHandler().Sync(p)
- _la = p.GetTokenStream().LA(1)
- }
- return localctx
- }
- // IInitial_selectContext is an interface to support dynamic dispatch.
- type IInitial_selectContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Select_stmt() ISelect_stmtContext
- // IsInitial_selectContext differentiates from other interfaces.
- IsInitial_selectContext()
- }
- type Initial_selectContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyInitial_selectContext() *Initial_selectContext {
- var p = new(Initial_selectContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_initial_select
- return p
- }
- func (*Initial_selectContext) IsInitial_selectContext() {}
- func NewInitial_selectContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Initial_selectContext {
- var p = new(Initial_selectContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_initial_select
- return p
- }
- func (s *Initial_selectContext) GetParser() antlr.Parser { return s.parser }
- func (s *Initial_selectContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Initial_selectContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Initial_selectContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Initial_selectContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterInitial_select(s)
- }
- }
- func (s *Initial_selectContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitInitial_select(s)
- }
- }
- func (p *SQLiteParser) Initial_select() (localctx IInitial_selectContext) {
- this := p
- _ = this
- localctx = NewInitial_selectContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 162, SQLiteParserRULE_initial_select)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2095)
- p.Select_stmt()
- }
- return localctx
- }
- // IRecursive__selectContext is an interface to support dynamic dispatch.
- type IRecursive__selectContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Select_stmt() ISelect_stmtContext
- // IsRecursive__selectContext differentiates from other interfaces.
- IsRecursive__selectContext()
- }
- type Recursive__selectContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyRecursive__selectContext() *Recursive__selectContext {
- var p = new(Recursive__selectContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_recursive__select
- return p
- }
- func (*Recursive__selectContext) IsRecursive__selectContext() {}
- func NewRecursive__selectContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Recursive__selectContext {
- var p = new(Recursive__selectContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_recursive__select
- return p
- }
- func (s *Recursive__selectContext) GetParser() antlr.Parser { return s.parser }
- func (s *Recursive__selectContext) Select_stmt() ISelect_stmtContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISelect_stmtContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISelect_stmtContext)
- }
- func (s *Recursive__selectContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Recursive__selectContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Recursive__selectContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterRecursive__select(s)
- }
- }
- func (s *Recursive__selectContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitRecursive__select(s)
- }
- }
- func (p *SQLiteParser) Recursive__select() (localctx IRecursive__selectContext) {
- this := p
- _ = this
- localctx = NewRecursive__selectContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 164, SQLiteParserRULE_recursive__select)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2097)
- p.Select_stmt()
- }
- return localctx
- }
- // IUnary_operatorContext is an interface to support dynamic dispatch.
- type IUnary_operatorContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- MINUS() antlr.TerminalNode
- PLUS() antlr.TerminalNode
- TILDE() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- // IsUnary_operatorContext differentiates from other interfaces.
- IsUnary_operatorContext()
- }
- type Unary_operatorContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyUnary_operatorContext() *Unary_operatorContext {
- var p = new(Unary_operatorContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_unary_operator
- return p
- }
- func (*Unary_operatorContext) IsUnary_operatorContext() {}
- func NewUnary_operatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Unary_operatorContext {
- var p = new(Unary_operatorContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_unary_operator
- return p
- }
- func (s *Unary_operatorContext) GetParser() antlr.Parser { return s.parser }
- func (s *Unary_operatorContext) MINUS() antlr.TerminalNode {
- return s.GetToken(SQLiteParserMINUS, 0)
- }
- func (s *Unary_operatorContext) PLUS() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPLUS, 0)
- }
- func (s *Unary_operatorContext) TILDE() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTILDE, 0)
- }
- func (s *Unary_operatorContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *Unary_operatorContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Unary_operatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Unary_operatorContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterUnary_operator(s)
- }
- }
- func (s *Unary_operatorContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitUnary_operator(s)
- }
- }
- func (p *SQLiteParser) Unary_operator() (localctx IUnary_operatorContext) {
- this := p
- _ = this
- localctx = NewUnary_operatorContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 166, SQLiteParserRULE_unary_operator)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2099)
- _la = p.GetTokenStream().LA(1)
- if !(((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&6400) != 0) || _la == SQLiteParserNOT_) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- return localctx
- }
- // IError_messageContext is an interface to support dynamic dispatch.
- type IError_messageContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- STRING_LITERAL() antlr.TerminalNode
- // IsError_messageContext differentiates from other interfaces.
- IsError_messageContext()
- }
- type Error_messageContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyError_messageContext() *Error_messageContext {
- var p = new(Error_messageContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_error_message
- return p
- }
- func (*Error_messageContext) IsError_messageContext() {}
- func NewError_messageContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Error_messageContext {
- var p = new(Error_messageContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_error_message
- return p
- }
- func (s *Error_messageContext) GetParser() antlr.Parser { return s.parser }
- func (s *Error_messageContext) STRING_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRING_LITERAL, 0)
- }
- func (s *Error_messageContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Error_messageContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Error_messageContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterError_message(s)
- }
- }
- func (s *Error_messageContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitError_message(s)
- }
- }
- func (p *SQLiteParser) Error_message() (localctx IError_messageContext) {
- this := p
- _ = this
- localctx = NewError_messageContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 168, SQLiteParserRULE_error_message)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2101)
- p.Match(SQLiteParserSTRING_LITERAL)
- }
- return localctx
- }
- // IModule_argumentContext is an interface to support dynamic dispatch.
- type IModule_argumentContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Expr() IExprContext
- Column_def() IColumn_defContext
- // IsModule_argumentContext differentiates from other interfaces.
- IsModule_argumentContext()
- }
- type Module_argumentContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyModule_argumentContext() *Module_argumentContext {
- var p = new(Module_argumentContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_module_argument
- return p
- }
- func (*Module_argumentContext) IsModule_argumentContext() {}
- func NewModule_argumentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Module_argumentContext {
- var p = new(Module_argumentContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_module_argument
- return p
- }
- func (s *Module_argumentContext) GetParser() antlr.Parser { return s.parser }
- func (s *Module_argumentContext) Expr() IExprContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IExprContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IExprContext)
- }
- func (s *Module_argumentContext) Column_def() IColumn_defContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IColumn_defContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IColumn_defContext)
- }
- func (s *Module_argumentContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Module_argumentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Module_argumentContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterModule_argument(s)
- }
- }
- func (s *Module_argumentContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitModule_argument(s)
- }
- }
- func (p *SQLiteParser) Module_argument() (localctx IModule_argumentContext) {
- this := p
- _ = this
- localctx = NewModule_argumentContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 170, SQLiteParserRULE_module_argument)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(2105)
- p.GetErrorHandler().Sync(p)
- switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 311, p.GetParserRuleContext()) {
- case 1:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2103)
- p.expr(0)
- }
- case 2:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(2104)
- p.Column_def()
- }
- }
- return localctx
- }
- // IColumn_aliasContext is an interface to support dynamic dispatch.
- type IColumn_aliasContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- IDENTIFIER() antlr.TerminalNode
- STRING_LITERAL() antlr.TerminalNode
- // IsColumn_aliasContext differentiates from other interfaces.
- IsColumn_aliasContext()
- }
- type Column_aliasContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyColumn_aliasContext() *Column_aliasContext {
- var p = new(Column_aliasContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_column_alias
- return p
- }
- func (*Column_aliasContext) IsColumn_aliasContext() {}
- func NewColumn_aliasContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Column_aliasContext {
- var p = new(Column_aliasContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_column_alias
- return p
- }
- func (s *Column_aliasContext) GetParser() antlr.Parser { return s.parser }
- func (s *Column_aliasContext) IDENTIFIER() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIDENTIFIER, 0)
- }
- func (s *Column_aliasContext) STRING_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRING_LITERAL, 0)
- }
- func (s *Column_aliasContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Column_aliasContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Column_aliasContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterColumn_alias(s)
- }
- }
- func (s *Column_aliasContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitColumn_alias(s)
- }
- }
- func (p *SQLiteParser) Column_alias() (localctx IColumn_aliasContext) {
- this := p
- _ = this
- localctx = NewColumn_aliasContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 172, SQLiteParserRULE_column_alias)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2107)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- return localctx
- }
- // IKeywordContext is an interface to support dynamic dispatch.
- type IKeywordContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- ABORT_() antlr.TerminalNode
- ACTION_() antlr.TerminalNode
- ADD_() antlr.TerminalNode
- AFTER_() antlr.TerminalNode
- ALL_() antlr.TerminalNode
- ALTER_() antlr.TerminalNode
- ANALYZE_() antlr.TerminalNode
- AND_() antlr.TerminalNode
- AS_() antlr.TerminalNode
- ASC_() antlr.TerminalNode
- ATTACH_() antlr.TerminalNode
- AUTOINCREMENT_() antlr.TerminalNode
- BEFORE_() antlr.TerminalNode
- BEGIN_() antlr.TerminalNode
- BETWEEN_() antlr.TerminalNode
- BY_() antlr.TerminalNode
- CASCADE_() antlr.TerminalNode
- CASE_() antlr.TerminalNode
- CAST_() antlr.TerminalNode
- CHECK_() antlr.TerminalNode
- COLLATE_() antlr.TerminalNode
- COLUMN_() antlr.TerminalNode
- COMMIT_() antlr.TerminalNode
- CONFLICT_() antlr.TerminalNode
- CONSTRAINT_() antlr.TerminalNode
- CREATE_() antlr.TerminalNode
- CROSS_() antlr.TerminalNode
- CURRENT_DATE_() antlr.TerminalNode
- CURRENT_TIME_() antlr.TerminalNode
- CURRENT_TIMESTAMP_() antlr.TerminalNode
- DATABASE_() antlr.TerminalNode
- DEFAULT_() antlr.TerminalNode
- DEFERRABLE_() antlr.TerminalNode
- DEFERRED_() antlr.TerminalNode
- DELETE_() antlr.TerminalNode
- DESC_() antlr.TerminalNode
- DETACH_() antlr.TerminalNode
- DISTINCT_() antlr.TerminalNode
- DROP_() antlr.TerminalNode
- EACH_() antlr.TerminalNode
- ELSE_() antlr.TerminalNode
- END_() antlr.TerminalNode
- ESCAPE_() antlr.TerminalNode
- EXCEPT_() antlr.TerminalNode
- EXCLUSIVE_() antlr.TerminalNode
- EXISTS_() antlr.TerminalNode
- EXPLAIN_() antlr.TerminalNode
- FAIL_() antlr.TerminalNode
- FOR_() antlr.TerminalNode
- FOREIGN_() antlr.TerminalNode
- FROM_() antlr.TerminalNode
- FULL_() antlr.TerminalNode
- GLOB_() antlr.TerminalNode
- GROUP_() antlr.TerminalNode
- HAVING_() antlr.TerminalNode
- IF_() antlr.TerminalNode
- IGNORE_() antlr.TerminalNode
- IMMEDIATE_() antlr.TerminalNode
- IN_() antlr.TerminalNode
- INDEX_() antlr.TerminalNode
- INDEXED_() antlr.TerminalNode
- INITIALLY_() antlr.TerminalNode
- INNER_() antlr.TerminalNode
- INSERT_() antlr.TerminalNode
- INSTEAD_() antlr.TerminalNode
- INTERSECT_() antlr.TerminalNode
- INTO_() antlr.TerminalNode
- IS_() antlr.TerminalNode
- ISNULL_() antlr.TerminalNode
- JOIN_() antlr.TerminalNode
- KEY_() antlr.TerminalNode
- LEFT_() antlr.TerminalNode
- LIKE_() antlr.TerminalNode
- LIMIT_() antlr.TerminalNode
- MATCH_() antlr.TerminalNode
- NATURAL_() antlr.TerminalNode
- NO_() antlr.TerminalNode
- NOT_() antlr.TerminalNode
- NOTNULL_() antlr.TerminalNode
- NULL_() antlr.TerminalNode
- OF_() antlr.TerminalNode
- OFFSET_() antlr.TerminalNode
- ON_() antlr.TerminalNode
- OR_() antlr.TerminalNode
- ORDER_() antlr.TerminalNode
- OUTER_() antlr.TerminalNode
- PLAN_() antlr.TerminalNode
- PRAGMA_() antlr.TerminalNode
- PRIMARY_() antlr.TerminalNode
- QUERY_() antlr.TerminalNode
- RAISE_() antlr.TerminalNode
- RECURSIVE_() antlr.TerminalNode
- REFERENCES_() antlr.TerminalNode
- REGEXP_() antlr.TerminalNode
- REINDEX_() antlr.TerminalNode
- RELEASE_() antlr.TerminalNode
- RENAME_() antlr.TerminalNode
- REPLACE_() antlr.TerminalNode
- RESTRICT_() antlr.TerminalNode
- RETURNING_() antlr.TerminalNode
- RIGHT_() antlr.TerminalNode
- ROLLBACK_() antlr.TerminalNode
- ROW_() antlr.TerminalNode
- ROWS_() antlr.TerminalNode
- SAVEPOINT_() antlr.TerminalNode
- SELECT_() antlr.TerminalNode
- SET_() antlr.TerminalNode
- STRICT_() antlr.TerminalNode
- TABLE_() antlr.TerminalNode
- TEMP_() antlr.TerminalNode
- TEMPORARY_() antlr.TerminalNode
- THEN_() antlr.TerminalNode
- TO_() antlr.TerminalNode
- TRANSACTION_() antlr.TerminalNode
- TRIGGER_() antlr.TerminalNode
- UNION_() antlr.TerminalNode
- UNIQUE_() antlr.TerminalNode
- UPDATE_() antlr.TerminalNode
- USING_() antlr.TerminalNode
- VACUUM_() antlr.TerminalNode
- VALUES_() antlr.TerminalNode
- VIEW_() antlr.TerminalNode
- VIRTUAL_() antlr.TerminalNode
- WHEN_() antlr.TerminalNode
- WHERE_() antlr.TerminalNode
- WITH_() antlr.TerminalNode
- WITHOUT_() antlr.TerminalNode
- FIRST_VALUE_() antlr.TerminalNode
- OVER_() antlr.TerminalNode
- PARTITION_() antlr.TerminalNode
- RANGE_() antlr.TerminalNode
- PRECEDING_() antlr.TerminalNode
- UNBOUNDED_() antlr.TerminalNode
- CURRENT_() antlr.TerminalNode
- FOLLOWING_() antlr.TerminalNode
- CUME_DIST_() antlr.TerminalNode
- DENSE_RANK_() antlr.TerminalNode
- LAG_() antlr.TerminalNode
- LAST_VALUE_() antlr.TerminalNode
- LEAD_() antlr.TerminalNode
- NTH_VALUE_() antlr.TerminalNode
- NTILE_() antlr.TerminalNode
- PERCENT_RANK_() antlr.TerminalNode
- RANK_() antlr.TerminalNode
- ROW_NUMBER_() antlr.TerminalNode
- GENERATED_() antlr.TerminalNode
- ALWAYS_() antlr.TerminalNode
- STORED_() antlr.TerminalNode
- TRUE_() antlr.TerminalNode
- FALSE_() antlr.TerminalNode
- WINDOW_() antlr.TerminalNode
- NULLS_() antlr.TerminalNode
- FIRST_() antlr.TerminalNode
- LAST_() antlr.TerminalNode
- FILTER_() antlr.TerminalNode
- GROUPS_() antlr.TerminalNode
- EXCLUDE_() antlr.TerminalNode
- // IsKeywordContext differentiates from other interfaces.
- IsKeywordContext()
- }
- type KeywordContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyKeywordContext() *KeywordContext {
- var p = new(KeywordContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_keyword
- return p
- }
- func (*KeywordContext) IsKeywordContext() {}
- func NewKeywordContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *KeywordContext {
- var p = new(KeywordContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_keyword
- return p
- }
- func (s *KeywordContext) GetParser() antlr.Parser { return s.parser }
- func (s *KeywordContext) ABORT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserABORT_, 0)
- }
- func (s *KeywordContext) ACTION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserACTION_, 0)
- }
- func (s *KeywordContext) ADD_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserADD_, 0)
- }
- func (s *KeywordContext) AFTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAFTER_, 0)
- }
- func (s *KeywordContext) ALL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALL_, 0)
- }
- func (s *KeywordContext) ALTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALTER_, 0)
- }
- func (s *KeywordContext) ANALYZE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserANALYZE_, 0)
- }
- func (s *KeywordContext) AND_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAND_, 0)
- }
- func (s *KeywordContext) AS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAS_, 0)
- }
- func (s *KeywordContext) ASC_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserASC_, 0)
- }
- func (s *KeywordContext) ATTACH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserATTACH_, 0)
- }
- func (s *KeywordContext) AUTOINCREMENT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserAUTOINCREMENT_, 0)
- }
- func (s *KeywordContext) BEFORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBEFORE_, 0)
- }
- func (s *KeywordContext) BEGIN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBEGIN_, 0)
- }
- func (s *KeywordContext) BETWEEN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBETWEEN_, 0)
- }
- func (s *KeywordContext) BY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserBY_, 0)
- }
- func (s *KeywordContext) CASCADE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCASCADE_, 0)
- }
- func (s *KeywordContext) CASE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCASE_, 0)
- }
- func (s *KeywordContext) CAST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCAST_, 0)
- }
- func (s *KeywordContext) CHECK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCHECK_, 0)
- }
- func (s *KeywordContext) COLLATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOLLATE_, 0)
- }
- func (s *KeywordContext) COLUMN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOLUMN_, 0)
- }
- func (s *KeywordContext) COMMIT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCOMMIT_, 0)
- }
- func (s *KeywordContext) CONFLICT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCONFLICT_, 0)
- }
- func (s *KeywordContext) CONSTRAINT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCONSTRAINT_, 0)
- }
- func (s *KeywordContext) CREATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCREATE_, 0)
- }
- func (s *KeywordContext) CROSS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCROSS_, 0)
- }
- func (s *KeywordContext) CURRENT_DATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_DATE_, 0)
- }
- func (s *KeywordContext) CURRENT_TIME_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_TIME_, 0)
- }
- func (s *KeywordContext) CURRENT_TIMESTAMP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_TIMESTAMP_, 0)
- }
- func (s *KeywordContext) DATABASE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDATABASE_, 0)
- }
- func (s *KeywordContext) DEFAULT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFAULT_, 0)
- }
- func (s *KeywordContext) DEFERRABLE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFERRABLE_, 0)
- }
- func (s *KeywordContext) DEFERRED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDEFERRED_, 0)
- }
- func (s *KeywordContext) DELETE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDELETE_, 0)
- }
- func (s *KeywordContext) DESC_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDESC_, 0)
- }
- func (s *KeywordContext) DETACH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDETACH_, 0)
- }
- func (s *KeywordContext) DISTINCT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDISTINCT_, 0)
- }
- func (s *KeywordContext) DROP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDROP_, 0)
- }
- func (s *KeywordContext) EACH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEACH_, 0)
- }
- func (s *KeywordContext) ELSE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserELSE_, 0)
- }
- func (s *KeywordContext) END_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEND_, 0)
- }
- func (s *KeywordContext) ESCAPE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserESCAPE_, 0)
- }
- func (s *KeywordContext) EXCEPT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXCEPT_, 0)
- }
- func (s *KeywordContext) EXCLUSIVE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXCLUSIVE_, 0)
- }
- func (s *KeywordContext) EXISTS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXISTS_, 0)
- }
- func (s *KeywordContext) EXPLAIN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXPLAIN_, 0)
- }
- func (s *KeywordContext) FAIL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFAIL_, 0)
- }
- func (s *KeywordContext) FOR_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFOR_, 0)
- }
- func (s *KeywordContext) FOREIGN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFOREIGN_, 0)
- }
- func (s *KeywordContext) FROM_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFROM_, 0)
- }
- func (s *KeywordContext) FULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFULL_, 0)
- }
- func (s *KeywordContext) GLOB_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGLOB_, 0)
- }
- func (s *KeywordContext) GROUP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGROUP_, 0)
- }
- func (s *KeywordContext) HAVING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserHAVING_, 0)
- }
- func (s *KeywordContext) IF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIF_, 0)
- }
- func (s *KeywordContext) IGNORE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIGNORE_, 0)
- }
- func (s *KeywordContext) IMMEDIATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIMMEDIATE_, 0)
- }
- func (s *KeywordContext) IN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIN_, 0)
- }
- func (s *KeywordContext) INDEX_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINDEX_, 0)
- }
- func (s *KeywordContext) INDEXED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINDEXED_, 0)
- }
- func (s *KeywordContext) INITIALLY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINITIALLY_, 0)
- }
- func (s *KeywordContext) INNER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINNER_, 0)
- }
- func (s *KeywordContext) INSERT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINSERT_, 0)
- }
- func (s *KeywordContext) INSTEAD_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINSTEAD_, 0)
- }
- func (s *KeywordContext) INTERSECT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINTERSECT_, 0)
- }
- func (s *KeywordContext) INTO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserINTO_, 0)
- }
- func (s *KeywordContext) IS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIS_, 0)
- }
- func (s *KeywordContext) ISNULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserISNULL_, 0)
- }
- func (s *KeywordContext) JOIN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserJOIN_, 0)
- }
- func (s *KeywordContext) KEY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserKEY_, 0)
- }
- func (s *KeywordContext) LEFT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLEFT_, 0)
- }
- func (s *KeywordContext) LIKE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLIKE_, 0)
- }
- func (s *KeywordContext) LIMIT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLIMIT_, 0)
- }
- func (s *KeywordContext) MATCH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserMATCH_, 0)
- }
- func (s *KeywordContext) NATURAL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNATURAL_, 0)
- }
- func (s *KeywordContext) NO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNO_, 0)
- }
- func (s *KeywordContext) NOT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOT_, 0)
- }
- func (s *KeywordContext) NOTNULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNOTNULL_, 0)
- }
- func (s *KeywordContext) NULL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNULL_, 0)
- }
- func (s *KeywordContext) OF_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOF_, 0)
- }
- func (s *KeywordContext) OFFSET_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOFFSET_, 0)
- }
- func (s *KeywordContext) ON_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserON_, 0)
- }
- func (s *KeywordContext) OR_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOR_, 0)
- }
- func (s *KeywordContext) ORDER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserORDER_, 0)
- }
- func (s *KeywordContext) OUTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOUTER_, 0)
- }
- func (s *KeywordContext) PLAN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPLAN_, 0)
- }
- func (s *KeywordContext) PRAGMA_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRAGMA_, 0)
- }
- func (s *KeywordContext) PRIMARY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRIMARY_, 0)
- }
- func (s *KeywordContext) QUERY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserQUERY_, 0)
- }
- func (s *KeywordContext) RAISE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRAISE_, 0)
- }
- func (s *KeywordContext) RECURSIVE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRECURSIVE_, 0)
- }
- func (s *KeywordContext) REFERENCES_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREFERENCES_, 0)
- }
- func (s *KeywordContext) REGEXP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREGEXP_, 0)
- }
- func (s *KeywordContext) REINDEX_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREINDEX_, 0)
- }
- func (s *KeywordContext) RELEASE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRELEASE_, 0)
- }
- func (s *KeywordContext) RENAME_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRENAME_, 0)
- }
- func (s *KeywordContext) REPLACE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserREPLACE_, 0)
- }
- func (s *KeywordContext) RESTRICT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRESTRICT_, 0)
- }
- func (s *KeywordContext) RETURNING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRETURNING_, 0)
- }
- func (s *KeywordContext) RIGHT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRIGHT_, 0)
- }
- func (s *KeywordContext) ROLLBACK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROLLBACK_, 0)
- }
- func (s *KeywordContext) ROW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_, 0)
- }
- func (s *KeywordContext) ROWS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROWS_, 0)
- }
- func (s *KeywordContext) SAVEPOINT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSAVEPOINT_, 0)
- }
- func (s *KeywordContext) SELECT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSELECT_, 0)
- }
- func (s *KeywordContext) SET_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSET_, 0)
- }
- func (s *KeywordContext) STRICT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRICT_, 0)
- }
- func (s *KeywordContext) TABLE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTABLE_, 0)
- }
- func (s *KeywordContext) TEMP_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMP_, 0)
- }
- func (s *KeywordContext) TEMPORARY_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTEMPORARY_, 0)
- }
- func (s *KeywordContext) THEN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTHEN_, 0)
- }
- func (s *KeywordContext) TO_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTO_, 0)
- }
- func (s *KeywordContext) TRANSACTION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRANSACTION_, 0)
- }
- func (s *KeywordContext) TRIGGER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRIGGER_, 0)
- }
- func (s *KeywordContext) UNION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNION_, 0)
- }
- func (s *KeywordContext) UNIQUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNIQUE_, 0)
- }
- func (s *KeywordContext) UPDATE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUPDATE_, 0)
- }
- func (s *KeywordContext) USING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUSING_, 0)
- }
- func (s *KeywordContext) VACUUM_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVACUUM_, 0)
- }
- func (s *KeywordContext) VALUES_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVALUES_, 0)
- }
- func (s *KeywordContext) VIEW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVIEW_, 0)
- }
- func (s *KeywordContext) VIRTUAL_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserVIRTUAL_, 0)
- }
- func (s *KeywordContext) WHEN_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHEN_, 0)
- }
- func (s *KeywordContext) WHERE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWHERE_, 0)
- }
- func (s *KeywordContext) WITH_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWITH_, 0)
- }
- func (s *KeywordContext) WITHOUT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWITHOUT_, 0)
- }
- func (s *KeywordContext) FIRST_VALUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFIRST_VALUE_, 0)
- }
- func (s *KeywordContext) OVER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOVER_, 0)
- }
- func (s *KeywordContext) PARTITION_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPARTITION_, 0)
- }
- func (s *KeywordContext) RANGE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRANGE_, 0)
- }
- func (s *KeywordContext) PRECEDING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPRECEDING_, 0)
- }
- func (s *KeywordContext) UNBOUNDED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserUNBOUNDED_, 0)
- }
- func (s *KeywordContext) CURRENT_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCURRENT_, 0)
- }
- func (s *KeywordContext) FOLLOWING_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFOLLOWING_, 0)
- }
- func (s *KeywordContext) CUME_DIST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCUME_DIST_, 0)
- }
- func (s *KeywordContext) DENSE_RANK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDENSE_RANK_, 0)
- }
- func (s *KeywordContext) LAG_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLAG_, 0)
- }
- func (s *KeywordContext) LAST_VALUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLAST_VALUE_, 0)
- }
- func (s *KeywordContext) LEAD_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLEAD_, 0)
- }
- func (s *KeywordContext) NTH_VALUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNTH_VALUE_, 0)
- }
- func (s *KeywordContext) NTILE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNTILE_, 0)
- }
- func (s *KeywordContext) PERCENT_RANK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserPERCENT_RANK_, 0)
- }
- func (s *KeywordContext) RANK_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserRANK_, 0)
- }
- func (s *KeywordContext) ROW_NUMBER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserROW_NUMBER_, 0)
- }
- func (s *KeywordContext) GENERATED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGENERATED_, 0)
- }
- func (s *KeywordContext) ALWAYS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserALWAYS_, 0)
- }
- func (s *KeywordContext) STORED_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTORED_, 0)
- }
- func (s *KeywordContext) TRUE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserTRUE_, 0)
- }
- func (s *KeywordContext) FALSE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFALSE_, 0)
- }
- func (s *KeywordContext) WINDOW_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserWINDOW_, 0)
- }
- func (s *KeywordContext) NULLS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserNULLS_, 0)
- }
- func (s *KeywordContext) FIRST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFIRST_, 0)
- }
- func (s *KeywordContext) LAST_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserLAST_, 0)
- }
- func (s *KeywordContext) FILTER_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserFILTER_, 0)
- }
- func (s *KeywordContext) GROUPS_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserGROUPS_, 0)
- }
- func (s *KeywordContext) EXCLUDE_() antlr.TerminalNode {
- return s.GetToken(SQLiteParserEXCLUDE_, 0)
- }
- func (s *KeywordContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *KeywordContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *KeywordContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterKeyword(s)
- }
- }
- func (s *KeywordContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitKeyword(s)
- }
- }
- func (p *SQLiteParser) Keyword() (localctx IKeywordContext) {
- this := p
- _ = this
- localctx = NewKeywordContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 174, SQLiteParserRULE_keyword)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2109)
- _la = p.GetTokenStream().LA(1)
- if !(((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&-134217728) != 0) || ((int64((_la-64)) & ^0x3f) == 0 && ((int64(1)<<(_la-64))&-1) != 0) || ((int64((_la-128)) & ^0x3f) == 0 && ((int64(1)<<(_la-128))&72057594037927935) != 0)) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- return localctx
- }
- // INameContext is an interface to support dynamic dispatch.
- type INameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsNameContext differentiates from other interfaces.
- IsNameContext()
- }
- type NameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyNameContext() *NameContext {
- var p = new(NameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_name
- return p
- }
- func (*NameContext) IsNameContext() {}
- func NewNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NameContext {
- var p = new(NameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_name
- return p
- }
- func (s *NameContext) GetParser() antlr.Parser { return s.parser }
- func (s *NameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *NameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *NameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *NameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterName(s)
- }
- }
- func (s *NameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitName(s)
- }
- }
- func (p *SQLiteParser) Name() (localctx INameContext) {
- this := p
- _ = this
- localctx = NewNameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 176, SQLiteParserRULE_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2111)
- p.Any_name()
- }
- return localctx
- }
- // IFunction_nameContext is an interface to support dynamic dispatch.
- type IFunction_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsFunction_nameContext differentiates from other interfaces.
- IsFunction_nameContext()
- }
- type Function_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFunction_nameContext() *Function_nameContext {
- var p = new(Function_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_function_name
- return p
- }
- func (*Function_nameContext) IsFunction_nameContext() {}
- func NewFunction_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Function_nameContext {
- var p = new(Function_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_function_name
- return p
- }
- func (s *Function_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Function_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Function_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Function_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Function_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFunction_name(s)
- }
- }
- func (s *Function_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFunction_name(s)
- }
- }
- func (p *SQLiteParser) Function_name() (localctx IFunction_nameContext) {
- this := p
- _ = this
- localctx = NewFunction_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 178, SQLiteParserRULE_function_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2113)
- p.Any_name()
- }
- return localctx
- }
- // IQualified_function_nameContext is an interface to support dynamic dispatch.
- type IQualified_function_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Function_name() IFunction_nameContext
- Schema_name() ISchema_nameContext
- DOT() antlr.TerminalNode
- // IsQualified_function_nameContext differentiates from other interfaces.
- IsQualified_function_nameContext()
- }
- type Qualified_function_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyQualified_function_nameContext() *Qualified_function_nameContext {
- var p = new(Qualified_function_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_qualified_function_name
- return p
- }
- func (*Qualified_function_nameContext) IsQualified_function_nameContext() {}
- func NewQualified_function_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Qualified_function_nameContext {
- var p = new(Qualified_function_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_qualified_function_name
- return p
- }
- func (s *Qualified_function_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Qualified_function_nameContext) Function_name() IFunction_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IFunction_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IFunction_nameContext)
- }
- func (s *Qualified_function_nameContext) Schema_name() ISchema_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(ISchema_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(ISchema_nameContext)
- }
- func (s *Qualified_function_nameContext) DOT() antlr.TerminalNode {
- return s.GetToken(SQLiteParserDOT, 0)
- }
- func (s *Qualified_function_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Qualified_function_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Qualified_function_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterQualified_function_name(s)
- }
- }
- func (s *Qualified_function_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitQualified_function_name(s)
- }
- }
- func (p *SQLiteParser) Qualified_function_name() (localctx IQualified_function_nameContext) {
- this := p
- _ = this
- localctx = NewQualified_function_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 180, SQLiteParserRULE_qualified_function_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- p.SetState(2118)
- p.GetErrorHandler().Sync(p)
- if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 312, p.GetParserRuleContext()) == 1 {
- {
- p.SetState(2115)
- p.Schema_name()
- }
- {
- p.SetState(2116)
- p.Match(SQLiteParserDOT)
- }
- }
- {
- p.SetState(2120)
- p.Function_name()
- }
- return localctx
- }
- // ISchema_nameContext is an interface to support dynamic dispatch.
- type ISchema_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsSchema_nameContext differentiates from other interfaces.
- IsSchema_nameContext()
- }
- type Schema_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySchema_nameContext() *Schema_nameContext {
- var p = new(Schema_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_schema_name
- return p
- }
- func (*Schema_nameContext) IsSchema_nameContext() {}
- func NewSchema_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Schema_nameContext {
- var p = new(Schema_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_schema_name
- return p
- }
- func (s *Schema_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Schema_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Schema_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Schema_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Schema_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSchema_name(s)
- }
- }
- func (s *Schema_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSchema_name(s)
- }
- }
- func (p *SQLiteParser) Schema_name() (localctx ISchema_nameContext) {
- this := p
- _ = this
- localctx = NewSchema_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 182, SQLiteParserRULE_schema_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2122)
- p.Any_name()
- }
- return localctx
- }
- // ITable_nameContext is an interface to support dynamic dispatch.
- type ITable_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsTable_nameContext differentiates from other interfaces.
- IsTable_nameContext()
- }
- type Table_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTable_nameContext() *Table_nameContext {
- var p = new(Table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_name
- return p
- }
- func (*Table_nameContext) IsTable_nameContext() {}
- func NewTable_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_nameContext {
- var p = new(Table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_name
- return p
- }
- func (s *Table_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Table_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_name(s)
- }
- }
- func (s *Table_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_name(s)
- }
- }
- func (p *SQLiteParser) Table_name() (localctx ITable_nameContext) {
- this := p
- _ = this
- localctx = NewTable_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 184, SQLiteParserRULE_table_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2124)
- p.Any_name()
- }
- return localctx
- }
- // ITable_or_index_nameContext is an interface to support dynamic dispatch.
- type ITable_or_index_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsTable_or_index_nameContext differentiates from other interfaces.
- IsTable_or_index_nameContext()
- }
- type Table_or_index_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTable_or_index_nameContext() *Table_or_index_nameContext {
- var p = new(Table_or_index_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_or_index_name
- return p
- }
- func (*Table_or_index_nameContext) IsTable_or_index_nameContext() {}
- func NewTable_or_index_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_or_index_nameContext {
- var p = new(Table_or_index_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_or_index_name
- return p
- }
- func (s *Table_or_index_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_or_index_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Table_or_index_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_or_index_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_or_index_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_or_index_name(s)
- }
- }
- func (s *Table_or_index_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_or_index_name(s)
- }
- }
- func (p *SQLiteParser) Table_or_index_name() (localctx ITable_or_index_nameContext) {
- this := p
- _ = this
- localctx = NewTable_or_index_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 186, SQLiteParserRULE_table_or_index_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2126)
- p.Any_name()
- }
- return localctx
- }
- // INew_table_nameContext is an interface to support dynamic dispatch.
- type INew_table_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsNew_table_nameContext differentiates from other interfaces.
- IsNew_table_nameContext()
- }
- type New_table_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyNew_table_nameContext() *New_table_nameContext {
- var p = new(New_table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_new_table_name
- return p
- }
- func (*New_table_nameContext) IsNew_table_nameContext() {}
- func NewNew_table_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *New_table_nameContext {
- var p = new(New_table_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_new_table_name
- return p
- }
- func (s *New_table_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *New_table_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *New_table_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *New_table_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *New_table_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterNew_table_name(s)
- }
- }
- func (s *New_table_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitNew_table_name(s)
- }
- }
- func (p *SQLiteParser) New_table_name() (localctx INew_table_nameContext) {
- this := p
- _ = this
- localctx = NewNew_table_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 188, SQLiteParserRULE_new_table_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2128)
- p.Any_name()
- }
- return localctx
- }
- // IColumn_nameContext is an interface to support dynamic dispatch.
- type IColumn_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsColumn_nameContext differentiates from other interfaces.
- IsColumn_nameContext()
- }
- type Column_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyColumn_nameContext() *Column_nameContext {
- var p = new(Column_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_column_name
- return p
- }
- func (*Column_nameContext) IsColumn_nameContext() {}
- func NewColumn_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Column_nameContext {
- var p = new(Column_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_column_name
- return p
- }
- func (s *Column_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Column_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Column_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Column_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Column_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterColumn_name(s)
- }
- }
- func (s *Column_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitColumn_name(s)
- }
- }
- func (p *SQLiteParser) Column_name() (localctx IColumn_nameContext) {
- this := p
- _ = this
- localctx = NewColumn_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 190, SQLiteParserRULE_column_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2130)
- p.Any_name()
- }
- return localctx
- }
- // ICollation_nameContext is an interface to support dynamic dispatch.
- type ICollation_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsCollation_nameContext differentiates from other interfaces.
- IsCollation_nameContext()
- }
- type Collation_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyCollation_nameContext() *Collation_nameContext {
- var p = new(Collation_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_collation_name
- return p
- }
- func (*Collation_nameContext) IsCollation_nameContext() {}
- func NewCollation_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Collation_nameContext {
- var p = new(Collation_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_collation_name
- return p
- }
- func (s *Collation_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Collation_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Collation_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Collation_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Collation_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterCollation_name(s)
- }
- }
- func (s *Collation_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitCollation_name(s)
- }
- }
- func (p *SQLiteParser) Collation_name() (localctx ICollation_nameContext) {
- this := p
- _ = this
- localctx = NewCollation_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 192, SQLiteParserRULE_collation_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2132)
- p.Any_name()
- }
- return localctx
- }
- // IForeign_tableContext is an interface to support dynamic dispatch.
- type IForeign_tableContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsForeign_tableContext differentiates from other interfaces.
- IsForeign_tableContext()
- }
- type Foreign_tableContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyForeign_tableContext() *Foreign_tableContext {
- var p = new(Foreign_tableContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_foreign_table
- return p
- }
- func (*Foreign_tableContext) IsForeign_tableContext() {}
- func NewForeign_tableContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Foreign_tableContext {
- var p = new(Foreign_tableContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_foreign_table
- return p
- }
- func (s *Foreign_tableContext) GetParser() antlr.Parser { return s.parser }
- func (s *Foreign_tableContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Foreign_tableContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Foreign_tableContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Foreign_tableContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterForeign_table(s)
- }
- }
- func (s *Foreign_tableContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitForeign_table(s)
- }
- }
- func (p *SQLiteParser) Foreign_table() (localctx IForeign_tableContext) {
- this := p
- _ = this
- localctx = NewForeign_tableContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 194, SQLiteParserRULE_foreign_table)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2134)
- p.Any_name()
- }
- return localctx
- }
- // IIndex_nameContext is an interface to support dynamic dispatch.
- type IIndex_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsIndex_nameContext differentiates from other interfaces.
- IsIndex_nameContext()
- }
- type Index_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyIndex_nameContext() *Index_nameContext {
- var p = new(Index_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_index_name
- return p
- }
- func (*Index_nameContext) IsIndex_nameContext() {}
- func NewIndex_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Index_nameContext {
- var p = new(Index_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_index_name
- return p
- }
- func (s *Index_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Index_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Index_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Index_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Index_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterIndex_name(s)
- }
- }
- func (s *Index_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitIndex_name(s)
- }
- }
- func (p *SQLiteParser) Index_name() (localctx IIndex_nameContext) {
- this := p
- _ = this
- localctx = NewIndex_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 196, SQLiteParserRULE_index_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2136)
- p.Any_name()
- }
- return localctx
- }
- // ITrigger_nameContext is an interface to support dynamic dispatch.
- type ITrigger_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsTrigger_nameContext differentiates from other interfaces.
- IsTrigger_nameContext()
- }
- type Trigger_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTrigger_nameContext() *Trigger_nameContext {
- var p = new(Trigger_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_trigger_name
- return p
- }
- func (*Trigger_nameContext) IsTrigger_nameContext() {}
- func NewTrigger_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Trigger_nameContext {
- var p = new(Trigger_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_trigger_name
- return p
- }
- func (s *Trigger_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Trigger_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Trigger_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Trigger_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Trigger_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTrigger_name(s)
- }
- }
- func (s *Trigger_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTrigger_name(s)
- }
- }
- func (p *SQLiteParser) Trigger_name() (localctx ITrigger_nameContext) {
- this := p
- _ = this
- localctx = NewTrigger_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 198, SQLiteParserRULE_trigger_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2138)
- p.Any_name()
- }
- return localctx
- }
- // IView_nameContext is an interface to support dynamic dispatch.
- type IView_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsView_nameContext differentiates from other interfaces.
- IsView_nameContext()
- }
- type View_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyView_nameContext() *View_nameContext {
- var p = new(View_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_view_name
- return p
- }
- func (*View_nameContext) IsView_nameContext() {}
- func NewView_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *View_nameContext {
- var p = new(View_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_view_name
- return p
- }
- func (s *View_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *View_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *View_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *View_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *View_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterView_name(s)
- }
- }
- func (s *View_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitView_name(s)
- }
- }
- func (p *SQLiteParser) View_name() (localctx IView_nameContext) {
- this := p
- _ = this
- localctx = NewView_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 200, SQLiteParserRULE_view_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2140)
- p.Any_name()
- }
- return localctx
- }
- // IModule_nameContext is an interface to support dynamic dispatch.
- type IModule_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsModule_nameContext differentiates from other interfaces.
- IsModule_nameContext()
- }
- type Module_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyModule_nameContext() *Module_nameContext {
- var p = new(Module_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_module_name
- return p
- }
- func (*Module_nameContext) IsModule_nameContext() {}
- func NewModule_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Module_nameContext {
- var p = new(Module_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_module_name
- return p
- }
- func (s *Module_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Module_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Module_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Module_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Module_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterModule_name(s)
- }
- }
- func (s *Module_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitModule_name(s)
- }
- }
- func (p *SQLiteParser) Module_name() (localctx IModule_nameContext) {
- this := p
- _ = this
- localctx = NewModule_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 202, SQLiteParserRULE_module_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2142)
- p.Any_name()
- }
- return localctx
- }
- // IPragma_nameContext is an interface to support dynamic dispatch.
- type IPragma_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsPragma_nameContext differentiates from other interfaces.
- IsPragma_nameContext()
- }
- type Pragma_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyPragma_nameContext() *Pragma_nameContext {
- var p = new(Pragma_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_pragma_name
- return p
- }
- func (*Pragma_nameContext) IsPragma_nameContext() {}
- func NewPragma_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Pragma_nameContext {
- var p = new(Pragma_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_pragma_name
- return p
- }
- func (s *Pragma_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Pragma_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Pragma_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Pragma_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Pragma_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterPragma_name(s)
- }
- }
- func (s *Pragma_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitPragma_name(s)
- }
- }
- func (p *SQLiteParser) Pragma_name() (localctx IPragma_nameContext) {
- this := p
- _ = this
- localctx = NewPragma_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 204, SQLiteParserRULE_pragma_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2144)
- p.Any_name()
- }
- return localctx
- }
- // ISavepoint_nameContext is an interface to support dynamic dispatch.
- type ISavepoint_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsSavepoint_nameContext differentiates from other interfaces.
- IsSavepoint_nameContext()
- }
- type Savepoint_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySavepoint_nameContext() *Savepoint_nameContext {
- var p = new(Savepoint_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_savepoint_name
- return p
- }
- func (*Savepoint_nameContext) IsSavepoint_nameContext() {}
- func NewSavepoint_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Savepoint_nameContext {
- var p = new(Savepoint_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_savepoint_name
- return p
- }
- func (s *Savepoint_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Savepoint_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Savepoint_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Savepoint_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Savepoint_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSavepoint_name(s)
- }
- }
- func (s *Savepoint_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSavepoint_name(s)
- }
- }
- func (p *SQLiteParser) Savepoint_name() (localctx ISavepoint_nameContext) {
- this := p
- _ = this
- localctx = NewSavepoint_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 206, SQLiteParserRULE_savepoint_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2146)
- p.Any_name()
- }
- return localctx
- }
- // ITable_aliasContext is an interface to support dynamic dispatch.
- type ITable_aliasContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- IDENTIFIER() antlr.TerminalNode
- STRING_LITERAL() antlr.TerminalNode
- // IsTable_aliasContext differentiates from other interfaces.
- IsTable_aliasContext()
- }
- type Table_aliasContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTable_aliasContext() *Table_aliasContext {
- var p = new(Table_aliasContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_alias
- return p
- }
- func (*Table_aliasContext) IsTable_aliasContext() {}
- func NewTable_aliasContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_aliasContext {
- var p = new(Table_aliasContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_alias
- return p
- }
- func (s *Table_aliasContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_aliasContext) IDENTIFIER() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIDENTIFIER, 0)
- }
- func (s *Table_aliasContext) STRING_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRING_LITERAL, 0)
- }
- func (s *Table_aliasContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_aliasContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_aliasContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_alias(s)
- }
- }
- func (s *Table_aliasContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_alias(s)
- }
- }
- func (p *SQLiteParser) Table_alias() (localctx ITable_aliasContext) {
- this := p
- _ = this
- localctx = NewTable_aliasContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 208, SQLiteParserRULE_table_alias)
- var _la int
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2148)
- _la = p.GetTokenStream().LA(1)
- if !(_la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL) {
- p.GetErrorHandler().RecoverInline(p)
- } else {
- p.GetErrorHandler().ReportMatch(p)
- p.Consume()
- }
- }
- return localctx
- }
- // ITable_alias_fallbackContext is an interface to support dynamic dispatch.
- type ITable_alias_fallbackContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsTable_alias_fallbackContext differentiates from other interfaces.
- IsTable_alias_fallbackContext()
- }
- type Table_alias_fallbackContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTable_alias_fallbackContext() *Table_alias_fallbackContext {
- var p = new(Table_alias_fallbackContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_alias_fallback
- return p
- }
- func (*Table_alias_fallbackContext) IsTable_alias_fallbackContext() {}
- func NewTable_alias_fallbackContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_alias_fallbackContext {
- var p = new(Table_alias_fallbackContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_alias_fallback
- return p
- }
- func (s *Table_alias_fallbackContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_alias_fallbackContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Table_alias_fallbackContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_alias_fallbackContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_alias_fallbackContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_alias_fallback(s)
- }
- }
- func (s *Table_alias_fallbackContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_alias_fallback(s)
- }
- }
- func (p *SQLiteParser) Table_alias_fallback() (localctx ITable_alias_fallbackContext) {
- this := p
- _ = this
- localctx = NewTable_alias_fallbackContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 210, SQLiteParserRULE_table_alias_fallback)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2150)
- p.Any_name()
- }
- return localctx
- }
- // ITransaction_nameContext is an interface to support dynamic dispatch.
- type ITransaction_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsTransaction_nameContext differentiates from other interfaces.
- IsTransaction_nameContext()
- }
- type Transaction_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTransaction_nameContext() *Transaction_nameContext {
- var p = new(Transaction_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_transaction_name
- return p
- }
- func (*Transaction_nameContext) IsTransaction_nameContext() {}
- func NewTransaction_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Transaction_nameContext {
- var p = new(Transaction_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_transaction_name
- return p
- }
- func (s *Transaction_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Transaction_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Transaction_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Transaction_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Transaction_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTransaction_name(s)
- }
- }
- func (s *Transaction_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTransaction_name(s)
- }
- }
- func (p *SQLiteParser) Transaction_name() (localctx ITransaction_nameContext) {
- this := p
- _ = this
- localctx = NewTransaction_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 212, SQLiteParserRULE_transaction_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2152)
- p.Any_name()
- }
- return localctx
- }
- // IWindow_nameContext is an interface to support dynamic dispatch.
- type IWindow_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsWindow_nameContext differentiates from other interfaces.
- IsWindow_nameContext()
- }
- type Window_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyWindow_nameContext() *Window_nameContext {
- var p = new(Window_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_window_name
- return p
- }
- func (*Window_nameContext) IsWindow_nameContext() {}
- func NewWindow_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Window_nameContext {
- var p = new(Window_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_window_name
- return p
- }
- func (s *Window_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Window_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Window_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Window_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Window_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterWindow_name(s)
- }
- }
- func (s *Window_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitWindow_name(s)
- }
- }
- func (p *SQLiteParser) Window_name() (localctx IWindow_nameContext) {
- this := p
- _ = this
- localctx = NewWindow_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 214, SQLiteParserRULE_window_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2154)
- p.Any_name()
- }
- return localctx
- }
- // IAliasContext is an interface to support dynamic dispatch.
- type IAliasContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsAliasContext differentiates from other interfaces.
- IsAliasContext()
- }
- type AliasContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyAliasContext() *AliasContext {
- var p = new(AliasContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_alias
- return p
- }
- func (*AliasContext) IsAliasContext() {}
- func NewAliasContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AliasContext {
- var p = new(AliasContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_alias
- return p
- }
- func (s *AliasContext) GetParser() antlr.Parser { return s.parser }
- func (s *AliasContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *AliasContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *AliasContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *AliasContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAlias(s)
- }
- }
- func (s *AliasContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAlias(s)
- }
- }
- func (p *SQLiteParser) Alias() (localctx IAliasContext) {
- this := p
- _ = this
- localctx = NewAliasContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 216, SQLiteParserRULE_alias)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2156)
- p.Any_name()
- }
- return localctx
- }
- // IFilenameContext is an interface to support dynamic dispatch.
- type IFilenameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsFilenameContext differentiates from other interfaces.
- IsFilenameContext()
- }
- type FilenameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyFilenameContext() *FilenameContext {
- var p = new(FilenameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_filename
- return p
- }
- func (*FilenameContext) IsFilenameContext() {}
- func NewFilenameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FilenameContext {
- var p = new(FilenameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_filename
- return p
- }
- func (s *FilenameContext) GetParser() antlr.Parser { return s.parser }
- func (s *FilenameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *FilenameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *FilenameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *FilenameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterFilename(s)
- }
- }
- func (s *FilenameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitFilename(s)
- }
- }
- func (p *SQLiteParser) Filename() (localctx IFilenameContext) {
- this := p
- _ = this
- localctx = NewFilenameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 218, SQLiteParserRULE_filename)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2158)
- p.Any_name()
- }
- return localctx
- }
- // IBase_window_nameContext is an interface to support dynamic dispatch.
- type IBase_window_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsBase_window_nameContext differentiates from other interfaces.
- IsBase_window_nameContext()
- }
- type Base_window_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyBase_window_nameContext() *Base_window_nameContext {
- var p = new(Base_window_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_base_window_name
- return p
- }
- func (*Base_window_nameContext) IsBase_window_nameContext() {}
- func NewBase_window_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Base_window_nameContext {
- var p = new(Base_window_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_base_window_name
- return p
- }
- func (s *Base_window_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Base_window_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Base_window_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Base_window_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Base_window_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterBase_window_name(s)
- }
- }
- func (s *Base_window_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitBase_window_name(s)
- }
- }
- func (p *SQLiteParser) Base_window_name() (localctx IBase_window_nameContext) {
- this := p
- _ = this
- localctx = NewBase_window_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 220, SQLiteParserRULE_base_window_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2160)
- p.Any_name()
- }
- return localctx
- }
- // ISimple_funcContext is an interface to support dynamic dispatch.
- type ISimple_funcContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsSimple_funcContext differentiates from other interfaces.
- IsSimple_funcContext()
- }
- type Simple_funcContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptySimple_funcContext() *Simple_funcContext {
- var p = new(Simple_funcContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_simple_func
- return p
- }
- func (*Simple_funcContext) IsSimple_funcContext() {}
- func NewSimple_funcContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Simple_funcContext {
- var p = new(Simple_funcContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_simple_func
- return p
- }
- func (s *Simple_funcContext) GetParser() antlr.Parser { return s.parser }
- func (s *Simple_funcContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Simple_funcContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Simple_funcContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Simple_funcContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterSimple_func(s)
- }
- }
- func (s *Simple_funcContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitSimple_func(s)
- }
- }
- func (p *SQLiteParser) Simple_func() (localctx ISimple_funcContext) {
- this := p
- _ = this
- localctx = NewSimple_funcContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 222, SQLiteParserRULE_simple_func)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2162)
- p.Any_name()
- }
- return localctx
- }
- // IAggregate_funcContext is an interface to support dynamic dispatch.
- type IAggregate_funcContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsAggregate_funcContext differentiates from other interfaces.
- IsAggregate_funcContext()
- }
- type Aggregate_funcContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyAggregate_funcContext() *Aggregate_funcContext {
- var p = new(Aggregate_funcContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_aggregate_func
- return p
- }
- func (*Aggregate_funcContext) IsAggregate_funcContext() {}
- func NewAggregate_funcContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Aggregate_funcContext {
- var p = new(Aggregate_funcContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_aggregate_func
- return p
- }
- func (s *Aggregate_funcContext) GetParser() antlr.Parser { return s.parser }
- func (s *Aggregate_funcContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Aggregate_funcContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Aggregate_funcContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Aggregate_funcContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAggregate_func(s)
- }
- }
- func (s *Aggregate_funcContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAggregate_func(s)
- }
- }
- func (p *SQLiteParser) Aggregate_func() (localctx IAggregate_funcContext) {
- this := p
- _ = this
- localctx = NewAggregate_funcContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 224, SQLiteParserRULE_aggregate_func)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2164)
- p.Any_name()
- }
- return localctx
- }
- // ITable_function_nameContext is an interface to support dynamic dispatch.
- type ITable_function_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- Any_name() IAny_nameContext
- // IsTable_function_nameContext differentiates from other interfaces.
- IsTable_function_nameContext()
- }
- type Table_function_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyTable_function_nameContext() *Table_function_nameContext {
- var p = new(Table_function_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_table_function_name
- return p
- }
- func (*Table_function_nameContext) IsTable_function_nameContext() {}
- func NewTable_function_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Table_function_nameContext {
- var p = new(Table_function_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_table_function_name
- return p
- }
- func (s *Table_function_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Table_function_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Table_function_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Table_function_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Table_function_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterTable_function_name(s)
- }
- }
- func (s *Table_function_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitTable_function_name(s)
- }
- }
- func (p *SQLiteParser) Table_function_name() (localctx ITable_function_nameContext) {
- this := p
- _ = this
- localctx = NewTable_function_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 226, SQLiteParserRULE_table_function_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2166)
- p.Any_name()
- }
- return localctx
- }
- // IAny_nameContext is an interface to support dynamic dispatch.
- type IAny_nameContext interface {
- antlr.ParserRuleContext
- // GetParser returns the parser.
- GetParser() antlr.Parser
- // Getter signatures
- IDENTIFIER() antlr.TerminalNode
- Keyword() IKeywordContext
- STRING_LITERAL() antlr.TerminalNode
- OPEN_PAR() antlr.TerminalNode
- Any_name() IAny_nameContext
- CLOSE_PAR() antlr.TerminalNode
- // IsAny_nameContext differentiates from other interfaces.
- IsAny_nameContext()
- }
- type Any_nameContext struct {
- *antlr.BaseParserRuleContext
- parser antlr.Parser
- }
- func NewEmptyAny_nameContext() *Any_nameContext {
- var p = new(Any_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1)
- p.RuleIndex = SQLiteParserRULE_any_name
- return p
- }
- func (*Any_nameContext) IsAny_nameContext() {}
- func NewAny_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Any_nameContext {
- var p = new(Any_nameContext)
- p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState)
- p.parser = parser
- p.RuleIndex = SQLiteParserRULE_any_name
- return p
- }
- func (s *Any_nameContext) GetParser() antlr.Parser { return s.parser }
- func (s *Any_nameContext) IDENTIFIER() antlr.TerminalNode {
- return s.GetToken(SQLiteParserIDENTIFIER, 0)
- }
- func (s *Any_nameContext) Keyword() IKeywordContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IKeywordContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IKeywordContext)
- }
- func (s *Any_nameContext) STRING_LITERAL() antlr.TerminalNode {
- return s.GetToken(SQLiteParserSTRING_LITERAL, 0)
- }
- func (s *Any_nameContext) OPEN_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserOPEN_PAR, 0)
- }
- func (s *Any_nameContext) Any_name() IAny_nameContext {
- var t antlr.RuleContext
- for _, ctx := range s.GetChildren() {
- if _, ok := ctx.(IAny_nameContext); ok {
- t = ctx.(antlr.RuleContext)
- break
- }
- }
- if t == nil {
- return nil
- }
- return t.(IAny_nameContext)
- }
- func (s *Any_nameContext) CLOSE_PAR() antlr.TerminalNode {
- return s.GetToken(SQLiteParserCLOSE_PAR, 0)
- }
- func (s *Any_nameContext) GetRuleContext() antlr.RuleContext {
- return s
- }
- func (s *Any_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string {
- return antlr.TreesStringTree(s, ruleNames, recog)
- }
- func (s *Any_nameContext) EnterRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.EnterAny_name(s)
- }
- }
- func (s *Any_nameContext) ExitRule(listener antlr.ParseTreeListener) {
- if listenerT, ok := listener.(SQLiteParserListener); ok {
- listenerT.ExitAny_name(s)
- }
- }
- func (p *SQLiteParser) Any_name() (localctx IAny_nameContext) {
- this := p
- _ = this
- localctx = NewAny_nameContext(p, p.GetParserRuleContext(), p.GetState())
- p.EnterRule(localctx, 228, SQLiteParserRULE_any_name)
- defer func() {
- p.ExitRule()
- }()
- defer func() {
- if err := recover(); err != nil {
- if v, ok := err.(antlr.RecognitionException); ok {
- localctx.SetException(v)
- p.GetErrorHandler().ReportError(p, v)
- p.GetErrorHandler().Recover(p, v)
- } else {
- panic(err)
- }
- }
- }()
- p.SetState(2175)
- p.GetErrorHandler().Sync(p)
- switch p.GetTokenStream().LA(1) {
- case SQLiteParserIDENTIFIER:
- p.EnterOuterAlt(localctx, 1)
- {
- p.SetState(2168)
- p.Match(SQLiteParserIDENTIFIER)
- }
- case SQLiteParserABORT_, SQLiteParserACTION_, SQLiteParserADD_, SQLiteParserAFTER_, SQLiteParserALL_, SQLiteParserALTER_, SQLiteParserANALYZE_, SQLiteParserAND_, SQLiteParserAS_, SQLiteParserASC_, SQLiteParserATTACH_, SQLiteParserAUTOINCREMENT_, SQLiteParserBEFORE_, SQLiteParserBEGIN_, SQLiteParserBETWEEN_, SQLiteParserBY_, SQLiteParserCASCADE_, SQLiteParserCASE_, SQLiteParserCAST_, SQLiteParserCHECK_, SQLiteParserCOLLATE_, SQLiteParserCOLUMN_, SQLiteParserCOMMIT_, SQLiteParserCONFLICT_, SQLiteParserCONSTRAINT_, SQLiteParserCREATE_, SQLiteParserCROSS_, SQLiteParserCURRENT_DATE_, SQLiteParserCURRENT_TIME_, SQLiteParserCURRENT_TIMESTAMP_, SQLiteParserDATABASE_, SQLiteParserDEFAULT_, SQLiteParserDEFERRABLE_, SQLiteParserDEFERRED_, SQLiteParserDELETE_, SQLiteParserDESC_, SQLiteParserDETACH_, SQLiteParserDISTINCT_, SQLiteParserDROP_, SQLiteParserEACH_, SQLiteParserELSE_, SQLiteParserEND_, SQLiteParserESCAPE_, SQLiteParserEXCEPT_, SQLiteParserEXCLUSIVE_, SQLiteParserEXISTS_, SQLiteParserEXPLAIN_, SQLiteParserFAIL_, SQLiteParserFOR_, SQLiteParserFOREIGN_, SQLiteParserFROM_, SQLiteParserFULL_, SQLiteParserGLOB_, SQLiteParserGROUP_, SQLiteParserHAVING_, SQLiteParserIF_, SQLiteParserIGNORE_, SQLiteParserIMMEDIATE_, SQLiteParserIN_, SQLiteParserINDEX_, SQLiteParserINDEXED_, SQLiteParserINITIALLY_, SQLiteParserINNER_, SQLiteParserINSERT_, SQLiteParserINSTEAD_, SQLiteParserINTERSECT_, SQLiteParserINTO_, SQLiteParserIS_, SQLiteParserISNULL_, SQLiteParserJOIN_, SQLiteParserKEY_, SQLiteParserLEFT_, SQLiteParserLIKE_, SQLiteParserLIMIT_, SQLiteParserMATCH_, SQLiteParserNATURAL_, SQLiteParserNO_, SQLiteParserNOT_, SQLiteParserNOTNULL_, SQLiteParserNULL_, SQLiteParserOF_, SQLiteParserOFFSET_, SQLiteParserON_, SQLiteParserOR_, SQLiteParserORDER_, SQLiteParserOUTER_, SQLiteParserPLAN_, SQLiteParserPRAGMA_, SQLiteParserPRIMARY_, SQLiteParserQUERY_, SQLiteParserRAISE_, SQLiteParserRECURSIVE_, SQLiteParserREFERENCES_, SQLiteParserREGEXP_, SQLiteParserREINDEX_, SQLiteParserRELEASE_, SQLiteParserRENAME_, SQLiteParserREPLACE_, SQLiteParserRESTRICT_, SQLiteParserRETURNING_, SQLiteParserRIGHT_, SQLiteParserROLLBACK_, SQLiteParserROW_, SQLiteParserROWS_, SQLiteParserSAVEPOINT_, SQLiteParserSELECT_, SQLiteParserSET_, SQLiteParserSTRICT_, SQLiteParserTABLE_, SQLiteParserTEMP_, SQLiteParserTEMPORARY_, SQLiteParserTHEN_, SQLiteParserTO_, SQLiteParserTRANSACTION_, SQLiteParserTRIGGER_, SQLiteParserUNION_, SQLiteParserUNIQUE_, SQLiteParserUPDATE_, SQLiteParserUSING_, SQLiteParserVACUUM_, SQLiteParserVALUES_, SQLiteParserVIEW_, SQLiteParserVIRTUAL_, SQLiteParserWHEN_, SQLiteParserWHERE_, SQLiteParserWITH_, SQLiteParserWITHOUT_, SQLiteParserFIRST_VALUE_, SQLiteParserOVER_, SQLiteParserPARTITION_, SQLiteParserRANGE_, SQLiteParserPRECEDING_, SQLiteParserUNBOUNDED_, SQLiteParserCURRENT_, SQLiteParserFOLLOWING_, SQLiteParserCUME_DIST_, SQLiteParserDENSE_RANK_, SQLiteParserLAG_, SQLiteParserLAST_VALUE_, SQLiteParserLEAD_, SQLiteParserNTH_VALUE_, SQLiteParserNTILE_, SQLiteParserPERCENT_RANK_, SQLiteParserRANK_, SQLiteParserROW_NUMBER_, SQLiteParserGENERATED_, SQLiteParserALWAYS_, SQLiteParserSTORED_, SQLiteParserTRUE_, SQLiteParserFALSE_, SQLiteParserWINDOW_, SQLiteParserNULLS_, SQLiteParserFIRST_, SQLiteParserLAST_, SQLiteParserFILTER_, SQLiteParserGROUPS_, SQLiteParserEXCLUDE_:
- p.EnterOuterAlt(localctx, 2)
- {
- p.SetState(2169)
- p.Keyword()
- }
- case SQLiteParserSTRING_LITERAL:
- p.EnterOuterAlt(localctx, 3)
- {
- p.SetState(2170)
- p.Match(SQLiteParserSTRING_LITERAL)
- }
- case SQLiteParserOPEN_PAR:
- p.EnterOuterAlt(localctx, 4)
- {
- p.SetState(2171)
- p.Match(SQLiteParserOPEN_PAR)
- }
- {
- p.SetState(2172)
- p.Any_name()
- }
- {
- p.SetState(2173)
- p.Match(SQLiteParserCLOSE_PAR)
- }
- default:
- panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
- }
- return localctx
- }
- func (p *SQLiteParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool {
- switch ruleIndex {
- case 34:
- var t *ExprContext = nil
- if localctx != nil {
- t = localctx.(*ExprContext)
- }
- return p.Expr_Sempred(t, predIndex)
- default:
- panic("No predicate with index: " + fmt.Sprint(ruleIndex))
- }
- }
- func (p *SQLiteParser) Expr_Sempred(localctx antlr.RuleContext, predIndex int) bool {
- this := p
- _ = this
- switch predIndex {
- case 0:
- return p.Precpred(p.GetParserRuleContext(), 20)
- case 1:
- return p.Precpred(p.GetParserRuleContext(), 19)
- case 2:
- return p.Precpred(p.GetParserRuleContext(), 18)
- case 3:
- return p.Precpred(p.GetParserRuleContext(), 17)
- case 4:
- return p.Precpred(p.GetParserRuleContext(), 16)
- case 5:
- return p.Precpred(p.GetParserRuleContext(), 15)
- case 6:
- return p.Precpred(p.GetParserRuleContext(), 14)
- case 7:
- return p.Precpred(p.GetParserRuleContext(), 12)
- case 8:
- return p.Precpred(p.GetParserRuleContext(), 11)
- case 9:
- return p.Precpred(p.GetParserRuleContext(), 4)
- case 10:
- return p.Precpred(p.GetParserRuleContext(), 13)
- case 11:
- return p.Precpred(p.GetParserRuleContext(), 7)
- case 12:
- return p.Precpred(p.GetParserRuleContext(), 6)
- case 13:
- return p.Precpred(p.GetParserRuleContext(), 5)
- default:
- panic("No predicate with index: " + fmt.Sprint(predIndex))
- }
- }
|