| 786 | |
| 787 | |
| 788 | static BinOpr getbinopr (int op) { |
| 789 | switch (op) { |
| 790 | case '+': return OPR_ADD; |
| 791 | case '-': return OPR_SUB; |
| 792 | case '*': return OPR_MUL; |
| 793 | case '/': return OPR_DIV; |
| 794 | case '%': return OPR_MOD; |
| 795 | case '^': return OPR_POW; |
| 796 | case TK_CONCAT: return OPR_CONCAT; |
| 797 | case TK_NE: return OPR_NE; |
| 798 | case TK_EQ: return OPR_EQ; |
| 799 | case '<': return OPR_LT; |
| 800 | case TK_LE: return OPR_LE; |
| 801 | case '>': return OPR_GT; |
| 802 | case TK_GE: return OPR_GE; |
| 803 | case TK_AND: return OPR_AND; |
| 804 | case TK_OR: return OPR_OR; |
| 805 | default: return OPR_NOBINOPR; |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | |
| 810 | static const struct { |