2004/01/08 05:02:19
[org.ibex.core.git] / src / org / xwt / js / Tokens.java
index e9391c1..d61b17e 100644 (file)
@@ -87,15 +87,16 @@ interface Tokens {
     public static final int DEFAULT       = 69;  // default keyword
     public static final int WHILE         = 70;  // while keyword
     public static final int DO            = 71;  // do keyword
-    public static final int FOR           = 74;  // for keyword
-    public static final int VAR           = 75;  // var keyword
-    public static final int WITH          = 76;  // with keyword
-    public static final int CATCH         = 77;  // catch keyword
-    public static final int FINALLY       = 78;  // finally keyword
-    public static final int RESERVED      = 79;  // reserved keyword
-    public static final int MAX_TOKEN = RESERVED;
+    public static final int FOR           = 72;  // for keyword
+    public static final int VAR           = 73;  // var keyword
+    public static final int WITH          = 74;  // with keyword
+    public static final int CATCH         = 75;  // catch keyword
+    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 MAX_TOKEN = GRAMMAR;
+
     public final static String[] codeToString = new String[] {
         "BITOR", "ASSIGN_BITOR", "BITXOR", "ASSIGN_BITXOR", "BITAND",
         "ASSIGN_BITAND", "LSH", "ASSIGN_LSH", "RSH", "ASSIGN_RSH",
@@ -108,7 +109,7 @@ 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" 
+        "VAR", "WITH", "CATCH", "FINALLY", "RESERVED", "GRAMMAR"
     };
 
 }