From 4372f041bb7401c3adc2d5710566b13f64722102 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Feb 2015 16:57:34 +0200 Subject: Variable assignment, appending support --- build/parser | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'build/parser') diff --git a/build/parser b/build/parser index 4fea3db..4f099fe 100644 --- a/build/parser +++ b/build/parser @@ -6,13 +6,12 @@ #define BUILD_PARSER #include -#include #include -#include // std::move #include #include #include +#include #include namespace build @@ -33,17 +32,7 @@ namespace build // Recursive descent parser. // private: - struct name_type - { - name_type (std::string t, path d, std::string n) - : type (std::move (t)), dir (std::move (d)), name (std::move (n)) {} - - std::string type; // Empty if untyped. - path dir; - std::string name; - }; - - typedef std::vector names_type; + typedef build::names names_type; void clause (token&, token_type&); -- cgit v1.1