X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fjs%2FTokens.java;h=28e57af4db0841c6108a44fda9c55d8cbe659a0d;hb=de378041d5ca2aca1a2b5a31ef15ae90a86c977f;hp=fc70577bf55955e23b410d00a2e7d9bf20b7884c;hpb=50e2af974eb7f486af60f2ea831a305972db2749;p=org.ibex.core.git diff --git a/src/org/xwt/js/Tokens.java b/src/org/xwt/js/Tokens.java index fc70577..28e57af 100644 --- a/src/org/xwt/js/Tokens.java +++ b/src/org/xwt/js/Tokens.java @@ -1,4 +1,4 @@ -// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL] +// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] package org.xwt.js; /** this class contains a public static final int for each valid token */ @@ -93,9 +93,12 @@ interface Tokens { 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 ADD_TRAP = 79; // the add-trap operator (++=) + public static final int DEL_TRAP = 80; // the del-trap operator (--=) - public static final int MAX_TOKEN = RESERVED; - + public static final int MAX_TOKEN = DEL_TRAP; + public final static String[] codeToString = new String[] { "BITOR", "ASSIGN_BITOR", "BITXOR", "ASSIGN_BITXOR", "BITAND", "ASSIGN_BITAND", "LSH", "ASSIGN_LSH", "RSH", "ASSIGN_RSH", @@ -108,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" + "VAR", "WITH", "CATCH", "FINALLY", "RESERVED", "GRAMMAR", + "ADD_TRAP", "DEL_TRAP" }; }