changes made after tupshins reconstruction
[org.ibex.core.git] / src / org / xwt / js / Tokens.java
index a9d5adb..28e57af 100644 (file)
@@ -94,8 +94,10 @@ interface Tokens {
     public static final int FINALLY       = 76;  // finally keyword
     public static final int RESERVED      = 77;  // reserved keyword
     public static final int GRAMMAR       = 78;  // the grammar-definition operator (::=)
+    public static final int ADD_TRAP      = 79;  // the add-trap operator (++=)
+    public static final int DEL_TRAP      = 80;  // the del-trap operator (--=)
  
-    public static final int MAX_TOKEN = GRAMMAR;
+    public static final int MAX_TOKEN = DEL_TRAP;
 
     public final static String[] codeToString = new String[] {
         "BITOR", "ASSIGN_BITOR", "BITXOR", "ASSIGN_BITXOR", "BITAND",
@@ -109,7 +111,8 @@ interface Tokens {
         "SEMI", "LB", "RB", "LC", "RC", "LP", "RP", "COMMA", "ASSIGN",
         "HOOK", "COLON", "INC", "DEC", "DOT", "FUNCTION", "IF",
         "ELSE", "SWITCH", "CASE", "DEFAULT", "WHILE", "DO", "FOR",
-        "VAR", "WITH", "CATCH", "FINALLY", "RESERVED", "GRAMMAR"
+        "VAR", "WITH", "CATCH", "FINALLY", "RESERVED", "GRAMMAR",
+        "ADD_TRAP", "DEL_TRAP"
     };
 
 }