aboutsummaryrefslogtreecommitdiff
path: root/build/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-06 09:15:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-06 09:15:40 +0200
commit897a0e4fdf9ca90ee8d236a38e138a8ae6bc3627 (patch)
treed4c00de32d028823906d342fcd984faee8d977ff /build/parser
parent9ef25ab2f9da89ab48ecce3fe1b8cbb0bc5f1e09 (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/parser')
-rw-r--r--build/parser5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/parser b/build/parser
index 6e0be34..4375b27 100644
--- a/build/parser
+++ b/build/parser
@@ -51,12 +51,13 @@ namespace build
names (token& t, token_type& tt)
{
names_type ns;
- names (t, tt, ns, nullptr, nullptr);
+ names (t, tt, ns, 0, nullptr, nullptr);
return ns;
}
void
- names (token&, token_type&, names_type&,
+ names (token&, token_type&,
+ names_type&, std::size_t pair,
const path* dir, const std::string* type);
// Utilities.