aboutsummaryrefslogtreecommitdiff
path: root/build/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-29 13:17:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-29 13:17:30 +0200
commit6dbf3bbd2efa963859156826a25fc639c6c52ce5 (patch)
tree20cfd40a9b9649578a88b5eff7415a56eb14001d /build/parser
parentc087efe145a75087acd646abe3258dad4aef4e2a (diff)
Add support for setting target-specific variables from buildfiles
Diffstat (limited to 'build/parser')
-rw-r--r--build/parser8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/parser b/build/parser
index 94bf7f3..ccacb24 100644
--- a/build/parser
+++ b/build/parser
@@ -75,6 +75,9 @@ namespace build
void
variable (token&, token_type&, std::string name, token_type kind);
+ std::string
+ variable_name (names_type&&, const location&);
+
names_type
names (token& t, token_type& tt)
{
@@ -128,8 +131,9 @@ namespace build
private:
const std::string* path_; // Path processed by diag_relative().
lexer* lexer_;
- scope* scope_; // Current base scope (out_base).
- scope* root_; // Current root scope (out_root).
+ target* target_; // Current target, if any.
+ scope* scope_; // Current base scope (out_base).
+ scope* root_; // Current root scope (out_root).
const dir_path* out_root_;
const dir_path* src_root_;
target* default_target_;