From 93f38c7b1e4bf3c7bf14af6785146c81614cbac5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Oct 2016 11:54:25 +0200 Subject: Various minor buildfile lexer/parser changes --- build2/parser | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'build2/parser') 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; - // Stop saving and get the data. // replay_tokens -- cgit v1.1