aboutsummaryrefslogtreecommitdiff
path: root/build2/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-21 15:03:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-21 15:03:26 +0200
commit67382c15f7e9176dea44c3da7f7013759c88ce33 (patch)
tree5ff4fe1436792a01d4a8576f1e0efa3ce2ff9c20 /build2/parser
parent41f091f46b47c20dc1571db5d56a1eaade25cb1e (diff)
Add support for ==, != in eval context
Diffstat (limited to 'build2/parser')
-rw-r--r--build2/parser9
1 files changed, 9 insertions, 0 deletions
diff --git a/build2/parser b/build2/parser
index 2d523c3..a379bd7 100644
--- a/build2/parser
+++ b/build2/parser
@@ -93,6 +93,9 @@ namespace build2
names_type
eval (token&, token_type&);
+ void
+ eval_trailer (token&, token_type&, names_type&);
+
// If chunk is true, then parse the smallest but complete, name-wise,
// chunk of input. Note that in this case you may still end up with
// multiple names, for example, {foo bar}.
@@ -106,6 +109,12 @@ namespace build2
}
void
+ names (token& t, token_type& tt, names_type& ns, bool chunk = false)
+ {
+ names (t, tt, ns, chunk, 0, nullptr, nullptr, nullptr);
+ }
+
+ void
names (token&, token_type&,
names_type&,
bool chunk,