diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-06 09:15:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-06 09:15:40 +0200 |
commit | 897a0e4fdf9ca90ee8d236a38e138a8ae6bc3627 (patch) | |
tree | d4c00de32d028823906d342fcd984faee8d977ff /build/name | |
parent | 9ef25ab2f9da89ab48ecce3fe1b8cbb0bc5f1e09 (diff) |
Add support for lexing and parsing name pairs
We will need it for the buildspec and also if/when we support map
variable types.
Diffstat (limited to 'build/name')
-rw-r--r-- | build/name | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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<name> names; |