dhcp4_lexer.cc 159 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241
  1. #line 1 "dhcp4_lexer.cc"
  2. #line 3 "dhcp4_lexer.cc"
  3. #define YY_INT_ALIGNED short int
  4. /* A lexical scanner generated by flex */
  5. /* %not-for-header */
  6. /* %if-c-only */
  7. /* %if-not-reentrant */
  8. #define yy_create_buffer parser4__create_buffer
  9. #define yy_delete_buffer parser4__delete_buffer
  10. #define yy_scan_buffer parser4__scan_buffer
  11. #define yy_scan_string parser4__scan_string
  12. #define yy_scan_bytes parser4__scan_bytes
  13. #define yy_init_buffer parser4__init_buffer
  14. #define yy_flush_buffer parser4__flush_buffer
  15. #define yy_load_buffer_state parser4__load_buffer_state
  16. #define yy_switch_to_buffer parser4__switch_to_buffer
  17. #define yypush_buffer_state parser4_push_buffer_state
  18. #define yypop_buffer_state parser4_pop_buffer_state
  19. #define yyensure_buffer_stack parser4_ensure_buffer_stack
  20. #define yy_flex_debug parser4__flex_debug
  21. #define yyin parser4_in
  22. #define yyleng parser4_leng
  23. #define yylex parser4_lex
  24. #define yylineno parser4_lineno
  25. #define yyout parser4_out
  26. #define yyrestart parser4_restart
  27. #define yytext parser4_text
  28. #define yywrap parser4_wrap
  29. #define yyalloc parser4_alloc
  30. #define yyrealloc parser4_realloc
  31. #define yyfree parser4_free
  32. /* %endif */
  33. /* %endif */
  34. /* %ok-for-header */
  35. #define FLEX_SCANNER
  36. #define YY_FLEX_MAJOR_VERSION 2
  37. #define YY_FLEX_MINOR_VERSION 6
  38. #define YY_FLEX_SUBMINOR_VERSION 4
  39. #if YY_FLEX_SUBMINOR_VERSION > 0
  40. #define FLEX_BETA
  41. #endif
  42. /* %if-c++-only */
  43. /* %endif */
  44. /* %if-c-only */
  45. #ifdef yy_create_buffer
  46. #define parser4__create_buffer_ALREADY_DEFINED
  47. #else
  48. #define yy_create_buffer parser4__create_buffer
  49. #endif
  50. #ifdef yy_delete_buffer
  51. #define parser4__delete_buffer_ALREADY_DEFINED
  52. #else
  53. #define yy_delete_buffer parser4__delete_buffer
  54. #endif
  55. #ifdef yy_scan_buffer
  56. #define parser4__scan_buffer_ALREADY_DEFINED
  57. #else
  58. #define yy_scan_buffer parser4__scan_buffer
  59. #endif
  60. #ifdef yy_scan_string
  61. #define parser4__scan_string_ALREADY_DEFINED
  62. #else
  63. #define yy_scan_string parser4__scan_string
  64. #endif
  65. #ifdef yy_scan_bytes
  66. #define parser4__scan_bytes_ALREADY_DEFINED
  67. #else
  68. #define yy_scan_bytes parser4__scan_bytes
  69. #endif
  70. #ifdef yy_init_buffer
  71. #define parser4__init_buffer_ALREADY_DEFINED
  72. #else
  73. #define yy_init_buffer parser4__init_buffer
  74. #endif
  75. #ifdef yy_flush_buffer
  76. #define parser4__flush_buffer_ALREADY_DEFINED
  77. #else
  78. #define yy_flush_buffer parser4__flush_buffer
  79. #endif
  80. #ifdef yy_load_buffer_state
  81. #define parser4__load_buffer_state_ALREADY_DEFINED
  82. #else
  83. #define yy_load_buffer_state parser4__load_buffer_state
  84. #endif
  85. #ifdef yy_switch_to_buffer
  86. #define parser4__switch_to_buffer_ALREADY_DEFINED
  87. #else
  88. #define yy_switch_to_buffer parser4__switch_to_buffer
  89. #endif
  90. #ifdef yypush_buffer_state
  91. #define parser4_push_buffer_state_ALREADY_DEFINED
  92. #else
  93. #define yypush_buffer_state parser4_push_buffer_state
  94. #endif
  95. #ifdef yypop_buffer_state
  96. #define parser4_pop_buffer_state_ALREADY_DEFINED
  97. #else
  98. #define yypop_buffer_state parser4_pop_buffer_state
  99. #endif
  100. #ifdef yyensure_buffer_stack
  101. #define parser4_ensure_buffer_stack_ALREADY_DEFINED
  102. #else
  103. #define yyensure_buffer_stack parser4_ensure_buffer_stack
  104. #endif
  105. #ifdef yylex
  106. #define parser4_lex_ALREADY_DEFINED
  107. #else
  108. #define yylex parser4_lex
  109. #endif
  110. #ifdef yyrestart
  111. #define parser4_restart_ALREADY_DEFINED
  112. #else
  113. #define yyrestart parser4_restart
  114. #endif
  115. #ifdef yylex_init
  116. #define parser4_lex_init_ALREADY_DEFINED
  117. #else
  118. #define yylex_init parser4_lex_init
  119. #endif
  120. #ifdef yylex_init_extra
  121. #define parser4_lex_init_extra_ALREADY_DEFINED
  122. #else
  123. #define yylex_init_extra parser4_lex_init_extra
  124. #endif
  125. #ifdef yylex_destroy
  126. #define parser4_lex_destroy_ALREADY_DEFINED
  127. #else
  128. #define yylex_destroy parser4_lex_destroy
  129. #endif
  130. #ifdef yyget_debug
  131. #define parser4_get_debug_ALREADY_DEFINED
  132. #else
  133. #define yyget_debug parser4_get_debug
  134. #endif
  135. #ifdef yyset_debug
  136. #define parser4_set_debug_ALREADY_DEFINED
  137. #else
  138. #define yyset_debug parser4_set_debug
  139. #endif
  140. #ifdef yyget_extra
  141. #define parser4_get_extra_ALREADY_DEFINED
  142. #else
  143. #define yyget_extra parser4_get_extra
  144. #endif
  145. #ifdef yyset_extra
  146. #define parser4_set_extra_ALREADY_DEFINED
  147. #else
  148. #define yyset_extra parser4_set_extra
  149. #endif
  150. #ifdef yyget_in
  151. #define parser4_get_in_ALREADY_DEFINED
  152. #else
  153. #define yyget_in parser4_get_in
  154. #endif
  155. #ifdef yyset_in
  156. #define parser4_set_in_ALREADY_DEFINED
  157. #else
  158. #define yyset_in parser4_set_in
  159. #endif
  160. #ifdef yyget_out
  161. #define parser4_get_out_ALREADY_DEFINED
  162. #else
  163. #define yyget_out parser4_get_out
  164. #endif
  165. #ifdef yyset_out
  166. #define parser4_set_out_ALREADY_DEFINED
  167. #else
  168. #define yyset_out parser4_set_out
  169. #endif
  170. #ifdef yyget_leng
  171. #define parser4_get_leng_ALREADY_DEFINED
  172. #else
  173. #define yyget_leng parser4_get_leng
  174. #endif
  175. #ifdef yyget_text
  176. #define parser4_get_text_ALREADY_DEFINED
  177. #else
  178. #define yyget_text parser4_get_text
  179. #endif
  180. #ifdef yyget_lineno
  181. #define parser4_get_lineno_ALREADY_DEFINED
  182. #else
  183. #define yyget_lineno parser4_get_lineno
  184. #endif
  185. #ifdef yyset_lineno
  186. #define parser4_set_lineno_ALREADY_DEFINED
  187. #else
  188. #define yyset_lineno parser4_set_lineno
  189. #endif
  190. #ifdef yywrap
  191. #define parser4_wrap_ALREADY_DEFINED
  192. #else
  193. #define yywrap parser4_wrap
  194. #endif
  195. /* %endif */
  196. #ifdef yyalloc
  197. #define parser4_alloc_ALREADY_DEFINED
  198. #else
  199. #define yyalloc parser4_alloc
  200. #endif
  201. #ifdef yyrealloc
  202. #define parser4_realloc_ALREADY_DEFINED
  203. #else
  204. #define yyrealloc parser4_realloc
  205. #endif
  206. #ifdef yyfree
  207. #define parser4_free_ALREADY_DEFINED
  208. #else
  209. #define yyfree parser4_free
  210. #endif
  211. /* %if-c-only */
  212. #ifdef yytext
  213. #define parser4_text_ALREADY_DEFINED
  214. #else
  215. #define yytext parser4_text
  216. #endif
  217. #ifdef yyleng
  218. #define parser4_leng_ALREADY_DEFINED
  219. #else
  220. #define yyleng parser4_leng
  221. #endif
  222. #ifdef yyin
  223. #define parser4_in_ALREADY_DEFINED
  224. #else
  225. #define yyin parser4_in
  226. #endif
  227. #ifdef yyout
  228. #define parser4_out_ALREADY_DEFINED
  229. #else
  230. #define yyout parser4_out
  231. #endif
  232. #ifdef yy_flex_debug
  233. #define parser4__flex_debug_ALREADY_DEFINED
  234. #else
  235. #define yy_flex_debug parser4__flex_debug
  236. #endif
  237. #ifdef yylineno
  238. #define parser4_lineno_ALREADY_DEFINED
  239. #else
  240. #define yylineno parser4_lineno
  241. #endif
  242. /* %endif */
  243. /* First, we deal with platform-specific or compiler-specific issues. */
  244. /* begin standard C headers. */
  245. /* %if-c-only */
  246. #include <stdio.h>
  247. #include <string.h>
  248. #include <errno.h>
  249. #include <stdlib.h>
  250. /* %endif */
  251. /* %if-tables-serialization */
  252. /* %endif */
  253. /* end standard C headers. */
  254. /* %if-c-or-c++ */
  255. /* flex integer type definitions */
  256. #ifndef FLEXINT_H
  257. #define FLEXINT_H
  258. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  259. #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  260. /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  261. * if you want the limit (max/min) macros for int types.
  262. */
  263. #ifndef __STDC_LIMIT_MACROS
  264. #define __STDC_LIMIT_MACROS 1
  265. #endif
  266. #include <inttypes.h>
  267. typedef int8_t flex_int8_t;
  268. typedef uint8_t flex_uint8_t;
  269. typedef int16_t flex_int16_t;
  270. typedef uint16_t flex_uint16_t;
  271. typedef int32_t flex_int32_t;
  272. typedef uint32_t flex_uint32_t;
  273. #else
  274. typedef signed char flex_int8_t;
  275. typedef short int flex_int16_t;
  276. typedef int flex_int32_t;
  277. typedef unsigned char flex_uint8_t;
  278. typedef unsigned short int flex_uint16_t;
  279. typedef unsigned int flex_uint32_t;
  280. /* Limits of integral types. */
  281. #ifndef INT8_MIN
  282. #define INT8_MIN (-128)
  283. #endif
  284. #ifndef INT16_MIN
  285. #define INT16_MIN (-32767-1)
  286. #endif
  287. #ifndef INT32_MIN
  288. #define INT32_MIN (-2147483647-1)
  289. #endif
  290. #ifndef INT8_MAX
  291. #define INT8_MAX (127)
  292. #endif
  293. #ifndef INT16_MAX
  294. #define INT16_MAX (32767)
  295. #endif
  296. #ifndef INT32_MAX
  297. #define INT32_MAX (2147483647)
  298. #endif
  299. #ifndef UINT8_MAX
  300. #define UINT8_MAX (255U)
  301. #endif
  302. #ifndef UINT16_MAX
  303. #define UINT16_MAX (65535U)
  304. #endif
  305. #ifndef UINT32_MAX
  306. #define UINT32_MAX (4294967295U)
  307. #endif
  308. #ifndef SIZE_MAX
  309. #define SIZE_MAX (~(size_t)0)
  310. #endif
  311. #endif /* ! C99 */
  312. #endif /* ! FLEXINT_H */
  313. /* %endif */
  314. /* begin standard C++ headers. */
  315. /* %if-c++-only */
  316. /* %endif */
  317. /* TODO: this is always defined, so inline it */
  318. #define yyconst const
  319. #if defined(__GNUC__) && __GNUC__ >= 3
  320. #define yynoreturn __attribute__((__noreturn__))
  321. #else
  322. #define yynoreturn
  323. #endif
  324. /* %not-for-header */
  325. /* Returned upon end-of-file. */
  326. #define YY_NULL 0
  327. /* %ok-for-header */
  328. /* %not-for-header */
  329. /* Promotes a possibly negative, possibly signed char to an
  330. * integer in range [0..255] for use as an array index.
  331. */
  332. #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  333. /* %ok-for-header */
  334. /* %if-reentrant */
  335. /* %endif */
  336. /* %if-not-reentrant */
  337. /* %endif */
  338. /* Enter a start condition. This macro really ought to take a parameter,
  339. * but we do it the disgusting crufty way forced on us by the ()-less
  340. * definition of BEGIN.
  341. */
  342. #define BEGIN (yy_start) = 1 + 2 *
  343. /* Translate the current start state into a value that can be later handed
  344. * to BEGIN to return to the state. The YYSTATE alias is for lex
  345. * compatibility.
  346. */
  347. #define YY_START (((yy_start) - 1) / 2)
  348. #define YYSTATE YY_START
  349. /* Action number for EOF rule of a given start state. */
  350. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  351. /* Special action meaning "start processing a new file". */
  352. #define YY_NEW_FILE yyrestart( yyin )
  353. #define YY_END_OF_BUFFER_CHAR 0
  354. /* Size of default input buffer. */
  355. #ifndef YY_BUF_SIZE
  356. #ifdef __ia64__
  357. /* On IA-64, the buffer size is 16k, not 8k.
  358. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
  359. * Ditto for the __ia64__ case accordingly.
  360. */
  361. #define YY_BUF_SIZE 32768
  362. #else
  363. #define YY_BUF_SIZE 16384
  364. #endif /* __ia64__ */
  365. #endif
  366. /* The state buf must be large enough to hold one state per character in the main buffer.
  367. */
  368. #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  369. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  370. #define YY_TYPEDEF_YY_BUFFER_STATE
  371. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  372. #endif
  373. #ifndef YY_TYPEDEF_YY_SIZE_T
  374. #define YY_TYPEDEF_YY_SIZE_T
  375. typedef size_t yy_size_t;
  376. #endif
  377. /* %if-not-reentrant */
  378. extern int yyleng;
  379. /* %endif */
  380. /* %if-c-only */
  381. /* %if-not-reentrant */
  382. extern FILE *yyin, *yyout;
  383. /* %endif */
  384. /* %endif */
  385. #define EOB_ACT_CONTINUE_SCAN 0
  386. #define EOB_ACT_END_OF_FILE 1
  387. #define EOB_ACT_LAST_MATCH 2
  388. #define YY_LESS_LINENO(n)
  389. #define YY_LINENO_REWIND_TO(ptr)
  390. /* Return all but the first "n" matched characters back to the input stream. */
  391. #define yyless(n) \
  392. do \
  393. { \
  394. /* Undo effects of setting up yytext. */ \
  395. int yyless_macro_arg = (n); \
  396. YY_LESS_LINENO(yyless_macro_arg);\
  397. *yy_cp = (yy_hold_char); \
  398. YY_RESTORE_YY_MORE_OFFSET \
  399. (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  400. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  401. } \
  402. while ( 0 )
  403. #define unput(c) yyunput( c, (yytext_ptr) )
  404. #ifndef YY_STRUCT_YY_BUFFER_STATE
  405. #define YY_STRUCT_YY_BUFFER_STATE
  406. struct yy_buffer_state
  407. {
  408. /* %if-c-only */
  409. FILE *yy_input_file;
  410. /* %endif */
  411. /* %if-c++-only */
  412. /* %endif */
  413. char *yy_ch_buf; /* input buffer */
  414. char *yy_buf_pos; /* current position in input buffer */
  415. /* Size of input buffer in bytes, not including room for EOB
  416. * characters.
  417. */
  418. int yy_buf_size;
  419. /* Number of characters read into yy_ch_buf, not including EOB
  420. * characters.
  421. */
  422. int yy_n_chars;
  423. /* Whether we "own" the buffer - i.e., we know we created it,
  424. * and can realloc() it to grow it, and should free() it to
  425. * delete it.
  426. */
  427. int yy_is_our_buffer;
  428. /* Whether this is an "interactive" input source; if so, and
  429. * if we're using stdio for input, then we want to use getc()
  430. * instead of fread(), to make sure we stop fetching input after
  431. * each newline.
  432. */
  433. int yy_is_interactive;
  434. /* Whether we're considered to be at the beginning of a line.
  435. * If so, '^' rules will be active on the next match, otherwise
  436. * not.
  437. */
  438. int yy_at_bol;
  439. int yy_bs_lineno; /**< The line count. */
  440. int yy_bs_column; /**< The column count. */
  441. /* Whether to try to fill the input buffer when we reach the
  442. * end of it.
  443. */
  444. int yy_fill_buffer;
  445. int yy_buffer_status;
  446. #define YY_BUFFER_NEW 0
  447. #define YY_BUFFER_NORMAL 1
  448. /* When an EOF's been seen but there's still some text to process
  449. * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  450. * shouldn't try reading from the input source any more. We might
  451. * still have a bunch of tokens to match, though, because of
  452. * possible backing-up.
  453. *
  454. * When we actually see the EOF, we change the status to "new"
  455. * (via yyrestart()), so that the user can continue scanning by
  456. * just pointing yyin at a new input file.
  457. */
  458. #define YY_BUFFER_EOF_PENDING 2
  459. };
  460. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  461. /* %if-c-only Standard (non-C++) definition */
  462. /* %not-for-header */
  463. /* %if-not-reentrant */
  464. /* Stack of input buffers. */
  465. static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  466. static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  467. static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
  468. /* %endif */
  469. /* %ok-for-header */
  470. /* %endif */
  471. /* We provide macros for accessing buffer states in case in the
  472. * future we want to put the buffer states in a more general
  473. * "scanner state".
  474. *
  475. * Returns the top of the stack, or NULL.
  476. */
  477. #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  478. ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  479. : NULL)
  480. /* Same as previous macro, but useful when we know that the buffer stack is not
  481. * NULL or when we need an lvalue. For internal use only.
  482. */
  483. #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  484. /* %if-c-only Standard (non-C++) definition */
  485. /* %if-not-reentrant */
  486. /* %not-for-header */
  487. /* yy_hold_char holds the character lost when yytext is formed. */
  488. static char yy_hold_char;
  489. static int yy_n_chars; /* number of characters read into yy_ch_buf */
  490. int yyleng;
  491. /* Points to current character in buffer. */
  492. static char *yy_c_buf_p = NULL;
  493. static int yy_init = 0; /* whether we need to initialize */
  494. static int yy_start = 0; /* start state number */
  495. /* Flag which is used to allow yywrap()'s to do buffer switches
  496. * instead of setting up a fresh yyin. A bit of a hack ...
  497. */
  498. static int yy_did_buffer_switch_on_eof;
  499. /* %ok-for-header */
  500. /* %endif */
  501. void yyrestart ( FILE *input_file );
  502. void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
  503. YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
  504. void yy_delete_buffer ( YY_BUFFER_STATE b );
  505. void yy_flush_buffer ( YY_BUFFER_STATE b );
  506. void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
  507. void yypop_buffer_state ( void );
  508. static void yyensure_buffer_stack ( void );
  509. static void yy_load_buffer_state ( void );
  510. static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
  511. #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
  512. YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
  513. YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
  514. YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
  515. /* %endif */
  516. void *yyalloc ( yy_size_t );
  517. void *yyrealloc ( void *, yy_size_t );
  518. void yyfree ( void * );
  519. #define yy_new_buffer yy_create_buffer
  520. #define yy_set_interactive(is_interactive) \
  521. { \
  522. if ( ! YY_CURRENT_BUFFER ){ \
  523. yyensure_buffer_stack (); \
  524. YY_CURRENT_BUFFER_LVALUE = \
  525. yy_create_buffer( yyin, YY_BUF_SIZE ); \
  526. } \
  527. YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  528. }
  529. #define yy_set_bol(at_bol) \
  530. { \
  531. if ( ! YY_CURRENT_BUFFER ){\
  532. yyensure_buffer_stack (); \
  533. YY_CURRENT_BUFFER_LVALUE = \
  534. yy_create_buffer( yyin, YY_BUF_SIZE ); \
  535. } \
  536. YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  537. }
  538. #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  539. /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
  540. /* Begin user sect3 */
  541. #define parser4_wrap() (/*CONSTCOND*/1)
  542. #define YY_SKIP_YYWRAP
  543. #define FLEX_DEBUG
  544. typedef flex_uint8_t YY_CHAR;
  545. FILE *yyin = NULL, *yyout = NULL;
  546. typedef int yy_state_type;
  547. extern int yylineno;
  548. int yylineno = 1;
  549. extern char *yytext;
  550. #ifdef yytext_ptr
  551. #undef yytext_ptr
  552. #endif
  553. #define yytext_ptr yytext
  554. /* %% [1.5] DFA */
  555. /* %if-c-only Standard (non-C++) definition */
  556. static yy_state_type yy_get_previous_state ( void );
  557. static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
  558. static int yy_get_next_buffer ( void );
  559. static void yynoreturn yy_fatal_error ( const char* msg );
  560. /* %endif */
  561. /* Done after the current pattern has been matched and before the
  562. * corresponding action - sets up yytext.
  563. */
  564. #define YY_DO_BEFORE_ACTION \
  565. (yytext_ptr) = yy_bp; \
  566. /* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
  567. yyleng = (int) (yy_cp - yy_bp); \
  568. (yy_hold_char) = *yy_cp; \
  569. *yy_cp = '\0'; \
  570. /* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
  571. (yy_c_buf_p) = yy_cp;
  572. /* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
  573. #define YY_NUM_RULES 158
  574. #define YY_END_OF_BUFFER 159
  575. /* This struct is not used in this scanner,
  576. but its presence is necessary. */
  577. struct yy_trans_info
  578. {
  579. flex_int32_t yy_verify;
  580. flex_int32_t yy_nxt;
  581. };
  582. static const flex_int16_t yy_accept[1286] =
  583. { 0,
  584. 151, 151, 0, 0, 0, 0, 0, 0, 0, 0,
  585. 159, 157, 10, 11, 157, 1, 151, 148, 151, 151,
  586. 157, 150, 149, 157, 157, 157, 157, 157, 144, 145,
  587. 157, 157, 157, 146, 147, 5, 5, 5, 157, 157,
  588. 157, 10, 11, 0, 0, 140, 0, 0, 0, 0,
  589. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  590. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  591. 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
  592. 151, 151, 0, 150, 151, 3, 2, 6, 0, 151,
  593. 0, 0, 0, 0, 0, 0, 4, 0, 0, 9,
  594. 0, 141, 0, 0, 0, 0, 0, 0, 0, 0,
  595. 0, 0, 0, 0, 0, 0, 143, 0, 0, 0,
  596. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  597. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  598. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  599. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  600. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  601. 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,
  602. 0, 0, 8, 0, 0, 0, 0, 0, 0, 0,
  603. 0, 0, 0, 0, 0, 0, 0, 142, 0, 0,
  604. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  605. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  606. 0, 0, 0, 0, 0, 0, 56, 0, 0, 0,
  607. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  608. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  609. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  610. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  611. 0, 0, 0, 0, 0, 0, 0, 156, 154, 0,
  612. 153, 152, 0, 0, 0, 0, 0, 0, 0, 0,
  613. 0, 0, 121, 0, 120, 0, 0, 62, 0, 0,
  614. 0, 0, 0, 0, 0, 0, 29, 0, 0, 0,
  615. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  616. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  617. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  618. 0, 60, 0, 0, 0, 0, 0, 0, 0, 0,
  619. 0, 0, 0, 0, 0, 15, 0, 0, 0, 0,
  620. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  621. 0, 0, 0, 0, 0, 16, 0, 0, 0, 0,
  622. 155, 152, 0, 0, 0, 0, 0, 0, 0, 0,
  623. 0, 0, 122, 0, 0, 124, 0, 0, 0, 0,
  624. 0, 0, 0, 63, 0, 0, 0, 0, 48, 0,
  625. 0, 0, 0, 0, 78, 0, 0, 0, 0, 0,
  626. 0, 0, 0, 0, 32, 0, 0, 0, 0, 0,
  627. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  628. 0, 0, 0, 47, 0, 0, 0, 0, 0, 0,
  629. 0, 0, 0, 0, 0, 51, 0, 33, 0, 0,
  630. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  631. 0, 0, 0, 0, 0, 0, 0, 0, 76, 25,
  632. 0, 0, 30, 0, 0, 0, 0, 0, 0, 0,
  633. 0, 12, 129, 0, 126, 0, 125, 0, 0, 0,
  634. 88, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  635. 0, 0, 0, 0, 0, 0, 0, 0, 0, 70,
  636. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  637. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  638. 0, 27, 0, 0, 0, 0, 0, 0, 0, 0,
  639. 0, 0, 0, 50, 0, 0, 0, 0, 0, 0,
  640. 0, 0, 89, 0, 0, 0, 0, 0, 0, 0,
  641. 0, 0, 84, 0, 0, 0, 0, 0, 7, 0,
  642. 0, 127, 0, 0, 0, 0, 0, 0, 0, 0,
  643. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  644. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  645. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  646. 0, 0, 0, 0, 0, 72, 0, 0, 0, 0,
  647. 0, 0, 0, 68, 0, 0, 0, 0, 0, 0,
  648. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  649. 0, 0, 0, 0, 0, 0, 53, 0, 0, 0,
  650. 0, 0, 0, 0, 0, 0, 65, 0, 0, 0,
  651. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  652. 0, 0, 0, 0, 0, 0, 0, 0, 0, 82,
  653. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  654. 0, 0, 0, 93, 66, 0, 0, 0, 71, 26,
  655. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  656. 34, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  657. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  658. 0, 0, 43, 0, 0, 0, 0, 0, 0, 0,
  659. 130, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  660. 0, 0, 0, 0, 0, 0, 0, 0, 59, 0,
  661. 0, 0, 0, 0, 0, 0, 0, 0, 83, 0,
  662. 0, 0, 0, 37, 0, 0, 0, 0, 0, 0,
  663. 0, 0, 0, 0, 0, 0, 0, 0, 0, 31,
  664. 0, 0, 0, 0, 24, 0, 0, 0, 0, 0,
  665. 0, 0, 0, 0, 0, 0, 0, 73, 0, 0,
  666. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  667. 0, 0, 0, 0, 0, 80, 0, 0, 0, 0,
  668. 0, 0, 105, 0, 0, 0, 0, 0, 0, 0,
  669. 0, 0, 0, 0, 0, 0, 54, 0, 0, 0,
  670. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  671. 0, 0, 0, 0, 0, 0, 0, 0, 0, 21,
  672. 0, 0, 0, 0, 0, 0, 0, 110, 0, 0,
  673. 108, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  674. 134, 0, 0, 0, 0, 0, 0, 81, 0, 0,
  675. 0, 0, 85, 69, 0, 0, 0, 0, 0, 0,
  676. 0, 0, 0, 0, 0, 0, 0, 79, 0, 20,
  677. 0, 90, 0, 0, 0, 0, 0, 114, 0, 0,
  678. 0, 45, 0, 0, 0, 0, 0, 92, 28, 0,
  679. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  680. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  681. 0, 0, 0, 49, 0, 0, 0, 0, 0, 0,
  682. 0, 0, 0, 0, 87, 0, 0, 0, 0, 0,
  683. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  684. 137, 46, 61, 0, 0, 0, 0, 0, 0, 0,
  685. 0, 0, 40, 0, 0, 0, 0, 111, 0, 109,
  686. 0, 104, 103, 0, 19, 0, 0, 0, 0, 0,
  687. 123, 0, 0, 75, 0, 0, 0, 0, 0, 0,
  688. 101, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  689. 55, 0, 0, 35, 0, 0, 0, 0, 113, 0,
  690. 0, 0, 0, 0, 57, 41, 0, 86, 0, 0,
  691. 77, 0, 0, 0, 0, 52, 0, 132, 0, 131,
  692. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  693. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  694. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  695. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  696. 139, 74, 0, 38, 102, 0, 0, 135, 106, 0,
  697. 0, 0, 0, 0, 0, 23, 0, 22, 0, 112,
  698. 0, 0, 0, 67, 0, 0, 0, 0, 0, 0,
  699. 0, 0, 0, 0, 39, 0, 0, 0, 36, 0,
  700. 0, 0, 0, 0, 0, 91, 0, 0, 136, 0,
  701. 0, 0, 0, 0, 0, 0, 0, 0, 18, 138,
  702. 44, 0, 133, 128, 0, 0, 14, 0, 0, 119,
  703. 0, 0, 0, 0, 99, 0, 0, 0, 0, 0,
  704. 0, 58, 0, 0, 0, 0, 0, 0, 0, 13,
  705. 0, 0, 0, 0, 107, 0, 0, 0, 0, 0,
  706. 0, 0, 0, 0, 98, 17, 0, 116, 0, 0,
  707. 0, 115, 0, 0, 0, 97, 0, 0, 0, 118,
  708. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  709. 0, 0, 0, 0, 0, 0, 0, 0, 0, 117,
  710. 0, 0, 0, 0, 0, 0, 95, 100, 42, 0,
  711. 0, 0, 94, 0, 0, 0, 0, 0, 0, 0,
  712. 64, 0, 0, 96, 0
  713. } ;
  714. static const YY_CHAR yy_ec[256] =
  715. { 0,
  716. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  717. 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
  718. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  719. 1, 4, 5, 6, 7, 5, 5, 5, 5, 5,
  720. 5, 8, 9, 10, 11, 12, 13, 14, 14, 14,
  721. 14, 15, 14, 16, 14, 14, 14, 17, 5, 18,
  722. 5, 19, 20, 5, 21, 22, 23, 24, 25, 26,
  723. 5, 27, 5, 28, 5, 29, 5, 30, 31, 32,
  724. 5, 33, 34, 35, 36, 37, 38, 5, 39, 5,
  725. 40, 41, 42, 5, 43, 5, 44, 45, 46, 47,
  726. 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
  727. 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
  728. 68, 69, 70, 5, 71, 5, 5, 5, 5, 5,
  729. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  730. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  731. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  732. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  733. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  734. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  735. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  736. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  737. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  738. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  739. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  740. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  741. 5, 5, 5, 5, 5
  742. } ;
  743. static const YY_CHAR yy_meta[72] =
  744. { 0,
  745. 1, 1, 2, 3, 3, 4, 3, 3, 3, 3,
  746. 3, 3, 3, 5, 5, 5, 3, 3, 3, 3,
  747. 5, 5, 5, 5, 5, 5, 3, 3, 3, 3,
  748. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  749. 3, 3, 3, 5, 5, 5, 5, 5, 5, 3,
  750. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  751. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  752. 3
  753. } ;
  754. static const flex_int16_t yy_base[1298] =
  755. { 0,
  756. 0, 70, 19, 29, 41, 49, 52, 58, 87, 95,
  757. 1647, 1648, 32, 1643, 141, 0, 201, 1648, 206, 88,
  758. 11, 213, 1648, 1625, 114, 25, 2, 6, 1648, 1648,
  759. 73, 11, 17, 1648, 1648, 1648, 104, 1631, 1586, 0,
  760. 1623, 107, 1638, 217, 247, 1648, 1582, 185, 1581, 1587,
  761. 93, 58, 1579, 91, 211, 195, 14, 273, 195, 1578,
  762. 181, 275, 202, 209, 1587, 66, 188, 1586, 232, 219,
  763. 296, 282, 207, 1569, 78, 301, 302, 296, 1588, 0,
  764. 341, 357, 365, 371, 376, 1648, 0, 1648, 301, 379,
  765. 223, 299, 196, 309, 322, 210, 1648, 1585, 1624, 1648,
  766. 283, 1648, 391, 1613, 295, 1571, 1581, 333, 344, 1576,
  767. 341, 352, 362, 368, 374, 1619, 0, 442, 365, 1563,
  768. 1565, 1561, 1569, 74, 1565, 1554, 1555, 89, 1571, 1554,
  769. 1563, 1563, 363, 1554, 364, 1555, 355, 1600, 1604, 1546,
  770. 1597, 1539, 1562, 1559, 1559, 1553, 351, 1546, 1539, 1544,
  771. 1538, 378, 1549, 1534, 1533, 1547, 306, 1533, 372, 1549,
  772. 357, 438, 1536, 364, 1547, 1544, 1545, 1543, 1525, 1527,
  773. 376, 1519, 1536, 1528, 0, 407, 415, 412, 412, 418,
  774. 413, 1527, 1648, 0, 1570, 418, 1517, 1520, 416, 423,
  775. 1528, 446, 1571, 450, 1570, 442, 1569, 1648, 487, 1568,
  776. 460, 1529, 1509, 1525, 1522, 1521, 422, 1562, 1556, 1522,
  777. 1501, 1509, 1504, 1518, 1514, 1502, 1514, 1514, 1505, 1489,
  778. 1493, 1506, 1506, 1498, 1488, 1506, 1648, 1501, 1504, 1485,
  779. 1484, 1534, 1483, 1493, 1496, 465, 1492, 1480, 1491, 1527,
  780. 1474, 1530, 1483, 481, 1473, 1489, 1470, 1469, 1475, 1466,
  781. 1465, 1472, 1474, 1519, 1477, 1476, 1470, 274, 1477, 1472,
  782. 1464, 1470, 1469, 1469, 1450, 1466, 1452, 1458, 1465, 1453,
  783. 1446, 1460, 1501, 1462, 485, 1453, 480, 1648, 1648, 481,
  784. 1648, 1648, 1440, 0, 455, 198, 1442, 499, 491, 1496,
  785. 1449, 486, 1648, 1494, 1648, 1488, 534, 1648, 483, 1430,
  786. 1486, 1432, 1438, 1488, 1445, 398, 1648, 1443, 1485, 1440,
  787. 1437, 509, 1443, 1481, 1475, 1430, 1425, 1422, 1471, 1430,
  788. 1419, 1468, 1416, 531, 1430, 1415, 1428, 1415, 1425, 1420,
  789. 1427, 1422, 1418, 483, 1416, 1419, 1414, 1410, 1458, 503,
  790. 1452, 1648, 1404, 1403, 1402, 1395, 1397, 1401, 1390, 1403,
  791. 512, 1448, 1403, 1400, 1404, 1648, 1402, 1391, 1391, 1403,
  792. 1385, 1377, 1378, 1399, 1381, 1430, 1392, 1391, 1377, 1389,
  793. 1388, 1387, 1386, 1427, 1426, 1648, 1370, 1369, 555, 1382,
  794. 1648, 1648, 1381, 0, 1370, 1362, 491, 1367, 1418, 1417,
  795. 1375, 1415, 1648, 1363, 1413, 1648, 533, 580, 507, 1412,
  796. 1368, 1364, 1352, 1648, 1368, 1367, 1354, 1353, 1648, 1355,
  797. 1352, 523, 1350, 1352, 1648, 1360, 1357, 1342, 1355, 1350,
  798. 561, 1357, 1339, 1388, 1648, 1337, 1353, 1385, 1348, 1345,
  799. 1346, 1348, 1380, 1333, 1328, 1327, 1376, 1322, 1337, 1315,
  800. 1322, 1327, 1375, 1648, 1322, 1318, 1316, 1320, 1327, 1311,
  801. 1311, 1321, 1324, 1313, 1308, 1648, 1363, 1648, 1307, 1318,
  802. 1355, 1302, 1307, 1316, 1310, 1314, 1354, 1348, 1312, 1292,
  803. 1312, 1294, 1293, 1301, 1305, 1288, 1344, 1286, 1648, 1648,
  804. 1291, 1289, 1648, 1300, 1334, 1296, 0, 1280, 1297, 1335,
  805. 1285, 1648, 1648, 1282, 1648, 1288, 1648, 533, 512, 565,
  806. 1648, 1285, 1273, 1324, 1271, 1270, 1277, 1270, 1282, 1281,
  807. 1281, 1269, 1310, 1277, 1269, 1312, 1258, 1274, 1273, 1648,
  808. 1258, 1255, 1269, 1261, 1267, 1258, 1266, 1251, 1267, 1249,
  809. 1263, 1261, 1244, 1238, 1243, 1258, 1255, 1256, 1253, 1294,
  810. 1251, 1648, 1237, 1239, 1248, 1284, 1283, 1236, 532, 1245,
  811. 1228, 1229, 1226, 1648, 1240, 1219, 1240, 1237, 1229, 1272,
  812. 1226, 1270, 1648, 1217, 1231, 1234, 1215, 1265, 1264, 1211,
  813. 1262, 1261, 1648, 14, 1223, 1206, 1211, 1213, 1648, 1219,
  814. 1209, 1648, 1254, 1202, 1257, 549, 529, 535, 1207, 1250,
  815. 561, 1249, 1248, 1247, 1201, 1191, 1244, 1197, 1207, 1241,
  816. 1204, 1198, 1185, 1193, 1236, 1240, 1197, 1196, 1197, 1190,
  817. 1179, 1192, 1195, 1190, 1191, 1188, 1187, 1190, 1185, 1226,
  818. 1225, 1175, 1165, 1173, 1221, 1648, 1220, 1169, 1161, 1162,
  819. 1175, 1162, 1173, 1648, 1161, 1170, 1169, 1169, 1209, 1152,
  820. 1161, 1154, 1165, 1142, 1146, 1197, 1144, 1154, 1194, 1141,
  821. 1192, 556, 558, 1134, 1144, 557, 1648, 1194, 1152, 1135,
  822. 1140, 1144, 1134, 1146, 1149, 1186, 1648, 1180, 577, 1133,
  823. 1141, 1140, 1135, 1131, 1138, 1121, 1124, 1120, 1137, 1132,
  824. 1120, 1116, 1123, 1117, 1169, 1126, 1114, 1128, 1116, 1648,
  825. 1124, 1122, 1113, 1122, 1118, 1159, 1101, 1101, 1114, 1099,
  826. 1154, 1096, 1097, 1648, 1648, 1105, 1108, 1111, 1648, 1648,
  827. 1110, 1095, 1087, 574, 1093, 1139, 1090, 17, 7, 132,
  828. 1648, 228, 394, 421, 458, 562, 534, 526, 530, 543,
  829. 554, 564, 567, 562, 565, 572, 572, 574, 627, 586,
  830. 591, 568, 1648, 626, 586, 577, 592, 593, 580, 594,
  831. 1648, 613, 621, 601, 591, 638, 603, 607, 646, 601,
  832. 596, 597, 593, 602, 597, 653, 612, 603, 1648, 605,
  833. 616, 601, 617, 611, 656, 624, 609, 610, 1648, 629,
  834. 612, 669, 614, 1648, 633, 613, 631, 670, 630, 620,
  835. 638, 637, 623, 638, 630, 637, 627, 645, 630, 1648,
  836. 638, 644, 639, 690, 1648, 641, 646, 640, 652, 646,
  837. 645, 647, 699, 645, 645, 702, 648, 1648, 647, 655,
  838. 653, 652, 657, 667, 668, 673, 712, 671, 687, 692,
  839. 666, 676, 667, 719, 664, 1648, 671, 676, 683, 724,
  840. 726, 675, 1648, 671, 674, 673, 693, 690, 695, 696,
  841. 682, 690, 699, 679, 700, 740, 1648, 695, 744, 745,
  842. 707, 709, 697, 694, 701, 752, 701, 699, 717, 756,
  843. 708, 707, 713, 711, 709, 762, 763, 759, 719, 1648,
  844. 724, 717, 726, 714, 724, 720, 733, 1648, 716, 717,
  845. 1648, 718, 716, 735, 736, 737, 736, 720, 725, 743,
  846. 1648, 733, 766, 757, 729, 788, 751, 1648, 734, 749,
  847. 741, 745, 1648, 1648, 755, 790, 739, 792, 741, 799,
  848. 744, 755, 747, 753, 749, 767, 768, 1648, 766, 1648,
  849. 769, 1648, 772, 762, 755, 767, 810, 1648, 767, 817,
  850. 818, 1648, 819, 763, 769, 776, 818, 1648, 1648, 768,
  851. 768, 771, 785, 772, 829, 788, 826, 780, 833, 783,
  852. 835, 784, 837, 838, 799, 840, 784, 796, 801, 787,
  853. 817, 846, 806, 1648, 798, 849, 798, 794, 810, 815,
  854. 797, 855, 810, 815, 1648, 816, 809, 818, 819, 816,
  855. 806, 808, 865, 814, 811, 868, 864, 807, 822, 872,
  856. 1648, 1648, 1648, 832, 824, 834, 819, 820, 880, 881,
  857. 828, 884, 1648, 834, 836, 887, 830, 1648, 851, 1648,
  858. 835, 1648, 1648, 843, 1648, 893, 844, 895, 896, 878,
  859. 1648, 856, 857, 1648, 845, 844, 847, 847, 848, 844,
  860. 1648, 866, 852, 853, 868, 868, 871, 871, 868, 873,
  861. 1648, 865, 875, 1648, 872, 877, 879, 876, 1648, 868,
  862. 868, 874, 873, 884, 1648, 1648, 923, 1648, 872, 878,
  863. 1648, 880, 882, 885, 896, 1648, 893, 1648, 890, 1648,
  864. 913, 933, 939, 940, 884, 942, 943, 898, 892, 946,
  865. 947, 943, 908, 904, 946, 896, 901, 954, 912, 956,
  866. 916, 958, 921, 910, 918, 962, 906, 924, 923, 907,
  867. 963, 928, 929, 929, 916, 927, 974, 934, 947, 934,
  868. 1648, 1648, 978, 1648, 1648, 927, 938, 1648, 1648, 928,
  869. 977, 922, 927, 985, 935, 1648, 941, 1648, 988, 1648,
  870. 933, 948, 953, 1648, 987, 955, 948, 957, 945, 955,
  871. 998, 999, 1000, 951, 1648, 1002, 1003, 951, 1648, 955,
  872. 1007, 953, 952, 1010, 965, 1648, 1007, 969, 1648, 972,
  873. 1015, 976, 959, 961, 958, 974, 983, 1022, 1648, 1648,
  874. 1648, 1018, 1648, 1648, 983, 1020, 1648, 974, 981, 1648,
  875. 978, 983, 1030, 975, 1648, 990, 980, 992, 1035, 979,
  876. 987, 1648, 998, 988, 987, 1001, 992, 1001, 1003, 1648,
  877. 1045, 1046, 1006, 1048, 1648, 1044, 1008, 989, 1052, 1011,
  878. 1012, 1013, 1056, 1015, 1648, 1648, 1020, 1648, 1002, 1060,
  879. 1021, 1648, 1007, 1007, 1009, 1648, 1014, 1009, 1021, 1648,
  880. 1019, 1023, 1014, 1066, 1015, 1031, 1024, 1033, 1024, 1031,
  881. 1018, 1033, 1080, 1039, 1026, 1042, 1033, 1047, 1043, 1648,
  882. 1087, 1088, 1089, 1046, 1045, 1046, 1648, 1648, 1648, 1093,
  883. 1037, 1053, 1648, 1091, 1042, 1041, 1043, 1054, 1101, 1052,
  884. 1648, 1061, 1104, 1648, 1648, 1110, 1115, 1120, 1125, 1130,
  885. 1135, 1140, 1143, 1117, 1122, 1124, 1137
  886. } ;
  887. static const flex_int16_t yy_def[1298] =
  888. { 0,
  889. 1286, 1286, 1287, 1287, 1286, 1286, 1286, 1286, 1286, 1286,
  890. 1285, 1285, 1285, 1285, 1285, 1288, 1285, 1285, 1285, 1285,
  891. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  892. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1289,
  893. 1285, 1285, 1285, 1290, 15, 1285, 45, 45, 45, 45,
  894. 45, 45, 45, 45, 45, 45, 45, 1291, 45, 45,
  895. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  896. 45, 45, 45, 45, 45, 45, 45, 45, 45, 1288,
  897. 1285, 1285, 1285, 1285, 1285, 1285, 1292, 1285, 1285, 1285,
  898. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1289, 1285,
  899. 1290, 1285, 1285, 45, 45, 45, 45, 45, 45, 45,
  900. 45, 45, 45, 45, 45, 1293, 45, 1291, 45, 45,
  901. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  902. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  903. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  904. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  905. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  906. 45, 45, 45, 45, 1292, 1285, 1285, 1285, 1285, 1285,
  907. 1285, 1285, 1285, 1294, 45, 45, 45, 45, 45, 45,
  908. 45, 45, 45, 45, 45, 45, 1293, 1285, 1291, 45,
  909. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  910. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  911. 45, 45, 45, 45, 45, 45, 1285, 45, 45, 45,
  912. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  913. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  914. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  915. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  916. 45, 45, 45, 45, 45, 45, 1285, 1285, 1285, 1285,
  917. 1285, 1285, 1285, 1295, 45, 45, 45, 45, 45, 45,
  918. 45, 45, 1285, 45, 1285, 45, 1291, 1285, 45, 45,
  919. 45, 45, 45, 45, 45, 45, 1285, 45, 45, 45,
  920. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  921. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  922. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  923. 45, 1285, 45, 45, 45, 45, 45, 45, 45, 45,
  924. 45, 45, 45, 45, 45, 1285, 45, 45, 45, 45,
  925. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  926. 45, 45, 45, 45, 45, 1285, 45, 45, 45, 45,
  927. 1285, 1285, 1285, 1296, 45, 45, 45, 45, 45, 45,
  928. 45, 45, 1285, 45, 45, 1285, 45, 1291, 45, 45,
  929. 45, 45, 45, 1285, 45, 45, 45, 45, 1285, 45,
  930. 45, 45, 45, 45, 1285, 45, 45, 45, 45, 45,
  931. 45, 45, 45, 45, 1285, 45, 45, 45, 45, 45,
  932. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  933. 45, 45, 45, 1285, 45, 45, 45, 45, 45, 45,
  934. 45, 45, 45, 45, 45, 1285, 45, 1285, 45, 45,
  935. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  936. 45, 45, 45, 45, 45, 45, 45, 45, 1285, 1285,
  937. 45, 45, 1285, 45, 45, 1285, 1297, 45, 45, 45,
  938. 45, 1285, 1285, 45, 1285, 45, 1285, 45, 45, 45,
  939. 1285, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  940. 45, 45, 45, 45, 45, 45, 45, 45, 45, 1285,
  941. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  942. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  943. 45, 1285, 45, 45, 45, 45, 45, 45, 45, 45,
  944. 45, 45, 45, 1285, 45, 45, 45, 45, 45, 45,
  945. 45, 45, 1285, 45, 45, 45, 45, 45, 45, 45,
  946. 45, 45, 1285, 45, 45, 45, 45, 45, 1285, 45,
  947. 45, 1285, 45, 45, 45, 45, 45, 45, 45, 45,
  948. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  949. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  950. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  951. 45, 45, 45, 45, 45, 1285, 45, 45, 45, 45,
  952. 45, 45, 45, 1285, 45, 45, 45, 45, 45, 45,
  953. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  954. 45, 45, 45, 45, 45, 45, 1285, 45, 45, 45,
  955. 45, 45, 45, 45, 45, 45, 1285, 45, 45, 45,
  956. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  957. 45, 45, 45, 45, 45, 45, 45, 45, 45, 1285,
  958. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  959. 45, 45, 45, 1285, 1285, 45, 45, 45, 1285, 1285,
  960. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  961. 1285, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  962. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  963. 45, 45, 1285, 45, 45, 45, 45, 45, 45, 45,
  964. 1285, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  965. 45, 45, 45, 45, 45, 45, 45, 45, 1285, 45,
  966. 45, 45, 45, 45, 45, 45, 45, 45, 1285, 45,
  967. 45, 45, 45, 1285, 45, 45, 45, 45, 45, 45,
  968. 45, 45, 45, 45, 45, 45, 45, 45, 45, 1285,
  969. 45, 45, 45, 45, 1285, 45, 45, 45, 45, 45,
  970. 45, 45, 45, 45, 45, 45, 45, 1285, 45, 45,
  971. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  972. 45, 45, 45, 45, 45, 1285, 45, 45, 45, 45,
  973. 45, 45, 1285, 45, 45, 45, 45, 45, 45, 45,
  974. 45, 45, 45, 45, 45, 45, 1285, 45, 45, 45,
  975. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  976. 45, 45, 45, 45, 45, 45, 45, 45, 45, 1285,
  977. 45, 45, 45, 45, 45, 45, 45, 1285, 45, 45,
  978. 1285, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  979. 1285, 45, 45, 45, 45, 45, 45, 1285, 45, 45,
  980. 45, 45, 1285, 1285, 45, 45, 45, 45, 45, 45,
  981. 45, 45, 45, 45, 45, 45, 45, 1285, 45, 1285,
  982. 45, 1285, 45, 45, 45, 45, 45, 1285, 45, 45,
  983. 45, 1285, 45, 45, 45, 45, 45, 1285, 1285, 45,
  984. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  985. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  986. 45, 45, 45, 1285, 45, 45, 45, 45, 45, 45,
  987. 45, 45, 45, 45, 1285, 45, 45, 45, 45, 45,
  988. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  989. 1285, 1285, 1285, 45, 45, 45, 45, 45, 45, 45,
  990. 45, 45, 1285, 45, 45, 45, 45, 1285, 45, 1285,
  991. 45, 1285, 1285, 45, 1285, 45, 45, 45, 45, 45,
  992. 1285, 45, 45, 1285, 45, 45, 45, 45, 45, 45,
  993. 1285, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  994. 1285, 45, 45, 1285, 45, 45, 45, 45, 1285, 45,
  995. 45, 45, 45, 45, 1285, 1285, 45, 1285, 45, 45,
  996. 1285, 45, 45, 45, 45, 1285, 45, 1285, 45, 1285,
  997. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  998. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  999. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  1000. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  1001. 1285, 1285, 45, 1285, 1285, 45, 45, 1285, 1285, 45,
  1002. 45, 45, 45, 45, 45, 1285, 45, 1285, 45, 1285,
  1003. 45, 45, 45, 1285, 45, 45, 45, 45, 45, 45,
  1004. 45, 45, 45, 45, 1285, 45, 45, 45, 1285, 45,
  1005. 45, 45, 45, 45, 45, 1285, 45, 45, 1285, 45,
  1006. 45, 45, 45, 45, 45, 45, 45, 45, 1285, 1285,
  1007. 1285, 45, 1285, 1285, 45, 45, 1285, 45, 45, 1285,
  1008. 45, 45, 45, 45, 1285, 45, 45, 45, 45, 45,
  1009. 45, 1285, 45, 45, 45, 45, 45, 45, 45, 1285,
  1010. 45, 45, 45, 45, 1285, 45, 45, 45, 45, 45,
  1011. 45, 45, 45, 45, 1285, 1285, 45, 1285, 45, 45,
  1012. 45, 1285, 45, 45, 45, 1285, 45, 45, 45, 1285,
  1013. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  1014. 45, 45, 45, 45, 45, 45, 45, 45, 45, 1285,
  1015. 45, 45, 45, 45, 45, 45, 1285, 1285, 1285, 45,
  1016. 45, 45, 1285, 45, 45, 45, 45, 45, 45, 45,
  1017. 1285, 45, 45, 1285, 0, 1285, 1285, 1285, 1285, 1285,
  1018. 1285, 1285, 1285, 1285, 1285, 1285, 1285
  1019. } ;
  1020. static const flex_int16_t yy_nxt[1720] =
  1021. { 0,
  1022. 1285, 13, 14, 13, 1285, 15, 16, 1285, 17, 18,
  1023. 19, 20, 21, 22, 22, 22, 23, 24, 86, 657,
  1024. 37, 14, 37, 87, 25, 26, 38, 798, 658, 27,
  1025. 37, 14, 37, 42, 28, 42, 38, 92, 93, 29,
  1026. 115, 30, 13, 14, 13, 91, 92, 25, 31, 93,
  1027. 13, 14, 13, 13, 14, 13, 32, 40, 1285, 13,
  1028. 14, 13, 33, 40, 115, 92, 93, 799, 91, 34,
  1029. 35, 13, 14, 13, 95, 15, 16, 96, 17, 18,
  1030. 19, 20, 21, 22, 22, 22, 23, 24, 13, 14,
  1031. 13, 109, 39, 91, 25, 26, 13, 14, 13, 27,
  1032. 39, 85, 85, 85, 28, 42, 41, 42, 42, 29,
  1033. 42, 30, 83, 108, 41, 111, 94, 25, 31, 109,
  1034. 206, 161, 89, 137, 89, 162, 32, 90, 90, 90,
  1035. 207, 138, 33, 211, 212, 83, 108, 800, 111, 34,
  1036. 35, 44, 44, 44, 45, 45, 46, 45, 45, 45,
  1037. 45, 45, 45, 45, 45, 47, 45, 45, 45, 45,
  1038. 45, 48, 45, 49, 50, 45, 51, 45, 52, 53,
  1039. 54, 45, 45, 45, 45, 55, 56, 45, 57, 45,
  1040. 45, 58, 45, 45, 59, 60, 61, 62, 63, 64,
  1041. 65, 66, 67, 52, 68, 69, 70, 71, 72, 73,
  1042. 74, 75, 76, 77, 78, 79, 57, 45, 45, 45,
  1043. 45, 45, 81, 105, 82, 82, 82, 81, 114, 84,
  1044. 84, 84, 102, 105, 81, 83, 84, 84, 84, 108,
  1045. 83, 178, 122, 112, 139, 123, 387, 83, 124, 105,
  1046. 125, 114, 126, 113, 140, 178, 141, 132, 83, 119,
  1047. 157, 176, 108, 83, 158, 120, 112, 103, 133, 178,
  1048. 83, 45, 147, 135, 159, 387, 148, 45, 134, 45,
  1049. 45, 113, 45, 181, 45, 45, 45, 176, 117, 143,
  1050. 144, 45, 45, 145, 45, 45, 149, 801, 102, 146,
  1051. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  1052. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  1053. 45, 45, 45, 45, 90, 90, 90, 45, 127, 114,
  1054. 111, 45, 128, 103, 112, 129, 130, 177, 360, 45,
  1055. 153, 361, 186, 45, 113, 45, 118, 176, 131, 150,
  1056. 154, 151, 171, 152, 163, 155, 156, 112, 164, 169,
  1057. 177, 165, 172, 177, 85, 85, 85, 173, 166, 167,
  1058. 186, 189, 113, 179, 168, 83, 246, 247, 81, 170,
  1059. 82, 82, 82, 89, 190, 89, 180, 192, 90, 90,
  1060. 90, 83, 81, 193, 84, 84, 84, 189, 83, 85,
  1061. 85, 85, 90, 90, 90, 83, 101, 194, 196, 195,
  1062. 83, 190, 186, 101, 83, 192, 217, 195, 218, 223,
  1063. 193, 220, 224, 235, 192, 253, 225, 236, 83, 200,
  1064. 264, 196, 254, 83, 265, 194, 195, 221, 266, 249,
  1065. 201, 101, 250, 251, 273, 101, 279, 279, 286, 101,
  1066. 277, 406, 192, 278, 241, 277, 278, 101, 255, 289,
  1067. 802, 101, 290, 101, 184, 199, 199, 199, 407, 279,
  1068. 282, 286, 199, 199, 199, 199, 199, 199, 277, 278,
  1069. 292, 296, 281, 280, 294, 334, 803, 289, 305, 290,
  1070. 286, 256, 257, 258, 306, 199, 199, 199, 199, 199,
  1071. 199, 344, 259, 292, 260, 378, 261, 294, 296, 262,
  1072. 297, 297, 297, 299, 381, 381, 385, 297, 297, 297,
  1073. 297, 297, 297, 389, 390, 392, 386, 456, 395, 412,
  1074. 804, 387, 391, 413, 490, 345, 335, 381, 382, 336,
  1075. 297, 297, 297, 297, 297, 297, 425, 634, 392, 346,
  1076. 490, 426, 438, 439, 587, 379, 395, 398, 398, 398,
  1077. 399, 445, 490, 669, 398, 398, 398, 398, 398, 398,
  1078. 483, 446, 498, 586, 499, 484, 520, 805, 500, 511,
  1079. 582, 521, 587, 457, 635, 588, 669, 398, 398, 398,
  1080. 398, 398, 398, 668, 512, 806, 670, 427, 807, 498,
  1081. 586, 499, 428, 45, 45, 45, 671, 808, 809, 810,
  1082. 45, 45, 45, 45, 45, 45, 674, 734, 736, 737,
  1083. 753, 668, 675, 741, 735, 811, 738, 793, 812, 742,
  1084. 813, 794, 814, 45, 45, 45, 45, 45, 45, 815,
  1085. 816, 817, 818, 819, 820, 821, 822, 823, 753, 824,
  1086. 825, 826, 827, 828, 829, 830, 831, 832, 833, 834,
  1087. 835, 836, 837, 838, 839, 840, 841, 842, 843, 844,
  1088. 845, 846, 847, 848, 849, 850, 851, 852, 830, 853,
  1089. 854, 829, 855, 856, 857, 860, 861, 862, 863, 858,
  1090. 864, 865, 866, 867, 868, 869, 870, 871, 872, 873,
  1091. 874, 876, 877, 878, 879, 880, 881, 882, 883, 884,
  1092. 885, 875, 886, 887, 888, 889, 890, 891, 892, 893,
  1093. 894, 895, 896, 897, 898, 899, 900, 901, 902, 903,
  1094. 905, 904, 906, 907, 908, 909, 910, 911, 912, 913,
  1095. 859, 914, 915, 916, 917, 918, 919, 920, 921, 922,
  1096. 923, 924, 925, 926, 927, 928, 929, 903, 904, 930,
  1097. 932, 933, 934, 935, 931, 936, 937, 938, 939, 940,
  1098. 941, 942, 943, 944, 945, 946, 947, 948, 949, 950,
  1099. 951, 952, 953, 954, 955, 956, 957, 958, 959, 960,
  1100. 961, 962, 963, 964, 965, 966, 967, 968, 969, 970,
  1101. 971, 972, 973, 974, 975, 976, 977, 978, 979, 980,
  1102. 981, 982, 983, 984, 985, 986, 987, 988, 989, 990,
  1103. 991, 992, 993, 971, 994, 995, 996, 997, 998, 972,
  1104. 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008,
  1105. 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1017, 1018, 1019,
  1106. 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029,
  1107. 1030, 1031, 1032, 1033, 1034, 1036, 1037, 1038, 1039, 1040,
  1108. 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050,
  1109. 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1059, 1030, 1060,
  1110. 1061, 1062, 1063, 1064, 1058, 1065, 1066, 1016, 1067, 1068,
  1111. 1069, 1070, 1071, 1072, 1073, 1074, 1035, 1075, 1076, 1077,
  1112. 1078, 1080, 1081, 1082, 1083, 1079, 1084, 1085, 1086, 1087,
  1113. 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097,
  1114. 1098, 1099, 1100, 1101, 1102, 1081, 1103, 1104, 1105, 1106,
  1115. 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116,
  1116. 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126,
  1117. 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136,
  1118. 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1119,
  1119. 1146, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1155,
  1120. 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1164, 1165,
  1121. 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175,
  1122. 1176, 1177, 1178, 1179, 1180, 1181, 1182, 1183, 1184, 1157,
  1123. 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194,
  1124. 1195, 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204,
  1125. 1205, 1206, 1207, 1208, 1209, 1210, 1211, 1212, 1213, 1214,
  1126. 1215, 1216, 1217, 1218, 1219, 1220, 1221, 1222, 1223, 1224,
  1127. 1225, 1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234,
  1128. 1235, 1236, 1237, 1238, 1239, 1240, 1241, 1242, 1243, 1244,
  1129. 1245, 1246, 1247, 1248, 1249, 1250, 1251, 1252, 1253, 1254,
  1130. 1255, 1256, 1257, 1258, 1259, 1260, 1261, 1262, 1263, 1264,
  1131. 1265, 1266, 1267, 1268, 1269, 1270, 1271, 1272, 1273, 1274,
  1132. 1275, 1276, 1277, 1278, 1279, 1280, 1281, 1282, 1283, 1284,
  1133. 12, 12, 12, 12, 12, 36, 36, 36, 36, 36,
  1134. 80, 284, 80, 80, 80, 99, 384, 99, 487, 99,
  1135. 101, 101, 101, 101, 101, 116, 116, 116, 116, 116,
  1136. 175, 101, 175, 175, 175, 197, 197, 197, 797, 796,
  1137. 795, 792, 791, 790, 789, 788, 787, 786, 785, 784,
  1138. 783, 782, 781, 780, 779, 778, 777, 776, 775, 774,
  1139. 773, 772, 771, 770, 769, 768, 767, 766, 765, 764,
  1140. 763, 762, 761, 760, 759, 758, 757, 756, 755, 754,
  1141. 752, 751, 750, 749, 748, 747, 746, 745, 744, 743,
  1142. 740, 739, 733, 732, 731, 730, 729, 728, 727, 726,
  1143. 725, 724, 723, 722, 721, 720, 719, 718, 717, 716,
  1144. 715, 714, 713, 712, 711, 710, 709, 708, 707, 706,
  1145. 705, 704, 703, 702, 701, 700, 699, 698, 697, 696,
  1146. 695, 694, 693, 692, 691, 690, 689, 688, 687, 686,
  1147. 685, 684, 683, 682, 681, 680, 679, 678, 677, 676,
  1148. 673, 672, 667, 666, 665, 664, 663, 662, 661, 660,
  1149. 659, 656, 655, 654, 653, 652, 651, 650, 649, 648,
  1150. 647, 646, 645, 644, 643, 642, 641, 640, 639, 638,
  1151. 637, 636, 633, 632, 631, 630, 629, 628, 627, 626,
  1152. 625, 624, 623, 622, 621, 620, 619, 618, 617, 616,
  1153. 615, 614, 613, 612, 611, 610, 609, 608, 607, 606,
  1154. 605, 604, 603, 602, 601, 600, 599, 598, 597, 596,
  1155. 595, 594, 593, 592, 591, 590, 589, 585, 584, 583,
  1156. 582, 581, 580, 579, 578, 577, 576, 575, 574, 573,
  1157. 572, 571, 570, 569, 568, 567, 566, 565, 564, 563,
  1158. 562, 561, 560, 559, 558, 557, 556, 555, 554, 553,
  1159. 552, 551, 550, 549, 548, 547, 546, 545, 544, 543,
  1160. 542, 541, 540, 539, 538, 537, 536, 535, 534, 533,
  1161. 532, 531, 530, 529, 528, 527, 526, 525, 524, 523,
  1162. 522, 519, 518, 517, 516, 515, 514, 513, 510, 509,
  1163. 508, 507, 506, 505, 504, 503, 502, 501, 497, 496,
  1164. 495, 494, 493, 492, 491, 489, 488, 486, 485, 482,
  1165. 481, 480, 479, 478, 477, 476, 475, 474, 473, 472,
  1166. 471, 470, 469, 468, 467, 466, 465, 464, 463, 462,
  1167. 461, 460, 459, 458, 455, 454, 453, 452, 451, 450,
  1168. 449, 448, 447, 444, 443, 442, 441, 440, 437, 436,
  1169. 435, 434, 433, 432, 431, 430, 429, 424, 423, 422,
  1170. 421, 420, 419, 418, 417, 416, 415, 414, 411, 410,
  1171. 409, 408, 405, 404, 403, 402, 401, 400, 397, 396,
  1172. 394, 393, 388, 383, 380, 377, 376, 375, 374, 373,
  1173. 372, 371, 370, 369, 368, 367, 366, 365, 364, 363,
  1174. 362, 359, 358, 357, 356, 355, 354, 353, 352, 351,
  1175. 350, 349, 348, 347, 343, 342, 341, 340, 339, 338,
  1176. 337, 333, 332, 331, 330, 329, 328, 327, 326, 325,
  1177. 324, 323, 322, 321, 320, 319, 318, 317, 316, 315,
  1178. 314, 313, 312, 311, 310, 309, 308, 307, 304, 303,
  1179. 302, 301, 300, 298, 198, 295, 293, 291, 288, 287,
  1180. 285, 283, 276, 275, 274, 272, 271, 270, 269, 268,
  1181. 267, 263, 252, 248, 245, 244, 243, 242, 240, 239,
  1182. 238, 237, 234, 233, 232, 231, 230, 229, 228, 227,
  1183. 226, 222, 219, 216, 215, 214, 213, 210, 209, 208,
  1184. 205, 204, 203, 202, 198, 191, 188, 187, 185, 183,
  1185. 182, 174, 160, 142, 136, 121, 110, 107, 106, 104,
  1186. 43, 100, 98, 97, 88, 43, 1285, 11, 1285, 1285,
  1187. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1188. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1189. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1190. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1191. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1192. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1193. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285
  1194. } ;
  1195. static const flex_int16_t yy_chk[1720] =
  1196. { 0,
  1197. 0, 1, 1, 1, 0, 1, 1, 0, 1, 1,
  1198. 1, 1, 1, 1, 1, 1, 1, 1, 21, 574,
  1199. 3, 3, 3, 21, 1, 1, 3, 718, 574, 1,
  1200. 4, 4, 4, 13, 1, 13, 4, 27, 28, 1,
  1201. 57, 1, 5, 5, 5, 26, 32, 1, 1, 33,
  1202. 6, 6, 6, 7, 7, 7, 1, 7, 0, 8,
  1203. 8, 8, 1, 8, 57, 27, 28, 719, 26, 1,
  1204. 1, 2, 2, 2, 32, 2, 2, 33, 2, 2,
  1205. 2, 2, 2, 2, 2, 2, 2, 2, 9, 9,
  1206. 9, 52, 5, 31, 2, 2, 10, 10, 10, 2,
  1207. 6, 20, 20, 20, 2, 37, 9, 37, 42, 2,
  1208. 42, 2, 20, 51, 10, 54, 31, 2, 2, 52,
  1209. 124, 75, 25, 66, 25, 75, 2, 25, 25, 25,
  1210. 124, 66, 2, 128, 128, 20, 51, 720, 54, 2,
  1211. 2, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1212. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1213. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1214. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1215. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1216. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1217. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  1218. 15, 15, 17, 48, 17, 17, 17, 19, 56, 19,
  1219. 19, 19, 44, 59, 22, 17, 22, 22, 22, 64,
  1220. 19, 93, 61, 55, 67, 61, 286, 22, 61, 48,
  1221. 61, 56, 61, 55, 67, 96, 67, 63, 17, 59,
  1222. 73, 91, 64, 19, 73, 59, 55, 44, 63, 93,
  1223. 22, 45, 70, 64, 73, 286, 70, 45, 63, 45,
  1224. 45, 55, 45, 96, 45, 45, 45, 91, 58, 69,
  1225. 69, 45, 45, 69, 45, 58, 70, 722, 101, 69,
  1226. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  1227. 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
  1228. 45, 45, 45, 58, 89, 89, 89, 58, 62, 78,
  1229. 71, 58, 62, 101, 77, 62, 62, 92, 258, 58,
  1230. 72, 258, 105, 58, 77, 58, 58, 94, 62, 71,
  1231. 72, 71, 78, 71, 76, 72, 72, 77, 76, 77,
  1232. 95, 76, 78, 92, 81, 81, 81, 78, 76, 76,
  1233. 105, 108, 77, 94, 76, 81, 157, 157, 82, 77,
  1234. 82, 82, 82, 83, 109, 83, 95, 111, 83, 83,
  1235. 83, 82, 84, 112, 84, 84, 84, 108, 81, 85,
  1236. 85, 85, 90, 90, 90, 84, 103, 113, 115, 114,
  1237. 85, 109, 119, 103, 82, 111, 133, 171, 133, 137,
  1238. 112, 135, 137, 147, 152, 161, 137, 147, 84, 119,
  1239. 164, 115, 161, 85, 164, 113, 114, 135, 164, 159,
  1240. 119, 103, 159, 159, 171, 103, 178, 181, 186, 103,
  1241. 176, 306, 152, 177, 152, 179, 180, 103, 162, 189,
  1242. 723, 103, 190, 103, 103, 118, 118, 118, 306, 178,
  1243. 181, 186, 118, 118, 118, 118, 118, 118, 176, 177,
  1244. 192, 196, 180, 179, 194, 236, 724, 189, 207, 190,
  1245. 201, 162, 162, 162, 207, 118, 118, 118, 118, 118,
  1246. 118, 244, 162, 192, 162, 275, 162, 194, 196, 162,
  1247. 199, 199, 199, 201, 277, 280, 285, 199, 199, 199,
  1248. 199, 199, 199, 288, 288, 289, 285, 351, 292, 312,
  1249. 725, 299, 288, 312, 387, 244, 236, 277, 280, 236,
  1250. 199, 199, 199, 199, 199, 199, 324, 549, 289, 244,
  1251. 399, 324, 334, 334, 499, 275, 292, 297, 297, 297,
  1252. 299, 340, 387, 587, 297, 297, 297, 297, 297, 297,
  1253. 379, 340, 397, 498, 397, 379, 421, 726, 399, 412,
  1254. 500, 421, 499, 351, 549, 500, 587, 297, 297, 297,
  1255. 297, 297, 297, 586, 412, 727, 588, 324, 728, 397,
  1256. 498, 397, 324, 398, 398, 398, 588, 729, 730, 731,
  1257. 398, 398, 398, 398, 398, 398, 591, 652, 653, 653,
  1258. 669, 586, 591, 656, 652, 732, 653, 714, 733, 656,
  1259. 734, 714, 735, 398, 398, 398, 398, 398, 398, 736,
  1260. 737, 738, 739, 740, 741, 742, 744, 745, 669, 746,
  1261. 747, 748, 749, 750, 752, 753, 754, 755, 756, 757,
  1262. 758, 759, 760, 761, 762, 763, 764, 765, 766, 767,
  1263. 768, 770, 771, 772, 773, 774, 775, 776, 753, 777,
  1264. 778, 752, 780, 781, 782, 783, 785, 786, 787, 782,
  1265. 788, 789, 790, 791, 792, 793, 794, 795, 796, 797,
  1266. 798, 799, 801, 802, 803, 804, 806, 807, 808, 809,
  1267. 810, 798, 811, 812, 813, 814, 815, 816, 817, 819,
  1268. 820, 821, 822, 823, 824, 825, 826, 827, 828, 829,
  1269. 831, 830, 832, 833, 834, 835, 837, 838, 839, 840,
  1270. 782, 841, 842, 844, 845, 846, 847, 848, 849, 850,
  1271. 851, 852, 853, 854, 855, 856, 858, 829, 830, 859,
  1272. 860, 861, 862, 863, 859, 864, 865, 866, 867, 868,
  1273. 869, 870, 871, 872, 873, 874, 875, 876, 877, 878,
  1274. 879, 881, 882, 883, 884, 885, 886, 887, 889, 890,
  1275. 892, 893, 894, 895, 896, 897, 898, 899, 900, 902,
  1276. 903, 904, 905, 906, 907, 909, 910, 911, 912, 915,
  1277. 916, 917, 918, 919, 920, 921, 922, 923, 924, 925,
  1278. 926, 927, 929, 903, 931, 933, 934, 935, 936, 904,
  1279. 937, 939, 940, 941, 943, 944, 945, 946, 947, 950,
  1280. 951, 952, 953, 954, 955, 956, 957, 958, 959, 960,
  1281. 961, 962, 963, 964, 965, 966, 967, 968, 969, 970,
  1282. 971, 972, 973, 975, 976, 977, 978, 979, 980, 981,
  1283. 982, 983, 984, 986, 987, 988, 989, 990, 991, 992,
  1284. 993, 994, 995, 996, 997, 998, 999, 1000, 971, 1004,
  1285. 1005, 1006, 1007, 1008, 999, 1009, 1010, 957, 1011, 1012,
  1286. 1014, 1015, 1016, 1017, 1019, 1021, 976, 1024, 1026, 1027,
  1287. 1028, 1029, 1030, 1032, 1033, 1028, 1035, 1036, 1037, 1038,
  1288. 1039, 1040, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049,
  1289. 1050, 1052, 1053, 1055, 1056, 1030, 1057, 1058, 1060, 1061,
  1290. 1062, 1063, 1064, 1067, 1069, 1070, 1072, 1073, 1074, 1075,
  1291. 1077, 1079, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088,
  1292. 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098,
  1293. 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1081,
  1294. 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117,
  1295. 1118, 1119, 1120, 1123, 1126, 1127, 1130, 1131, 1132, 1133,
  1296. 1134, 1135, 1137, 1139, 1141, 1142, 1143, 1145, 1146, 1147,
  1297. 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1156, 1157, 1119,
  1298. 1158, 1160, 1161, 1162, 1163, 1164, 1165, 1167, 1168, 1170,
  1299. 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1182, 1185,
  1300. 1186, 1188, 1189, 1191, 1192, 1193, 1194, 1196, 1197, 1198,
  1301. 1199, 1200, 1201, 1203, 1204, 1205, 1206, 1207, 1208, 1209,
  1302. 1211, 1212, 1213, 1214, 1216, 1217, 1218, 1219, 1220, 1221,
  1303. 1222, 1223, 1224, 1227, 1229, 1230, 1231, 1233, 1234, 1235,
  1304. 1237, 1238, 1239, 1241, 1242, 1243, 1244, 1245, 1246, 1247,
  1305. 1248, 1249, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257,
  1306. 1258, 1259, 1261, 1262, 1263, 1264, 1265, 1266, 1270, 1271,
  1307. 1272, 1274, 1275, 1276, 1277, 1278, 1279, 1280, 1282, 1283,
  1308. 1286, 1286, 1286, 1286, 1286, 1287, 1287, 1287, 1287, 1287,
  1309. 1288, 1294, 1288, 1288, 1288, 1289, 1295, 1289, 1296, 1289,
  1310. 1290, 1290, 1290, 1290, 1290, 1291, 1291, 1291, 1291, 1291,
  1311. 1292, 1297, 1292, 1292, 1292, 1293, 1293, 1293, 717, 716,
  1312. 715, 713, 712, 711, 708, 707, 706, 703, 702, 701,
  1313. 700, 699, 698, 697, 696, 695, 694, 693, 692, 691,
  1314. 689, 688, 687, 686, 685, 684, 683, 682, 681, 680,
  1315. 679, 678, 677, 676, 675, 674, 673, 672, 671, 670,
  1316. 668, 666, 665, 664, 663, 662, 661, 660, 659, 658,
  1317. 655, 654, 651, 650, 649, 648, 647, 646, 645, 644,
  1318. 643, 642, 641, 640, 639, 638, 637, 636, 635, 633,
  1319. 632, 631, 630, 629, 628, 627, 625, 624, 623, 622,
  1320. 621, 620, 619, 618, 617, 616, 615, 614, 613, 612,
  1321. 611, 610, 609, 608, 607, 606, 605, 604, 603, 602,
  1322. 601, 600, 599, 598, 597, 596, 595, 594, 593, 592,
  1323. 590, 589, 585, 584, 583, 581, 580, 578, 577, 576,
  1324. 575, 572, 571, 570, 569, 568, 567, 566, 565, 564,
  1325. 562, 561, 560, 559, 558, 557, 556, 555, 553, 552,
  1326. 551, 550, 548, 547, 546, 545, 544, 543, 541, 540,
  1327. 539, 538, 537, 536, 535, 534, 533, 532, 531, 530,
  1328. 529, 528, 527, 526, 525, 524, 523, 522, 521, 519,
  1329. 518, 517, 516, 515, 514, 513, 512, 511, 510, 509,
  1330. 508, 507, 506, 505, 504, 503, 502, 496, 494, 491,
  1331. 490, 489, 488, 486, 485, 484, 482, 481, 478, 477,
  1332. 476, 475, 474, 473, 472, 471, 470, 469, 468, 467,
  1333. 466, 465, 464, 463, 462, 461, 460, 459, 457, 455,
  1334. 454, 453, 452, 451, 450, 449, 448, 447, 446, 445,
  1335. 443, 442, 441, 440, 439, 438, 437, 436, 435, 434,
  1336. 433, 432, 431, 430, 429, 428, 427, 426, 424, 423,
  1337. 422, 420, 419, 418, 417, 416, 414, 413, 411, 410,
  1338. 408, 407, 406, 405, 403, 402, 401, 400, 395, 394,
  1339. 392, 391, 390, 389, 388, 386, 385, 383, 380, 378,
  1340. 377, 375, 374, 373, 372, 371, 370, 369, 368, 367,
  1341. 366, 365, 364, 363, 362, 361, 360, 359, 358, 357,
  1342. 355, 354, 353, 352, 350, 349, 348, 347, 346, 345,
  1343. 344, 343, 341, 339, 338, 337, 336, 335, 333, 332,
  1344. 331, 330, 329, 328, 327, 326, 325, 323, 322, 321,
  1345. 320, 319, 318, 317, 316, 315, 314, 313, 311, 310,
  1346. 309, 308, 305, 304, 303, 302, 301, 300, 296, 294,
  1347. 291, 290, 287, 283, 276, 274, 273, 272, 271, 270,
  1348. 269, 268, 267, 266, 265, 264, 263, 262, 261, 260,
  1349. 259, 257, 256, 255, 254, 253, 252, 251, 250, 249,
  1350. 248, 247, 246, 245, 243, 242, 241, 240, 239, 238,
  1351. 237, 235, 234, 233, 232, 231, 230, 229, 228, 226,
  1352. 225, 224, 223, 222, 221, 220, 219, 218, 217, 216,
  1353. 215, 214, 213, 212, 211, 210, 209, 208, 206, 205,
  1354. 204, 203, 202, 200, 197, 195, 193, 191, 188, 187,
  1355. 185, 182, 174, 173, 172, 170, 169, 168, 167, 166,
  1356. 165, 163, 160, 158, 156, 155, 154, 153, 151, 150,
  1357. 149, 148, 146, 145, 144, 143, 142, 141, 140, 139,
  1358. 138, 136, 134, 132, 131, 130, 129, 127, 126, 125,
  1359. 123, 122, 121, 120, 116, 110, 107, 106, 104, 99,
  1360. 98, 79, 74, 68, 65, 60, 53, 50, 49, 47,
  1361. 43, 41, 39, 38, 24, 14, 11, 1285, 1285, 1285,
  1362. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1363. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1364. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1365. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1366. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1367. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
  1368. 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285
  1369. } ;
  1370. static yy_state_type yy_last_accepting_state;
  1371. static char *yy_last_accepting_cpos;
  1372. extern int yy_flex_debug;
  1373. int yy_flex_debug = 1;
  1374. static const flex_int16_t yy_rule_linenum[158] =
  1375. { 0,
  1376. 143, 145, 147, 152, 153, 158, 159, 160, 172, 175,
  1377. 180, 187, 196, 205, 214, 223, 233, 242, 251, 260,
  1378. 269, 278, 287, 296, 305, 316, 325, 334, 343, 352,
  1379. 362, 372, 382, 392, 402, 412, 422, 432, 442, 453,
  1380. 464, 475, 484, 494, 503, 513, 528, 544, 553, 562,
  1381. 571, 580, 590, 599, 609, 618, 627, 636, 646, 655,
  1382. 664, 673, 682, 692, 701, 710, 719, 728, 737, 746,
  1383. 755, 764, 773, 782, 792, 803, 813, 822, 832, 842,
  1384. 852, 862, 872, 881, 891, 900, 909, 918, 927, 937,
  1385. 947, 957, 966, 975, 984, 993, 1002, 1011, 1020, 1029,
  1386. 1038, 1047, 1056, 1065, 1074, 1083, 1092, 1101, 1110, 1119,
  1387. 1128, 1137, 1146, 1155, 1164, 1173, 1182, 1191, 1200, 1209,
  1388. 1219, 1229, 1239, 1249, 1259, 1269, 1279, 1289, 1299, 1308,
  1389. 1317, 1326, 1335, 1344, 1353, 1362, 1373, 1386, 1399, 1414,
  1390. 1512, 1517, 1522, 1527, 1528, 1529, 1530, 1531, 1532, 1534,
  1391. 1552, 1565, 1570, 1574, 1576, 1578, 1580
  1392. } ;
  1393. /* The intent behind this definition is that it'll catch
  1394. * any uses of REJECT which flex missed.
  1395. */
  1396. #define REJECT reject_used_but_not_detected
  1397. #define yymore() yymore_used_but_not_detected
  1398. #define YY_MORE_ADJ 0
  1399. #define YY_RESTORE_YY_MORE_OFFSET
  1400. char *yytext;
  1401. #line 1 "dhcp4_lexer.ll"
  1402. /* Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
  1403. This Source Code Form is subject to the terms of the Mozilla Public
  1404. License, v. 2.0. If a copy of the MPL was not distributed with this
  1405. file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  1406. #line 8 "dhcp4_lexer.ll"
  1407. /* Generated files do not make clang static analyser so happy */
  1408. #ifndef __clang_analyzer__
  1409. #include <cerrno>
  1410. #include <climits>
  1411. #include <cstdlib>
  1412. #include <string>
  1413. #include <dhcp4/parser_context.h>
  1414. #include <asiolink/io_address.h>
  1415. #include <boost/lexical_cast.hpp>
  1416. #include <exceptions/exceptions.h>
  1417. /* Please avoid C++ style comments (// ... eol) as they break flex 2.6.2 */
  1418. /* Work around an incompatibility in flex (at least versions
  1419. 2.5.31 through 2.5.33): it generates code that does
  1420. not conform to C89. See Debian bug 333231
  1421. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
  1422. # undef yywrap
  1423. # define yywrap() 1
  1424. namespace {
  1425. bool start_token_flag = false;
  1426. isc::dhcp::Parser4Context::ParserType start_token_value;
  1427. unsigned int comment_start_line = 0;
  1428. using namespace isc::dhcp;
  1429. };
  1430. /* To avoid the call to exit... oops! */
  1431. #define YY_FATAL_ERROR(msg) isc::dhcp::Parser4Context::fatal(msg)
  1432. #line 1649 "dhcp4_lexer.cc"
  1433. /* noyywrap disables automatic rewinding for the next file to parse. Since we
  1434. always parse only a single string, there's no need to do any wraps. And
  1435. using yywrap requires linking with -lfl, which provides the default yywrap
  1436. implementation that always returns 1 anyway. */
  1437. /* nounput simplifies the lexer, by removing support for putting a character
  1438. back into the input stream. We never use such capability anyway. */
  1439. /* batch means that we'll never use the generated lexer interactively. */
  1440. /* avoid to get static global variables to remain with C++. */
  1441. /* in last resort %option reentrant */
  1442. /* Enables debug mode. To see the debug messages, one needs to also set
  1443. yy_flex_debug to 1, then the debug messages will be printed on stderr. */
  1444. /* I have no idea what this option does, except it was specified in the bison
  1445. examples and Postgres folks added it to remove gcc 4.3 warnings. Let's
  1446. be on the safe side and keep it. */
  1447. #define YY_NO_INPUT 1
  1448. /* These are not token expressions yet, just convenience expressions that
  1449. can be used during actual token definitions. Note some can match
  1450. incorrect inputs (e.g., IP addresses) which must be checked. */
  1451. /* for errors */
  1452. #line 94 "dhcp4_lexer.ll"
  1453. /* This code run each time a pattern is matched. It updates the location
  1454. by moving it ahead by yyleng bytes. yyleng specifies the length of the
  1455. currently matched token. */
  1456. #define YY_USER_ACTION driver.loc_.columns(yyleng);
  1457. #line 1675 "dhcp4_lexer.cc"
  1458. #line 1676 "dhcp4_lexer.cc"
  1459. #define INITIAL 0
  1460. #define COMMENT 1
  1461. #define DIR_ENTER 2
  1462. #define DIR_INCLUDE 3
  1463. #define DIR_EXIT 4
  1464. #ifndef YY_NO_UNISTD_H
  1465. /* Special case for "unistd.h", since it is non-ANSI. We include it way
  1466. * down here because we want the user's section 1 to have been scanned first.
  1467. * The user has a chance to override it with an option.
  1468. */
  1469. /* %if-c-only */
  1470. #include <unistd.h>
  1471. /* %endif */
  1472. /* %if-c++-only */
  1473. /* %endif */
  1474. #endif
  1475. #ifndef YY_EXTRA_TYPE
  1476. #define YY_EXTRA_TYPE void *
  1477. #endif
  1478. /* %if-c-only Reentrant structure and macros (non-C++). */
  1479. /* %if-reentrant */
  1480. /* %if-c-only */
  1481. static int yy_init_globals ( void );
  1482. /* %endif */
  1483. /* %if-reentrant */
  1484. /* %endif */
  1485. /* %endif End reentrant structures and macros. */
  1486. /* Accessor methods to globals.
  1487. These are made visible to non-reentrant scanners for convenience. */
  1488. int yylex_destroy ( void );
  1489. int yyget_debug ( void );
  1490. void yyset_debug ( int debug_flag );
  1491. YY_EXTRA_TYPE yyget_extra ( void );
  1492. void yyset_extra ( YY_EXTRA_TYPE user_defined );
  1493. FILE *yyget_in ( void );
  1494. void yyset_in ( FILE * _in_str );
  1495. FILE *yyget_out ( void );
  1496. void yyset_out ( FILE * _out_str );
  1497. int yyget_leng ( void );
  1498. char *yyget_text ( void );
  1499. int yyget_lineno ( void );
  1500. void yyset_lineno ( int _line_number );
  1501. /* %if-bison-bridge */
  1502. /* %endif */
  1503. /* Macros after this point can all be overridden by user definitions in
  1504. * section 1.
  1505. */
  1506. #ifndef YY_SKIP_YYWRAP
  1507. #ifdef __cplusplus
  1508. extern "C" int yywrap ( void );
  1509. #else
  1510. extern int yywrap ( void );
  1511. #endif
  1512. #endif
  1513. /* %not-for-header */
  1514. #ifndef YY_NO_UNPUT
  1515. #endif
  1516. /* %ok-for-header */
  1517. /* %endif */
  1518. #ifndef yytext_ptr
  1519. static void yy_flex_strncpy ( char *, const char *, int );
  1520. #endif
  1521. #ifdef YY_NEED_STRLEN
  1522. static int yy_flex_strlen ( const char * );
  1523. #endif
  1524. #ifndef YY_NO_INPUT
  1525. /* %if-c-only Standard (non-C++) definition */
  1526. /* %not-for-header */
  1527. #ifdef __cplusplus
  1528. static int yyinput ( void );
  1529. #else
  1530. static int input ( void );
  1531. #endif
  1532. /* %ok-for-header */
  1533. /* %endif */
  1534. #endif
  1535. /* %if-c-only */
  1536. /* %endif */
  1537. /* Amount of stuff to slurp up with each read. */
  1538. #ifndef YY_READ_BUF_SIZE
  1539. #ifdef __ia64__
  1540. /* On IA-64, the buffer size is 16k, not 8k */
  1541. #define YY_READ_BUF_SIZE 16384
  1542. #else
  1543. #define YY_READ_BUF_SIZE 8192
  1544. #endif /* __ia64__ */
  1545. #endif
  1546. /* Copy whatever the last rule matched to the standard output. */
  1547. #ifndef ECHO
  1548. /* %if-c-only Standard (non-C++) definition */
  1549. /* This used to be an fputs(), but since the string might contain NUL's,
  1550. * we now use fwrite().
  1551. */
  1552. #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
  1553. /* %endif */
  1554. /* %if-c++-only C++ definition */
  1555. /* %endif */
  1556. #endif
  1557. /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  1558. * is returned in "result".
  1559. */
  1560. #ifndef YY_INPUT
  1561. #define YY_INPUT(buf,result,max_size) \
  1562. /* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
  1563. if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  1564. { \
  1565. int c = '*'; \
  1566. int n; \
  1567. for ( n = 0; n < max_size && \
  1568. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  1569. buf[n] = (char) c; \
  1570. if ( c == '\n' ) \
  1571. buf[n++] = (char) c; \
  1572. if ( c == EOF && ferror( yyin ) ) \
  1573. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1574. result = n; \
  1575. } \
  1576. else \
  1577. { \
  1578. errno=0; \
  1579. while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
  1580. { \
  1581. if( errno != EINTR) \
  1582. { \
  1583. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1584. break; \
  1585. } \
  1586. errno=0; \
  1587. clearerr(yyin); \
  1588. } \
  1589. }\
  1590. \
  1591. /* %if-c++-only C++ definition \ */\
  1592. /* %endif */
  1593. #endif
  1594. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  1595. * we don't want an extra ';' after the "return" because that will cause
  1596. * some compilers to complain about unreachable statements.
  1597. */
  1598. #ifndef yyterminate
  1599. #define yyterminate() return YY_NULL
  1600. #endif
  1601. /* Number of entries by which start-condition stack grows. */
  1602. #ifndef YY_START_STACK_INCR
  1603. #define YY_START_STACK_INCR 25
  1604. #endif
  1605. /* Report a fatal error. */
  1606. #ifndef YY_FATAL_ERROR
  1607. /* %if-c-only */
  1608. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  1609. /* %endif */
  1610. /* %if-c++-only */
  1611. /* %endif */
  1612. #endif
  1613. /* %if-tables-serialization structures and prototypes */
  1614. /* %not-for-header */
  1615. /* %ok-for-header */
  1616. /* %not-for-header */
  1617. /* %tables-yydmap generated elements */
  1618. /* %endif */
  1619. /* end tables serialization structures and prototypes */
  1620. /* %ok-for-header */
  1621. /* Default declaration of generated scanner - a define so the user can
  1622. * easily add parameters.
  1623. */
  1624. #ifndef YY_DECL
  1625. #define YY_DECL_IS_OURS 1
  1626. /* %if-c-only Standard (non-C++) definition */
  1627. extern int yylex (void);
  1628. #define YY_DECL int yylex (void)
  1629. /* %endif */
  1630. /* %if-c++-only C++ definition */
  1631. /* %endif */
  1632. #endif /* !YY_DECL */
  1633. /* Code executed at the beginning of each rule, after yytext and yyleng
  1634. * have been set up.
  1635. */
  1636. #ifndef YY_USER_ACTION
  1637. #define YY_USER_ACTION
  1638. #endif
  1639. /* Code executed at the end of each rule. */
  1640. #ifndef YY_BREAK
  1641. #define YY_BREAK /*LINTED*/break;
  1642. #endif
  1643. /* %% [6.0] YY_RULE_SETUP definition goes here */
  1644. #define YY_RULE_SETUP \
  1645. YY_USER_ACTION
  1646. /* %not-for-header */
  1647. /** The main scanner function which does all the work.
  1648. */
  1649. YY_DECL
  1650. {
  1651. yy_state_type yy_current_state;
  1652. char *yy_cp, *yy_bp;
  1653. int yy_act;
  1654. if ( !(yy_init) )
  1655. {
  1656. (yy_init) = 1;
  1657. #ifdef YY_USER_INIT
  1658. YY_USER_INIT;
  1659. #endif
  1660. if ( ! (yy_start) )
  1661. (yy_start) = 1; /* first start state */
  1662. if ( ! yyin )
  1663. /* %if-c-only */
  1664. yyin = stdin;
  1665. /* %endif */
  1666. /* %if-c++-only */
  1667. /* %endif */
  1668. if ( ! yyout )
  1669. /* %if-c-only */
  1670. yyout = stdout;
  1671. /* %endif */
  1672. /* %if-c++-only */
  1673. /* %endif */
  1674. if ( ! YY_CURRENT_BUFFER ) {
  1675. yyensure_buffer_stack ();
  1676. YY_CURRENT_BUFFER_LVALUE =
  1677. yy_create_buffer( yyin, YY_BUF_SIZE );
  1678. }
  1679. yy_load_buffer_state( );
  1680. }
  1681. {
  1682. /* %% [7.0] user's declarations go here */
  1683. #line 100 "dhcp4_lexer.ll"
  1684. #line 104 "dhcp4_lexer.ll"
  1685. /* This part of the code is copied over to the verbatim to the top
  1686. of the generated yylex function. Explanation:
  1687. http://www.gnu.org/software/bison/manual/html_node/Multiple-start_002dsymbols.html */
  1688. /* Code run each time yylex is called. */
  1689. driver.loc_.step();
  1690. if (start_token_flag) {
  1691. start_token_flag = false;
  1692. switch (start_token_value) {
  1693. case Parser4Context::PARSER_JSON:
  1694. default:
  1695. return isc::dhcp::Dhcp4Parser::make_TOPLEVEL_JSON(driver.loc_);
  1696. case Parser4Context::PARSER_DHCP4:
  1697. return isc::dhcp::Dhcp4Parser::make_TOPLEVEL_DHCP4(driver.loc_);
  1698. case Parser4Context::SUBPARSER_DHCP4:
  1699. return isc::dhcp::Dhcp4Parser::make_SUB_DHCP4(driver.loc_);
  1700. case Parser4Context::PARSER_INTERFACES:
  1701. return isc::dhcp::Dhcp4Parser::make_SUB_INTERFACES4(driver.loc_);
  1702. case Parser4Context::PARSER_SUBNET4:
  1703. return isc::dhcp::Dhcp4Parser::make_SUB_SUBNET4(driver.loc_);
  1704. case Parser4Context::PARSER_POOL4:
  1705. return isc::dhcp::Dhcp4Parser::make_SUB_POOL4(driver.loc_);
  1706. case Parser4Context::PARSER_HOST_RESERVATION:
  1707. return isc::dhcp::Dhcp4Parser::make_SUB_RESERVATION(driver.loc_);
  1708. case Parser4Context::PARSER_OPTION_DEFS:
  1709. return isc::dhcp::Dhcp4Parser::make_SUB_OPTION_DEFS(driver.loc_);
  1710. case Parser4Context::PARSER_OPTION_DEF:
  1711. return isc::dhcp::Dhcp4Parser::make_SUB_OPTION_DEF(driver.loc_);
  1712. case Parser4Context::PARSER_OPTION_DATA:
  1713. return isc::dhcp::Dhcp4Parser::make_SUB_OPTION_DATA(driver.loc_);
  1714. case Parser4Context::PARSER_HOOKS_LIBRARY:
  1715. return isc::dhcp::Dhcp4Parser::make_SUB_HOOKS_LIBRARY(driver.loc_);
  1716. case Parser4Context::PARSER_DHCP_DDNS:
  1717. return isc::dhcp::Dhcp4Parser::make_SUB_DHCP_DDNS(driver.loc_);
  1718. }
  1719. }
  1720. #line 2002 "dhcp4_lexer.cc"
  1721. while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
  1722. {
  1723. /* %% [8.0] yymore()-related code goes here */
  1724. yy_cp = (yy_c_buf_p);
  1725. /* Support of yytext. */
  1726. *yy_cp = (yy_hold_char);
  1727. /* yy_bp points to the position in yy_ch_buf of the start of
  1728. * the current run.
  1729. */
  1730. yy_bp = yy_cp;
  1731. /* %% [9.0] code to set up and find next match goes here */
  1732. yy_current_state = (yy_start);
  1733. yy_match:
  1734. do
  1735. {
  1736. YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
  1737. if ( yy_accept[yy_current_state] )
  1738. {
  1739. (yy_last_accepting_state) = yy_current_state;
  1740. (yy_last_accepting_cpos) = yy_cp;
  1741. }
  1742. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1743. {
  1744. yy_current_state = (int) yy_def[yy_current_state];
  1745. if ( yy_current_state >= 1286 )
  1746. yy_c = yy_meta[yy_c];
  1747. }
  1748. yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1749. ++yy_cp;
  1750. }
  1751. while ( yy_current_state != 1285 );
  1752. yy_cp = (yy_last_accepting_cpos);
  1753. yy_current_state = (yy_last_accepting_state);
  1754. yy_find_action:
  1755. /* %% [10.0] code to find the action number goes here */
  1756. yy_act = yy_accept[yy_current_state];
  1757. YY_DO_BEFORE_ACTION;
  1758. /* %% [11.0] code for yylineno update goes here */
  1759. do_action: /* This label is used only to access EOF actions. */
  1760. /* %% [12.0] debug code goes here */
  1761. if ( yy_flex_debug )
  1762. {
  1763. if ( yy_act == 0 )
  1764. fprintf( stderr, "--scanner backing up\n" );
  1765. else if ( yy_act < 158 )
  1766. fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
  1767. (long)yy_rule_linenum[yy_act], yytext );
  1768. else if ( yy_act == 158 )
  1769. fprintf( stderr, "--accepting default rule (\"%s\")\n",
  1770. yytext );
  1771. else if ( yy_act == 159 )
  1772. fprintf( stderr, "--(end of buffer or a NUL)\n" );
  1773. else
  1774. fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
  1775. }
  1776. switch ( yy_act )
  1777. { /* beginning of action switch */
  1778. /* %% [13.0] actions go here */
  1779. case 0: /* must back up */
  1780. /* undo the effects of YY_DO_BEFORE_ACTION */
  1781. *yy_cp = (yy_hold_char);
  1782. yy_cp = (yy_last_accepting_cpos);
  1783. yy_current_state = (yy_last_accepting_state);
  1784. goto yy_find_action;
  1785. case 1:
  1786. YY_RULE_SETUP
  1787. #line 143 "dhcp4_lexer.ll"
  1788. ;
  1789. YY_BREAK
  1790. case 2:
  1791. YY_RULE_SETUP
  1792. #line 145 "dhcp4_lexer.ll"
  1793. ;
  1794. YY_BREAK
  1795. case 3:
  1796. YY_RULE_SETUP
  1797. #line 147 "dhcp4_lexer.ll"
  1798. {
  1799. BEGIN(COMMENT);
  1800. comment_start_line = driver.loc_.end.line;;
  1801. }
  1802. YY_BREAK
  1803. case 4:
  1804. YY_RULE_SETUP
  1805. #line 152 "dhcp4_lexer.ll"
  1806. BEGIN(INITIAL);
  1807. YY_BREAK
  1808. case 5:
  1809. YY_RULE_SETUP
  1810. #line 153 "dhcp4_lexer.ll"
  1811. ;
  1812. YY_BREAK
  1813. case YY_STATE_EOF(COMMENT):
  1814. #line 154 "dhcp4_lexer.ll"
  1815. {
  1816. isc_throw(Dhcp4ParseError, "Comment not closed. (/* in line " << comment_start_line);
  1817. }
  1818. YY_BREAK
  1819. case 6:
  1820. YY_RULE_SETUP
  1821. #line 158 "dhcp4_lexer.ll"
  1822. BEGIN(DIR_ENTER);
  1823. YY_BREAK
  1824. case 7:
  1825. YY_RULE_SETUP
  1826. #line 159 "dhcp4_lexer.ll"
  1827. BEGIN(DIR_INCLUDE);
  1828. YY_BREAK
  1829. case 8:
  1830. YY_RULE_SETUP
  1831. #line 160 "dhcp4_lexer.ll"
  1832. {
  1833. /* Include directive. */
  1834. /* Extract the filename. */
  1835. std::string tmp(yytext+1);
  1836. tmp.resize(tmp.size() - 1);
  1837. driver.includeFile(tmp);
  1838. }
  1839. YY_BREAK
  1840. case YY_STATE_EOF(DIR_ENTER):
  1841. case YY_STATE_EOF(DIR_INCLUDE):
  1842. case YY_STATE_EOF(DIR_EXIT):
  1843. #line 169 "dhcp4_lexer.ll"
  1844. {
  1845. isc_throw(Dhcp4ParseError, "Directive not closed.");
  1846. }
  1847. YY_BREAK
  1848. case 9:
  1849. YY_RULE_SETUP
  1850. #line 172 "dhcp4_lexer.ll"
  1851. BEGIN(INITIAL);
  1852. YY_BREAK
  1853. case 10:
  1854. YY_RULE_SETUP
  1855. #line 175 "dhcp4_lexer.ll"
  1856. {
  1857. /* Ok, we found a with space. Let's ignore it and update loc variable. */
  1858. driver.loc_.step();
  1859. }
  1860. YY_BREAK
  1861. case 11:
  1862. /* rule 11 can match eol */
  1863. YY_RULE_SETUP
  1864. #line 180 "dhcp4_lexer.ll"
  1865. {
  1866. /* Newline found. Let's update the location and continue. */
  1867. driver.loc_.lines(yyleng);
  1868. driver.loc_.step();
  1869. }
  1870. YY_BREAK
  1871. case 12:
  1872. YY_RULE_SETUP
  1873. #line 187 "dhcp4_lexer.ll"
  1874. {
  1875. switch(driver.ctx_) {
  1876. case isc::dhcp::Parser4Context::CONFIG:
  1877. return isc::dhcp::Dhcp4Parser::make_DHCP4(driver.loc_);
  1878. default:
  1879. return isc::dhcp::Dhcp4Parser::make_STRING("Dhcp4", driver.loc_);
  1880. }
  1881. }
  1882. YY_BREAK
  1883. case 13:
  1884. YY_RULE_SETUP
  1885. #line 196 "dhcp4_lexer.ll"
  1886. {
  1887. switch(driver.ctx_) {
  1888. case isc::dhcp::Parser4Context::DHCP4:
  1889. return isc::dhcp::Dhcp4Parser::make_INTERFACES_CONFIG(driver.loc_);
  1890. default:
  1891. return isc::dhcp::Dhcp4Parser::make_STRING("interfaces-config", driver.loc_);
  1892. }
  1893. }
  1894. YY_BREAK
  1895. case 14:
  1896. YY_RULE_SETUP
  1897. #line 205 "dhcp4_lexer.ll"
  1898. {
  1899. switch(driver.ctx_) {
  1900. case isc::dhcp::Parser4Context::INTERFACES_CONFIG:
  1901. return isc::dhcp::Dhcp4Parser::make_DHCP_SOCKET_TYPE(driver.loc_);
  1902. default:
  1903. return isc::dhcp::Dhcp4Parser::make_STRING("dhcp-socket-type", driver.loc_);
  1904. }
  1905. }
  1906. YY_BREAK
  1907. case 15:
  1908. YY_RULE_SETUP
  1909. #line 214 "dhcp4_lexer.ll"
  1910. {
  1911. switch(driver.ctx_) {
  1912. case isc::dhcp::Parser4Context::DHCP_SOCKET_TYPE:
  1913. return isc::dhcp::Dhcp4Parser::make_RAW(driver.loc_);
  1914. default:
  1915. return isc::dhcp::Dhcp4Parser::make_STRING("raw", driver.loc_);
  1916. }
  1917. }
  1918. YY_BREAK
  1919. case 16:
  1920. YY_RULE_SETUP
  1921. #line 223 "dhcp4_lexer.ll"
  1922. {
  1923. switch(driver.ctx_) {
  1924. case isc::dhcp::Parser4Context::DHCP_SOCKET_TYPE:
  1925. case isc::dhcp::Parser4Context::NCR_PROTOCOL:
  1926. return isc::dhcp::Dhcp4Parser::make_UDP(driver.loc_);
  1927. default:
  1928. return isc::dhcp::Dhcp4Parser::make_STRING("udp", driver.loc_);
  1929. }
  1930. }
  1931. YY_BREAK
  1932. case 17:
  1933. YY_RULE_SETUP
  1934. #line 233 "dhcp4_lexer.ll"
  1935. {
  1936. switch(driver.ctx_) {
  1937. case Parser4Context::INTERFACES_CONFIG:
  1938. return isc::dhcp::Dhcp4Parser::make_OUTBOUND_INTERFACE(driver.loc_);
  1939. default:
  1940. return isc::dhcp::Dhcp4Parser::make_STRING("outbound-interface", driver.loc_);
  1941. }
  1942. }
  1943. YY_BREAK
  1944. case 18:
  1945. YY_RULE_SETUP
  1946. #line 242 "dhcp4_lexer.ll"
  1947. {
  1948. switch(driver.ctx_) {
  1949. case Parser4Context::OUTBOUND_INTERFACE:
  1950. return Dhcp4Parser::make_SAME_AS_INBOUND(driver.loc_);
  1951. default:
  1952. return Dhcp4Parser::make_STRING("same-as-inbound", driver.loc_);
  1953. }
  1954. }
  1955. YY_BREAK
  1956. case 19:
  1957. YY_RULE_SETUP
  1958. #line 251 "dhcp4_lexer.ll"
  1959. {
  1960. switch(driver.ctx_) {
  1961. case Parser4Context::OUTBOUND_INTERFACE:
  1962. return Dhcp4Parser::make_USE_ROUTING(driver.loc_);
  1963. default:
  1964. return Dhcp4Parser::make_STRING("use-routing", driver.loc_);
  1965. }
  1966. }
  1967. YY_BREAK
  1968. case 20:
  1969. YY_RULE_SETUP
  1970. #line 260 "dhcp4_lexer.ll"
  1971. {
  1972. switch(driver.ctx_) {
  1973. case isc::dhcp::Parser4Context::INTERFACES_CONFIG:
  1974. return isc::dhcp::Dhcp4Parser::make_INTERFACES(driver.loc_);
  1975. default:
  1976. return isc::dhcp::Dhcp4Parser::make_STRING("interfaces", driver.loc_);
  1977. }
  1978. }
  1979. YY_BREAK
  1980. case 21:
  1981. YY_RULE_SETUP
  1982. #line 269 "dhcp4_lexer.ll"
  1983. {
  1984. switch(driver.ctx_) {
  1985. case isc::dhcp::Parser4Context::INTERFACES_CONFIG:
  1986. return isc::dhcp::Dhcp4Parser::make_RE_DETECT(driver.loc_);
  1987. default:
  1988. return isc::dhcp::Dhcp4Parser::make_STRING("re-detect", driver.loc_);
  1989. }
  1990. }
  1991. YY_BREAK
  1992. case 22:
  1993. YY_RULE_SETUP
  1994. #line 278 "dhcp4_lexer.ll"
  1995. {
  1996. switch(driver.ctx_) {
  1997. case isc::dhcp::Parser4Context::DHCP4:
  1998. return isc::dhcp::Dhcp4Parser::make_LEASE_DATABASE(driver.loc_);
  1999. default:
  2000. return isc::dhcp::Dhcp4Parser::make_STRING("lease-database", driver.loc_);
  2001. }
  2002. }
  2003. YY_BREAK
  2004. case 23:
  2005. YY_RULE_SETUP
  2006. #line 287 "dhcp4_lexer.ll"
  2007. {
  2008. switch(driver.ctx_) {
  2009. case isc::dhcp::Parser4Context::DHCP4:
  2010. return isc::dhcp::Dhcp4Parser::make_HOSTS_DATABASE(driver.loc_);
  2011. default:
  2012. return isc::dhcp::Dhcp4Parser::make_STRING("hosts-database", driver.loc_);
  2013. }
  2014. }
  2015. YY_BREAK
  2016. case 24:
  2017. YY_RULE_SETUP
  2018. #line 296 "dhcp4_lexer.ll"
  2019. {
  2020. switch(driver.ctx_) {
  2021. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2022. return isc::dhcp::Dhcp4Parser::make_READONLY(driver.loc_);
  2023. default:
  2024. return isc::dhcp::Dhcp4Parser::make_STRING("readonly", driver.loc_);
  2025. }
  2026. }
  2027. YY_BREAK
  2028. case 25:
  2029. YY_RULE_SETUP
  2030. #line 305 "dhcp4_lexer.ll"
  2031. {
  2032. switch(driver.ctx_) {
  2033. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2034. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2035. case isc::dhcp::Parser4Context::OPTION_DEF:
  2036. return isc::dhcp::Dhcp4Parser::make_TYPE(driver.loc_);
  2037. default:
  2038. return isc::dhcp::Dhcp4Parser::make_STRING("type", driver.loc_);
  2039. }
  2040. }
  2041. YY_BREAK
  2042. case 26:
  2043. YY_RULE_SETUP
  2044. #line 316 "dhcp4_lexer.ll"
  2045. {
  2046. switch(driver.ctx_) {
  2047. case isc::dhcp::Parser4Context::DATABASE_TYPE:
  2048. return isc::dhcp::Dhcp4Parser::make_MEMFILE(driver.loc_);
  2049. default:
  2050. return isc::dhcp::Dhcp4Parser::make_STRING("memfile", driver.loc_);
  2051. }
  2052. }
  2053. YY_BREAK
  2054. case 27:
  2055. YY_RULE_SETUP
  2056. #line 325 "dhcp4_lexer.ll"
  2057. {
  2058. switch(driver.ctx_) {
  2059. case isc::dhcp::Parser4Context::DATABASE_TYPE:
  2060. return isc::dhcp::Dhcp4Parser::make_MYSQL(driver.loc_);
  2061. default:
  2062. return isc::dhcp::Dhcp4Parser::make_STRING("mysql", driver.loc_);
  2063. }
  2064. }
  2065. YY_BREAK
  2066. case 28:
  2067. YY_RULE_SETUP
  2068. #line 334 "dhcp4_lexer.ll"
  2069. {
  2070. switch(driver.ctx_) {
  2071. case isc::dhcp::Parser4Context::DATABASE_TYPE:
  2072. return isc::dhcp::Dhcp4Parser::make_POSTGRESQL(driver.loc_);
  2073. default:
  2074. return isc::dhcp::Dhcp4Parser::make_STRING("postgresql", driver.loc_);
  2075. }
  2076. }
  2077. YY_BREAK
  2078. case 29:
  2079. YY_RULE_SETUP
  2080. #line 343 "dhcp4_lexer.ll"
  2081. {
  2082. switch(driver.ctx_) {
  2083. case isc::dhcp::Parser4Context::DATABASE_TYPE:
  2084. return isc::dhcp::Dhcp4Parser::make_CQL(driver.loc_);
  2085. default:
  2086. return isc::dhcp::Dhcp4Parser::make_STRING("cql", driver.loc_);
  2087. }
  2088. }
  2089. YY_BREAK
  2090. case 30:
  2091. YY_RULE_SETUP
  2092. #line 352 "dhcp4_lexer.ll"
  2093. {
  2094. switch(driver.ctx_) {
  2095. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2096. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2097. return isc::dhcp::Dhcp4Parser::make_USER(driver.loc_);
  2098. default:
  2099. return isc::dhcp::Dhcp4Parser::make_STRING("user", driver.loc_);
  2100. }
  2101. }
  2102. YY_BREAK
  2103. case 31:
  2104. YY_RULE_SETUP
  2105. #line 362 "dhcp4_lexer.ll"
  2106. {
  2107. switch(driver.ctx_) {
  2108. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2109. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2110. return isc::dhcp::Dhcp4Parser::make_PASSWORD(driver.loc_);
  2111. default:
  2112. return isc::dhcp::Dhcp4Parser::make_STRING("password", driver.loc_);
  2113. }
  2114. }
  2115. YY_BREAK
  2116. case 32:
  2117. YY_RULE_SETUP
  2118. #line 372 "dhcp4_lexer.ll"
  2119. {
  2120. switch(driver.ctx_) {
  2121. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2122. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2123. return isc::dhcp::Dhcp4Parser::make_HOST(driver.loc_);
  2124. default:
  2125. return isc::dhcp::Dhcp4Parser::make_STRING("host", driver.loc_);
  2126. }
  2127. }
  2128. YY_BREAK
  2129. case 33:
  2130. YY_RULE_SETUP
  2131. #line 382 "dhcp4_lexer.ll"
  2132. {
  2133. switch(driver.ctx_) {
  2134. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2135. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2136. return isc::dhcp::Dhcp4Parser::make_PORT(driver.loc_);
  2137. default:
  2138. return isc::dhcp::Dhcp4Parser::make_STRING("port", driver.loc_);
  2139. }
  2140. }
  2141. YY_BREAK
  2142. case 34:
  2143. YY_RULE_SETUP
  2144. #line 392 "dhcp4_lexer.ll"
  2145. {
  2146. switch(driver.ctx_) {
  2147. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2148. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2149. return isc::dhcp::Dhcp4Parser::make_PERSIST(driver.loc_);
  2150. default:
  2151. return isc::dhcp::Dhcp4Parser::make_STRING("persist", driver.loc_);
  2152. }
  2153. }
  2154. YY_BREAK
  2155. case 35:
  2156. YY_RULE_SETUP
  2157. #line 402 "dhcp4_lexer.ll"
  2158. {
  2159. switch(driver.ctx_) {
  2160. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2161. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2162. return isc::dhcp::Dhcp4Parser::make_LFC_INTERVAL(driver.loc_);
  2163. default:
  2164. return isc::dhcp::Dhcp4Parser::make_STRING("lfc-interval", driver.loc_);
  2165. }
  2166. }
  2167. YY_BREAK
  2168. case 36:
  2169. YY_RULE_SETUP
  2170. #line 412 "dhcp4_lexer.ll"
  2171. {
  2172. switch(driver.ctx_) {
  2173. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2174. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2175. return isc::dhcp::Dhcp4Parser::make_CONNECT_TIMEOUT(driver.loc_);
  2176. default:
  2177. return isc::dhcp::Dhcp4Parser::make_STRING("connect-timeout", driver.loc_);
  2178. }
  2179. }
  2180. YY_BREAK
  2181. case 37:
  2182. YY_RULE_SETUP
  2183. #line 422 "dhcp4_lexer.ll"
  2184. {
  2185. switch(driver.ctx_) {
  2186. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2187. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2188. return isc::dhcp::Dhcp4Parser::make_KEYSPACE(driver.loc_);
  2189. default:
  2190. return isc::dhcp::Dhcp4Parser::make_STRING("keyspace", driver.loc_);
  2191. }
  2192. }
  2193. YY_BREAK
  2194. case 38:
  2195. YY_RULE_SETUP
  2196. #line 432 "dhcp4_lexer.ll"
  2197. {
  2198. switch(driver.ctx_) {
  2199. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2200. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2201. return isc::dhcp::Dhcp4Parser::make_CONTACT_POINTS(driver.loc_);
  2202. default:
  2203. return isc::dhcp::Dhcp4Parser::make_STRING("contact-points", driver.loc_);
  2204. }
  2205. }
  2206. YY_BREAK
  2207. case 39:
  2208. YY_RULE_SETUP
  2209. #line 442 "dhcp4_lexer.ll"
  2210. {
  2211. switch(driver.ctx_) {
  2212. case isc::dhcp::Parser4Context::DHCP4:
  2213. case isc::dhcp::Parser4Context::SUBNET4:
  2214. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2215. return isc::dhcp::Dhcp4Parser::make_VALID_LIFETIME(driver.loc_);
  2216. default:
  2217. return isc::dhcp::Dhcp4Parser::make_STRING("valid-lifetime", driver.loc_);
  2218. }
  2219. }
  2220. YY_BREAK
  2221. case 40:
  2222. YY_RULE_SETUP
  2223. #line 453 "dhcp4_lexer.ll"
  2224. {
  2225. switch(driver.ctx_) {
  2226. case isc::dhcp::Parser4Context::DHCP4:
  2227. case isc::dhcp::Parser4Context::SUBNET4:
  2228. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2229. return isc::dhcp::Dhcp4Parser::make_RENEW_TIMER(driver.loc_);
  2230. default:
  2231. return isc::dhcp::Dhcp4Parser::make_STRING("renew-timer", driver.loc_);
  2232. }
  2233. }
  2234. YY_BREAK
  2235. case 41:
  2236. YY_RULE_SETUP
  2237. #line 464 "dhcp4_lexer.ll"
  2238. {
  2239. switch(driver.ctx_) {
  2240. case isc::dhcp::Parser4Context::DHCP4:
  2241. case isc::dhcp::Parser4Context::SUBNET4:
  2242. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2243. return isc::dhcp::Dhcp4Parser::make_REBIND_TIMER(driver.loc_);
  2244. default:
  2245. return isc::dhcp::Dhcp4Parser::make_STRING("rebind-timer", driver.loc_);
  2246. }
  2247. }
  2248. YY_BREAK
  2249. case 42:
  2250. YY_RULE_SETUP
  2251. #line 475 "dhcp4_lexer.ll"
  2252. {
  2253. switch(driver.ctx_) {
  2254. case isc::dhcp::Parser4Context::DHCP4:
  2255. return isc::dhcp::Dhcp4Parser::make_DECLINE_PROBATION_PERIOD(driver.loc_);
  2256. default:
  2257. return isc::dhcp::Dhcp4Parser::make_STRING("decline-probation-period", driver.loc_);
  2258. }
  2259. }
  2260. YY_BREAK
  2261. case 43:
  2262. YY_RULE_SETUP
  2263. #line 484 "dhcp4_lexer.ll"
  2264. {
  2265. switch(driver.ctx_) {
  2266. case isc::dhcp::Parser4Context::DHCP4:
  2267. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2268. return isc::dhcp::Dhcp4Parser::make_SUBNET4(driver.loc_);
  2269. default:
  2270. return isc::dhcp::Dhcp4Parser::make_STRING("subnet4", driver.loc_);
  2271. }
  2272. }
  2273. YY_BREAK
  2274. case 44:
  2275. YY_RULE_SETUP
  2276. #line 494 "dhcp4_lexer.ll"
  2277. {
  2278. switch (driver.ctx_) {
  2279. case isc::dhcp::Parser4Context::DHCP4:
  2280. return isc::dhcp::Dhcp4Parser::make_SHARED_NETWORKS(driver.loc_);
  2281. default:
  2282. return isc::dhcp::Dhcp4Parser::make_STRING("shared-networks", driver.loc_);
  2283. }
  2284. }
  2285. YY_BREAK
  2286. case 45:
  2287. YY_RULE_SETUP
  2288. #line 503 "dhcp4_lexer.ll"
  2289. {
  2290. switch(driver.ctx_) {
  2291. case isc::dhcp::Parser4Context::DHCP4:
  2292. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  2293. return isc::dhcp::Dhcp4Parser::make_OPTION_DEF(driver.loc_);
  2294. default:
  2295. return isc::dhcp::Dhcp4Parser::make_STRING("option-def", driver.loc_);
  2296. }
  2297. }
  2298. YY_BREAK
  2299. case 46:
  2300. YY_RULE_SETUP
  2301. #line 513 "dhcp4_lexer.ll"
  2302. {
  2303. switch(driver.ctx_) {
  2304. case isc::dhcp::Parser4Context::DHCP4:
  2305. case isc::dhcp::Parser4Context::SUBNET4:
  2306. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2307. case isc::dhcp::Parser4Context::POOLS:
  2308. case isc::dhcp::Parser4Context::RESERVATIONS:
  2309. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  2310. case isc::dhcp::Parser4Context::CLIENT_CLASS:
  2311. return isc::dhcp::Dhcp4Parser::make_OPTION_DATA(driver.loc_);
  2312. default:
  2313. return isc::dhcp::Dhcp4Parser::make_STRING("option-data", driver.loc_);
  2314. }
  2315. }
  2316. YY_BREAK
  2317. case 47:
  2318. YY_RULE_SETUP
  2319. #line 528 "dhcp4_lexer.ll"
  2320. {
  2321. switch(driver.ctx_) {
  2322. case isc::dhcp::Parser4Context::LEASE_DATABASE:
  2323. case isc::dhcp::Parser4Context::HOSTS_DATABASE:
  2324. case isc::dhcp::Parser4Context::OPTION_DEF:
  2325. case isc::dhcp::Parser4Context::OPTION_DATA:
  2326. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  2327. case isc::dhcp::Parser4Context::CLIENT_CLASS:
  2328. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2329. case isc::dhcp::Parser4Context::LOGGERS:
  2330. return isc::dhcp::Dhcp4Parser::make_NAME(driver.loc_);
  2331. default:
  2332. return isc::dhcp::Dhcp4Parser::make_STRING("name", driver.loc_);
  2333. }
  2334. }
  2335. YY_BREAK
  2336. case 48:
  2337. YY_RULE_SETUP
  2338. #line 544 "dhcp4_lexer.ll"
  2339. {
  2340. switch(driver.ctx_) {
  2341. case isc::dhcp::Parser4Context::OPTION_DATA:
  2342. return isc::dhcp::Dhcp4Parser::make_DATA(driver.loc_);
  2343. default:
  2344. return isc::dhcp::Dhcp4Parser::make_STRING("data", driver.loc_);
  2345. }
  2346. }
  2347. YY_BREAK
  2348. case 49:
  2349. YY_RULE_SETUP
  2350. #line 553 "dhcp4_lexer.ll"
  2351. {
  2352. switch(driver.ctx_) {
  2353. case isc::dhcp::Parser4Context::OPTION_DATA:
  2354. return isc::dhcp::Dhcp4Parser::make_ALWAYS_SEND(driver.loc_);
  2355. default:
  2356. return isc::dhcp::Dhcp4Parser::make_STRING("always-send", driver.loc_);
  2357. }
  2358. }
  2359. YY_BREAK
  2360. case 50:
  2361. YY_RULE_SETUP
  2362. #line 562 "dhcp4_lexer.ll"
  2363. {
  2364. switch(driver.ctx_) {
  2365. case isc::dhcp::Parser4Context::SUBNET4:
  2366. return isc::dhcp::Dhcp4Parser::make_POOLS(driver.loc_);
  2367. default:
  2368. return isc::dhcp::Dhcp4Parser::make_STRING("pools", driver.loc_);
  2369. }
  2370. }
  2371. YY_BREAK
  2372. case 51:
  2373. YY_RULE_SETUP
  2374. #line 571 "dhcp4_lexer.ll"
  2375. {
  2376. switch(driver.ctx_) {
  2377. case isc::dhcp::Parser4Context::POOLS:
  2378. return isc::dhcp::Dhcp4Parser::make_POOL(driver.loc_);
  2379. default:
  2380. return isc::dhcp::Dhcp4Parser::make_STRING("pool", driver.loc_);
  2381. }
  2382. }
  2383. YY_BREAK
  2384. case 52:
  2385. YY_RULE_SETUP
  2386. #line 580 "dhcp4_lexer.ll"
  2387. {
  2388. switch(driver.ctx_) {
  2389. case isc::dhcp::Parser4Context::SUBNET4:
  2390. case isc::dhcp::Parser4Context::POOLS:
  2391. return isc::dhcp::Dhcp4Parser::make_USER_CONTEXT(driver.loc_);
  2392. default:
  2393. return isc::dhcp::Dhcp4Parser::make_STRING("user-context", driver.loc_);
  2394. }
  2395. }
  2396. YY_BREAK
  2397. case 53:
  2398. YY_RULE_SETUP
  2399. #line 590 "dhcp4_lexer.ll"
  2400. {
  2401. switch(driver.ctx_) {
  2402. case isc::dhcp::Parser4Context::SUBNET4:
  2403. return isc::dhcp::Dhcp4Parser::make_SUBNET(driver.loc_);
  2404. default:
  2405. return isc::dhcp::Dhcp4Parser::make_STRING("subnet", driver.loc_);
  2406. }
  2407. }
  2408. YY_BREAK
  2409. case 54:
  2410. YY_RULE_SETUP
  2411. #line 599 "dhcp4_lexer.ll"
  2412. {
  2413. switch(driver.ctx_) {
  2414. case isc::dhcp::Parser4Context::SUBNET4:
  2415. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2416. return isc::dhcp::Dhcp4Parser::make_INTERFACE(driver.loc_);
  2417. default:
  2418. return isc::dhcp::Dhcp4Parser::make_STRING("interface", driver.loc_);
  2419. }
  2420. }
  2421. YY_BREAK
  2422. case 55:
  2423. YY_RULE_SETUP
  2424. #line 609 "dhcp4_lexer.ll"
  2425. {
  2426. switch(driver.ctx_) {
  2427. case isc::dhcp::Parser4Context::SUBNET4:
  2428. return isc::dhcp::Dhcp4Parser::make_INTERFACE_ID(driver.loc_);
  2429. default:
  2430. return isc::dhcp::Dhcp4Parser::make_STRING("interface-id", driver.loc_);
  2431. }
  2432. }
  2433. YY_BREAK
  2434. case 56:
  2435. YY_RULE_SETUP
  2436. #line 618 "dhcp4_lexer.ll"
  2437. {
  2438. switch(driver.ctx_) {
  2439. case isc::dhcp::Parser4Context::SUBNET4:
  2440. return isc::dhcp::Dhcp4Parser::make_ID(driver.loc_);
  2441. default:
  2442. return isc::dhcp::Dhcp4Parser::make_STRING("id", driver.loc_);
  2443. }
  2444. }
  2445. YY_BREAK
  2446. case 57:
  2447. YY_RULE_SETUP
  2448. #line 627 "dhcp4_lexer.ll"
  2449. {
  2450. switch(driver.ctx_) {
  2451. case isc::dhcp::Parser4Context::SUBNET4:
  2452. return isc::dhcp::Dhcp4Parser::make_RAPID_COMMIT(driver.loc_);
  2453. default:
  2454. return isc::dhcp::Dhcp4Parser::make_STRING("rapid-commit", driver.loc_);
  2455. }
  2456. }
  2457. YY_BREAK
  2458. case 58:
  2459. YY_RULE_SETUP
  2460. #line 636 "dhcp4_lexer.ll"
  2461. {
  2462. switch(driver.ctx_) {
  2463. case isc::dhcp::Parser4Context::SUBNET4:
  2464. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2465. return isc::dhcp::Dhcp4Parser::make_RESERVATION_MODE(driver.loc_);
  2466. default:
  2467. return isc::dhcp::Dhcp4Parser::make_STRING("reservation-mode", driver.loc_);
  2468. }
  2469. }
  2470. YY_BREAK
  2471. case 59:
  2472. YY_RULE_SETUP
  2473. #line 646 "dhcp4_lexer.ll"
  2474. {
  2475. switch(driver.ctx_) {
  2476. case isc::dhcp::Parser4Context::RESERVATION_MODE:
  2477. return isc::dhcp::Dhcp4Parser::make_DISABLED(driver.loc_);
  2478. default:
  2479. return isc::dhcp::Dhcp4Parser::make_STRING("disabled", driver.loc_);
  2480. }
  2481. }
  2482. YY_BREAK
  2483. case 60:
  2484. YY_RULE_SETUP
  2485. #line 655 "dhcp4_lexer.ll"
  2486. {
  2487. switch(driver.ctx_) {
  2488. case isc::dhcp::Parser4Context::RESERVATION_MODE:
  2489. return isc::dhcp::Dhcp4Parser::make_DISABLED(driver.loc_);
  2490. default:
  2491. return isc::dhcp::Dhcp4Parser::make_STRING("off", driver.loc_);
  2492. }
  2493. }
  2494. YY_BREAK
  2495. case 61:
  2496. YY_RULE_SETUP
  2497. #line 664 "dhcp4_lexer.ll"
  2498. {
  2499. switch(driver.ctx_) {
  2500. case isc::dhcp::Parser4Context::RESERVATION_MODE:
  2501. return isc::dhcp::Dhcp4Parser::make_OUT_OF_POOL(driver.loc_);
  2502. default:
  2503. return isc::dhcp::Dhcp4Parser::make_STRING("out-of-pool", driver.loc_);
  2504. }
  2505. }
  2506. YY_BREAK
  2507. case 62:
  2508. YY_RULE_SETUP
  2509. #line 673 "dhcp4_lexer.ll"
  2510. {
  2511. switch(driver.ctx_) {
  2512. case isc::dhcp::Parser4Context::RESERVATION_MODE:
  2513. return isc::dhcp::Dhcp4Parser::make_ALL(driver.loc_);
  2514. default:
  2515. return isc::dhcp::Dhcp4Parser::make_STRING("all", driver.loc_);
  2516. }
  2517. }
  2518. YY_BREAK
  2519. case 63:
  2520. YY_RULE_SETUP
  2521. #line 682 "dhcp4_lexer.ll"
  2522. {
  2523. switch(driver.ctx_) {
  2524. case isc::dhcp::Parser4Context::OPTION_DEF:
  2525. case isc::dhcp::Parser4Context::OPTION_DATA:
  2526. return isc::dhcp::Dhcp4Parser::make_CODE(driver.loc_);
  2527. default:
  2528. return isc::dhcp::Dhcp4Parser::make_STRING("code", driver.loc_);
  2529. }
  2530. }
  2531. YY_BREAK
  2532. case 64:
  2533. YY_RULE_SETUP
  2534. #line 692 "dhcp4_lexer.ll"
  2535. {
  2536. switch(driver.ctx_) {
  2537. case isc::dhcp::Parser4Context::DHCP4:
  2538. return isc::dhcp::Dhcp4Parser::make_HOST_RESERVATION_IDENTIFIERS(driver.loc_);
  2539. default:
  2540. return isc::dhcp::Dhcp4Parser::make_STRING("host-reservation-identifiers", driver.loc_);
  2541. }
  2542. }
  2543. YY_BREAK
  2544. case 65:
  2545. YY_RULE_SETUP
  2546. #line 701 "dhcp4_lexer.ll"
  2547. {
  2548. switch(driver.ctx_) {
  2549. case isc::dhcp::Parser4Context::CONFIG:
  2550. return isc::dhcp::Dhcp4Parser::make_LOGGING(driver.loc_);
  2551. default:
  2552. return isc::dhcp::Dhcp4Parser::make_STRING("Logging", driver.loc_);
  2553. }
  2554. }
  2555. YY_BREAK
  2556. case 66:
  2557. YY_RULE_SETUP
  2558. #line 710 "dhcp4_lexer.ll"
  2559. {
  2560. switch(driver.ctx_) {
  2561. case isc::dhcp::Parser4Context::LOGGING:
  2562. return isc::dhcp::Dhcp4Parser::make_LOGGERS(driver.loc_);
  2563. default:
  2564. return isc::dhcp::Dhcp4Parser::make_STRING("loggers", driver.loc_);
  2565. }
  2566. }
  2567. YY_BREAK
  2568. case 67:
  2569. YY_RULE_SETUP
  2570. #line 719 "dhcp4_lexer.ll"
  2571. {
  2572. switch(driver.ctx_) {
  2573. case isc::dhcp::Parser4Context::LOGGERS:
  2574. return isc::dhcp::Dhcp4Parser::make_OUTPUT_OPTIONS(driver.loc_);
  2575. default:
  2576. return isc::dhcp::Dhcp4Parser::make_STRING("output_options", driver.loc_);
  2577. }
  2578. }
  2579. YY_BREAK
  2580. case 68:
  2581. YY_RULE_SETUP
  2582. #line 728 "dhcp4_lexer.ll"
  2583. {
  2584. switch(driver.ctx_) {
  2585. case isc::dhcp::Parser4Context::OUTPUT_OPTIONS:
  2586. return isc::dhcp::Dhcp4Parser::make_OUTPUT(driver.loc_);
  2587. default:
  2588. return isc::dhcp::Dhcp4Parser::make_STRING("output", driver.loc_);
  2589. }
  2590. }
  2591. YY_BREAK
  2592. case 69:
  2593. YY_RULE_SETUP
  2594. #line 737 "dhcp4_lexer.ll"
  2595. {
  2596. switch(driver.ctx_) {
  2597. case isc::dhcp::Parser4Context::LOGGERS:
  2598. return isc::dhcp::Dhcp4Parser::make_DEBUGLEVEL(driver.loc_);
  2599. default:
  2600. return isc::dhcp::Dhcp4Parser::make_STRING("debuglevel", driver.loc_);
  2601. }
  2602. }
  2603. YY_BREAK
  2604. case 70:
  2605. YY_RULE_SETUP
  2606. #line 746 "dhcp4_lexer.ll"
  2607. {
  2608. switch(driver.ctx_) {
  2609. case isc::dhcp::Parser4Context::OUTPUT_OPTIONS:
  2610. return isc::dhcp::Dhcp4Parser::make_FLUSH(driver.loc_);
  2611. default:
  2612. return isc::dhcp::Dhcp4Parser::make_STRING("flush", driver.loc_);
  2613. }
  2614. }
  2615. YY_BREAK
  2616. case 71:
  2617. YY_RULE_SETUP
  2618. #line 755 "dhcp4_lexer.ll"
  2619. {
  2620. switch(driver.ctx_) {
  2621. case isc::dhcp::Parser4Context::OUTPUT_OPTIONS:
  2622. return isc::dhcp::Dhcp4Parser::make_MAXSIZE(driver.loc_);
  2623. default:
  2624. return isc::dhcp::Dhcp4Parser::make_STRING("maxsize", driver.loc_);
  2625. }
  2626. }
  2627. YY_BREAK
  2628. case 72:
  2629. YY_RULE_SETUP
  2630. #line 764 "dhcp4_lexer.ll"
  2631. {
  2632. switch(driver.ctx_) {
  2633. case isc::dhcp::Parser4Context::OUTPUT_OPTIONS:
  2634. return isc::dhcp::Dhcp4Parser::make_MAXVER(driver.loc_);
  2635. default:
  2636. return isc::dhcp::Dhcp4Parser::make_STRING("maxver", driver.loc_);
  2637. }
  2638. }
  2639. YY_BREAK
  2640. case 73:
  2641. YY_RULE_SETUP
  2642. #line 773 "dhcp4_lexer.ll"
  2643. {
  2644. switch(driver.ctx_) {
  2645. case isc::dhcp::Parser4Context::LOGGERS:
  2646. return isc::dhcp::Dhcp4Parser::make_SEVERITY(driver.loc_);
  2647. default:
  2648. return isc::dhcp::Dhcp4Parser::make_STRING("severity", driver.loc_);
  2649. }
  2650. }
  2651. YY_BREAK
  2652. case 74:
  2653. YY_RULE_SETUP
  2654. #line 782 "dhcp4_lexer.ll"
  2655. {
  2656. switch(driver.ctx_) {
  2657. case isc::dhcp::Parser4Context::DHCP4:
  2658. case isc::dhcp::Parser4Context::RESERVATIONS:
  2659. return isc::dhcp::Dhcp4Parser::make_CLIENT_CLASSES(driver.loc_);
  2660. default:
  2661. return isc::dhcp::Dhcp4Parser::make_STRING("client-classes", driver.loc_);
  2662. }
  2663. }
  2664. YY_BREAK
  2665. case 75:
  2666. YY_RULE_SETUP
  2667. #line 792 "dhcp4_lexer.ll"
  2668. {
  2669. switch(driver.ctx_) {
  2670. case isc::dhcp::Parser4Context::SUBNET4:
  2671. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2672. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  2673. return isc::dhcp::Dhcp4Parser::make_CLIENT_CLASS(driver.loc_);
  2674. default:
  2675. return isc::dhcp::Dhcp4Parser::make_STRING("client-class", driver.loc_);
  2676. }
  2677. }
  2678. YY_BREAK
  2679. case 76:
  2680. YY_RULE_SETUP
  2681. #line 803 "dhcp4_lexer.ll"
  2682. {
  2683. switch(driver.ctx_) {
  2684. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  2685. case isc::dhcp::Parser4Context::CLIENT_CLASS:
  2686. return isc::dhcp::Dhcp4Parser::make_TEST(driver.loc_);
  2687. default:
  2688. return isc::dhcp::Dhcp4Parser::make_STRING("test", driver.loc_);
  2689. }
  2690. }
  2691. YY_BREAK
  2692. case 77:
  2693. YY_RULE_SETUP
  2694. #line 813 "dhcp4_lexer.ll"
  2695. {
  2696. switch(driver.ctx_) {
  2697. case isc::dhcp::Parser4Context::SUBNET4:
  2698. return isc::dhcp::Dhcp4Parser::make_RESERVATIONS(driver.loc_);
  2699. default:
  2700. return isc::dhcp::Dhcp4Parser::make_STRING("reservations", driver.loc_);
  2701. }
  2702. }
  2703. YY_BREAK
  2704. case 78:
  2705. YY_RULE_SETUP
  2706. #line 822 "dhcp4_lexer.ll"
  2707. {
  2708. switch(driver.ctx_) {
  2709. case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS:
  2710. case isc::dhcp::Parser4Context::RESERVATIONS:
  2711. return isc::dhcp::Dhcp4Parser::make_DUID(driver.loc_);
  2712. default:
  2713. return isc::dhcp::Dhcp4Parser::make_STRING("duid", driver.loc_);
  2714. }
  2715. }
  2716. YY_BREAK
  2717. case 79:
  2718. YY_RULE_SETUP
  2719. #line 832 "dhcp4_lexer.ll"
  2720. {
  2721. switch(driver.ctx_) {
  2722. case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS:
  2723. case isc::dhcp::Parser4Context::RESERVATIONS:
  2724. return isc::dhcp::Dhcp4Parser::make_HW_ADDRESS(driver.loc_);
  2725. default:
  2726. return isc::dhcp::Dhcp4Parser::make_STRING("hw-address", driver.loc_);
  2727. }
  2728. }
  2729. YY_BREAK
  2730. case 80:
  2731. YY_RULE_SETUP
  2732. #line 842 "dhcp4_lexer.ll"
  2733. {
  2734. switch(driver.ctx_) {
  2735. case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS:
  2736. case isc::dhcp::Parser4Context::RESERVATIONS:
  2737. return isc::dhcp::Dhcp4Parser::make_CLIENT_ID(driver.loc_);
  2738. default:
  2739. return isc::dhcp::Dhcp4Parser::make_STRING("client-id", driver.loc_);
  2740. }
  2741. }
  2742. YY_BREAK
  2743. case 81:
  2744. YY_RULE_SETUP
  2745. #line 852 "dhcp4_lexer.ll"
  2746. {
  2747. switch(driver.ctx_) {
  2748. case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS:
  2749. case isc::dhcp::Parser4Context::RESERVATIONS:
  2750. return isc::dhcp::Dhcp4Parser::make_CIRCUIT_ID(driver.loc_);
  2751. default:
  2752. return isc::dhcp::Dhcp4Parser::make_STRING("circuit-id", driver.loc_);
  2753. }
  2754. }
  2755. YY_BREAK
  2756. case 82:
  2757. YY_RULE_SETUP
  2758. #line 862 "dhcp4_lexer.ll"
  2759. {
  2760. switch(driver.ctx_) {
  2761. case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS:
  2762. case isc::dhcp::Parser4Context::RESERVATIONS:
  2763. return isc::dhcp::Dhcp4Parser::make_FLEX_ID(driver.loc_);
  2764. default:
  2765. return isc::dhcp::Dhcp4Parser::make_STRING("flex-id", driver.loc_);
  2766. }
  2767. }
  2768. YY_BREAK
  2769. case 83:
  2770. YY_RULE_SETUP
  2771. #line 872 "dhcp4_lexer.ll"
  2772. {
  2773. switch(driver.ctx_) {
  2774. case isc::dhcp::Parser4Context::RESERVATIONS:
  2775. return isc::dhcp::Dhcp4Parser::make_HOSTNAME(driver.loc_);
  2776. default:
  2777. return isc::dhcp::Dhcp4Parser::make_STRING("hostname", driver.loc_);
  2778. }
  2779. }
  2780. YY_BREAK
  2781. case 84:
  2782. YY_RULE_SETUP
  2783. #line 881 "dhcp4_lexer.ll"
  2784. {
  2785. switch(driver.ctx_) {
  2786. case isc::dhcp::Parser4Context::OPTION_DEF:
  2787. case isc::dhcp::Parser4Context::OPTION_DATA:
  2788. return isc::dhcp::Dhcp4Parser::make_SPACE(driver.loc_);
  2789. default:
  2790. return isc::dhcp::Dhcp4Parser::make_STRING("space", driver.loc_);
  2791. }
  2792. }
  2793. YY_BREAK
  2794. case 85:
  2795. YY_RULE_SETUP
  2796. #line 891 "dhcp4_lexer.ll"
  2797. {
  2798. switch(driver.ctx_) {
  2799. case isc::dhcp::Parser4Context::OPTION_DATA:
  2800. return isc::dhcp::Dhcp4Parser::make_CSV_FORMAT(driver.loc_);
  2801. default:
  2802. return isc::dhcp::Dhcp4Parser::make_STRING("csv-format", driver.loc_);
  2803. }
  2804. }
  2805. YY_BREAK
  2806. case 86:
  2807. YY_RULE_SETUP
  2808. #line 900 "dhcp4_lexer.ll"
  2809. {
  2810. switch(driver.ctx_) {
  2811. case isc::dhcp::Parser4Context::OPTION_DEF:
  2812. return isc::dhcp::Dhcp4Parser::make_RECORD_TYPES(driver.loc_);
  2813. default:
  2814. return isc::dhcp::Dhcp4Parser::make_STRING("record-types", driver.loc_);
  2815. }
  2816. }
  2817. YY_BREAK
  2818. case 87:
  2819. YY_RULE_SETUP
  2820. #line 909 "dhcp4_lexer.ll"
  2821. {
  2822. switch(driver.ctx_) {
  2823. case isc::dhcp::Parser4Context::OPTION_DEF:
  2824. return isc::dhcp::Dhcp4Parser::make_ENCAPSULATE(driver.loc_);
  2825. default:
  2826. return isc::dhcp::Dhcp4Parser::make_STRING("encapsulate", driver.loc_);
  2827. }
  2828. }
  2829. YY_BREAK
  2830. case 88:
  2831. YY_RULE_SETUP
  2832. #line 918 "dhcp4_lexer.ll"
  2833. {
  2834. switch(driver.ctx_) {
  2835. case isc::dhcp::Parser4Context::OPTION_DEF:
  2836. return isc::dhcp::Dhcp4Parser::make_ARRAY(driver.loc_);
  2837. default:
  2838. return isc::dhcp::Dhcp4Parser::make_STRING("array", driver.loc_);
  2839. }
  2840. }
  2841. YY_BREAK
  2842. case 89:
  2843. YY_RULE_SETUP
  2844. #line 927 "dhcp4_lexer.ll"
  2845. {
  2846. switch(driver.ctx_) {
  2847. case isc::dhcp::Parser4Context::SUBNET4:
  2848. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  2849. return isc::dhcp::Dhcp4Parser::make_RELAY(driver.loc_);
  2850. default:
  2851. return isc::dhcp::Dhcp4Parser::make_STRING("relay", driver.loc_);
  2852. }
  2853. }
  2854. YY_BREAK
  2855. case 90:
  2856. YY_RULE_SETUP
  2857. #line 937 "dhcp4_lexer.ll"
  2858. {
  2859. switch(driver.ctx_) {
  2860. case isc::dhcp::Parser4Context::RELAY:
  2861. case isc::dhcp::Parser4Context::RESERVATIONS:
  2862. return isc::dhcp::Dhcp4Parser::make_IP_ADDRESS(driver.loc_);
  2863. default:
  2864. return isc::dhcp::Dhcp4Parser::make_STRING("ip-address", driver.loc_);
  2865. }
  2866. }
  2867. YY_BREAK
  2868. case 91:
  2869. YY_RULE_SETUP
  2870. #line 947 "dhcp4_lexer.ll"
  2871. {
  2872. switch(driver.ctx_) {
  2873. case isc::dhcp::Parser4Context::DHCP4:
  2874. return isc::dhcp::Dhcp4Parser::make_HOOKS_LIBRARIES(driver.loc_);
  2875. default:
  2876. return isc::dhcp::Dhcp4Parser::make_STRING("hooks-libraries", driver.loc_);
  2877. }
  2878. }
  2879. YY_BREAK
  2880. case 92:
  2881. YY_RULE_SETUP
  2882. #line 957 "dhcp4_lexer.ll"
  2883. {
  2884. switch(driver.ctx_) {
  2885. case isc::dhcp::Parser4Context::HOOKS_LIBRARIES:
  2886. return isc::dhcp::Dhcp4Parser::make_PARAMETERS(driver.loc_);
  2887. default:
  2888. return isc::dhcp::Dhcp4Parser::make_STRING("parameters", driver.loc_);
  2889. }
  2890. }
  2891. YY_BREAK
  2892. case 93:
  2893. YY_RULE_SETUP
  2894. #line 966 "dhcp4_lexer.ll"
  2895. {
  2896. switch(driver.ctx_) {
  2897. case isc::dhcp::Parser4Context::HOOKS_LIBRARIES:
  2898. return isc::dhcp::Dhcp4Parser::make_LIBRARY(driver.loc_);
  2899. default:
  2900. return isc::dhcp::Dhcp4Parser::make_STRING("library", driver.loc_);
  2901. }
  2902. }
  2903. YY_BREAK
  2904. case 94:
  2905. YY_RULE_SETUP
  2906. #line 975 "dhcp4_lexer.ll"
  2907. {
  2908. switch(driver.ctx_) {
  2909. case isc::dhcp::Parser4Context::DHCP4:
  2910. return isc::dhcp::Dhcp4Parser::make_EXPIRED_LEASES_PROCESSING(driver.loc_);
  2911. default:
  2912. return isc::dhcp::Dhcp4Parser::make_STRING("expired-leases-processing", driver.loc_);
  2913. }
  2914. }
  2915. YY_BREAK
  2916. case 95:
  2917. YY_RULE_SETUP
  2918. #line 984 "dhcp4_lexer.ll"
  2919. {
  2920. switch(driver.ctx_) {
  2921. case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING:
  2922. return isc::dhcp::Dhcp4Parser::make_RECLAIM_TIMER_WAIT_TIME(driver.loc_);
  2923. default:
  2924. return isc::dhcp::Dhcp4Parser::make_STRING("reclaim-timer-wait-time", driver.loc_);
  2925. }
  2926. }
  2927. YY_BREAK
  2928. case 96:
  2929. YY_RULE_SETUP
  2930. #line 993 "dhcp4_lexer.ll"
  2931. {
  2932. switch(driver.ctx_) {
  2933. case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING:
  2934. return isc::dhcp::Dhcp4Parser::make_FLUSH_RECLAIMED_TIMER_WAIT_TIME(driver.loc_);
  2935. default:
  2936. return isc::dhcp::Dhcp4Parser::make_STRING("flush-reclaimed-timer-wait-time", driver.loc_);
  2937. }
  2938. }
  2939. YY_BREAK
  2940. case 97:
  2941. YY_RULE_SETUP
  2942. #line 1002 "dhcp4_lexer.ll"
  2943. {
  2944. switch(driver.ctx_) {
  2945. case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING:
  2946. return isc::dhcp::Dhcp4Parser::make_HOLD_RECLAIMED_TIME(driver.loc_);
  2947. default:
  2948. return isc::dhcp::Dhcp4Parser::make_STRING("hold-reclaimed-time", driver.loc_);
  2949. }
  2950. }
  2951. YY_BREAK
  2952. case 98:
  2953. YY_RULE_SETUP
  2954. #line 1011 "dhcp4_lexer.ll"
  2955. {
  2956. switch(driver.ctx_) {
  2957. case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING:
  2958. return isc::dhcp::Dhcp4Parser::make_MAX_RECLAIM_LEASES(driver.loc_);
  2959. default:
  2960. return isc::dhcp::Dhcp4Parser::make_STRING("max-reclaim-leases", driver.loc_);
  2961. }
  2962. }
  2963. YY_BREAK
  2964. case 99:
  2965. YY_RULE_SETUP
  2966. #line 1020 "dhcp4_lexer.ll"
  2967. {
  2968. switch(driver.ctx_) {
  2969. case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING:
  2970. return isc::dhcp::Dhcp4Parser::make_MAX_RECLAIM_TIME(driver.loc_);
  2971. default:
  2972. return isc::dhcp::Dhcp4Parser::make_STRING("max-reclaim-time", driver.loc_);
  2973. }
  2974. }
  2975. YY_BREAK
  2976. case 100:
  2977. YY_RULE_SETUP
  2978. #line 1029 "dhcp4_lexer.ll"
  2979. {
  2980. switch(driver.ctx_) {
  2981. case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING:
  2982. return isc::dhcp::Dhcp4Parser::make_UNWARNED_RECLAIM_CYCLES(driver.loc_);
  2983. default:
  2984. return isc::dhcp::Dhcp4Parser::make_STRING("unwarned-reclaim-cycles", driver.loc_);
  2985. }
  2986. }
  2987. YY_BREAK
  2988. case 101:
  2989. YY_RULE_SETUP
  2990. #line 1038 "dhcp4_lexer.ll"
  2991. {
  2992. switch(driver.ctx_) {
  2993. case isc::dhcp::Parser4Context::DHCP4:
  2994. return isc::dhcp::Dhcp4Parser::make_DHCP4O6_PORT(driver.loc_);
  2995. default:
  2996. return isc::dhcp::Dhcp4Parser::make_STRING("dhcp4o6-port", driver.loc_);
  2997. }
  2998. }
  2999. YY_BREAK
  3000. case 102:
  3001. YY_RULE_SETUP
  3002. #line 1047 "dhcp4_lexer.ll"
  3003. {
  3004. switch(driver.ctx_) {
  3005. case isc::dhcp::Parser4Context::DHCP4:
  3006. return isc::dhcp::Dhcp4Parser::make_CONTROL_SOCKET(driver.loc_);
  3007. default:
  3008. return isc::dhcp::Dhcp4Parser::make_STRING("control-socket", driver.loc_);
  3009. }
  3010. }
  3011. YY_BREAK
  3012. case 103:
  3013. YY_RULE_SETUP
  3014. #line 1056 "dhcp4_lexer.ll"
  3015. {
  3016. switch(driver.ctx_) {
  3017. case isc::dhcp::Parser4Context::CONTROL_SOCKET:
  3018. return isc::dhcp::Dhcp4Parser::make_SOCKET_TYPE(driver.loc_);
  3019. default:
  3020. return isc::dhcp::Dhcp4Parser::make_STRING("socket-type", driver.loc_);
  3021. }
  3022. }
  3023. YY_BREAK
  3024. case 104:
  3025. YY_RULE_SETUP
  3026. #line 1065 "dhcp4_lexer.ll"
  3027. {
  3028. switch(driver.ctx_) {
  3029. case isc::dhcp::Parser4Context::CONTROL_SOCKET:
  3030. return isc::dhcp::Dhcp4Parser::make_SOCKET_NAME(driver.loc_);
  3031. default:
  3032. return isc::dhcp::Dhcp4Parser::make_STRING("socket-name", driver.loc_);
  3033. }
  3034. }
  3035. YY_BREAK
  3036. case 105:
  3037. YY_RULE_SETUP
  3038. #line 1074 "dhcp4_lexer.ll"
  3039. {
  3040. switch(driver.ctx_) {
  3041. case isc::dhcp::Parser4Context::DHCP4:
  3042. return isc::dhcp::Dhcp4Parser::make_DHCP_DDNS(driver.loc_);
  3043. default:
  3044. return isc::dhcp::Dhcp4Parser::make_STRING("dhcp-ddns", driver.loc_);
  3045. }
  3046. }
  3047. YY_BREAK
  3048. case 106:
  3049. YY_RULE_SETUP
  3050. #line 1083 "dhcp4_lexer.ll"
  3051. {
  3052. switch(driver.ctx_) {
  3053. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3054. return isc::dhcp::Dhcp4Parser::make_ENABLE_UPDATES(driver.loc_);
  3055. default:
  3056. return isc::dhcp::Dhcp4Parser::make_STRING("enable-updates", driver.loc_);
  3057. }
  3058. }
  3059. YY_BREAK
  3060. case 107:
  3061. YY_RULE_SETUP
  3062. #line 1092 "dhcp4_lexer.ll"
  3063. {
  3064. switch(driver.ctx_) {
  3065. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3066. return isc::dhcp::Dhcp4Parser::make_QUALIFYING_SUFFIX(driver.loc_);
  3067. default:
  3068. return isc::dhcp::Dhcp4Parser::make_STRING("qualifying-suffix", driver.loc_);
  3069. }
  3070. }
  3071. YY_BREAK
  3072. case 108:
  3073. YY_RULE_SETUP
  3074. #line 1101 "dhcp4_lexer.ll"
  3075. {
  3076. switch(driver.ctx_) {
  3077. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3078. return isc::dhcp::Dhcp4Parser::make_SERVER_IP(driver.loc_);
  3079. default:
  3080. return isc::dhcp::Dhcp4Parser::make_STRING("server-ip", driver.loc_);
  3081. }
  3082. }
  3083. YY_BREAK
  3084. case 109:
  3085. YY_RULE_SETUP
  3086. #line 1110 "dhcp4_lexer.ll"
  3087. {
  3088. switch(driver.ctx_) {
  3089. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3090. return isc::dhcp::Dhcp4Parser::make_SERVER_PORT(driver.loc_);
  3091. default:
  3092. return isc::dhcp::Dhcp4Parser::make_STRING("server-port", driver.loc_);
  3093. }
  3094. }
  3095. YY_BREAK
  3096. case 110:
  3097. YY_RULE_SETUP
  3098. #line 1119 "dhcp4_lexer.ll"
  3099. {
  3100. switch(driver.ctx_) {
  3101. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3102. return isc::dhcp::Dhcp4Parser::make_SENDER_IP(driver.loc_);
  3103. default:
  3104. return isc::dhcp::Dhcp4Parser::make_STRING("sender-ip", driver.loc_);
  3105. }
  3106. }
  3107. YY_BREAK
  3108. case 111:
  3109. YY_RULE_SETUP
  3110. #line 1128 "dhcp4_lexer.ll"
  3111. {
  3112. switch(driver.ctx_) {
  3113. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3114. return isc::dhcp::Dhcp4Parser::make_SENDER_PORT(driver.loc_);
  3115. default:
  3116. return isc::dhcp::Dhcp4Parser::make_STRING("sender-port", driver.loc_);
  3117. }
  3118. }
  3119. YY_BREAK
  3120. case 112:
  3121. YY_RULE_SETUP
  3122. #line 1137 "dhcp4_lexer.ll"
  3123. {
  3124. switch(driver.ctx_) {
  3125. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3126. return isc::dhcp::Dhcp4Parser::make_MAX_QUEUE_SIZE(driver.loc_);
  3127. default:
  3128. return isc::dhcp::Dhcp4Parser::make_STRING("max-queue-size", driver.loc_);
  3129. }
  3130. }
  3131. YY_BREAK
  3132. case 113:
  3133. YY_RULE_SETUP
  3134. #line 1146 "dhcp4_lexer.ll"
  3135. {
  3136. switch(driver.ctx_) {
  3137. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3138. return isc::dhcp::Dhcp4Parser::make_NCR_PROTOCOL(driver.loc_);
  3139. default:
  3140. return isc::dhcp::Dhcp4Parser::make_STRING("ncr-protocol", driver.loc_);
  3141. }
  3142. }
  3143. YY_BREAK
  3144. case 114:
  3145. YY_RULE_SETUP
  3146. #line 1155 "dhcp4_lexer.ll"
  3147. {
  3148. switch(driver.ctx_) {
  3149. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3150. return isc::dhcp::Dhcp4Parser::make_NCR_FORMAT(driver.loc_);
  3151. default:
  3152. return isc::dhcp::Dhcp4Parser::make_STRING("ncr-format", driver.loc_);
  3153. }
  3154. }
  3155. YY_BREAK
  3156. case 115:
  3157. YY_RULE_SETUP
  3158. #line 1164 "dhcp4_lexer.ll"
  3159. {
  3160. switch(driver.ctx_) {
  3161. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3162. return isc::dhcp::Dhcp4Parser::make_ALWAYS_INCLUDE_FQDN(driver.loc_);
  3163. default:
  3164. return isc::dhcp::Dhcp4Parser::make_STRING("always-include-fqdn", driver.loc_);
  3165. }
  3166. }
  3167. YY_BREAK
  3168. case 116:
  3169. YY_RULE_SETUP
  3170. #line 1173 "dhcp4_lexer.ll"
  3171. {
  3172. switch(driver.ctx_) {
  3173. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3174. return isc::dhcp::Dhcp4Parser::make_OVERRIDE_NO_UPDATE(driver.loc_);
  3175. default:
  3176. return isc::dhcp::Dhcp4Parser::make_STRING("override-no-update", driver.loc_);
  3177. }
  3178. }
  3179. YY_BREAK
  3180. case 117:
  3181. YY_RULE_SETUP
  3182. #line 1182 "dhcp4_lexer.ll"
  3183. {
  3184. switch(driver.ctx_) {
  3185. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3186. return isc::dhcp::Dhcp4Parser::make_OVERRIDE_CLIENT_UPDATE(driver.loc_);
  3187. default:
  3188. return isc::dhcp::Dhcp4Parser::make_STRING("override-client-update", driver.loc_);
  3189. }
  3190. }
  3191. YY_BREAK
  3192. case 118:
  3193. YY_RULE_SETUP
  3194. #line 1191 "dhcp4_lexer.ll"
  3195. {
  3196. switch(driver.ctx_) {
  3197. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3198. return isc::dhcp::Dhcp4Parser::make_REPLACE_CLIENT_NAME(driver.loc_);
  3199. default:
  3200. return isc::dhcp::Dhcp4Parser::make_STRING("replace-client-name", driver.loc_);
  3201. }
  3202. }
  3203. YY_BREAK
  3204. case 119:
  3205. YY_RULE_SETUP
  3206. #line 1200 "dhcp4_lexer.ll"
  3207. {
  3208. switch(driver.ctx_) {
  3209. case isc::dhcp::Parser4Context::DHCP_DDNS:
  3210. return isc::dhcp::Dhcp4Parser::make_GENERATED_PREFIX(driver.loc_);
  3211. default:
  3212. return isc::dhcp::Dhcp4Parser::make_STRING("generated-prefix", driver.loc_);
  3213. }
  3214. }
  3215. YY_BREAK
  3216. case 120:
  3217. YY_RULE_SETUP
  3218. #line 1209 "dhcp4_lexer.ll"
  3219. {
  3220. /* dhcp-ddns value keywords are case insensitive */
  3221. if (driver.ctx_ == isc::dhcp::Parser4Context::NCR_PROTOCOL) {
  3222. return isc::dhcp::Dhcp4Parser::make_UDP(driver.loc_);
  3223. }
  3224. std::string tmp(yytext+1);
  3225. tmp.resize(tmp.size() - 1);
  3226. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3227. }
  3228. YY_BREAK
  3229. case 121:
  3230. YY_RULE_SETUP
  3231. #line 1219 "dhcp4_lexer.ll"
  3232. {
  3233. /* dhcp-ddns value keywords are case insensitive */
  3234. if (driver.ctx_ == isc::dhcp::Parser4Context::NCR_PROTOCOL) {
  3235. return isc::dhcp::Dhcp4Parser::make_TCP(driver.loc_);
  3236. }
  3237. std::string tmp(yytext+1);
  3238. tmp.resize(tmp.size() - 1);
  3239. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3240. }
  3241. YY_BREAK
  3242. case 122:
  3243. YY_RULE_SETUP
  3244. #line 1229 "dhcp4_lexer.ll"
  3245. {
  3246. /* dhcp-ddns value keywords are case insensitive */
  3247. if (driver.ctx_ == isc::dhcp::Parser4Context::NCR_FORMAT) {
  3248. return isc::dhcp::Dhcp4Parser::make_JSON(driver.loc_);
  3249. }
  3250. std::string tmp(yytext+1);
  3251. tmp.resize(tmp.size() - 1);
  3252. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3253. }
  3254. YY_BREAK
  3255. case 123:
  3256. YY_RULE_SETUP
  3257. #line 1239 "dhcp4_lexer.ll"
  3258. {
  3259. /* dhcp-ddns value keywords are case insensitive */
  3260. if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) {
  3261. return isc::dhcp::Dhcp4Parser::make_WHEN_PRESENT(driver.loc_);
  3262. }
  3263. std::string tmp(yytext+1);
  3264. tmp.resize(tmp.size() - 1);
  3265. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3266. }
  3267. YY_BREAK
  3268. case 124:
  3269. YY_RULE_SETUP
  3270. #line 1249 "dhcp4_lexer.ll"
  3271. {
  3272. /* dhcp-ddns value keywords are case insensitive */
  3273. if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) {
  3274. return isc::dhcp::Dhcp4Parser::make_WHEN_PRESENT(driver.loc_);
  3275. }
  3276. std::string tmp(yytext+1);
  3277. tmp.resize(tmp.size() - 1);
  3278. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3279. }
  3280. YY_BREAK
  3281. case 125:
  3282. YY_RULE_SETUP
  3283. #line 1259 "dhcp4_lexer.ll"
  3284. {
  3285. /* dhcp-ddns value keywords are case insensitive */
  3286. if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) {
  3287. return isc::dhcp::Dhcp4Parser::make_NEVER(driver.loc_);
  3288. }
  3289. std::string tmp(yytext+1);
  3290. tmp.resize(tmp.size() - 1);
  3291. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3292. }
  3293. YY_BREAK
  3294. case 126:
  3295. YY_RULE_SETUP
  3296. #line 1269 "dhcp4_lexer.ll"
  3297. {
  3298. /* dhcp-ddns value keywords are case insensitive */
  3299. if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) {
  3300. return isc::dhcp::Dhcp4Parser::make_NEVER(driver.loc_);
  3301. }
  3302. std::string tmp(yytext+1);
  3303. tmp.resize(tmp.size() - 1);
  3304. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3305. }
  3306. YY_BREAK
  3307. case 127:
  3308. YY_RULE_SETUP
  3309. #line 1279 "dhcp4_lexer.ll"
  3310. {
  3311. /* dhcp-ddns value keywords are case insensitive */
  3312. if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) {
  3313. return isc::dhcp::Dhcp4Parser::make_ALWAYS(driver.loc_);
  3314. }
  3315. std::string tmp(yytext+1);
  3316. tmp.resize(tmp.size() - 1);
  3317. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3318. }
  3319. YY_BREAK
  3320. case 128:
  3321. YY_RULE_SETUP
  3322. #line 1289 "dhcp4_lexer.ll"
  3323. {
  3324. /* dhcp-ddns value keywords are case insensitive */
  3325. if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) {
  3326. return isc::dhcp::Dhcp4Parser::make_WHEN_NOT_PRESENT(driver.loc_);
  3327. }
  3328. std::string tmp(yytext+1);
  3329. tmp.resize(tmp.size() - 1);
  3330. return isc::dhcp::Dhcp4Parser::make_STRING(tmp, driver.loc_);
  3331. }
  3332. YY_BREAK
  3333. case 129:
  3334. YY_RULE_SETUP
  3335. #line 1299 "dhcp4_lexer.ll"
  3336. {
  3337. switch(driver.ctx_) {
  3338. case isc::dhcp::Parser4Context::CONFIG:
  3339. return isc::dhcp::Dhcp4Parser::make_DHCP6(driver.loc_);
  3340. default:
  3341. return isc::dhcp::Dhcp4Parser::make_STRING("Dhcp6", driver.loc_);
  3342. }
  3343. }
  3344. YY_BREAK
  3345. case 130:
  3346. YY_RULE_SETUP
  3347. #line 1308 "dhcp4_lexer.ll"
  3348. {
  3349. switch(driver.ctx_) {
  3350. case isc::dhcp::Parser4Context::CONFIG:
  3351. return isc::dhcp::Dhcp4Parser::make_DHCPDDNS(driver.loc_);
  3352. default:
  3353. return isc::dhcp::Dhcp4Parser::make_STRING("DhcpDdns", driver.loc_);
  3354. }
  3355. }
  3356. YY_BREAK
  3357. case 131:
  3358. YY_RULE_SETUP
  3359. #line 1317 "dhcp4_lexer.ll"
  3360. {
  3361. switch(driver.ctx_) {
  3362. case isc::dhcp::Parser4Context::CONFIG:
  3363. return isc::dhcp::Dhcp4Parser::make_CONTROL_AGENT(driver.loc_);
  3364. default:
  3365. return isc::dhcp::Dhcp4Parser::make_STRING("Control-agent", driver.loc_);
  3366. }
  3367. }
  3368. YY_BREAK
  3369. case 132:
  3370. YY_RULE_SETUP
  3371. #line 1326 "dhcp4_lexer.ll"
  3372. {
  3373. switch(driver.ctx_) {
  3374. case isc::dhcp::Parser4Context::SUBNET4:
  3375. return isc::dhcp::Dhcp4Parser::make_SUBNET_4O6_INTERFACE(driver.loc_);
  3376. default:
  3377. return isc::dhcp::Dhcp4Parser::make_STRING("4o6-interface", driver.loc_);
  3378. }
  3379. }
  3380. YY_BREAK
  3381. case 133:
  3382. YY_RULE_SETUP
  3383. #line 1335 "dhcp4_lexer.ll"
  3384. {
  3385. switch(driver.ctx_) {
  3386. case isc::dhcp::Parser4Context::SUBNET4:
  3387. return isc::dhcp::Dhcp4Parser::make_SUBNET_4O6_INTERFACE_ID(driver.loc_);
  3388. default:
  3389. return isc::dhcp::Dhcp4Parser::make_STRING("4o6-interface-id", driver.loc_);
  3390. }
  3391. }
  3392. YY_BREAK
  3393. case 134:
  3394. YY_RULE_SETUP
  3395. #line 1344 "dhcp4_lexer.ll"
  3396. {
  3397. switch(driver.ctx_) {
  3398. case isc::dhcp::Parser4Context::SUBNET4:
  3399. return isc::dhcp::Dhcp4Parser::make_SUBNET_4O6_SUBNET(driver.loc_);
  3400. default:
  3401. return isc::dhcp::Dhcp4Parser::make_STRING("4o6-subnet", driver.loc_);
  3402. }
  3403. }
  3404. YY_BREAK
  3405. case 135:
  3406. YY_RULE_SETUP
  3407. #line 1353 "dhcp4_lexer.ll"
  3408. {
  3409. switch(driver.ctx_) {
  3410. case isc::dhcp::Parser4Context::DHCP4:
  3411. return isc::dhcp::Dhcp4Parser::make_ECHO_CLIENT_ID(driver.loc_);
  3412. default:
  3413. return isc::dhcp::Dhcp4Parser::make_STRING("echo-client-id", driver.loc_);
  3414. }
  3415. }
  3416. YY_BREAK
  3417. case 136:
  3418. YY_RULE_SETUP
  3419. #line 1362 "dhcp4_lexer.ll"
  3420. {
  3421. switch(driver.ctx_) {
  3422. case isc::dhcp::Parser4Context::DHCP4:
  3423. case isc::dhcp::Parser4Context::SUBNET4:
  3424. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  3425. return isc::dhcp::Dhcp4Parser::make_MATCH_CLIENT_ID(driver.loc_);
  3426. default:
  3427. return isc::dhcp::Dhcp4Parser::make_STRING("match-client-id", driver.loc_);
  3428. }
  3429. }
  3430. YY_BREAK
  3431. case 137:
  3432. YY_RULE_SETUP
  3433. #line 1373 "dhcp4_lexer.ll"
  3434. {
  3435. switch(driver.ctx_) {
  3436. case isc::dhcp::Parser4Context::DHCP4:
  3437. case isc::dhcp::Parser4Context::SUBNET4:
  3438. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  3439. case isc::dhcp::Parser4Context::RESERVATIONS:
  3440. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  3441. return isc::dhcp::Dhcp4Parser::make_NEXT_SERVER(driver.loc_);
  3442. default:
  3443. return isc::dhcp::Dhcp4Parser::make_STRING("next-server", driver.loc_);
  3444. }
  3445. }
  3446. YY_BREAK
  3447. case 138:
  3448. YY_RULE_SETUP
  3449. #line 1386 "dhcp4_lexer.ll"
  3450. {
  3451. switch(driver.ctx_) {
  3452. case isc::dhcp::Parser4Context::DHCP4:
  3453. case isc::dhcp::Parser4Context::SUBNET4:
  3454. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  3455. case isc::dhcp::Parser4Context::RESERVATIONS:
  3456. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  3457. return isc::dhcp::Dhcp4Parser::make_SERVER_HOSTNAME(driver.loc_);
  3458. default:
  3459. return isc::dhcp::Dhcp4Parser::make_STRING("server-hostname", driver.loc_);
  3460. }
  3461. }
  3462. YY_BREAK
  3463. case 139:
  3464. YY_RULE_SETUP
  3465. #line 1399 "dhcp4_lexer.ll"
  3466. {
  3467. switch(driver.ctx_) {
  3468. case isc::dhcp::Parser4Context::DHCP4:
  3469. case isc::dhcp::Parser4Context::SUBNET4:
  3470. case isc::dhcp::Parser4Context::SHARED_NETWORK:
  3471. case isc::dhcp::Parser4Context::RESERVATIONS:
  3472. case isc::dhcp::Parser4Context::CLIENT_CLASSES:
  3473. return isc::dhcp::Dhcp4Parser::make_BOOT_FILE_NAME(driver.loc_);
  3474. default:
  3475. return isc::dhcp::Dhcp4Parser::make_STRING("boot-file-name", driver.loc_);
  3476. }
  3477. }
  3478. YY_BREAK
  3479. case 140:
  3480. YY_RULE_SETUP
  3481. #line 1414 "dhcp4_lexer.ll"
  3482. {
  3483. /* A string has been matched. It contains the actual string and single quotes.
  3484. We need to get those quotes out of the way and just use its content, e.g.
  3485. for 'foo' we should get foo */
  3486. std::string raw(yytext+1);
  3487. size_t len = raw.size() - 1;
  3488. raw.resize(len);
  3489. std::string decoded;
  3490. decoded.reserve(len);
  3491. for (size_t pos = 0; pos < len; ++pos) {
  3492. int b = 0;
  3493. char c = raw[pos];
  3494. switch (c) {
  3495. case '"':
  3496. /* impossible condition */
  3497. driver.error(driver.loc_, "Bad quote in \"" + raw + "\"");
  3498. case '\\':
  3499. ++pos;
  3500. if (pos >= len) {
  3501. /* impossible condition */
  3502. driver.error(driver.loc_, "Overflow escape in \"" + raw + "\"");
  3503. }
  3504. c = raw[pos];
  3505. switch (c) {
  3506. case '"':
  3507. case '\\':
  3508. case '/':
  3509. decoded.push_back(c);
  3510. break;
  3511. case 'b':
  3512. decoded.push_back('\b');
  3513. break;
  3514. case 'f':
  3515. decoded.push_back('\f');
  3516. break;
  3517. case 'n':
  3518. decoded.push_back('\n');
  3519. break;
  3520. case 'r':
  3521. decoded.push_back('\r');
  3522. break;
  3523. case 't':
  3524. decoded.push_back('\t');
  3525. break;
  3526. case 'u':
  3527. /* support only \u0000 to \u00ff */
  3528. ++pos;
  3529. if (pos + 4 > len) {
  3530. /* impossible condition */
  3531. driver.error(driver.loc_,
  3532. "Overflow unicode escape in \"" + raw + "\"");
  3533. }
  3534. if ((raw[pos] != '0') || (raw[pos + 1] != '0')) {
  3535. driver.error(driver.loc_, "Unsupported unicode escape in \"" + raw + "\"");
  3536. }
  3537. pos += 2;
  3538. c = raw[pos];
  3539. if ((c >= '0') && (c <= '9')) {
  3540. b = (c - '0') << 4;
  3541. } else if ((c >= 'A') && (c <= 'F')) {
  3542. b = (c - 'A' + 10) << 4;
  3543. } else if ((c >= 'a') && (c <= 'f')) {
  3544. b = (c - 'a' + 10) << 4;
  3545. } else {
  3546. /* impossible condition */
  3547. driver.error(driver.loc_, "Not hexadecimal in unicode escape in \"" + raw + "\"");
  3548. }
  3549. pos++;
  3550. c = raw[pos];
  3551. if ((c >= '0') && (c <= '9')) {
  3552. b |= c - '0';
  3553. } else if ((c >= 'A') && (c <= 'F')) {
  3554. b |= c - 'A' + 10;
  3555. } else if ((c >= 'a') && (c <= 'f')) {
  3556. b |= c - 'a' + 10;
  3557. } else {
  3558. /* impossible condition */
  3559. driver.error(driver.loc_, "Not hexadecimal in unicode escape in \"" + raw + "\"");
  3560. }
  3561. decoded.push_back(static_cast<char>(b & 0xff));
  3562. break;
  3563. default:
  3564. /* impossible condition */
  3565. driver.error(driver.loc_, "Bad escape in \"" + raw + "\"");
  3566. }
  3567. break;
  3568. default:
  3569. if ((c >= 0) && (c < 0x20)) {
  3570. /* impossible condition */
  3571. driver.error(driver.loc_, "Invalid control in \"" + raw + "\"");
  3572. }
  3573. decoded.push_back(c);
  3574. }
  3575. }
  3576. return isc::dhcp::Dhcp4Parser::make_STRING(decoded, driver.loc_);
  3577. }
  3578. YY_BREAK
  3579. case 141:
  3580. /* rule 141 can match eol */
  3581. YY_RULE_SETUP
  3582. #line 1512 "dhcp4_lexer.ll"
  3583. {
  3584. /* Bad string with a forbidden control character inside */
  3585. driver.error(driver.loc_, "Invalid control in " + std::string(yytext));
  3586. }
  3587. YY_BREAK
  3588. case 142:
  3589. /* rule 142 can match eol */
  3590. YY_RULE_SETUP
  3591. #line 1517 "dhcp4_lexer.ll"
  3592. {
  3593. /* Bad string with a bad escape inside */
  3594. driver.error(driver.loc_, "Bad escape in " + std::string(yytext));
  3595. }
  3596. YY_BREAK
  3597. case 143:
  3598. YY_RULE_SETUP
  3599. #line 1522 "dhcp4_lexer.ll"
  3600. {
  3601. /* Bad string with an open escape at the end */
  3602. driver.error(driver.loc_, "Overflow escape in " + std::string(yytext));
  3603. }
  3604. YY_BREAK
  3605. case 144:
  3606. YY_RULE_SETUP
  3607. #line 1527 "dhcp4_lexer.ll"
  3608. { return isc::dhcp::Dhcp4Parser::make_LSQUARE_BRACKET(driver.loc_); }
  3609. YY_BREAK
  3610. case 145:
  3611. YY_RULE_SETUP
  3612. #line 1528 "dhcp4_lexer.ll"
  3613. { return isc::dhcp::Dhcp4Parser::make_RSQUARE_BRACKET(driver.loc_); }
  3614. YY_BREAK
  3615. case 146:
  3616. YY_RULE_SETUP
  3617. #line 1529 "dhcp4_lexer.ll"
  3618. { return isc::dhcp::Dhcp4Parser::make_LCURLY_BRACKET(driver.loc_); }
  3619. YY_BREAK
  3620. case 147:
  3621. YY_RULE_SETUP
  3622. #line 1530 "dhcp4_lexer.ll"
  3623. { return isc::dhcp::Dhcp4Parser::make_RCURLY_BRACKET(driver.loc_); }
  3624. YY_BREAK
  3625. case 148:
  3626. YY_RULE_SETUP
  3627. #line 1531 "dhcp4_lexer.ll"
  3628. { return isc::dhcp::Dhcp4Parser::make_COMMA(driver.loc_); }
  3629. YY_BREAK
  3630. case 149:
  3631. YY_RULE_SETUP
  3632. #line 1532 "dhcp4_lexer.ll"
  3633. { return isc::dhcp::Dhcp4Parser::make_COLON(driver.loc_); }
  3634. YY_BREAK
  3635. case 150:
  3636. YY_RULE_SETUP
  3637. #line 1534 "dhcp4_lexer.ll"
  3638. {
  3639. /* An integer was found. */
  3640. std::string tmp(yytext);
  3641. int64_t integer = 0;
  3642. try {
  3643. /* In substring we want to use negative values (e.g. -1).
  3644. In enterprise-id we need to use values up to 0xffffffff.
  3645. To cover both of those use cases, we need at least
  3646. int64_t. */
  3647. integer = boost::lexical_cast<int64_t>(tmp);
  3648. } catch (const boost::bad_lexical_cast &) {
  3649. driver.error(driver.loc_, "Failed to convert " + tmp + " to an integer.");
  3650. }
  3651. /* The parser needs the string form as double conversion is no lossless */
  3652. return isc::dhcp::Dhcp4Parser::make_INTEGER(integer, driver.loc_);
  3653. }
  3654. YY_BREAK
  3655. case 151:
  3656. YY_RULE_SETUP
  3657. #line 1552 "dhcp4_lexer.ll"
  3658. {
  3659. /* A floating point was found. */
  3660. std::string tmp(yytext);
  3661. double fp = 0.0;
  3662. try {
  3663. fp = boost::lexical_cast<double>(tmp);
  3664. } catch (const boost::bad_lexical_cast &) {
  3665. driver.error(driver.loc_, "Failed to convert " + tmp + " to a floating point.");
  3666. }
  3667. return isc::dhcp::Dhcp4Parser::make_FLOAT(fp, driver.loc_);
  3668. }
  3669. YY_BREAK
  3670. case 152:
  3671. YY_RULE_SETUP
  3672. #line 1565 "dhcp4_lexer.ll"
  3673. {
  3674. string tmp(yytext);
  3675. return isc::dhcp::Dhcp4Parser::make_BOOLEAN(tmp == "true", driver.loc_);
  3676. }
  3677. YY_BREAK
  3678. case 153:
  3679. YY_RULE_SETUP
  3680. #line 1570 "dhcp4_lexer.ll"
  3681. {
  3682. return isc::dhcp::Dhcp4Parser::make_NULL_TYPE(driver.loc_);
  3683. }
  3684. YY_BREAK
  3685. case 154:
  3686. YY_RULE_SETUP
  3687. #line 1574 "dhcp4_lexer.ll"
  3688. driver.error (driver.loc_, "JSON true reserved keyword is lower case only");
  3689. YY_BREAK
  3690. case 155:
  3691. YY_RULE_SETUP
  3692. #line 1576 "dhcp4_lexer.ll"
  3693. driver.error (driver.loc_, "JSON false reserved keyword is lower case only");
  3694. YY_BREAK
  3695. case 156:
  3696. YY_RULE_SETUP
  3697. #line 1578 "dhcp4_lexer.ll"
  3698. driver.error (driver.loc_, "JSON null reserved keyword is lower case only");
  3699. YY_BREAK
  3700. case 157:
  3701. YY_RULE_SETUP
  3702. #line 1580 "dhcp4_lexer.ll"
  3703. driver.error (driver.loc_, "Invalid character: " + std::string(yytext));
  3704. YY_BREAK
  3705. case YY_STATE_EOF(INITIAL):
  3706. #line 1582 "dhcp4_lexer.ll"
  3707. {
  3708. if (driver.states_.empty()) {
  3709. return isc::dhcp::Dhcp4Parser::make_END(driver.loc_);
  3710. }
  3711. driver.loc_ = driver.locs_.back();
  3712. driver.locs_.pop_back();
  3713. driver.file_ = driver.files_.back();
  3714. driver.files_.pop_back();
  3715. if (driver.sfile_) {
  3716. fclose(driver.sfile_);
  3717. driver.sfile_ = 0;
  3718. }
  3719. if (!driver.sfiles_.empty()) {
  3720. driver.sfile_ = driver.sfiles_.back();
  3721. driver.sfiles_.pop_back();
  3722. }
  3723. parser4__delete_buffer(YY_CURRENT_BUFFER);
  3724. parser4__switch_to_buffer(driver.states_.back());
  3725. driver.states_.pop_back();
  3726. BEGIN(DIR_EXIT);
  3727. }
  3728. YY_BREAK
  3729. case 158:
  3730. YY_RULE_SETUP
  3731. #line 1605 "dhcp4_lexer.ll"
  3732. ECHO;
  3733. YY_BREAK
  3734. #line 4033 "dhcp4_lexer.cc"
  3735. case YY_END_OF_BUFFER:
  3736. {
  3737. /* Amount of text matched not including the EOB char. */
  3738. int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  3739. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  3740. *yy_cp = (yy_hold_char);
  3741. YY_RESTORE_YY_MORE_OFFSET
  3742. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  3743. {
  3744. /* We're scanning a new file or input source. It's
  3745. * possible that this happened because the user
  3746. * just pointed yyin at a new source and called
  3747. * yylex(). If so, then we have to assure
  3748. * consistency between YY_CURRENT_BUFFER and our
  3749. * globals. Here is the right place to do so, because
  3750. * this is the first action (other than possibly a
  3751. * back-up) that will match for the new input source.
  3752. */
  3753. (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  3754. /* %if-c-only */
  3755. YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  3756. /* %endif */
  3757. /* %if-c++-only */
  3758. /* %endif */
  3759. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  3760. }
  3761. /* Note that here we test for yy_c_buf_p "<=" to the position
  3762. * of the first EOB in the buffer, since yy_c_buf_p will
  3763. * already have been incremented past the NUL character
  3764. * (since all states make transitions on EOB to the
  3765. * end-of-buffer state). Contrast this with the test
  3766. * in input().
  3767. */
  3768. if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  3769. { /* This was really a NUL. */
  3770. yy_state_type yy_next_state;
  3771. (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  3772. yy_current_state = yy_get_previous_state( );
  3773. /* Okay, we're now positioned to make the NUL
  3774. * transition. We couldn't have
  3775. * yy_get_previous_state() go ahead and do it
  3776. * for us because it doesn't know how to deal
  3777. * with the possibility of jamming (and we don't
  3778. * want to build jamming into it because then it
  3779. * will run more slowly).
  3780. */
  3781. yy_next_state = yy_try_NUL_trans( yy_current_state );
  3782. yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3783. if ( yy_next_state )
  3784. {
  3785. /* Consume the NUL. */
  3786. yy_cp = ++(yy_c_buf_p);
  3787. yy_current_state = yy_next_state;
  3788. goto yy_match;
  3789. }
  3790. else
  3791. {
  3792. /* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
  3793. yy_cp = (yy_last_accepting_cpos);
  3794. yy_current_state = (yy_last_accepting_state);
  3795. goto yy_find_action;
  3796. }
  3797. }
  3798. else switch ( yy_get_next_buffer( ) )
  3799. {
  3800. case EOB_ACT_END_OF_FILE:
  3801. {
  3802. (yy_did_buffer_switch_on_eof) = 0;
  3803. if ( yywrap( ) )
  3804. {
  3805. /* Note: because we've taken care in
  3806. * yy_get_next_buffer() to have set up
  3807. * yytext, we can now set up
  3808. * yy_c_buf_p so that if some total
  3809. * hoser (like flex itself) wants to
  3810. * call the scanner after we return the
  3811. * YY_NULL, it'll still work - another
  3812. * YY_NULL will get returned.
  3813. */
  3814. (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  3815. yy_act = YY_STATE_EOF(YY_START);
  3816. goto do_action;
  3817. }
  3818. else
  3819. {
  3820. if ( ! (yy_did_buffer_switch_on_eof) )
  3821. YY_NEW_FILE;
  3822. }
  3823. break;
  3824. }
  3825. case EOB_ACT_CONTINUE_SCAN:
  3826. (yy_c_buf_p) =
  3827. (yytext_ptr) + yy_amount_of_matched_text;
  3828. yy_current_state = yy_get_previous_state( );
  3829. yy_cp = (yy_c_buf_p);
  3830. yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3831. goto yy_match;
  3832. case EOB_ACT_LAST_MATCH:
  3833. (yy_c_buf_p) =
  3834. &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  3835. yy_current_state = yy_get_previous_state( );
  3836. yy_cp = (yy_c_buf_p);
  3837. yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3838. goto yy_find_action;
  3839. }
  3840. break;
  3841. }
  3842. default:
  3843. YY_FATAL_ERROR(
  3844. "fatal flex scanner internal error--no action found" );
  3845. } /* end of action switch */
  3846. } /* end of scanning one token */
  3847. } /* end of user's declarations */
  3848. } /* end of yylex */
  3849. /* %ok-for-header */
  3850. /* %if-c++-only */
  3851. /* %not-for-header */
  3852. /* %ok-for-header */
  3853. /* %endif */
  3854. /* yy_get_next_buffer - try to read in a new buffer
  3855. *
  3856. * Returns a code representing an action:
  3857. * EOB_ACT_LAST_MATCH -
  3858. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  3859. * EOB_ACT_END_OF_FILE - end of file
  3860. */
  3861. /* %if-c-only */
  3862. static int yy_get_next_buffer (void)
  3863. /* %endif */
  3864. /* %if-c++-only */
  3865. /* %endif */
  3866. {
  3867. char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  3868. char *source = (yytext_ptr);
  3869. int number_to_move, i;
  3870. int ret_val;
  3871. if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  3872. YY_FATAL_ERROR(
  3873. "fatal flex scanner internal error--end of buffer missed" );
  3874. if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  3875. { /* Don't try to fill the buffer, so this is an EOF. */
  3876. if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  3877. {
  3878. /* We matched a single character, the EOB, so
  3879. * treat this as a final EOF.
  3880. */
  3881. return EOB_ACT_END_OF_FILE;
  3882. }
  3883. else
  3884. {
  3885. /* We matched some text prior to the EOB, first
  3886. * process it.
  3887. */
  3888. return EOB_ACT_LAST_MATCH;
  3889. }
  3890. }
  3891. /* Try to read more data. */
  3892. /* First move last chars to start of buffer. */
  3893. number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
  3894. for ( i = 0; i < number_to_move; ++i )
  3895. *(dest++) = *(source++);
  3896. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  3897. /* don't do the read, it's not guaranteed to return an EOF,
  3898. * just force an EOF
  3899. */
  3900. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  3901. else
  3902. {
  3903. int num_to_read =
  3904. YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  3905. while ( num_to_read <= 0 )
  3906. { /* Not enough room in the buffer - grow it. */
  3907. /* just a shorter name for the current buffer */
  3908. YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
  3909. int yy_c_buf_p_offset =
  3910. (int) ((yy_c_buf_p) - b->yy_ch_buf);
  3911. if ( b->yy_is_our_buffer )
  3912. {
  3913. int new_size = b->yy_buf_size * 2;
  3914. if ( new_size <= 0 )
  3915. b->yy_buf_size += b->yy_buf_size / 8;
  3916. else
  3917. b->yy_buf_size *= 2;
  3918. b->yy_ch_buf = (char *)
  3919. /* Include room in for 2 EOB chars. */
  3920. yyrealloc( (void *) b->yy_ch_buf,
  3921. (yy_size_t) (b->yy_buf_size + 2) );
  3922. }
  3923. else
  3924. /* Can't grow it, we don't own it. */
  3925. b->yy_ch_buf = NULL;
  3926. if ( ! b->yy_ch_buf )
  3927. YY_FATAL_ERROR(
  3928. "fatal error - scanner input buffer overflow" );
  3929. (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
  3930. num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  3931. number_to_move - 1;
  3932. }
  3933. if ( num_to_read > YY_READ_BUF_SIZE )
  3934. num_to_read = YY_READ_BUF_SIZE;
  3935. /* Read in more data. */
  3936. YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  3937. (yy_n_chars), num_to_read );
  3938. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3939. }
  3940. if ( (yy_n_chars) == 0 )
  3941. {
  3942. if ( number_to_move == YY_MORE_ADJ )
  3943. {
  3944. ret_val = EOB_ACT_END_OF_FILE;
  3945. yyrestart( yyin );
  3946. }
  3947. else
  3948. {
  3949. ret_val = EOB_ACT_LAST_MATCH;
  3950. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  3951. YY_BUFFER_EOF_PENDING;
  3952. }
  3953. }
  3954. else
  3955. ret_val = EOB_ACT_CONTINUE_SCAN;
  3956. if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  3957. /* Extend the array by 50%, plus the number we really need. */
  3958. int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  3959. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  3960. (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
  3961. if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  3962. YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  3963. /* "- 2" to take care of EOB's */
  3964. YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  3965. }
  3966. (yy_n_chars) += number_to_move;
  3967. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  3968. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  3969. (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  3970. return ret_val;
  3971. }
  3972. /* yy_get_previous_state - get the state just before the EOB char was reached */
  3973. /* %if-c-only */
  3974. /* %not-for-header */
  3975. static yy_state_type yy_get_previous_state (void)
  3976. /* %endif */
  3977. /* %if-c++-only */
  3978. /* %endif */
  3979. {
  3980. yy_state_type yy_current_state;
  3981. char *yy_cp;
  3982. /* %% [15.0] code to get the start state into yy_current_state goes here */
  3983. yy_current_state = (yy_start);
  3984. for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  3985. {
  3986. /* %% [16.0] code to find the next state goes here */
  3987. YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  3988. if ( yy_accept[yy_current_state] )
  3989. {
  3990. (yy_last_accepting_state) = yy_current_state;
  3991. (yy_last_accepting_cpos) = yy_cp;
  3992. }
  3993. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  3994. {
  3995. yy_current_state = (int) yy_def[yy_current_state];
  3996. if ( yy_current_state >= 1286 )
  3997. yy_c = yy_meta[yy_c];
  3998. }
  3999. yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  4000. }
  4001. return yy_current_state;
  4002. }
  4003. /* yy_try_NUL_trans - try to make a transition on the NUL character
  4004. *
  4005. * synopsis
  4006. * next_state = yy_try_NUL_trans( current_state );
  4007. */
  4008. /* %if-c-only */
  4009. static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  4010. /* %endif */
  4011. /* %if-c++-only */
  4012. /* %endif */
  4013. {
  4014. int yy_is_jam;
  4015. /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
  4016. char *yy_cp = (yy_c_buf_p);
  4017. YY_CHAR yy_c = 1;
  4018. if ( yy_accept[yy_current_state] )
  4019. {
  4020. (yy_last_accepting_state) = yy_current_state;
  4021. (yy_last_accepting_cpos) = yy_cp;
  4022. }
  4023. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  4024. {
  4025. yy_current_state = (int) yy_def[yy_current_state];
  4026. if ( yy_current_state >= 1286 )
  4027. yy_c = yy_meta[yy_c];
  4028. }
  4029. yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  4030. yy_is_jam = (yy_current_state == 1285);
  4031. return yy_is_jam ? 0 : yy_current_state;
  4032. }
  4033. #ifndef YY_NO_UNPUT
  4034. /* %if-c-only */
  4035. /* %endif */
  4036. #endif
  4037. /* %if-c-only */
  4038. #ifndef YY_NO_INPUT
  4039. #ifdef __cplusplus
  4040. static int yyinput (void)
  4041. #else
  4042. static int input (void)
  4043. #endif
  4044. /* %endif */
  4045. /* %if-c++-only */
  4046. /* %endif */
  4047. {
  4048. int c;
  4049. *(yy_c_buf_p) = (yy_hold_char);
  4050. if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  4051. {
  4052. /* yy_c_buf_p now points to the character we want to return.
  4053. * If this occurs *before* the EOB characters, then it's a
  4054. * valid NUL; if not, then we've hit the end of the buffer.
  4055. */
  4056. if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  4057. /* This was really a NUL. */
  4058. *(yy_c_buf_p) = '\0';
  4059. else
  4060. { /* need more input */
  4061. int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
  4062. ++(yy_c_buf_p);
  4063. switch ( yy_get_next_buffer( ) )
  4064. {
  4065. case EOB_ACT_LAST_MATCH:
  4066. /* This happens because yy_g_n_b()
  4067. * sees that we've accumulated a
  4068. * token and flags that we need to
  4069. * try matching the token before
  4070. * proceeding. But for input(),
  4071. * there's no matching to consider.
  4072. * So convert the EOB_ACT_LAST_MATCH
  4073. * to EOB_ACT_END_OF_FILE.
  4074. */
  4075. /* Reset buffer status. */
  4076. yyrestart( yyin );
  4077. /*FALLTHROUGH*/
  4078. case EOB_ACT_END_OF_FILE:
  4079. {
  4080. if ( yywrap( ) )
  4081. return 0;
  4082. if ( ! (yy_did_buffer_switch_on_eof) )
  4083. YY_NEW_FILE;
  4084. #ifdef __cplusplus
  4085. return yyinput();
  4086. #else
  4087. return input();
  4088. #endif
  4089. }
  4090. case EOB_ACT_CONTINUE_SCAN:
  4091. (yy_c_buf_p) = (yytext_ptr) + offset;
  4092. break;
  4093. }
  4094. }
  4095. }
  4096. c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  4097. *(yy_c_buf_p) = '\0'; /* preserve yytext */
  4098. (yy_hold_char) = *++(yy_c_buf_p);
  4099. /* %% [19.0] update BOL and yylineno */
  4100. return c;
  4101. }
  4102. /* %if-c-only */
  4103. #endif /* ifndef YY_NO_INPUT */
  4104. /* %endif */
  4105. /** Immediately switch to a different input stream.
  4106. * @param input_file A readable stream.
  4107. *
  4108. * @note This function does not reset the start condition to @c INITIAL .
  4109. */
  4110. /* %if-c-only */
  4111. void yyrestart (FILE * input_file )
  4112. /* %endif */
  4113. /* %if-c++-only */
  4114. /* %endif */
  4115. {
  4116. if ( ! YY_CURRENT_BUFFER ){
  4117. yyensure_buffer_stack ();
  4118. YY_CURRENT_BUFFER_LVALUE =
  4119. yy_create_buffer( yyin, YY_BUF_SIZE );
  4120. }
  4121. yy_init_buffer( YY_CURRENT_BUFFER, input_file );
  4122. yy_load_buffer_state( );
  4123. }
  4124. /* %if-c++-only */
  4125. /* %endif */
  4126. /** Switch to a different input buffer.
  4127. * @param new_buffer The new input buffer.
  4128. *
  4129. */
  4130. /* %if-c-only */
  4131. void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  4132. /* %endif */
  4133. /* %if-c++-only */
  4134. /* %endif */
  4135. {
  4136. /* TODO. We should be able to replace this entire function body
  4137. * with
  4138. * yypop_buffer_state();
  4139. * yypush_buffer_state(new_buffer);
  4140. */
  4141. yyensure_buffer_stack ();
  4142. if ( YY_CURRENT_BUFFER == new_buffer )
  4143. return;
  4144. if ( YY_CURRENT_BUFFER )
  4145. {
  4146. /* Flush out information for old buffer. */
  4147. *(yy_c_buf_p) = (yy_hold_char);
  4148. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  4149. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  4150. }
  4151. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  4152. yy_load_buffer_state( );
  4153. /* We don't actually know whether we did this switch during
  4154. * EOF (yywrap()) processing, but the only time this flag
  4155. * is looked at is after yywrap() is called, so it's safe
  4156. * to go ahead and always set it.
  4157. */
  4158. (yy_did_buffer_switch_on_eof) = 1;
  4159. }
  4160. /* %if-c-only */
  4161. static void yy_load_buffer_state (void)
  4162. /* %endif */
  4163. /* %if-c++-only */
  4164. /* %endif */
  4165. {
  4166. (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  4167. (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  4168. /* %if-c-only */
  4169. yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  4170. /* %endif */
  4171. /* %if-c++-only */
  4172. /* %endif */
  4173. (yy_hold_char) = *(yy_c_buf_p);
  4174. }
  4175. /** Allocate and initialize an input buffer state.
  4176. * @param file A readable stream.
  4177. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  4178. *
  4179. * @return the allocated buffer state.
  4180. */
  4181. /* %if-c-only */
  4182. YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  4183. /* %endif */
  4184. /* %if-c++-only */
  4185. /* %endif */
  4186. {
  4187. YY_BUFFER_STATE b;
  4188. b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  4189. if ( ! b )
  4190. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  4191. b->yy_buf_size = size;
  4192. /* yy_ch_buf has to be 2 characters longer than the size given because
  4193. * we need to put in 2 end-of-buffer characters.
  4194. */
  4195. b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
  4196. if ( ! b->yy_ch_buf )
  4197. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  4198. b->yy_is_our_buffer = 1;
  4199. yy_init_buffer( b, file );
  4200. return b;
  4201. }
  4202. /* %if-c++-only */
  4203. /* %endif */
  4204. /** Destroy the buffer.
  4205. * @param b a buffer created with yy_create_buffer()
  4206. *
  4207. */
  4208. /* %if-c-only */
  4209. void yy_delete_buffer (YY_BUFFER_STATE b )
  4210. /* %endif */
  4211. /* %if-c++-only */
  4212. /* %endif */
  4213. {
  4214. if ( ! b )
  4215. return;
  4216. if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  4217. YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  4218. if ( b->yy_is_our_buffer )
  4219. yyfree( (void *) b->yy_ch_buf );
  4220. yyfree( (void *) b );
  4221. }
  4222. /* Initializes or reinitializes a buffer.
  4223. * This function is sometimes called more than once on the same buffer,
  4224. * such as during a yyrestart() or at EOF.
  4225. */
  4226. /* %if-c-only */
  4227. static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  4228. /* %endif */
  4229. /* %if-c++-only */
  4230. /* %endif */
  4231. {
  4232. int oerrno = errno;
  4233. yy_flush_buffer( b );
  4234. /* %if-c-only */
  4235. b->yy_input_file = file;
  4236. /* %endif */
  4237. /* %if-c++-only */
  4238. /* %endif */
  4239. b->yy_fill_buffer = 1;
  4240. /* If b is the current buffer, then yy_init_buffer was _probably_
  4241. * called from yyrestart() or through yy_get_next_buffer.
  4242. * In that case, we don't want to reset the lineno or column.
  4243. */
  4244. if (b != YY_CURRENT_BUFFER){
  4245. b->yy_bs_lineno = 1;
  4246. b->yy_bs_column = 0;
  4247. }
  4248. /* %if-c-only */
  4249. b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  4250. /* %endif */
  4251. /* %if-c++-only */
  4252. /* %endif */
  4253. errno = oerrno;
  4254. }
  4255. /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  4256. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  4257. *
  4258. */
  4259. /* %if-c-only */
  4260. void yy_flush_buffer (YY_BUFFER_STATE b )
  4261. /* %endif */
  4262. /* %if-c++-only */
  4263. /* %endif */
  4264. {
  4265. if ( ! b )
  4266. return;
  4267. b->yy_n_chars = 0;
  4268. /* We always need two end-of-buffer characters. The first causes
  4269. * a transition to the end-of-buffer state. The second causes
  4270. * a jam in that state.
  4271. */
  4272. b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  4273. b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  4274. b->yy_buf_pos = &b->yy_ch_buf[0];
  4275. b->yy_at_bol = 1;
  4276. b->yy_buffer_status = YY_BUFFER_NEW;
  4277. if ( b == YY_CURRENT_BUFFER )
  4278. yy_load_buffer_state( );
  4279. }
  4280. /* %if-c-or-c++ */
  4281. /** Pushes the new state onto the stack. The new state becomes
  4282. * the current state. This function will allocate the stack
  4283. * if necessary.
  4284. * @param new_buffer The new state.
  4285. *
  4286. */
  4287. /* %if-c-only */
  4288. void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  4289. /* %endif */
  4290. /* %if-c++-only */
  4291. /* %endif */
  4292. {
  4293. if (new_buffer == NULL)
  4294. return;
  4295. yyensure_buffer_stack();
  4296. /* This block is copied from yy_switch_to_buffer. */
  4297. if ( YY_CURRENT_BUFFER )
  4298. {
  4299. /* Flush out information for old buffer. */
  4300. *(yy_c_buf_p) = (yy_hold_char);
  4301. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  4302. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  4303. }
  4304. /* Only push if top exists. Otherwise, replace top. */
  4305. if (YY_CURRENT_BUFFER)
  4306. (yy_buffer_stack_top)++;
  4307. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  4308. /* copied from yy_switch_to_buffer. */
  4309. yy_load_buffer_state( );
  4310. (yy_did_buffer_switch_on_eof) = 1;
  4311. }
  4312. /* %endif */
  4313. /* %if-c-or-c++ */
  4314. /** Removes and deletes the top of the stack, if present.
  4315. * The next element becomes the new top.
  4316. *
  4317. */
  4318. /* %if-c-only */
  4319. void yypop_buffer_state (void)
  4320. /* %endif */
  4321. /* %if-c++-only */
  4322. /* %endif */
  4323. {
  4324. if (!YY_CURRENT_BUFFER)
  4325. return;
  4326. yy_delete_buffer(YY_CURRENT_BUFFER );
  4327. YY_CURRENT_BUFFER_LVALUE = NULL;
  4328. if ((yy_buffer_stack_top) > 0)
  4329. --(yy_buffer_stack_top);
  4330. if (YY_CURRENT_BUFFER) {
  4331. yy_load_buffer_state( );
  4332. (yy_did_buffer_switch_on_eof) = 1;
  4333. }
  4334. }
  4335. /* %endif */
  4336. /* %if-c-or-c++ */
  4337. /* Allocates the stack if it does not exist.
  4338. * Guarantees space for at least one push.
  4339. */
  4340. /* %if-c-only */
  4341. static void yyensure_buffer_stack (void)
  4342. /* %endif */
  4343. /* %if-c++-only */
  4344. /* %endif */
  4345. {
  4346. yy_size_t num_to_alloc;
  4347. if (!(yy_buffer_stack)) {
  4348. /* First allocation is just for 2 elements, since we don't know if this
  4349. * scanner will even need a stack. We use 2 instead of 1 to avoid an
  4350. * immediate realloc on the next call.
  4351. */
  4352. num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
  4353. (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  4354. (num_to_alloc * sizeof(struct yy_buffer_state*)
  4355. );
  4356. if ( ! (yy_buffer_stack) )
  4357. YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  4358. memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  4359. (yy_buffer_stack_max) = num_to_alloc;
  4360. (yy_buffer_stack_top) = 0;
  4361. return;
  4362. }
  4363. if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  4364. /* Increase the buffer to prepare for a possible push. */
  4365. yy_size_t grow_size = 8 /* arbitrary grow size */;
  4366. num_to_alloc = (yy_buffer_stack_max) + grow_size;
  4367. (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  4368. ((yy_buffer_stack),
  4369. num_to_alloc * sizeof(struct yy_buffer_state*)
  4370. );
  4371. if ( ! (yy_buffer_stack) )
  4372. YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  4373. /* zero only the new slots.*/
  4374. memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  4375. (yy_buffer_stack_max) = num_to_alloc;
  4376. }
  4377. }
  4378. /* %endif */
  4379. /* %if-c-only */
  4380. /** Setup the input buffer state to scan directly from a user-specified character buffer.
  4381. * @param base the character buffer
  4382. * @param size the size in bytes of the character buffer
  4383. *
  4384. * @return the newly allocated buffer state object.
  4385. */
  4386. YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  4387. {
  4388. YY_BUFFER_STATE b;
  4389. if ( size < 2 ||
  4390. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  4391. base[size-1] != YY_END_OF_BUFFER_CHAR )
  4392. /* They forgot to leave room for the EOB's. */
  4393. return NULL;
  4394. b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  4395. if ( ! b )
  4396. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  4397. b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
  4398. b->yy_buf_pos = b->yy_ch_buf = base;
  4399. b->yy_is_our_buffer = 0;
  4400. b->yy_input_file = NULL;
  4401. b->yy_n_chars = b->yy_buf_size;
  4402. b->yy_is_interactive = 0;
  4403. b->yy_at_bol = 1;
  4404. b->yy_fill_buffer = 0;
  4405. b->yy_buffer_status = YY_BUFFER_NEW;
  4406. yy_switch_to_buffer( b );
  4407. return b;
  4408. }
  4409. /* %endif */
  4410. /* %if-c-only */
  4411. /** Setup the input buffer state to scan a string. The next call to yylex() will
  4412. * scan from a @e copy of @a str.
  4413. * @param yystr a NUL-terminated string to scan
  4414. *
  4415. * @return the newly allocated buffer state object.
  4416. * @note If you want to scan bytes that may contain NUL values, then use
  4417. * yy_scan_bytes() instead.
  4418. */
  4419. YY_BUFFER_STATE yy_scan_string (const char * yystr )
  4420. {
  4421. return yy_scan_bytes( yystr, (int) strlen(yystr) );
  4422. }
  4423. /* %endif */
  4424. /* %if-c-only */
  4425. /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  4426. * scan from a @e copy of @a bytes.
  4427. * @param yybytes the byte buffer to scan
  4428. * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  4429. *
  4430. * @return the newly allocated buffer state object.
  4431. */
  4432. YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
  4433. {
  4434. YY_BUFFER_STATE b;
  4435. char *buf;
  4436. yy_size_t n;
  4437. int i;
  4438. /* Get memory for full buffer, including space for trailing EOB's. */
  4439. n = (yy_size_t) (_yybytes_len + 2);
  4440. buf = (char *) yyalloc( n );
  4441. if ( ! buf )
  4442. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  4443. for ( i = 0; i < _yybytes_len; ++i )
  4444. buf[i] = yybytes[i];
  4445. buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  4446. b = yy_scan_buffer( buf, n );
  4447. if ( ! b )
  4448. YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  4449. /* It's okay to grow etc. this buffer, and we should throw it
  4450. * away when we're done.
  4451. */
  4452. b->yy_is_our_buffer = 1;
  4453. return b;
  4454. }
  4455. /* %endif */
  4456. #ifndef YY_EXIT_FAILURE
  4457. #define YY_EXIT_FAILURE 2
  4458. #endif
  4459. /* %if-c-only */
  4460. static void yynoreturn yy_fatal_error (const char* msg )
  4461. {
  4462. fprintf( stderr, "%s\n", msg );
  4463. exit( YY_EXIT_FAILURE );
  4464. }
  4465. /* %endif */
  4466. /* %if-c++-only */
  4467. /* %endif */
  4468. /* Redefine yyless() so it works in section 3 code. */
  4469. #undef yyless
  4470. #define yyless(n) \
  4471. do \
  4472. { \
  4473. /* Undo effects of setting up yytext. */ \
  4474. int yyless_macro_arg = (n); \
  4475. YY_LESS_LINENO(yyless_macro_arg);\
  4476. yytext[yyleng] = (yy_hold_char); \
  4477. (yy_c_buf_p) = yytext + yyless_macro_arg; \
  4478. (yy_hold_char) = *(yy_c_buf_p); \
  4479. *(yy_c_buf_p) = '\0'; \
  4480. yyleng = yyless_macro_arg; \
  4481. } \
  4482. while ( 0 )
  4483. /* Accessor methods (get/set functions) to struct members. */
  4484. /* %if-c-only */
  4485. /* %if-reentrant */
  4486. /* %endif */
  4487. /** Get the current line number.
  4488. *
  4489. */
  4490. int yyget_lineno (void)
  4491. {
  4492. return yylineno;
  4493. }
  4494. /** Get the input stream.
  4495. *
  4496. */
  4497. FILE *yyget_in (void)
  4498. {
  4499. return yyin;
  4500. }
  4501. /** Get the output stream.
  4502. *
  4503. */
  4504. FILE *yyget_out (void)
  4505. {
  4506. return yyout;
  4507. }
  4508. /** Get the length of the current token.
  4509. *
  4510. */
  4511. int yyget_leng (void)
  4512. {
  4513. return yyleng;
  4514. }
  4515. /** Get the current token.
  4516. *
  4517. */
  4518. char *yyget_text (void)
  4519. {
  4520. return yytext;
  4521. }
  4522. /* %if-reentrant */
  4523. /* %endif */
  4524. /** Set the current line number.
  4525. * @param _line_number line number
  4526. *
  4527. */
  4528. void yyset_lineno (int _line_number )
  4529. {
  4530. yylineno = _line_number;
  4531. }
  4532. /** Set the input stream. This does not discard the current
  4533. * input buffer.
  4534. * @param _in_str A readable stream.
  4535. *
  4536. * @see yy_switch_to_buffer
  4537. */
  4538. void yyset_in (FILE * _in_str )
  4539. {
  4540. yyin = _in_str ;
  4541. }
  4542. void yyset_out (FILE * _out_str )
  4543. {
  4544. yyout = _out_str ;
  4545. }
  4546. int yyget_debug (void)
  4547. {
  4548. return yy_flex_debug;
  4549. }
  4550. void yyset_debug (int _bdebug )
  4551. {
  4552. yy_flex_debug = _bdebug ;
  4553. }
  4554. /* %endif */
  4555. /* %if-reentrant */
  4556. /* %if-bison-bridge */
  4557. /* %endif */
  4558. /* %endif if-c-only */
  4559. /* %if-c-only */
  4560. static int yy_init_globals (void)
  4561. {
  4562. /* Initialization is the same as for the non-reentrant scanner.
  4563. * This function is called from yylex_destroy(), so don't allocate here.
  4564. */
  4565. (yy_buffer_stack) = NULL;
  4566. (yy_buffer_stack_top) = 0;
  4567. (yy_buffer_stack_max) = 0;
  4568. (yy_c_buf_p) = NULL;
  4569. (yy_init) = 0;
  4570. (yy_start) = 0;
  4571. /* Defined in main.c */
  4572. #ifdef YY_STDINIT
  4573. yyin = stdin;
  4574. yyout = stdout;
  4575. #else
  4576. yyin = NULL;
  4577. yyout = NULL;
  4578. #endif
  4579. /* For future reference: Set errno on error, since we are called by
  4580. * yylex_init()
  4581. */
  4582. return 0;
  4583. }
  4584. /* %endif */
  4585. /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
  4586. /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  4587. int yylex_destroy (void)
  4588. {
  4589. /* Pop the buffer stack, destroying each element. */
  4590. while(YY_CURRENT_BUFFER){
  4591. yy_delete_buffer( YY_CURRENT_BUFFER );
  4592. YY_CURRENT_BUFFER_LVALUE = NULL;
  4593. yypop_buffer_state();
  4594. }
  4595. /* Destroy the stack itself. */
  4596. yyfree((yy_buffer_stack) );
  4597. (yy_buffer_stack) = NULL;
  4598. /* Reset the globals. This is important in a non-reentrant scanner so the next time
  4599. * yylex() is called, initialization will occur. */
  4600. yy_init_globals( );
  4601. /* %if-reentrant */
  4602. /* %endif */
  4603. return 0;
  4604. }
  4605. /* %endif */
  4606. /*
  4607. * Internal utility routines.
  4608. */
  4609. #ifndef yytext_ptr
  4610. static void yy_flex_strncpy (char* s1, const char * s2, int n )
  4611. {
  4612. int i;
  4613. for ( i = 0; i < n; ++i )
  4614. s1[i] = s2[i];
  4615. }
  4616. #endif
  4617. #ifdef YY_NEED_STRLEN
  4618. static int yy_flex_strlen (const char * s )
  4619. {
  4620. int n;
  4621. for ( n = 0; s[n]; ++n )
  4622. ;
  4623. return n;
  4624. }
  4625. #endif
  4626. void *yyalloc (yy_size_t size )
  4627. {
  4628. return malloc(size);
  4629. }
  4630. void *yyrealloc (void * ptr, yy_size_t size )
  4631. {
  4632. /* The cast to (char *) in the following accommodates both
  4633. * implementations that use char* generic pointers, and those
  4634. * that use void* generic pointers. It works with the latter
  4635. * because both ANSI C and C++ allow castless assignment from
  4636. * any pointer type to void*, and deal with argument conversions
  4637. * as though doing an assignment.
  4638. */
  4639. return realloc(ptr, size);
  4640. }
  4641. void yyfree (void * ptr )
  4642. {
  4643. free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  4644. }
  4645. /* %if-tables-serialization definitions */
  4646. /* %define-yytables The name for this specific scanner's tables. */
  4647. #define YYTABLES_NAME "yytables"
  4648. /* %endif */
  4649. /* %ok-for-header */
  4650. #line 1605 "dhcp4_lexer.ll"
  4651. using namespace isc::dhcp;
  4652. void
  4653. Parser4Context::scanStringBegin(const std::string& str, ParserType parser_type)
  4654. {
  4655. start_token_flag = true;
  4656. start_token_value = parser_type;
  4657. file_ = "<string>";
  4658. sfile_ = 0;
  4659. loc_.initialize(&file_);
  4660. yy_flex_debug = trace_scanning_;
  4661. YY_BUFFER_STATE buffer;
  4662. buffer = parser4__scan_bytes(str.c_str(), str.size());
  4663. if (!buffer) {
  4664. fatal("cannot scan string");
  4665. /* fatal() throws an exception so this can't be reached */
  4666. }
  4667. }
  4668. void
  4669. Parser4Context::scanFileBegin(FILE * f,
  4670. const std::string& filename,
  4671. ParserType parser_type)
  4672. {
  4673. start_token_flag = true;
  4674. start_token_value = parser_type;
  4675. file_ = filename;
  4676. sfile_ = f;
  4677. loc_.initialize(&file_);
  4678. yy_flex_debug = trace_scanning_;
  4679. YY_BUFFER_STATE buffer;
  4680. /* See dhcp4_lexer.cc header for available definitions */
  4681. buffer = parser4__create_buffer(f, 65536 /*buffer size*/);
  4682. if (!buffer) {
  4683. fatal("cannot scan file " + filename);
  4684. }
  4685. parser4__switch_to_buffer(buffer);
  4686. }
  4687. void
  4688. Parser4Context::scanEnd() {
  4689. if (sfile_)
  4690. fclose(sfile_);
  4691. sfile_ = 0;
  4692. static_cast<void>(parser4_lex_destroy());
  4693. /* Close files */
  4694. while (!sfiles_.empty()) {
  4695. FILE* f = sfiles_.back();
  4696. if (f) {
  4697. fclose(f);
  4698. }
  4699. sfiles_.pop_back();
  4700. }
  4701. /* Delete states */
  4702. while (!states_.empty()) {
  4703. parser4__delete_buffer(states_.back());
  4704. states_.pop_back();
  4705. }
  4706. }
  4707. void
  4708. Parser4Context::includeFile(const std::string& filename) {
  4709. if (states_.size() > 10) {
  4710. fatal("Too many nested include.");
  4711. }
  4712. FILE* f = fopen(filename.c_str(), "r");
  4713. if (!f) {
  4714. fatal("Can't open include file " + filename);
  4715. }
  4716. if (sfile_) {
  4717. sfiles_.push_back(sfile_);
  4718. }
  4719. sfile_ = f;
  4720. states_.push_back(YY_CURRENT_BUFFER);
  4721. YY_BUFFER_STATE buffer;
  4722. buffer = parser4__create_buffer(f, 65536 /*buffer size*/);
  4723. if (!buffer) {
  4724. fatal( "Can't scan include file " + filename);
  4725. }
  4726. parser4__switch_to_buffer(buffer);
  4727. files_.push_back(file_);
  4728. file_ = filename;
  4729. locs_.push_back(loc_);
  4730. loc_.initialize(&file_);
  4731. BEGIN(INITIAL);
  4732. }
  4733. namespace {
  4734. /** To avoid unused function error */
  4735. class Dummy {
  4736. /* cppcheck-suppress unusedPrivateFunction */
  4737. void dummy() { yy_fatal_error("Fix me: how to disable its definition?"); }
  4738. };
  4739. }
  4740. #endif /* !__clang_analyzer__ */