mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 13:11:11 +00:00
Implement is!/isnot! operator
This commit is contained in:
parent
9daad37fb6
commit
16b50347d4
6 changed files with 29 additions and 9 deletions
|
@ -97,8 +97,8 @@ pub fn binop_to_dname(op: &str) -> &str {
|
|||
"contains" => "__contains__",
|
||||
"subof" => "__subof__",
|
||||
"supof" => "__supof__",
|
||||
"is" => "__is__",
|
||||
"isnot" => "__isnot__",
|
||||
"is!" => "__is__!",
|
||||
"isnot!" => "__isnot__!",
|
||||
"==" => "__eq__",
|
||||
"!=" => "__ne__",
|
||||
"<" => "__lt__",
|
||||
|
@ -143,8 +143,8 @@ pub fn readable_name(name: &str) -> &str {
|
|||
"__contains__" => "`contains`",
|
||||
"__subof__" => "`subof`",
|
||||
"__supof__" => "`supof`",
|
||||
"__is__" => "`is`",
|
||||
"__isnot__" => "`isnot`",
|
||||
"__is__!" => "`is!`",
|
||||
"__isnot__!" => "`isnot!`",
|
||||
"__eq__" => "`==`",
|
||||
"__ne__" => "`!=`",
|
||||
"__lt__" => "`<`",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue