Implement is!/isnot! operator

This commit is contained in:
Shunsuke Shibayama 2022-12-27 01:37:20 +09:00
parent 9daad37fb6
commit 16b50347d4
6 changed files with 29 additions and 9 deletions

View file

@ -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__" => "`<`",