aboutsummaryrefslogtreecommitdiff
path: root/build/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-27 16:57:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-27 16:57:34 +0200
commit4372f041bb7401c3adc2d5710566b13f64722102 (patch)
tree5f37f6e69e5529d3628b7611bb642dba15d885c0 /build/parser
parente1d2e3b63934c1e193429f1d6c4e04abc0e85d56 (diff)
Variable assignment, appending support
Diffstat (limited to 'build/parser')
-rw-r--r--build/parser15
1 files changed, 2 insertions, 13 deletions
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 <string>
-#include <vector>
#include <iosfwd>
-#include <utility> // std::move
#include <unordered_set>
#include <build/path>
#include <build/token>
+#include <build/name>
#include <build/diagnostics>
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<name_type> names_type;
+ typedef build::names names_type;
void
clause (token&, token_type&);