Add more binary operators

This commit is contained in:
bʰedoh₂ swé 2024-06-11 02:45:45 +05:00
parent d8bd79e8c9
commit 542547e174

View File

@ -44,6 +44,20 @@ bool compile_isop(char* string) {
else if (strcmp(string, "-") == 0) return true;
else if (strcmp(string, "*") == 0) return true;
else if (strcmp(string, "/") == 0) return true;
else if (strcmp(string, "**") == 0) return true;
else if (strcmp(string, "//") == 0) return true;
else if (strcmp(string, "%") == 0) return true;
else if (strcmp(string, ".") == 0) return true;
else if (strcmp(string, "~") == 0) return true;
else if (strcmp(string, "<") == 0) return true;
else if (strcmp(string, ">") == 0) return true;
else if (strcmp(string, "<=") == 0) return true;
else if (strcmp(string, ">=") == 0) return true;
else if (strcmp(string, "==") == 0) return true;
else if (strcmp(string, "!=") == 0) return true;
else if (strcmp(string, "and") == 0) return true;
else if (strcmp(string, "or") == 0) return true;
else if (strcmp(string, "|") == 0) return true;
else return false;