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
9 IBM Corporation - Initial implementation
10 Klaus Hartlage - www.eclipseproject.de
11 **********************************************************************/
12 package net.sourceforge.phpeclipse.phpeditor.php;
14 import net.sourceforge.phpdt.core.compiler.ITerminalSymbols;
17 * PHP keyWords and Token definitions
19 public interface PHPKeywords extends ITerminalSymbols {
21 public final static String[] PHP_KEYWORS =
60 // "and", "or", "xor",
62 "null", "false", "true" };
64 public final static String[] PHP_TYPES =
67 "object", "bool", "boolean", "real", "double", "float", "int", "integer", };
69 // public final static int TokenNameKEYWORD = 1000;
70 // public final static int TokenNameif = 1001;
71 // public final static int TokenNameelseif = 1002;
72 // public final static int TokenNameelse = 1003;
73 // public final static int TokenNameendif = 1004;
74 // public final static int TokenNamefor = 1005;
75 // public final static int TokenNameendfor = 1006;
76 // public final static int TokenNamewhile = 1007;
77 // public final static int TokenNameendwhile = 1008;
78 // public final static int TokenNameswitch = 1009;
79 // public final static int TokenNamecase = 10010;
80 // public final static int TokenNameendswitch = 1011;
81 // public final static int TokenNamebreak = 1012;
82 // public final static int TokenNamecontinue = 1013;
83 // public final static int TokenNamereturn = 1014;
84 // public final static int TokenNamedefine = 1015;
85 // public final static int TokenNameinclude = 1016;
86 // public final static int TokenNameinclude_once = 1017;
87 // public final static int TokenNamerequire = 1018;
88 // public final static int TokenNamerequire_once = 1019;
89 // public final static int TokenNamefunction = 1020;
90 // public final static int TokenNameclass = 1021;
91 // public final static int TokenNamenew = 1022;
92 // public final static int TokenNamedo = 1023;
93 // public final static int TokenNameold_function = 1024;
94 // public final static int TokenNamedefault = 1025;
95 // public final static int TokenNameglobal = 1026;
96 // public final static int TokenNamestatic = 1027;
97 // public final static int TokenNameforeach = 1028;
98 // public final static int TokenNameendforeach = 1029;
99 // public final static int TokenNameextends = 1030;
100 // // public final static int TokenNameempty = 1031;
101 // // public final static int TokenNamearray = 1032;
102 // public final static int TokenNameecho = 1033;
103 // public final static int TokenNamevar = 1034;
104 // public final static int TokenNameas = 1035;
105 // public final static int TokenNameprint = 1036;
106 // // public final static int TokenNameunset = 1037;
107 // // public final static int TokenNameexit = 1038;
108 // // public final static int TokenNamedie = 1039;
109 // public final static int TokenNameand = 1040;
110 // public final static int TokenNameor = 1041;
111 // public final static int TokenNamexor = 1042;
112 // public final static int TokenNamelist = 1043;
113 // public final static int TokenNamenull = 1044;
114 // public final static int TokenNamefalse = 1045;
115 // public final static int TokenNametrue = 1046;
117 public final static int[] PHP_KEYWORD_TOKEN =
135 TokenNameinclude_once,
137 TokenNamerequire_once,
142 TokenNameold_function,
152 TokenNameecho, TokenNamevar, TokenNameas,
155 // TokenNameexit, TokenNamedie,
156 // TokenNameand, TokenNameor, TokenNamexor,
158 TokenNamenull, TokenNamefalse, TokenNametrue };*/