From: Francis Dupont Date: Tue, 28 Nov 2017 16:58:38 +0000 (+0000) Subject: [trac5351] regen lexer X-Git-Tag: trac5444_base~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2417ed84e13c2b34a4d8436d4e81fdc4b1ab6dcd;p=thirdparty%2Fkea.git [trac5351] regen lexer --- diff --git a/src/bin/dhcp4/dhcp4_lexer.cc b/src/bin/dhcp4/dhcp4_lexer.cc index 7b61a60bcf..47c2f72c18 100644 --- a/src/bin/dhcp4/dhcp4_lexer.cc +++ b/src/bin/dhcp4/dhcp4_lexer.cc @@ -1588,18 +1588,18 @@ static const flex_int16_t yy_rule_linenum[159] = 269, 278, 287, 296, 305, 316, 325, 334, 343, 352, 362, 372, 382, 392, 402, 412, 422, 432, 442, 453, 464, 475, 484, 494, 503, 513, 528, 544, 553, 562, - 571, 580, 590, 600, 609, 619, 628, 637, 646, 656, - 665, 674, 683, 692, 702, 711, 720, 729, 738, 747, - 756, 765, 774, 783, 792, 802, 813, 823, 832, 842, - 852, 862, 872, 882, 891, 901, 910, 919, 928, 937, - 947, 957, 967, 976, 985, 994, 1003, 1012, 1021, 1030, - - 1039, 1048, 1057, 1066, 1075, 1084, 1093, 1102, 1111, 1120, - 1129, 1138, 1147, 1156, 1165, 1174, 1183, 1192, 1201, 1210, - 1219, 1229, 1239, 1249, 1259, 1269, 1279, 1289, 1299, 1309, - 1318, 1327, 1336, 1345, 1354, 1363, 1372, 1383, 1396, 1409, - 1424, 1522, 1527, 1532, 1537, 1538, 1539, 1540, 1541, 1542, - 1544, 1562, 1575, 1580, 1584, 1586, 1588, 1590 + 571, 580, 591, 602, 611, 621, 630, 639, 648, 658, + 667, 676, 685, 694, 704, 713, 722, 731, 740, 749, + 758, 767, 776, 785, 794, 804, 815, 825, 834, 844, + 854, 864, 874, 884, 893, 903, 912, 921, 930, 939, + 949, 959, 969, 978, 987, 996, 1005, 1014, 1023, 1032, + + 1041, 1050, 1059, 1068, 1077, 1086, 1095, 1104, 1113, 1122, + 1131, 1140, 1149, 1158, 1167, 1176, 1185, 1194, 1203, 1212, + 1221, 1231, 1241, 1251, 1261, 1271, 1281, 1291, 1301, 1311, + 1320, 1329, 1338, 1347, 1356, 1365, 1374, 1385, 1398, 1411, + 1426, 1524, 1529, 1534, 1539, 1540, 1541, 1542, 1543, 1544, + 1546, 1564, 1577, 1582, 1586, 1588, 1590, 1592 } ; /* The intent behind this definition is that it'll catch @@ -2698,7 +2698,7 @@ YY_RULE_SETUP YY_BREAK case 53: YY_RULE_SETUP -#line 590 "dhcp4_lexer.ll" +#line 591 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2712,7 +2712,7 @@ YY_RULE_SETUP YY_BREAK case 54: YY_RULE_SETUP -#line 600 "dhcp4_lexer.ll" +#line 602 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2724,7 +2724,7 @@ YY_RULE_SETUP YY_BREAK case 55: YY_RULE_SETUP -#line 609 "dhcp4_lexer.ll" +#line 611 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2737,7 +2737,7 @@ YY_RULE_SETUP YY_BREAK case 56: YY_RULE_SETUP -#line 619 "dhcp4_lexer.ll" +#line 621 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2749,7 +2749,7 @@ YY_RULE_SETUP YY_BREAK case 57: YY_RULE_SETUP -#line 628 "dhcp4_lexer.ll" +#line 630 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2761,7 +2761,7 @@ YY_RULE_SETUP YY_BREAK case 58: YY_RULE_SETUP -#line 637 "dhcp4_lexer.ll" +#line 639 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2773,7 +2773,7 @@ YY_RULE_SETUP YY_BREAK case 59: YY_RULE_SETUP -#line 646 "dhcp4_lexer.ll" +#line 648 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2786,7 +2786,7 @@ YY_RULE_SETUP YY_BREAK case 60: YY_RULE_SETUP -#line 656 "dhcp4_lexer.ll" +#line 658 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::RESERVATION_MODE: @@ -2798,7 +2798,7 @@ YY_RULE_SETUP YY_BREAK case 61: YY_RULE_SETUP -#line 665 "dhcp4_lexer.ll" +#line 667 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::RESERVATION_MODE: @@ -2810,7 +2810,7 @@ YY_RULE_SETUP YY_BREAK case 62: YY_RULE_SETUP -#line 674 "dhcp4_lexer.ll" +#line 676 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::RESERVATION_MODE: @@ -2822,7 +2822,7 @@ YY_RULE_SETUP YY_BREAK case 63: YY_RULE_SETUP -#line 683 "dhcp4_lexer.ll" +#line 685 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::RESERVATION_MODE: @@ -2834,7 +2834,7 @@ YY_RULE_SETUP YY_BREAK case 64: YY_RULE_SETUP -#line 692 "dhcp4_lexer.ll" +#line 694 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OPTION_DEF: @@ -2847,7 +2847,7 @@ YY_RULE_SETUP YY_BREAK case 65: YY_RULE_SETUP -#line 702 "dhcp4_lexer.ll" +#line 704 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -2859,7 +2859,7 @@ YY_RULE_SETUP YY_BREAK case 66: YY_RULE_SETUP -#line 711 "dhcp4_lexer.ll" +#line 713 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::CONFIG: @@ -2871,7 +2871,7 @@ YY_RULE_SETUP YY_BREAK case 67: YY_RULE_SETUP -#line 720 "dhcp4_lexer.ll" +#line 722 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::LOGGING: @@ -2883,7 +2883,7 @@ YY_RULE_SETUP YY_BREAK case 68: YY_RULE_SETUP -#line 729 "dhcp4_lexer.ll" +#line 731 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::LOGGERS: @@ -2895,7 +2895,7 @@ YY_RULE_SETUP YY_BREAK case 69: YY_RULE_SETUP -#line 738 "dhcp4_lexer.ll" +#line 740 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OUTPUT_OPTIONS: @@ -2907,7 +2907,7 @@ YY_RULE_SETUP YY_BREAK case 70: YY_RULE_SETUP -#line 747 "dhcp4_lexer.ll" +#line 749 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::LOGGERS: @@ -2919,7 +2919,7 @@ YY_RULE_SETUP YY_BREAK case 71: YY_RULE_SETUP -#line 756 "dhcp4_lexer.ll" +#line 758 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OUTPUT_OPTIONS: @@ -2931,7 +2931,7 @@ YY_RULE_SETUP YY_BREAK case 72: YY_RULE_SETUP -#line 765 "dhcp4_lexer.ll" +#line 767 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OUTPUT_OPTIONS: @@ -2943,7 +2943,7 @@ YY_RULE_SETUP YY_BREAK case 73: YY_RULE_SETUP -#line 774 "dhcp4_lexer.ll" +#line 776 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OUTPUT_OPTIONS: @@ -2955,7 +2955,7 @@ YY_RULE_SETUP YY_BREAK case 74: YY_RULE_SETUP -#line 783 "dhcp4_lexer.ll" +#line 785 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::LOGGERS: @@ -2967,7 +2967,7 @@ YY_RULE_SETUP YY_BREAK case 75: YY_RULE_SETUP -#line 792 "dhcp4_lexer.ll" +#line 794 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -2980,7 +2980,7 @@ YY_RULE_SETUP YY_BREAK case 76: YY_RULE_SETUP -#line 802 "dhcp4_lexer.ll" +#line 804 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -2994,7 +2994,7 @@ YY_RULE_SETUP YY_BREAK case 77: YY_RULE_SETUP -#line 813 "dhcp4_lexer.ll" +#line 815 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::CLIENT_CLASSES: @@ -3007,7 +3007,7 @@ YY_RULE_SETUP YY_BREAK case 78: YY_RULE_SETUP -#line 823 "dhcp4_lexer.ll" +#line 825 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -3019,7 +3019,7 @@ YY_RULE_SETUP YY_BREAK case 79: YY_RULE_SETUP -#line 832 "dhcp4_lexer.ll" +#line 834 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS: @@ -3032,7 +3032,7 @@ YY_RULE_SETUP YY_BREAK case 80: YY_RULE_SETUP -#line 842 "dhcp4_lexer.ll" +#line 844 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS: @@ -3045,7 +3045,7 @@ YY_RULE_SETUP YY_BREAK case 81: YY_RULE_SETUP -#line 852 "dhcp4_lexer.ll" +#line 854 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS: @@ -3058,7 +3058,7 @@ YY_RULE_SETUP YY_BREAK case 82: YY_RULE_SETUP -#line 862 "dhcp4_lexer.ll" +#line 864 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS: @@ -3071,7 +3071,7 @@ YY_RULE_SETUP YY_BREAK case 83: YY_RULE_SETUP -#line 872 "dhcp4_lexer.ll" +#line 874 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::HOST_RESERVATION_IDENTIFIERS: @@ -3084,7 +3084,7 @@ YY_RULE_SETUP YY_BREAK case 84: YY_RULE_SETUP -#line 882 "dhcp4_lexer.ll" +#line 884 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::RESERVATIONS: @@ -3096,7 +3096,7 @@ YY_RULE_SETUP YY_BREAK case 85: YY_RULE_SETUP -#line 891 "dhcp4_lexer.ll" +#line 893 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OPTION_DEF: @@ -3109,7 +3109,7 @@ YY_RULE_SETUP YY_BREAK case 86: YY_RULE_SETUP -#line 901 "dhcp4_lexer.ll" +#line 903 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OPTION_DATA: @@ -3121,7 +3121,7 @@ YY_RULE_SETUP YY_BREAK case 87: YY_RULE_SETUP -#line 910 "dhcp4_lexer.ll" +#line 912 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OPTION_DEF: @@ -3133,7 +3133,7 @@ YY_RULE_SETUP YY_BREAK case 88: YY_RULE_SETUP -#line 919 "dhcp4_lexer.ll" +#line 921 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OPTION_DEF: @@ -3145,7 +3145,7 @@ YY_RULE_SETUP YY_BREAK case 89: YY_RULE_SETUP -#line 928 "dhcp4_lexer.ll" +#line 930 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::OPTION_DEF: @@ -3157,7 +3157,7 @@ YY_RULE_SETUP YY_BREAK case 90: YY_RULE_SETUP -#line 937 "dhcp4_lexer.ll" +#line 939 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -3170,7 +3170,7 @@ YY_RULE_SETUP YY_BREAK case 91: YY_RULE_SETUP -#line 947 "dhcp4_lexer.ll" +#line 949 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::RELAY: @@ -3183,7 +3183,7 @@ YY_RULE_SETUP YY_BREAK case 92: YY_RULE_SETUP -#line 957 "dhcp4_lexer.ll" +#line 959 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3195,7 +3195,7 @@ YY_RULE_SETUP YY_BREAK case 93: YY_RULE_SETUP -#line 967 "dhcp4_lexer.ll" +#line 969 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::HOOKS_LIBRARIES: @@ -3207,7 +3207,7 @@ YY_RULE_SETUP YY_BREAK case 94: YY_RULE_SETUP -#line 976 "dhcp4_lexer.ll" +#line 978 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::HOOKS_LIBRARIES: @@ -3219,7 +3219,7 @@ YY_RULE_SETUP YY_BREAK case 95: YY_RULE_SETUP -#line 985 "dhcp4_lexer.ll" +#line 987 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3231,7 +3231,7 @@ YY_RULE_SETUP YY_BREAK case 96: YY_RULE_SETUP -#line 994 "dhcp4_lexer.ll" +#line 996 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING: @@ -3243,7 +3243,7 @@ YY_RULE_SETUP YY_BREAK case 97: YY_RULE_SETUP -#line 1003 "dhcp4_lexer.ll" +#line 1005 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING: @@ -3255,7 +3255,7 @@ YY_RULE_SETUP YY_BREAK case 98: YY_RULE_SETUP -#line 1012 "dhcp4_lexer.ll" +#line 1014 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING: @@ -3267,7 +3267,7 @@ YY_RULE_SETUP YY_BREAK case 99: YY_RULE_SETUP -#line 1021 "dhcp4_lexer.ll" +#line 1023 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING: @@ -3279,7 +3279,7 @@ YY_RULE_SETUP YY_BREAK case 100: YY_RULE_SETUP -#line 1030 "dhcp4_lexer.ll" +#line 1032 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING: @@ -3291,7 +3291,7 @@ YY_RULE_SETUP YY_BREAK case 101: YY_RULE_SETUP -#line 1039 "dhcp4_lexer.ll" +#line 1041 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::EXPIRED_LEASES_PROCESSING: @@ -3303,7 +3303,7 @@ YY_RULE_SETUP YY_BREAK case 102: YY_RULE_SETUP -#line 1048 "dhcp4_lexer.ll" +#line 1050 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3315,7 +3315,7 @@ YY_RULE_SETUP YY_BREAK case 103: YY_RULE_SETUP -#line 1057 "dhcp4_lexer.ll" +#line 1059 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3327,7 +3327,7 @@ YY_RULE_SETUP YY_BREAK case 104: YY_RULE_SETUP -#line 1066 "dhcp4_lexer.ll" +#line 1068 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::CONTROL_SOCKET: @@ -3339,7 +3339,7 @@ YY_RULE_SETUP YY_BREAK case 105: YY_RULE_SETUP -#line 1075 "dhcp4_lexer.ll" +#line 1077 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::CONTROL_SOCKET: @@ -3351,7 +3351,7 @@ YY_RULE_SETUP YY_BREAK case 106: YY_RULE_SETUP -#line 1084 "dhcp4_lexer.ll" +#line 1086 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3363,7 +3363,7 @@ YY_RULE_SETUP YY_BREAK case 107: YY_RULE_SETUP -#line 1093 "dhcp4_lexer.ll" +#line 1095 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3375,7 +3375,7 @@ YY_RULE_SETUP YY_BREAK case 108: YY_RULE_SETUP -#line 1102 "dhcp4_lexer.ll" +#line 1104 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3387,7 +3387,7 @@ YY_RULE_SETUP YY_BREAK case 109: YY_RULE_SETUP -#line 1111 "dhcp4_lexer.ll" +#line 1113 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3399,7 +3399,7 @@ YY_RULE_SETUP YY_BREAK case 110: YY_RULE_SETUP -#line 1120 "dhcp4_lexer.ll" +#line 1122 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3411,7 +3411,7 @@ YY_RULE_SETUP YY_BREAK case 111: YY_RULE_SETUP -#line 1129 "dhcp4_lexer.ll" +#line 1131 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3423,7 +3423,7 @@ YY_RULE_SETUP YY_BREAK case 112: YY_RULE_SETUP -#line 1138 "dhcp4_lexer.ll" +#line 1140 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3435,7 +3435,7 @@ YY_RULE_SETUP YY_BREAK case 113: YY_RULE_SETUP -#line 1147 "dhcp4_lexer.ll" +#line 1149 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3447,7 +3447,7 @@ YY_RULE_SETUP YY_BREAK case 114: YY_RULE_SETUP -#line 1156 "dhcp4_lexer.ll" +#line 1158 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3459,7 +3459,7 @@ YY_RULE_SETUP YY_BREAK case 115: YY_RULE_SETUP -#line 1165 "dhcp4_lexer.ll" +#line 1167 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3471,7 +3471,7 @@ YY_RULE_SETUP YY_BREAK case 116: YY_RULE_SETUP -#line 1174 "dhcp4_lexer.ll" +#line 1176 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3483,7 +3483,7 @@ YY_RULE_SETUP YY_BREAK case 117: YY_RULE_SETUP -#line 1183 "dhcp4_lexer.ll" +#line 1185 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3495,7 +3495,7 @@ YY_RULE_SETUP YY_BREAK case 118: YY_RULE_SETUP -#line 1192 "dhcp4_lexer.ll" +#line 1194 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3507,7 +3507,7 @@ YY_RULE_SETUP YY_BREAK case 119: YY_RULE_SETUP -#line 1201 "dhcp4_lexer.ll" +#line 1203 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3519,7 +3519,7 @@ YY_RULE_SETUP YY_BREAK case 120: YY_RULE_SETUP -#line 1210 "dhcp4_lexer.ll" +#line 1212 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: @@ -3531,7 +3531,7 @@ YY_RULE_SETUP YY_BREAK case 121: YY_RULE_SETUP -#line 1219 "dhcp4_lexer.ll" +#line 1221 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::NCR_PROTOCOL) { @@ -3544,7 +3544,7 @@ YY_RULE_SETUP YY_BREAK case 122: YY_RULE_SETUP -#line 1229 "dhcp4_lexer.ll" +#line 1231 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::NCR_PROTOCOL) { @@ -3557,7 +3557,7 @@ YY_RULE_SETUP YY_BREAK case 123: YY_RULE_SETUP -#line 1239 "dhcp4_lexer.ll" +#line 1241 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::NCR_FORMAT) { @@ -3570,7 +3570,7 @@ YY_RULE_SETUP YY_BREAK case 124: YY_RULE_SETUP -#line 1249 "dhcp4_lexer.ll" +#line 1251 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) { @@ -3583,7 +3583,7 @@ YY_RULE_SETUP YY_BREAK case 125: YY_RULE_SETUP -#line 1259 "dhcp4_lexer.ll" +#line 1261 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) { @@ -3596,7 +3596,7 @@ YY_RULE_SETUP YY_BREAK case 126: YY_RULE_SETUP -#line 1269 "dhcp4_lexer.ll" +#line 1271 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) { @@ -3609,7 +3609,7 @@ YY_RULE_SETUP YY_BREAK case 127: YY_RULE_SETUP -#line 1279 "dhcp4_lexer.ll" +#line 1281 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) { @@ -3622,7 +3622,7 @@ YY_RULE_SETUP YY_BREAK case 128: YY_RULE_SETUP -#line 1289 "dhcp4_lexer.ll" +#line 1291 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) { @@ -3635,7 +3635,7 @@ YY_RULE_SETUP YY_BREAK case 129: YY_RULE_SETUP -#line 1299 "dhcp4_lexer.ll" +#line 1301 "dhcp4_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser4Context::REPLACE_CLIENT_NAME) { @@ -3648,7 +3648,7 @@ YY_RULE_SETUP YY_BREAK case 130: YY_RULE_SETUP -#line 1309 "dhcp4_lexer.ll" +#line 1311 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::CONFIG: @@ -3660,7 +3660,7 @@ YY_RULE_SETUP YY_BREAK case 131: YY_RULE_SETUP -#line 1318 "dhcp4_lexer.ll" +#line 1320 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::CONFIG: @@ -3672,7 +3672,7 @@ YY_RULE_SETUP YY_BREAK case 132: YY_RULE_SETUP -#line 1327 "dhcp4_lexer.ll" +#line 1329 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::CONFIG: @@ -3684,7 +3684,7 @@ YY_RULE_SETUP YY_BREAK case 133: YY_RULE_SETUP -#line 1336 "dhcp4_lexer.ll" +#line 1338 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -3696,7 +3696,7 @@ YY_RULE_SETUP YY_BREAK case 134: YY_RULE_SETUP -#line 1345 "dhcp4_lexer.ll" +#line 1347 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -3708,7 +3708,7 @@ YY_RULE_SETUP YY_BREAK case 135: YY_RULE_SETUP -#line 1354 "dhcp4_lexer.ll" +#line 1356 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::SUBNET4: @@ -3720,7 +3720,7 @@ YY_RULE_SETUP YY_BREAK case 136: YY_RULE_SETUP -#line 1363 "dhcp4_lexer.ll" +#line 1365 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3732,7 +3732,7 @@ YY_RULE_SETUP YY_BREAK case 137: YY_RULE_SETUP -#line 1372 "dhcp4_lexer.ll" +#line 1374 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3746,7 +3746,7 @@ YY_RULE_SETUP YY_BREAK case 138: YY_RULE_SETUP -#line 1383 "dhcp4_lexer.ll" +#line 1385 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3762,7 +3762,7 @@ YY_RULE_SETUP YY_BREAK case 139: YY_RULE_SETUP -#line 1396 "dhcp4_lexer.ll" +#line 1398 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3778,7 +3778,7 @@ YY_RULE_SETUP YY_BREAK case 140: YY_RULE_SETUP -#line 1409 "dhcp4_lexer.ll" +#line 1411 "dhcp4_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP4: @@ -3794,7 +3794,7 @@ YY_RULE_SETUP YY_BREAK case 141: YY_RULE_SETUP -#line 1424 "dhcp4_lexer.ll" +#line 1426 "dhcp4_lexer.ll" { /* A string has been matched. It contains the actual string and single quotes. We need to get those quotes out of the way and just use its content, e.g. @@ -3896,7 +3896,7 @@ YY_RULE_SETUP case 142: /* rule 142 can match eol */ YY_RULE_SETUP -#line 1522 "dhcp4_lexer.ll" +#line 1524 "dhcp4_lexer.ll" { /* Bad string with a forbidden control character inside */ driver.error(driver.loc_, "Invalid control in " + std::string(yytext)); @@ -3905,7 +3905,7 @@ YY_RULE_SETUP case 143: /* rule 143 can match eol */ YY_RULE_SETUP -#line 1527 "dhcp4_lexer.ll" +#line 1529 "dhcp4_lexer.ll" { /* Bad string with a bad escape inside */ driver.error(driver.loc_, "Bad escape in " + std::string(yytext)); @@ -3913,7 +3913,7 @@ YY_RULE_SETUP YY_BREAK case 144: YY_RULE_SETUP -#line 1532 "dhcp4_lexer.ll" +#line 1534 "dhcp4_lexer.ll" { /* Bad string with an open escape at the end */ driver.error(driver.loc_, "Overflow escape in " + std::string(yytext)); @@ -3921,37 +3921,37 @@ YY_RULE_SETUP YY_BREAK case 145: YY_RULE_SETUP -#line 1537 "dhcp4_lexer.ll" +#line 1539 "dhcp4_lexer.ll" { return isc::dhcp::Dhcp4Parser::make_LSQUARE_BRACKET(driver.loc_); } YY_BREAK case 146: YY_RULE_SETUP -#line 1538 "dhcp4_lexer.ll" +#line 1540 "dhcp4_lexer.ll" { return isc::dhcp::Dhcp4Parser::make_RSQUARE_BRACKET(driver.loc_); } YY_BREAK case 147: YY_RULE_SETUP -#line 1539 "dhcp4_lexer.ll" +#line 1541 "dhcp4_lexer.ll" { return isc::dhcp::Dhcp4Parser::make_LCURLY_BRACKET(driver.loc_); } YY_BREAK case 148: YY_RULE_SETUP -#line 1540 "dhcp4_lexer.ll" +#line 1542 "dhcp4_lexer.ll" { return isc::dhcp::Dhcp4Parser::make_RCURLY_BRACKET(driver.loc_); } YY_BREAK case 149: YY_RULE_SETUP -#line 1541 "dhcp4_lexer.ll" +#line 1543 "dhcp4_lexer.ll" { return isc::dhcp::Dhcp4Parser::make_COMMA(driver.loc_); } YY_BREAK case 150: YY_RULE_SETUP -#line 1542 "dhcp4_lexer.ll" +#line 1544 "dhcp4_lexer.ll" { return isc::dhcp::Dhcp4Parser::make_COLON(driver.loc_); } YY_BREAK case 151: YY_RULE_SETUP -#line 1544 "dhcp4_lexer.ll" +#line 1546 "dhcp4_lexer.ll" { /* An integer was found. */ std::string tmp(yytext); @@ -3972,7 +3972,7 @@ YY_RULE_SETUP YY_BREAK case 152: YY_RULE_SETUP -#line 1562 "dhcp4_lexer.ll" +#line 1564 "dhcp4_lexer.ll" { /* A floating point was found. */ std::string tmp(yytext); @@ -3988,7 +3988,7 @@ YY_RULE_SETUP YY_BREAK case 153: YY_RULE_SETUP -#line 1575 "dhcp4_lexer.ll" +#line 1577 "dhcp4_lexer.ll" { string tmp(yytext); return isc::dhcp::Dhcp4Parser::make_BOOLEAN(tmp == "true", driver.loc_); @@ -3996,33 +3996,33 @@ YY_RULE_SETUP YY_BREAK case 154: YY_RULE_SETUP -#line 1580 "dhcp4_lexer.ll" +#line 1582 "dhcp4_lexer.ll" { return isc::dhcp::Dhcp4Parser::make_NULL_TYPE(driver.loc_); } YY_BREAK case 155: YY_RULE_SETUP -#line 1584 "dhcp4_lexer.ll" +#line 1586 "dhcp4_lexer.ll" driver.error (driver.loc_, "JSON true reserved keyword is lower case only"); YY_BREAK case 156: YY_RULE_SETUP -#line 1586 "dhcp4_lexer.ll" +#line 1588 "dhcp4_lexer.ll" driver.error (driver.loc_, "JSON false reserved keyword is lower case only"); YY_BREAK case 157: YY_RULE_SETUP -#line 1588 "dhcp4_lexer.ll" +#line 1590 "dhcp4_lexer.ll" driver.error (driver.loc_, "JSON null reserved keyword is lower case only"); YY_BREAK case 158: YY_RULE_SETUP -#line 1590 "dhcp4_lexer.ll" +#line 1592 "dhcp4_lexer.ll" driver.error (driver.loc_, "Invalid character: " + std::string(yytext)); YY_BREAK case YY_STATE_EOF(INITIAL): -#line 1592 "dhcp4_lexer.ll" +#line 1594 "dhcp4_lexer.ll" { if (driver.states_.empty()) { return isc::dhcp::Dhcp4Parser::make_END(driver.loc_); @@ -4048,10 +4048,10 @@ case YY_STATE_EOF(INITIAL): YY_BREAK case 159: YY_RULE_SETUP -#line 1615 "dhcp4_lexer.ll" +#line 1617 "dhcp4_lexer.ll" ECHO; YY_BREAK -#line 4052 "dhcp4_lexer.cc" +#line 4054 "dhcp4_lexer.cc" case YY_END_OF_BUFFER: { @@ -5156,7 +5156,7 @@ void yyfree (void * ptr ) /* %ok-for-header */ -#line 1615 "dhcp4_lexer.ll" +#line 1617 "dhcp4_lexer.ll" using namespace isc::dhcp; diff --git a/src/bin/dhcp6/dhcp6_lexer.cc b/src/bin/dhcp6/dhcp6_lexer.cc index d277619f12..7d62a5b02d 100644 --- a/src/bin/dhcp6/dhcp6_lexer.cc +++ b/src/bin/dhcp6/dhcp6_lexer.cc @@ -1577,17 +1577,17 @@ static const flex_int16_t yy_rule_linenum[162] = 459, 468, 480, 489, 498, 507, 516, 526, 536, 546, 556, 567, 577, 587, 597, 607, 618, 629, 640, 651, 660, 670, 679, 688, 704, 720, 729, 738, 747, 756, - 765, 774, 783, 792, 801, 810, 821, 832, 841, 851, - 861, 870, 880, 890, 899, 908, 917, 926, 936, 945, - 954, 963, 972, 981, 990, 999, 1008, 1017, 1027, 1036, - - 1045, 1055, 1066, 1076, 1085, 1094, 1103, 1114, 1124, 1133, - 1143, 1153, 1162, 1171, 1180, 1189, 1199, 1208, 1218, 1227, - 1236, 1245, 1254, 1263, 1272, 1281, 1290, 1299, 1308, 1317, - 1326, 1335, 1344, 1353, 1362, 1371, 1380, 1389, 1398, 1407, - 1416, 1425, 1434, 1444, 1542, 1547, 1552, 1557, 1558, 1559, - 1560, 1561, 1562, 1564, 1582, 1595, 1600, 1604, 1606, 1608, - 1610 + 765, 774, 783, 792, 801, 810, 822, 834, 843, 853, + 863, 872, 882, 892, 901, 910, 919, 928, 938, 947, + 956, 965, 974, 983, 992, 1001, 1010, 1019, 1029, 1038, + + 1047, 1057, 1068, 1078, 1087, 1096, 1105, 1116, 1126, 1135, + 1145, 1155, 1164, 1173, 1182, 1191, 1201, 1210, 1220, 1229, + 1238, 1247, 1256, 1265, 1274, 1283, 1292, 1301, 1310, 1319, + 1328, 1337, 1346, 1355, 1364, 1373, 1382, 1391, 1400, 1409, + 1418, 1427, 1436, 1446, 1544, 1549, 1554, 1559, 1560, 1561, + 1562, 1563, 1564, 1566, 1584, 1597, 1602, 1606, 1608, 1610, + 1612 } ; /* The intent behind this definition is that it'll catch @@ -2980,6 +2980,7 @@ YY_RULE_SETUP case isc::dhcp::Parser6Context::POOLS: case isc::dhcp::Parser6Context::PD_POOLS: case isc::dhcp::Parser6Context::SUBNET6: + case isc::dhcp::Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_USER_CONTEXT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("user-context", driver.loc_); @@ -2988,12 +2989,13 @@ YY_RULE_SETUP YY_BREAK case 77: YY_RULE_SETUP -#line 821 "dhcp6_lexer.ll" +#line 822 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::POOLS: case isc::dhcp::Parser6Context::PD_POOLS: case isc::dhcp::Parser6Context::SUBNET6: + case isc::dhcp::Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_COMMENT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("comment", driver.loc_); @@ -3002,7 +3004,7 @@ YY_RULE_SETUP YY_BREAK case 78: YY_RULE_SETUP -#line 832 "dhcp6_lexer.ll" +#line 834 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3014,7 +3016,7 @@ YY_RULE_SETUP YY_BREAK case 79: YY_RULE_SETUP -#line 841 "dhcp6_lexer.ll" +#line 843 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3027,7 +3029,7 @@ YY_RULE_SETUP YY_BREAK case 80: YY_RULE_SETUP -#line 851 "dhcp6_lexer.ll" +#line 853 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3040,7 +3042,7 @@ YY_RULE_SETUP YY_BREAK case 81: YY_RULE_SETUP -#line 861 "dhcp6_lexer.ll" +#line 863 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3052,7 +3054,7 @@ YY_RULE_SETUP YY_BREAK case 82: YY_RULE_SETUP -#line 870 "dhcp6_lexer.ll" +#line 872 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3065,7 +3067,7 @@ YY_RULE_SETUP YY_BREAK case 83: YY_RULE_SETUP -#line 880 "dhcp6_lexer.ll" +#line 882 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3078,7 +3080,7 @@ YY_RULE_SETUP YY_BREAK case 84: YY_RULE_SETUP -#line 890 "dhcp6_lexer.ll" +#line 892 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: @@ -3090,7 +3092,7 @@ YY_RULE_SETUP YY_BREAK case 85: YY_RULE_SETUP -#line 899 "dhcp6_lexer.ll" +#line 901 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: @@ -3102,7 +3104,7 @@ YY_RULE_SETUP YY_BREAK case 86: YY_RULE_SETUP -#line 908 "dhcp6_lexer.ll" +#line 910 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: @@ -3114,7 +3116,7 @@ YY_RULE_SETUP YY_BREAK case 87: YY_RULE_SETUP -#line 917 "dhcp6_lexer.ll" +#line 919 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: @@ -3126,7 +3128,7 @@ YY_RULE_SETUP YY_BREAK case 88: YY_RULE_SETUP -#line 926 "dhcp6_lexer.ll" +#line 928 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: @@ -3139,7 +3141,7 @@ YY_RULE_SETUP YY_BREAK case 89: YY_RULE_SETUP -#line 936 "dhcp6_lexer.ll" +#line 938 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3151,7 +3153,7 @@ YY_RULE_SETUP YY_BREAK case 90: YY_RULE_SETUP -#line 945 "dhcp6_lexer.ll" +#line 947 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3163,7 +3165,7 @@ YY_RULE_SETUP YY_BREAK case 91: YY_RULE_SETUP -#line 954 "dhcp6_lexer.ll" +#line 956 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3175,7 +3177,7 @@ YY_RULE_SETUP YY_BREAK case 92: YY_RULE_SETUP -#line 963 "dhcp6_lexer.ll" +#line 965 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: @@ -3187,7 +3189,7 @@ YY_RULE_SETUP YY_BREAK case 93: YY_RULE_SETUP -#line 972 "dhcp6_lexer.ll" +#line 974 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGING: @@ -3199,7 +3201,7 @@ YY_RULE_SETUP YY_BREAK case 94: YY_RULE_SETUP -#line 981 "dhcp6_lexer.ll" +#line 983 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGERS: @@ -3211,7 +3213,7 @@ YY_RULE_SETUP YY_BREAK case 95: YY_RULE_SETUP -#line 990 "dhcp6_lexer.ll" +#line 992 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: @@ -3223,7 +3225,7 @@ YY_RULE_SETUP YY_BREAK case 96: YY_RULE_SETUP -#line 999 "dhcp6_lexer.ll" +#line 1001 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: @@ -3235,7 +3237,7 @@ YY_RULE_SETUP YY_BREAK case 97: YY_RULE_SETUP -#line 1008 "dhcp6_lexer.ll" +#line 1010 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: @@ -3247,7 +3249,7 @@ YY_RULE_SETUP YY_BREAK case 98: YY_RULE_SETUP -#line 1017 "dhcp6_lexer.ll" +#line 1019 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: @@ -3259,7 +3261,7 @@ YY_RULE_SETUP YY_BREAK case 99: YY_RULE_SETUP -#line 1027 "dhcp6_lexer.ll" +#line 1029 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGERS: @@ -3271,7 +3273,7 @@ YY_RULE_SETUP YY_BREAK case 100: YY_RULE_SETUP -#line 1036 "dhcp6_lexer.ll" +#line 1038 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGERS: @@ -3283,7 +3285,7 @@ YY_RULE_SETUP YY_BREAK case 101: YY_RULE_SETUP -#line 1045 "dhcp6_lexer.ll" +#line 1047 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3296,7 +3298,7 @@ YY_RULE_SETUP YY_BREAK case 102: YY_RULE_SETUP -#line 1055 "dhcp6_lexer.ll" +#line 1057 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3310,7 +3312,7 @@ YY_RULE_SETUP YY_BREAK case 103: YY_RULE_SETUP -#line 1066 "dhcp6_lexer.ll" +#line 1068 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CLIENT_CLASSES: @@ -3323,7 +3325,7 @@ YY_RULE_SETUP YY_BREAK case 104: YY_RULE_SETUP -#line 1076 "dhcp6_lexer.ll" +#line 1078 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3335,7 +3337,7 @@ YY_RULE_SETUP YY_BREAK case 105: YY_RULE_SETUP -#line 1085 "dhcp6_lexer.ll" +#line 1087 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATIONS: @@ -3347,7 +3349,7 @@ YY_RULE_SETUP YY_BREAK case 106: YY_RULE_SETUP -#line 1094 "dhcp6_lexer.ll" +#line 1096 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATIONS: @@ -3359,7 +3361,7 @@ YY_RULE_SETUP YY_BREAK case 107: YY_RULE_SETUP -#line 1103 "dhcp6_lexer.ll" +#line 1105 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::MAC_SOURCES: @@ -3373,7 +3375,7 @@ YY_RULE_SETUP YY_BREAK case 108: YY_RULE_SETUP -#line 1114 "dhcp6_lexer.ll" +#line 1116 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOST_RESERVATION_IDENTIFIERS: @@ -3386,7 +3388,7 @@ YY_RULE_SETUP YY_BREAK case 109: YY_RULE_SETUP -#line 1124 "dhcp6_lexer.ll" +#line 1126 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATIONS: @@ -3398,7 +3400,7 @@ YY_RULE_SETUP YY_BREAK case 110: YY_RULE_SETUP -#line 1133 "dhcp6_lexer.ll" +#line 1135 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOST_RESERVATION_IDENTIFIERS: @@ -3411,7 +3413,7 @@ YY_RULE_SETUP YY_BREAK case 111: YY_RULE_SETUP -#line 1143 "dhcp6_lexer.ll" +#line 1145 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: @@ -3424,7 +3426,7 @@ YY_RULE_SETUP YY_BREAK case 112: YY_RULE_SETUP -#line 1153 "dhcp6_lexer.ll" +#line 1155 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DATA: @@ -3436,7 +3438,7 @@ YY_RULE_SETUP YY_BREAK case 113: YY_RULE_SETUP -#line 1162 "dhcp6_lexer.ll" +#line 1164 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: @@ -3448,7 +3450,7 @@ YY_RULE_SETUP YY_BREAK case 114: YY_RULE_SETUP -#line 1171 "dhcp6_lexer.ll" +#line 1173 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: @@ -3460,7 +3462,7 @@ YY_RULE_SETUP YY_BREAK case 115: YY_RULE_SETUP -#line 1180 "dhcp6_lexer.ll" +#line 1182 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: @@ -3472,7 +3474,7 @@ YY_RULE_SETUP YY_BREAK case 116: YY_RULE_SETUP -#line 1189 "dhcp6_lexer.ll" +#line 1191 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: @@ -3485,7 +3487,7 @@ YY_RULE_SETUP YY_BREAK case 117: YY_RULE_SETUP -#line 1199 "dhcp6_lexer.ll" +#line 1201 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RELAY: @@ -3497,7 +3499,7 @@ YY_RULE_SETUP YY_BREAK case 118: YY_RULE_SETUP -#line 1208 "dhcp6_lexer.ll" +#line 1210 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3509,7 +3511,7 @@ YY_RULE_SETUP YY_BREAK case 119: YY_RULE_SETUP -#line 1218 "dhcp6_lexer.ll" +#line 1220 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOOKS_LIBRARIES: @@ -3521,7 +3523,7 @@ YY_RULE_SETUP YY_BREAK case 120: YY_RULE_SETUP -#line 1227 "dhcp6_lexer.ll" +#line 1229 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOOKS_LIBRARIES: @@ -3533,7 +3535,7 @@ YY_RULE_SETUP YY_BREAK case 121: YY_RULE_SETUP -#line 1236 "dhcp6_lexer.ll" +#line 1238 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3545,7 +3547,7 @@ YY_RULE_SETUP YY_BREAK case 122: YY_RULE_SETUP -#line 1245 "dhcp6_lexer.ll" +#line 1247 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DUID_TYPE: @@ -3557,7 +3559,7 @@ YY_RULE_SETUP YY_BREAK case 123: YY_RULE_SETUP -#line 1254 "dhcp6_lexer.ll" +#line 1256 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DUID_TYPE: @@ -3569,7 +3571,7 @@ YY_RULE_SETUP YY_BREAK case 124: YY_RULE_SETUP -#line 1263 "dhcp6_lexer.ll" +#line 1265 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DUID_TYPE: @@ -3581,7 +3583,7 @@ YY_RULE_SETUP YY_BREAK case 125: YY_RULE_SETUP -#line 1272 "dhcp6_lexer.ll" +#line 1274 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: @@ -3593,7 +3595,7 @@ YY_RULE_SETUP YY_BREAK case 126: YY_RULE_SETUP -#line 1281 "dhcp6_lexer.ll" +#line 1283 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: @@ -3605,7 +3607,7 @@ YY_RULE_SETUP YY_BREAK case 127: YY_RULE_SETUP -#line 1290 "dhcp6_lexer.ll" +#line 1292 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: @@ -3617,7 +3619,7 @@ YY_RULE_SETUP YY_BREAK case 128: YY_RULE_SETUP -#line 1299 "dhcp6_lexer.ll" +#line 1301 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: @@ -3629,7 +3631,7 @@ YY_RULE_SETUP YY_BREAK case 129: YY_RULE_SETUP -#line 1308 "dhcp6_lexer.ll" +#line 1310 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3641,7 +3643,7 @@ YY_RULE_SETUP YY_BREAK case 130: YY_RULE_SETUP -#line 1317 "dhcp6_lexer.ll" +#line 1319 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: @@ -3653,7 +3655,7 @@ YY_RULE_SETUP YY_BREAK case 131: YY_RULE_SETUP -#line 1326 "dhcp6_lexer.ll" +#line 1328 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: @@ -3665,7 +3667,7 @@ YY_RULE_SETUP YY_BREAK case 132: YY_RULE_SETUP -#line 1335 "dhcp6_lexer.ll" +#line 1337 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: @@ -3677,7 +3679,7 @@ YY_RULE_SETUP YY_BREAK case 133: YY_RULE_SETUP -#line 1344 "dhcp6_lexer.ll" +#line 1346 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: @@ -3689,7 +3691,7 @@ YY_RULE_SETUP YY_BREAK case 134: YY_RULE_SETUP -#line 1353 "dhcp6_lexer.ll" +#line 1355 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: @@ -3701,7 +3703,7 @@ YY_RULE_SETUP YY_BREAK case 135: YY_RULE_SETUP -#line 1362 "dhcp6_lexer.ll" +#line 1364 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: @@ -3713,7 +3715,7 @@ YY_RULE_SETUP YY_BREAK case 136: YY_RULE_SETUP -#line 1371 "dhcp6_lexer.ll" +#line 1373 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3725,7 +3727,7 @@ YY_RULE_SETUP YY_BREAK case 137: YY_RULE_SETUP -#line 1380 "dhcp6_lexer.ll" +#line 1382 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3737,7 +3739,7 @@ YY_RULE_SETUP YY_BREAK case 138: YY_RULE_SETUP -#line 1389 "dhcp6_lexer.ll" +#line 1391 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONTROL_SOCKET: @@ -3749,7 +3751,7 @@ YY_RULE_SETUP YY_BREAK case 139: YY_RULE_SETUP -#line 1398 "dhcp6_lexer.ll" +#line 1400 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONTROL_SOCKET: @@ -3761,7 +3763,7 @@ YY_RULE_SETUP YY_BREAK case 140: YY_RULE_SETUP -#line 1407 "dhcp6_lexer.ll" +#line 1409 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: @@ -3773,7 +3775,7 @@ YY_RULE_SETUP YY_BREAK case 141: YY_RULE_SETUP -#line 1416 "dhcp6_lexer.ll" +#line 1418 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: @@ -3785,7 +3787,7 @@ YY_RULE_SETUP YY_BREAK case 142: YY_RULE_SETUP -#line 1425 "dhcp6_lexer.ll" +#line 1427 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: @@ -3797,7 +3799,7 @@ YY_RULE_SETUP YY_BREAK case 143: YY_RULE_SETUP -#line 1434 "dhcp6_lexer.ll" +#line 1436 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: @@ -3809,7 +3811,7 @@ YY_RULE_SETUP YY_BREAK case 144: YY_RULE_SETUP -#line 1444 "dhcp6_lexer.ll" +#line 1446 "dhcp6_lexer.ll" { /* A string has been matched. It contains the actual string and single quotes. We need to get those quotes out of the way and just use its content, e.g. @@ -3911,7 +3913,7 @@ YY_RULE_SETUP case 145: /* rule 145 can match eol */ YY_RULE_SETUP -#line 1542 "dhcp6_lexer.ll" +#line 1544 "dhcp6_lexer.ll" { /* Bad string with a forbidden control character inside */ driver.error(driver.loc_, "Invalid control in " + std::string(yytext)); @@ -3920,7 +3922,7 @@ YY_RULE_SETUP case 146: /* rule 146 can match eol */ YY_RULE_SETUP -#line 1547 "dhcp6_lexer.ll" +#line 1549 "dhcp6_lexer.ll" { /* Bad string with a bad escape inside */ driver.error(driver.loc_, "Bad escape in " + std::string(yytext)); @@ -3928,7 +3930,7 @@ YY_RULE_SETUP YY_BREAK case 147: YY_RULE_SETUP -#line 1552 "dhcp6_lexer.ll" +#line 1554 "dhcp6_lexer.ll" { /* Bad string with an open escape at the end */ driver.error(driver.loc_, "Overflow escape in " + std::string(yytext)); @@ -3936,37 +3938,37 @@ YY_RULE_SETUP YY_BREAK case 148: YY_RULE_SETUP -#line 1557 "dhcp6_lexer.ll" +#line 1559 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_LSQUARE_BRACKET(driver.loc_); } YY_BREAK case 149: YY_RULE_SETUP -#line 1558 "dhcp6_lexer.ll" +#line 1560 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_RSQUARE_BRACKET(driver.loc_); } YY_BREAK case 150: YY_RULE_SETUP -#line 1559 "dhcp6_lexer.ll" +#line 1561 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_LCURLY_BRACKET(driver.loc_); } YY_BREAK case 151: YY_RULE_SETUP -#line 1560 "dhcp6_lexer.ll" +#line 1562 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_RCURLY_BRACKET(driver.loc_); } YY_BREAK case 152: YY_RULE_SETUP -#line 1561 "dhcp6_lexer.ll" +#line 1563 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_COMMA(driver.loc_); } YY_BREAK case 153: YY_RULE_SETUP -#line 1562 "dhcp6_lexer.ll" +#line 1564 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_COLON(driver.loc_); } YY_BREAK case 154: YY_RULE_SETUP -#line 1564 "dhcp6_lexer.ll" +#line 1566 "dhcp6_lexer.ll" { /* An integer was found. */ std::string tmp(yytext); @@ -3987,7 +3989,7 @@ YY_RULE_SETUP YY_BREAK case 155: YY_RULE_SETUP -#line 1582 "dhcp6_lexer.ll" +#line 1584 "dhcp6_lexer.ll" { /* A floating point was found. */ std::string tmp(yytext); @@ -4003,7 +4005,7 @@ YY_RULE_SETUP YY_BREAK case 156: YY_RULE_SETUP -#line 1595 "dhcp6_lexer.ll" +#line 1597 "dhcp6_lexer.ll" { string tmp(yytext); return isc::dhcp::Dhcp6Parser::make_BOOLEAN(tmp == "true", driver.loc_); @@ -4011,33 +4013,33 @@ YY_RULE_SETUP YY_BREAK case 157: YY_RULE_SETUP -#line 1600 "dhcp6_lexer.ll" +#line 1602 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_NULL_TYPE(driver.loc_); } YY_BREAK case 158: YY_RULE_SETUP -#line 1604 "dhcp6_lexer.ll" +#line 1606 "dhcp6_lexer.ll" driver.error (driver.loc_, "JSON true reserved keyword is lower case only"); YY_BREAK case 159: YY_RULE_SETUP -#line 1606 "dhcp6_lexer.ll" +#line 1608 "dhcp6_lexer.ll" driver.error (driver.loc_, "JSON false reserved keyword is lower case only"); YY_BREAK case 160: YY_RULE_SETUP -#line 1608 "dhcp6_lexer.ll" +#line 1610 "dhcp6_lexer.ll" driver.error (driver.loc_, "JSON null reserved keyword is lower case only"); YY_BREAK case 161: YY_RULE_SETUP -#line 1610 "dhcp6_lexer.ll" +#line 1612 "dhcp6_lexer.ll" driver.error (driver.loc_, "Invalid character: " + std::string(yytext)); YY_BREAK case YY_STATE_EOF(INITIAL): -#line 1612 "dhcp6_lexer.ll" +#line 1614 "dhcp6_lexer.ll" { if (driver.states_.empty()) { return isc::dhcp::Dhcp6Parser::make_END(driver.loc_); @@ -4063,10 +4065,10 @@ case YY_STATE_EOF(INITIAL): YY_BREAK case 162: YY_RULE_SETUP -#line 1635 "dhcp6_lexer.ll" +#line 1637 "dhcp6_lexer.ll" ECHO; YY_BREAK -#line 4069 "dhcp6_lexer.cc" +#line 4071 "dhcp6_lexer.cc" case YY_END_OF_BUFFER: { @@ -5171,7 +5173,7 @@ void yyfree (void * ptr ) /* %ok-for-header */ -#line 1635 "dhcp6_lexer.ll" +#line 1637 "dhcp6_lexer.ll" using namespace isc::dhcp;