cmDependsJavaLexer.cxx 76 KB

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