dhcp6_parser.h 68 KB

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