Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1.             if((parse[i - 1].type == "int" ||
  2.                 parse[i - 1].type == "float" ||
  3.                 parse[i - 1].type == "string" ||
  4.                 parse[i - 1].type == "var_int" ||
  5.                 parse[i - 1].type == "var_float" ||
  6.                 parse[i - 1].type == "var_string" ||
  7.                 parse[i - 1].type == "func" ||
  8.                 parse[1 - 1].type == "user_func")
  9.                 &&
  10.                (parse[i + 1].type == "int" ||
  11.                 parse[i + 1].type == "float" ||
  12.                 parse[i + 1].type == "string" ||
  13.                 parse[i + 1].type == "var_int" ||
  14.                 parse[i + 1].type == "var_float" ||
  15.                 parse[i + 1].type == "var_string" ||
  16.                 parse[i + 1].type == "func" ||
  17.                 parse[1 + 1].type == "user_func"))
  18.             { }
  19.             else {
  20.                 std::cout << ">>> SYNTAX ERROR: invalid operator placement." << std::endl;
  21.                 return false;
  22.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement