Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
f7a7d8e3
Commit
f7a7d8e3
authored
Dec 16, 2016
by
Tomek Mrugalski
🛰
Browse files
[5017] dhcp4_lexer.cc regenerated.
parent
d0d51539
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_lexer.cc
View file @
f7a7d8e3
...
...
@@ -1058,10 +1058,10 @@ static yyconst flex_int16_t yy_rule_linenum[105] =
549
,
559
,
568
,
578
,
588
,
598
,
608
,
617
,
627
,
636
,
645
,
654
,
663
,
672
,
682
,
692
,
701
,
710
,
719
,
728
,
737
,
746
,
755
,
764
,
773
,
782
,
791
,
800
,
809
,
818
,
827
,
836
,
845
,
854
,
863
,
87
2
,
88
1
,
89
2
,
90
3
,
91
6
,
9
79
,
984
,
98
9
,
99
4
,
995
,
996
,
997
,
998
,
999
,
100
1
,
827
,
836
,
845
,
854
,
863
,
87
3
,
88
3
,
89
4
,
90
5
,
91
8
,
9
81
,
98
6
,
99
1
,
996
,
997
,
998
,
999
,
100
0
,
1001
,
1003
,
101
9
,
103
2
,
103
7
,
104
1
10
2
1
,
103
4
,
103
9
,
104
3
}
;
/* The intent behind this definition is that it'll catch
...
...
@@ -2534,6 +2534,7 @@ YY_RULE_SETUP
#line 863 "dhcp4_lexer.ll"
{
switch
(
driver
.
ctx_
)
{
case
isc
::
dhcp
::
Parser4Context
::
DHCP4
:
case
isc
::
dhcp
::
Parser4Context
::
SUBNET4
:
return
isc
::
dhcp
::
Dhcp4Parser
::
make_ECHO_CLIENT_ID
(
driver
.
loc_
);
default:
...
...
@@ -2543,9 +2544,10 @@ YY_RULE_SETUP
YY_BREAK
case
86
:
YY_RULE_SETUP
#line 87
2
"dhcp4_lexer.ll"
#line 87
3
"dhcp4_lexer.ll"
{
switch
(
driver
.
ctx_
)
{
case
isc
::
dhcp
::
Parser4Context
::
DHCP4
:
case
isc
::
dhcp
::
Parser4Context
::
SUBNET4
:
return
isc
::
dhcp
::
Dhcp4Parser
::
make_MATCH_CLIENT_ID
(
driver
.
loc_
);
default:
...
...
@@ -2555,7 +2557,7 @@ YY_RULE_SETUP
YY_BREAK
case
87
:
YY_RULE_SETUP
#line 88
1
"dhcp4_lexer.ll"
#line 88
3
"dhcp4_lexer.ll"
{
switch
(
driver
.
ctx_
)
{
case
isc
::
dhcp
::
Parser4Context
::
SUBNET4
:
...
...
@@ -2569,7 +2571,7 @@ YY_RULE_SETUP
YY_BREAK
case
88
:
YY_RULE_SETUP
#line 89
2
"dhcp4_lexer.ll"
#line 89
4
"dhcp4_lexer.ll"
{
switch
(
driver
.
ctx_
)
{
case
isc
::
dhcp
::
Parser4Context
::
SUBNET4
:
...
...
@@ -2583,7 +2585,7 @@ YY_RULE_SETUP
YY_BREAK
case
89
:
YY_RULE_SETUP
#line 90
3
"dhcp4_lexer.ll"
#line 90
5
"dhcp4_lexer.ll"
{
switch
(
driver
.
ctx_
)
{
case
isc
::
dhcp
::
Parser4Context
::
SUBNET4
:
...
...
@@ -2597,7 +2599,7 @@ YY_RULE_SETUP
YY_BREAK
case
90
:
YY_RULE_SETUP
#line 91
6
"dhcp4_lexer.ll"
#line 91
8
"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.
...
...
@@ -2664,7 +2666,7 @@ YY_RULE_SETUP
case
91
:
/* rule 91 can match eol */
YY_RULE_SETUP
#line 9
79
"dhcp4_lexer.ll"
#line 9
81
"dhcp4_lexer.ll"
{
// Bad string with a forbidden control character inside
driver
.
error
(
driver
.
loc_
,
"Invalid control in "
+
std
::
string
(
parser4_text
));
...
...
@@ -2673,7 +2675,7 @@ YY_RULE_SETUP
case
92
:
/* rule 92 can match eol */
YY_RULE_SETUP
#line 98
4
"dhcp4_lexer.ll"
#line 98
6
"dhcp4_lexer.ll"
{
// Bad string with a bad escape inside
driver
.
error
(
driver
.
loc_
,
"Bad escape in "
+
std
::
string
(
parser4_text
));
...
...
@@ -2681,7 +2683,7 @@ YY_RULE_SETUP
YY_BREAK
case
93
:
YY_RULE_SETUP
#line 9
8
9 "dhcp4_lexer.ll"
#line 99
1
"dhcp4_lexer.ll"
{
// Bad string with an open escape at the end
driver
.
error
(
driver
.
loc_
,
"Overflow escape in "
+
std
::
string
(
parser4_text
));
...
...
@@ -2689,37 +2691,37 @@ YY_RULE_SETUP
YY_BREAK
case
94
:
YY_RULE_SETUP
#line 99
4
"dhcp4_lexer.ll"
#line 99
6
"dhcp4_lexer.ll"
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_LSQUARE_BRACKET
(
driver
.
loc_
);
}
YY_BREAK
case
95
:
YY_RULE_SETUP
#line 99
5
"dhcp4_lexer.ll"
#line 99
7
"dhcp4_lexer.ll"
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_RSQUARE_BRACKET
(
driver
.
loc_
);
}
YY_BREAK
case
96
:
YY_RULE_SETUP
#line 99
6
"dhcp4_lexer.ll"
#line 99
8
"dhcp4_lexer.ll"
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_LCURLY_BRACKET
(
driver
.
loc_
);
}
YY_BREAK
case
97
:
YY_RULE_SETUP
#line 99
7
"dhcp4_lexer.ll"
#line 99
9
"dhcp4_lexer.ll"
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_RCURLY_BRACKET
(
driver
.
loc_
);
}
YY_BREAK
case
98
:
YY_RULE_SETUP
#line
998
"dhcp4_lexer.ll"
#line
1000
"dhcp4_lexer.ll"
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_COMMA
(
driver
.
loc_
);
}
YY_BREAK
case
99
:
YY_RULE_SETUP
#line
999
"dhcp4_lexer.ll"
#line
1001
"dhcp4_lexer.ll"
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_COLON
(
driver
.
loc_
);
}
YY_BREAK
case
100
:
YY_RULE_SETUP
#line 100
1
"dhcp4_lexer.ll"
#line 100
3
"dhcp4_lexer.ll"
{
// An integer was found.
std
::
string
tmp
(
parser4_text
);
...
...
@@ -2740,7 +2742,7 @@ YY_RULE_SETUP
YY_BREAK
case
101
:
YY_RULE_SETUP
#line 101
9
"dhcp4_lexer.ll"
#line 10
2
1 "dhcp4_lexer.ll"
{
// A floating point was found.
std
::
string
tmp
(
parser4_text
);
...
...
@@ -2756,7 +2758,7 @@ YY_RULE_SETUP
YY_BREAK
case
102
:
YY_RULE_SETUP
#line 103
2
"dhcp4_lexer.ll"
#line 103
4
"dhcp4_lexer.ll"
{
string
tmp
(
parser4_text
);
return
isc
::
dhcp
::
Dhcp4Parser
::
make_BOOLEAN
(
tmp
==
"true"
,
driver
.
loc_
);
...
...
@@ -2764,18 +2766,18 @@ YY_RULE_SETUP
YY_BREAK
case
103
:
YY_RULE_SETUP
#line 103
7
"dhcp4_lexer.ll"
#line 103
9
"dhcp4_lexer.ll"
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_NULL_TYPE
(
driver
.
loc_
);
}
YY_BREAK
case
104
:
YY_RULE_SETUP
#line 104
1
"dhcp4_lexer.ll"
#line 104
3
"dhcp4_lexer.ll"
driver
.
error
(
driver
.
loc_
,
"Invalid character: "
+
std
::
string
(
parser4_text
));
YY_BREAK
case
YY_STATE_EOF
(
INITIAL
):
#line 104
3
"dhcp4_lexer.ll"
#line 104
5
"dhcp4_lexer.ll"
{
if
(
driver
.
states_
.
empty
())
{
return
isc
::
dhcp
::
Dhcp4Parser
::
make_END
(
driver
.
loc_
);
...
...
@@ -2801,10 +2803,10 @@ case YY_STATE_EOF(INITIAL):
YY_BREAK
case
105
:
YY_RULE_SETUP
#line 106
6
"dhcp4_lexer.ll"
#line 106
8
"dhcp4_lexer.ll"
ECHO
;
YY_BREAK
#line 280
8
"dhcp4_lexer.cc"
#line 28
1
0 "dhcp4_lexer.cc"
case
YY_END_OF_BUFFER
:
{
...
...
@@ -3907,7 +3909,7 @@ void parser4_free (void * ptr )
/* %ok-for-header */
#line 106
6
"dhcp4_lexer.ll"
#line 106
8
"dhcp4_lexer.ll"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment