| 8362 | |
| 8363 | |
| 8364 | static BinOpr getbinopr (int op) { |
| 8365 | switch (op) { |
| 8366 | case '+': return OPR_ADD; |
| 8367 | case '-': return OPR_SUB; |
| 8368 | case '*': return OPR_MUL; |
| 8369 | case '/': return OPR_DIV; |
| 8370 | case '%': return OPR_MOD; |
| 8371 | case '^': return OPR_POW; |
| 8372 | case TK_CONCAT: return OPR_CONCAT; |
| 8373 | case TK_NE: return OPR_NE; |
| 8374 | case TK_EQ: return OPR_EQ; |
| 8375 | case '<': return OPR_LT; |
| 8376 | case TK_LE: return OPR_LE; |
| 8377 | case '>': return OPR_GT; |
| 8378 | case TK_GE: return OPR_GE; |
| 8379 | case TK_AND: return OPR_AND; |
| 8380 | case TK_OR: return OPR_OR; |
| 8381 | default: return OPR_NOBINOPR; |
| 8382 | } |
| 8383 | } |
| 8384 | |
| 8385 | |
| 8386 | static const struct { |