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