117ee338b027c73cca15861fbe7f6acbbb6bd52c
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / compiler / ITerminalSymbols.java
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
7  �
8  Contributors:
9  IBM Corporation - initial API and implementation
10  **********************************************************************/
11 package net.sourceforge.phpdt.core.compiler;
12
13 /**
14  * Maps each terminal symbol in the php-grammar into a unique integer. This
15  * integer is used to represent the terminal when computing a parsing action.
16  *
17  * @see IScanner
18  * @since 2.0
19  */
20
21 public interface ITerminalSymbols {
22         public final static String[] PHP_TYPES = { "array", "string", "object",
23                         "bool", "boolean", "real", "double", "float", "int", "integer", };
24
25         public enum TokenName {
26             NONE_INDENT_BLOCK,
27                 NONE,                                     // Pseudo token name; means no token yet available
28         EOF,
29             WHITESPACE,
30             COMMENT_LINE,
31             COMMENT_BLOCK,
32             COMMENT_PHPDOC,
33  //     HTML = 904,
34             ERROR,
35             INLINE_HTML,
36             REMAINDER,
37             NOT,
38             DOT,
39             DIVIDE,
40             MULTIPLY,
41             MINUS,
42             PLUS,
43         OP_AT,
44         OP_AND_OLD,
45         OP_OR_OLD,
46         OP_XOR_OLD,
47         OP_XOR,
48         OP_AND,
49         OP_OR,
50         AND_AND,
51         OR_OR,
52             EQUAL_EQUAL,
53             NOT_EQUAL,
54             GREATER,
55             GREATER_EQUAL,
56             LESS,
57             LESS_EQUAL,
58             COLON,
59             DOT_EQUAL,
60             EQUAL,
61             MINUS_GREATER,
62             EQUAL_GREATER,
63             TWIDDLE,
64             TWIDDLE_EQUAL,
65             REMAINDER_EQUAL,
66             RIGHT_SHIFT_EQUAL,
67             LEFT_SHIFT_EQUAL,
68         XOR_EQUAL,
69             AND_EQUAL,
70             OR_EQUAL,
71             QUESTION,
72             PAAMAYIM_NEKUDOTAYIM,
73             DOLLAR,
74             DOLLAR_LBRACE,
75             LPAREN,
76             RPAREN,
77             LBRACE,
78             RBRACE,
79             LBRACKET,
80             RBRACKET,
81             COMMA,
82             BACKSLASH,
83             STRINGDOUBLEQUOTE,
84             IDENTIFIER,
85             SEMICOLON,
86             MINUS_MINUS,
87             PLUS_PLUS,
88             PLUS_EQUAL,
89             DIVIDE_EQUAL,
90             MINUS_EQUAL,
91             MULTIPLY_EQUAL,
92             VARIABLE,
93             INTEGERLITERAL,
94             DOUBLELITERAL,
95             STRINGINTERPOLATED,
96             STRINGSINGLEQUOTE,
97             LEFT_SHIFT,
98             RIGHT_SHIFT,
99             EQUAL_EQUAL_EQUAL,
100             NOT_EQUAL_EQUAL,
101             HEREDOC,
102             INTCAST,
103             BOOLCAST,
104             DOUBLECAST,
105             STRINGCAST,
106             ARRAYCAST,
107             OBJECTCAST,
108             UNSETCAST,
109             ENCAPSEDSTRING0,
110             STRING,
111             LBRACE_DOLLAR,
112             SQLSELECT,
113             SQLUPDATE,
114             SQLINSERT,
115             SQLWHERE,
116             SQLFROM,
117             SQLINTO,
118             SQLSET,
119             SQLVALUES,
120             ECHO_INVISIBLE,
121             KEYWORD,                       // Here the PHP keywords start
122             ABSTRACT,
123             ARRAY,
124             AS,
125             BREAK,
126             CASE,
127             CATCH,
128             CLASS,
129             CLASS_C,
130             CLONE,
131             CONST,
132             CONTINUE,
133             DECLARE,
134             DEFAULT,
135             DO,
136             ECHO,
137             ELSE,
138             ELSEIF,
139             EMPTY,
140             ENDDECLARE,
141             ENDFOR,
142             ENDFOREACH,
143             ENDIF,
144             ENDSWITCH,
145             ENDWHILE,
146             EVAL,
147             EXIT,
148             EXTENDS,
149             FILE,
150             FINAL,
151             FINALLY,
152             FOR,
153             FOREACH,
154             FUNCTION,
155             FUNC_C,
156             GLOBAL,
157             GOTO,
158             IF,
159             IMPLEMENTS,
160             INCLUDE,
161             INCLUDE_ONCE,
162             INSTANCEOF,
163             INTERFACE,
164             ISSET,
165             LINE,
166             LIST,
167             METHOD_C,
168             NAMESPACE,
169             NEW,
170             OLD_FUNCTION,
171             PRINT,
172             PRIVATE,
173             PROTECTED,
174             PUBLIC,
175             REQUIRE,
176             REQUIRE_ONCE,
177             RETURN,
178             STATIC,
179             SUPER,
180             SWITCH,
181             THROW,
182             TRY,
183             UNSET,
184             USE,
185             VAR,
186             WHILE,
187             THIS_PHP_COMPLETION;              // special tokens not normally used in the parser
188         };
189 }