Support chzained comparisonc1 < 2 < 3 (#581)

This commit is contained in:
Sergey
2024-02-27 14:23:49 +01:00
committed by GitHub
parent 2f8f25a68d
commit 26bfa591a9
4 changed files with 120 additions and 0 deletions
+4
View File
@@ -54,3 +54,7 @@ var Binary = map[string]Operator{
"^": {100, Right},
"??": {500, Left},
}
func IsComparison(op string) bool {
return op == "<" || op == ">" || op == ">=" || op == "<="
}