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 *******************************************************************************/
11 package org.eclipse.jdt.internal.compiler.parser;
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.
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.
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).
28 public interface TerminalTokens {
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;
36 int TokenNameIdentifier = 26,
37 TokenNameabstract = 56,
39 TokenNameboolean = 32,
46 TokenNamecontinue = 76,
47 TokenNamedefault = 96,
52 TokenNameextends = 97,
55 TokenNamefinally = 104,
59 TokenNameimplements = 106,
61 TokenNameinstanceof = 15,
63 TokenNameinterface = 80,
68 TokenNamepackage = 98,
69 TokenNameprivate = 59,
70 TokenNameprotected = 60,
75 TokenNamestrictfp = 62,
78 TokenNamesynchronized = 55,
81 TokenNamethrows = 105,
82 TokenNametransient = 63,
86 TokenNamevolatile = 64,
88 TokenNameIntegerLiteral = 48,
89 TokenNameLongLiteral = 49,
90 TokenNameFloatingPointLiteral = 50,
91 TokenNameDoubleLiteral = 51,
92 TokenNameCharacterLiteral = 52,
93 TokenNameStringLiteral = 53,
94 TokenNamePLUS_PLUS = 10,
95 TokenNameMINUS_MINUS = 11,
96 TokenNameEQUAL_EQUAL = 18,
97 TokenNameLESS_EQUAL = 16,
98 TokenNameGREATER_EQUAL = 17,
99 TokenNameNOT_EQUAL = 19,
100 TokenNameLEFT_SHIFT = 13,
101 TokenNameRIGHT_SHIFT = 8,
102 TokenNameUNSIGNED_RIGHT_SHIFT = 9,
103 TokenNamePLUS_EQUAL = 85,
104 TokenNameMINUS_EQUAL = 86,
105 TokenNameMULTIPLY_EQUAL = 87,
106 TokenNameDIVIDE_EQUAL = 88,
107 TokenNameAND_EQUAL = 89,
108 TokenNameOR_EQUAL = 90,
109 TokenNameXOR_EQUAL = 91,
110 TokenNameREMAINDER_EQUAL = 92,
111 TokenNameLEFT_SHIFT_EQUAL = 93,
112 TokenNameRIGHT_SHIFT_EQUAL = 94,
113 TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 95,
115 TokenNameAND_AND = 24,
119 TokenNameREMAINDER = 5,
122 TokenNameMULTIPLY = 4,
124 TokenNameTWIDDLE = 69,
126 TokenNameGREATER = 12,
128 TokenNameLPAREN = 28,
129 TokenNameRPAREN = 29,
130 TokenNameLBRACE = 66,
131 TokenNameRBRACE = 31,
132 TokenNameLBRACKET = 14,
133 TokenNameRBRACKET = 70,
134 TokenNameSEMICOLON = 27,
135 TokenNameQUESTION = 23,
141 TokenNameELLIPSIS = 107,
143 TokenNameERROR = 108;