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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
12 package org.eclipse.jdt.internal.compiler.parser;
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.
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.
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).
30 public interface TerminalTokens {
32 // special tokens not part of grammar - not autogenerated
34 TokenNameWHITESPACE = 1000,
35 TokenNameCOMMENT_LINE = 1001,
36 TokenNameCOMMENT_BLOCK = 1002,
37 TokenNameCOMMENT_JAVADOC = 1003;
40 TokenNameIdentifier = 28,
41 TokenNameabstract = 60,
43 TokenNameboolean = 31,
50 TokenNamecontinue = 73,
51 TokenNamedefault = 84,
55 TokenNameextends = 91,
58 TokenNamefinally = 88,
62 TokenNameimplements = 103,
64 TokenNameinstanceof = 13,
66 TokenNameinterface = 89,
71 TokenNamepackage = 85,
72 TokenNameprivate = 63,
73 TokenNameprotected = 64,
78 TokenNamestrictfp = 66,
81 TokenNamesynchronized = 55,
84 TokenNamethrows = 104,
85 TokenNametransient = 67,
89 TokenNamevolatile = 68,
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,
118 TokenNameAND_AND = 25,
122 TokenNameREMAINDER = 5,
125 TokenNameMULTIPLY = 4,
127 TokenNameTWIDDLE = 56,
129 TokenNameGREATER = 16,
131 TokenNameLPAREN = 27,
132 TokenNameRPAREN = 29,
133 TokenNameLBRACE = 59,
134 TokenNameRBRACE = 40,
135 TokenNameLBRACKET = 12,
136 TokenNameRBRACKET = 69,
137 TokenNameSEMICOLON = 23,
138 TokenNameQUESTION = 26,
144 TokenNameERROR = 105;