From f8daedce5c73e02dfb2fc59d75777190185584df Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 29 Jul 2026 01:16:18 +0200 Subject: Validate cast compatibility during semantic analysis --- boot/ast.cc | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'boot/ast.cc') diff --git a/boot/ast.cc b/boot/ast.cc index a2f108a..7f34243 100644 --- a/boot/ast.cc +++ b/boot/ast.cc @@ -1647,51 +1647,4 @@ namespace elna::boot { return *this->m_range; } - - const char *print_binary_operator(const binary_operator operation) - { - switch (operation) - { - using enum binary_operator; - case sum: - return "+"; - case subtraction: - return "-"; - case multiplication: - return "*"; - case division: - return "/"; - case remainder: - return "%"; - case equals: - return "="; - case not_equals: - return "<>"; - case less: - return "<"; - case less_equal: - return "<="; - case greater: - return ">"; - case greater_equal: - return ">="; - case conjunction: - case logical_conjunction: - case bitwise_conjunction: - return "&"; - case disjunction: - case logical_disjunction: - case bitwise_disjunction: - return "or"; - case exclusive_disjunction: - case logical_exclusive_disjunction: - case bitwise_exclusive_disjunction: - return "xor"; - case shift_left: - return "<<"; - case shift_right: - return ">>"; - } - __builtin_unreachable(); - }; } -- cgit v1.2.3