aboutsummaryrefslogtreecommitdiff
path: root/boot/ast.cc
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-29 01:16:18 +0200
committerEugen Wissner <belka@caraus.de>2026-07-29 01:16:18 +0200
commitf8daedce5c73e02dfb2fc59d75777190185584df (patch)
tree9ec211b96c3d7efd2fca0da37baeaa8b341e31fb /boot/ast.cc
parent36a274c9a8bca944234589220def025d3920b3ef (diff)
downloadelna-f8daedce5c73e02dfb2fc59d75777190185584df.tar.gz
Validate cast compatibility during semantic analysis
Diffstat (limited to 'boot/ast.cc')
-rw-r--r--boot/ast.cc47
1 files changed, 0 insertions, 47 deletions
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();
- };
}