Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
b4264859
Commit
b4264859
authored
Nov 28, 2016
by
Francis Dupont
Committed by
Tomek Mrugalski
Nov 29, 2016
Browse files
[5014_phase2] Moved back context variables from lexer
parent
0fecb75a
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
src/bin/dhcp6/dhcp6_lexer.ll
View file @
b4264859
This diff is collapsed.
Click to expand it.
src/bin/dhcp6/parser_context.h
View file @
b4264859
...
...
@@ -129,6 +129,24 @@ public:
OUTPUT_OPTIONS
}
ParserContext
;
/// @brief File name
std
::
string
file_
;
/// @brief File name stack
std
::
vector
<
std
::
string
>
files_
;
/// @brief Location of the current token
///
/// The lexer will keep updating it. This variable will be useful
/// for logging errors.
isc
::
dhcp
::
location
loc_
;
/// @brief Location stack
std
::
vector
<
isc
::
dhcp
::
location
>
locs_
;
/// @brief State stack
std
::
vector
<
struct
yy_buffer_state
*>
states_
;;
/// @brief Current syntactic context
ParserContext
ctx_
;
...
...
Write
Preview
Markdown
is supported
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