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;
15 * PHP keyWords and Token definitions
17 public class PHPKeywords {
19 public final static String[] PHP_KEYWORS =
54 "echo", "var", "as", "print", "unset", "exit", "die", "and", "or", "xor", "list",
55 "null", "false", "true" };
57 public final static String[] PHP_TYPES =
58 { "string", "unset", "array", "object", "bool", "boolean", "real", "double", "float", "int", "integer", };
60 public final static int TT_KEYWORD = 1000;
61 public final static int TT_if = 1001;
62 public final static int TT_elseif = 1002;
63 public final static int TT_else = 1003;
64 public final static int TT_endif = 1004;
65 public final static int TT_for = 1005;
66 public final static int TT_endfor = 1006;
67 public final static int TT_while = 1007;
68 public final static int TT_endwhile = 1008;
69 public final static int TT_switch = 1009;
70 public final static int TT_case = 10010;
71 public final static int TT_endswitch = 1011;
72 public final static int TT_break = 1012;
73 public final static int TT_continue = 1013;
74 public final static int TT_return = 1014;
75 public final static int TT_define = 1015;
76 public final static int TT_include = 1016;
77 public final static int TT_include_once = 1017;
78 public final static int TT_require = 1018;
79 public final static int TT_require_once = 1019;
80 public final static int TT_function = 1020;
81 public final static int TT_class = 1021;
82 public final static int TT_new = 1022;
83 public final static int TT_do = 1023;
84 public final static int TT_old_function = 1024;
85 public final static int TT_default = 1025;
86 public final static int TT_global = 1026;
87 public final static int TT_static = 1027;
88 public final static int TT_foreach = 1028;
89 public final static int TT_endforeach = 1029;
90 public final static int TT_extends = 1030;
91 // public final static int TT_empty = 1031;
92 // public final static int TT_array = 1032;
93 public final static int TT_echo = 1033;
94 public final static int TT_var = 1034;
95 public final static int TT_as = 1035;
96 public final static int TT_print = 1036;
97 public final static int TT_unset = 1037;
98 public final static int TT_exit = 1038;
99 public final static int TT_die = 1039;
100 public final static int TT_and = 1040;
101 public final static int TT_or = 1041;
102 public final static int TT_xor = 1042;
103 public final static int TT_list = 1043;
104 public final static int TT_null = 1044;
105 public final static int TT_false = 1045;
106 public final static int TT_true = 1046;
108 public final static int[] PHP_KEYWORD_TOKEN =
143 TT_echo, TT_var, TT_as, TT_print, TT_unset, TT_exit, TT_die, TT_and, TT_or, TT_xor, TT_list,
144 TT_null, TT_false, TT_true };