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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.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,
48 TokenNamedefault = 97,
53 TokenNameextends = 99,
56 TokenNamefinally = 104,
61 TokenNameimplements = 106,
62 TokenNameimport = 100,
63 TokenNameinstanceof = 12,
65 TokenNameinterface = 95,
70 TokenNamepackage = 96,
71 TokenNameprivate = 59,
72 TokenNameprotected = 60,
77 TokenNamestrictfp = 62,
80 TokenNamesynchronized = 55,
83 TokenNamethrows = 105,
84 TokenNametransient = 63,
88 TokenNamevolatile = 64,
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,
117 TokenNameAND_AND = 24,
121 TokenNameREMAINDER = 5,
124 TokenNameMULTIPLY = 4,
126 TokenNameTWIDDLE = 67,
128 TokenNameGREATER = 13,
130 TokenNameLPAREN = 28,
131 TokenNameRPAREN = 29,
132 TokenNameLBRACE = 69,
133 TokenNameRBRACE = 31,
134 TokenNameLBRACKET = 14,
135 TokenNameRBRACKET = 70,
136 TokenNameSEMICOLON = 27,
137 TokenNameQUESTION = 23,
143 TokenNameELLIPSIS = 107,
145 TokenNameERROR = 110;