dhcp4_parser.h 67 KB

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