dhcp6_parser.h 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751
  1. // A Bison parser, made by GNU Bison 3.0.4.
  2. // Skeleton interface for Bison LALR(1) parsers in C++
  3. // Copyright (C) 2002-2015 Free Software Foundation, Inc.
  4. // This program is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. // This program is distributed in the hope that it will be useful,
  9. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. // You should have received a copy of the GNU General Public License
  13. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. // As a special exception, you may create a larger work that contains
  15. // part or all of the Bison parser skeleton and distribute that work
  16. // under terms of your choice, so long as that work isn't itself a
  17. // parser generator using the skeleton or a modified version thereof
  18. // as a parser skeleton. Alternatively, if you modify or redistribute
  19. // the parser skeleton itself, you may (at your option) remove this
  20. // special exception, which will cause the skeleton and the resulting
  21. // Bison output files to be licensed under the GNU General Public
  22. // License without this special exception.
  23. // This special exception was added by the Free Software Foundation in
  24. // version 2.2 of Bison.
  25. /**
  26. ** \file dhcp6_parser.h
  27. ** Define the isc::dhcp::parser class.
  28. */
  29. // C++ LALR(1) parser skeleton written by Akim Demaille.
  30. #ifndef YY_PARSER6_DHCP6_PARSER_H_INCLUDED
  31. # define YY_PARSER6_DHCP6_PARSER_H_INCLUDED
  32. // // "%code requires" blocks.
  33. #line 17 "dhcp6_parser.yy" // lalr1.cc:377
  34. #include <string>
  35. #include <cc/data.h>
  36. #include <dhcp/option.h>
  37. #include <boost/lexical_cast.hpp>
  38. #include <dhcp6/parser_context_decl.h>
  39. using namespace isc::dhcp;
  40. using namespace isc::data;
  41. using namespace std;
  42. #line 56 "dhcp6_parser.h" // lalr1.cc:377
  43. # include <cassert>
  44. # include <cstdlib> // std::abort
  45. # include <iostream>
  46. # include <stdexcept>
  47. # include <string>
  48. # include <vector>
  49. # include "stack.hh"
  50. # include "location.hh"
  51. #include <typeinfo>
  52. #ifndef YYASSERT
  53. # include <cassert>
  54. # define YYASSERT assert
  55. #endif
  56. #ifndef YY_ATTRIBUTE
  57. # if (defined __GNUC__ \
  58. && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
  59. || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
  60. # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
  61. # else
  62. # define YY_ATTRIBUTE(Spec) /* empty */
  63. # endif
  64. #endif
  65. #ifndef YY_ATTRIBUTE_PURE
  66. # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
  67. #endif
  68. #ifndef YY_ATTRIBUTE_UNUSED
  69. # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
  70. #endif
  71. #if !defined _Noreturn \
  72. && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
  73. # if defined _MSC_VER && 1200 <= _MSC_VER
  74. # define _Noreturn __declspec (noreturn)
  75. # else
  76. # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
  77. # endif
  78. #endif
  79. /* Suppress unused-variable warnings by "using" E. */
  80. #if ! defined lint || defined __GNUC__
  81. # define YYUSE(E) ((void) (E))
  82. #else
  83. # define YYUSE(E) /* empty */
  84. #endif
  85. #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
  86. /* Suppress an incorrect diagnostic about yylval being uninitialized. */
  87. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
  88. _Pragma ("GCC diagnostic push") \
  89. _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
  90. _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
  91. # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
  92. _Pragma ("GCC diagnostic pop")
  93. #else
  94. # define YY_INITIAL_VALUE(Value) Value
  95. #endif
  96. #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  97. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  98. # define YY_IGNORE_MAYBE_UNINITIALIZED_END
  99. #endif
  100. #ifndef YY_INITIAL_VALUE
  101. # define YY_INITIAL_VALUE(Value) /* Nothing. */
  102. #endif
  103. /* Debug traces. */
  104. #ifndef PARSER6_DEBUG
  105. # if defined YYDEBUG
  106. #if YYDEBUG
  107. # define PARSER6_DEBUG 1
  108. # else
  109. # define PARSER6_DEBUG 0
  110. # endif
  111. # else /* ! defined YYDEBUG */
  112. # define PARSER6_DEBUG 1
  113. # endif /* ! defined YYDEBUG */
  114. #endif /* ! defined PARSER6_DEBUG */
  115. #line 14 "dhcp6_parser.yy" // lalr1.cc:377
  116. namespace isc { namespace dhcp {
  117. #line 141 "dhcp6_parser.h" // lalr1.cc:377
  118. /// A char[S] buffer to store and retrieve objects.
  119. ///
  120. /// Sort of a variant, but does not keep track of the nature
  121. /// of the stored data, since that knowledge is available
  122. /// via the current state.
  123. template <size_t S>
  124. struct variant
  125. {
  126. /// Type of *this.
  127. typedef variant<S> self_type;
  128. /// Empty construction.
  129. variant ()
  130. : yytypeid_ (YY_NULLPTR)
  131. {}
  132. /// Construct and fill.
  133. template <typename T>
  134. variant (const T& t)
  135. : yytypeid_ (&typeid (T))
  136. {
  137. YYASSERT (sizeof (T) <= S);
  138. new (yyas_<T> ()) T (t);
  139. }
  140. /// Destruction, allowed only if empty.
  141. ~variant ()
  142. {
  143. YYASSERT (!yytypeid_);
  144. }
  145. /// Instantiate an empty \a T in here.
  146. template <typename T>
  147. T&
  148. build ()
  149. {
  150. YYASSERT (!yytypeid_);
  151. YYASSERT (sizeof (T) <= S);
  152. yytypeid_ = & typeid (T);
  153. return *new (yyas_<T> ()) T;
  154. }
  155. /// Instantiate a \a T in here from \a t.
  156. template <typename T>
  157. T&
  158. build (const T& t)
  159. {
  160. YYASSERT (!yytypeid_);
  161. YYASSERT (sizeof (T) <= S);
  162. yytypeid_ = & typeid (T);
  163. return *new (yyas_<T> ()) T (t);
  164. }
  165. /// Accessor to a built \a T.
  166. template <typename T>
  167. T&
  168. as ()
  169. {
  170. YYASSERT (*yytypeid_ == typeid (T));
  171. YYASSERT (sizeof (T) <= S);
  172. return *yyas_<T> ();
  173. }
  174. /// Const accessor to a built \a T (for %printer).
  175. template <typename T>
  176. const T&
  177. as () const
  178. {
  179. YYASSERT (*yytypeid_ == typeid (T));
  180. YYASSERT (sizeof (T) <= S);
  181. return *yyas_<T> ();
  182. }
  183. /// Swap the content with \a other, of same type.
  184. ///
  185. /// Both variants must be built beforehand, because swapping the actual
  186. /// data requires reading it (with as()), and this is not possible on
  187. /// unconstructed variants: it would require some dynamic testing, which
  188. /// should not be the variant's responsability.
  189. /// Swapping between built and (possibly) non-built is done with
  190. /// variant::move ().
  191. template <typename T>
  192. void
  193. swap (self_type& other)
  194. {
  195. YYASSERT (yytypeid_);
  196. YYASSERT (*yytypeid_ == *other.yytypeid_);
  197. std::swap (as<T> (), other.as<T> ());
  198. }
  199. /// Move the content of \a other to this.
  200. ///
  201. /// Destroys \a other.
  202. template <typename T>
  203. void
  204. move (self_type& other)
  205. {
  206. build<T> ();
  207. swap<T> (other);
  208. other.destroy<T> ();
  209. }
  210. /// Copy the content of \a other to this.
  211. template <typename T>
  212. void
  213. copy (const self_type& other)
  214. {
  215. build<T> (other.as<T> ());
  216. }
  217. /// Destroy the stored \a T.
  218. template <typename T>
  219. void
  220. destroy ()
  221. {
  222. as<T> ().~T ();
  223. yytypeid_ = YY_NULLPTR;
  224. }
  225. private:
  226. /// Prohibit blind copies.
  227. self_type& operator=(const self_type&);
  228. variant (const self_type&);
  229. /// Accessor to raw memory as \a T.
  230. template <typename T>
  231. T*
  232. yyas_ ()
  233. {
  234. void *yyp = yybuffer_.yyraw;
  235. return static_cast<T*> (yyp);
  236. }
  237. /// Const accessor to raw memory as \a T.
  238. template <typename T>
  239. const T*
  240. yyas_ () const
  241. {
  242. const void *yyp = yybuffer_.yyraw;
  243. return static_cast<const T*> (yyp);
  244. }
  245. union
  246. {
  247. /// Strongest alignment constraints.
  248. long double yyalign_me;
  249. /// A buffer large enough to store any of the semantic values.
  250. char yyraw[S];
  251. } yybuffer_;
  252. /// Whether the content is built: if defined, the name of the stored type.
  253. const std::type_info *yytypeid_;
  254. };
  255. /// A Bison parser.
  256. class Dhcp6Parser
  257. {
  258. public:
  259. #ifndef PARSER6_STYPE
  260. /// An auxiliary type to compute the largest semantic type.
  261. union union_type
  262. {
  263. // value
  264. // map_value
  265. // db_type
  266. // hr_mode
  267. // duid_type
  268. // ncr_protocol_value
  269. // replace_client_name_value
  270. char dummy1[sizeof(ElementPtr)];
  271. // "boolean"
  272. char dummy2[sizeof(bool)];
  273. // "floating point"
  274. char dummy3[sizeof(double)];
  275. // "integer"
  276. char dummy4[sizeof(int64_t)];
  277. // "constant string"
  278. char dummy5[sizeof(std::string)];
  279. };
  280. /// Symbol semantic values.
  281. typedef variant<sizeof(union_type)> semantic_type;
  282. #else
  283. typedef PARSER6_STYPE semantic_type;
  284. #endif
  285. /// Symbol locations.
  286. typedef location location_type;
  287. /// Syntax errors thrown from user actions.
  288. struct syntax_error : std::runtime_error
  289. {
  290. syntax_error (const location_type& l, const std::string& m);
  291. location_type location;
  292. };
  293. /// Tokens.
  294. struct token
  295. {
  296. enum yytokentype
  297. {
  298. TOKEN_END = 0,
  299. TOKEN_COMMA = 258,
  300. TOKEN_COLON = 259,
  301. TOKEN_LSQUARE_BRACKET = 260,
  302. TOKEN_RSQUARE_BRACKET = 261,
  303. TOKEN_LCURLY_BRACKET = 262,
  304. TOKEN_RCURLY_BRACKET = 263,
  305. TOKEN_NULL_TYPE = 264,
  306. TOKEN_DHCP6 = 265,
  307. TOKEN_INTERFACES_CONFIG = 266,
  308. TOKEN_INTERFACES = 267,
  309. TOKEN_RE_DETECT = 268,
  310. TOKEN_LEASE_DATABASE = 269,
  311. TOKEN_HOSTS_DATABASE = 270,
  312. TOKEN_TYPE = 271,
  313. TOKEN_MEMFILE = 272,
  314. TOKEN_MYSQL = 273,
  315. TOKEN_POSTGRESQL = 274,
  316. TOKEN_CQL = 275,
  317. TOKEN_USER = 276,
  318. TOKEN_PASSWORD = 277,
  319. TOKEN_HOST = 278,
  320. TOKEN_PORT = 279,
  321. TOKEN_PERSIST = 280,
  322. TOKEN_LFC_INTERVAL = 281,
  323. TOKEN_READONLY = 282,
  324. TOKEN_CONNECT_TIMEOUT = 283,
  325. TOKEN_CONTACT_POINTS = 284,
  326. TOKEN_KEYSPACE = 285,
  327. TOKEN_PREFERRED_LIFETIME = 286,
  328. TOKEN_VALID_LIFETIME = 287,
  329. TOKEN_RENEW_TIMER = 288,
  330. TOKEN_REBIND_TIMER = 289,
  331. TOKEN_DECLINE_PROBATION_PERIOD = 290,
  332. TOKEN_SUBNET6 = 291,
  333. TOKEN_OPTION_DEF = 292,
  334. TOKEN_OPTION_DATA = 293,
  335. TOKEN_NAME = 294,
  336. TOKEN_DATA = 295,
  337. TOKEN_CODE = 296,
  338. TOKEN_SPACE = 297,
  339. TOKEN_CSV_FORMAT = 298,
  340. TOKEN_ALWAYS_SEND = 299,
  341. TOKEN_RECORD_TYPES = 300,
  342. TOKEN_ENCAPSULATE = 301,
  343. TOKEN_ARRAY = 302,
  344. TOKEN_POOLS = 303,
  345. TOKEN_POOL = 304,
  346. TOKEN_PD_POOLS = 305,
  347. TOKEN_PREFIX = 306,
  348. TOKEN_PREFIX_LEN = 307,
  349. TOKEN_EXCLUDED_PREFIX = 308,
  350. TOKEN_EXCLUDED_PREFIX_LEN = 309,
  351. TOKEN_DELEGATED_LEN = 310,
  352. TOKEN_USER_CONTEXT = 311,
  353. TOKEN_SUBNET = 312,
  354. TOKEN_INTERFACE = 313,
  355. TOKEN_INTERFACE_ID = 314,
  356. TOKEN_ID = 315,
  357. TOKEN_RAPID_COMMIT = 316,
  358. TOKEN_RESERVATION_MODE = 317,
  359. TOKEN_DISABLED = 318,
  360. TOKEN_OUT_OF_POOL = 319,
  361. TOKEN_ALL = 320,
  362. TOKEN_SHARED_NETWORKS = 321,
  363. TOKEN_MAC_SOURCES = 322,
  364. TOKEN_RELAY_SUPPLIED_OPTIONS = 323,
  365. TOKEN_HOST_RESERVATION_IDENTIFIERS = 324,
  366. TOKEN_CLIENT_CLASSES = 325,
  367. TOKEN_TEST = 326,
  368. TOKEN_CLIENT_CLASS = 327,
  369. TOKEN_RESERVATIONS = 328,
  370. TOKEN_IP_ADDRESSES = 329,
  371. TOKEN_PREFIXES = 330,
  372. TOKEN_DUID = 331,
  373. TOKEN_HW_ADDRESS = 332,
  374. TOKEN_HOSTNAME = 333,
  375. TOKEN_FLEX_ID = 334,
  376. TOKEN_RELAY = 335,
  377. TOKEN_IP_ADDRESS = 336,
  378. TOKEN_HOOKS_LIBRARIES = 337,
  379. TOKEN_LIBRARY = 338,
  380. TOKEN_PARAMETERS = 339,
  381. TOKEN_EXPIRED_LEASES_PROCESSING = 340,
  382. TOKEN_RECLAIM_TIMER_WAIT_TIME = 341,
  383. TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 342,
  384. TOKEN_HOLD_RECLAIMED_TIME = 343,
  385. TOKEN_MAX_RECLAIM_LEASES = 344,
  386. TOKEN_MAX_RECLAIM_TIME = 345,
  387. TOKEN_UNWARNED_RECLAIM_CYCLES = 346,
  388. TOKEN_SERVER_ID = 347,
  389. TOKEN_LLT = 348,
  390. TOKEN_EN = 349,
  391. TOKEN_LL = 350,
  392. TOKEN_IDENTIFIER = 351,
  393. TOKEN_HTYPE = 352,
  394. TOKEN_TIME = 353,
  395. TOKEN_ENTERPRISE_ID = 354,
  396. TOKEN_DHCP4O6_PORT = 355,
  397. TOKEN_CONTROL_SOCKET = 356,
  398. TOKEN_SOCKET_TYPE = 357,
  399. TOKEN_SOCKET_NAME = 358,
  400. TOKEN_DHCP_DDNS = 359,
  401. TOKEN_ENABLE_UPDATES = 360,
  402. TOKEN_QUALIFYING_SUFFIX = 361,
  403. TOKEN_SERVER_IP = 362,
  404. TOKEN_SERVER_PORT = 363,
  405. TOKEN_SENDER_IP = 364,
  406. TOKEN_SENDER_PORT = 365,
  407. TOKEN_MAX_QUEUE_SIZE = 366,
  408. TOKEN_NCR_PROTOCOL = 367,
  409. TOKEN_NCR_FORMAT = 368,
  410. TOKEN_ALWAYS_INCLUDE_FQDN = 369,
  411. TOKEN_OVERRIDE_NO_UPDATE = 370,
  412. TOKEN_OVERRIDE_CLIENT_UPDATE = 371,
  413. TOKEN_REPLACE_CLIENT_NAME = 372,
  414. TOKEN_GENERATED_PREFIX = 373,
  415. TOKEN_UDP = 374,
  416. TOKEN_TCP = 375,
  417. TOKEN_JSON = 376,
  418. TOKEN_WHEN_PRESENT = 377,
  419. TOKEN_NEVER = 378,
  420. TOKEN_ALWAYS = 379,
  421. TOKEN_WHEN_NOT_PRESENT = 380,
  422. TOKEN_LOGGING = 381,
  423. TOKEN_LOGGERS = 382,
  424. TOKEN_OUTPUT_OPTIONS = 383,
  425. TOKEN_OUTPUT = 384,
  426. TOKEN_DEBUGLEVEL = 385,
  427. TOKEN_SEVERITY = 386,
  428. TOKEN_FLUSH = 387,
  429. TOKEN_MAXSIZE = 388,
  430. TOKEN_MAXVER = 389,
  431. TOKEN_DHCP4 = 390,
  432. TOKEN_DHCPDDNS = 391,
  433. TOKEN_CONTROL_AGENT = 392,
  434. TOKEN_TOPLEVEL_JSON = 393,
  435. TOKEN_TOPLEVEL_DHCP6 = 394,
  436. TOKEN_SUB_DHCP6 = 395,
  437. TOKEN_SUB_INTERFACES6 = 396,
  438. TOKEN_SUB_SUBNET6 = 397,
  439. TOKEN_SUB_POOL6 = 398,
  440. TOKEN_SUB_PD_POOL = 399,
  441. TOKEN_SUB_RESERVATION = 400,
  442. TOKEN_SUB_OPTION_DEFS = 401,
  443. TOKEN_SUB_OPTION_DEF = 402,
  444. TOKEN_SUB_OPTION_DATA = 403,
  445. TOKEN_SUB_HOOKS_LIBRARY = 404,
  446. TOKEN_SUB_DHCP_DDNS = 405,
  447. TOKEN_STRING = 406,
  448. TOKEN_INTEGER = 407,
  449. TOKEN_FLOAT = 408,
  450. TOKEN_BOOLEAN = 409
  451. };
  452. };
  453. /// (External) token type, as returned by yylex.
  454. typedef token::yytokentype token_type;
  455. /// Symbol type: an internal symbol number.
  456. typedef int symbol_number_type;
  457. /// The symbol type number to denote an empty symbol.
  458. enum { empty_symbol = -2 };
  459. /// Internal symbol number for tokens (subsumed by symbol_number_type).
  460. typedef unsigned char token_number_type;
  461. /// A complete symbol.
  462. ///
  463. /// Expects its Base type to provide access to the symbol type
  464. /// via type_get().
  465. ///
  466. /// Provide access to semantic value and location.
  467. template <typename Base>
  468. struct basic_symbol : Base
  469. {
  470. /// Alias to Base.
  471. typedef Base super_type;
  472. /// Default constructor.
  473. basic_symbol ();
  474. /// Copy constructor.
  475. basic_symbol (const basic_symbol& other);
  476. /// Constructor for valueless symbols, and symbols from each type.
  477. basic_symbol (typename Base::kind_type t, const location_type& l);
  478. basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l);
  479. basic_symbol (typename Base::kind_type t, const bool v, const location_type& l);
  480. basic_symbol (typename Base::kind_type t, const double v, const location_type& l);
  481. basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l);
  482. basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l);
  483. /// Constructor for symbols with semantic value.
  484. basic_symbol (typename Base::kind_type t,
  485. const semantic_type& v,
  486. const location_type& l);
  487. /// Destroy the symbol.
  488. ~basic_symbol ();
  489. /// Destroy contents, and record that is empty.
  490. void clear ();
  491. /// Whether empty.
  492. bool empty () const;
  493. /// Destructive move, \a s is emptied into this.
  494. void move (basic_symbol& s);
  495. /// The semantic value.
  496. semantic_type value;
  497. /// The location.
  498. location_type location;
  499. private:
  500. /// Assignment operator.
  501. basic_symbol& operator= (const basic_symbol& other);
  502. };
  503. /// Type access provider for token (enum) based symbols.
  504. struct by_type
  505. {
  506. /// Default constructor.
  507. by_type ();
  508. /// Copy constructor.
  509. by_type (const by_type& other);
  510. /// The symbol type as needed by the constructor.
  511. typedef token_type kind_type;
  512. /// Constructor from (external) token numbers.
  513. by_type (kind_type t);
  514. /// Record that this symbol is empty.
  515. void clear ();
  516. /// Steal the symbol type from \a that.
  517. void move (by_type& that);
  518. /// The (internal) type number (corresponding to \a type).
  519. /// \a empty when empty.
  520. symbol_number_type type_get () const;
  521. /// The token.
  522. token_type token () const;
  523. /// The symbol type.
  524. /// \a empty_symbol when empty.
  525. /// An int, not token_number_type, to be able to store empty_symbol.
  526. int type;
  527. };
  528. /// "External" symbols: returned by the scanner.
  529. typedef basic_symbol<by_type> symbol_type;
  530. // Symbol constructors declarations.
  531. static inline
  532. symbol_type
  533. make_END (const location_type& l);
  534. static inline
  535. symbol_type
  536. make_COMMA (const location_type& l);
  537. static inline
  538. symbol_type
  539. make_COLON (const location_type& l);
  540. static inline
  541. symbol_type
  542. make_LSQUARE_BRACKET (const location_type& l);
  543. static inline
  544. symbol_type
  545. make_RSQUARE_BRACKET (const location_type& l);
  546. static inline
  547. symbol_type
  548. make_LCURLY_BRACKET (const location_type& l);
  549. static inline
  550. symbol_type
  551. make_RCURLY_BRACKET (const location_type& l);
  552. static inline
  553. symbol_type
  554. make_NULL_TYPE (const location_type& l);
  555. static inline
  556. symbol_type
  557. make_DHCP6 (const location_type& l);
  558. static inline
  559. symbol_type
  560. make_INTERFACES_CONFIG (const location_type& l);
  561. static inline
  562. symbol_type
  563. make_INTERFACES (const location_type& l);
  564. static inline
  565. symbol_type
  566. make_RE_DETECT (const location_type& l);
  567. static inline
  568. symbol_type
  569. make_LEASE_DATABASE (const location_type& l);
  570. static inline
  571. symbol_type
  572. make_HOSTS_DATABASE (const location_type& l);
  573. static inline
  574. symbol_type
  575. make_TYPE (const location_type& l);
  576. static inline
  577. symbol_type
  578. make_MEMFILE (const location_type& l);
  579. static inline
  580. symbol_type
  581. make_MYSQL (const location_type& l);
  582. static inline
  583. symbol_type
  584. make_POSTGRESQL (const location_type& l);
  585. static inline
  586. symbol_type
  587. make_CQL (const location_type& l);
  588. static inline
  589. symbol_type
  590. make_USER (const location_type& l);
  591. static inline
  592. symbol_type
  593. make_PASSWORD (const location_type& l);
  594. static inline
  595. symbol_type
  596. make_HOST (const location_type& l);
  597. static inline
  598. symbol_type
  599. make_PORT (const location_type& l);
  600. static inline
  601. symbol_type
  602. make_PERSIST (const location_type& l);
  603. static inline
  604. symbol_type
  605. make_LFC_INTERVAL (const location_type& l);
  606. static inline
  607. symbol_type
  608. make_READONLY (const location_type& l);
  609. static inline
  610. symbol_type
  611. make_CONNECT_TIMEOUT (const location_type& l);
  612. static inline
  613. symbol_type
  614. make_CONTACT_POINTS (const location_type& l);
  615. static inline
  616. symbol_type
  617. make_KEYSPACE (const location_type& l);
  618. static inline
  619. symbol_type
  620. make_PREFERRED_LIFETIME (const location_type& l);
  621. static inline
  622. symbol_type
  623. make_VALID_LIFETIME (const location_type& l);
  624. static inline
  625. symbol_type
  626. make_RENEW_TIMER (const location_type& l);
  627. static inline
  628. symbol_type
  629. make_REBIND_TIMER (const location_type& l);
  630. static inline
  631. symbol_type
  632. make_DECLINE_PROBATION_PERIOD (const location_type& l);
  633. static inline
  634. symbol_type
  635. make_SUBNET6 (const location_type& l);
  636. static inline
  637. symbol_type
  638. make_OPTION_DEF (const location_type& l);
  639. static inline
  640. symbol_type
  641. make_OPTION_DATA (const location_type& l);
  642. static inline
  643. symbol_type
  644. make_NAME (const location_type& l);
  645. static inline
  646. symbol_type
  647. make_DATA (const location_type& l);
  648. static inline
  649. symbol_type
  650. make_CODE (const location_type& l);
  651. static inline
  652. symbol_type
  653. make_SPACE (const location_type& l);
  654. static inline
  655. symbol_type
  656. make_CSV_FORMAT (const location_type& l);
  657. static inline
  658. symbol_type
  659. make_ALWAYS_SEND (const location_type& l);
  660. static inline
  661. symbol_type
  662. make_RECORD_TYPES (const location_type& l);
  663. static inline
  664. symbol_type
  665. make_ENCAPSULATE (const location_type& l);
  666. static inline
  667. symbol_type
  668. make_ARRAY (const location_type& l);
  669. static inline
  670. symbol_type
  671. make_POOLS (const location_type& l);
  672. static inline
  673. symbol_type
  674. make_POOL (const location_type& l);
  675. static inline
  676. symbol_type
  677. make_PD_POOLS (const location_type& l);
  678. static inline
  679. symbol_type
  680. make_PREFIX (const location_type& l);
  681. static inline
  682. symbol_type
  683. make_PREFIX_LEN (const location_type& l);
  684. static inline
  685. symbol_type
  686. make_EXCLUDED_PREFIX (const location_type& l);
  687. static inline
  688. symbol_type
  689. make_EXCLUDED_PREFIX_LEN (const location_type& l);
  690. static inline
  691. symbol_type
  692. make_DELEGATED_LEN (const location_type& l);
  693. static inline
  694. symbol_type
  695. make_USER_CONTEXT (const location_type& l);
  696. static inline
  697. symbol_type
  698. make_SUBNET (const location_type& l);
  699. static inline
  700. symbol_type
  701. make_INTERFACE (const location_type& l);
  702. static inline
  703. symbol_type
  704. make_INTERFACE_ID (const location_type& l);
  705. static inline
  706. symbol_type
  707. make_ID (const location_type& l);
  708. static inline
  709. symbol_type
  710. make_RAPID_COMMIT (const location_type& l);
  711. static inline
  712. symbol_type
  713. make_RESERVATION_MODE (const location_type& l);
  714. static inline
  715. symbol_type
  716. make_DISABLED (const location_type& l);
  717. static inline
  718. symbol_type
  719. make_OUT_OF_POOL (const location_type& l);
  720. static inline
  721. symbol_type
  722. make_ALL (const location_type& l);
  723. static inline
  724. symbol_type
  725. make_SHARED_NETWORKS (const location_type& l);
  726. static inline
  727. symbol_type
  728. make_MAC_SOURCES (const location_type& l);
  729. static inline
  730. symbol_type
  731. make_RELAY_SUPPLIED_OPTIONS (const location_type& l);
  732. static inline
  733. symbol_type
  734. make_HOST_RESERVATION_IDENTIFIERS (const location_type& l);
  735. static inline
  736. symbol_type
  737. make_CLIENT_CLASSES (const location_type& l);
  738. static inline
  739. symbol_type
  740. make_TEST (const location_type& l);
  741. static inline
  742. symbol_type
  743. make_CLIENT_CLASS (const location_type& l);
  744. static inline
  745. symbol_type
  746. make_RESERVATIONS (const location_type& l);
  747. static inline
  748. symbol_type
  749. make_IP_ADDRESSES (const location_type& l);
  750. static inline
  751. symbol_type
  752. make_PREFIXES (const location_type& l);
  753. static inline
  754. symbol_type
  755. make_DUID (const location_type& l);
  756. static inline
  757. symbol_type
  758. make_HW_ADDRESS (const location_type& l);
  759. static inline
  760. symbol_type
  761. make_HOSTNAME (const location_type& l);
  762. static inline
  763. symbol_type
  764. make_FLEX_ID (const location_type& l);
  765. static inline
  766. symbol_type
  767. make_RELAY (const location_type& l);
  768. static inline
  769. symbol_type
  770. make_IP_ADDRESS (const location_type& l);
  771. static inline
  772. symbol_type
  773. make_HOOKS_LIBRARIES (const location_type& l);
  774. static inline
  775. symbol_type
  776. make_LIBRARY (const location_type& l);
  777. static inline
  778. symbol_type
  779. make_PARAMETERS (const location_type& l);
  780. static inline
  781. symbol_type
  782. make_EXPIRED_LEASES_PROCESSING (const location_type& l);
  783. static inline
  784. symbol_type
  785. make_RECLAIM_TIMER_WAIT_TIME (const location_type& l);
  786. static inline
  787. symbol_type
  788. make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l);
  789. static inline
  790. symbol_type
  791. make_HOLD_RECLAIMED_TIME (const location_type& l);
  792. static inline
  793. symbol_type
  794. make_MAX_RECLAIM_LEASES (const location_type& l);
  795. static inline
  796. symbol_type
  797. make_MAX_RECLAIM_TIME (const location_type& l);
  798. static inline
  799. symbol_type
  800. make_UNWARNED_RECLAIM_CYCLES (const location_type& l);
  801. static inline
  802. symbol_type
  803. make_SERVER_ID (const location_type& l);
  804. static inline
  805. symbol_type
  806. make_LLT (const location_type& l);
  807. static inline
  808. symbol_type
  809. make_EN (const location_type& l);
  810. static inline
  811. symbol_type
  812. make_LL (const location_type& l);
  813. static inline
  814. symbol_type
  815. make_IDENTIFIER (const location_type& l);
  816. static inline
  817. symbol_type
  818. make_HTYPE (const location_type& l);
  819. static inline
  820. symbol_type
  821. make_TIME (const location_type& l);
  822. static inline
  823. symbol_type
  824. make_ENTERPRISE_ID (const location_type& l);
  825. static inline
  826. symbol_type
  827. make_DHCP4O6_PORT (const location_type& l);
  828. static inline
  829. symbol_type
  830. make_CONTROL_SOCKET (const location_type& l);
  831. static inline
  832. symbol_type
  833. make_SOCKET_TYPE (const location_type& l);
  834. static inline
  835. symbol_type
  836. make_SOCKET_NAME (const location_type& l);
  837. static inline
  838. symbol_type
  839. make_DHCP_DDNS (const location_type& l);
  840. static inline
  841. symbol_type
  842. make_ENABLE_UPDATES (const location_type& l);
  843. static inline
  844. symbol_type
  845. make_QUALIFYING_SUFFIX (const location_type& l);
  846. static inline
  847. symbol_type
  848. make_SERVER_IP (const location_type& l);
  849. static inline
  850. symbol_type
  851. make_SERVER_PORT (const location_type& l);
  852. static inline
  853. symbol_type
  854. make_SENDER_IP (const location_type& l);
  855. static inline
  856. symbol_type
  857. make_SENDER_PORT (const location_type& l);
  858. static inline
  859. symbol_type
  860. make_MAX_QUEUE_SIZE (const location_type& l);
  861. static inline
  862. symbol_type
  863. make_NCR_PROTOCOL (const location_type& l);
  864. static inline
  865. symbol_type
  866. make_NCR_FORMAT (const location_type& l);
  867. static inline
  868. symbol_type
  869. make_ALWAYS_INCLUDE_FQDN (const location_type& l);
  870. static inline
  871. symbol_type
  872. make_OVERRIDE_NO_UPDATE (const location_type& l);
  873. static inline
  874. symbol_type
  875. make_OVERRIDE_CLIENT_UPDATE (const location_type& l);
  876. static inline
  877. symbol_type
  878. make_REPLACE_CLIENT_NAME (const location_type& l);
  879. static inline
  880. symbol_type
  881. make_GENERATED_PREFIX (const location_type& l);
  882. static inline
  883. symbol_type
  884. make_UDP (const location_type& l);
  885. static inline
  886. symbol_type
  887. make_TCP (const location_type& l);
  888. static inline
  889. symbol_type
  890. make_JSON (const location_type& l);
  891. static inline
  892. symbol_type
  893. make_WHEN_PRESENT (const location_type& l);
  894. static inline
  895. symbol_type
  896. make_NEVER (const location_type& l);
  897. static inline
  898. symbol_type
  899. make_ALWAYS (const location_type& l);
  900. static inline
  901. symbol_type
  902. make_WHEN_NOT_PRESENT (const location_type& l);
  903. static inline
  904. symbol_type
  905. make_LOGGING (const location_type& l);
  906. static inline
  907. symbol_type
  908. make_LOGGERS (const location_type& l);
  909. static inline
  910. symbol_type
  911. make_OUTPUT_OPTIONS (const location_type& l);
  912. static inline
  913. symbol_type
  914. make_OUTPUT (const location_type& l);
  915. static inline
  916. symbol_type
  917. make_DEBUGLEVEL (const location_type& l);
  918. static inline
  919. symbol_type
  920. make_SEVERITY (const location_type& l);
  921. static inline
  922. symbol_type
  923. make_FLUSH (const location_type& l);
  924. static inline
  925. symbol_type
  926. make_MAXSIZE (const location_type& l);
  927. static inline
  928. symbol_type
  929. make_MAXVER (const location_type& l);
  930. static inline
  931. symbol_type
  932. make_DHCP4 (const location_type& l);
  933. static inline
  934. symbol_type
  935. make_DHCPDDNS (const location_type& l);
  936. static inline
  937. symbol_type
  938. make_CONTROL_AGENT (const location_type& l);
  939. static inline
  940. symbol_type
  941. make_TOPLEVEL_JSON (const location_type& l);
  942. static inline
  943. symbol_type
  944. make_TOPLEVEL_DHCP6 (const location_type& l);
  945. static inline
  946. symbol_type
  947. make_SUB_DHCP6 (const location_type& l);
  948. static inline
  949. symbol_type
  950. make_SUB_INTERFACES6 (const location_type& l);
  951. static inline
  952. symbol_type
  953. make_SUB_SUBNET6 (const location_type& l);
  954. static inline
  955. symbol_type
  956. make_SUB_POOL6 (const location_type& l);
  957. static inline
  958. symbol_type
  959. make_SUB_PD_POOL (const location_type& l);
  960. static inline
  961. symbol_type
  962. make_SUB_RESERVATION (const location_type& l);
  963. static inline
  964. symbol_type
  965. make_SUB_OPTION_DEFS (const location_type& l);
  966. static inline
  967. symbol_type
  968. make_SUB_OPTION_DEF (const location_type& l);
  969. static inline
  970. symbol_type
  971. make_SUB_OPTION_DATA (const location_type& l);
  972. static inline
  973. symbol_type
  974. make_SUB_HOOKS_LIBRARY (const location_type& l);
  975. static inline
  976. symbol_type
  977. make_SUB_DHCP_DDNS (const location_type& l);
  978. static inline
  979. symbol_type
  980. make_STRING (const std::string& v, const location_type& l);
  981. static inline
  982. symbol_type
  983. make_INTEGER (const int64_t& v, const location_type& l);
  984. static inline
  985. symbol_type
  986. make_FLOAT (const double& v, const location_type& l);
  987. static inline
  988. symbol_type
  989. make_BOOLEAN (const bool& v, const location_type& l);
  990. /// Build a parser object.
  991. Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg);
  992. virtual ~Dhcp6Parser ();
  993. /// Parse.
  994. /// \returns 0 iff parsing succeeded.
  995. virtual int parse ();
  996. #if PARSER6_DEBUG
  997. /// The current debugging stream.
  998. std::ostream& debug_stream () const YY_ATTRIBUTE_PURE;
  999. /// Set the current debugging stream.
  1000. void set_debug_stream (std::ostream &);
  1001. /// Type for debugging levels.
  1002. typedef int debug_level_type;
  1003. /// The current debugging level.
  1004. debug_level_type debug_level () const YY_ATTRIBUTE_PURE;
  1005. /// Set the current debugging level.
  1006. void set_debug_level (debug_level_type l);
  1007. #endif
  1008. /// Report a syntax error.
  1009. /// \param loc where the syntax error is found.
  1010. /// \param msg a description of the syntax error.
  1011. virtual void error (const location_type& loc, const std::string& msg);
  1012. /// Report a syntax error.
  1013. void error (const syntax_error& err);
  1014. private:
  1015. /// This class is not copyable.
  1016. Dhcp6Parser (const Dhcp6Parser&);
  1017. Dhcp6Parser& operator= (const Dhcp6Parser&);
  1018. /// State numbers.
  1019. typedef int state_type;
  1020. /// Generate an error message.
  1021. /// \param yystate the state where the error occurred.
  1022. /// \param yyla the lookahead token.
  1023. virtual std::string yysyntax_error_ (state_type yystate,
  1024. const symbol_type& yyla) const;
  1025. /// Compute post-reduction state.
  1026. /// \param yystate the current state
  1027. /// \param yysym the nonterminal to push on the stack
  1028. state_type yy_lr_goto_state_ (state_type yystate, int yysym);
  1029. /// Whether the given \c yypact_ value indicates a defaulted state.
  1030. /// \param yyvalue the value to check
  1031. static bool yy_pact_value_is_default_ (int yyvalue);
  1032. /// Whether the given \c yytable_ value indicates a syntax error.
  1033. /// \param yyvalue the value to check
  1034. static bool yy_table_value_is_error_ (int yyvalue);
  1035. static const short int yypact_ninf_;
  1036. static const signed char yytable_ninf_;
  1037. /// Convert a scanner token number \a t to a symbol number.
  1038. static token_number_type yytranslate_ (token_type t);
  1039. // Tables.
  1040. // YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  1041. // STATE-NUM.
  1042. static const short int yypact_[];
  1043. // YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
  1044. // Performed when YYTABLE does not specify something else to do. Zero
  1045. // means the default is an error.
  1046. static const unsigned short int yydefact_[];
  1047. // YYPGOTO[NTERM-NUM].
  1048. static const short int yypgoto_[];
  1049. // YYDEFGOTO[NTERM-NUM].
  1050. static const short int yydefgoto_[];
  1051. // YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
  1052. // positive, shift that token. If negative, reduce the rule whose
  1053. // number is the opposite. If YYTABLE_NINF, syntax error.
  1054. static const unsigned short int yytable_[];
  1055. static const short int yycheck_[];
  1056. // YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  1057. // symbol of state STATE-NUM.
  1058. static const unsigned short int yystos_[];
  1059. // YYR1[YYN] -- Symbol number of symbol that rule YYN derives.
  1060. static const unsigned short int yyr1_[];
  1061. // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.
  1062. static const unsigned char yyr2_[];
  1063. /// Convert the symbol name \a n to a form suitable for a diagnostic.
  1064. static std::string yytnamerr_ (const char *n);
  1065. /// For a symbol, its name in clear.
  1066. static const char* const yytname_[];
  1067. #if PARSER6_DEBUG
  1068. // YYRLINE[YYN] -- Source line where rule number YYN was defined.
  1069. static const unsigned short int yyrline_[];
  1070. /// Report on the debug stream that the rule \a r is going to be reduced.
  1071. virtual void yy_reduce_print_ (int r);
  1072. /// Print the state stack on the debug stream.
  1073. virtual void yystack_print_ ();
  1074. // Debugging.
  1075. int yydebug_;
  1076. std::ostream* yycdebug_;
  1077. /// \brief Display a symbol type, value and location.
  1078. /// \param yyo The output stream.
  1079. /// \param yysym The symbol.
  1080. template <typename Base>
  1081. void yy_print_ (std::ostream& yyo, const basic_symbol<Base>& yysym) const;
  1082. #endif
  1083. /// \brief Reclaim the memory associated to a symbol.
  1084. /// \param yymsg Why this token is reclaimed.
  1085. /// If null, print nothing.
  1086. /// \param yysym The symbol.
  1087. template <typename Base>
  1088. void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const;
  1089. private:
  1090. /// Type access provider for state based symbols.
  1091. struct by_state
  1092. {
  1093. /// Default constructor.
  1094. by_state ();
  1095. /// The symbol type as needed by the constructor.
  1096. typedef state_type kind_type;
  1097. /// Constructor.
  1098. by_state (kind_type s);
  1099. /// Copy constructor.
  1100. by_state (const by_state& other);
  1101. /// Record that this symbol is empty.
  1102. void clear ();
  1103. /// Steal the symbol type from \a that.
  1104. void move (by_state& that);
  1105. /// The (internal) type number (corresponding to \a state).
  1106. /// \a empty_symbol when empty.
  1107. symbol_number_type type_get () const;
  1108. /// The state number used to denote an empty symbol.
  1109. enum { empty_state = -1 };
  1110. /// The state.
  1111. /// \a empty when empty.
  1112. state_type state;
  1113. };
  1114. /// "Internal" symbol: element of the stack.
  1115. struct stack_symbol_type : basic_symbol<by_state>
  1116. {
  1117. /// Superclass.
  1118. typedef basic_symbol<by_state> super_type;
  1119. /// Construct an empty symbol.
  1120. stack_symbol_type ();
  1121. /// Steal the contents from \a sym to build this.
  1122. stack_symbol_type (state_type s, symbol_type& sym);
  1123. /// Assignment, needed by push_back.
  1124. stack_symbol_type& operator= (const stack_symbol_type& that);
  1125. };
  1126. /// Stack type.
  1127. typedef stack<stack_symbol_type> stack_type;
  1128. /// The stack.
  1129. stack_type yystack_;
  1130. /// Push a new state on the stack.
  1131. /// \param m a debug message to display
  1132. /// if null, no trace is output.
  1133. /// \param s the symbol
  1134. /// \warning the contents of \a s.value is stolen.
  1135. void yypush_ (const char* m, stack_symbol_type& s);
  1136. /// Push a new look ahead token on the state on the stack.
  1137. /// \param m a debug message to display
  1138. /// if null, no trace is output.
  1139. /// \param s the state
  1140. /// \param sym the symbol (for its value and location).
  1141. /// \warning the contents of \a s.value is stolen.
  1142. void yypush_ (const char* m, state_type s, symbol_type& sym);
  1143. /// Pop \a n symbols the three stacks.
  1144. void yypop_ (unsigned int n = 1);
  1145. /// Constants.
  1146. enum
  1147. {
  1148. yyeof_ = 0,
  1149. yylast_ = 836, ///< Last index in yytable_.
  1150. yynnts_ = 346, ///< Number of nonterminal symbols.
  1151. yyfinal_ = 28, ///< Termination state number.
  1152. yyterror_ = 1,
  1153. yyerrcode_ = 256,
  1154. yyntokens_ = 155 ///< Number of tokens.
  1155. };
  1156. // User arguments.
  1157. isc::dhcp::Parser6Context& ctx;
  1158. };
  1159. // Symbol number corresponding to token number t.
  1160. inline
  1161. Dhcp6Parser::token_number_type
  1162. Dhcp6Parser::yytranslate_ (token_type t)
  1163. {
  1164. static
  1165. const token_number_type
  1166. translate_table[] =
  1167. {
  1168. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1169. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1170. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1171. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1172. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1173. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1174. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1175. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1176. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1177. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1178. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1179. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1180. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1181. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1182. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1183. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1184. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1185. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1186. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1187. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1188. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1189. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1190. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1191. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1192. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1193. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  1194. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  1195. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  1196. 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  1197. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  1198. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  1199. 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
  1200. 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
  1201. 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
  1202. 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
  1203. 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
  1204. 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
  1205. 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
  1206. 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
  1207. 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
  1208. 145, 146, 147, 148, 149, 150, 151, 152, 153, 154
  1209. };
  1210. const unsigned int user_token_number_max_ = 409;
  1211. const token_number_type undef_token_ = 2;
  1212. if (static_cast<int>(t) <= yyeof_)
  1213. return yyeof_;
  1214. else if (static_cast<unsigned int> (t) <= user_token_number_max_)
  1215. return translate_table[t];
  1216. else
  1217. return undef_token_;
  1218. }
  1219. inline
  1220. Dhcp6Parser::syntax_error::syntax_error (const location_type& l, const std::string& m)
  1221. : std::runtime_error (m)
  1222. , location (l)
  1223. {}
  1224. // basic_symbol.
  1225. template <typename Base>
  1226. inline
  1227. Dhcp6Parser::basic_symbol<Base>::basic_symbol ()
  1228. : value ()
  1229. {}
  1230. template <typename Base>
  1231. inline
  1232. Dhcp6Parser::basic_symbol<Base>::basic_symbol (const basic_symbol& other)
  1233. : Base (other)
  1234. , value ()
  1235. , location (other.location)
  1236. {
  1237. switch (other.type_get ())
  1238. {
  1239. case 170: // value
  1240. case 174: // map_value
  1241. case 218: // db_type
  1242. case 294: // hr_mode
  1243. case 425: // duid_type
  1244. case 458: // ncr_protocol_value
  1245. case 466: // replace_client_name_value
  1246. value.copy< ElementPtr > (other.value);
  1247. break;
  1248. case 154: // "boolean"
  1249. value.copy< bool > (other.value);
  1250. break;
  1251. case 153: // "floating point"
  1252. value.copy< double > (other.value);
  1253. break;
  1254. case 152: // "integer"
  1255. value.copy< int64_t > (other.value);
  1256. break;
  1257. case 151: // "constant string"
  1258. value.copy< std::string > (other.value);
  1259. break;
  1260. default:
  1261. break;
  1262. }
  1263. }
  1264. template <typename Base>
  1265. inline
  1266. Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const semantic_type& v, const location_type& l)
  1267. : Base (t)
  1268. , value ()
  1269. , location (l)
  1270. {
  1271. (void) v;
  1272. switch (this->type_get ())
  1273. {
  1274. case 170: // value
  1275. case 174: // map_value
  1276. case 218: // db_type
  1277. case 294: // hr_mode
  1278. case 425: // duid_type
  1279. case 458: // ncr_protocol_value
  1280. case 466: // replace_client_name_value
  1281. value.copy< ElementPtr > (v);
  1282. break;
  1283. case 154: // "boolean"
  1284. value.copy< bool > (v);
  1285. break;
  1286. case 153: // "floating point"
  1287. value.copy< double > (v);
  1288. break;
  1289. case 152: // "integer"
  1290. value.copy< int64_t > (v);
  1291. break;
  1292. case 151: // "constant string"
  1293. value.copy< std::string > (v);
  1294. break;
  1295. default:
  1296. break;
  1297. }
  1298. }
  1299. // Implementation of basic_symbol constructor for each type.
  1300. template <typename Base>
  1301. Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
  1302. : Base (t)
  1303. , value ()
  1304. , location (l)
  1305. {}
  1306. template <typename Base>
  1307. Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l)
  1308. : Base (t)
  1309. , value (v)
  1310. , location (l)
  1311. {}
  1312. template <typename Base>
  1313. Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool v, const location_type& l)
  1314. : Base (t)
  1315. , value (v)
  1316. , location (l)
  1317. {}
  1318. template <typename Base>
  1319. Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const double v, const location_type& l)
  1320. : Base (t)
  1321. , value (v)
  1322. , location (l)
  1323. {}
  1324. template <typename Base>
  1325. Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l)
  1326. : Base (t)
  1327. , value (v)
  1328. , location (l)
  1329. {}
  1330. template <typename Base>
  1331. Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l)
  1332. : Base (t)
  1333. , value (v)
  1334. , location (l)
  1335. {}
  1336. template <typename Base>
  1337. inline
  1338. Dhcp6Parser::basic_symbol<Base>::~basic_symbol ()
  1339. {
  1340. clear ();
  1341. }
  1342. template <typename Base>
  1343. inline
  1344. void
  1345. Dhcp6Parser::basic_symbol<Base>::clear ()
  1346. {
  1347. // User destructor.
  1348. symbol_number_type yytype = this->type_get ();
  1349. basic_symbol<Base>& yysym = *this;
  1350. (void) yysym;
  1351. switch (yytype)
  1352. {
  1353. default:
  1354. break;
  1355. }
  1356. // Type destructor.
  1357. switch (yytype)
  1358. {
  1359. case 170: // value
  1360. case 174: // map_value
  1361. case 218: // db_type
  1362. case 294: // hr_mode
  1363. case 425: // duid_type
  1364. case 458: // ncr_protocol_value
  1365. case 466: // replace_client_name_value
  1366. value.template destroy< ElementPtr > ();
  1367. break;
  1368. case 154: // "boolean"
  1369. value.template destroy< bool > ();
  1370. break;
  1371. case 153: // "floating point"
  1372. value.template destroy< double > ();
  1373. break;
  1374. case 152: // "integer"
  1375. value.template destroy< int64_t > ();
  1376. break;
  1377. case 151: // "constant string"
  1378. value.template destroy< std::string > ();
  1379. break;
  1380. default:
  1381. break;
  1382. }
  1383. Base::clear ();
  1384. }
  1385. template <typename Base>
  1386. inline
  1387. bool
  1388. Dhcp6Parser::basic_symbol<Base>::empty () const
  1389. {
  1390. return Base::type_get () == empty_symbol;
  1391. }
  1392. template <typename Base>
  1393. inline
  1394. void
  1395. Dhcp6Parser::basic_symbol<Base>::move (basic_symbol& s)
  1396. {
  1397. super_type::move(s);
  1398. switch (this->type_get ())
  1399. {
  1400. case 170: // value
  1401. case 174: // map_value
  1402. case 218: // db_type
  1403. case 294: // hr_mode
  1404. case 425: // duid_type
  1405. case 458: // ncr_protocol_value
  1406. case 466: // replace_client_name_value
  1407. value.move< ElementPtr > (s.value);
  1408. break;
  1409. case 154: // "boolean"
  1410. value.move< bool > (s.value);
  1411. break;
  1412. case 153: // "floating point"
  1413. value.move< double > (s.value);
  1414. break;
  1415. case 152: // "integer"
  1416. value.move< int64_t > (s.value);
  1417. break;
  1418. case 151: // "constant string"
  1419. value.move< std::string > (s.value);
  1420. break;
  1421. default:
  1422. break;
  1423. }
  1424. location = s.location;
  1425. }
  1426. // by_type.
  1427. inline
  1428. Dhcp6Parser::by_type::by_type ()
  1429. : type (empty_symbol)
  1430. {}
  1431. inline
  1432. Dhcp6Parser::by_type::by_type (const by_type& other)
  1433. : type (other.type)
  1434. {}
  1435. inline
  1436. Dhcp6Parser::by_type::by_type (token_type t)
  1437. : type (yytranslate_ (t))
  1438. {}
  1439. inline
  1440. void
  1441. Dhcp6Parser::by_type::clear ()
  1442. {
  1443. type = empty_symbol;
  1444. }
  1445. inline
  1446. void
  1447. Dhcp6Parser::by_type::move (by_type& that)
  1448. {
  1449. type = that.type;
  1450. that.clear ();
  1451. }
  1452. inline
  1453. int
  1454. Dhcp6Parser::by_type::type_get () const
  1455. {
  1456. return type;
  1457. }
  1458. inline
  1459. Dhcp6Parser::token_type
  1460. Dhcp6Parser::by_type::token () const
  1461. {
  1462. // YYTOKNUM[NUM] -- (External) token number corresponding to the
  1463. // (internal) symbol number NUM (which must be that of a token). */
  1464. static
  1465. const unsigned short int
  1466. yytoken_number_[] =
  1467. {
  1468. 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  1469. 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  1470. 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
  1471. 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
  1472. 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
  1473. 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
  1474. 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
  1475. 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
  1476. 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
  1477. 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
  1478. 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
  1479. 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
  1480. 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
  1481. 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
  1482. 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
  1483. 405, 406, 407, 408, 409
  1484. };
  1485. return static_cast<token_type> (yytoken_number_[type]);
  1486. }
  1487. // Implementation of make_symbol for each symbol type.
  1488. Dhcp6Parser::symbol_type
  1489. Dhcp6Parser::make_END (const location_type& l)
  1490. {
  1491. return symbol_type (token::TOKEN_END, l);
  1492. }
  1493. Dhcp6Parser::symbol_type
  1494. Dhcp6Parser::make_COMMA (const location_type& l)
  1495. {
  1496. return symbol_type (token::TOKEN_COMMA, l);
  1497. }
  1498. Dhcp6Parser::symbol_type
  1499. Dhcp6Parser::make_COLON (const location_type& l)
  1500. {
  1501. return symbol_type (token::TOKEN_COLON, l);
  1502. }
  1503. Dhcp6Parser::symbol_type
  1504. Dhcp6Parser::make_LSQUARE_BRACKET (const location_type& l)
  1505. {
  1506. return symbol_type (token::TOKEN_LSQUARE_BRACKET, l);
  1507. }
  1508. Dhcp6Parser::symbol_type
  1509. Dhcp6Parser::make_RSQUARE_BRACKET (const location_type& l)
  1510. {
  1511. return symbol_type (token::TOKEN_RSQUARE_BRACKET, l);
  1512. }
  1513. Dhcp6Parser::symbol_type
  1514. Dhcp6Parser::make_LCURLY_BRACKET (const location_type& l)
  1515. {
  1516. return symbol_type (token::TOKEN_LCURLY_BRACKET, l);
  1517. }
  1518. Dhcp6Parser::symbol_type
  1519. Dhcp6Parser::make_RCURLY_BRACKET (const location_type& l)
  1520. {
  1521. return symbol_type (token::TOKEN_RCURLY_BRACKET, l);
  1522. }
  1523. Dhcp6Parser::symbol_type
  1524. Dhcp6Parser::make_NULL_TYPE (const location_type& l)
  1525. {
  1526. return symbol_type (token::TOKEN_NULL_TYPE, l);
  1527. }
  1528. Dhcp6Parser::symbol_type
  1529. Dhcp6Parser::make_DHCP6 (const location_type& l)
  1530. {
  1531. return symbol_type (token::TOKEN_DHCP6, l);
  1532. }
  1533. Dhcp6Parser::symbol_type
  1534. Dhcp6Parser::make_INTERFACES_CONFIG (const location_type& l)
  1535. {
  1536. return symbol_type (token::TOKEN_INTERFACES_CONFIG, l);
  1537. }
  1538. Dhcp6Parser::symbol_type
  1539. Dhcp6Parser::make_INTERFACES (const location_type& l)
  1540. {
  1541. return symbol_type (token::TOKEN_INTERFACES, l);
  1542. }
  1543. Dhcp6Parser::symbol_type
  1544. Dhcp6Parser::make_RE_DETECT (const location_type& l)
  1545. {
  1546. return symbol_type (token::TOKEN_RE_DETECT, l);
  1547. }
  1548. Dhcp6Parser::symbol_type
  1549. Dhcp6Parser::make_LEASE_DATABASE (const location_type& l)
  1550. {
  1551. return symbol_type (token::TOKEN_LEASE_DATABASE, l);
  1552. }
  1553. Dhcp6Parser::symbol_type
  1554. Dhcp6Parser::make_HOSTS_DATABASE (const location_type& l)
  1555. {
  1556. return symbol_type (token::TOKEN_HOSTS_DATABASE, l);
  1557. }
  1558. Dhcp6Parser::symbol_type
  1559. Dhcp6Parser::make_TYPE (const location_type& l)
  1560. {
  1561. return symbol_type (token::TOKEN_TYPE, l);
  1562. }
  1563. Dhcp6Parser::symbol_type
  1564. Dhcp6Parser::make_MEMFILE (const location_type& l)
  1565. {
  1566. return symbol_type (token::TOKEN_MEMFILE, l);
  1567. }
  1568. Dhcp6Parser::symbol_type
  1569. Dhcp6Parser::make_MYSQL (const location_type& l)
  1570. {
  1571. return symbol_type (token::TOKEN_MYSQL, l);
  1572. }
  1573. Dhcp6Parser::symbol_type
  1574. Dhcp6Parser::make_POSTGRESQL (const location_type& l)
  1575. {
  1576. return symbol_type (token::TOKEN_POSTGRESQL, l);
  1577. }
  1578. Dhcp6Parser::symbol_type
  1579. Dhcp6Parser::make_CQL (const location_type& l)
  1580. {
  1581. return symbol_type (token::TOKEN_CQL, l);
  1582. }
  1583. Dhcp6Parser::symbol_type
  1584. Dhcp6Parser::make_USER (const location_type& l)
  1585. {
  1586. return symbol_type (token::TOKEN_USER, l);
  1587. }
  1588. Dhcp6Parser::symbol_type
  1589. Dhcp6Parser::make_PASSWORD (const location_type& l)
  1590. {
  1591. return symbol_type (token::TOKEN_PASSWORD, l);
  1592. }
  1593. Dhcp6Parser::symbol_type
  1594. Dhcp6Parser::make_HOST (const location_type& l)
  1595. {
  1596. return symbol_type (token::TOKEN_HOST, l);
  1597. }
  1598. Dhcp6Parser::symbol_type
  1599. Dhcp6Parser::make_PORT (const location_type& l)
  1600. {
  1601. return symbol_type (token::TOKEN_PORT, l);
  1602. }
  1603. Dhcp6Parser::symbol_type
  1604. Dhcp6Parser::make_PERSIST (const location_type& l)
  1605. {
  1606. return symbol_type (token::TOKEN_PERSIST, l);
  1607. }
  1608. Dhcp6Parser::symbol_type
  1609. Dhcp6Parser::make_LFC_INTERVAL (const location_type& l)
  1610. {
  1611. return symbol_type (token::TOKEN_LFC_INTERVAL, l);
  1612. }
  1613. Dhcp6Parser::symbol_type
  1614. Dhcp6Parser::make_READONLY (const location_type& l)
  1615. {
  1616. return symbol_type (token::TOKEN_READONLY, l);
  1617. }
  1618. Dhcp6Parser::symbol_type
  1619. Dhcp6Parser::make_CONNECT_TIMEOUT (const location_type& l)
  1620. {
  1621. return symbol_type (token::TOKEN_CONNECT_TIMEOUT, l);
  1622. }
  1623. Dhcp6Parser::symbol_type
  1624. Dhcp6Parser::make_CONTACT_POINTS (const location_type& l)
  1625. {
  1626. return symbol_type (token::TOKEN_CONTACT_POINTS, l);
  1627. }
  1628. Dhcp6Parser::symbol_type
  1629. Dhcp6Parser::make_KEYSPACE (const location_type& l)
  1630. {
  1631. return symbol_type (token::TOKEN_KEYSPACE, l);
  1632. }
  1633. Dhcp6Parser::symbol_type
  1634. Dhcp6Parser::make_PREFERRED_LIFETIME (const location_type& l)
  1635. {
  1636. return symbol_type (token::TOKEN_PREFERRED_LIFETIME, l);
  1637. }
  1638. Dhcp6Parser::symbol_type
  1639. Dhcp6Parser::make_VALID_LIFETIME (const location_type& l)
  1640. {
  1641. return symbol_type (token::TOKEN_VALID_LIFETIME, l);
  1642. }
  1643. Dhcp6Parser::symbol_type
  1644. Dhcp6Parser::make_RENEW_TIMER (const location_type& l)
  1645. {
  1646. return symbol_type (token::TOKEN_RENEW_TIMER, l);
  1647. }
  1648. Dhcp6Parser::symbol_type
  1649. Dhcp6Parser::make_REBIND_TIMER (const location_type& l)
  1650. {
  1651. return symbol_type (token::TOKEN_REBIND_TIMER, l);
  1652. }
  1653. Dhcp6Parser::symbol_type
  1654. Dhcp6Parser::make_DECLINE_PROBATION_PERIOD (const location_type& l)
  1655. {
  1656. return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, l);
  1657. }
  1658. Dhcp6Parser::symbol_type
  1659. Dhcp6Parser::make_SUBNET6 (const location_type& l)
  1660. {
  1661. return symbol_type (token::TOKEN_SUBNET6, l);
  1662. }
  1663. Dhcp6Parser::symbol_type
  1664. Dhcp6Parser::make_OPTION_DEF (const location_type& l)
  1665. {
  1666. return symbol_type (token::TOKEN_OPTION_DEF, l);
  1667. }
  1668. Dhcp6Parser::symbol_type
  1669. Dhcp6Parser::make_OPTION_DATA (const location_type& l)
  1670. {
  1671. return symbol_type (token::TOKEN_OPTION_DATA, l);
  1672. }
  1673. Dhcp6Parser::symbol_type
  1674. Dhcp6Parser::make_NAME (const location_type& l)
  1675. {
  1676. return symbol_type (token::TOKEN_NAME, l);
  1677. }
  1678. Dhcp6Parser::symbol_type
  1679. Dhcp6Parser::make_DATA (const location_type& l)
  1680. {
  1681. return symbol_type (token::TOKEN_DATA, l);
  1682. }
  1683. Dhcp6Parser::symbol_type
  1684. Dhcp6Parser::make_CODE (const location_type& l)
  1685. {
  1686. return symbol_type (token::TOKEN_CODE, l);
  1687. }
  1688. Dhcp6Parser::symbol_type
  1689. Dhcp6Parser::make_SPACE (const location_type& l)
  1690. {
  1691. return symbol_type (token::TOKEN_SPACE, l);
  1692. }
  1693. Dhcp6Parser::symbol_type
  1694. Dhcp6Parser::make_CSV_FORMAT (const location_type& l)
  1695. {
  1696. return symbol_type (token::TOKEN_CSV_FORMAT, l);
  1697. }
  1698. Dhcp6Parser::symbol_type
  1699. Dhcp6Parser::make_ALWAYS_SEND (const location_type& l)
  1700. {
  1701. return symbol_type (token::TOKEN_ALWAYS_SEND, l);
  1702. }
  1703. Dhcp6Parser::symbol_type
  1704. Dhcp6Parser::make_RECORD_TYPES (const location_type& l)
  1705. {
  1706. return symbol_type (token::TOKEN_RECORD_TYPES, l);
  1707. }
  1708. Dhcp6Parser::symbol_type
  1709. Dhcp6Parser::make_ENCAPSULATE (const location_type& l)
  1710. {
  1711. return symbol_type (token::TOKEN_ENCAPSULATE, l);
  1712. }
  1713. Dhcp6Parser::symbol_type
  1714. Dhcp6Parser::make_ARRAY (const location_type& l)
  1715. {
  1716. return symbol_type (token::TOKEN_ARRAY, l);
  1717. }
  1718. Dhcp6Parser::symbol_type
  1719. Dhcp6Parser::make_POOLS (const location_type& l)
  1720. {
  1721. return symbol_type (token::TOKEN_POOLS, l);
  1722. }
  1723. Dhcp6Parser::symbol_type
  1724. Dhcp6Parser::make_POOL (const location_type& l)
  1725. {
  1726. return symbol_type (token::TOKEN_POOL, l);
  1727. }
  1728. Dhcp6Parser::symbol_type
  1729. Dhcp6Parser::make_PD_POOLS (const location_type& l)
  1730. {
  1731. return symbol_type (token::TOKEN_PD_POOLS, l);
  1732. }
  1733. Dhcp6Parser::symbol_type
  1734. Dhcp6Parser::make_PREFIX (const location_type& l)
  1735. {
  1736. return symbol_type (token::TOKEN_PREFIX, l);
  1737. }
  1738. Dhcp6Parser::symbol_type
  1739. Dhcp6Parser::make_PREFIX_LEN (const location_type& l)
  1740. {
  1741. return symbol_type (token::TOKEN_PREFIX_LEN, l);
  1742. }
  1743. Dhcp6Parser::symbol_type
  1744. Dhcp6Parser::make_EXCLUDED_PREFIX (const location_type& l)
  1745. {
  1746. return symbol_type (token::TOKEN_EXCLUDED_PREFIX, l);
  1747. }
  1748. Dhcp6Parser::symbol_type
  1749. Dhcp6Parser::make_EXCLUDED_PREFIX_LEN (const location_type& l)
  1750. {
  1751. return symbol_type (token::TOKEN_EXCLUDED_PREFIX_LEN, l);
  1752. }
  1753. Dhcp6Parser::symbol_type
  1754. Dhcp6Parser::make_DELEGATED_LEN (const location_type& l)
  1755. {
  1756. return symbol_type (token::TOKEN_DELEGATED_LEN, l);
  1757. }
  1758. Dhcp6Parser::symbol_type
  1759. Dhcp6Parser::make_USER_CONTEXT (const location_type& l)
  1760. {
  1761. return symbol_type (token::TOKEN_USER_CONTEXT, l);
  1762. }
  1763. Dhcp6Parser::symbol_type
  1764. Dhcp6Parser::make_SUBNET (const location_type& l)
  1765. {
  1766. return symbol_type (token::TOKEN_SUBNET, l);
  1767. }
  1768. Dhcp6Parser::symbol_type
  1769. Dhcp6Parser::make_INTERFACE (const location_type& l)
  1770. {
  1771. return symbol_type (token::TOKEN_INTERFACE, l);
  1772. }
  1773. Dhcp6Parser::symbol_type
  1774. Dhcp6Parser::make_INTERFACE_ID (const location_type& l)
  1775. {
  1776. return symbol_type (token::TOKEN_INTERFACE_ID, l);
  1777. }
  1778. Dhcp6Parser::symbol_type
  1779. Dhcp6Parser::make_ID (const location_type& l)
  1780. {
  1781. return symbol_type (token::TOKEN_ID, l);
  1782. }
  1783. Dhcp6Parser::symbol_type
  1784. Dhcp6Parser::make_RAPID_COMMIT (const location_type& l)
  1785. {
  1786. return symbol_type (token::TOKEN_RAPID_COMMIT, l);
  1787. }
  1788. Dhcp6Parser::symbol_type
  1789. Dhcp6Parser::make_RESERVATION_MODE (const location_type& l)
  1790. {
  1791. return symbol_type (token::TOKEN_RESERVATION_MODE, l);
  1792. }
  1793. Dhcp6Parser::symbol_type
  1794. Dhcp6Parser::make_DISABLED (const location_type& l)
  1795. {
  1796. return symbol_type (token::TOKEN_DISABLED, l);
  1797. }
  1798. Dhcp6Parser::symbol_type
  1799. Dhcp6Parser::make_OUT_OF_POOL (const location_type& l)
  1800. {
  1801. return symbol_type (token::TOKEN_OUT_OF_POOL, l);
  1802. }
  1803. Dhcp6Parser::symbol_type
  1804. Dhcp6Parser::make_ALL (const location_type& l)
  1805. {
  1806. return symbol_type (token::TOKEN_ALL, l);
  1807. }
  1808. Dhcp6Parser::symbol_type
  1809. Dhcp6Parser::make_SHARED_NETWORKS (const location_type& l)
  1810. {
  1811. return symbol_type (token::TOKEN_SHARED_NETWORKS, l);
  1812. }
  1813. Dhcp6Parser::symbol_type
  1814. Dhcp6Parser::make_MAC_SOURCES (const location_type& l)
  1815. {
  1816. return symbol_type (token::TOKEN_MAC_SOURCES, l);
  1817. }
  1818. Dhcp6Parser::symbol_type
  1819. Dhcp6Parser::make_RELAY_SUPPLIED_OPTIONS (const location_type& l)
  1820. {
  1821. return symbol_type (token::TOKEN_RELAY_SUPPLIED_OPTIONS, l);
  1822. }
  1823. Dhcp6Parser::symbol_type
  1824. Dhcp6Parser::make_HOST_RESERVATION_IDENTIFIERS (const location_type& l)
  1825. {
  1826. return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, l);
  1827. }
  1828. Dhcp6Parser::symbol_type
  1829. Dhcp6Parser::make_CLIENT_CLASSES (const location_type& l)
  1830. {
  1831. return symbol_type (token::TOKEN_CLIENT_CLASSES, l);
  1832. }
  1833. Dhcp6Parser::symbol_type
  1834. Dhcp6Parser::make_TEST (const location_type& l)
  1835. {
  1836. return symbol_type (token::TOKEN_TEST, l);
  1837. }
  1838. Dhcp6Parser::symbol_type
  1839. Dhcp6Parser::make_CLIENT_CLASS (const location_type& l)
  1840. {
  1841. return symbol_type (token::TOKEN_CLIENT_CLASS, l);
  1842. }
  1843. Dhcp6Parser::symbol_type
  1844. Dhcp6Parser::make_RESERVATIONS (const location_type& l)
  1845. {
  1846. return symbol_type (token::TOKEN_RESERVATIONS, l);
  1847. }
  1848. Dhcp6Parser::symbol_type
  1849. Dhcp6Parser::make_IP_ADDRESSES (const location_type& l)
  1850. {
  1851. return symbol_type (token::TOKEN_IP_ADDRESSES, l);
  1852. }
  1853. Dhcp6Parser::symbol_type
  1854. Dhcp6Parser::make_PREFIXES (const location_type& l)
  1855. {
  1856. return symbol_type (token::TOKEN_PREFIXES, l);
  1857. }
  1858. Dhcp6Parser::symbol_type
  1859. Dhcp6Parser::make_DUID (const location_type& l)
  1860. {
  1861. return symbol_type (token::TOKEN_DUID, l);
  1862. }
  1863. Dhcp6Parser::symbol_type
  1864. Dhcp6Parser::make_HW_ADDRESS (const location_type& l)
  1865. {
  1866. return symbol_type (token::TOKEN_HW_ADDRESS, l);
  1867. }
  1868. Dhcp6Parser::symbol_type
  1869. Dhcp6Parser::make_HOSTNAME (const location_type& l)
  1870. {
  1871. return symbol_type (token::TOKEN_HOSTNAME, l);
  1872. }
  1873. Dhcp6Parser::symbol_type
  1874. Dhcp6Parser::make_FLEX_ID (const location_type& l)
  1875. {
  1876. return symbol_type (token::TOKEN_FLEX_ID, l);
  1877. }
  1878. Dhcp6Parser::symbol_type
  1879. Dhcp6Parser::make_RELAY (const location_type& l)
  1880. {
  1881. return symbol_type (token::TOKEN_RELAY, l);
  1882. }
  1883. Dhcp6Parser::symbol_type
  1884. Dhcp6Parser::make_IP_ADDRESS (const location_type& l)
  1885. {
  1886. return symbol_type (token::TOKEN_IP_ADDRESS, l);
  1887. }
  1888. Dhcp6Parser::symbol_type
  1889. Dhcp6Parser::make_HOOKS_LIBRARIES (const location_type& l)
  1890. {
  1891. return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l);
  1892. }
  1893. Dhcp6Parser::symbol_type
  1894. Dhcp6Parser::make_LIBRARY (const location_type& l)
  1895. {
  1896. return symbol_type (token::TOKEN_LIBRARY, l);
  1897. }
  1898. Dhcp6Parser::symbol_type
  1899. Dhcp6Parser::make_PARAMETERS (const location_type& l)
  1900. {
  1901. return symbol_type (token::TOKEN_PARAMETERS, l);
  1902. }
  1903. Dhcp6Parser::symbol_type
  1904. Dhcp6Parser::make_EXPIRED_LEASES_PROCESSING (const location_type& l)
  1905. {
  1906. return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l);
  1907. }
  1908. Dhcp6Parser::symbol_type
  1909. Dhcp6Parser::make_RECLAIM_TIMER_WAIT_TIME (const location_type& l)
  1910. {
  1911. return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, l);
  1912. }
  1913. Dhcp6Parser::symbol_type
  1914. Dhcp6Parser::make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l)
  1915. {
  1916. return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, l);
  1917. }
  1918. Dhcp6Parser::symbol_type
  1919. Dhcp6Parser::make_HOLD_RECLAIMED_TIME (const location_type& l)
  1920. {
  1921. return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, l);
  1922. }
  1923. Dhcp6Parser::symbol_type
  1924. Dhcp6Parser::make_MAX_RECLAIM_LEASES (const location_type& l)
  1925. {
  1926. return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, l);
  1927. }
  1928. Dhcp6Parser::symbol_type
  1929. Dhcp6Parser::make_MAX_RECLAIM_TIME (const location_type& l)
  1930. {
  1931. return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, l);
  1932. }
  1933. Dhcp6Parser::symbol_type
  1934. Dhcp6Parser::make_UNWARNED_RECLAIM_CYCLES (const location_type& l)
  1935. {
  1936. return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, l);
  1937. }
  1938. Dhcp6Parser::symbol_type
  1939. Dhcp6Parser::make_SERVER_ID (const location_type& l)
  1940. {
  1941. return symbol_type (token::TOKEN_SERVER_ID, l);
  1942. }
  1943. Dhcp6Parser::symbol_type
  1944. Dhcp6Parser::make_LLT (const location_type& l)
  1945. {
  1946. return symbol_type (token::TOKEN_LLT, l);
  1947. }
  1948. Dhcp6Parser::symbol_type
  1949. Dhcp6Parser::make_EN (const location_type& l)
  1950. {
  1951. return symbol_type (token::TOKEN_EN, l);
  1952. }
  1953. Dhcp6Parser::symbol_type
  1954. Dhcp6Parser::make_LL (const location_type& l)
  1955. {
  1956. return symbol_type (token::TOKEN_LL, l);
  1957. }
  1958. Dhcp6Parser::symbol_type
  1959. Dhcp6Parser::make_IDENTIFIER (const location_type& l)
  1960. {
  1961. return symbol_type (token::TOKEN_IDENTIFIER, l);
  1962. }
  1963. Dhcp6Parser::symbol_type
  1964. Dhcp6Parser::make_HTYPE (const location_type& l)
  1965. {
  1966. return symbol_type (token::TOKEN_HTYPE, l);
  1967. }
  1968. Dhcp6Parser::symbol_type
  1969. Dhcp6Parser::make_TIME (const location_type& l)
  1970. {
  1971. return symbol_type (token::TOKEN_TIME, l);
  1972. }
  1973. Dhcp6Parser::symbol_type
  1974. Dhcp6Parser::make_ENTERPRISE_ID (const location_type& l)
  1975. {
  1976. return symbol_type (token::TOKEN_ENTERPRISE_ID, l);
  1977. }
  1978. Dhcp6Parser::symbol_type
  1979. Dhcp6Parser::make_DHCP4O6_PORT (const location_type& l)
  1980. {
  1981. return symbol_type (token::TOKEN_DHCP4O6_PORT, l);
  1982. }
  1983. Dhcp6Parser::symbol_type
  1984. Dhcp6Parser::make_CONTROL_SOCKET (const location_type& l)
  1985. {
  1986. return symbol_type (token::TOKEN_CONTROL_SOCKET, l);
  1987. }
  1988. Dhcp6Parser::symbol_type
  1989. Dhcp6Parser::make_SOCKET_TYPE (const location_type& l)
  1990. {
  1991. return symbol_type (token::TOKEN_SOCKET_TYPE, l);
  1992. }
  1993. Dhcp6Parser::symbol_type
  1994. Dhcp6Parser::make_SOCKET_NAME (const location_type& l)
  1995. {
  1996. return symbol_type (token::TOKEN_SOCKET_NAME, l);
  1997. }
  1998. Dhcp6Parser::symbol_type
  1999. Dhcp6Parser::make_DHCP_DDNS (const location_type& l)
  2000. {
  2001. return symbol_type (token::TOKEN_DHCP_DDNS, l);
  2002. }
  2003. Dhcp6Parser::symbol_type
  2004. Dhcp6Parser::make_ENABLE_UPDATES (const location_type& l)
  2005. {
  2006. return symbol_type (token::TOKEN_ENABLE_UPDATES, l);
  2007. }
  2008. Dhcp6Parser::symbol_type
  2009. Dhcp6Parser::make_QUALIFYING_SUFFIX (const location_type& l)
  2010. {
  2011. return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, l);
  2012. }
  2013. Dhcp6Parser::symbol_type
  2014. Dhcp6Parser::make_SERVER_IP (const location_type& l)
  2015. {
  2016. return symbol_type (token::TOKEN_SERVER_IP, l);
  2017. }
  2018. Dhcp6Parser::symbol_type
  2019. Dhcp6Parser::make_SERVER_PORT (const location_type& l)
  2020. {
  2021. return symbol_type (token::TOKEN_SERVER_PORT, l);
  2022. }
  2023. Dhcp6Parser::symbol_type
  2024. Dhcp6Parser::make_SENDER_IP (const location_type& l)
  2025. {
  2026. return symbol_type (token::TOKEN_SENDER_IP, l);
  2027. }
  2028. Dhcp6Parser::symbol_type
  2029. Dhcp6Parser::make_SENDER_PORT (const location_type& l)
  2030. {
  2031. return symbol_type (token::TOKEN_SENDER_PORT, l);
  2032. }
  2033. Dhcp6Parser::symbol_type
  2034. Dhcp6Parser::make_MAX_QUEUE_SIZE (const location_type& l)
  2035. {
  2036. return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, l);
  2037. }
  2038. Dhcp6Parser::symbol_type
  2039. Dhcp6Parser::make_NCR_PROTOCOL (const location_type& l)
  2040. {
  2041. return symbol_type (token::TOKEN_NCR_PROTOCOL, l);
  2042. }
  2043. Dhcp6Parser::symbol_type
  2044. Dhcp6Parser::make_NCR_FORMAT (const location_type& l)
  2045. {
  2046. return symbol_type (token::TOKEN_NCR_FORMAT, l);
  2047. }
  2048. Dhcp6Parser::symbol_type
  2049. Dhcp6Parser::make_ALWAYS_INCLUDE_FQDN (const location_type& l)
  2050. {
  2051. return symbol_type (token::TOKEN_ALWAYS_INCLUDE_FQDN, l);
  2052. }
  2053. Dhcp6Parser::symbol_type
  2054. Dhcp6Parser::make_OVERRIDE_NO_UPDATE (const location_type& l)
  2055. {
  2056. return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, l);
  2057. }
  2058. Dhcp6Parser::symbol_type
  2059. Dhcp6Parser::make_OVERRIDE_CLIENT_UPDATE (const location_type& l)
  2060. {
  2061. return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, l);
  2062. }
  2063. Dhcp6Parser::symbol_type
  2064. Dhcp6Parser::make_REPLACE_CLIENT_NAME (const location_type& l)
  2065. {
  2066. return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, l);
  2067. }
  2068. Dhcp6Parser::symbol_type
  2069. Dhcp6Parser::make_GENERATED_PREFIX (const location_type& l)
  2070. {
  2071. return symbol_type (token::TOKEN_GENERATED_PREFIX, l);
  2072. }
  2073. Dhcp6Parser::symbol_type
  2074. Dhcp6Parser::make_UDP (const location_type& l)
  2075. {
  2076. return symbol_type (token::TOKEN_UDP, l);
  2077. }
  2078. Dhcp6Parser::symbol_type
  2079. Dhcp6Parser::make_TCP (const location_type& l)
  2080. {
  2081. return symbol_type (token::TOKEN_TCP, l);
  2082. }
  2083. Dhcp6Parser::symbol_type
  2084. Dhcp6Parser::make_JSON (const location_type& l)
  2085. {
  2086. return symbol_type (token::TOKEN_JSON, l);
  2087. }
  2088. Dhcp6Parser::symbol_type
  2089. Dhcp6Parser::make_WHEN_PRESENT (const location_type& l)
  2090. {
  2091. return symbol_type (token::TOKEN_WHEN_PRESENT, l);
  2092. }
  2093. Dhcp6Parser::symbol_type
  2094. Dhcp6Parser::make_NEVER (const location_type& l)
  2095. {
  2096. return symbol_type (token::TOKEN_NEVER, l);
  2097. }
  2098. Dhcp6Parser::symbol_type
  2099. Dhcp6Parser::make_ALWAYS (const location_type& l)
  2100. {
  2101. return symbol_type (token::TOKEN_ALWAYS, l);
  2102. }
  2103. Dhcp6Parser::symbol_type
  2104. Dhcp6Parser::make_WHEN_NOT_PRESENT (const location_type& l)
  2105. {
  2106. return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, l);
  2107. }
  2108. Dhcp6Parser::symbol_type
  2109. Dhcp6Parser::make_LOGGING (const location_type& l)
  2110. {
  2111. return symbol_type (token::TOKEN_LOGGING, l);
  2112. }
  2113. Dhcp6Parser::symbol_type
  2114. Dhcp6Parser::make_LOGGERS (const location_type& l)
  2115. {
  2116. return symbol_type (token::TOKEN_LOGGERS, l);
  2117. }
  2118. Dhcp6Parser::symbol_type
  2119. Dhcp6Parser::make_OUTPUT_OPTIONS (const location_type& l)
  2120. {
  2121. return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l);
  2122. }
  2123. Dhcp6Parser::symbol_type
  2124. Dhcp6Parser::make_OUTPUT (const location_type& l)
  2125. {
  2126. return symbol_type (token::TOKEN_OUTPUT, l);
  2127. }
  2128. Dhcp6Parser::symbol_type
  2129. Dhcp6Parser::make_DEBUGLEVEL (const location_type& l)
  2130. {
  2131. return symbol_type (token::TOKEN_DEBUGLEVEL, l);
  2132. }
  2133. Dhcp6Parser::symbol_type
  2134. Dhcp6Parser::make_SEVERITY (const location_type& l)
  2135. {
  2136. return symbol_type (token::TOKEN_SEVERITY, l);
  2137. }
  2138. Dhcp6Parser::symbol_type
  2139. Dhcp6Parser::make_FLUSH (const location_type& l)
  2140. {
  2141. return symbol_type (token::TOKEN_FLUSH, l);
  2142. }
  2143. Dhcp6Parser::symbol_type
  2144. Dhcp6Parser::make_MAXSIZE (const location_type& l)
  2145. {
  2146. return symbol_type (token::TOKEN_MAXSIZE, l);
  2147. }
  2148. Dhcp6Parser::symbol_type
  2149. Dhcp6Parser::make_MAXVER (const location_type& l)
  2150. {
  2151. return symbol_type (token::TOKEN_MAXVER, l);
  2152. }
  2153. Dhcp6Parser::symbol_type
  2154. Dhcp6Parser::make_DHCP4 (const location_type& l)
  2155. {
  2156. return symbol_type (token::TOKEN_DHCP4, l);
  2157. }
  2158. Dhcp6Parser::symbol_type
  2159. Dhcp6Parser::make_DHCPDDNS (const location_type& l)
  2160. {
  2161. return symbol_type (token::TOKEN_DHCPDDNS, l);
  2162. }
  2163. Dhcp6Parser::symbol_type
  2164. Dhcp6Parser::make_CONTROL_AGENT (const location_type& l)
  2165. {
  2166. return symbol_type (token::TOKEN_CONTROL_AGENT, l);
  2167. }
  2168. Dhcp6Parser::symbol_type
  2169. Dhcp6Parser::make_TOPLEVEL_JSON (const location_type& l)
  2170. {
  2171. return symbol_type (token::TOKEN_TOPLEVEL_JSON, l);
  2172. }
  2173. Dhcp6Parser::symbol_type
  2174. Dhcp6Parser::make_TOPLEVEL_DHCP6 (const location_type& l)
  2175. {
  2176. return symbol_type (token::TOKEN_TOPLEVEL_DHCP6, l);
  2177. }
  2178. Dhcp6Parser::symbol_type
  2179. Dhcp6Parser::make_SUB_DHCP6 (const location_type& l)
  2180. {
  2181. return symbol_type (token::TOKEN_SUB_DHCP6, l);
  2182. }
  2183. Dhcp6Parser::symbol_type
  2184. Dhcp6Parser::make_SUB_INTERFACES6 (const location_type& l)
  2185. {
  2186. return symbol_type (token::TOKEN_SUB_INTERFACES6, l);
  2187. }
  2188. Dhcp6Parser::symbol_type
  2189. Dhcp6Parser::make_SUB_SUBNET6 (const location_type& l)
  2190. {
  2191. return symbol_type (token::TOKEN_SUB_SUBNET6, l);
  2192. }
  2193. Dhcp6Parser::symbol_type
  2194. Dhcp6Parser::make_SUB_POOL6 (const location_type& l)
  2195. {
  2196. return symbol_type (token::TOKEN_SUB_POOL6, l);
  2197. }
  2198. Dhcp6Parser::symbol_type
  2199. Dhcp6Parser::make_SUB_PD_POOL (const location_type& l)
  2200. {
  2201. return symbol_type (token::TOKEN_SUB_PD_POOL, l);
  2202. }
  2203. Dhcp6Parser::symbol_type
  2204. Dhcp6Parser::make_SUB_RESERVATION (const location_type& l)
  2205. {
  2206. return symbol_type (token::TOKEN_SUB_RESERVATION, l);
  2207. }
  2208. Dhcp6Parser::symbol_type
  2209. Dhcp6Parser::make_SUB_OPTION_DEFS (const location_type& l)
  2210. {
  2211. return symbol_type (token::TOKEN_SUB_OPTION_DEFS, l);
  2212. }
  2213. Dhcp6Parser::symbol_type
  2214. Dhcp6Parser::make_SUB_OPTION_DEF (const location_type& l)
  2215. {
  2216. return symbol_type (token::TOKEN_SUB_OPTION_DEF, l);
  2217. }
  2218. Dhcp6Parser::symbol_type
  2219. Dhcp6Parser::make_SUB_OPTION_DATA (const location_type& l)
  2220. {
  2221. return symbol_type (token::TOKEN_SUB_OPTION_DATA, l);
  2222. }
  2223. Dhcp6Parser::symbol_type
  2224. Dhcp6Parser::make_SUB_HOOKS_LIBRARY (const location_type& l)
  2225. {
  2226. return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l);
  2227. }
  2228. Dhcp6Parser::symbol_type
  2229. Dhcp6Parser::make_SUB_DHCP_DDNS (const location_type& l)
  2230. {
  2231. return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l);
  2232. }
  2233. Dhcp6Parser::symbol_type
  2234. Dhcp6Parser::make_STRING (const std::string& v, const location_type& l)
  2235. {
  2236. return symbol_type (token::TOKEN_STRING, v, l);
  2237. }
  2238. Dhcp6Parser::symbol_type
  2239. Dhcp6Parser::make_INTEGER (const int64_t& v, const location_type& l)
  2240. {
  2241. return symbol_type (token::TOKEN_INTEGER, v, l);
  2242. }
  2243. Dhcp6Parser::symbol_type
  2244. Dhcp6Parser::make_FLOAT (const double& v, const location_type& l)
  2245. {
  2246. return symbol_type (token::TOKEN_FLOAT, v, l);
  2247. }
  2248. Dhcp6Parser::symbol_type
  2249. Dhcp6Parser::make_BOOLEAN (const bool& v, const location_type& l)
  2250. {
  2251. return symbol_type (token::TOKEN_BOOLEAN, v, l);
  2252. }
  2253. #line 14 "dhcp6_parser.yy" // lalr1.cc:377
  2254. } } // isc::dhcp
  2255. #line 2747 "dhcp6_parser.h" // lalr1.cc:377
  2256. #endif // !YY_PARSER6_DHCP6_PARSER_H_INCLUDED