tokenizer_data.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Author: Johannes Schlueter <johannes@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. /*
  20. DO NOT EDIT THIS FILE!
  21. This file is generated using tokenizer_data_gen.sh
  22. */
  23. #include "php.h"
  24. #include "zend.h"
  25. #include <zend_language_parser.h>
  26. void tokenizer_register_constants(INIT_FUNC_ARGS) {
  27. REGISTER_LONG_CONSTANT("T_REQUIRE_ONCE", T_REQUIRE_ONCE, CONST_CS | CONST_PERSISTENT);
  28. REGISTER_LONG_CONSTANT("T_REQUIRE", T_REQUIRE, CONST_CS | CONST_PERSISTENT);
  29. REGISTER_LONG_CONSTANT("T_EVAL", T_EVAL, CONST_CS | CONST_PERSISTENT);
  30. REGISTER_LONG_CONSTANT("T_INCLUDE_ONCE", T_INCLUDE_ONCE, CONST_CS | CONST_PERSISTENT);
  31. REGISTER_LONG_CONSTANT("T_INCLUDE", T_INCLUDE, CONST_CS | CONST_PERSISTENT);
  32. REGISTER_LONG_CONSTANT("T_LOGICAL_OR", T_LOGICAL_OR, CONST_CS | CONST_PERSISTENT);
  33. REGISTER_LONG_CONSTANT("T_LOGICAL_XOR", T_LOGICAL_XOR, CONST_CS | CONST_PERSISTENT);
  34. REGISTER_LONG_CONSTANT("T_LOGICAL_AND", T_LOGICAL_AND, CONST_CS | CONST_PERSISTENT);
  35. REGISTER_LONG_CONSTANT("T_PRINT", T_PRINT, CONST_CS | CONST_PERSISTENT);
  36. REGISTER_LONG_CONSTANT("T_YIELD", T_YIELD, CONST_CS | CONST_PERSISTENT);
  37. REGISTER_LONG_CONSTANT("T_POW_EQUAL", T_POW_EQUAL, CONST_CS | CONST_PERSISTENT);
  38. REGISTER_LONG_CONSTANT("T_SR_EQUAL", T_SR_EQUAL, CONST_CS | CONST_PERSISTENT);
  39. REGISTER_LONG_CONSTANT("T_SL_EQUAL", T_SL_EQUAL, CONST_CS | CONST_PERSISTENT);
  40. REGISTER_LONG_CONSTANT("T_XOR_EQUAL", T_XOR_EQUAL, CONST_CS | CONST_PERSISTENT);
  41. REGISTER_LONG_CONSTANT("T_OR_EQUAL", T_OR_EQUAL, CONST_CS | CONST_PERSISTENT);
  42. REGISTER_LONG_CONSTANT("T_AND_EQUAL", T_AND_EQUAL, CONST_CS | CONST_PERSISTENT);
  43. REGISTER_LONG_CONSTANT("T_MOD_EQUAL", T_MOD_EQUAL, CONST_CS | CONST_PERSISTENT);
  44. REGISTER_LONG_CONSTANT("T_CONCAT_EQUAL", T_CONCAT_EQUAL, CONST_CS | CONST_PERSISTENT);
  45. REGISTER_LONG_CONSTANT("T_DIV_EQUAL", T_DIV_EQUAL, CONST_CS | CONST_PERSISTENT);
  46. REGISTER_LONG_CONSTANT("T_MUL_EQUAL", T_MUL_EQUAL, CONST_CS | CONST_PERSISTENT);
  47. REGISTER_LONG_CONSTANT("T_MINUS_EQUAL", T_MINUS_EQUAL, CONST_CS | CONST_PERSISTENT);
  48. REGISTER_LONG_CONSTANT("T_PLUS_EQUAL", T_PLUS_EQUAL, CONST_CS | CONST_PERSISTENT);
  49. REGISTER_LONG_CONSTANT("T_BOOLEAN_OR", T_BOOLEAN_OR, CONST_CS | CONST_PERSISTENT);
  50. REGISTER_LONG_CONSTANT("T_BOOLEAN_AND", T_BOOLEAN_AND, CONST_CS | CONST_PERSISTENT);
  51. REGISTER_LONG_CONSTANT("T_IS_NOT_IDENTICAL", T_IS_NOT_IDENTICAL, CONST_CS | CONST_PERSISTENT);
  52. REGISTER_LONG_CONSTANT("T_IS_IDENTICAL", T_IS_IDENTICAL, CONST_CS | CONST_PERSISTENT);
  53. REGISTER_LONG_CONSTANT("T_IS_NOT_EQUAL", T_IS_NOT_EQUAL, CONST_CS | CONST_PERSISTENT);
  54. REGISTER_LONG_CONSTANT("T_IS_EQUAL", T_IS_EQUAL, CONST_CS | CONST_PERSISTENT);
  55. REGISTER_LONG_CONSTANT("T_IS_GREATER_OR_EQUAL", T_IS_GREATER_OR_EQUAL, CONST_CS | CONST_PERSISTENT);
  56. REGISTER_LONG_CONSTANT("T_IS_SMALLER_OR_EQUAL", T_IS_SMALLER_OR_EQUAL, CONST_CS | CONST_PERSISTENT);
  57. REGISTER_LONG_CONSTANT("T_SR", T_SR, CONST_CS | CONST_PERSISTENT);
  58. REGISTER_LONG_CONSTANT("T_SL", T_SL, CONST_CS | CONST_PERSISTENT);
  59. REGISTER_LONG_CONSTANT("T_INSTANCEOF", T_INSTANCEOF, CONST_CS | CONST_PERSISTENT);
  60. REGISTER_LONG_CONSTANT("T_UNSET_CAST", T_UNSET_CAST, CONST_CS | CONST_PERSISTENT);
  61. REGISTER_LONG_CONSTANT("T_BOOL_CAST", T_BOOL_CAST, CONST_CS | CONST_PERSISTENT);
  62. REGISTER_LONG_CONSTANT("T_OBJECT_CAST", T_OBJECT_CAST, CONST_CS | CONST_PERSISTENT);
  63. REGISTER_LONG_CONSTANT("T_ARRAY_CAST", T_ARRAY_CAST, CONST_CS | CONST_PERSISTENT);
  64. REGISTER_LONG_CONSTANT("T_STRING_CAST", T_STRING_CAST, CONST_CS | CONST_PERSISTENT);
  65. REGISTER_LONG_CONSTANT("T_DOUBLE_CAST", T_DOUBLE_CAST, CONST_CS | CONST_PERSISTENT);
  66. REGISTER_LONG_CONSTANT("T_INT_CAST", T_INT_CAST, CONST_CS | CONST_PERSISTENT);
  67. REGISTER_LONG_CONSTANT("T_DEC", T_DEC, CONST_CS | CONST_PERSISTENT);
  68. REGISTER_LONG_CONSTANT("T_INC", T_INC, CONST_CS | CONST_PERSISTENT);
  69. REGISTER_LONG_CONSTANT("T_POW", T_POW, CONST_CS | CONST_PERSISTENT);
  70. REGISTER_LONG_CONSTANT("T_CLONE", T_CLONE, CONST_CS | CONST_PERSISTENT);
  71. REGISTER_LONG_CONSTANT("T_NEW", T_NEW, CONST_CS | CONST_PERSISTENT);
  72. REGISTER_LONG_CONSTANT("T_EXIT", T_EXIT, CONST_CS | CONST_PERSISTENT);
  73. REGISTER_LONG_CONSTANT("T_IF", T_IF, CONST_CS | CONST_PERSISTENT);
  74. REGISTER_LONG_CONSTANT("T_ELSEIF", T_ELSEIF, CONST_CS | CONST_PERSISTENT);
  75. REGISTER_LONG_CONSTANT("T_ELSE", T_ELSE, CONST_CS | CONST_PERSISTENT);
  76. REGISTER_LONG_CONSTANT("T_ENDIF", T_ENDIF, CONST_CS | CONST_PERSISTENT);
  77. REGISTER_LONG_CONSTANT("T_LNUMBER", T_LNUMBER, CONST_CS | CONST_PERSISTENT);
  78. REGISTER_LONG_CONSTANT("T_DNUMBER", T_DNUMBER, CONST_CS | CONST_PERSISTENT);
  79. REGISTER_LONG_CONSTANT("T_STRING", T_STRING, CONST_CS | CONST_PERSISTENT);
  80. REGISTER_LONG_CONSTANT("T_STRING_VARNAME", T_STRING_VARNAME, CONST_CS | CONST_PERSISTENT);
  81. REGISTER_LONG_CONSTANT("T_VARIABLE", T_VARIABLE, CONST_CS | CONST_PERSISTENT);
  82. REGISTER_LONG_CONSTANT("T_NUM_STRING", T_NUM_STRING, CONST_CS | CONST_PERSISTENT);
  83. REGISTER_LONG_CONSTANT("T_INLINE_HTML", T_INLINE_HTML, CONST_CS | CONST_PERSISTENT);
  84. REGISTER_LONG_CONSTANT("T_CHARACTER", T_CHARACTER, CONST_CS | CONST_PERSISTENT);
  85. REGISTER_LONG_CONSTANT("T_BAD_CHARACTER", T_BAD_CHARACTER, CONST_CS | CONST_PERSISTENT);
  86. REGISTER_LONG_CONSTANT("T_ENCAPSED_AND_WHITESPACE", T_ENCAPSED_AND_WHITESPACE, CONST_CS | CONST_PERSISTENT);
  87. REGISTER_LONG_CONSTANT("T_CONSTANT_ENCAPSED_STRING", T_CONSTANT_ENCAPSED_STRING, CONST_CS | CONST_PERSISTENT);
  88. REGISTER_LONG_CONSTANT("T_ECHO", T_ECHO, CONST_CS | CONST_PERSISTENT);
  89. REGISTER_LONG_CONSTANT("T_DO", T_DO, CONST_CS | CONST_PERSISTENT);
  90. REGISTER_LONG_CONSTANT("T_WHILE", T_WHILE, CONST_CS | CONST_PERSISTENT);
  91. REGISTER_LONG_CONSTANT("T_ENDWHILE", T_ENDWHILE, CONST_CS | CONST_PERSISTENT);
  92. REGISTER_LONG_CONSTANT("T_FOR", T_FOR, CONST_CS | CONST_PERSISTENT);
  93. REGISTER_LONG_CONSTANT("T_ENDFOR", T_ENDFOR, CONST_CS | CONST_PERSISTENT);
  94. REGISTER_LONG_CONSTANT("T_FOREACH", T_FOREACH, CONST_CS | CONST_PERSISTENT);
  95. REGISTER_LONG_CONSTANT("T_ENDFOREACH", T_ENDFOREACH, CONST_CS | CONST_PERSISTENT);
  96. REGISTER_LONG_CONSTANT("T_DECLARE", T_DECLARE, CONST_CS | CONST_PERSISTENT);
  97. REGISTER_LONG_CONSTANT("T_ENDDECLARE", T_ENDDECLARE, CONST_CS | CONST_PERSISTENT);
  98. REGISTER_LONG_CONSTANT("T_AS", T_AS, CONST_CS | CONST_PERSISTENT);
  99. REGISTER_LONG_CONSTANT("T_SWITCH", T_SWITCH, CONST_CS | CONST_PERSISTENT);
  100. REGISTER_LONG_CONSTANT("T_ENDSWITCH", T_ENDSWITCH, CONST_CS | CONST_PERSISTENT);
  101. REGISTER_LONG_CONSTANT("T_CASE", T_CASE, CONST_CS | CONST_PERSISTENT);
  102. REGISTER_LONG_CONSTANT("T_DEFAULT", T_DEFAULT, CONST_CS | CONST_PERSISTENT);
  103. REGISTER_LONG_CONSTANT("T_BREAK", T_BREAK, CONST_CS | CONST_PERSISTENT);
  104. REGISTER_LONG_CONSTANT("T_CONTINUE", T_CONTINUE, CONST_CS | CONST_PERSISTENT);
  105. REGISTER_LONG_CONSTANT("T_GOTO", T_GOTO, CONST_CS | CONST_PERSISTENT);
  106. REGISTER_LONG_CONSTANT("T_FUNCTION", T_FUNCTION, CONST_CS | CONST_PERSISTENT);
  107. REGISTER_LONG_CONSTANT("T_CONST", T_CONST, CONST_CS | CONST_PERSISTENT);
  108. REGISTER_LONG_CONSTANT("T_RETURN", T_RETURN, CONST_CS | CONST_PERSISTENT);
  109. REGISTER_LONG_CONSTANT("T_TRY", T_TRY, CONST_CS | CONST_PERSISTENT);
  110. REGISTER_LONG_CONSTANT("T_CATCH", T_CATCH, CONST_CS | CONST_PERSISTENT);
  111. REGISTER_LONG_CONSTANT("T_FINALLY", T_FINALLY, CONST_CS | CONST_PERSISTENT);
  112. REGISTER_LONG_CONSTANT("T_THROW", T_THROW, CONST_CS | CONST_PERSISTENT);
  113. REGISTER_LONG_CONSTANT("T_USE", T_USE, CONST_CS | CONST_PERSISTENT);
  114. REGISTER_LONG_CONSTANT("T_INSTEADOF", T_INSTEADOF, CONST_CS | CONST_PERSISTENT);
  115. REGISTER_LONG_CONSTANT("T_GLOBAL", T_GLOBAL, CONST_CS | CONST_PERSISTENT);
  116. REGISTER_LONG_CONSTANT("T_PUBLIC", T_PUBLIC, CONST_CS | CONST_PERSISTENT);
  117. REGISTER_LONG_CONSTANT("T_PROTECTED", T_PROTECTED, CONST_CS | CONST_PERSISTENT);
  118. REGISTER_LONG_CONSTANT("T_PRIVATE", T_PRIVATE, CONST_CS | CONST_PERSISTENT);
  119. REGISTER_LONG_CONSTANT("T_FINAL", T_FINAL, CONST_CS | CONST_PERSISTENT);
  120. REGISTER_LONG_CONSTANT("T_ABSTRACT", T_ABSTRACT, CONST_CS | CONST_PERSISTENT);
  121. REGISTER_LONG_CONSTANT("T_STATIC", T_STATIC, CONST_CS | CONST_PERSISTENT);
  122. REGISTER_LONG_CONSTANT("T_VAR", T_VAR, CONST_CS | CONST_PERSISTENT);
  123. REGISTER_LONG_CONSTANT("T_UNSET", T_UNSET, CONST_CS | CONST_PERSISTENT);
  124. REGISTER_LONG_CONSTANT("T_ISSET", T_ISSET, CONST_CS | CONST_PERSISTENT);
  125. REGISTER_LONG_CONSTANT("T_EMPTY", T_EMPTY, CONST_CS | CONST_PERSISTENT);
  126. REGISTER_LONG_CONSTANT("T_HALT_COMPILER", T_HALT_COMPILER, CONST_CS | CONST_PERSISTENT);
  127. REGISTER_LONG_CONSTANT("T_CLASS", T_CLASS, CONST_CS | CONST_PERSISTENT);
  128. REGISTER_LONG_CONSTANT("T_TRAIT", T_TRAIT, CONST_CS | CONST_PERSISTENT);
  129. REGISTER_LONG_CONSTANT("T_INTERFACE", T_INTERFACE, CONST_CS | CONST_PERSISTENT);
  130. REGISTER_LONG_CONSTANT("T_EXTENDS", T_EXTENDS, CONST_CS | CONST_PERSISTENT);
  131. REGISTER_LONG_CONSTANT("T_IMPLEMENTS", T_IMPLEMENTS, CONST_CS | CONST_PERSISTENT);
  132. REGISTER_LONG_CONSTANT("T_OBJECT_OPERATOR", T_OBJECT_OPERATOR, CONST_CS | CONST_PERSISTENT);
  133. REGISTER_LONG_CONSTANT("T_DOUBLE_ARROW", T_DOUBLE_ARROW, CONST_CS | CONST_PERSISTENT);
  134. REGISTER_LONG_CONSTANT("T_LIST", T_LIST, CONST_CS | CONST_PERSISTENT);
  135. REGISTER_LONG_CONSTANT("T_ARRAY", T_ARRAY, CONST_CS | CONST_PERSISTENT);
  136. REGISTER_LONG_CONSTANT("T_CALLABLE", T_CALLABLE, CONST_CS | CONST_PERSISTENT);
  137. REGISTER_LONG_CONSTANT("T_CLASS_C", T_CLASS_C, CONST_CS | CONST_PERSISTENT);
  138. REGISTER_LONG_CONSTANT("T_TRAIT_C", T_TRAIT_C, CONST_CS | CONST_PERSISTENT);
  139. REGISTER_LONG_CONSTANT("T_METHOD_C", T_METHOD_C, CONST_CS | CONST_PERSISTENT);
  140. REGISTER_LONG_CONSTANT("T_FUNC_C", T_FUNC_C, CONST_CS | CONST_PERSISTENT);
  141. REGISTER_LONG_CONSTANT("T_LINE", T_LINE, CONST_CS | CONST_PERSISTENT);
  142. REGISTER_LONG_CONSTANT("T_FILE", T_FILE, CONST_CS | CONST_PERSISTENT);
  143. REGISTER_LONG_CONSTANT("T_COMMENT", T_COMMENT, CONST_CS | CONST_PERSISTENT);
  144. REGISTER_LONG_CONSTANT("T_DOC_COMMENT", T_DOC_COMMENT, CONST_CS | CONST_PERSISTENT);
  145. REGISTER_LONG_CONSTANT("T_OPEN_TAG", T_OPEN_TAG, CONST_CS | CONST_PERSISTENT);
  146. REGISTER_LONG_CONSTANT("T_OPEN_TAG_WITH_ECHO", T_OPEN_TAG_WITH_ECHO, CONST_CS | CONST_PERSISTENT);
  147. REGISTER_LONG_CONSTANT("T_CLOSE_TAG", T_CLOSE_TAG, CONST_CS | CONST_PERSISTENT);
  148. REGISTER_LONG_CONSTANT("T_WHITESPACE", T_WHITESPACE, CONST_CS | CONST_PERSISTENT);
  149. REGISTER_LONG_CONSTANT("T_START_HEREDOC", T_START_HEREDOC, CONST_CS | CONST_PERSISTENT);
  150. REGISTER_LONG_CONSTANT("T_END_HEREDOC", T_END_HEREDOC, CONST_CS | CONST_PERSISTENT);
  151. REGISTER_LONG_CONSTANT("T_DOLLAR_OPEN_CURLY_BRACES", T_DOLLAR_OPEN_CURLY_BRACES, CONST_CS | CONST_PERSISTENT);
  152. REGISTER_LONG_CONSTANT("T_CURLY_OPEN", T_CURLY_OPEN, CONST_CS | CONST_PERSISTENT);
  153. REGISTER_LONG_CONSTANT("T_PAAMAYIM_NEKUDOTAYIM", T_PAAMAYIM_NEKUDOTAYIM, CONST_CS | CONST_PERSISTENT);
  154. REGISTER_LONG_CONSTANT("T_NAMESPACE", T_NAMESPACE, CONST_CS | CONST_PERSISTENT);
  155. REGISTER_LONG_CONSTANT("T_NS_C", T_NS_C, CONST_CS | CONST_PERSISTENT);
  156. REGISTER_LONG_CONSTANT("T_DIR", T_DIR, CONST_CS | CONST_PERSISTENT);
  157. REGISTER_LONG_CONSTANT("T_NS_SEPARATOR", T_NS_SEPARATOR, CONST_CS | CONST_PERSISTENT);
  158. REGISTER_LONG_CONSTANT("T_ELLIPSIS", T_ELLIPSIS, CONST_CS | CONST_PERSISTENT);
  159. REGISTER_LONG_CONSTANT("T_DOUBLE_COLON", T_PAAMAYIM_NEKUDOTAYIM, CONST_CS | CONST_PERSISTENT);
  160. }
  161. char *get_token_type_name(int token_type)
  162. {
  163. switch (token_type) {
  164. case T_REQUIRE_ONCE: return "T_REQUIRE_ONCE";
  165. case T_REQUIRE: return "T_REQUIRE";
  166. case T_EVAL: return "T_EVAL";
  167. case T_INCLUDE_ONCE: return "T_INCLUDE_ONCE";
  168. case T_INCLUDE: return "T_INCLUDE";
  169. case T_LOGICAL_OR: return "T_LOGICAL_OR";
  170. case T_LOGICAL_XOR: return "T_LOGICAL_XOR";
  171. case T_LOGICAL_AND: return "T_LOGICAL_AND";
  172. case T_PRINT: return "T_PRINT";
  173. case T_YIELD: return "T_YIELD";
  174. case T_POW_EQUAL: return "T_POW_EQUAL";
  175. case T_SR_EQUAL: return "T_SR_EQUAL";
  176. case T_SL_EQUAL: return "T_SL_EQUAL";
  177. case T_XOR_EQUAL: return "T_XOR_EQUAL";
  178. case T_OR_EQUAL: return "T_OR_EQUAL";
  179. case T_AND_EQUAL: return "T_AND_EQUAL";
  180. case T_MOD_EQUAL: return "T_MOD_EQUAL";
  181. case T_CONCAT_EQUAL: return "T_CONCAT_EQUAL";
  182. case T_DIV_EQUAL: return "T_DIV_EQUAL";
  183. case T_MUL_EQUAL: return "T_MUL_EQUAL";
  184. case T_MINUS_EQUAL: return "T_MINUS_EQUAL";
  185. case T_PLUS_EQUAL: return "T_PLUS_EQUAL";
  186. case T_BOOLEAN_OR: return "T_BOOLEAN_OR";
  187. case T_BOOLEAN_AND: return "T_BOOLEAN_AND";
  188. case T_IS_NOT_IDENTICAL: return "T_IS_NOT_IDENTICAL";
  189. case T_IS_IDENTICAL: return "T_IS_IDENTICAL";
  190. case T_IS_NOT_EQUAL: return "T_IS_NOT_EQUAL";
  191. case T_IS_EQUAL: return "T_IS_EQUAL";
  192. case T_IS_GREATER_OR_EQUAL: return "T_IS_GREATER_OR_EQUAL";
  193. case T_IS_SMALLER_OR_EQUAL: return "T_IS_SMALLER_OR_EQUAL";
  194. case T_SR: return "T_SR";
  195. case T_SL: return "T_SL";
  196. case T_INSTANCEOF: return "T_INSTANCEOF";
  197. case T_UNSET_CAST: return "T_UNSET_CAST";
  198. case T_BOOL_CAST: return "T_BOOL_CAST";
  199. case T_OBJECT_CAST: return "T_OBJECT_CAST";
  200. case T_ARRAY_CAST: return "T_ARRAY_CAST";
  201. case T_STRING_CAST: return "T_STRING_CAST";
  202. case T_DOUBLE_CAST: return "T_DOUBLE_CAST";
  203. case T_INT_CAST: return "T_INT_CAST";
  204. case T_DEC: return "T_DEC";
  205. case T_INC: return "T_INC";
  206. case T_POW: return "T_POW";
  207. case T_CLONE: return "T_CLONE";
  208. case T_NEW: return "T_NEW";
  209. case T_EXIT: return "T_EXIT";
  210. case T_IF: return "T_IF";
  211. case T_ELSEIF: return "T_ELSEIF";
  212. case T_ELSE: return "T_ELSE";
  213. case T_ENDIF: return "T_ENDIF";
  214. case T_LNUMBER: return "T_LNUMBER";
  215. case T_DNUMBER: return "T_DNUMBER";
  216. case T_STRING: return "T_STRING";
  217. case T_STRING_VARNAME: return "T_STRING_VARNAME";
  218. case T_VARIABLE: return "T_VARIABLE";
  219. case T_NUM_STRING: return "T_NUM_STRING";
  220. case T_INLINE_HTML: return "T_INLINE_HTML";
  221. case T_CHARACTER: return "T_CHARACTER";
  222. case T_BAD_CHARACTER: return "T_BAD_CHARACTER";
  223. case T_ENCAPSED_AND_WHITESPACE: return "T_ENCAPSED_AND_WHITESPACE";
  224. case T_CONSTANT_ENCAPSED_STRING: return "T_CONSTANT_ENCAPSED_STRING";
  225. case T_ECHO: return "T_ECHO";
  226. case T_DO: return "T_DO";
  227. case T_WHILE: return "T_WHILE";
  228. case T_ENDWHILE: return "T_ENDWHILE";
  229. case T_FOR: return "T_FOR";
  230. case T_ENDFOR: return "T_ENDFOR";
  231. case T_FOREACH: return "T_FOREACH";
  232. case T_ENDFOREACH: return "T_ENDFOREACH";
  233. case T_DECLARE: return "T_DECLARE";
  234. case T_ENDDECLARE: return "T_ENDDECLARE";
  235. case T_AS: return "T_AS";
  236. case T_SWITCH: return "T_SWITCH";
  237. case T_ENDSWITCH: return "T_ENDSWITCH";
  238. case T_CASE: return "T_CASE";
  239. case T_DEFAULT: return "T_DEFAULT";
  240. case T_BREAK: return "T_BREAK";
  241. case T_CONTINUE: return "T_CONTINUE";
  242. case T_GOTO: return "T_GOTO";
  243. case T_FUNCTION: return "T_FUNCTION";
  244. case T_CONST: return "T_CONST";
  245. case T_RETURN: return "T_RETURN";
  246. case T_TRY: return "T_TRY";
  247. case T_CATCH: return "T_CATCH";
  248. case T_FINALLY: return "T_FINALLY";
  249. case T_THROW: return "T_THROW";
  250. case T_USE: return "T_USE";
  251. case T_INSTEADOF: return "T_INSTEADOF";
  252. case T_GLOBAL: return "T_GLOBAL";
  253. case T_PUBLIC: return "T_PUBLIC";
  254. case T_PROTECTED: return "T_PROTECTED";
  255. case T_PRIVATE: return "T_PRIVATE";
  256. case T_FINAL: return "T_FINAL";
  257. case T_ABSTRACT: return "T_ABSTRACT";
  258. case T_STATIC: return "T_STATIC";
  259. case T_VAR: return "T_VAR";
  260. case T_UNSET: return "T_UNSET";
  261. case T_ISSET: return "T_ISSET";
  262. case T_EMPTY: return "T_EMPTY";
  263. case T_HALT_COMPILER: return "T_HALT_COMPILER";
  264. case T_CLASS: return "T_CLASS";
  265. case T_TRAIT: return "T_TRAIT";
  266. case T_INTERFACE: return "T_INTERFACE";
  267. case T_EXTENDS: return "T_EXTENDS";
  268. case T_IMPLEMENTS: return "T_IMPLEMENTS";
  269. case T_OBJECT_OPERATOR: return "T_OBJECT_OPERATOR";
  270. case T_DOUBLE_ARROW: return "T_DOUBLE_ARROW";
  271. case T_LIST: return "T_LIST";
  272. case T_ARRAY: return "T_ARRAY";
  273. case T_CALLABLE: return "T_CALLABLE";
  274. case T_CLASS_C: return "T_CLASS_C";
  275. case T_TRAIT_C: return "T_TRAIT_C";
  276. case T_METHOD_C: return "T_METHOD_C";
  277. case T_FUNC_C: return "T_FUNC_C";
  278. case T_LINE: return "T_LINE";
  279. case T_FILE: return "T_FILE";
  280. case T_COMMENT: return "T_COMMENT";
  281. case T_DOC_COMMENT: return "T_DOC_COMMENT";
  282. case T_OPEN_TAG: return "T_OPEN_TAG";
  283. case T_OPEN_TAG_WITH_ECHO: return "T_OPEN_TAG_WITH_ECHO";
  284. case T_CLOSE_TAG: return "T_CLOSE_TAG";
  285. case T_WHITESPACE: return "T_WHITESPACE";
  286. case T_START_HEREDOC: return "T_START_HEREDOC";
  287. case T_END_HEREDOC: return "T_END_HEREDOC";
  288. case T_DOLLAR_OPEN_CURLY_BRACES: return "T_DOLLAR_OPEN_CURLY_BRACES";
  289. case T_CURLY_OPEN: return "T_CURLY_OPEN";
  290. case T_PAAMAYIM_NEKUDOTAYIM: return "T_DOUBLE_COLON";
  291. case T_NAMESPACE: return "T_NAMESPACE";
  292. case T_NS_C: return "T_NS_C";
  293. case T_DIR: return "T_DIR";
  294. case T_NS_SEPARATOR: return "T_NS_SEPARATOR";
  295. case T_ELLIPSIS: return "T_ELLIPSIS";
  296. }
  297. return "UNKNOWN";
  298. }