1 2 package bsh; 3 4 public interface ParserConstants { 5 6 int EOF = 0; 7 int NONPRINTABLE = 6; 8 int SINGLE_LINE_COMMENT = 7; 9 int HASH_BANG_COMMENT = 8; 10 int MULTI_LINE_COMMENT = 9; 11 int ABSTRACT = 10; 12 int BOOLEAN = 11; 13 int BREAK = 12; 14 int CLASS = 13; 15 int BYTE = 14; 16 int CASE = 15; 17 int CATCH = 16; 18 int CHAR = 17; 19 int CONST = 18; 20 int CONTINUE = 19; 21 int _DEFAULT = 20; 22 int DO = 21; 23 int DOUBLE = 22; 24 int ELSE = 23; 25 int ENUM = 24; 26 int EXTENDS = 25; 27 int FALSE = 26; 28 int FINAL = 27; 29 int FINALLY = 28; 30 int FLOAT = 29; 31 int FOR = 30; 32 int GOTO = 31; 33 int IF = 32; 34 int IMPLEMENTS = 33; 35 int IMPORT = 34; 36 int INSTANCEOF = 35; 37 int INT = 36; 38 int INTERFACE = 37; 39 int LONG = 38; 40 int NATIVE = 39; 41 int NEW = 40; 42 int NULL = 41; 43 int PACKAGE = 42; 44 int PRIVATE = 43; 45 int PROTECTED = 44; 46 int PUBLIC = 45; 47 int RETURN = 46; 48 int SHORT = 47; 49 int STATIC = 48; 50 int STRICTFP = 49; 51 int SWITCH = 50; 52 int SYNCHRONIZED = 51; 53 int TRANSIENT = 52; 54 int THROW = 53; 55 int THROWS = 54; 56 int TRUE = 55; 57 int TRY = 56; 58 int VOID = 57; 59 int VOLATILE = 58; 60 int WHILE = 59; 61 int INTEGER_LITERAL = 60; 62 int DECIMAL_LITERAL = 61; 63 int HEX_LITERAL = 62; 64 int OCTAL_LITERAL = 63; 65 int FLOATING_POINT_LITERAL = 64; 66 int EXPONENT = 65; 67 int CHARACTER_LITERAL = 66; 68 int STRING_LITERAL = 67; 69 int FORMAL_COMMENT = 68; 70 int IDENTIFIER = 69; 71 int LETTER = 70; 72 int DIGIT = 71; 73 int LPAREN = 72; 74 int RPAREN = 73; 75 int LBRACE = 74; 76 int RBRACE = 75; 77 int LBRACKET = 76; 78 int RBRACKET = 77; 79 int SEMICOLON = 78; 80 int COMMA = 79; 81 int DOT = 80; 82 int ASSIGN = 81; 83 int GT = 82; 84 int GTX = 83; 85 int LT = 84; 86 int LTX = 85; 87 int BANG = 86; 88 int TILDE = 87; 89 int HOOK = 88; 90 int COLON = 89; 91 int EQ = 90; 92 int LE = 91; 93 int LEX = 92; 94 int GE = 93; 95 int GEX = 94; 96 int NE = 95; 97 int BOOL_OR = 96; 98 int BOOL_ORX = 97; 99 int BOOL_AND = 98; 100 int BOOL_ANDX = 99; 101 int INCR = 100; 102 int DECR = 101; 103 int PLUS = 102; 104 int MINUS = 103; 105 int STAR = 104; 106 int SLASH = 105; 107 int BIT_AND = 106; 108 int BIT_ANDX = 107; 109 int BIT_OR = 108; 110 int BIT_ORX = 109; 111 int XOR = 110; 112 int MOD = 111; 113 int LSHIFT = 112; 114 int LSHIFTX = 113; 115 int RSIGNEDSHIFT = 114; 116 int RSIGNEDSHIFTX = 115; 117 int RUNSIGNEDSHIFT = 116; 118 int RUNSIGNEDSHIFTX = 117; 119 int PLUSASSIGN = 118; 120 int MINUSASSIGN = 119; 121 int STARASSIGN = 120; 122 int SLASHASSIGN = 121; 123 int ANDASSIGN = 122; 124 int ANDASSIGNX = 123; 125 int ORASSIGN = 124; 126 int ORASSIGNX = 125; 127 int XORASSIGN = 126; 128 int MODASSIGN = 127; 129 int LSHIFTASSIGN = 128; 130 int LSHIFTASSIGNX = 129; 131 int RSIGNEDSHIFTASSIGN = 130; 132 int RSIGNEDSHIFTASSIGNX = 131; 133 int RUNSIGNEDSHIFTASSIGN = 132; 134 int RUNSIGNEDSHIFTASSIGNX = 133; 135 136 int DEFAULT = 0; 137 138 String [] tokenImage = { 139 "<EOF>", 140 "\" \"", 141 "\"\\t\"", 142 "\"\\r\"", 143 "\"\\f\"", 144 "\"\\n\"", 145 "<NONPRINTABLE>", 146 "<SINGLE_LINE_COMMENT>", 147 "<HASH_BANG_COMMENT>", 148 "<MULTI_LINE_COMMENT>", 149 "\"abstract\"", 150 "\"boolean\"", 151 "\"break\"", 152 "\"class\"", 153 "\"byte\"", 154 "\"case\"", 155 "\"catch\"", 156 "\"char\"", 157 "\"const\"", 158 "\"continue\"", 159 "\"default\"", 160 "\"do\"", 161 "\"double\"", 162 "\"else\"", 163 "\"enum\"", 164 "\"extends\"", 165 "\"false\"", 166 "\"final\"", 167 "\"finally\"", 168 "\"float\"", 169 "\"for\"", 170 "\"goto\"", 171 "\"if\"", 172 "\"implements\"", 173 "\"import\"", 174 "\"instanceof\"", 175 "\"int\"", 176 "\"interface\"", 177 "\"long\"", 178 "\"native\"", 179 "\"new\"", 180 "\"null\"", 181 "\"package\"", 182 "\"private\"", 183 "\"protected\"", 184 "\"public\"", 185 "\"return\"", 186 "\"short\"", 187 "\"static\"", 188 "\"strictfp\"", 189 "\"switch\"", 190 "\"synchronized\"", 191 "\"transient\"", 192 "\"throw\"", 193 "\"throws\"", 194 "\"true\"", 195 "\"try\"", 196 "\"void\"", 197 "\"volatile\"", 198 "\"while\"", 199 "<INTEGER_LITERAL>", 200 "<DECIMAL_LITERAL>", 201 "<HEX_LITERAL>", 202 "<OCTAL_LITERAL>", 203 "<FLOATING_POINT_LITERAL>", 204 "<EXPONENT>", 205 "<CHARACTER_LITERAL>", 206 "<STRING_LITERAL>", 207 "<FORMAL_COMMENT>", 208 "<IDENTIFIER>", 209 "<LETTER>", 210 "<DIGIT>", 211 "\"(\"", 212 "\")\"", 213 "\"{\"", 214 "\"}\"", 215 "\"[\"", 216 "\"]\"", 217 "\";\"", 218 "\",\"", 219 "\".\"", 220 "\"=\"", 221 "\">\"", 222 "\"@gt\"", 223 "\"<\"", 224 "\"@lt\"", 225 "\"!\"", 226 "\"~\"", 227 "\"?\"", 228 "\":\"", 229 "\"==\"", 230 "\"<=\"", 231 "\"@lteq\"", 232 "\">=\"", 233 "\"@gteq\"", 234 "\"!=\"", 235 "\"||\"", 236 "\"@or\"", 237 "\"&&\"", 238 "\"@and\"", 239 "\"++\"", 240 "\"--\"", 241 "\"+\"", 242 "\"-\"", 243 "\"*\"", 244 "\"/\"", 245 "\"&\"", 246 "\"@bitwise_and\"", 247 "\"|\"", 248 "\"@bitwise_or\"", 249 "\"^\"", 250 "\"%\"", 251 "\"<<\"", 252 "\"@left_shift\"", 253 "\">>\"", 254 "\"@right_shift\"", 255 "\">>>\"", 256 "\"@right_unsigned_shift\"", 257 "\"+=\"", 258 "\"-=\"", 259 "\"*=\"", 260 "\"/=\"", 261 "\"&=\"", 262 "\"@and_assign\"", 263 "\"|=\"", 264 "\"@or_assign\"", 265 "\"^=\"", 266 "\"%=\"", 267 "\"<<=\"", 268 "\"@left_shift_assign\"", 269 "\">>=\"", 270 "\"@right_shift_assign\"", 271 "\">>>=\"", 272 "\"@right_unsigned_shift_assign\"", 273 }; 274 275 } 276 | Popular Tags |