From 897a0e4fdf9ca90ee8d236a38e138a8ae6bc3627 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 6 Mar 2015 09:15:40 +0200 Subject: Add support for lexing and parsing name pairs We will need it for the buildspec and also if/when we support map variable types. --- build/name | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build/name') diff --git a/build/name b/build/name index 00f0c00..fc89f44 100644 --- a/build/name +++ b/build/name @@ -19,6 +19,9 @@ namespace build // without a type and directory can be used to represent any text. // A name with directory and empty value represents a directory. // + // If pair is true, then this name and the next in the list form + // a pair. + // struct name { explicit @@ -33,6 +36,7 @@ namespace build std::string type; path dir; std::string value; + bool pair {false}; }; typedef std::vector names; -- cgit v1.1