define '==' as a token
authoraland <aland>
Thu, 16 Dec 1999 22:44:35 +0000 (22:44 +0000)
committeraland <aland>
Thu, 16 Dec 1999 22:44:35 +0000 (22:44 +0000)
src/include/token.h
src/lib/token.c

index 6ac7910..dcdff5a 100644 (file)
@@ -24,7 +24,8 @@
 #define T_OP_LT                15
 #define T_OP_REG_EQ            16
 #define T_OP_REG_NE            17
-#define T_EQEND                18
+#define T_OP_CMP_EQ     18
+#define T_EQEND                19
 
 int    getword (char **ptr, char *buf, int buflen);
 int    gettoken(char **ptr, char *buf, int buflen);
index 6b98592..f7c5ca4 100644 (file)
@@ -30,6 +30,7 @@ static TOKEN tokens[] = {
        { "+=", T_OP_ADD,       },
        { "-=", T_OP_SUB,       },
        { ":=", T_OP_SET,       },
+       { "==", T_OP_CMP_EQ,    },
        { "=",  T_OP_EQ,        },
        { "!=", T_OP_NE,        },
        { ">=", T_OP_GE,        },