aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-02-16 13:42:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-01 19:26:07 +0300
commita64b2ae2099346471ead988d5f2d383d55a9bf89 (patch)
tree04e1a43a484461ef88e6a804c1aa3751a58cdd95 /build2/test/script/parser
parent9b4e51f72d640262161e38981a8b9255a7b47f6c (diff)
Add set builtin
Diffstat (limited to 'build2/test/script/parser')
-rw-r--r--build2/test/script/parser13
1 files changed, 13 insertions, 0 deletions
diff --git a/build2/test/script/parser b/build2/test/script/parser
index cb51042..cb536e6 100644
--- a/build2/test/script/parser
+++ b/build2/test/script/parser
@@ -34,6 +34,19 @@ namespace build2
void
pre_parse (istream&, script&);
+ // Helpers.
+ //
+ // Parse attribute string and perform attribute-guided assignment.
+ // Issue diagnostics and throw failed in case of an error.
+ //
+ void
+ apply_value_attributes (const variable*, // Optional.
+ value& lhs,
+ value&& rhs,
+ const string& attributes,
+ token_type assign_kind,
+ const path& name); // For diagnostics.
+
// Recursive descent parser.
//
// Usually (but not always) parse functions receive the token/type