From 0ce923f1b9b008cf44602255f935bf3d9c4ba90d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Jul 2020 13:24:07 +0200 Subject: Reserve backtick (`) and bit-or (|) in eval context for future use Specifically, they are reserved for future support of arithmetic evaluation contexts and evaluation pipelines, respectively. --- libbuild2/token.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbuild2/token.cxx') diff --git a/libbuild2/token.cxx b/libbuild2/token.cxx index 7ce85be..ab14388 100644 --- a/libbuild2/token.cxx +++ b/libbuild2/token.cxx @@ -53,6 +53,7 @@ namespace build2 case token_type::question: os << q << '?' << q; break; case token_type::percent: os << q << '%' << q; break; case token_type::comma: os << q << ',' << q; break; + case token_type::backtick: os << q << '`' << q; break; case token_type::lparen: os << q << '(' << q; break; case token_type::rparen: os << q << ')' << q; break; @@ -81,6 +82,8 @@ namespace build2 case token_type::less_equal: os << q << "<=" << q; break; case token_type::greater_equal: os << q << ">=" << q; break; + case token_type::bit_or: os << q << '|' << q; break; + case token_type::log_or: os << q << "||" << q; break; case token_type::log_and: os << q << "&&" << q; break; case token_type::log_not: os << q << '!' << q; break; -- cgit v1.1