1) Fixed html syntax highlighting.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / TerminalTokens.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2008 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.parser;
12
13 /**
14  * IMPORTANT NOTE: These constants are dedicated to the internal Scanner implementation. 
15  * It is mirrored in org.eclipse.jdt.core.compiler public package where it is API. 
16  * The mirror implementation is using the backward compatible ITerminalSymbols constant 
17  * definitions (stable with 2.0), whereas the internal implementation uses TerminalTokens 
18  * which constant values reflect the latest parser generation state.
19  */
20 /**
21  * Maps each terminal symbol in the java-grammar into a unique integer. 
22  * This integer is used to represent the terminal when computing a parsing action. 
23  * 
24  * Disclaimer : These constant values are generated automatically using a Java 
25  * grammar, therefore their actual values are subject to change if new keywords 
26  * were added to the language (for instance, 'assert' is a keyword in 1.4).
27  */
28 public interface TerminalTokens {
29
30         // special tokens not part of grammar - not autogenerated
31         int TokenNameWHITESPACE = 1000,
32                 TokenNameCOMMENT_LINE = 1001,
33                 TokenNameCOMMENT_BLOCK = 1002,
34                 TokenNameCOMMENT_JAVADOC = 1003;
35
36         int TokenNameIdentifier = 26,
37                 TokenNameabstract = 56,
38                 TokenNameassert = 74,
39                 TokenNameboolean = 32,
40                 TokenNamebreak = 75,
41                 TokenNamebyte = 33,
42                 TokenNamecase = 101,
43                 TokenNamecatch = 102,
44                 TokenNamechar = 34,
45                 TokenNameclass = 72,
46                 TokenNamecontinue = 76,
47                 TokenNameconst = 108,
48                 TokenNamedefault = 97,
49                 TokenNamedo = 77,
50                 TokenNamedouble = 35,
51                 TokenNameelse = 103,
52                 TokenNameenum = 98,
53                 TokenNameextends = 99,
54                 TokenNamefalse = 44,
55                 TokenNamefinal = 57,
56                 TokenNamefinally = 104,
57                 TokenNamefloat = 36,
58                 TokenNamefor = 78,
59                 TokenNamegoto = 109,
60                 TokenNameif = 79,
61                 TokenNameimplements = 106,
62                 TokenNameimport = 100,
63                 TokenNameinstanceof = 12,
64                 TokenNameint = 37,
65                 TokenNameinterface = 95,
66                 TokenNamelong = 38,
67                 TokenNamenative = 58,
68                 TokenNamenew = 43,
69                 TokenNamenull = 45,
70                 TokenNamepackage = 96,
71                 TokenNameprivate = 59,
72                 TokenNameprotected = 60,
73                 TokenNamepublic = 61,
74                 TokenNamereturn = 80,
75                 TokenNameshort = 39,
76                 TokenNamestatic = 54,
77                 TokenNamestrictfp = 62,
78                 TokenNamesuper = 41,
79                 TokenNameswitch = 81,
80                 TokenNamesynchronized = 55,
81                 TokenNamethis = 42,
82                 TokenNamethrow = 82,
83                 TokenNamethrows = 105,
84                 TokenNametransient = 63,
85                 TokenNametrue = 46,
86                 TokenNametry = 83,
87                 TokenNamevoid = 40,
88                 TokenNamevolatile = 64,
89                 TokenNamewhile = 73,
90                 TokenNameIntegerLiteral = 47,
91                 TokenNameLongLiteral = 48,
92                 TokenNameFloatingPointLiteral = 49,
93                 TokenNameDoubleLiteral = 50,
94                 TokenNameCharacterLiteral = 51,
95                 TokenNameStringLiteral = 52,
96                 TokenNamePLUS_PLUS = 8,
97                 TokenNameMINUS_MINUS = 9,
98                 TokenNameEQUAL_EQUAL = 18,
99                 TokenNameLESS_EQUAL = 15,
100                 TokenNameGREATER_EQUAL = 16,
101                 TokenNameNOT_EQUAL = 19,
102                 TokenNameLEFT_SHIFT = 17,
103                 TokenNameRIGHT_SHIFT = 10,
104                 TokenNameUNSIGNED_RIGHT_SHIFT = 11,
105                 TokenNamePLUS_EQUAL = 84,
106                 TokenNameMINUS_EQUAL = 85,
107                 TokenNameMULTIPLY_EQUAL = 86,
108                 TokenNameDIVIDE_EQUAL = 87,
109                 TokenNameAND_EQUAL = 88,
110                 TokenNameOR_EQUAL = 89,
111                 TokenNameXOR_EQUAL = 90,
112                 TokenNameREMAINDER_EQUAL = 91,
113                 TokenNameLEFT_SHIFT_EQUAL = 92,
114                 TokenNameRIGHT_SHIFT_EQUAL = 93,
115                 TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 94,
116                 TokenNameOR_OR = 25,
117                 TokenNameAND_AND = 24,
118                 TokenNamePLUS = 1,
119                 TokenNameMINUS = 2,
120                 TokenNameNOT = 66,
121                 TokenNameREMAINDER = 5,
122                 TokenNameXOR = 21,
123                 TokenNameAND = 20,
124                 TokenNameMULTIPLY = 4,
125                 TokenNameOR = 22,
126                 TokenNameTWIDDLE = 67,
127                 TokenNameDIVIDE = 6,
128                 TokenNameGREATER = 13,
129                 TokenNameLESS = 7,
130                 TokenNameLPAREN = 28,
131                 TokenNameRPAREN = 29,
132                 TokenNameLBRACE = 69,
133                 TokenNameRBRACE = 31,
134                 TokenNameLBRACKET = 14,
135                 TokenNameRBRACKET = 70,
136                 TokenNameSEMICOLON = 27,
137                 TokenNameQUESTION = 23,
138                 TokenNameCOLON = 65,
139                 TokenNameCOMMA = 30,
140                 TokenNameDOT = 3,
141                 TokenNameEQUAL = 71,
142                 TokenNameAT = 53,
143                 TokenNameELLIPSIS = 107,
144                 TokenNameEOF = 68,
145                 TokenNameERROR = 110;
146 }