dhcp4_lexer.cc 157 KB

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