aboutsummaryrefslogtreecommitdiff
path: root/build2/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-19 11:54:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:30 +0200
commit93f38c7b1e4bf3c7bf14af6785146c81614cbac5 (patch)
tree8cc42dc40c45d31c57d2528aa0433a7c380b9f4d /build2/parser
parent8e91d7935932066d17cf6dfb24705c5a62aa42f6 (diff)
Various minor buildfile lexer/parser changes
Diffstat (limited to 'build2/parser')
-rw-r--r--build2/parser31
1 files changed, 6 insertions, 25 deletions
diff --git a/build2/parser b/build2/parser
index f038b97..c51f18f 100644
--- a/build2/parser
+++ b/build2/parser
@@ -184,24 +184,14 @@ namespace build2
// Append names and return true if the parsed value is NOT NULL.
//
bool
- parse_names (token& t, token_type& tt,
- names& ns,
- bool chunk = false,
- const char* what = "name")
- {
- return parse_names (
- t, tt, ns, chunk, what, 0, nullptr, nullptr, nullptr);
- }
-
- bool
parse_names (token&, token_type&,
names&,
- bool chunk,
- const char* what,
- size_t pair,
- const string* prj,
- const dir_path* dir,
- const string* type);
+ bool chunk = false,
+ const char* what = "name",
+ size_t pair = 0,
+ const string* prj = nullptr,
+ const dir_path* dir = nullptr,
+ const string* type = nullptr);
size_t
parse_names_trailer (token&, token_type&,
@@ -388,15 +378,6 @@ namespace build2
parser* p_;
};
- struct replay_token
- {
- build2::token token;
- lexer_mode mode;
- char pair_separator;
- };
-
- using replay_tokens = vector<replay_token>;
-
// Stop saving and get the data.
//
replay_tokens