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