dhcp6_lexer.cc 150 KB

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