c36c59dfcf44e9fcb81ffba3f452713356a7779a
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPKeywords.java
1 /**********************************************************************
2 Copyright (c) 2000, 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 v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v10.html
7
8 Contributors:
9     IBM Corporation - Initial implementation
10     Klaus Hartlage - www.eclipseproject.de
11 **********************************************************************/
12 package net.sourceforge.phpeclipse.phpeditor.php;
13
14 import net.sourceforge.phpdt.core.compiler.ITerminalSymbols;
15
16 /**
17  * PHP keyWords and Token definitions
18  */
19 public interface PHPKeywords extends ITerminalSymbols {
20
21 //  public final static String[] PHP_KEYWORS =
22 //    {
23 //      "if",
24 //      "elseif",
25 //      "else",
26 //      "endif",
27 //      "for",
28 //      "endfor",
29 //      "while",
30 //      "endwhile",
31 //      "switch",
32 //      "case",
33 //      "endswitch",
34 //      "break",
35 //      "continue",
36 //      "return",
37 //      "define",
38 //      "include",
39 //      "include_once",
40 //      "require",
41 //      "require_once",
42 //      "function",
43 //      "class",
44 //      "new",
45 //      "do",
46 //      "old_function",
47 //      "default",
48 //      "global",
49 //      "static",
50 //      "foreach",
51 //      "endforeach",
52 //      "extends",
53 //      "empty",
54 //      "array",
55 //      "isset",
56 //      "echo",
57 //      "var",
58 //      "as",
59 //      "print",
60 //      "unset",
61 //      "exit",
62 //      "die",
63 //      "and",
64 //      "or",
65 //      "xor",
66 //      "list",
67 //      "null",
68 //      "false",
69 //      "true" };
70
71   public final static String[] PHP_TYPES = { "string", "unset",
72     //"array", 
73     "object", "bool", "boolean", "real", "double", "float", "int", "integer", };
74
75   //  public final static int TokenNameKEYWORD = 1000;
76   //  public final static int TokenNameif = 1001;
77   //  public final static int TokenNameelseif = 1002;
78   //  public final static int TokenNameelse = 1003;
79   //  public final static int TokenNameendif = 1004;
80   //  public final static int TokenNamefor = 1005;
81   //  public final static int TokenNameendfor = 1006;
82   //  public final static int TokenNamewhile = 1007;
83   //  public final static int TokenNameendwhile = 1008;
84   //  public final static int TokenNameswitch = 1009;
85   //  public final static int TokenNamecase = 10010;
86   //  public final static int TokenNameendswitch = 1011;
87   //  public final static int TokenNamebreak = 1012;
88   //  public final static int TokenNamecontinue = 1013;
89   //  public final static int TokenNamereturn = 1014;
90   //  public final static int TokenNamedefine = 1015;
91   //  public final static int TokenNameinclude = 1016;
92   //  public final static int TokenNameinclude_once = 1017;
93   //  public final static int TokenNamerequire = 1018;
94   //  public final static int TokenNamerequire_once = 1019;
95   //  public final static int TokenNamefunction = 1020;
96   //  public final static int TokenNameclass = 1021;
97   //  public final static int TokenNamenew = 1022;
98   //  public final static int TokenNamedo = 1023;
99   //  public final static int TokenNameold_function = 1024;
100   //  public final static int TokenNamedefault = 1025;
101   //  public final static int TokenNameglobal = 1026;
102   //  public final static int TokenNamestatic = 1027;
103   //  public final static int TokenNameforeach = 1028;
104   //  public final static int TokenNameendforeach = 1029;
105   //  public final static int TokenNameextends = 1030;
106   //  // public final static int TokenNameempty = 1031;
107   //  // public final static int TokenNamearray = 1032;
108   //  public final static int TokenNameecho = 1033;
109   //  public final static int TokenNamevar = 1034;
110   //  public final static int TokenNameas = 1035;
111   //  public final static int TokenNameprint = 1036;
112   // // public final static int TokenNameunset = 1037;
113   // //  public final static int TokenNameexit = 1038;
114   // // public final static int TokenNamedie = 1039;
115   //  public final static int TokenNameand = 1040;
116   //  public final static int TokenNameor = 1041;
117   //  public final static int TokenNamexor = 1042;
118   //  public final static int TokenNamelist = 1043;
119   //  public final static int TokenNamenull = 1044;
120   //  public final static int TokenNamefalse = 1045;
121   //  public final static int TokenNametrue = 1046;
122   /*
123     public final static int[] PHP_KEYWORD_TOKEN =
124       {
125         TokenNameif,
126         TokenNameelseif,
127         TokenNameelse,
128         TokenNameendif,
129         TokenNamefor,
130         TokenNameendfor,
131         TokenNamewhile,
132         TokenNameendwhile,
133         TokenNameswitch,
134         TokenNamecase,
135         TokenNameendswitch,
136         TokenNamebreak,
137         TokenNamecontinue,
138         TokenNamereturn,
139         TokenNamedefine,
140         TokenNameinclude,
141         TokenNameinclude_once,
142         TokenNamerequire,
143         TokenNamerequire_once,
144         TokenNamefunction,
145         TokenNameclass,
146         TokenNamenew,
147         TokenNamedo,
148         TokenNameold_function,
149         TokenNamedefault,
150         TokenNameglobal,
151         TokenNamestatic,
152         TokenNameforeach,
153         TokenNameendforeach,
154         TokenNameextends,
155       // TokenNameempty,
156       //  TokenNamearray,
157       //   TokenNameisset,
158       TokenNameecho, TokenNamevar, TokenNameas, 
159       TokenNameprint, 
160       // TokenNameunset, 
161       // TokenNameexit, TokenNamedie, 
162       // TokenNameand, TokenNameor, TokenNamexor, 
163       TokenNamelist, 
164       TokenNamenull, TokenNamefalse, TokenNametrue };*/
165 }