From de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Jun 2026 15:38:28 +0200 Subject: adjust the formatting a little bit --- server/parser/operator.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'server/parser/operator.hpp') diff --git a/server/parser/operator.hpp b/server/parser/operator.hpp index 0f88209..c4b9091 100644 --- a/server/parser/operator.hpp +++ b/server/parser/operator.hpp @@ -40,7 +40,9 @@ public: return BinaryOp{token}; } - static constexpr unsigned min_precedence() { return 0; } + static constexpr unsigned min_precedence() { + return 0; + } static unsigned get_precedence(Type type) { switch (type) { @@ -60,7 +62,9 @@ public: } } - unsigned get_precedence() const { return get_precedence(m_type); } + unsigned get_precedence() const { + return get_precedence(m_type); + } bool is_right_associative() const { switch (m_type) { @@ -72,7 +76,9 @@ public: } } - bool is_left_associative() const { return !is_right_associative(); } + bool is_left_associative() const { + return !is_right_associative(); + } double exec(double lhs, double rhs) const { switch (m_type) { -- cgit v1.3