From 67382c15f7e9176dea44c3da7f7013759c88ce33 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Jan 2016 15:03:26 +0200 Subject: Add support for ==, != in eval context --- build2/parser | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build2/parser') 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, -- cgit v1.1