mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 13:41:10 +00:00
Merge branch 'main' into dict
This commit is contained in:
commit
e647c9545f
13 changed files with 111 additions and 19 deletions
|
@ -25,6 +25,7 @@ pub fn binop_to_dname(op: &str) -> &str {
|
|||
"-" => "__sub__",
|
||||
"*" => "__mul__",
|
||||
"/" => "__div__",
|
||||
"//" => "__floordiv__",
|
||||
"**" => "__pow__",
|
||||
"%" => "__mod__",
|
||||
".." => "__rng__",
|
||||
|
@ -66,6 +67,7 @@ pub fn readable_name(name: &str) -> &str {
|
|||
"__sub__" => "`-`",
|
||||
"__mul__" => "`*`",
|
||||
"__div__" => "`/`",
|
||||
"__floordiv__" => "`//`",
|
||||
"__pow__" => "`**`",
|
||||
"__mod__" => "`%`",
|
||||
"__rng__" => "`..`",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue