1 /**********************************************************************
2 Copyright (c) 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v0.5
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v05.html
9 IBM Corporation - initial API and implementation
10 **********************************************************************/
12 package net.sourceforge.phpdt.core.compiler;
15 * Maps each terminal symbol in the php-grammar into a unique integer.
16 * This integer is used to represent the terminal when computing a parsing
22 public interface ITerminalSymbols {
24 public final static int TokenNameWHITESPACE = 900,
25 TokenNameCOMMENT_LINE = 901,
26 TokenNameCOMMENT_BLOCK = 902,
27 TokenNameCOMMENT_JAVADOC = 903;
29 final static int TokenNameEOF = 0;
30 final static int TokenNameERROR = 1;
31 final static int TokenNameStopPHP = 2;
33 final static int TokenNameREMAINDER = 30;
34 final static int TokenNameNOT = 31;
35 final static int TokenNameDOT = 32;
36 final static int TokenNameXOR = 33;
37 final static int TokenNameDIVIDE = 34;
38 final static int TokenNameMULTIPLY = 35;
39 final static int TokenNameMINUS = 36;
40 final static int TokenNamePLUS = 37;
41 final static int TokenNameEQUAL_EQUAL = 38;
42 final static int TokenNameNOT_EQUAL = 39;
43 final static int TokenNameGREATER = 40;
44 final static int TokenNameGREATER_EQUAL = 41;
45 final static int TokenNameLESS = 42;
46 final static int TokenNameLESS_EQUAL = 43;
47 final static int TokenNameAND_AND = 44;
48 final static int TokenNameOR_OR = 45;
49 final static int TokenNameCOLON = 47;
50 final static int TokenNameDOT_EQUAL = 48;
52 final static int TokenNameEQUAL = 49;
53 final static int TokenNameMINUS_GREATER = 50; // ->
54 final static int TokenNameEQUAL_GREATER = 51; // => (for each operator)
55 final static int TokenNameAND = 52;
56 final static int TokenNameTWIDDLE = 54;
57 final static int TokenNameTWIDDLE_EQUAL = 55;
58 final static int TokenNameREMAINDER_EQUAL = 56;
59 final static int TokenNameXOR_EQUAL = 57;
60 final static int TokenNameRIGHT_SHIFT_EQUAL = 58;
61 final static int TokenNameLEFT_SHIFT_EQUAL = 59;
62 final static int TokenNameAND_EQUAL = 60;
63 final static int TokenNameOR_EQUAL = 61;
64 final static int TokenNameQUESTION = 62;
65 final static int TokenNameCOLON_COLON = 63;
66 final static int TokenNameAT = 64;
68 final static int TokenNameDOLLAR_LBRACE = 127;
69 final static int TokenNameLPAREN = 128;
70 final static int TokenNameRPAREN = 129;
71 final static int TokenNameLBRACE = 130;
72 final static int TokenNameRBRACE = 131;
73 final static int TokenNameLBRACKET = 132;
74 final static int TokenNameRBRACKET = 133;
75 final static int TokenNameCOMMA = 134;
77 final static int TokenNameStringLiteral = 136;
78 final static int TokenNameIdentifier = 138;
79 final static int TokenNameSEMICOLON = 140;
80 final static int TokenNameMINUS_MINUS = 144;
81 final static int TokenNamePLUS_PLUS = 145;
82 final static int TokenNamePLUS_EQUAL = 146;
83 final static int TokenNameDIVIDE_EQUAL = 147;
84 final static int TokenNameMINUS_EQUAL = 148;
85 final static int TokenNameMULTIPLY_EQUAL = 149;
86 final static int TokenNameVariable = 150;
87 final static int TokenNameIntegerLiteral = 151;
88 final static int TokenNameDoubleLiteral = 152;
89 final static int TokenNameStringInterpolated = 153;
90 final static int TokenNameStringConstant = 154;
92 final static int TokenNameLEFT_SHIFT = 155;
93 final static int TokenNameRIGHT_SHIFT = 156;
94 final static int TokenNameEQUAL_EQUAL_EQUAL = 157;
95 final static int TokenNameNOT_EQUAL_EQUAL = 158;
96 final static int TokenNameOR = 159;
97 final static int TokenNameHEREDOC = 160;
99 public final static int TokenNameKEYWORD = 1000;
100 public final static int TokenNameif = 1001;
101 public final static int TokenNameelseif = 1002;
102 public final static int TokenNameelse = 1003;
103 public final static int TokenNameendif = 1004;
104 public final static int TokenNamefor = 1005;
105 public final static int TokenNameendfor = 1006;
106 public final static int TokenNamewhile = 1007;
107 public final static int TokenNameendwhile = 1008;
108 public final static int TokenNameswitch = 1009;
109 public final static int TokenNamecase = 10010;
110 public final static int TokenNameendswitch = 1011;
111 public final static int TokenNamebreak = 1012;
112 public final static int TokenNamecontinue = 1013;
113 public final static int TokenNamereturn = 1014;
114 public final static int TokenNamedefine = 1015;
115 public final static int TokenNameinclude = 1016;
116 public final static int TokenNameinclude_once = 1017;
117 public final static int TokenNamerequire = 1018;
118 public final static int TokenNamerequire_once = 1019;
119 public final static int TokenNamefunction = 1020;
120 public final static int TokenNameclass = 1021;
121 public final static int TokenNamenew = 1022;
122 public final static int TokenNamedo = 1023;
123 public final static int TokenNameold_function = 1024;
124 public final static int TokenNamedefault = 1025;
125 public final static int TokenNameglobal = 1026;
126 public final static int TokenNamestatic = 1027;
127 public final static int TokenNameforeach = 1028;
128 public final static int TokenNameendforeach = 1029;
129 public final static int TokenNameextends = 1030;
130 // public final static int TokenNameempty = 1031;
131 // public final static int TokenNamearray = 1032;
132 public final static int TokenNameecho = 1033;
133 public final static int TokenNamevar = 1034;
134 public final static int TokenNameas = 1035;
135 public final static int TokenNameprint = 1036;
136 // public final static int TokenNameunset = 1037;
137 // public final static int TokenNameexit = 1038;
138 // public final static int TokenNamedie = 1039;
139 // public final static int TokenNameand = 1040;
140 // public final static int TokenNameor = 1041;
141 // public final static int TokenNamexor = 1042;
142 public final static int TokenNamelist = 1043;
143 public final static int TokenNamenull = 1044;
144 public final static int TokenNamefalse = 1045;
145 public final static int TokenNametrue = 1046;