aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
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)
{