From 530478f2c5679de226260d6109d74e1077f6f8e4 Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Sun, 4 Nov 2007 13:29:09 +1300 Subject: [PATCH] Removing unused operators from the operator table --- libs/iovm/source/IoMessage_opShuffle.c | 67 +++++++++++----------------------- 1 file changed, 22 insertions(+), 45 deletions(-) diff --git a/libs/iovm/source/IoMessage_opShuffle.c b/libs/iovm/source/IoMessage_opShuffle.c index 5cef1bb..f269c56 100644 --- a/libs/iovm/source/IoMessage_opShuffle.c +++ b/libs/iovm/source/IoMessage_opShuffle.c @@ -19,66 +19,43 @@ IoMap *IoState_createOperatorTable(IoState *state) OpTable ops[] = { {"@", 0}, {"@@", 0}, - {"'", 0}, - {".", 0}, {"?", 0}, - {"(", 0}, - {")", 0}, {"**", 1}, - {"++", 2}, - {"--", 2}, + {"*", 2}, + {"/", 2}, + {"%", 2}, - {"*", 3}, - {"/", 3}, - {"%", 3}, + {"+", 3}, + {"-", 3}, - {"+", 4}, - {"-", 4}, + {"<<", 4}, + {">>", 4}, - {"<<", 5}, - {">>", 5}, + {">", 5}, + {"<", 5}, + {"<=", 5}, + {">=", 5}, - {">", 6}, - {"<", 6}, - {"<=", 6}, - {">=", 6}, + {"==", 6}, + {"!=", 6}, - {"==", 7}, - {"!=", 7}, + {"&", 7}, - {"&", 8}, + {"^", 8}, - {"^", 9}, + {"|", 9}, - {"|", 10}, + {"and", 10}, + {"&&", 10}, - {"and", 11}, - {"&&", 11}, + {"or", 11}, + {"||", 11}, - {"or", 12}, - {"||", 12}, + {"..", 12}, - {"..", 13}, - - {"+=", 14}, - {"-=", 14}, - {"*=", 14}, - {"/=", 14}, - {"%=", 14}, - {"&=", 14}, - {"^=", 14}, - {"|=", 14}, - {"<<=", 14}, - {">>=", 14}, - {"<-", 14}, - {"<->", 14}, - {"->", 14}, - - {"return", 15}, - - {",", 16}, + {"return", 13}, {NULL, 0}, }; -- 2.11.4.GIT