/plugins/PHPParser/tags/v1_2_3/src/gatchan/phpparser/parser/PHPParserConstants.java

# · Java · 341 lines · 335 code · 5 blank · 1 comment · 0 complexity · b5375f36048164f60b6c6e8213d3d036 MD5 · raw file

  1. /* Generated By:JavaCC: Do not edit this line. PHPParserConstants.java */
  2. package gatchan.phpparser.parser;
  3. public interface PHPParserConstants {
  4. int EOF = 0;
  5. int PHPSTARTSHORT = 1;
  6. int PHPSTARTLONG = 2;
  7. int PHPECHOSTART = 3;
  8. int PHPEND = 4;
  9. int SINGLE_LINE_COMMENT = 21;
  10. int PUBLIC = 26;
  11. int PROTECTED = 27;
  12. int PRIVATE = 28;
  13. int ABSTRACT = 29;
  14. int INTERFACE = 30;
  15. int IMPLEMENTS = 31;
  16. int FINAL = 32;
  17. int TRY = 33;
  18. int CATCH = 34;
  19. int THROW = 35;
  20. int CLASS = 36;
  21. int FUNCTION = 37;
  22. int VAR = 38;
  23. int IF = 39;
  24. int ELSEIF = 40;
  25. int ELSE = 41;
  26. int ARRAY = 42;
  27. int BREAK = 43;
  28. int LIST = 44;
  29. int PRINT = 45;
  30. int ECHO = 46;
  31. int INCLUDE = 47;
  32. int REQUIRE = 48;
  33. int INCLUDE_ONCE = 49;
  34. int REQUIRE_ONCE = 50;
  35. int GLOBAL = 51;
  36. int STATIC = 52;
  37. int CASE = 53;
  38. int CONST = 54;
  39. int CONTINUE = 55;
  40. int _DEFAULT = 56;
  41. int DO = 57;
  42. int EXTENDS = 58;
  43. int FOR = 59;
  44. int NEW = 60;
  45. int RETURN = 61;
  46. int SWITCH = 62;
  47. int WHILE = 63;
  48. int ENDWHILE = 64;
  49. int ENDSWITCH = 65;
  50. int ENDIF = 66;
  51. int ENDFOR = 67;
  52. int ENDFOREACH = 68;
  53. int FOREACH = 69;
  54. int AS = 70;
  55. int CLASSACCESS = 71;
  56. int STATICCLASSACCESS = 72;
  57. int ARRAYASSIGN = 73;
  58. int DEFINE = 74;
  59. int GOTO = 75;
  60. int NULL = 76;
  61. int SUPER = 77;
  62. int THIS = 78;
  63. int TRUE = 79;
  64. int FALSE = 80;
  65. int INSTANCEOF = 81;
  66. int STRING = 82;
  67. int OBJECT = 83;
  68. int BOOL = 84;
  69. int BOOLEAN = 85;
  70. int REAL = 86;
  71. int DOUBLE = 87;
  72. int FLOAT = 88;
  73. int INT = 89;
  74. int INTEGER = 90;
  75. int AT = 91;
  76. int BANG = 92;
  77. int TILDE = 93;
  78. int HOOK = 94;
  79. int COLON = 95;
  80. int OR_OR = 96;
  81. int AND_AND = 97;
  82. int PLUS_PLUS = 98;
  83. int MINUS_MINUS = 99;
  84. int PLUS = 100;
  85. int MINUS = 101;
  86. int STAR = 102;
  87. int SLASH = 103;
  88. int BIT_AND = 104;
  89. int BIT_OR = 105;
  90. int BIT_XOR = 106;
  91. int REMAINDER = 107;
  92. int LSHIFT = 108;
  93. int RSIGNEDSHIFT = 109;
  94. int RUNSIGNEDSHIFT = 110;
  95. int _ORL = 111;
  96. int XOR = 112;
  97. int _ANDL = 113;
  98. int INTEGER_LITERAL = 114;
  99. int DECIMAL_LITERAL = 115;
  100. int HEX_LITERAL = 116;
  101. int OCTAL_LITERAL = 117;
  102. int FLOATING_POINT_LITERAL = 118;
  103. int EXPONENT = 119;
  104. int STRING_LITERAL = 120;
  105. int STRING_2 = 121;
  106. int STRING_3 = 122;
  107. int ESCAPED = 123;
  108. int DOUBLEQUOTE = 124;
  109. int DOLLARS = 125;
  110. int DOUBLEQUOTE2 = 126;
  111. int LBRACE1 = 127;
  112. int RBRACE1 = 131;
  113. int ID = 132;
  114. int HEREDOCSTARTTOKEN = 135;
  115. int DOLLAR = 136;
  116. int IDENTIFIER = 137;
  117. int LETTER = 138;
  118. int DIGIT = 139;
  119. int SPECIAL = 140;
  120. int LPAREN = 142;
  121. int RPAREN = 143;
  122. int LBRACE = 144;
  123. int RBRACE = 145;
  124. int LBRACKET = 146;
  125. int RBRACKET = 147;
  126. int SEMICOLON = 148;
  127. int COMMA = 149;
  128. int DOT = 150;
  129. int GT = 151;
  130. int LT = 152;
  131. int EQUAL_EQUAL = 153;
  132. int LE = 154;
  133. int GE = 155;
  134. int NOT_EQUAL = 156;
  135. int DIF = 157;
  136. int BANGDOUBLEEQUAL = 158;
  137. int TRIPLEEQUAL = 159;
  138. int ASSIGN = 160;
  139. int PLUSASSIGN = 161;
  140. int MINUSASSIGN = 162;
  141. int STARASSIGN = 163;
  142. int SLASHASSIGN = 164;
  143. int ANDASSIGN = 165;
  144. int ORASSIGN = 166;
  145. int XORASSIGN = 167;
  146. int DOTASSIGN = 168;
  147. int REMASSIGN = 169;
  148. int TILDEEQUAL = 170;
  149. int LSHIFTASSIGN = 171;
  150. int RSIGNEDSHIFTASSIGN = 172;
  151. int DEFAULT = 0;
  152. int PHPPARSING = 1;
  153. int IN_SINGLE_LINE_COMMENT = 2;
  154. int IN_VARIABLE = 3;
  155. int IN_FORMAL_COMMENT = 4;
  156. int IN_MULTI_LINE_COMMENT = 5;
  157. int IN_STRING = 6;
  158. int DOLLAR_IN_STRING = 7;
  159. int SKIPSTRING = 8;
  160. int DOLLAR_IN_STRING_EXPR = 9;
  161. String[] tokenImage = {
  162. "<EOF>",
  163. "\"<?\"",
  164. "\"<?php\"",
  165. "\"<?=\"",
  166. "\"?>\"",
  167. "<token of kind 5>",
  168. "\"<?xml\"",
  169. "\" \"",
  170. "\"\\t\"",
  171. "\"\\n\"",
  172. "\"\\r\"",
  173. "\"\\f\"",
  174. "\" \"",
  175. "\"\\t\"",
  176. "\"\\n\"",
  177. "\"\\r\"",
  178. "\"\\f\"",
  179. "\"//\"",
  180. "\"#\"",
  181. "<token of kind 19>",
  182. "\"/*\"",
  183. "<SINGLE_LINE_COMMENT>",
  184. "<token of kind 22>",
  185. "\"*/\"",
  186. "\"*/\"",
  187. "<token of kind 25>",
  188. "\"public\"",
  189. "\"protected\"",
  190. "\"private\"",
  191. "\"abstract\"",
  192. "\"interface\"",
  193. "\"implements\"",
  194. "\"final\"",
  195. "\"try\"",
  196. "\"catch\"",
  197. "\"throw\"",
  198. "\"class\"",
  199. "\"function\"",
  200. "\"var\"",
  201. "\"if\"",
  202. "\"elseif\"",
  203. "\"else\"",
  204. "\"array\"",
  205. "\"break\"",
  206. "\"list\"",
  207. "\"print\"",
  208. "\"echo\"",
  209. "\"include\"",
  210. "\"require\"",
  211. "\"include_once\"",
  212. "\"require_once\"",
  213. "\"global\"",
  214. "\"static\"",
  215. "\"case\"",
  216. "\"const\"",
  217. "\"continue\"",
  218. "\"default\"",
  219. "\"do\"",
  220. "\"extends\"",
  221. "\"for\"",
  222. "\"new\"",
  223. "\"return\"",
  224. "\"switch\"",
  225. "\"while\"",
  226. "\"endwhile\"",
  227. "\"endswitch\"",
  228. "\"endif\"",
  229. "\"endfor\"",
  230. "\"endforeach\"",
  231. "\"foreach\"",
  232. "\"as\"",
  233. "\"->\"",
  234. "\"::\"",
  235. "\"=>\"",
  236. "\"define\"",
  237. "\"goto\"",
  238. "\"null\"",
  239. "\"super\"",
  240. "\"this\"",
  241. "\"true\"",
  242. "\"false\"",
  243. "\"instanceof\"",
  244. "\"string\"",
  245. "\"object\"",
  246. "\"bool\"",
  247. "\"boolean\"",
  248. "\"real\"",
  249. "\"double\"",
  250. "\"float\"",
  251. "\"int\"",
  252. "\"integer\"",
  253. "\"@\"",
  254. "\"!\"",
  255. "\"~\"",
  256. "\"?\"",
  257. "\":\"",
  258. "\"||\"",
  259. "\"&&\"",
  260. "\"++\"",
  261. "\"--\"",
  262. "\"+\"",
  263. "\"-\"",
  264. "\"*\"",
  265. "\"/\"",
  266. "\"&\"",
  267. "\"|\"",
  268. "\"^\"",
  269. "\"%\"",
  270. "\"<<\"",
  271. "\">>\"",
  272. "\">>>\"",
  273. "\"OR\"",
  274. "\"XOR\"",
  275. "\"AND\"",
  276. "<INTEGER_LITERAL>",
  277. "<DECIMAL_LITERAL>",
  278. "<HEX_LITERAL>",
  279. "<OCTAL_LITERAL>",
  280. "<FLOATING_POINT_LITERAL>",
  281. "<EXPONENT>",
  282. "<STRING_LITERAL>",
  283. "<STRING_2>",
  284. "<STRING_3>",
  285. "<ESCAPED>",
  286. "\"\\\"\"",
  287. "\"$\"",
  288. "\"\\\"\"",
  289. "\"{\"",
  290. "\"{\"",
  291. "\"}\"",
  292. "<token of kind 130>",
  293. "\"}\"",
  294. "<ID>",
  295. "<token of kind 133>",
  296. "<token of kind 134>",
  297. "\"<<<\"",
  298. "\"$\"",
  299. "<IDENTIFIER>",
  300. "<LETTER>",
  301. "<DIGIT>",
  302. "<SPECIAL>",
  303. "<token of kind 141>",
  304. "\"(\"",
  305. "\")\"",
  306. "\"{\"",
  307. "\"}\"",
  308. "\"[\"",
  309. "\"]\"",
  310. "\";\"",
  311. "\",\"",
  312. "\".\"",
  313. "\">\"",
  314. "\"<\"",
  315. "\"==\"",
  316. "\"<=\"",
  317. "\">=\"",
  318. "\"!=\"",
  319. "\"<>\"",
  320. "\"!==\"",
  321. "\"===\"",
  322. "\"=\"",
  323. "\"+=\"",
  324. "\"-=\"",
  325. "\"*=\"",
  326. "\"/=\"",
  327. "\"&=\"",
  328. "\"|=\"",
  329. "\"^=\"",
  330. "\".=\"",
  331. "\"%=\"",
  332. "\"~=\"",
  333. "\"<<=\"",
  334. "\">>=\"",
  335. };
  336. }