1 /**********************************************************************
2 Copyright (c) 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v0.5
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v05.html
9 IBM Corporation - initial API and implementation
10 **********************************************************************/
12 package net.sourceforge.phpdt.core.compiler;
15 * Maps each terminal symbol in the java-grammar into a unique integer.
16 * This integer is used to represent the terminal when computing a parsing action.
18 * Disclaimer : These constant values are generated automatically using a Java
19 * grammar, therefore their actual values are subject to change if new keywords
20 * were added to the language (i.e. 'assert' keyword in 1.4).
25 public interface ITerminalSymbols {
27 // special tokens not part of grammar - not autogenerated
28 public final static int TokenNameWHITESPACE = 900,
29 TokenNameCOMMENT_LINE = 901,
30 TokenNameCOMMENT_BLOCK = 902,
31 TokenNameCOMMENT_JAVADOC = 903;
33 public final static int TokenNameIdentifier = 5,
34 // TokenNameabstract = 98,
35 // TokenNameassert = 118,
36 // TokenNameboolean = 18,
37 // // TokenNamebreak = 119,
38 // TokenNamebyte = 19,
39 // // TokenNamecase = 211,
40 // TokenNamecatch = 225,
41 // TokenNamechar = 20,
42 // // TokenNameclass = 165,
43 // // TokenNamecontinue = 120,
44 // // TokenNamedefault = 212,
45 // // TokenNamedo = 121,
46 // TokenNamedouble = 21,
47 // // TokenNameelse = 213,
48 // // TokenNameextends = 243,
49 // // TokenNamefalse = 37,
50 // TokenNamefinal = 99,
51 // TokenNamefinally = 226,
52 // TokenNamefloat = 22,
53 // // TokenNamefor = 122,
54 // // TokenNameif = 123,
55 // TokenNameimplements = 267,
56 // TokenNameimport = 191,
57 // TokenNameinstanceof = 65,
59 // TokenNameinterface = 180,
60 // TokenNamelong = 24,
61 // TokenNamenative = 100,
62 // // TokenNamenew = 32,
63 // // TokenNamenull = 38,
64 // TokenNamepackage = 214,
65 // TokenNameprivate = 101,
66 // TokenNameprotected = 102,
67 // TokenNamepublic = 103,
68 // // TokenNamereturn = 124,
69 // TokenNameshort = 25,
70 // // TokenNamestatic = 94,
71 // TokenNamestrictfp = 104,
72 // TokenNamesuper = 34,
73 // // TokenNameswitch = 125,
74 // TokenNamesynchronized = 85,
75 // TokenNamethis = 35,
76 // TokenNamethrow = 126,
77 // TokenNamethrows = 227,
78 // TokenNametransient = 105,
79 // // TokenNametrue = 39,
80 // TokenNametry = 127,
81 // TokenNamevoid = 26,
82 // TokenNamevolatile = 106,
83 // // TokenNamewhile = 117,
84 TokenNameIntegerLiteral = 40,
85 TokenNameLongLiteral = 41,
86 TokenNameFloatingPointLiteral = 42,
87 TokenNameDoubleLiteral = 43,
88 TokenNameCharacterLiteral = 44,
89 TokenNameStringLiteral = 45,
90 TokenNamePLUS_PLUS = 1,
91 TokenNameMINUS_MINUS = 2,
92 TokenNameEQUAL_EQUAL = 33,
93 TokenNameLESS_EQUAL = 66,
94 TokenNameGREATER_EQUAL = 67,
95 TokenNameNOT_EQUAL = 36,
96 TokenNameLEFT_SHIFT = 14,
97 TokenNameRIGHT_SHIFT = 11,
98 TokenNameUNSIGNED_RIGHT_SHIFT = 12,
99 TokenNamePLUS_EQUAL = 168,
100 TokenNameMINUS_EQUAL = 169,
101 TokenNameMULTIPLY_EQUAL = 170,
102 TokenNameDIVIDE_EQUAL = 171,
103 TokenNameAND_EQUAL = 172,
104 TokenNameOR_EQUAL = 173,
105 TokenNameXOR_EQUAL = 174,
106 TokenNameREMAINDER_EQUAL = 175,
107 TokenNameLEFT_SHIFT_EQUAL = 176,
108 TokenNameRIGHT_SHIFT_EQUAL = 177,
109 TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 178,
111 TokenNameAND_AND = 79,
115 TokenNameREMAINDER = 9,
118 TokenNameMULTIPLY = 8,
120 TokenNameTWIDDLE = 72,
121 TokenNameDIVIDE = 10,
122 TokenNameGREATER = 68,
125 TokenNameRPAREN = 86,
126 TokenNameLBRACE = 110,
127 TokenNameRBRACE = 95,
128 TokenNameLBRACKET = 15,
129 TokenNameRBRACKET = 166,
130 TokenNameSEMICOLON = 64,
131 TokenNameQUESTION = 81,
132 TokenNameCOLON = 154,
135 TokenNameEQUAL = 167,
137 TokenNameERROR = 307;
139 // public final static int TokenNameKEYWORD = 1000;
140 public final static int TokenNameif = 1001;
141 public final static int TokenNameelseif = 1002;
142 public final static int TokenNameelse = 1003;
143 public final static int TokenNameendif = 1004;
144 public final static int TokenNamefor = 1005;
145 public final static int TokenNameendfor = 1006;
146 public final static int TokenNamewhile = 1007;
147 public final static int TokenNameendwhile = 1008;
148 public final static int TokenNameswitch = 1009;
149 public final static int TokenNamecase = 10010;
150 public final static int TokenNameendswitch = 1011;
151 public final static int TokenNamebreak = 1012;
152 public final static int TokenNamecontinue = 1013;
153 public final static int TokenNamereturn = 1014;
154 public final static int TokenNamedefine = 1015;
155 public final static int TokenNameinclude = 1016;
156 public final static int TokenNameinclude_once = 1017;
157 public final static int TokenNamerequire = 1018;
158 public final static int TokenNamerequire_once = 1019;
159 public final static int TokenNamefunction = 1020;
160 public final static int TokenNameclass = 1021;
161 public final static int TokenNamenew = 1022;
162 public final static int TokenNamedo = 1023;
163 public final static int TokenNameold_function = 1024;
164 public final static int TokenNamedefault = 1025;
165 public final static int TokenNameglobal = 1026;
166 public final static int TokenNamestatic = 1027;
167 public final static int TokenNameforeach = 1028;
168 public final static int TokenNameendforeach = 1029;
169 public final static int TokenNameextends = 1030;
170 // public final static int TokenNameempty = 1031;
171 // public final static int TokenNamearray = 1032;
172 public final static int TokenNameecho = 1033;
173 public final static int TokenNamevar = 1034;
174 public final static int TokenNameas = 1035;
175 public final static int TokenNameprint = 1036;
176 // public final static int TokenNameunset = 1037;
177 // public final static int TokenNameexit = 1038;
178 // public final static int TokenNamedie = 1039;
179 public final static int TokenNameand = 1040;
180 public final static int TokenNameor = 1041;
181 public final static int TokenNamexor = 1042;
182 public final static int TokenNamelist = 1043;
183 public final static int TokenNamenull = 1044;
184 public final static int TokenNamefalse = 1045;
185 public final static int TokenNametrue = 1046;