mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 13:41:10 +00:00
Update error.rs
This commit is contained in:
parent
bce00747af
commit
37a203e254
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,8 @@ pub fn binop_to_dname(op: &str) -> &str {
|
||||||
"<=" => "__le__",
|
"<=" => "__le__",
|
||||||
">" => "__gt__",
|
">" => "__gt__",
|
||||||
">=" => "__ge__",
|
">=" => "__ge__",
|
||||||
|
"<<" => "__lshift__",
|
||||||
|
">>" => "__rshift__",
|
||||||
other => todo!("no such binary operator: {other}"),
|
other => todo!("no such binary operator: {other}"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,6 +156,8 @@ pub fn readable_name(name: &str) -> &str {
|
||||||
"__invert__" => "`~`",
|
"__invert__" => "`~`",
|
||||||
"__mutate__" => "`!`",
|
"__mutate__" => "`!`",
|
||||||
"__spread__" => "`...`",
|
"__spread__" => "`...`",
|
||||||
|
"__lshift__" => "`<<`",
|
||||||
|
"__rshift__" => "`>>`",
|
||||||
other => other,
|
other => other,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue