001: /*
002: * $Id: ParserBaseConstants.java,v 1.31 2002/09/16 08:05:06 jkl Exp $
003: *
004: * Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
005: *
006: * Use is subject to license terms, as defined in
007: * Anvil Sofware License, Version 1.1. See LICENSE
008: * file, or http://njet.org/license-1.1.txt
009: */
010: package anvil.script.parser;
011:
012: public interface ParserBaseConstants {
013:
014: int EOF = 0;
015: int MODULE = 1;
016: int SYMBOL = 2;
017: int BEGIN = 3;
018: int END = 4;
019: int NAMESPACE = 5;
020: int DOT = 6;
021: int AS = 7;
022: int STAR = 8;
023: int COMMA = 9;
024: int IMPORT = 10;
025: int STRING_LITERAL = 11;
026: int COLON = 12;
027: int SEMICOLON = 13;
028: int ASSIGN = 14;
029: int RANGE = 15;
030: int FUNCTION = 16;
031: int OPEN = 17;
032: int CLOSE = 18;
033: int SUPER = 19;
034: int SYNCHRONIZED = 20;
035: int STATIC = 21;
036: int PIPE = 22;
037: int BOOLEAN_OR = 23;
038: int INTERFACE = 24;
039: int EXTENDS = 25;
040: int CLASS = 26;
041: int IMPLEMENTS = 27;
042: int VAR = 28;
043: int CONST = 29;
044: int IF = 30;
045: int WHILE = 31;
046: int TRY = 32;
047: int CATCH = 33;
048: int FINALLY = 34;
049: int THROW = 35;
050: int PRINT = 36;
051: int HOOK = 37;
052: int PRINTLN = 38;
053: int PRINTBR = 39;
054: int ELSE = 40;
055: int SWITCH = 41;
056: int CASE = 42;
057: int _DEFAULT = 43;
058: int FOR = 44;
059: int DO = 45;
060: int FOREACH = 46;
061: int BREAK = 47;
062: int CONTINUE = 48;
063: int EXIT = 49;
064: int RETURN = 50;
065: int YIELD = 51;
066: int ASSERT = 52;
067: int ET = 53;
068: int ASSIGN_ADD = 54;
069: int ASSIGN_SUBSTRACT = 55;
070: int ASSIGN_MULTIPLY = 56;
071: int ASSIGN_DIVIDE = 57;
072: int ASSIGN_REMAINDER = 58;
073: int ASSIGN_CONCAT = 59;
074: int ASSIGN_INIT = 60;
075: int ARROW = 61;
076: int MAP = 62;
077: int HOOKHOOK = 63;
078: int BOOLEAN_XOR = 64;
079: int BOOLEAN_AND = 65;
080: int EQUAL = 66;
081: int NOT_EQUAL = 67;
082: int EXACT_EQUAL = 68;
083: int EXACT_NOT_EQUAL = 69;
084: int COMPARE = 70;
085: int EXACT_COMPARE = 71;
086: int LESS = 72;
087: int GREATER = 73;
088: int LESS_OR_EQUAL = 74;
089: int GREATER_OR_EQUAL = 75;
090: int NEGATION = 76;
091: int IN = 77;
092: int PLUS = 78;
093: int MINUS = 79;
094: int SLASH = 80;
095: int REMAINDER = 81;
096: int MATCH = 82;
097: int NO_MATCH = 83;
098: int MINUSMINUS = 84;
099: int PLUSPLUS = 85;
100: int COPYOF = 86;
101: int CLONEOF = 87;
102: int TYPEOF = 88;
103: int SIZEOF = 89;
104: int CLASSOF = 90;
105: int BOOLEAN = 91;
106: int INT = 92;
107: int FLOAT = 93;
108: int STRING = 94;
109: int IS = 95;
110: int DEFINED = 96;
111: int UNDEFINED = 97;
112: int NULL = 98;
113: int OPEN_BRACKET = 99;
114: int CLOSE_BRACKET = 100;
115: int HAS = 101;
116: int CARET = 102;
117: int DELETE = 103;
118: int BEGIN_LIST = 104;
119: int NEW = 105;
120: int THIS = 106;
121: int AT = 107;
122: int INTEGER_LITERAL = 108;
123: int FLOATING_POINT_LITERAL = 109;
124: int INF = 110;
125: int FALSE = 111;
126: int TRUE = 112;
127: int PATTERN = 113;
128:
129: String[] tokenImage = { "<EOF>", "<MODULE>", "<SYMBOL>", "<BEGIN>",
130: "<END>", "<NAMESPACE>", "<DOT>", "<AS>", "<STAR>",
131: "<COMMA>", "<IMPORT>", "<STRING_LITERAL>", "<COLON>",
132: "<SEMICOLON>", "<ASSIGN>", "<RANGE>", "<FUNCTION>",
133: "<OPEN>", "<CLOSE>", "<SUPER>", "<SYNCHRONIZED>",
134: "<STATIC>", "<PIPE>", "<BOOLEAN_OR>", "<INTERFACE>",
135: "<EXTENDS>", "<CLASS>", "<IMPLEMENTS>", "<VAR>", "<CONST>",
136: "<IF>", "<WHILE>", "<TRY>", "<CATCH>", "<FINALLY>",
137: "<THROW>", "<PRINT>", "<HOOK>", "<PRINTLN>", "<PRINTBR>",
138: "<ELSE>", "<SWITCH>", "<CASE>", "<_DEFAULT>", "<FOR>",
139: "<DO>", "<FOREACH>", "<BREAK>", "<CONTINUE>", "<EXIT>",
140: "<RETURN>", "<YIELD>", "<ASSERT>", "<ET>", "<ASSIGN_ADD>",
141: "<ASSIGN_SUBSTRACT>", "<ASSIGN_MULTIPLY>",
142: "<ASSIGN_DIVIDE>", "<ASSIGN_REMAINDER>", "<ASSIGN_CONCAT>",
143: "<ASSIGN_INIT>", "<ARROW>", "<MAP>", "<HOOKHOOK>",
144: "<BOOLEAN_XOR>", "<BOOLEAN_AND>", "<EQUAL>", "<NOT_EQUAL>",
145: "<EXACT_EQUAL>", "<EXACT_NOT_EQUAL>", "<COMPARE>",
146: "<EXACT_COMPARE>", "<LESS>", "<GREATER>",
147: "<LESS_OR_EQUAL>", "<GREATER_OR_EQUAL>", "<NEGATION>",
148: "<IN>", "<PLUS>", "<MINUS>", "<SLASH>", "<REMAINDER>",
149: "<MATCH>", "<NO_MATCH>", "<MINUSMINUS>", "<PLUSPLUS>",
150: "<COPYOF>", "<CLONEOF>", "<TYPEOF>", "<SIZEOF>",
151: "<CLASSOF>", "<BOOLEAN>", "<INT>", "<FLOAT>", "<STRING>",
152: "<IS>", "<DEFINED>", "<UNDEFINED>", "<NULL>",
153: "<OPEN_BRACKET>", "<CLOSE_BRACKET>", "<HAS>", "<CARET>",
154: "<DELETE>", "<BEGIN_LIST>", "<NEW>", "<THIS>", "<AT>",
155: "<INTEGER_LITERAL>", "<FLOATING_POINT_LITERAL>", "<INF>",
156: "<FALSE>", "<TRUE>", "<PATTERN>", };
157:
158: }
|