Debian Codegraph @

codelitephp/resources/cc/tokenizer.php

raw
1 <?php
2
3 // Start of tokenizer v.0.1
4
5 /**
6 * Split given source into PHP tokens
7 * @link http://www.php.net/manual/en/function.token-get-all.php
8 * @param source string <p>
9 * The PHP source to parse.
10 * </p>
11 * @return array An array of token identifiers. Each individual token identifier is either
12 * a single character (i.e.: ;, .,
13 * >, !, etc...),
14 * or a three element array containing the token index in element 0, the string
15 * content of the original token in element 1 and the line number in element 2.
16 */
17 function token_get_all ($source) {}
18
19 /**
20 * Get the symbolic name of a given PHP token
21 * @link http://www.php.net/manual/en/function.token-name.php
22 * @param token int <p>
23 * The token value.
24 * </p>
25 * @return string The symbolic name of the given token.
26 */
27 function token_name ($token) {}
28
29 define ('T_REQUIRE_ONCE', 258);
30 define ('T_REQUIRE', 259);
31 define ('T_EVAL', 260);
32 define ('T_INCLUDE_ONCE', 261);
33 define ('T_INCLUDE', 262);
34 define ('T_LOGICAL_OR', 263);
35 define ('T_LOGICAL_XOR', 264);
36 define ('T_LOGICAL_AND', 265);
37 define ('T_PRINT', 266);
38 define ('T_YIELD', 267);
39 define ('T_POW_EQUAL', 268);
40 define ('T_SR_EQUAL', 269);
41 define ('T_SL_EQUAL', 270);
42 define ('T_XOR_EQUAL', 271);
43 define ('T_OR_EQUAL', 272);
44 define ('T_AND_EQUAL', 273);
45 define ('T_MOD_EQUAL', 274);
46 define ('T_CONCAT_EQUAL', 275);
47 define ('T_DIV_EQUAL', 276);
48 define ('T_MUL_EQUAL', 277);
49 define ('T_MINUS_EQUAL', 278);
50 define ('T_PLUS_EQUAL', 279);
51 define ('T_BOOLEAN_OR', 280);
52 define ('T_BOOLEAN_AND', 281);
53 define ('T_IS_NOT_IDENTICAL', 282);
54 define ('T_IS_IDENTICAL', 283);
55 define ('T_IS_NOT_EQUAL', 284);
56 define ('T_IS_EQUAL', 285);
57 define ('T_IS_GREATER_OR_EQUAL', 286);
58 define ('T_IS_SMALLER_OR_EQUAL', 287);
59 define ('T_SR', 288);
60 define ('T_SL', 289);
61 define ('T_INSTANCEOF', 290);
62 define ('T_UNSET_CAST', 291);
63 define ('T_BOOL_CAST', 292);
64 define ('T_OBJECT_CAST', 293);
65 define ('T_ARRAY_CAST', 294);
66 define ('T_STRING_CAST', 295);
67 define ('T_DOUBLE_CAST', 296);
68 define ('T_INT_CAST', 297);
69 define ('T_DEC', 298);
70 define ('T_INC', 299);
71 define ('T_POW', 300);
72 define ('T_CLONE', 301);
73 define ('T_NEW', 302);
74 define ('T_EXIT', 303);
75 define ('T_IF', 304);
76 define ('T_ELSEIF', 305);
77 define ('T_ELSE', 306);
78 define ('T_ENDIF', 307);
79 define ('T_LNUMBER', 308);
80 define ('T_DNUMBER', 309);
81 define ('T_STRING', 310);
82 define ('T_STRING_VARNAME', 311);
83 define ('T_VARIABLE', 312);
84 define ('T_NUM_STRING', 313);
85 define ('T_INLINE_HTML', 314);
86 define ('T_CHARACTER', 315);
87 define ('T_BAD_CHARACTER', 316);
88 define ('T_ENCAPSED_AND_WHITESPACE', 317);
89 define ('T_CONSTANT_ENCAPSED_STRING', 318);
90 define ('T_ECHO', 319);
91 define ('T_DO', 320);
92 define ('T_WHILE', 321);
93 define ('T_ENDWHILE', 322);
94 define ('T_FOR', 323);
95 define ('T_ENDFOR', 324);
96 define ('T_FOREACH', 325);
97 define ('T_ENDFOREACH', 326);
98 define ('T_DECLARE', 327);
99 define ('T_ENDDECLARE', 328);
100 define ('T_AS', 329);
101 define ('T_SWITCH', 330);
102 define ('T_ENDSWITCH', 331);
103 define ('T_CASE', 332);
104 define ('T_DEFAULT', 333);
105 define ('T_BREAK', 334);
106 define ('T_CONTINUE', 335);
107 define ('T_GOTO', 336);
108 define ('T_FUNCTION', 337);
109 define ('T_CONST', 338);
110 define ('T_RETURN', 339);
111 define ('T_TRY', 340);
112 define ('T_CATCH', 341);
113 define ('T_FINALLY', 342);
114 define ('T_THROW', 343);
115 define ('T_USE', 344);
116 define ('T_INSTEADOF', 345);
117 define ('T_GLOBAL', 346);
118 define ('T_PUBLIC', 347);
119 define ('T_PROTECTED', 348);
120 define ('T_PRIVATE', 349);
121 define ('T_FINAL', 350);
122 define ('T_ABSTRACT', 351);
123 define ('T_STATIC', 352);
124 define ('T_VAR', 353);
125 define ('T_UNSET', 354);
126 define ('T_ISSET', 355);
127 define ('T_EMPTY', 356);
128 define ('T_HALT_COMPILER', 357);
129 define ('T_CLASS', 358);
130 define ('T_TRAIT', 359);
131 define ('T_INTERFACE', 360);
132 define ('T_EXTENDS', 361);
133 define ('T_IMPLEMENTS', 362);
134 define ('T_OBJECT_OPERATOR', 363);
135 define ('T_DOUBLE_ARROW', 364);
136 define ('T_LIST', 365);
137 define ('T_ARRAY', 366);
138 define ('T_CALLABLE', 367);
139 define ('T_CLASS_C', 368);
140 define ('T_TRAIT_C', 369);
141 define ('T_METHOD_C', 370);
142 define ('T_FUNC_C', 371);
143 define ('T_LINE', 372);
144 define ('T_FILE', 373);
145 define ('T_COMMENT', 374);
146 define ('T_DOC_COMMENT', 375);
147 define ('T_OPEN_TAG', 376);
148 define ('T_OPEN_TAG_WITH_ECHO', 377);
149 define ('T_CLOSE_TAG', 378);
150 define ('T_WHITESPACE', 379);
151 define ('T_START_HEREDOC', 380);
152 define ('T_END_HEREDOC', 381);
153 define ('T_DOLLAR_OPEN_CURLY_BRACES', 382);
154 define ('T_CURLY_OPEN', 383);
155 define ('T_PAAMAYIM_NEKUDOTAYIM', 384);
156 define ('T_NAMESPACE', 385);
157 define ('T_NS_C', 386);
158 define ('T_DIR', 387);
159 define ('T_NS_SEPARATOR', 388);
160 define ('T_ELLIPSIS', 389);
161 define ('T_DOUBLE_COLON', 384);
162
163 // End of tokenizer v.0.1
164 ?>