From 37a203e25421c8a9e8d231cc2486e7df9b2ce177 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Fri, 23 Dec 2022 23:08:00 +0900 Subject: [PATCH] Update error.rs --- compiler/erg_compiler/error.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/erg_compiler/error.rs b/compiler/erg_compiler/error.rs index 276047b0..05b84762 100644 --- a/compiler/erg_compiler/error.rs +++ b/compiler/erg_compiler/error.rs @@ -105,6 +105,8 @@ pub fn binop_to_dname(op: &str) -> &str { "<=" => "__le__", ">" => "__gt__", ">=" => "__ge__", + "<<" => "__lshift__", + ">>" => "__rshift__", other => todo!("no such binary operator: {other}"), } } @@ -154,6 +156,8 @@ pub fn readable_name(name: &str) -> &str { "__invert__" => "`~`", "__mutate__" => "`!`", "__spread__" => "`...`", + "__lshift__" => "`<<`", + "__rshift__" => "`>>`", other => other, } }