aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-31 09:01:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-31 09:01:50 +0200
commit6417a4e6af2b7732ec0da6af24f1a56f7cdada3f (patch)
tree58ffae7ef0cdac55acd6d498dfc66ce0967f4e9a /build2/parser.cxx
parent31bd69c56bc29ec1c154a7c0623b6f0ccce78af1 (diff)
Set part of variable override implementation
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index f9391f8..d42b266 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -68,6 +68,20 @@ namespace build2
return t;
}
+ token parser::
+ parse_variable_value (lexer& l, scope& s, names_type& result)
+ {
+ path_ = &l.name ();
+ lexer_ = &l;
+ target_ = nullptr;
+ scope_ = &s;
+
+ type tt;
+ token t (type::eos, false, 0, 0);
+ result = variable_value (t, tt);
+ return t;
+ }
+
void parser::
clause (token& t, type& tt)
{