You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2547 lines
76 KiB

  1. #include "cmStandardIncludes.h"
  2. #line 2 "cmDependsJavaLexer.cxx"
  3. #line 4 "cmDependsJavaLexer.cxx"
  4. #define YY_INT_ALIGNED short int
  5. /* A lexical scanner generated by flex */
  6. #define FLEX_SCANNER
  7. #define YY_FLEX_MAJOR_VERSION 2
  8. #define YY_FLEX_MINOR_VERSION 5
  9. #define YY_FLEX_SUBMINOR_VERSION 31
  10. #if YY_FLEX_SUBMINOR_VERSION > 0
  11. #define FLEX_BETA
  12. #endif
  13. /* First, we deal with platform-specific or compiler-specific issues. */
  14. /* begin standard C headers. */
  15. #include <stdio.h>
  16. #include <string.h>
  17. #include <errno.h>
  18. #include <stdlib.h>
  19. #if defined(__BEOS__)
  20. #include <unistd.h> /* prevents a conflict with a #define later on... */
  21. #endif
  22. /* end standard C headers. */
  23. /* flex integer type definitions */
  24. #ifndef FLEXINT_H
  25. #define FLEXINT_H
  26. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  27. #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
  28. #include <inttypes.h>
  29. typedef int8_t flex_int8_t;
  30. typedef uint8_t flex_uint8_t;
  31. typedef int16_t flex_int16_t;
  32. typedef uint16_t flex_uint16_t;
  33. typedef int32_t flex_int32_t;
  34. typedef uint32_t flex_uint32_t;
  35. #else
  36. typedef signed char flex_int8_t;
  37. typedef short int flex_int16_t;
  38. typedef int flex_int32_t;
  39. typedef unsigned char flex_uint8_t;
  40. typedef unsigned short int flex_uint16_t;
  41. typedef unsigned int flex_uint32_t;
  42. #endif /* ! C99 */
  43. /* Limits of integral types. */
  44. #ifndef INT8_MIN
  45. #define INT8_MIN (-128)
  46. #endif
  47. #ifndef INT16_MIN
  48. #define INT16_MIN (-32767-1)
  49. #endif
  50. #ifndef INT32_MIN
  51. #define INT32_MIN (-2147483647-1)
  52. #endif
  53. #ifndef INT8_MAX
  54. #define INT8_MAX (127)
  55. #endif
  56. #ifndef INT16_MAX
  57. #define INT16_MAX (32767)
  58. #endif
  59. #ifndef INT32_MAX
  60. #define INT32_MAX (2147483647)
  61. #endif
  62. #ifndef UINT8_MAX
  63. #define UINT8_MAX (255U)
  64. #endif
  65. #ifndef UINT16_MAX
  66. #define UINT16_MAX (65535U)
  67. #endif
  68. #ifndef UINT32_MAX
  69. #define UINT32_MAX (4294967295U)
  70. #endif
  71. #endif /* ! FLEXINT_H */
  72. #ifdef __cplusplus
  73. /* The "const" storage-class-modifier is valid. */
  74. #define YY_USE_CONST
  75. #else /* ! __cplusplus */
  76. #if __STDC__
  77. #define YY_USE_CONST
  78. #endif /* __STDC__ */
  79. #endif /* ! __cplusplus */
  80. #ifdef YY_USE_CONST
  81. #define yyconst const
  82. #else
  83. #define yyconst
  84. #endif
  85. /* Returned upon end-of-file. */
  86. #define YY_NULL 0
  87. /* Promotes a possibly negative, possibly signed char to an unsigned
  88. * integer for use as an array index. If the signed char is negative,
  89. * we want to instead treat it as an 8-bit unsigned char, hence the
  90. * double cast.
  91. */
  92. #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  93. /* An opaque pointer. */
  94. #ifndef YY_TYPEDEF_YY_SCANNER_T
  95. #define YY_TYPEDEF_YY_SCANNER_T
  96. typedef void* yyscan_t;
  97. #endif
  98. /* For convenience, these vars (plus the bison vars far below)
  99. are macros in the reentrant scanner. */
  100. #define yyin yyg->yyin_r
  101. #define yyout yyg->yyout_r
  102. #define yyextra yyg->yyextra_r
  103. #define yyleng yyg->yyleng_r
  104. #define yytext yyg->yytext_r
  105. #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  106. #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  107. #define yy_flex_debug yyg->yy_flex_debug_r
  108. int cmDependsJava_yylex_init (yyscan_t* scanner);
  109. /* Enter a start condition. This macro really ought to take a parameter,
  110. * but we do it the disgusting crufty way forced on us by the ()-less
  111. * definition of BEGIN.
  112. */
  113. #define BEGIN yyg->yy_start = 1 + 2 *
  114. /* Translate the current start state into a value that can be later handed
  115. * to BEGIN to return to the state. The YYSTATE alias is for lex
  116. * compatibility.
  117. */
  118. #define YY_START ((yyg->yy_start - 1) / 2)
  119. #define YYSTATE YY_START
  120. /* Action number for EOF rule of a given start state. */
  121. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  122. /* Special action meaning "start processing a new file". */
  123. #define YY_NEW_FILE cmDependsJava_yyrestart(yyin ,yyscanner )
  124. #define YY_END_OF_BUFFER_CHAR 0
  125. /* Size of default input buffer. */
  126. #ifndef YY_BUF_SIZE
  127. #define YY_BUF_SIZE 16384
  128. #endif
  129. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  130. #define YY_TYPEDEF_YY_BUFFER_STATE
  131. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  132. #endif
  133. #define EOB_ACT_CONTINUE_SCAN 0
  134. #define EOB_ACT_END_OF_FILE 1
  135. #define EOB_ACT_LAST_MATCH 2
  136. #define YY_LESS_LINENO(n)
  137. /* Return all but the first "n" matched characters back to the input stream. */
  138. #define yyless(n) \
  139. do \
  140. { \
  141. /* Undo effects of setting up yytext. */ \
  142. int yyless_macro_arg = (n); \
  143. YY_LESS_LINENO(yyless_macro_arg);\
  144. *yy_cp = yyg->yy_hold_char; \
  145. YY_RESTORE_YY_MORE_OFFSET \
  146. yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  147. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  148. } \
  149. while ( 0 )
  150. /* The following is because we cannot portably get our hands on size_t
  151. * (without autoconf's help, which isn't available because we want
  152. * flex-generated scanners to compile on their own).
  153. */
  154. #ifndef YY_TYPEDEF_YY_SIZE_T
  155. #define YY_TYPEDEF_YY_SIZE_T
  156. typedef unsigned int yy_size_t;
  157. #endif
  158. #ifndef YY_STRUCT_YY_BUFFER_STATE
  159. #define YY_STRUCT_YY_BUFFER_STATE
  160. struct yy_buffer_state
  161. {
  162. FILE *yy_input_file;
  163. char *yy_ch_buf; /* input buffer */
  164. char *yy_buf_pos; /* current position in input buffer */
  165. /* Size of input buffer in bytes, not including room for EOB
  166. * characters.
  167. */
  168. yy_size_t yy_buf_size;
  169. /* Number of characters read into yy_ch_buf, not including EOB
  170. * characters.
  171. */
  172. int yy_n_chars;
  173. /* Whether we "own" the buffer - i.e., we know we created it,
  174. * and can realloc() it to grow it, and should free() it to
  175. * delete it.
  176. */
  177. int yy_is_our_buffer;
  178. /* Whether this is an "interactive" input source; if so, and
  179. * if we're using stdio for input, then we want to use getc()
  180. * instead of fread(), to make sure we stop fetching input after
  181. * each newline.
  182. */
  183. int yy_is_interactive;
  184. /* Whether we're considered to be at the beginning of a line.
  185. * If so, '^' rules will be active on the next match, otherwise
  186. * not.
  187. */
  188. int yy_at_bol;
  189. int yy_bs_lineno; /**< The line count. */
  190. int yy_bs_column; /**< The column count. */
  191. /* Whether to try to fill the input buffer when we reach the
  192. * end of it.
  193. */
  194. int yy_fill_buffer;
  195. int yy_buffer_status;
  196. #define YY_BUFFER_NEW 0
  197. #define YY_BUFFER_NORMAL 1
  198. /* When an EOF's been seen but there's still some text to process
  199. * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  200. * shouldn't try reading from the input source any more. We might
  201. * still have a bunch of tokens to match, though, because of
  202. * possible backing-up.
  203. *
  204. * When we actually see the EOF, we change the status to "new"
  205. * (via cmDependsJava_yyrestart()), so that the user can continue scanning by
  206. * just pointing yyin at a new input file.
  207. */
  208. #define YY_BUFFER_EOF_PENDING 2
  209. };
  210. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  211. /* We provide macros for accessing buffer states in case in the
  212. * future we want to put the buffer states in a more general
  213. * "scanner state".
  214. *
  215. * Returns the top of the stack, or NULL.
  216. */
  217. #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
  218. ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  219. : NULL)
  220. /* Same as previous macro, but useful when we know that the buffer stack is not
  221. * NULL or when we need an lvalue. For internal use only.
  222. */
  223. #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  224. void cmDependsJava_yyrestart (FILE *input_file ,yyscan_t yyscanner );
  225. void cmDependsJava_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  226. YY_BUFFER_STATE cmDependsJava_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
  227. void cmDependsJava_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  228. void cmDependsJava_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  229. void cmDependsJava_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  230. void cmDependsJava_yypop_buffer_state (yyscan_t yyscanner );
  231. static void cmDependsJava_yyensure_buffer_stack (yyscan_t yyscanner );
  232. static void cmDependsJava_yy_load_buffer_state (yyscan_t yyscanner );
  233. static void cmDependsJava_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
  234. #define YY_FLUSH_BUFFER cmDependsJava_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
  235. YY_BUFFER_STATE cmDependsJava_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
  236. YY_BUFFER_STATE cmDependsJava_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
  237. YY_BUFFER_STATE cmDependsJava_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
  238. void *cmDependsJava_yyalloc (yy_size_t ,yyscan_t yyscanner );
  239. void *cmDependsJava_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
  240. void cmDependsJava_yyfree (void * ,yyscan_t yyscanner );
  241. #define yy_new_buffer cmDependsJava_yy_create_buffer
  242. #define yy_set_interactive(is_interactive) \
  243. { \
  244. if ( ! YY_CURRENT_BUFFER ){ \
  245. cmDependsJava_yyensure_buffer_stack (yyscanner); \
  246. YY_CURRENT_BUFFER_LVALUE = \
  247. cmDependsJava_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
  248. } \
  249. YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  250. }
  251. #define yy_set_bol(at_bol) \
  252. { \
  253. if ( ! YY_CURRENT_BUFFER ){\
  254. cmDependsJava_yyensure_buffer_stack (yyscanner); \
  255. YY_CURRENT_BUFFER_LVALUE = \
  256. cmDependsJava_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
  257. } \
  258. YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  259. }
  260. #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  261. /* Begin user sect3 */
  262. #define cmDependsJava_yywrap(n) 1
  263. #define YY_SKIP_YYWRAP
  264. typedef unsigned char YY_CHAR;
  265. typedef int yy_state_type;
  266. #define yytext_ptr yytext_r
  267. static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
  268. static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
  269. static int yy_get_next_buffer (yyscan_t yyscanner );
  270. static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
  271. /* Done after the current pattern has been matched and before the
  272. * corresponding action - sets up yytext.
  273. */
  274. #define YY_DO_BEFORE_ACTION \
  275. yyg->yytext_ptr = yy_bp; \
  276. yyleng = (size_t) (yy_cp - yy_bp); \
  277. yyg->yy_hold_char = *yy_cp; \
  278. *yy_cp = '\0'; \
  279. yyg->yy_c_buf_p = yy_cp;
  280. #define YY_NUM_RULES 111
  281. #define YY_END_OF_BUFFER 112
  282. /* This struct is not used in this scanner,
  283. but its presence is necessary. */
  284. struct yy_trans_info
  285. {
  286. flex_int32_t yy_verify;
  287. flex_int32_t yy_nxt;
  288. };
  289. static yyconst flex_int16_t yy_accept[327] =
  290. { 0,
  291. 0, 0, 0, 0, 0, 0, 112, 110, 109, 109,
  292. 77, 4, 73, 94, 60, 110, 93, 92, 105, 99,
  293. 68, 89, 74, 71, 56, 56, 67, 103, 86, 75,
  294. 79, 102, 107, 64, 63, 65, 107, 107, 107, 107,
  295. 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
  296. 107, 70, 96, 69, 104, 3, 3, 6, 111, 5,
  297. 78, 95, 61, 62, 0, 0, 106, 101, 100, 91,
  298. 90, 57, 1, 0, 72, 57, 56, 57, 0, 56,
  299. 0, 88, 87, 76, 80, 81, 107, 66, 107, 107,
  300. 107, 107, 107, 107, 107, 107, 107, 107, 18, 107,
  301. 107, 107, 107, 107, 107, 26, 107, 107, 107, 107,
  302. 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
  303. 107, 107, 107, 107, 107, 97, 98, 2, 55, 55,
  304. 0, 0, 0, 108, 57, 0, 57, 58, 85, 82,
  305. 83, 107, 107, 107, 107, 107, 107, 107, 107, 107,
  306. 107, 107, 107, 107, 107, 107, 107, 107, 25, 107,
  307. 107, 30, 107, 107, 34, 107, 107, 107, 107, 107,
  308. 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
  309. 107, 50, 107, 107, 107, 0, 0, 58, 84, 107,
  310. 107, 107, 107, 11, 12, 107, 14, 107, 107, 107,
  311. 107, 20, 107, 107, 107, 107, 107, 107, 107, 107,
  312. 32, 107, 59, 107, 107, 107, 107, 107, 107, 107,
  313. 107, 107, 107, 107, 46, 107, 107, 54, 51, 107,
  314. 107, 107, 107, 107, 10, 13, 15, 107, 107, 107,
  315. 107, 22, 24, 107, 107, 107, 107, 107, 107, 107,
  316. 107, 107, 107, 40, 107, 107, 43, 107, 107, 47,
  317. 107, 107, 53, 107, 8, 107, 107, 107, 19, 107,
  318. 107, 107, 28, 107, 107, 33, 107, 107, 107, 38,
  319. 39, 41, 107, 44, 107, 48, 107, 107, 107, 9,
  320. 107, 17, 21, 23, 107, 107, 107, 35, 36, 107,
  321. 107, 107, 107, 107, 7, 16, 107, 107, 107, 107,
  322. 42, 107, 107, 52, 107, 107, 31, 37, 107, 49,
  323. 27, 29, 107, 107, 45, 0
  324. } ;
  325. static yyconst flex_int32_t yy_ec[256] =
  326. { 0,
  327. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  328. 1, 2, 2, 1, 1, 1, 1, 1, 1, 1,
  329. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  330. 1, 2, 4, 5, 1, 6, 7, 8, 9, 10,
  331. 11, 12, 13, 14, 15, 16, 17, 18, 19, 19,
  332. 19, 19, 19, 19, 19, 20, 20, 21, 22, 23,
  333. 24, 25, 26, 1, 27, 27, 27, 28, 29, 28,
  334. 30, 30, 30, 30, 30, 31, 30, 30, 30, 30,
  335. 30, 30, 30, 30, 30, 30, 30, 32, 30, 30,
  336. 33, 34, 35, 36, 30, 1, 37, 38, 39, 40,
  337. 41, 42, 43, 44, 45, 30, 46, 47, 48, 49,
  338. 50, 51, 30, 52, 53, 54, 55, 56, 57, 58,
  339. 59, 60, 61, 62, 63, 64, 1, 1, 1, 1,
  340. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  341. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  342. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  343. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  344. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  345. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  346. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  347. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  348. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  349. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  350. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  351. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  352. 1, 1, 1, 1, 1
  353. } ;
  354. static yyconst flex_int32_t yy_meta[65] =
  355. { 0,
  356. 1, 1, 1, 1, 1, 1, 1, 1, 2, 1,
  357. 1, 1, 1, 1, 1, 1, 1, 3, 3, 3,
  358. 1, 1, 1, 1, 1, 1, 3, 3, 3, 4,
  359. 4, 4, 1, 1, 1, 1, 3, 3, 3, 3,
  360. 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
  361. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  362. 1, 1, 1, 1
  363. } ;
  364. static yyconst flex_int16_t yy_base[334] =
  365. { 0,
  366. 0, 0, 401, 400, 62, 63, 411, 414, 414, 414,
  367. 386, 414, 414, 385, 61, 374, 414, 414, 383, 57,
  368. 414, 56, 54, 65, 74, 43, 414, 414, 55, 382,
  369. 59, 414, 0, 414, 414, 381, 38, 36, 60, 46,
  370. 51, 75, 69, 354, 82, 76, 362, 85, 56, 352,
  371. 357, 414, 100, 414, 414, 414, 383, 414, 414, 414,
  372. 414, 414, 414, 414, 390, 127, 414, 414, 414, 414,
  373. 414, 129, 414, 395, 414, 132, 95, 414, 165, 414,
  374. 0, 373, 414, 414, 414, 109, 0, 414, 343, 342,
  375. 344, 352, 338, 101, 354, 353, 340, 346, 332, 333,
  376. 331, 337, 334, 332, 329, 0, 329, 110, 330, 324,
  377. 320, 329, 336, 93, 336, 319, 322, 89, 320, 325,
  378. 320, 114, 131, 120, 323, 414, 414, 414, 414, 358,
  379. 170, 357, 362, 414, 173, 157, 176, 150, 414, 414,
  380. 340, 309, 321, 314, 323, 318, 317, 318, 304, 302,
  381. 300, 316, 314, 310, 309, 296, 311, 310, 0, 153,
  382. 292, 304, 301, 298, 0, 295, 295, 284, 285, 291,
  383. 282, 284, 281, 289, 292, 278, 292, 277, 279, 279,
  384. 286, 0, 286, 288, 277, 189, 314, 414, 414, 270,
  385. 269, 279, 273, 0, 0, 274, 0, 264, 271, 260,
  386. 267, 0, 264, 271, 264, 256, 268, 256, 270, 254,
  387. 0, 249, 0, 267, 266, 261, 256, 248, 245, 253,
  388. 258, 244, 256, 250, 0, 236, 239, 0, 0, 237,
  389. 249, 252, 234, 250, 0, 0, 0, 237, 238, 243,
  390. 243, 235, 0, 233, 226, 230, 236, 236, 233, 221,
  391. 235, 234, 223, 0, 232, 216, 0, 225, 216, 214,
  392. 221, 220, 0, 225, 0, 214, 207, 207, 0, 207,
  393. 200, 217, 0, 218, 219, 0, 214, 213, 199, 0,
  394. 0, 0, 210, 0, 201, 0, 209, 202, 194, 0,
  395. 206, 0, 0, 0, 197, 204, 205, 0, 0, 202,
  396. 191, 192, 191, 198, 0, 0, 163, 162, 170, 170,
  397. 0, 164, 152, 0, 152, 157, 0, 0, 127, 0,
  398. 0, 0, 115, 95, 0, 414, 218, 222, 226, 228,
  399. 232, 96, 235
  400. } ;
  401. static yyconst flex_int16_t yy_def[334] =
  402. { 0,
  403. 326, 1, 327, 327, 328, 328, 326, 326, 326, 326,
  404. 326, 326, 326, 326, 326, 329, 326, 326, 326, 326,
  405. 326, 326, 326, 326, 326, 25, 326, 326, 326, 326,
  406. 326, 326, 330, 326, 326, 326, 330, 330, 330, 330,
  407. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  408. 330, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  409. 326, 326, 326, 326, 326, 329, 326, 326, 326, 326,
  410. 326, 326, 326, 331, 326, 326, 25, 326, 326, 326,
  411. 332, 326, 326, 326, 326, 326, 330, 326, 330, 330,
  412. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  413. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  414. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  415. 330, 330, 330, 330, 330, 326, 326, 326, 326, 326,
  416. 326, 333, 331, 326, 326, 326, 326, 332, 326, 326,
  417. 326, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  418. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  419. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  420. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  421. 330, 330, 330, 330, 330, 326, 333, 326, 326, 330,
  422. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  423. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  424. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  425. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  426. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  427. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  428. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  429. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  430. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  431. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  432. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  433. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  434. 330, 330, 330, 330, 330, 330, 330, 330, 330, 330,
  435. 330, 330, 330, 330, 330, 0, 326, 326, 326, 326,
  436. 326, 326, 326
  437. } ;
  438. static yyconst flex_int16_t yy_nxt[479] =
  439. { 0,
  440. 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
  441. 18, 19, 20, 21, 22, 23, 24, 25, 26, 26,
  442. 27, 28, 29, 30, 31, 32, 33, 33, 33, 33,
  443. 33, 33, 34, 8, 35, 36, 37, 38, 39, 40,
  444. 41, 42, 33, 33, 43, 33, 44, 33, 45, 33,
  445. 46, 47, 48, 49, 33, 50, 51, 33, 33, 33,
  446. 52, 53, 54, 55, 59, 59, 60, 60, 63, 68,
  447. 70, 72, 72, 72, 326, 89, 73, 82, 83, 71,
  448. 69, 74, 85, 86, 64, 91, 98, 92, 75, 76,
  449. 90, 77, 77, 77, 93, 99, 94, 100, 138, 122,
  450. 326, 78, 79, 95, 80, 81, 96, 123, 101, 97,
  451. 106, 102, 113, 78, 79, 78, 107, 108, 110, 103,
  452. 80, 104, 111, 126, 105, 173, 326, 114, 117, 326,
  453. 115, 81, 140, 141, 325, 130, 112, 168, 118, 119,
  454. 174, 120, 169, 121, 131, 131, 72, 72, 72, 135,
  455. 135, 135, 326, 147, 148, 324, 78, 79, 178, 78,
  456. 79, 127, 161, 162, 183, 179, 184, 180, 78, 79,
  457. 78, 78, 79, 78, 137, 137, 137, 136, 129, 136,
  458. 188, 132, 137, 137, 137, 181, 323, 186, 186, 182,
  459. 135, 135, 135, 137, 137, 137, 188, 129, 322, 207,
  460. 78, 79, 208, 78, 321, 320, 186, 186, 319, 318,
  461. 317, 316, 78, 79, 78, 78, 315, 78, 56, 56,
  462. 56, 56, 58, 58, 58, 58, 65, 65, 65, 65,
  463. 87, 87, 133, 133, 133, 133, 187, 187, 314, 313,
  464. 312, 311, 310, 309, 308, 307, 306, 305, 304, 303,
  465. 302, 301, 300, 299, 298, 297, 296, 295, 294, 293,
  466. 292, 291, 290, 289, 288, 287, 286, 285, 284, 283,
  467. 282, 281, 280, 279, 278, 277, 276, 275, 274, 273,
  468. 272, 271, 270, 269, 268, 267, 266, 265, 264, 263,
  469. 262, 261, 260, 259, 258, 257, 256, 255, 254, 253,
  470. 252, 251, 250, 249, 248, 247, 246, 245, 244, 243,
  471. 242, 228, 241, 240, 239, 238, 237, 236, 235, 234,
  472. 233, 232, 129, 231, 230, 229, 228, 227, 226, 225,
  473. 224, 223, 222, 221, 220, 219, 218, 217, 216, 215,
  474. 214, 213, 212, 211, 210, 209, 206, 205, 204, 203,
  475. 202, 201, 200, 199, 198, 197, 196, 195, 194, 193,
  476. 192, 191, 190, 189, 134, 129, 129, 185, 177, 176,
  477. 175, 172, 171, 170, 167, 166, 165, 164, 163, 160,
  478. 159, 158, 157, 156, 155, 154, 153, 152, 151, 150,
  479. 149, 146, 145, 144, 143, 142, 139, 134, 129, 128,
  480. 125, 124, 116, 109, 88, 84, 67, 66, 62, 61,
  481. 326, 57, 57, 7, 326, 326, 326, 326, 326, 326,
  482. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  483. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  484. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  485. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  486. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  487. 326, 326, 326, 326, 326, 326, 326, 326
  488. } ;
  489. static yyconst flex_int16_t yy_chk[479] =
  490. { 0,
  491. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  492. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  493. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  494. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  495. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  496. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  497. 1, 1, 1, 1, 5, 6, 5, 6, 15, 20,
  498. 22, 23, 23, 23, 26, 37, 24, 29, 29, 22,
  499. 20, 24, 31, 31, 15, 38, 40, 38, 24, 25,
  500. 37, 25, 25, 25, 38, 40, 39, 41, 332, 49,
  501. 26, 25, 25, 39, 25, 25, 39, 49, 41, 39,
  502. 43, 42, 46, 25, 25, 25, 43, 43, 45, 42,
  503. 25, 42, 45, 53, 42, 118, 77, 46, 48, 66,
  504. 46, 25, 86, 86, 324, 66, 45, 114, 48, 48,
  505. 118, 48, 114, 48, 66, 66, 72, 72, 72, 76,
  506. 76, 76, 77, 94, 94, 323, 72, 72, 122, 76,
  507. 76, 53, 108, 108, 124, 122, 124, 123, 72, 72,
  508. 72, 76, 76, 76, 136, 136, 136, 79, 131, 79,
  509. 138, 66, 79, 79, 79, 123, 319, 131, 131, 123,
  510. 135, 135, 135, 137, 137, 137, 138, 186, 316, 160,
  511. 135, 135, 160, 137, 315, 313, 186, 186, 312, 310,
  512. 309, 308, 135, 135, 135, 137, 307, 137, 327, 327,
  513. 327, 327, 328, 328, 328, 328, 329, 329, 329, 329,
  514. 330, 330, 331, 331, 331, 331, 333, 333, 304, 303,
  515. 302, 301, 300, 297, 296, 295, 291, 289, 288, 287,
  516. 285, 283, 279, 278, 277, 275, 274, 272, 271, 270,
  517. 268, 267, 266, 264, 262, 261, 260, 259, 258, 256,
  518. 255, 253, 252, 251, 250, 249, 248, 247, 246, 245,
  519. 244, 242, 241, 240, 239, 238, 234, 233, 232, 231,
  520. 230, 227, 226, 224, 223, 222, 221, 220, 219, 218,
  521. 217, 216, 215, 214, 212, 210, 209, 208, 207, 206,
  522. 205, 204, 203, 201, 200, 199, 198, 196, 193, 192,
  523. 191, 190, 187, 185, 184, 183, 181, 180, 179, 178,
  524. 177, 176, 175, 174, 173, 172, 171, 170, 169, 168,
  525. 167, 166, 164, 163, 162, 161, 158, 157, 156, 155,
  526. 154, 153, 152, 151, 150, 149, 148, 147, 146, 145,
  527. 144, 143, 142, 141, 133, 132, 130, 125, 121, 120,
  528. 119, 117, 116, 115, 113, 112, 111, 110, 109, 107,
  529. 105, 104, 103, 102, 101, 100, 99, 98, 97, 96,
  530. 95, 93, 92, 91, 90, 89, 82, 74, 65, 57,
  531. 51, 50, 47, 44, 36, 30, 19, 16, 14, 11,
  532. 7, 4, 3, 326, 326, 326, 326, 326, 326, 326,
  533. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  534. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  535. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  536. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  537. 326, 326, 326, 326, 326, 326, 326, 326, 326, 326,
  538. 326, 326, 326, 326, 326, 326, 326, 326
  539. } ;
  540. /* The intent behind this definition is that it'll catch
  541. * any uses of REJECT which flex missed.
  542. */
  543. #define REJECT reject_used_but_not_detected
  544. #define yymore() yymore_used_but_not_detected
  545. #define YY_MORE_ADJ 0
  546. #define YY_RESTORE_YY_MORE_OFFSET
  547. #line 1 "cmDependsJavaLexer.in.l"
  548. #line 2 "cmDependsJavaLexer.in.l"
  549. /*=========================================================================
  550. Program: CMake - Cross-Platform Makefile Generator
  551. Module: $RCSfile$
  552. Language: C++
  553. Date: $Date$
  554. Version: $Revision$
  555. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  556. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  557. This software is distributed WITHOUT ANY WARRANTY; without even
  558. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  559. PURPOSE. See the above copyright notices for more information.
  560. =========================================================================*/
  561. /*
  562. This file must be translated to C and modified to build everywhere.
  563. Run flex like this:
  564. flex --prefix=cmDependsJava_yy --header-file=cmDependsJavaLexer.h -ocmDependsJavaLexer.cxx cmDependsJavaLexer.in.l
  565. Modify cmDependsJavaLexer.c:
  566. - remove TABs
  567. - remove "yyscanner" argument from these methods:
  568. yy_fatal_error, cmDependsJava_yyalloc, cmDependsJava_yyrealloc, cmDependsJava_yyfree
  569. - remove all YY_BREAK lines occurring right after return statements
  570. - change while ( 1 ) to for(;;)
  571. Modify cmDependsJavaLexer.h:
  572. - remove TABs
  573. - remove the yy_init_globals function
  574. - remove the block that includes unistd.h
  575. - remove #line directives (avoids bogus warning on old Sun)
  576. */
  577. #include "cmStandardLexer.h"
  578. #include "cmDependsJavaParserHelper.h"
  579. /* Replace the lexer input function. */
  580. #undef YY_INPUT
  581. #define YY_INPUT(buf, result, max_size) \
  582. { result = yyextra->LexInput(buf, max_size); }
  583. /* Include the set of tokens from the parser. */
  584. #include "cmDependsJavaParserTokens.h"
  585. #define KEYWORD yylvalp->str = 0
  586. #define SYMBOL yylvalp->str = 0
  587. #define PRIMITIVE yylvalp->str = 0
  588. /*--------------------------------------------------------------------------*/
  589. #line 721 "cmDependsJavaLexer.cxx"
  590. #define INITIAL 0
  591. #define comment 1
  592. #define string 2
  593. #ifndef YY_NO_UNISTD_H
  594. /* Special case for "unistd.h", since it is non-ANSI. We include it way
  595. * down here because we want the user's section 1 to have been scanned first.
  596. * The user has a chance to override it with an option.
  597. */
  598. #include <unistd.h>
  599. #endif
  600. #ifndef YY_EXTRA_TYPE
  601. #define YY_EXTRA_TYPE void *
  602. #endif
  603. /* Holds the entire state of the reentrant scanner. */
  604. struct yyguts_t
  605. {
  606. /* User-defined. Not touched by flex. */
  607. YY_EXTRA_TYPE yyextra_r;
  608. /* The rest are the same as the globals declared in the non-reentrant scanner. */
  609. FILE *yyin_r, *yyout_r;
  610. size_t yy_buffer_stack_top; /**< index of top of stack. */
  611. size_t yy_buffer_stack_max; /**< capacity of stack. */
  612. YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
  613. char yy_hold_char;
  614. int yy_n_chars;
  615. int yyleng_r;
  616. char *yy_c_buf_p;
  617. int yy_init;
  618. int yy_start;
  619. int yy_did_buffer_switch_on_eof;
  620. int yy_start_stack_ptr;
  621. int yy_start_stack_depth;
  622. int *yy_start_stack;
  623. yy_state_type yy_last_accepting_state;
  624. char* yy_last_accepting_cpos;
  625. int yylineno_r;
  626. int yy_flex_debug_r;
  627. char *yytext_r;
  628. int yy_more_flag;
  629. int yy_more_len;
  630. }; /* end struct yyguts_t */
  631. /* Accessor methods to globals.
  632. These are made visible to non-reentrant scanners for convenience. */
  633. int cmDependsJava_yylex_destroy (yyscan_t yyscanner );
  634. int cmDependsJava_yyget_debug (yyscan_t yyscanner );
  635. void cmDependsJava_yyset_debug (int debug_flag ,yyscan_t yyscanner );
  636. YY_EXTRA_TYPE cmDependsJava_yyget_extra (yyscan_t yyscanner );
  637. void cmDependsJava_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
  638. FILE *cmDependsJava_yyget_in (yyscan_t yyscanner );
  639. void cmDependsJava_yyset_in (FILE * in_str ,yyscan_t yyscanner );
  640. FILE *cmDependsJava_yyget_out (yyscan_t yyscanner );
  641. void cmDependsJava_yyset_out (FILE * out_str ,yyscan_t yyscanner );
  642. int cmDependsJava_yyget_leng (yyscan_t yyscanner );
  643. char *cmDependsJava_yyget_text (yyscan_t yyscanner );
  644. int cmDependsJava_yyget_lineno (yyscan_t yyscanner );
  645. void cmDependsJava_yyset_lineno (int line_number ,yyscan_t yyscanner );
  646. /* Macros after this point can all be overridden by user definitions in
  647. * section 1.
  648. */
  649. #ifndef YY_SKIP_YYWRAP
  650. #ifdef __cplusplus
  651. extern "C" int cmDependsJava_yywrap (yyscan_t yyscanner );
  652. #else
  653. extern int cmDependsJava_yywrap (yyscan_t yyscanner );
  654. #endif
  655. #endif
  656. #ifndef yytext_ptr
  657. static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
  658. #endif
  659. #ifdef YY_NEED_STRLEN
  660. static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
  661. #endif
  662. #ifndef YY_NO_INPUT
  663. #ifdef __cplusplus
  664. static int yyinput (yyscan_t yyscanner );
  665. #else
  666. static int input (yyscan_t yyscanner );
  667. #endif
  668. #endif
  669. /* Amount of stuff to slurp up with each read. */
  670. #ifndef YY_READ_BUF_SIZE
  671. #define YY_READ_BUF_SIZE 8192
  672. #endif
  673. /* Copy whatever the last rule matched to the standard output. */
  674. #ifndef ECHO
  675. /* This used to be an fputs(), but since the string might contain NUL's,
  676. * we now use fwrite().
  677. */
  678. #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
  679. #endif
  680. /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  681. * is returned in "result".
  682. */
  683. #ifndef YY_INPUT
  684. #define YY_INPUT(buf,result,max_size) \
  685. if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  686. { \
  687. int c = '*'; \
  688. size_t n; \
  689. for ( n = 0; n < max_size && \
  690. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  691. buf[n] = (char) c; \
  692. if ( c == '\n' ) \
  693. buf[n++] = (char) c; \
  694. if ( c == EOF && ferror( yyin ) ) \
  695. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  696. result = n; \
  697. } \
  698. else \
  699. { \
  700. errno=0; \
  701. while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  702. { \
  703. if( errno != EINTR) \
  704. { \
  705. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  706. break; \
  707. } \
  708. errno=0; \
  709. clearerr(yyin); \
  710. } \
  711. }\
  712. \
  713. #endif
  714. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  715. * we don't want an extra ';' after the "return" because that will cause
  716. * some compilers to complain about unreachable statements.
  717. */
  718. #ifndef yyterminate
  719. #define yyterminate() return YY_NULL
  720. #endif
  721. /* Number of entries by which start-condition stack grows. */
  722. #ifndef YY_START_STACK_INCR
  723. #define YY_START_STACK_INCR 25
  724. #endif
  725. /* Report a fatal error. */
  726. #ifndef YY_FATAL_ERROR
  727. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
  728. #endif
  729. /* end tables serialization structures and prototypes */
  730. /* Default declaration of generated scanner - a define so the user can
  731. * easily add parameters.
  732. */
  733. #ifndef YY_DECL
  734. #define YY_DECL_IS_OURS 1
  735. extern int cmDependsJava_yylex (yyscan_t yyscanner);
  736. #define YY_DECL int cmDependsJava_yylex (yyscan_t yyscanner)
  737. #endif /* !YY_DECL */
  738. /* Code executed at the beginning of each rule, after yytext and yyleng
  739. * have been set up.
  740. */
  741. #ifndef YY_USER_ACTION
  742. #define YY_USER_ACTION
  743. #endif
  744. /* Code executed at the end of each rule. */
  745. #ifndef YY_BREAK
  746. #define YY_BREAK break;
  747. #endif
  748. #define YY_RULE_SETUP \
  749. YY_USER_ACTION
  750. /** The main scanner function which does all the work.
  751. */
  752. YY_DECL
  753. {
  754. register yy_state_type yy_current_state;
  755. register char *yy_cp, *yy_bp;
  756. register int yy_act;
  757. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  758. #line 88 "cmDependsJavaLexer.in.l"
  759. #line 940 "cmDependsJavaLexer.cxx"
  760. if ( yyg->yy_init )
  761. {
  762. yyg->yy_init = 0;
  763. #ifdef YY_USER_INIT
  764. YY_USER_INIT;
  765. #endif
  766. if ( ! yyg->yy_start )
  767. yyg->yy_start = 1; /* first start state */
  768. if ( ! yyin )
  769. yyin = stdin;
  770. if ( ! yyout )
  771. yyout = stdout;
  772. if ( ! YY_CURRENT_BUFFER ) {
  773. cmDependsJava_yyensure_buffer_stack (yyscanner);
  774. YY_CURRENT_BUFFER_LVALUE =
  775. cmDependsJava_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
  776. }
  777. cmDependsJava_yy_load_buffer_state(yyscanner );
  778. }
  779. for(;;) /* loops until end-of-file is reached */
  780. {
  781. yy_cp = yyg->yy_c_buf_p;
  782. /* Support of yytext. */
  783. *yy_cp = yyg->yy_hold_char;
  784. /* yy_bp points to the position in yy_ch_buf of the start of
  785. * the current run.
  786. */
  787. yy_bp = yy_cp;
  788. yy_current_state = yyg->yy_start;
  789. yy_match:
  790. do
  791. {
  792. register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  793. if ( yy_accept[yy_current_state] )
  794. {
  795. yyg->yy_last_accepting_state = yy_current_state;
  796. yyg->yy_last_accepting_cpos = yy_cp;
  797. }
  798. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  799. {
  800. yy_current_state = (int) yy_def[yy_current_state];
  801. if ( yy_current_state >= 327 )
  802. yy_c = yy_meta[(unsigned int) yy_c];
  803. }
  804. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  805. ++yy_cp;
  806. }
  807. while ( yy_base[yy_current_state] != 414 );
  808. yy_find_action:
  809. yy_act = yy_accept[yy_current_state];
  810. if ( yy_act == 0 )
  811. { /* have to back up */
  812. yy_cp = yyg->yy_last_accepting_cpos;
  813. yy_current_state = yyg->yy_last_accepting_state;
  814. yy_act = yy_accept[yy_current_state];
  815. }
  816. YY_DO_BEFORE_ACTION;
  817. do_action: /* This label is used only to access EOF actions. */
  818. switch ( yy_act )
  819. { /* beginning of action switch */
  820. case 0: /* must back up */
  821. /* undo the effects of YY_DO_BEFORE_ACTION */
  822. *yy_cp = yyg->yy_hold_char;
  823. yy_cp = yyg->yy_last_accepting_cpos;
  824. yy_current_state = yyg->yy_last_accepting_state;
  825. goto yy_find_action;
  826. case 1:
  827. YY_RULE_SETUP
  828. #line 89 "cmDependsJavaLexer.in.l"
  829. { BEGIN(comment); }
  830. YY_BREAK
  831. case 2:
  832. YY_RULE_SETUP
  833. #line 90 "cmDependsJavaLexer.in.l"
  834. { BEGIN(INITIAL); }
  835. YY_BREAK
  836. case 3:
  837. /* rule 3 can match eol */
  838. YY_RULE_SETUP
  839. #line 91 "cmDependsJavaLexer.in.l"
  840. {}
  841. YY_BREAK
  842. case 4:
  843. YY_RULE_SETUP
  844. #line 93 "cmDependsJavaLexer.in.l"
  845. { BEGIN(string); }
  846. YY_BREAK
  847. case 5:
  848. YY_RULE_SETUP
  849. #line 94 "cmDependsJavaLexer.in.l"
  850. { BEGIN(INITIAL); return jp_STRINGLITERAL; }
  851. case 6:
  852. YY_RULE_SETUP
  853. #line 95 "cmDependsJavaLexer.in.l"
  854. {}
  855. YY_BREAK
  856. case 7:
  857. YY_RULE_SETUP
  858. #line 97 "cmDependsJavaLexer.in.l"
  859. { KEYWORD; return jp_ABSTRACT; }
  860. case 8:
  861. YY_RULE_SETUP
  862. #line 98 "cmDependsJavaLexer.in.l"
  863. { KEYWORD; return jp_ASSERT; }
  864. case 9:
  865. YY_RULE_SETUP
  866. #line 99 "cmDependsJavaLexer.in.l"
  867. { KEYWORD; return jp_BOOLEAN_TYPE; }
  868. case 10:
  869. YY_RULE_SETUP
  870. #line 100 "cmDependsJavaLexer.in.l"
  871. { KEYWORD; return jp_BREAK; }
  872. case 11:
  873. YY_RULE_SETUP
  874. #line 101 "cmDependsJavaLexer.in.l"
  875. { KEYWORD; return jp_BYTE_TYPE; }
  876. case 12:
  877. YY_RULE_SETUP
  878. #line 102 "cmDependsJavaLexer.in.l"
  879. { KEYWORD; return jp_CASE; }
  880. case 13:
  881. YY_RULE_SETUP
  882. #line 103 "cmDependsJavaLexer.in.l"
  883. { KEYWORD; return jp_CATCH; }
  884. case 14:
  885. YY_RULE_SETUP
  886. #line 104 "cmDependsJavaLexer.in.l"
  887. { KEYWORD; return jp_CHAR_TYPE; }
  888. case 15:
  889. YY_RULE_SETUP
  890. #line 105 "cmDependsJavaLexer.in.l"
  891. { KEYWORD; return jp_CLASS; }
  892. case 16:
  893. YY_RULE_SETUP
  894. #line 106 "cmDependsJavaLexer.in.l"
  895. { KEYWORD; return jp_CONTINUE; }
  896. case 17:
  897. YY_RULE_SETUP
  898. #line 107 "cmDependsJavaLexer.in.l"
  899. { KEYWORD; return jp_DEFAULT; }
  900. case 18:
  901. YY_RULE_SETUP
  902. #line 108 "cmDependsJavaLexer.in.l"
  903. { KEYWORD; return jp_DO; }
  904. case 19:
  905. YY_RULE_SETUP
  906. #line 109 "cmDependsJavaLexer.in.l"
  907. { KEYWORD; return jp_DOUBLE_TYPE; }
  908. case 20:
  909. YY_RULE_SETUP
  910. #line 110 "cmDependsJavaLexer.in.l"
  911. { KEYWORD; return jp_ELSE; }
  912. case 21:
  913. YY_RULE_SETUP
  914. #line 111 "cmDependsJavaLexer.in.l"
  915. { KEYWORD; return jp_EXTENDS; }
  916. case 22:
  917. YY_RULE_SETUP
  918. #line 112 "cmDependsJavaLexer.in.l"
  919. { KEYWORD; return jp_FINAL; }
  920. case 23:
  921. YY_RULE_SETUP
  922. #line 113 "cmDependsJavaLexer.in.l"
  923. { KEYWORD; return jp_FINALLY; }
  924. case 24:
  925. YY_RULE_SETUP
  926. #line 114 "cmDependsJavaLexer.in.l"
  927. { KEYWORD; return jp_FLOAT_TYPE; }
  928. case 25:
  929. YY_RULE_SETUP
  930. #line 115 "cmDependsJavaLexer.in.l"
  931. { KEYWORD; return jp_FOR; }
  932. case 26:
  933. YY_RULE_SETUP
  934. #line 116 "cmDependsJavaLexer.in.l"
  935. { KEYWORD; return jp_IF; }
  936. case 27:
  937. YY_RULE_SETUP
  938. #line 117 "cmDependsJavaLexer.in.l"
  939. { KEYWORD; return jp_IMPLEMENTS; }
  940. case 28:
  941. YY_RULE_SETUP
  942. #line 118 "cmDependsJavaLexer.in.l"
  943. { KEYWORD; return jp_IMPORT; }
  944. case 29:
  945. YY_RULE_SETUP
  946. #line 119 "cmDependsJavaLexer.in.l"
  947. { KEYWORD; return jp_INSTANCEOF; }
  948. case 30:
  949. YY_RULE_SETUP
  950. #line 120 "cmDependsJavaLexer.in.l"
  951. { KEYWORD; return jp_INT_TYPE; }
  952. case 31:
  953. YY_RULE_SETUP
  954. #line 121 "cmDependsJavaLexer.in.l"
  955. { KEYWORD; return jp_INTERFACE; }
  956. case 32:
  957. YY_RULE_SETUP
  958. #line 122 "cmDependsJavaLexer.in.l"
  959. { KEYWORD; return jp_LONG_TYPE; }
  960. case 33:
  961. YY_RULE_SETUP
  962. #line 123 "cmDependsJavaLexer.in.l"
  963. { KEYWORD; return jp_NATIVE; }
  964. case 34:
  965. YY_RULE_SETUP
  966. #line 124 "cmDependsJavaLexer.in.l"
  967. { KEYWORD; return jp_NEW; }
  968. case 35:
  969. YY_RULE_SETUP
  970. #line 125 "cmDependsJavaLexer.in.l"
  971. { KEYWORD; return jp_PACKAGE; }
  972. case 36:
  973. YY_RULE_SETUP
  974. #line 126 "cmDependsJavaLexer.in.l"
  975. { KEYWORD; return jp_PRIVATE; }
  976. case 37:
  977. YY_RULE_SETUP
  978. #line 127 "cmDependsJavaLexer.in.l"
  979. { KEYWORD; return jp_PROTECTED; }
  980. case 38:
  981. YY_RULE_SETUP
  982. #line 128 "cmDependsJavaLexer.in.l"
  983. { KEYWORD; return jp_PUBLIC; }
  984. case 39:
  985. YY_RULE_SETUP
  986. #line 129 "cmDependsJavaLexer.in.l"
  987. { KEYWORD; return jp_RETURN; }
  988. case 40:
  989. YY_RULE_SETUP
  990. #line 130 "cmDependsJavaLexer.in.l"
  991. { KEYWORD; return jp_SHORT_TYPE; }
  992. case 41:
  993. YY_RULE_SETUP
  994. #line 131 "cmDependsJavaLexer.in.l"
  995. { KEYWORD; return jp_STATIC; }
  996. case 42:
  997. YY_RULE_SETUP
  998. #line 132 "cmDependsJavaLexer.in.l"
  999. { KEYWORD; return jp_STRICTFP; }
  1000. case 43:
  1001. YY_RULE_SETUP
  1002. #line 133 "cmDependsJavaLexer.in.l"
  1003. { KEYWORD; return jp_SUPER; }
  1004. case 44:
  1005. YY_RULE_SETUP
  1006. #line 134 "cmDependsJavaLexer.in.l"
  1007. { KEYWORD; return jp_SWITCH; }
  1008. case 45:
  1009. YY_RULE_SETUP
  1010. #line 135 "cmDependsJavaLexer.in.l"
  1011. { KEYWORD; return jp_SYNCHRONIZED; }
  1012. case 46:
  1013. YY_RULE_SETUP
  1014. #line 136 "cmDependsJavaLexer.in.l"
  1015. { KEYWORD; return jp_THIS; }
  1016. case 47:
  1017. YY_RULE_SETUP
  1018. #line 137 "cmDependsJavaLexer.in.l"
  1019. { KEYWORD; return jp_THROW; }
  1020. case 48:
  1021. YY_RULE_SETUP
  1022. #line 138 "cmDependsJavaLexer.in.l"
  1023. { KEYWORD; return jp_THROWS; }
  1024. case 49:
  1025. YY_RULE_SETUP
  1026. #line 139 "cmDependsJavaLexer.in.l"
  1027. { KEYWORD; return jp_TRANSIENT; }
  1028. case 50:
  1029. YY_RULE_SETUP
  1030. #line 140 "cmDependsJavaLexer.in.l"
  1031. { KEYWORD; return jp_TRY; }
  1032. case 51:
  1033. YY_RULE_SETUP
  1034. #line 141 "cmDependsJavaLexer.in.l"
  1035. { KEYWORD; return jp_VOID; }
  1036. case 52:
  1037. YY_RULE_SETUP
  1038. #line 142 "cmDependsJavaLexer.in.l"
  1039. { KEYWORD; return jp_VOLATILE; }
  1040. case 53:
  1041. YY_RULE_SETUP
  1042. #line 143 "cmDependsJavaLexer.in.l"
  1043. { KEYWORD; return jp_WHILE; }
  1044. case 54:
  1045. YY_RULE_SETUP
  1046. #line 145 "cmDependsJavaLexer.in.l"
  1047. { PRIMITIVE; return jp_BOOLEANLITERAL; }
  1048. case 55:
  1049. /* rule 55 can match eol */
  1050. YY_RULE_SETUP
  1051. #line 146 "cmDependsJavaLexer.in.l"
  1052. { PRIMITIVE; return jp_CHARACTERLITERAL; }
  1053. case 56:
  1054. YY_RULE_SETUP
  1055. #line 147 "cmDependsJavaLexer.in.l"
  1056. { PRIMITIVE; return jp_DECIMALINTEGERLITERAL; }
  1057. case 57:
  1058. YY_RULE_SETUP
  1059. #line 148 "cmDependsJavaLexer.in.l"
  1060. { PRIMITIVE; return jp_FLOATINGPOINTLITERAL; }
  1061. case 58:
  1062. YY_RULE_SETUP
  1063. #line 149 "cmDependsJavaLexer.in.l"
  1064. { PRIMITIVE; return jp_HEXINTEGERLITERAL; }
  1065. case 59:
  1066. YY_RULE_SETUP
  1067. #line 150 "cmDependsJavaLexer.in.l"
  1068. { PRIMITIVE; return jp_NULLLITERAL; }
  1069. case 60:
  1070. YY_RULE_SETUP
  1071. #line 152 "cmDependsJavaLexer.in.l"
  1072. { SYMBOL; return jp_AND; }
  1073. case 61:
  1074. YY_RULE_SETUP
  1075. #line 153 "cmDependsJavaLexer.in.l"
  1076. { SYMBOL; return jp_ANDAND; }
  1077. case 62:
  1078. YY_RULE_SETUP
  1079. #line 154 "cmDependsJavaLexer.in.l"
  1080. { SYMBOL; return jp_ANDEQUALS; }
  1081. case 63:
  1082. YY_RULE_SETUP
  1083. #line 155 "cmDependsJavaLexer.in.l"
  1084. { SYMBOL; return jp_BRACKETEND; }
  1085. case 64:
  1086. YY_RULE_SETUP
  1087. #line 156 "cmDependsJavaLexer.in.l"
  1088. { SYMBOL; return jp_BRACKETSTART; }
  1089. case 65:
  1090. YY_RULE_SETUP
  1091. #line 157 "cmDependsJavaLexer.in.l"
  1092. { SYMBOL; return jp_CARROT; }
  1093. case 66:
  1094. YY_RULE_SETUP
  1095. #line 158 "cmDependsJavaLexer.in.l"
  1096. { SYMBOL; return jp_CARROTEQUALS; }
  1097. case 67:
  1098. YY_RULE_SETUP
  1099. #line 159 "cmDependsJavaLexer.in.l"
  1100. { SYMBOL; return jp_COLON; }
  1101. case 68:
  1102. YY_RULE_SETUP
  1103. #line 160 "cmDependsJavaLexer.in.l"
  1104. { SYMBOL; return jp_COMMA; }
  1105. case 69:
  1106. YY_RULE_SETUP
  1107. #line 161 "cmDependsJavaLexer.in.l"
  1108. { SYMBOL; return jp_CURLYEND; }
  1109. case 70:
  1110. YY_RULE_SETUP
  1111. #line 162 "cmDependsJavaLexer.in.l"
  1112. { SYMBOL; return jp_CURLYSTART; }
  1113. case 71:
  1114. YY_RULE_SETUP
  1115. #line 163 "cmDependsJavaLexer.in.l"
  1116. { SYMBOL; return jp_DIVIDE; }
  1117. case 72:
  1118. YY_RULE_SETUP
  1119. #line 164 "cmDependsJavaLexer.in.l"
  1120. { SYMBOL; return jp_DIVIDEEQUALS; }
  1121. case 73:
  1122. YY_RULE_SETUP
  1123. #line 165 "cmDependsJavaLexer.in.l"
  1124. { SYMBOL; return jp_DOLLAR; }
  1125. case 74:
  1126. YY_RULE_SETUP
  1127. #line 166 "cmDependsJavaLexer.in.l"
  1128. { SYMBOL; return jp_DOT; }
  1129. case 75:
  1130. YY_RULE_SETUP
  1131. #line 167 "cmDependsJavaLexer.in.l"
  1132. { SYMBOL; return jp_EQUALS; }
  1133. case 76:
  1134. YY_RULE_SETUP
  1135. #line 168 "cmDependsJavaLexer.in.l"
  1136. { SYMBOL; return jp_EQUALSEQUALS; }
  1137. case 77:
  1138. YY_RULE_SETUP
  1139. #line 169 "cmDependsJavaLexer.in.l"
  1140. { SYMBOL; return jp_EXCLAMATION; }
  1141. case 78:
  1142. YY_RULE_SETUP
  1143. #line 170 "cmDependsJavaLexer.in.l"
  1144. { SYMBOL; return jp_EXCLAMATIONEQUALS; }
  1145. case 79:
  1146. YY_RULE_SETUP
  1147. #line 171 "cmDependsJavaLexer.in.l"
  1148. { SYMBOL; return jp_GREATER; }
  1149. case 80:
  1150. YY_RULE_SETUP
  1151. #line 172 "cmDependsJavaLexer.in.l"
  1152. { SYMBOL; return jp_GTEQUALS; }
  1153. case 81:
  1154. YY_RULE_SETUP
  1155. #line 173 "cmDependsJavaLexer.in.l"
  1156. { SYMBOL; return jp_GTGT; }
  1157. case 82:
  1158. YY_RULE_SETUP
  1159. #line 174 "cmDependsJavaLexer.in.l"
  1160. { SYMBOL; return jp_GTGTEQUALS; }
  1161. case 83:
  1162. YY_RULE_SETUP
  1163. #line 175 "cmDependsJavaLexer.in.l"
  1164. { SYMBOL; return jp_GTGTGT; }
  1165. case 84:
  1166. YY_RULE_SETUP
  1167. #line 176 "cmDependsJavaLexer.in.l"
  1168. { SYMBOL; return jp_GTGTGTEQUALS; }
  1169. case 85:
  1170. YY_RULE_SETUP
  1171. #line 177 "cmDependsJavaLexer.in.l"
  1172. { SYMBOL; return jp_LESLESEQUALS; }
  1173. case 86:
  1174. YY_RULE_SETUP
  1175. #line 178 "cmDependsJavaLexer.in.l"
  1176. { SYMBOL; return jp_LESSTHAN; }
  1177. case 87:
  1178. YY_RULE_SETUP
  1179. #line 179 "cmDependsJavaLexer.in.l"
  1180. { SYMBOL; return jp_LTEQUALS; }
  1181. case 88:
  1182. YY_RULE_SETUP
  1183. #line 180 "cmDependsJavaLexer.in.l"
  1184. { SYMBOL; return jp_LTLT; }
  1185. case 89:
  1186. YY_RULE_SETUP
  1187. #line 181 "cmDependsJavaLexer.in.l"
  1188. { SYMBOL; return jp_MINUS; }
  1189. case 90:
  1190. YY_RULE_SETUP
  1191. #line 182 "cmDependsJavaLexer.in.l"
  1192. { SYMBOL; return jp_MINUSEQUALS; }
  1193. case 91:
  1194. YY_RULE_SETUP
  1195. #line 183 "cmDependsJavaLexer.in.l"
  1196. { SYMBOL; return jp_MINUSMINUS; }
  1197. case 92:
  1198. YY_RULE_SETUP
  1199. #line 184 "cmDependsJavaLexer.in.l"
  1200. { SYMBOL; return jp_PAREEND; }
  1201. case 93:
  1202. YY_RULE_SETUP
  1203. #line 185 "cmDependsJavaLexer.in.l"
  1204. { SYMBOL; return jp_PARESTART; }
  1205. case 94:
  1206. YY_RULE_SETUP
  1207. #line 186 "cmDependsJavaLexer.in.l"
  1208. { SYMBOL; return jp_PERCENT; }
  1209. case 95:
  1210. YY_RULE_SETUP
  1211. #line 187 "cmDependsJavaLexer.in.l"
  1212. { SYMBOL; return jp_PERCENTEQUALS; }
  1213. case 96:
  1214. YY_RULE_SETUP
  1215. #line 188 "cmDependsJavaLexer.in.l"
  1216. { SYMBOL; return jp_PIPE; }
  1217. case 97:
  1218. YY_RULE_SETUP
  1219. #line 189 "cmDependsJavaLexer.in.l"
  1220. { SYMBOL; return jp_PIPEEQUALS; }
  1221. case 98:
  1222. YY_RULE_SETUP
  1223. #line 190 "cmDependsJavaLexer.in.l"
  1224. { SYMBOL; return jp_PIPEPIPE; }
  1225. case 99:
  1226. YY_RULE_SETUP
  1227. #line 191 "cmDependsJavaLexer.in.l"
  1228. { SYMBOL; return jp_PLUS; }
  1229. case 100:
  1230. YY_RULE_SETUP
  1231. #line 192 "cmDependsJavaLexer.in.l"
  1232. { SYMBOL; return jp_PLUSEQUALS; }
  1233. case 101:
  1234. YY_RULE_SETUP
  1235. #line 193 "cmDependsJavaLexer.in.l"
  1236. { SYMBOL; return jp_PLUSPLUS; }
  1237. case 102:
  1238. YY_RULE_SETUP
  1239. #line 194 "cmDependsJavaLexer.in.l"
  1240. { SYMBOL; return jp_QUESTION; }
  1241. case 103:
  1242. YY_RULE_SETUP
  1243. #line 195 "cmDependsJavaLexer.in.l"
  1244. { SYMBOL; return jp_SEMICOL; }
  1245. case 104:
  1246. YY_RULE_SETUP
  1247. #line 196 "cmDependsJavaLexer.in.l"
  1248. { SYMBOL; return jp_TILDE; }
  1249. case 105:
  1250. YY_RULE_SETUP
  1251. #line 197 "cmDependsJavaLexer.in.l"
  1252. { SYMBOL; return jp_TIMES; }
  1253. case 106:
  1254. YY_RULE_SETUP
  1255. #line 198 "cmDependsJavaLexer.in.l"
  1256. { SYMBOL; return jp_TIMESEQUALS; }
  1257. case 107:
  1258. YY_RULE_SETUP
  1259. #line 200 "cmDependsJavaLexer.in.l"
  1260. {
  1261. yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
  1262. return jp_NAME;
  1263. }
  1264. case 108:
  1265. /* rule 108 can match eol */
  1266. YY_RULE_SETUP
  1267. #line 205 "cmDependsJavaLexer.in.l"
  1268. { }
  1269. YY_BREAK
  1270. case 109:
  1271. /* rule 109 can match eol */
  1272. YY_RULE_SETUP
  1273. #line 206 "cmDependsJavaLexer.in.l"
  1274. { }
  1275. YY_BREAK
  1276. case 110:
  1277. YY_RULE_SETUP
  1278. #line 207 "cmDependsJavaLexer.in.l"
  1279. {
  1280. std::cerr << "Unknown character: " << yytext[0]
  1281. << " (" << (int)yytext[0] << ")" << std::endl;
  1282. yyextra->Error("Unknown character");
  1283. return jp_ERROR;
  1284. }
  1285. case 111:
  1286. YY_RULE_SETUP
  1287. #line 214 "cmDependsJavaLexer.in.l"
  1288. ECHO;
  1289. YY_BREAK
  1290. #line 1590 "cmDependsJavaLexer.cxx"
  1291. case YY_STATE_EOF(INITIAL):
  1292. case YY_STATE_EOF(comment):
  1293. case YY_STATE_EOF(string):
  1294. yyterminate();
  1295. case YY_END_OF_BUFFER:
  1296. {
  1297. /* Amount of text matched not including the EOB char. */
  1298. int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
  1299. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1300. *yy_cp = yyg->yy_hold_char;
  1301. YY_RESTORE_YY_MORE_OFFSET
  1302. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  1303. {
  1304. /* We're scanning a new file or input source. It's
  1305. * possible that this happened because the user
  1306. * just pointed yyin at a new source and called
  1307. * cmDependsJava_yylex(). If so, then we have to assure
  1308. * consistency between YY_CURRENT_BUFFER and our
  1309. * globals. Here is the right place to do so, because
  1310. * this is the first action (other than possibly a
  1311. * back-up) that will match for the new input source.
  1312. */
  1313. yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1314. YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  1315. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  1316. }
  1317. /* Note that here we test for yy_c_buf_p "<=" to the position
  1318. * of the first EOB in the buffer, since yy_c_buf_p will
  1319. * already have been incremented past the NUL character
  1320. * (since all states make transitions on EOB to the
  1321. * end-of-buffer state). Contrast this with the test
  1322. * in input().
  1323. */
  1324. if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  1325. { /* This was really a NUL. */
  1326. yy_state_type yy_next_state;
  1327. yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
  1328. yy_current_state = yy_get_previous_state( yyscanner );
  1329. /* Okay, we're now positioned to make the NUL
  1330. * transition. We couldn't have
  1331. * yy_get_previous_state() go ahead and do it
  1332. * for us because it doesn't know how to deal
  1333. * with the possibility of jamming (and we don't
  1334. * want to build jamming into it because then it
  1335. * will run more slowly).
  1336. */
  1337. yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
  1338. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1339. if ( yy_next_state )
  1340. {
  1341. /* Consume the NUL. */
  1342. yy_cp = ++yyg->yy_c_buf_p;
  1343. yy_current_state = yy_next_state;
  1344. goto yy_match;
  1345. }
  1346. else
  1347. {
  1348. yy_cp = yyg->yy_c_buf_p;
  1349. goto yy_find_action;
  1350. }
  1351. }
  1352. else switch ( yy_get_next_buffer( yyscanner ) )
  1353. {
  1354. case EOB_ACT_END_OF_FILE:
  1355. {
  1356. yyg->yy_did_buffer_switch_on_eof = 0;
  1357. if ( cmDependsJava_yywrap(yyscanner ) )
  1358. {
  1359. /* Note: because we've taken care in
  1360. * yy_get_next_buffer() to have set up
  1361. * yytext, we can now set up
  1362. * yy_c_buf_p so that if some total
  1363. * hoser (like flex itself) wants to
  1364. * call the scanner after we return the
  1365. * YY_NULL, it'll still work - another
  1366. * YY_NULL will get returned.
  1367. */
  1368. yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  1369. yy_act = YY_STATE_EOF(YY_START);
  1370. goto do_action;
  1371. }
  1372. else
  1373. {
  1374. if ( ! yyg->yy_did_buffer_switch_on_eof )
  1375. YY_NEW_FILE;
  1376. }
  1377. break;
  1378. }
  1379. case EOB_ACT_CONTINUE_SCAN:
  1380. yyg->yy_c_buf_p =
  1381. yyg->yytext_ptr + yy_amount_of_matched_text;
  1382. yy_current_state = yy_get_previous_state( yyscanner );
  1383. yy_cp = yyg->yy_c_buf_p;
  1384. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1385. goto yy_match;
  1386. case EOB_ACT_LAST_MATCH:
  1387. yyg->yy_c_buf_p =
  1388. &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
  1389. yy_current_state = yy_get_previous_state( yyscanner );
  1390. yy_cp = yyg->yy_c_buf_p;
  1391. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1392. goto yy_find_action;
  1393. }
  1394. break;
  1395. }
  1396. default:
  1397. YY_FATAL_ERROR(
  1398. "fatal flex scanner internal error--no action found" );
  1399. } /* end of action switch */
  1400. } /* end of scanning one token */
  1401. return 0; /* this should not happen but it silences a warning*/
  1402. } /* end of cmDependsJava_yylex */
  1403. /* yy_get_next_buffer - try to read in a new buffer
  1404. *
  1405. * Returns a code representing an action:
  1406. * EOB_ACT_LAST_MATCH -
  1407. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1408. * EOB_ACT_END_OF_FILE - end of file
  1409. */
  1410. static int yy_get_next_buffer (yyscan_t yyscanner)
  1411. {
  1412. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1413. register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  1414. register char *source = yyg->yytext_ptr;
  1415. register int number_to_move, i;
  1416. int ret_val;
  1417. if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
  1418. YY_FATAL_ERROR(
  1419. "fatal flex scanner internal error--end of buffer missed" );
  1420. if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  1421. { /* Don't try to fill the buffer, so this is an EOF. */
  1422. if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
  1423. {
  1424. /* We matched a single character, the EOB, so
  1425. * treat this as a final EOF.
  1426. */
  1427. return EOB_ACT_END_OF_FILE;
  1428. }
  1429. else
  1430. {
  1431. /* We matched some text prior to the EOB, first
  1432. * process it.
  1433. */
  1434. return EOB_ACT_LAST_MATCH;
  1435. }
  1436. }
  1437. /* Try to read more data. */
  1438. /* First move last chars to start of buffer. */
  1439. number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
  1440. for ( i = 0; i < number_to_move; ++i )
  1441. *(dest++) = *(source++);
  1442. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1443. /* don't do the read, it's not guaranteed to return an EOF,
  1444. * just force an EOF
  1445. */
  1446. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
  1447. else
  1448. {
  1449. size_t nuto_read =
  1450. YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  1451. while ( nuto_read <= 0 )
  1452. { /* Not enough room in the buffer - grow it. */
  1453. /* just a shorter name for the current buffer */
  1454. YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
  1455. int yy_c_buf_p_offset =
  1456. (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
  1457. if ( b->yy_is_our_buffer )
  1458. {
  1459. int new_size = b->yy_buf_size * 2;
  1460. if ( new_size <= 0 )
  1461. b->yy_buf_size += b->yy_buf_size / 8;
  1462. else
  1463. b->yy_buf_size *= 2;
  1464. b->yy_ch_buf = (char *)
  1465. /* Include room in for 2 EOB chars. */
  1466. cmDependsJava_yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
  1467. }
  1468. else
  1469. /* Can't grow it, we don't own it. */
  1470. b->yy_ch_buf = 0;
  1471. if ( ! b->yy_ch_buf )
  1472. YY_FATAL_ERROR(
  1473. "fatal error - scanner input buffer overflow" );
  1474. yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  1475. nuto_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  1476. number_to_move - 1;
  1477. }
  1478. if ( nuto_read > YY_READ_BUF_SIZE )
  1479. nuto_read = YY_READ_BUF_SIZE;
  1480. /* Read in more data. */
  1481. YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  1482. yyg->yy_n_chars, nuto_read );
  1483. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  1484. }
  1485. if ( yyg->yy_n_chars == 0 )
  1486. {
  1487. if ( number_to_move == YY_MORE_ADJ )
  1488. {
  1489. ret_val = EOB_ACT_END_OF_FILE;
  1490. cmDependsJava_yyrestart(yyin ,yyscanner);
  1491. }
  1492. else
  1493. {
  1494. ret_val = EOB_ACT_LAST_MATCH;
  1495. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  1496. YY_BUFFER_EOF_PENDING;
  1497. }
  1498. }
  1499. else
  1500. ret_val = EOB_ACT_CONTINUE_SCAN;
  1501. yyg->yy_n_chars += number_to_move;
  1502. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1503. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1504. yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  1505. return ret_val;
  1506. }
  1507. /* yy_get_previous_state - get the state just before the EOB char was reached */
  1508. static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
  1509. {
  1510. register yy_state_type yy_current_state;
  1511. register char *yy_cp;
  1512. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1513. yy_current_state = yyg->yy_start;
  1514. for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
  1515. {
  1516. register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1517. if ( yy_accept[yy_current_state] )
  1518. {
  1519. yyg->yy_last_accepting_state = yy_current_state;
  1520. yyg->yy_last_accepting_cpos = yy_cp;
  1521. }
  1522. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1523. {
  1524. yy_current_state = (int) yy_def[yy_current_state];
  1525. if ( yy_current_state >= 327 )
  1526. yy_c = yy_meta[(unsigned int) yy_c];
  1527. }
  1528. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1529. }
  1530. return yy_current_state;
  1531. }
  1532. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1533. *
  1534. * synopsis
  1535. * next_state = yy_try_NUL_trans( current_state );
  1536. */
  1537. static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
  1538. {
  1539. register int yy_is_jam;
  1540. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1541. register char *yy_cp = yyg->yy_c_buf_p;
  1542. register YY_CHAR yy_c = 1;
  1543. if ( yy_accept[yy_current_state] )
  1544. {
  1545. yyg->yy_last_accepting_state = yy_current_state;
  1546. yyg->yy_last_accepting_cpos = yy_cp;
  1547. }
  1548. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1549. {
  1550. yy_current_state = (int) yy_def[yy_current_state];
  1551. if ( yy_current_state >= 327 )
  1552. yy_c = yy_meta[(unsigned int) yy_c];
  1553. }
  1554. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1555. yy_is_jam = (yy_current_state == 326);
  1556. return yy_is_jam ? 0 : yy_current_state;
  1557. }
  1558. #ifndef YY_NO_INPUT
  1559. #ifdef __cplusplus
  1560. static int yyinput (yyscan_t yyscanner)
  1561. #else
  1562. static int input (yyscan_t yyscanner)
  1563. #endif
  1564. {
  1565. int c;
  1566. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1567. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  1568. if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1569. {
  1570. /* yy_c_buf_p now points to the character we want to return.
  1571. * If this occurs *before* the EOB characters, then it's a
  1572. * valid NUL; if not, then we've hit the end of the buffer.
  1573. */
  1574. if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  1575. /* This was really a NUL. */
  1576. *yyg->yy_c_buf_p = '\0';
  1577. else
  1578. { /* need more input */
  1579. int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
  1580. ++yyg->yy_c_buf_p;
  1581. switch ( yy_get_next_buffer( yyscanner ) )
  1582. {
  1583. case EOB_ACT_LAST_MATCH:
  1584. /* This happens because yy_g_n_b()
  1585. * sees that we've accumulated a
  1586. * token and flags that we need to
  1587. * try matching the token before
  1588. * proceeding. But for input(),
  1589. * there's no matching to consider.
  1590. * So convert the EOB_ACT_LAST_MATCH
  1591. * to EOB_ACT_END_OF_FILE.
  1592. */
  1593. /* Reset buffer status. */
  1594. cmDependsJava_yyrestart(yyin ,yyscanner);
  1595. /*FALLTHROUGH*/
  1596. case EOB_ACT_END_OF_FILE:
  1597. {
  1598. if ( cmDependsJava_yywrap(yyscanner ) )
  1599. return EOF;
  1600. if ( ! yyg->yy_did_buffer_switch_on_eof )
  1601. YY_NEW_FILE;
  1602. #ifdef __cplusplus
  1603. return yyinput(yyscanner);
  1604. #else
  1605. return input(yyscanner);
  1606. #endif
  1607. }
  1608. case EOB_ACT_CONTINUE_SCAN:
  1609. yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
  1610. break;
  1611. }
  1612. }
  1613. }
  1614. c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
  1615. *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
  1616. yyg->yy_hold_char = *++yyg->yy_c_buf_p;
  1617. return c;
  1618. }
  1619. #endif /* ifndef YY_NO_INPUT */
  1620. /** Immediately switch to a different input stream.
  1621. * @param input_file A readable stream.
  1622. * @param yyscanner The scanner object.
  1623. * @note This function does not reset the start condition to @c INITIAL .
  1624. */
  1625. void cmDependsJava_yyrestart (FILE * input_file , yyscan_t yyscanner)
  1626. {
  1627. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1628. if ( ! YY_CURRENT_BUFFER ){
  1629. cmDependsJava_yyensure_buffer_stack (yyscanner);
  1630. YY_CURRENT_BUFFER_LVALUE =
  1631. cmDependsJava_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
  1632. }
  1633. cmDependsJava_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
  1634. cmDependsJava_yy_load_buffer_state(yyscanner );
  1635. }
  1636. /** Switch to a different input buffer.
  1637. * @param new_buffer The new input buffer.
  1638. * @param yyscanner The scanner object.
  1639. */
  1640. void cmDependsJava_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
  1641. {
  1642. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1643. /* TODO. We should be able to replace this entire function body
  1644. * with
  1645. * cmDependsJava_yypop_buffer_state();
  1646. * cmDependsJava_yypush_buffer_state(new_buffer);
  1647. */
  1648. cmDependsJava_yyensure_buffer_stack (yyscanner);
  1649. if ( YY_CURRENT_BUFFER == new_buffer )
  1650. return;
  1651. if ( YY_CURRENT_BUFFER )
  1652. {
  1653. /* Flush out information for old buffer. */
  1654. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  1655. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  1656. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  1657. }
  1658. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1659. cmDependsJava_yy_load_buffer_state(yyscanner );
  1660. /* We don't actually know whether we did this switch during
  1661. * EOF (cmDependsJava_yywrap()) processing, but the only time this flag
  1662. * is looked at is after cmDependsJava_yywrap() is called, so it's safe
  1663. * to go ahead and always set it.
  1664. */
  1665. yyg->yy_did_buffer_switch_on_eof = 1;
  1666. }
  1667. static void cmDependsJava_yy_load_buffer_state (yyscan_t yyscanner)
  1668. {
  1669. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1670. yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1671. yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  1672. yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  1673. yyg->yy_hold_char = *yyg->yy_c_buf_p;
  1674. }
  1675. /** Allocate and initialize an input buffer state.
  1676. * @param file A readable stream.
  1677. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  1678. * @param yyscanner The scanner object.
  1679. * @return the allocated buffer state.
  1680. */
  1681. YY_BUFFER_STATE cmDependsJava_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
  1682. {
  1683. YY_BUFFER_STATE b;
  1684. b = (YY_BUFFER_STATE) cmDependsJava_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
  1685. if ( ! b )
  1686. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_create_buffer()" );
  1687. b->yy_buf_size = size;
  1688. /* yy_ch_buf has to be 2 characters longer than the size given because
  1689. * we need to put in 2 end-of-buffer characters.
  1690. */
  1691. b->yy_ch_buf = (char *) cmDependsJava_yyalloc(b->yy_buf_size + 2 ,yyscanner );
  1692. if ( ! b->yy_ch_buf )
  1693. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_create_buffer()" );
  1694. b->yy_is_our_buffer = 1;
  1695. cmDependsJava_yy_init_buffer(b,file ,yyscanner);
  1696. return b;
  1697. }
  1698. /** Destroy the buffer.
  1699. * @param b a buffer created with cmDependsJava_yy_create_buffer()
  1700. * @param yyscanner The scanner object.
  1701. */
  1702. void cmDependsJava_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
  1703. {
  1704. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1705. if ( ! b )
  1706. return;
  1707. if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  1708. YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  1709. if ( b->yy_is_our_buffer )
  1710. cmDependsJava_yyfree((void *) b->yy_ch_buf ,yyscanner );
  1711. cmDependsJava_yyfree((void *) b ,yyscanner );
  1712. }
  1713. #ifndef __cplusplus
  1714. extern int isatty (int );
  1715. #endif /* __cplusplus */
  1716. /* Initializes or reinitializes a buffer.
  1717. * This function is sometimes called more than once on the same buffer,
  1718. * such as during a cmDependsJava_yyrestart() or at EOF.
  1719. */
  1720. static void cmDependsJava_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
  1721. {
  1722. int oerrno = errno;
  1723. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1724. cmDependsJava_yy_flush_buffer(b ,yyscanner);
  1725. b->yy_input_file = file;
  1726. b->yy_fill_buffer = 1;
  1727. /* If b is the current buffer, then cmDependsJava_yy_init_buffer was _probably_
  1728. * called from cmDependsJava_yyrestart() or through yy_get_next_buffer.
  1729. * In that case, we don't want to reset the lineno or column.
  1730. */
  1731. if (b != YY_CURRENT_BUFFER){
  1732. b->yy_bs_lineno = 1;
  1733. b->yy_bs_column = 0;
  1734. }
  1735. b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1736. errno = oerrno;
  1737. }
  1738. /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  1739. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  1740. * @param yyscanner The scanner object.
  1741. */
  1742. void cmDependsJava_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
  1743. {
  1744. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1745. if ( ! b )
  1746. return;
  1747. b->yy_n_chars = 0;
  1748. /* We always need two end-of-buffer characters. The first causes
  1749. * a transition to the end-of-buffer state. The second causes
  1750. * a jam in that state.
  1751. */
  1752. b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1753. b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1754. b->yy_buf_pos = &b->yy_ch_buf[0];
  1755. b->yy_at_bol = 1;
  1756. b->yy_buffer_status = YY_BUFFER_NEW;
  1757. if ( b == YY_CURRENT_BUFFER )
  1758. cmDependsJava_yy_load_buffer_state(yyscanner );
  1759. }
  1760. /** Pushes the new state onto the stack. The new state becomes
  1761. * the current state. This function will allocate the stack
  1762. * if necessary.
  1763. * @param new_buffer The new state.
  1764. * @param yyscanner The scanner object.
  1765. */
  1766. void cmDependsJava_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
  1767. {
  1768. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1769. if (new_buffer == NULL)
  1770. return;
  1771. cmDependsJava_yyensure_buffer_stack(yyscanner);
  1772. /* This block is copied from cmDependsJava_yy_switch_to_buffer. */
  1773. if ( YY_CURRENT_BUFFER )
  1774. {
  1775. /* Flush out information for old buffer. */
  1776. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  1777. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  1778. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  1779. }
  1780. /* Only push if top exists. Otherwise, replace top. */
  1781. if (YY_CURRENT_BUFFER)
  1782. yyg->yy_buffer_stack_top++;
  1783. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1784. /* copied from cmDependsJava_yy_switch_to_buffer. */
  1785. cmDependsJava_yy_load_buffer_state(yyscanner );
  1786. yyg->yy_did_buffer_switch_on_eof = 1;
  1787. }
  1788. /** Removes and deletes the top of the stack, if present.
  1789. * The next element becomes the new top.
  1790. * @param yyscanner The scanner object.
  1791. */
  1792. void cmDependsJava_yypop_buffer_state (yyscan_t yyscanner)
  1793. {
  1794. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1795. if (!YY_CURRENT_BUFFER)
  1796. return;
  1797. cmDependsJava_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
  1798. YY_CURRENT_BUFFER_LVALUE = NULL;
  1799. if (yyg->yy_buffer_stack_top > 0)
  1800. --yyg->yy_buffer_stack_top;
  1801. if (YY_CURRENT_BUFFER) {
  1802. cmDependsJava_yy_load_buffer_state(yyscanner );
  1803. yyg->yy_did_buffer_switch_on_eof = 1;
  1804. }
  1805. }
  1806. /* Allocates the stack if it does not exist.
  1807. * Guarantees space for at least one push.
  1808. */
  1809. static void cmDependsJava_yyensure_buffer_stack (yyscan_t yyscanner)
  1810. {
  1811. int nuto_alloc;
  1812. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1813. if (!yyg->yy_buffer_stack) {
  1814. /* First allocation is just for 2 elements, since we don't know if this
  1815. * scanner will even need a stack. We use 2 instead of 1 to avoid an
  1816. * immediate realloc on the next call.
  1817. */
  1818. nuto_alloc = 1;
  1819. yyg->yy_buffer_stack = (struct yy_buffer_state**)cmDependsJava_yyalloc
  1820. (nuto_alloc * sizeof(struct yy_buffer_state*)
  1821. , yyscanner);
  1822. memset(yyg->yy_buffer_stack, 0, nuto_alloc * sizeof(struct yy_buffer_state*));
  1823. yyg->yy_buffer_stack_max = nuto_alloc;
  1824. yyg->yy_buffer_stack_top = 0;
  1825. return;
  1826. }
  1827. if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
  1828. /* Increase the buffer to prepare for a possible push. */
  1829. int grow_size = 8 /* arbitrary grow size */;
  1830. nuto_alloc = yyg->yy_buffer_stack_max + grow_size;
  1831. yyg->yy_buffer_stack = (struct yy_buffer_state**)cmDependsJava_yyrealloc
  1832. (yyg->yy_buffer_stack,
  1833. nuto_alloc * sizeof(struct yy_buffer_state*)
  1834. , yyscanner);
  1835. /* zero only the new slots.*/
  1836. memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
  1837. yyg->yy_buffer_stack_max = nuto_alloc;
  1838. }
  1839. }
  1840. /** Setup the input buffer state to scan directly from a user-specified character buffer.
  1841. * @param base the character buffer
  1842. * @param size the size in bytes of the character buffer
  1843. * @param yyscanner The scanner object.
  1844. * @return the newly allocated buffer state object.
  1845. */
  1846. YY_BUFFER_STATE cmDependsJava_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
  1847. {
  1848. YY_BUFFER_STATE b;
  1849. if ( size < 2 ||
  1850. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1851. base[size-1] != YY_END_OF_BUFFER_CHAR )
  1852. /* They forgot to leave room for the EOB's. */
  1853. return 0;
  1854. b = (YY_BUFFER_STATE) cmDependsJava_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
  1855. if ( ! b )
  1856. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_scan_buffer()" );
  1857. b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  1858. b->yy_buf_pos = b->yy_ch_buf = base;
  1859. b->yy_is_our_buffer = 0;
  1860. b->yy_input_file = 0;
  1861. b->yy_n_chars = b->yy_buf_size;
  1862. b->yy_is_interactive = 0;
  1863. b->yy_at_bol = 1;
  1864. b->yy_fill_buffer = 0;
  1865. b->yy_buffer_status = YY_BUFFER_NEW;
  1866. cmDependsJava_yy_switch_to_buffer(b ,yyscanner );
  1867. return b;
  1868. }
  1869. /** Setup the input buffer state to scan a string. The next call to cmDependsJava_yylex() will
  1870. * scan from a @e copy of @a str.
  1871. * @param str a NUL-terminated string to scan
  1872. * @param yyscanner The scanner object.
  1873. * @return the newly allocated buffer state object.
  1874. * @note If you want to scan bytes that may contain NUL values, then use
  1875. * cmDependsJava_yy_scan_bytes() instead.
  1876. */
  1877. YY_BUFFER_STATE cmDependsJava_yy_scan_string (yyconst char * yy_str , yyscan_t yyscanner)
  1878. {
  1879. return cmDependsJava_yy_scan_bytes(yy_str,strlen(yy_str) ,yyscanner);
  1880. }
  1881. /** Setup the input buffer state to scan the given bytes. The next call to cmDependsJava_yylex() will
  1882. * scan from a @e copy of @a bytes.
  1883. * @param bytes the byte buffer to scan
  1884. * @param len the number of bytes in the buffer pointed to by @a bytes.
  1885. * @param yyscanner The scanner object.
  1886. * @return the newly allocated buffer state object.
  1887. */
  1888. YY_BUFFER_STATE cmDependsJava_yy_scan_bytes (yyconst char * bytes, int len , yyscan_t yyscanner)
  1889. {
  1890. YY_BUFFER_STATE b;
  1891. char *buf;
  1892. yy_size_t n;
  1893. int i;
  1894. /* Get memory for full buffer, including space for trailing EOB's. */
  1895. n = len + 2;
  1896. buf = (char *) cmDependsJava_yyalloc(n ,yyscanner );
  1897. if ( ! buf )
  1898. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_scan_bytes()" );
  1899. for ( i = 0; i < len; ++i )
  1900. buf[i] = bytes[i];
  1901. buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
  1902. b = cmDependsJava_yy_scan_buffer(buf,n ,yyscanner);
  1903. if ( ! b )
  1904. YY_FATAL_ERROR( "bad buffer in cmDependsJava_yy_scan_bytes()" );
  1905. /* It's okay to grow etc. this buffer, and we should throw it
  1906. * away when we're done.
  1907. */
  1908. b->yy_is_our_buffer = 1;
  1909. return b;
  1910. }
  1911. #ifndef YY_EXIT_FAILURE
  1912. #define YY_EXIT_FAILURE 2
  1913. #endif
  1914. static void yy_fatal_error (yyconst char* msg , yyscan_t)
  1915. {
  1916. (void) fprintf( stderr, "%s\n", msg );
  1917. exit( YY_EXIT_FAILURE );
  1918. }
  1919. /* Redefine yyless() so it works in section 3 code. */
  1920. #undef yyless
  1921. #define yyless(n) \
  1922. do \
  1923. { \
  1924. /* Undo effects of setting up yytext. */ \
  1925. int yyless_macro_arg = (n); \
  1926. YY_LESS_LINENO(yyless_macro_arg);\
  1927. yytext[yyleng] = yyg->yy_hold_char; \
  1928. yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
  1929. yyg->yy_hold_char = *yyg->yy_c_buf_p; \
  1930. *yyg->yy_c_buf_p = '\0'; \
  1931. yyleng = yyless_macro_arg; \
  1932. } \
  1933. while ( 0 )
  1934. /* Accessor methods (get/set functions) to struct members. */
  1935. /** Get the user-defined data for this scanner.
  1936. * @param yyscanner The scanner object.
  1937. */
  1938. YY_EXTRA_TYPE cmDependsJava_yyget_extra (yyscan_t yyscanner)
  1939. {
  1940. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1941. return yyextra;
  1942. }
  1943. /** Get the current line number.
  1944. * @param yyscanner The scanner object.
  1945. */
  1946. int cmDependsJava_yyget_lineno (yyscan_t yyscanner)
  1947. {
  1948. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1949. if (! YY_CURRENT_BUFFER)
  1950. return 0;
  1951. return yylineno;
  1952. }
  1953. /** Get the current column number.
  1954. * @param yyscanner The scanner object.
  1955. */
  1956. int cmDependsJava_yyget_column (yyscan_t yyscanner)
  1957. {
  1958. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1959. if (! YY_CURRENT_BUFFER)
  1960. return 0;
  1961. return yycolumn;
  1962. }
  1963. /** Get the input stream.
  1964. * @param yyscanner The scanner object.
  1965. */
  1966. FILE *cmDependsJava_yyget_in (yyscan_t yyscanner)
  1967. {
  1968. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1969. return yyin;
  1970. }
  1971. /** Get the output stream.
  1972. * @param yyscanner The scanner object.
  1973. */
  1974. FILE *cmDependsJava_yyget_out (yyscan_t yyscanner)
  1975. {
  1976. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1977. return yyout;
  1978. }
  1979. /** Get the length of the current token.
  1980. * @param yyscanner The scanner object.
  1981. */
  1982. int cmDependsJava_yyget_leng (yyscan_t yyscanner)
  1983. {
  1984. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1985. return yyleng;
  1986. }
  1987. /** Get the current token.
  1988. * @param yyscanner The scanner object.
  1989. */
  1990. char *cmDependsJava_yyget_text (yyscan_t yyscanner)
  1991. {
  1992. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1993. return yytext;
  1994. }
  1995. /** Set the user-defined data. This data is never touched by the scanner.
  1996. * @param user_defined The data to be associated with this scanner.
  1997. * @param yyscanner The scanner object.
  1998. */
  1999. void cmDependsJava_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
  2000. {
  2001. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2002. yyextra = user_defined ;
  2003. }
  2004. /** Set the current line number.
  2005. * @param line_number
  2006. * @param yyscanner The scanner object.
  2007. */
  2008. void cmDependsJava_yyset_lineno (int line_number , yyscan_t yyscanner)
  2009. {
  2010. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2011. /* lineno is only valid if an input buffer exists. */
  2012. if (! YY_CURRENT_BUFFER )
  2013. yy_fatal_error( "cmDependsJava_yyset_lineno called with no buffer" , yyscanner);
  2014. yylineno = line_number;
  2015. }
  2016. /** Set the current column.
  2017. * @param line_number
  2018. * @param yyscanner The scanner object.
  2019. */
  2020. void cmDependsJava_yyset_column (int column_no , yyscan_t yyscanner)
  2021. {
  2022. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2023. /* column is only valid if an input buffer exists. */
  2024. if (! YY_CURRENT_BUFFER )
  2025. yy_fatal_error( "cmDependsJava_yyset_column called with no buffer" , yyscanner);
  2026. yycolumn = column_no;
  2027. }
  2028. /** Set the input stream. This does not discard the current
  2029. * input buffer.
  2030. * @param in_str A readable stream.
  2031. * @param yyscanner The scanner object.
  2032. * @see cmDependsJava_yy_switch_to_buffer
  2033. */
  2034. void cmDependsJava_yyset_in (FILE * in_str , yyscan_t yyscanner)
  2035. {
  2036. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2037. yyin = in_str ;
  2038. }
  2039. void cmDependsJava_yyset_out (FILE * out_str , yyscan_t yyscanner)
  2040. {
  2041. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2042. yyout = out_str ;
  2043. }
  2044. int cmDependsJava_yyget_debug (yyscan_t yyscanner)
  2045. {
  2046. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2047. return yy_flex_debug;
  2048. }
  2049. void cmDependsJava_yyset_debug (int bdebug , yyscan_t yyscanner)
  2050. {
  2051. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2052. yy_flex_debug = bdebug ;
  2053. }
  2054. /* Accessor methods for yylval and yylloc */
  2055. static int yy_init_globals (yyscan_t yyscanner)
  2056. {
  2057. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2058. /* Initialization is the same as for the non-reentrant scanner.
  2059. This function is called once per scanner lifetime. */
  2060. yyg->yy_buffer_stack = 0;
  2061. yyg->yy_buffer_stack_top = 0;
  2062. yyg->yy_buffer_stack_max = 0;
  2063. yyg->yy_c_buf_p = (char *) 0;
  2064. yyg->yy_init = 1;
  2065. yyg->yy_start = 0;
  2066. yyg->yy_start_stack_ptr = 0;
  2067. yyg->yy_start_stack_depth = 0;
  2068. yyg->yy_start_stack = (int *) 0;
  2069. /* Defined in main.c */
  2070. #ifdef YY_STDINIT
  2071. yyin = stdin;
  2072. yyout = stdout;
  2073. #else
  2074. yyin = (FILE *) 0;
  2075. yyout = (FILE *) 0;
  2076. #endif
  2077. /* For future reference: Set errno on error, since we are called by
  2078. * cmDependsJava_yylex_init()
  2079. */
  2080. return 0;
  2081. }
  2082. /* User-visible API */
  2083. /* cmDependsJava_yylex_init is special because it creates the scanner itself, so it is
  2084. * the ONLY reentrant function that doesn't take the scanner as the last argument.
  2085. * That's why we explicitly handle the declaration, instead of using our macros.
  2086. */
  2087. int cmDependsJava_yylex_init(yyscan_t* ptr_yy_globals)
  2088. {
  2089. if (ptr_yy_globals == NULL){
  2090. errno = EINVAL;
  2091. return 1;
  2092. }
  2093. *ptr_yy_globals = (yyscan_t) cmDependsJava_yyalloc ( sizeof( struct yyguts_t ), NULL );
  2094. if (*ptr_yy_globals == NULL){
  2095. errno = ENOMEM;
  2096. return 1;
  2097. }
  2098. memset(*ptr_yy_globals,0,sizeof(struct yyguts_t));
  2099. return yy_init_globals ( *ptr_yy_globals );
  2100. }
  2101. /* cmDependsJava_yylex_destroy is for both reentrant and non-reentrant scanners. */
  2102. int cmDependsJava_yylex_destroy (yyscan_t yyscanner)
  2103. {
  2104. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2105. /* Pop the buffer stack, destroying each element. */
  2106. while(YY_CURRENT_BUFFER){
  2107. cmDependsJava_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
  2108. YY_CURRENT_BUFFER_LVALUE = NULL;
  2109. cmDependsJava_yypop_buffer_state(yyscanner);
  2110. }
  2111. /* Destroy the stack itself. */
  2112. cmDependsJava_yyfree(yyg->yy_buffer_stack ,yyscanner);
  2113. yyg->yy_buffer_stack = NULL;
  2114. /* Destroy the start condition stack. */
  2115. cmDependsJava_yyfree(yyg->yy_start_stack ,yyscanner );
  2116. yyg->yy_start_stack = NULL;
  2117. /* Destroy the main struct (reentrant only). */
  2118. cmDependsJava_yyfree ( yyscanner , yyscanner );
  2119. return 0;
  2120. }
  2121. /*
  2122. * Internal utility routines.
  2123. */
  2124. #ifndef yytext_ptr
  2125. static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
  2126. {
  2127. register int i;
  2128. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2129. for ( i = 0; i < n; ++i )
  2130. s1[i] = s2[i];
  2131. }
  2132. #endif
  2133. #ifdef YY_NEED_STRLEN
  2134. static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
  2135. {
  2136. register int n;
  2137. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2138. for ( n = 0; s[n]; ++n )
  2139. ;
  2140. return n;
  2141. }
  2142. #endif
  2143. void *cmDependsJava_yyalloc (yy_size_t size , yyscan_t)
  2144. {
  2145. return (void *) malloc( size );
  2146. }
  2147. void *cmDependsJava_yyrealloc (void * ptr, yy_size_t size , yyscan_t)
  2148. {
  2149. /* The cast to (char *) in the following accommodates both
  2150. * implementations that use char* generic pointers, and those
  2151. * that use void* generic pointers. It works with the latter
  2152. * because both ANSI C and C++ allow castless assignment from
  2153. * any pointer type to void*, and deal with argument conversions
  2154. * as though doing an assignment.
  2155. */
  2156. return (void *) realloc( (char *) ptr, size );
  2157. }
  2158. void cmDependsJava_yyfree (void * ptr , yyscan_t)
  2159. {
  2160. free( (char *) ptr ); /* see cmDependsJava_yyrealloc() for (char *) cast */
  2161. }
  2162. #define YYTABLES_NAME "yytables"
  2163. #undef YY_NEW_FILE
  2164. #undef YY_FLUSH_BUFFER
  2165. #undef yy_set_bol
  2166. #undef yy_new_buffer
  2167. #undef yy_set_interactive
  2168. #undef yytext_ptr
  2169. #undef YY_DO_BEFORE_ACTION
  2170. #ifdef YY_DECL_IS_OURS
  2171. #undef YY_DECL_IS_OURS
  2172. #undef YY_DECL
  2173. #endif
  2174. #line 214 "cmDependsJavaLexer.in.l"