cmDependsJavaLexer.cxx 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665
  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. Modify cmDependsJavaLexer.h:
  567. - remove TABs
  568. - remove the yy_init_globals function
  569. - remove the block that includes unistd.h
  570. */
  571. #include "cmDependsJavaParserHelper.h"
  572. /* Disable some warnings. */
  573. #if defined(_MSC_VER)
  574. # pragma warning ( disable : 4127 )
  575. # pragma warning ( disable : 4131 )
  576. # pragma warning ( disable : 4244 )
  577. # pragma warning ( disable : 4251 )
  578. # pragma warning ( disable : 4267 )
  579. # pragma warning ( disable : 4305 )
  580. # pragma warning ( disable : 4309 )
  581. # pragma warning ( disable : 4706 )
  582. # pragma warning ( disable : 4786 )
  583. #endif
  584. /* Disable features we do not need. */
  585. #define YY_NEVER_INTERACTIVE 1
  586. #define ECHO
  587. /* Replace the lexer input function. */
  588. #undef YY_INPUT
  589. #define YY_INPUT(buf, result, max_size) \
  590. { result = yyextra->LexInput(buf, max_size); }
  591. /* Include the set of tokens from the parser. */
  592. #include "cmDependsJavaParserTokens.h"
  593. #if defined( _WIN32 ) && !defined( __CYGWIN__ )
  594. /* Handle Windows properly */
  595. # include <io.h>
  596. # define isatty _isatty
  597. # define YY_NO_UNISTD_H 1
  598. #endif
  599. #define KEYWORD yylvalp->str = 0
  600. #define SYMBOL yylvalp->str = 0
  601. #define PRIMITIVE yylvalp->str = 0
  602. /*--------------------------------------------------------------------------*/
  603. #line 721 "cmDependsJavaLexer.cxx"
  604. #define INITIAL 0
  605. #define comment 1
  606. #define string 2
  607. #ifndef YY_NO_UNISTD_H
  608. /* Special case for "unistd.h", since it is non-ANSI. We include it way
  609. * down here because we want the user's section 1 to have been scanned first.
  610. * The user has a chance to override it with an option.
  611. */
  612. #include <unistd.h>
  613. #endif
  614. #ifndef YY_EXTRA_TYPE
  615. #define YY_EXTRA_TYPE void *
  616. #endif
  617. /* Holds the entire state of the reentrant scanner. */
  618. struct yyguts_t
  619. {
  620. /* User-defined. Not touched by flex. */
  621. YY_EXTRA_TYPE yyextra_r;
  622. /* The rest are the same as the globals declared in the non-reentrant scanner. */
  623. FILE *yyin_r, *yyout_r;
  624. size_t yy_buffer_stack_top; /**< index of top of stack. */
  625. size_t yy_buffer_stack_max; /**< capacity of stack. */
  626. YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
  627. char yy_hold_char;
  628. int yy_n_chars;
  629. int yyleng_r;
  630. char *yy_c_buf_p;
  631. int yy_init;
  632. int yy_start;
  633. int yy_did_buffer_switch_on_eof;
  634. int yy_start_stack_ptr;
  635. int yy_start_stack_depth;
  636. int *yy_start_stack;
  637. yy_state_type yy_last_accepting_state;
  638. char* yy_last_accepting_cpos;
  639. int yylineno_r;
  640. int yy_flex_debug_r;
  641. char *yytext_r;
  642. int yy_more_flag;
  643. int yy_more_len;
  644. }; /* end struct yyguts_t */
  645. /* Accessor methods to globals.
  646. These are made visible to non-reentrant scanners for convenience. */
  647. int cmDependsJava_yylex_destroy (yyscan_t yyscanner );
  648. int cmDependsJava_yyget_debug (yyscan_t yyscanner );
  649. void cmDependsJava_yyset_debug (int debug_flag ,yyscan_t yyscanner );
  650. YY_EXTRA_TYPE cmDependsJava_yyget_extra (yyscan_t yyscanner );
  651. void cmDependsJava_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
  652. FILE *cmDependsJava_yyget_in (yyscan_t yyscanner );
  653. void cmDependsJava_yyset_in (FILE * in_str ,yyscan_t yyscanner );
  654. FILE *cmDependsJava_yyget_out (yyscan_t yyscanner );
  655. void cmDependsJava_yyset_out (FILE * out_str ,yyscan_t yyscanner );
  656. int cmDependsJava_yyget_leng (yyscan_t yyscanner );
  657. char *cmDependsJava_yyget_text (yyscan_t yyscanner );
  658. int cmDependsJava_yyget_lineno (yyscan_t yyscanner );
  659. void cmDependsJava_yyset_lineno (int line_number ,yyscan_t yyscanner );
  660. /* Macros after this point can all be overridden by user definitions in
  661. * section 1.
  662. */
  663. #ifndef YY_SKIP_YYWRAP
  664. #ifdef __cplusplus
  665. extern "C" int cmDependsJava_yywrap (yyscan_t yyscanner );
  666. #else
  667. extern int cmDependsJava_yywrap (yyscan_t yyscanner );
  668. #endif
  669. #endif
  670. #ifndef yytext_ptr
  671. static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
  672. #endif
  673. #ifdef YY_NEED_STRLEN
  674. static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
  675. #endif
  676. #ifndef YY_NO_INPUT
  677. #ifdef __cplusplus
  678. static int yyinput (yyscan_t yyscanner );
  679. #else
  680. static int input (yyscan_t yyscanner );
  681. #endif
  682. #endif
  683. /* Amount of stuff to slurp up with each read. */
  684. #ifndef YY_READ_BUF_SIZE
  685. #define YY_READ_BUF_SIZE 8192
  686. #endif
  687. /* Copy whatever the last rule matched to the standard output. */
  688. #ifndef ECHO
  689. /* This used to be an fputs(), but since the string might contain NUL's,
  690. * we now use fwrite().
  691. */
  692. #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
  693. #endif
  694. /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  695. * is returned in "result".
  696. */
  697. #ifndef YY_INPUT
  698. #define YY_INPUT(buf,result,max_size) \
  699. if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  700. { \
  701. int c = '*'; \
  702. size_t n; \
  703. for ( n = 0; n < max_size && \
  704. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  705. buf[n] = (char) c; \
  706. if ( c == '\n' ) \
  707. buf[n++] = (char) c; \
  708. if ( c == EOF && ferror( yyin ) ) \
  709. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  710. result = n; \
  711. } \
  712. else \
  713. { \
  714. errno=0; \
  715. while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  716. { \
  717. if( errno != EINTR) \
  718. { \
  719. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  720. break; \
  721. } \
  722. errno=0; \
  723. clearerr(yyin); \
  724. } \
  725. }\
  726. \
  727. #endif
  728. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  729. * we don't want an extra ';' after the "return" because that will cause
  730. * some compilers to complain about unreachable statements.
  731. */
  732. #ifndef yyterminate
  733. #define yyterminate() return YY_NULL
  734. #endif
  735. /* Number of entries by which start-condition stack grows. */
  736. #ifndef YY_START_STACK_INCR
  737. #define YY_START_STACK_INCR 25
  738. #endif
  739. /* Report a fatal error. */
  740. #ifndef YY_FATAL_ERROR
  741. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
  742. #endif
  743. /* end tables serialization structures and prototypes */
  744. /* Default declaration of generated scanner - a define so the user can
  745. * easily add parameters.
  746. */
  747. #ifndef YY_DECL
  748. #define YY_DECL_IS_OURS 1
  749. extern int cmDependsJava_yylex (yyscan_t yyscanner);
  750. #define YY_DECL int cmDependsJava_yylex (yyscan_t yyscanner)
  751. #endif /* !YY_DECL */
  752. /* Code executed at the beginning of each rule, after yytext and yyleng
  753. * have been set up.
  754. */
  755. #ifndef YY_USER_ACTION
  756. #define YY_USER_ACTION
  757. #endif
  758. /* Code executed at the end of each rule. */
  759. #ifndef YY_BREAK
  760. #define YY_BREAK break;
  761. #endif
  762. #define YY_RULE_SETUP \
  763. YY_USER_ACTION
  764. /** The main scanner function which does all the work.
  765. */
  766. YY_DECL
  767. {
  768. register yy_state_type yy_current_state;
  769. register char *yy_cp, *yy_bp;
  770. register int yy_act;
  771. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  772. #line 88 "cmDependsJavaLexer.in.l"
  773. #line 940 "cmDependsJavaLexer.cxx"
  774. if ( yyg->yy_init )
  775. {
  776. yyg->yy_init = 0;
  777. #ifdef YY_USER_INIT
  778. YY_USER_INIT;
  779. #endif
  780. if ( ! yyg->yy_start )
  781. yyg->yy_start = 1; /* first start state */
  782. if ( ! yyin )
  783. yyin = stdin;
  784. if ( ! yyout )
  785. yyout = stdout;
  786. if ( ! YY_CURRENT_BUFFER ) {
  787. cmDependsJava_yyensure_buffer_stack (yyscanner);
  788. YY_CURRENT_BUFFER_LVALUE =
  789. cmDependsJava_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
  790. }
  791. cmDependsJava_yy_load_buffer_state(yyscanner );
  792. }
  793. while ( 1 ) /* loops until end-of-file is reached */
  794. {
  795. yy_cp = yyg->yy_c_buf_p;
  796. /* Support of yytext. */
  797. *yy_cp = yyg->yy_hold_char;
  798. /* yy_bp points to the position in yy_ch_buf of the start of
  799. * the current run.
  800. */
  801. yy_bp = yy_cp;
  802. yy_current_state = yyg->yy_start;
  803. yy_match:
  804. do
  805. {
  806. register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  807. if ( yy_accept[yy_current_state] )
  808. {
  809. yyg->yy_last_accepting_state = yy_current_state;
  810. yyg->yy_last_accepting_cpos = yy_cp;
  811. }
  812. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  813. {
  814. yy_current_state = (int) yy_def[yy_current_state];
  815. if ( yy_current_state >= 327 )
  816. yy_c = yy_meta[(unsigned int) yy_c];
  817. }
  818. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  819. ++yy_cp;
  820. }
  821. while ( yy_base[yy_current_state] != 414 );
  822. yy_find_action:
  823. yy_act = yy_accept[yy_current_state];
  824. if ( yy_act == 0 )
  825. { /* have to back up */
  826. yy_cp = yyg->yy_last_accepting_cpos;
  827. yy_current_state = yyg->yy_last_accepting_state;
  828. yy_act = yy_accept[yy_current_state];
  829. }
  830. YY_DO_BEFORE_ACTION;
  831. do_action: /* This label is used only to access EOF actions. */
  832. switch ( yy_act )
  833. { /* beginning of action switch */
  834. case 0: /* must back up */
  835. /* undo the effects of YY_DO_BEFORE_ACTION */
  836. *yy_cp = yyg->yy_hold_char;
  837. yy_cp = yyg->yy_last_accepting_cpos;
  838. yy_current_state = yyg->yy_last_accepting_state;
  839. goto yy_find_action;
  840. case 1:
  841. YY_RULE_SETUP
  842. #line 89 "cmDependsJavaLexer.in.l"
  843. { BEGIN(comment); }
  844. YY_BREAK
  845. case 2:
  846. YY_RULE_SETUP
  847. #line 90 "cmDependsJavaLexer.in.l"
  848. { BEGIN(INITIAL); }
  849. YY_BREAK
  850. case 3:
  851. /* rule 3 can match eol */
  852. YY_RULE_SETUP
  853. #line 91 "cmDependsJavaLexer.in.l"
  854. {}
  855. YY_BREAK
  856. case 4:
  857. YY_RULE_SETUP
  858. #line 93 "cmDependsJavaLexer.in.l"
  859. { BEGIN(string); }
  860. YY_BREAK
  861. case 5:
  862. YY_RULE_SETUP
  863. #line 94 "cmDependsJavaLexer.in.l"
  864. { BEGIN(INITIAL); return STRINGLITERAL; }
  865. YY_BREAK
  866. case 6:
  867. YY_RULE_SETUP
  868. #line 95 "cmDependsJavaLexer.in.l"
  869. {}
  870. YY_BREAK
  871. case 7:
  872. YY_RULE_SETUP
  873. #line 97 "cmDependsJavaLexer.in.l"
  874. { KEYWORD; return ABSTRACT; }
  875. YY_BREAK
  876. case 8:
  877. YY_RULE_SETUP
  878. #line 98 "cmDependsJavaLexer.in.l"
  879. { KEYWORD; return ASSERT; }
  880. YY_BREAK
  881. case 9:
  882. YY_RULE_SETUP
  883. #line 99 "cmDependsJavaLexer.in.l"
  884. { KEYWORD; return BOOLEAN; }
  885. YY_BREAK
  886. case 10:
  887. YY_RULE_SETUP
  888. #line 100 "cmDependsJavaLexer.in.l"
  889. { KEYWORD; return BREAK; }
  890. YY_BREAK
  891. case 11:
  892. YY_RULE_SETUP
  893. #line 101 "cmDependsJavaLexer.in.l"
  894. { KEYWORD; return BYTE; }
  895. YY_BREAK
  896. case 12:
  897. YY_RULE_SETUP
  898. #line 102 "cmDependsJavaLexer.in.l"
  899. { KEYWORD; return CASE; }
  900. YY_BREAK
  901. case 13:
  902. YY_RULE_SETUP
  903. #line 103 "cmDependsJavaLexer.in.l"
  904. { KEYWORD; return CATCH; }
  905. YY_BREAK
  906. case 14:
  907. YY_RULE_SETUP
  908. #line 104 "cmDependsJavaLexer.in.l"
  909. { KEYWORD; return CHAR; }
  910. YY_BREAK
  911. case 15:
  912. YY_RULE_SETUP
  913. #line 105 "cmDependsJavaLexer.in.l"
  914. { KEYWORD; return CLASS; }
  915. YY_BREAK
  916. case 16:
  917. YY_RULE_SETUP
  918. #line 106 "cmDependsJavaLexer.in.l"
  919. { KEYWORD; return CONTINUE; }
  920. YY_BREAK
  921. case 17:
  922. YY_RULE_SETUP
  923. #line 107 "cmDependsJavaLexer.in.l"
  924. { KEYWORD; return DEFAULT; }
  925. YY_BREAK
  926. case 18:
  927. YY_RULE_SETUP
  928. #line 108 "cmDependsJavaLexer.in.l"
  929. { KEYWORD; return DO; }
  930. YY_BREAK
  931. case 19:
  932. YY_RULE_SETUP
  933. #line 109 "cmDependsJavaLexer.in.l"
  934. { KEYWORD; return DOUBLE; }
  935. YY_BREAK
  936. case 20:
  937. YY_RULE_SETUP
  938. #line 110 "cmDependsJavaLexer.in.l"
  939. { KEYWORD; return ELSE; }
  940. YY_BREAK
  941. case 21:
  942. YY_RULE_SETUP
  943. #line 111 "cmDependsJavaLexer.in.l"
  944. { KEYWORD; return EXTENDS; }
  945. YY_BREAK
  946. case 22:
  947. YY_RULE_SETUP
  948. #line 112 "cmDependsJavaLexer.in.l"
  949. { KEYWORD; return FINAL; }
  950. YY_BREAK
  951. case 23:
  952. YY_RULE_SETUP
  953. #line 113 "cmDependsJavaLexer.in.l"
  954. { KEYWORD; return FINALLY; }
  955. YY_BREAK
  956. case 24:
  957. YY_RULE_SETUP
  958. #line 114 "cmDependsJavaLexer.in.l"
  959. { KEYWORD; return FLOAT; }
  960. YY_BREAK
  961. case 25:
  962. YY_RULE_SETUP
  963. #line 115 "cmDependsJavaLexer.in.l"
  964. { KEYWORD; return FOR; }
  965. YY_BREAK
  966. case 26:
  967. YY_RULE_SETUP
  968. #line 116 "cmDependsJavaLexer.in.l"
  969. { KEYWORD; return IF; }
  970. YY_BREAK
  971. case 27:
  972. YY_RULE_SETUP
  973. #line 117 "cmDependsJavaLexer.in.l"
  974. { KEYWORD; return IMPLEMENTS; }
  975. YY_BREAK
  976. case 28:
  977. YY_RULE_SETUP
  978. #line 118 "cmDependsJavaLexer.in.l"
  979. { KEYWORD; return IMPORT; }
  980. YY_BREAK
  981. case 29:
  982. YY_RULE_SETUP
  983. #line 119 "cmDependsJavaLexer.in.l"
  984. { KEYWORD; return INSTANCEOF; }
  985. YY_BREAK
  986. case 30:
  987. YY_RULE_SETUP
  988. #line 120 "cmDependsJavaLexer.in.l"
  989. { KEYWORD; return INT; }
  990. YY_BREAK
  991. case 31:
  992. YY_RULE_SETUP
  993. #line 121 "cmDependsJavaLexer.in.l"
  994. { KEYWORD; return INTERFACE; }
  995. YY_BREAK
  996. case 32:
  997. YY_RULE_SETUP
  998. #line 122 "cmDependsJavaLexer.in.l"
  999. { KEYWORD; return LONG; }
  1000. YY_BREAK
  1001. case 33:
  1002. YY_RULE_SETUP
  1003. #line 123 "cmDependsJavaLexer.in.l"
  1004. { KEYWORD; return NATIVE; }
  1005. YY_BREAK
  1006. case 34:
  1007. YY_RULE_SETUP
  1008. #line 124 "cmDependsJavaLexer.in.l"
  1009. { KEYWORD; return NEW; }
  1010. YY_BREAK
  1011. case 35:
  1012. YY_RULE_SETUP
  1013. #line 125 "cmDependsJavaLexer.in.l"
  1014. { KEYWORD; return PACKAGE; }
  1015. YY_BREAK
  1016. case 36:
  1017. YY_RULE_SETUP
  1018. #line 126 "cmDependsJavaLexer.in.l"
  1019. { KEYWORD; return PRIVATE; }
  1020. YY_BREAK
  1021. case 37:
  1022. YY_RULE_SETUP
  1023. #line 127 "cmDependsJavaLexer.in.l"
  1024. { KEYWORD; return PROTECTED; }
  1025. YY_BREAK
  1026. case 38:
  1027. YY_RULE_SETUP
  1028. #line 128 "cmDependsJavaLexer.in.l"
  1029. { KEYWORD; return PUBLIC; }
  1030. YY_BREAK
  1031. case 39:
  1032. YY_RULE_SETUP
  1033. #line 129 "cmDependsJavaLexer.in.l"
  1034. { KEYWORD; return RETURN; }
  1035. YY_BREAK
  1036. case 40:
  1037. YY_RULE_SETUP
  1038. #line 130 "cmDependsJavaLexer.in.l"
  1039. { KEYWORD; return SHORT; }
  1040. YY_BREAK
  1041. case 41:
  1042. YY_RULE_SETUP
  1043. #line 131 "cmDependsJavaLexer.in.l"
  1044. { KEYWORD; return STATIC; }
  1045. YY_BREAK
  1046. case 42:
  1047. YY_RULE_SETUP
  1048. #line 132 "cmDependsJavaLexer.in.l"
  1049. { KEYWORD; return STRICTFP; }
  1050. YY_BREAK
  1051. case 43:
  1052. YY_RULE_SETUP
  1053. #line 133 "cmDependsJavaLexer.in.l"
  1054. { KEYWORD; return SUPER; }
  1055. YY_BREAK
  1056. case 44:
  1057. YY_RULE_SETUP
  1058. #line 134 "cmDependsJavaLexer.in.l"
  1059. { KEYWORD; return SWITCH; }
  1060. YY_BREAK
  1061. case 45:
  1062. YY_RULE_SETUP
  1063. #line 135 "cmDependsJavaLexer.in.l"
  1064. { KEYWORD; return SYNCHRONIZED; }
  1065. YY_BREAK
  1066. case 46:
  1067. YY_RULE_SETUP
  1068. #line 136 "cmDependsJavaLexer.in.l"
  1069. { KEYWORD; return THIS; }
  1070. YY_BREAK
  1071. case 47:
  1072. YY_RULE_SETUP
  1073. #line 137 "cmDependsJavaLexer.in.l"
  1074. { KEYWORD; return THROW; }
  1075. YY_BREAK
  1076. case 48:
  1077. YY_RULE_SETUP
  1078. #line 138 "cmDependsJavaLexer.in.l"
  1079. { KEYWORD; return THROWS; }
  1080. YY_BREAK
  1081. case 49:
  1082. YY_RULE_SETUP
  1083. #line 139 "cmDependsJavaLexer.in.l"
  1084. { KEYWORD; return TRANSIENT; }
  1085. YY_BREAK
  1086. case 50:
  1087. YY_RULE_SETUP
  1088. #line 140 "cmDependsJavaLexer.in.l"
  1089. { KEYWORD; return TRY; }
  1090. YY_BREAK
  1091. case 51:
  1092. YY_RULE_SETUP
  1093. #line 141 "cmDependsJavaLexer.in.l"
  1094. { KEYWORD; return VOID; }
  1095. YY_BREAK
  1096. case 52:
  1097. YY_RULE_SETUP
  1098. #line 142 "cmDependsJavaLexer.in.l"
  1099. { KEYWORD; return VOLATILE; }
  1100. YY_BREAK
  1101. case 53:
  1102. YY_RULE_SETUP
  1103. #line 143 "cmDependsJavaLexer.in.l"
  1104. { KEYWORD; return WHILE; }
  1105. YY_BREAK
  1106. case 54:
  1107. YY_RULE_SETUP
  1108. #line 145 "cmDependsJavaLexer.in.l"
  1109. { PRIMITIVE; return BOOLEANLITERAL; }
  1110. YY_BREAK
  1111. case 55:
  1112. /* rule 55 can match eol */
  1113. YY_RULE_SETUP
  1114. #line 146 "cmDependsJavaLexer.in.l"
  1115. { PRIMITIVE; return CHARACTERLITERAL; }
  1116. YY_BREAK
  1117. case 56:
  1118. YY_RULE_SETUP
  1119. #line 147 "cmDependsJavaLexer.in.l"
  1120. { PRIMITIVE; return DECIMALINTEGERLITERAL; }
  1121. YY_BREAK
  1122. case 57:
  1123. YY_RULE_SETUP
  1124. #line 148 "cmDependsJavaLexer.in.l"
  1125. { PRIMITIVE; return FLOATINGPOINTLITERAL; }
  1126. YY_BREAK
  1127. case 58:
  1128. YY_RULE_SETUP
  1129. #line 149 "cmDependsJavaLexer.in.l"
  1130. { PRIMITIVE; return HEXINTEGERLITERAL; }
  1131. YY_BREAK
  1132. case 59:
  1133. YY_RULE_SETUP
  1134. #line 150 "cmDependsJavaLexer.in.l"
  1135. { PRIMITIVE; return NULLLITERAL; }
  1136. YY_BREAK
  1137. case 60:
  1138. YY_RULE_SETUP
  1139. #line 152 "cmDependsJavaLexer.in.l"
  1140. { SYMBOL; return AND; }
  1141. YY_BREAK
  1142. case 61:
  1143. YY_RULE_SETUP
  1144. #line 153 "cmDependsJavaLexer.in.l"
  1145. { SYMBOL; return ANDAND; }
  1146. YY_BREAK
  1147. case 62:
  1148. YY_RULE_SETUP
  1149. #line 154 "cmDependsJavaLexer.in.l"
  1150. { SYMBOL; return ANDEQUALS; }
  1151. YY_BREAK
  1152. case 63:
  1153. YY_RULE_SETUP
  1154. #line 155 "cmDependsJavaLexer.in.l"
  1155. { SYMBOL; return BRACKETEND; }
  1156. YY_BREAK
  1157. case 64:
  1158. YY_RULE_SETUP
  1159. #line 156 "cmDependsJavaLexer.in.l"
  1160. { SYMBOL; return BRACKETSTART; }
  1161. YY_BREAK
  1162. case 65:
  1163. YY_RULE_SETUP
  1164. #line 157 "cmDependsJavaLexer.in.l"
  1165. { SYMBOL; return CARROT; }
  1166. YY_BREAK
  1167. case 66:
  1168. YY_RULE_SETUP
  1169. #line 158 "cmDependsJavaLexer.in.l"
  1170. { SYMBOL; return CARROTEQUALS; }
  1171. YY_BREAK
  1172. case 67:
  1173. YY_RULE_SETUP
  1174. #line 159 "cmDependsJavaLexer.in.l"
  1175. { SYMBOL; return COLON; }
  1176. YY_BREAK
  1177. case 68:
  1178. YY_RULE_SETUP
  1179. #line 160 "cmDependsJavaLexer.in.l"
  1180. { SYMBOL; return COMMA; }
  1181. YY_BREAK
  1182. case 69:
  1183. YY_RULE_SETUP
  1184. #line 161 "cmDependsJavaLexer.in.l"
  1185. { SYMBOL; return CURLYEND; }
  1186. YY_BREAK
  1187. case 70:
  1188. YY_RULE_SETUP
  1189. #line 162 "cmDependsJavaLexer.in.l"
  1190. { SYMBOL; return CURLYSTART; }
  1191. YY_BREAK
  1192. case 71:
  1193. YY_RULE_SETUP
  1194. #line 163 "cmDependsJavaLexer.in.l"
  1195. { SYMBOL; return DIVIDE; }
  1196. YY_BREAK
  1197. case 72:
  1198. YY_RULE_SETUP
  1199. #line 164 "cmDependsJavaLexer.in.l"
  1200. { SYMBOL; return DIVIDEEQUALS; }
  1201. YY_BREAK
  1202. case 73:
  1203. YY_RULE_SETUP
  1204. #line 165 "cmDependsJavaLexer.in.l"
  1205. { SYMBOL; return DOLLAR; }
  1206. YY_BREAK
  1207. case 74:
  1208. YY_RULE_SETUP
  1209. #line 166 "cmDependsJavaLexer.in.l"
  1210. { SYMBOL; return DOT; }
  1211. YY_BREAK
  1212. case 75:
  1213. YY_RULE_SETUP
  1214. #line 167 "cmDependsJavaLexer.in.l"
  1215. { SYMBOL; return EQUALS; }
  1216. YY_BREAK
  1217. case 76:
  1218. YY_RULE_SETUP
  1219. #line 168 "cmDependsJavaLexer.in.l"
  1220. { SYMBOL; return EQUALSEQUALS; }
  1221. YY_BREAK
  1222. case 77:
  1223. YY_RULE_SETUP
  1224. #line 169 "cmDependsJavaLexer.in.l"
  1225. { SYMBOL; return EXCLAMATION; }
  1226. YY_BREAK
  1227. case 78:
  1228. YY_RULE_SETUP
  1229. #line 170 "cmDependsJavaLexer.in.l"
  1230. { SYMBOL; return EXCLAMATIONEQUALS; }
  1231. YY_BREAK
  1232. case 79:
  1233. YY_RULE_SETUP
  1234. #line 171 "cmDependsJavaLexer.in.l"
  1235. { SYMBOL; return GREATER; }
  1236. YY_BREAK
  1237. case 80:
  1238. YY_RULE_SETUP
  1239. #line 172 "cmDependsJavaLexer.in.l"
  1240. { SYMBOL; return GTEQUALS; }
  1241. YY_BREAK
  1242. case 81:
  1243. YY_RULE_SETUP
  1244. #line 173 "cmDependsJavaLexer.in.l"
  1245. { SYMBOL; return GTGT; }
  1246. YY_BREAK
  1247. case 82:
  1248. YY_RULE_SETUP
  1249. #line 174 "cmDependsJavaLexer.in.l"
  1250. { SYMBOL; return GTGTEQUALS; }
  1251. YY_BREAK
  1252. case 83:
  1253. YY_RULE_SETUP
  1254. #line 175 "cmDependsJavaLexer.in.l"
  1255. { SYMBOL; return GTGTGT; }
  1256. YY_BREAK
  1257. case 84:
  1258. YY_RULE_SETUP
  1259. #line 176 "cmDependsJavaLexer.in.l"
  1260. { SYMBOL; return GTGTGTEQUALS; }
  1261. YY_BREAK
  1262. case 85:
  1263. YY_RULE_SETUP
  1264. #line 177 "cmDependsJavaLexer.in.l"
  1265. { SYMBOL; return LESLESEQUALS; }
  1266. YY_BREAK
  1267. case 86:
  1268. YY_RULE_SETUP
  1269. #line 178 "cmDependsJavaLexer.in.l"
  1270. { SYMBOL; return LESSTHAN; }
  1271. YY_BREAK
  1272. case 87:
  1273. YY_RULE_SETUP
  1274. #line 179 "cmDependsJavaLexer.in.l"
  1275. { SYMBOL; return LTEQUALS; }
  1276. YY_BREAK
  1277. case 88:
  1278. YY_RULE_SETUP
  1279. #line 180 "cmDependsJavaLexer.in.l"
  1280. { SYMBOL; return LTLT; }
  1281. YY_BREAK
  1282. case 89:
  1283. YY_RULE_SETUP
  1284. #line 181 "cmDependsJavaLexer.in.l"
  1285. { SYMBOL; return MINUS; }
  1286. YY_BREAK
  1287. case 90:
  1288. YY_RULE_SETUP
  1289. #line 182 "cmDependsJavaLexer.in.l"
  1290. { SYMBOL; return MINUSEQUALS; }
  1291. YY_BREAK
  1292. case 91:
  1293. YY_RULE_SETUP
  1294. #line 183 "cmDependsJavaLexer.in.l"
  1295. { SYMBOL; return MINUSMINUS; }
  1296. YY_BREAK
  1297. case 92:
  1298. YY_RULE_SETUP
  1299. #line 184 "cmDependsJavaLexer.in.l"
  1300. { SYMBOL; return PAREEND; }
  1301. YY_BREAK
  1302. case 93:
  1303. YY_RULE_SETUP
  1304. #line 185 "cmDependsJavaLexer.in.l"
  1305. { SYMBOL; return PARESTART; }
  1306. YY_BREAK
  1307. case 94:
  1308. YY_RULE_SETUP
  1309. #line 186 "cmDependsJavaLexer.in.l"
  1310. { SYMBOL; return PERCENT; }
  1311. YY_BREAK
  1312. case 95:
  1313. YY_RULE_SETUP
  1314. #line 187 "cmDependsJavaLexer.in.l"
  1315. { SYMBOL; return PERCENTEQUALS; }
  1316. YY_BREAK
  1317. case 96:
  1318. YY_RULE_SETUP
  1319. #line 188 "cmDependsJavaLexer.in.l"
  1320. { SYMBOL; return PIPE; }
  1321. YY_BREAK
  1322. case 97:
  1323. YY_RULE_SETUP
  1324. #line 189 "cmDependsJavaLexer.in.l"
  1325. { SYMBOL; return PIPEEQUALS; }
  1326. YY_BREAK
  1327. case 98:
  1328. YY_RULE_SETUP
  1329. #line 190 "cmDependsJavaLexer.in.l"
  1330. { SYMBOL; return PIPEPIPE; }
  1331. YY_BREAK
  1332. case 99:
  1333. YY_RULE_SETUP
  1334. #line 191 "cmDependsJavaLexer.in.l"
  1335. { SYMBOL; return PLUS; }
  1336. YY_BREAK
  1337. case 100:
  1338. YY_RULE_SETUP
  1339. #line 192 "cmDependsJavaLexer.in.l"
  1340. { SYMBOL; return PLUSEQUALS; }
  1341. YY_BREAK
  1342. case 101:
  1343. YY_RULE_SETUP
  1344. #line 193 "cmDependsJavaLexer.in.l"
  1345. { SYMBOL; return PLUSPLUS; }
  1346. YY_BREAK
  1347. case 102:
  1348. YY_RULE_SETUP
  1349. #line 194 "cmDependsJavaLexer.in.l"
  1350. { SYMBOL; return QUESTION; }
  1351. YY_BREAK
  1352. case 103:
  1353. YY_RULE_SETUP
  1354. #line 195 "cmDependsJavaLexer.in.l"
  1355. { SYMBOL; return SEMICOL; }
  1356. YY_BREAK
  1357. case 104:
  1358. YY_RULE_SETUP
  1359. #line 196 "cmDependsJavaLexer.in.l"
  1360. { SYMBOL; return TILDE; }
  1361. YY_BREAK
  1362. case 105:
  1363. YY_RULE_SETUP
  1364. #line 197 "cmDependsJavaLexer.in.l"
  1365. { SYMBOL; return TIMES; }
  1366. YY_BREAK
  1367. case 106:
  1368. YY_RULE_SETUP
  1369. #line 198 "cmDependsJavaLexer.in.l"
  1370. { SYMBOL; return TIMESEQUALS; }
  1371. YY_BREAK
  1372. case 107:
  1373. YY_RULE_SETUP
  1374. #line 200 "cmDependsJavaLexer.in.l"
  1375. {
  1376. yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
  1377. return NAME;
  1378. }
  1379. YY_BREAK
  1380. case 108:
  1381. /* rule 108 can match eol */
  1382. YY_RULE_SETUP
  1383. #line 205 "cmDependsJavaLexer.in.l"
  1384. { }
  1385. YY_BREAK
  1386. case 109:
  1387. /* rule 109 can match eol */
  1388. YY_RULE_SETUP
  1389. #line 206 "cmDependsJavaLexer.in.l"
  1390. { }
  1391. YY_BREAK
  1392. case 110:
  1393. YY_RULE_SETUP
  1394. #line 207 "cmDependsJavaLexer.in.l"
  1395. {
  1396. std::cerr << "Unknown character: " << yytext[0]
  1397. << " (" << (int)yytext[0] << ")" << std::endl;
  1398. yyextra->Error("Unknown character");
  1399. return ERROR;
  1400. }
  1401. YY_BREAK
  1402. case 111:
  1403. YY_RULE_SETUP
  1404. #line 214 "cmDependsJavaLexer.in.l"
  1405. ECHO;
  1406. YY_BREAK
  1407. #line 1590 "cmDependsJavaLexer.cxx"
  1408. case YY_STATE_EOF(INITIAL):
  1409. case YY_STATE_EOF(comment):
  1410. case YY_STATE_EOF(string):
  1411. yyterminate();
  1412. case YY_END_OF_BUFFER:
  1413. {
  1414. /* Amount of text matched not including the EOB char. */
  1415. int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
  1416. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1417. *yy_cp = yyg->yy_hold_char;
  1418. YY_RESTORE_YY_MORE_OFFSET
  1419. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  1420. {
  1421. /* We're scanning a new file or input source. It's
  1422. * possible that this happened because the user
  1423. * just pointed yyin at a new source and called
  1424. * cmDependsJava_yylex(). If so, then we have to assure
  1425. * consistency between YY_CURRENT_BUFFER and our
  1426. * globals. Here is the right place to do so, because
  1427. * this is the first action (other than possibly a
  1428. * back-up) that will match for the new input source.
  1429. */
  1430. yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1431. YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  1432. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  1433. }
  1434. /* Note that here we test for yy_c_buf_p "<=" to the position
  1435. * of the first EOB in the buffer, since yy_c_buf_p will
  1436. * already have been incremented past the NUL character
  1437. * (since all states make transitions on EOB to the
  1438. * end-of-buffer state). Contrast this with the test
  1439. * in input().
  1440. */
  1441. if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  1442. { /* This was really a NUL. */
  1443. yy_state_type yy_next_state;
  1444. yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
  1445. yy_current_state = yy_get_previous_state( yyscanner );
  1446. /* Okay, we're now positioned to make the NUL
  1447. * transition. We couldn't have
  1448. * yy_get_previous_state() go ahead and do it
  1449. * for us because it doesn't know how to deal
  1450. * with the possibility of jamming (and we don't
  1451. * want to build jamming into it because then it
  1452. * will run more slowly).
  1453. */
  1454. yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
  1455. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1456. if ( yy_next_state )
  1457. {
  1458. /* Consume the NUL. */
  1459. yy_cp = ++yyg->yy_c_buf_p;
  1460. yy_current_state = yy_next_state;
  1461. goto yy_match;
  1462. }
  1463. else
  1464. {
  1465. yy_cp = yyg->yy_c_buf_p;
  1466. goto yy_find_action;
  1467. }
  1468. }
  1469. else switch ( yy_get_next_buffer( yyscanner ) )
  1470. {
  1471. case EOB_ACT_END_OF_FILE:
  1472. {
  1473. yyg->yy_did_buffer_switch_on_eof = 0;
  1474. if ( cmDependsJava_yywrap(yyscanner ) )
  1475. {
  1476. /* Note: because we've taken care in
  1477. * yy_get_next_buffer() to have set up
  1478. * yytext, we can now set up
  1479. * yy_c_buf_p so that if some total
  1480. * hoser (like flex itself) wants to
  1481. * call the scanner after we return the
  1482. * YY_NULL, it'll still work - another
  1483. * YY_NULL will get returned.
  1484. */
  1485. yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  1486. yy_act = YY_STATE_EOF(YY_START);
  1487. goto do_action;
  1488. }
  1489. else
  1490. {
  1491. if ( ! yyg->yy_did_buffer_switch_on_eof )
  1492. YY_NEW_FILE;
  1493. }
  1494. break;
  1495. }
  1496. case EOB_ACT_CONTINUE_SCAN:
  1497. yyg->yy_c_buf_p =
  1498. yyg->yytext_ptr + yy_amount_of_matched_text;
  1499. yy_current_state = yy_get_previous_state( yyscanner );
  1500. yy_cp = yyg->yy_c_buf_p;
  1501. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1502. goto yy_match;
  1503. case EOB_ACT_LAST_MATCH:
  1504. yyg->yy_c_buf_p =
  1505. &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
  1506. yy_current_state = yy_get_previous_state( yyscanner );
  1507. yy_cp = yyg->yy_c_buf_p;
  1508. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1509. goto yy_find_action;
  1510. }
  1511. break;
  1512. }
  1513. default:
  1514. YY_FATAL_ERROR(
  1515. "fatal flex scanner internal error--no action found" );
  1516. } /* end of action switch */
  1517. } /* end of scanning one token */
  1518. } /* end of cmDependsJava_yylex */
  1519. /* yy_get_next_buffer - try to read in a new buffer
  1520. *
  1521. * Returns a code representing an action:
  1522. * EOB_ACT_LAST_MATCH -
  1523. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1524. * EOB_ACT_END_OF_FILE - end of file
  1525. */
  1526. static int yy_get_next_buffer (yyscan_t yyscanner)
  1527. {
  1528. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1529. register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  1530. register char *source = yyg->yytext_ptr;
  1531. register int number_to_move, i;
  1532. int ret_val;
  1533. if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
  1534. YY_FATAL_ERROR(
  1535. "fatal flex scanner internal error--end of buffer missed" );
  1536. if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  1537. { /* Don't try to fill the buffer, so this is an EOF. */
  1538. if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
  1539. {
  1540. /* We matched a single character, the EOB, so
  1541. * treat this as a final EOF.
  1542. */
  1543. return EOB_ACT_END_OF_FILE;
  1544. }
  1545. else
  1546. {
  1547. /* We matched some text prior to the EOB, first
  1548. * process it.
  1549. */
  1550. return EOB_ACT_LAST_MATCH;
  1551. }
  1552. }
  1553. /* Try to read more data. */
  1554. /* First move last chars to start of buffer. */
  1555. number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
  1556. for ( i = 0; i < number_to_move; ++i )
  1557. *(dest++) = *(source++);
  1558. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1559. /* don't do the read, it's not guaranteed to return an EOF,
  1560. * just force an EOF
  1561. */
  1562. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
  1563. else
  1564. {
  1565. size_t num_to_read =
  1566. YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  1567. while ( num_to_read <= 0 )
  1568. { /* Not enough room in the buffer - grow it. */
  1569. /* just a shorter name for the current buffer */
  1570. YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
  1571. int yy_c_buf_p_offset =
  1572. (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
  1573. if ( b->yy_is_our_buffer )
  1574. {
  1575. int new_size = b->yy_buf_size * 2;
  1576. if ( new_size <= 0 )
  1577. b->yy_buf_size += b->yy_buf_size / 8;
  1578. else
  1579. b->yy_buf_size *= 2;
  1580. b->yy_ch_buf = (char *)
  1581. /* Include room in for 2 EOB chars. */
  1582. cmDependsJava_yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
  1583. }
  1584. else
  1585. /* Can't grow it, we don't own it. */
  1586. b->yy_ch_buf = 0;
  1587. if ( ! b->yy_ch_buf )
  1588. YY_FATAL_ERROR(
  1589. "fatal error - scanner input buffer overflow" );
  1590. yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  1591. num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  1592. number_to_move - 1;
  1593. }
  1594. if ( num_to_read > YY_READ_BUF_SIZE )
  1595. num_to_read = YY_READ_BUF_SIZE;
  1596. /* Read in more data. */
  1597. YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  1598. yyg->yy_n_chars, num_to_read );
  1599. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  1600. }
  1601. if ( yyg->yy_n_chars == 0 )
  1602. {
  1603. if ( number_to_move == YY_MORE_ADJ )
  1604. {
  1605. ret_val = EOB_ACT_END_OF_FILE;
  1606. cmDependsJava_yyrestart(yyin ,yyscanner);
  1607. }
  1608. else
  1609. {
  1610. ret_val = EOB_ACT_LAST_MATCH;
  1611. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  1612. YY_BUFFER_EOF_PENDING;
  1613. }
  1614. }
  1615. else
  1616. ret_val = EOB_ACT_CONTINUE_SCAN;
  1617. yyg->yy_n_chars += number_to_move;
  1618. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1619. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1620. yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  1621. return ret_val;
  1622. }
  1623. /* yy_get_previous_state - get the state just before the EOB char was reached */
  1624. static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
  1625. {
  1626. register yy_state_type yy_current_state;
  1627. register char *yy_cp;
  1628. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1629. yy_current_state = yyg->yy_start;
  1630. for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
  1631. {
  1632. register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1633. if ( yy_accept[yy_current_state] )
  1634. {
  1635. yyg->yy_last_accepting_state = yy_current_state;
  1636. yyg->yy_last_accepting_cpos = yy_cp;
  1637. }
  1638. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1639. {
  1640. yy_current_state = (int) yy_def[yy_current_state];
  1641. if ( yy_current_state >= 327 )
  1642. yy_c = yy_meta[(unsigned int) yy_c];
  1643. }
  1644. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1645. }
  1646. return yy_current_state;
  1647. }
  1648. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1649. *
  1650. * synopsis
  1651. * next_state = yy_try_NUL_trans( current_state );
  1652. */
  1653. static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
  1654. {
  1655. register int yy_is_jam;
  1656. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1657. register char *yy_cp = yyg->yy_c_buf_p;
  1658. register YY_CHAR yy_c = 1;
  1659. if ( yy_accept[yy_current_state] )
  1660. {
  1661. yyg->yy_last_accepting_state = yy_current_state;
  1662. yyg->yy_last_accepting_cpos = yy_cp;
  1663. }
  1664. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1665. {
  1666. yy_current_state = (int) yy_def[yy_current_state];
  1667. if ( yy_current_state >= 327 )
  1668. yy_c = yy_meta[(unsigned int) yy_c];
  1669. }
  1670. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1671. yy_is_jam = (yy_current_state == 326);
  1672. return yy_is_jam ? 0 : yy_current_state;
  1673. }
  1674. #ifndef YY_NO_INPUT
  1675. #ifdef __cplusplus
  1676. static int yyinput (yyscan_t yyscanner)
  1677. #else
  1678. static int input (yyscan_t yyscanner)
  1679. #endif
  1680. {
  1681. int c;
  1682. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1683. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  1684. if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1685. {
  1686. /* yy_c_buf_p now points to the character we want to return.
  1687. * If this occurs *before* the EOB characters, then it's a
  1688. * valid NUL; if not, then we've hit the end of the buffer.
  1689. */
  1690. if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  1691. /* This was really a NUL. */
  1692. *yyg->yy_c_buf_p = '\0';
  1693. else
  1694. { /* need more input */
  1695. int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
  1696. ++yyg->yy_c_buf_p;
  1697. switch ( yy_get_next_buffer( yyscanner ) )
  1698. {
  1699. case EOB_ACT_LAST_MATCH:
  1700. /* This happens because yy_g_n_b()
  1701. * sees that we've accumulated a
  1702. * token and flags that we need to
  1703. * try matching the token before
  1704. * proceeding. But for input(),
  1705. * there's no matching to consider.
  1706. * So convert the EOB_ACT_LAST_MATCH
  1707. * to EOB_ACT_END_OF_FILE.
  1708. */
  1709. /* Reset buffer status. */
  1710. cmDependsJava_yyrestart(yyin ,yyscanner);
  1711. /*FALLTHROUGH*/
  1712. case EOB_ACT_END_OF_FILE:
  1713. {
  1714. if ( cmDependsJava_yywrap(yyscanner ) )
  1715. return EOF;
  1716. if ( ! yyg->yy_did_buffer_switch_on_eof )
  1717. YY_NEW_FILE;
  1718. #ifdef __cplusplus
  1719. return yyinput(yyscanner);
  1720. #else
  1721. return input(yyscanner);
  1722. #endif
  1723. }
  1724. case EOB_ACT_CONTINUE_SCAN:
  1725. yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
  1726. break;
  1727. }
  1728. }
  1729. }
  1730. c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
  1731. *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
  1732. yyg->yy_hold_char = *++yyg->yy_c_buf_p;
  1733. return c;
  1734. }
  1735. #endif /* ifndef YY_NO_INPUT */
  1736. /** Immediately switch to a different input stream.
  1737. * @param input_file A readable stream.
  1738. * @param yyscanner The scanner object.
  1739. * @note This function does not reset the start condition to @c INITIAL .
  1740. */
  1741. void cmDependsJava_yyrestart (FILE * input_file , yyscan_t yyscanner)
  1742. {
  1743. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1744. if ( ! YY_CURRENT_BUFFER ){
  1745. cmDependsJava_yyensure_buffer_stack (yyscanner);
  1746. YY_CURRENT_BUFFER_LVALUE =
  1747. cmDependsJava_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
  1748. }
  1749. cmDependsJava_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
  1750. cmDependsJava_yy_load_buffer_state(yyscanner );
  1751. }
  1752. /** Switch to a different input buffer.
  1753. * @param new_buffer The new input buffer.
  1754. * @param yyscanner The scanner object.
  1755. */
  1756. void cmDependsJava_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
  1757. {
  1758. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1759. /* TODO. We should be able to replace this entire function body
  1760. * with
  1761. * cmDependsJava_yypop_buffer_state();
  1762. * cmDependsJava_yypush_buffer_state(new_buffer);
  1763. */
  1764. cmDependsJava_yyensure_buffer_stack (yyscanner);
  1765. if ( YY_CURRENT_BUFFER == new_buffer )
  1766. return;
  1767. if ( YY_CURRENT_BUFFER )
  1768. {
  1769. /* Flush out information for old buffer. */
  1770. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  1771. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  1772. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  1773. }
  1774. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1775. cmDependsJava_yy_load_buffer_state(yyscanner );
  1776. /* We don't actually know whether we did this switch during
  1777. * EOF (cmDependsJava_yywrap()) processing, but the only time this flag
  1778. * is looked at is after cmDependsJava_yywrap() is called, so it's safe
  1779. * to go ahead and always set it.
  1780. */
  1781. yyg->yy_did_buffer_switch_on_eof = 1;
  1782. }
  1783. static void cmDependsJava_yy_load_buffer_state (yyscan_t yyscanner)
  1784. {
  1785. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1786. yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1787. yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  1788. yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  1789. yyg->yy_hold_char = *yyg->yy_c_buf_p;
  1790. }
  1791. /** Allocate and initialize an input buffer state.
  1792. * @param file A readable stream.
  1793. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  1794. * @param yyscanner The scanner object.
  1795. * @return the allocated buffer state.
  1796. */
  1797. YY_BUFFER_STATE cmDependsJava_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
  1798. {
  1799. YY_BUFFER_STATE b;
  1800. b = (YY_BUFFER_STATE) cmDependsJava_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
  1801. if ( ! b )
  1802. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_create_buffer()" );
  1803. b->yy_buf_size = size;
  1804. /* yy_ch_buf has to be 2 characters longer than the size given because
  1805. * we need to put in 2 end-of-buffer characters.
  1806. */
  1807. b->yy_ch_buf = (char *) cmDependsJava_yyalloc(b->yy_buf_size + 2 ,yyscanner );
  1808. if ( ! b->yy_ch_buf )
  1809. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_create_buffer()" );
  1810. b->yy_is_our_buffer = 1;
  1811. cmDependsJava_yy_init_buffer(b,file ,yyscanner);
  1812. return b;
  1813. }
  1814. /** Destroy the buffer.
  1815. * @param b a buffer created with cmDependsJava_yy_create_buffer()
  1816. * @param yyscanner The scanner object.
  1817. */
  1818. void cmDependsJava_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
  1819. {
  1820. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1821. if ( ! b )
  1822. return;
  1823. if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  1824. YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  1825. if ( b->yy_is_our_buffer )
  1826. cmDependsJava_yyfree((void *) b->yy_ch_buf ,yyscanner );
  1827. cmDependsJava_yyfree((void *) b ,yyscanner );
  1828. }
  1829. #ifndef __cplusplus
  1830. extern int isatty (int );
  1831. #endif /* __cplusplus */
  1832. /* Initializes or reinitializes a buffer.
  1833. * This function is sometimes called more than once on the same buffer,
  1834. * such as during a cmDependsJava_yyrestart() or at EOF.
  1835. */
  1836. static void cmDependsJava_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
  1837. {
  1838. int oerrno = errno;
  1839. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1840. cmDependsJava_yy_flush_buffer(b ,yyscanner);
  1841. b->yy_input_file = file;
  1842. b->yy_fill_buffer = 1;
  1843. /* If b is the current buffer, then cmDependsJava_yy_init_buffer was _probably_
  1844. * called from cmDependsJava_yyrestart() or through yy_get_next_buffer.
  1845. * In that case, we don't want to reset the lineno or column.
  1846. */
  1847. if (b != YY_CURRENT_BUFFER){
  1848. b->yy_bs_lineno = 1;
  1849. b->yy_bs_column = 0;
  1850. }
  1851. b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1852. errno = oerrno;
  1853. }
  1854. /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  1855. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  1856. * @param yyscanner The scanner object.
  1857. */
  1858. void cmDependsJava_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
  1859. {
  1860. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1861. if ( ! b )
  1862. return;
  1863. b->yy_n_chars = 0;
  1864. /* We always need two end-of-buffer characters. The first causes
  1865. * a transition to the end-of-buffer state. The second causes
  1866. * a jam in that state.
  1867. */
  1868. b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1869. b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1870. b->yy_buf_pos = &b->yy_ch_buf[0];
  1871. b->yy_at_bol = 1;
  1872. b->yy_buffer_status = YY_BUFFER_NEW;
  1873. if ( b == YY_CURRENT_BUFFER )
  1874. cmDependsJava_yy_load_buffer_state(yyscanner );
  1875. }
  1876. /** Pushes the new state onto the stack. The new state becomes
  1877. * the current state. This function will allocate the stack
  1878. * if necessary.
  1879. * @param new_buffer The new state.
  1880. * @param yyscanner The scanner object.
  1881. */
  1882. void cmDependsJava_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
  1883. {
  1884. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1885. if (new_buffer == NULL)
  1886. return;
  1887. cmDependsJava_yyensure_buffer_stack(yyscanner);
  1888. /* This block is copied from cmDependsJava_yy_switch_to_buffer. */
  1889. if ( YY_CURRENT_BUFFER )
  1890. {
  1891. /* Flush out information for old buffer. */
  1892. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  1893. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  1894. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  1895. }
  1896. /* Only push if top exists. Otherwise, replace top. */
  1897. if (YY_CURRENT_BUFFER)
  1898. yyg->yy_buffer_stack_top++;
  1899. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1900. /* copied from cmDependsJava_yy_switch_to_buffer. */
  1901. cmDependsJava_yy_load_buffer_state(yyscanner );
  1902. yyg->yy_did_buffer_switch_on_eof = 1;
  1903. }
  1904. /** Removes and deletes the top of the stack, if present.
  1905. * The next element becomes the new top.
  1906. * @param yyscanner The scanner object.
  1907. */
  1908. void cmDependsJava_yypop_buffer_state (yyscan_t yyscanner)
  1909. {
  1910. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1911. if (!YY_CURRENT_BUFFER)
  1912. return;
  1913. cmDependsJava_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
  1914. YY_CURRENT_BUFFER_LVALUE = NULL;
  1915. if (yyg->yy_buffer_stack_top > 0)
  1916. --yyg->yy_buffer_stack_top;
  1917. if (YY_CURRENT_BUFFER) {
  1918. cmDependsJava_yy_load_buffer_state(yyscanner );
  1919. yyg->yy_did_buffer_switch_on_eof = 1;
  1920. }
  1921. }
  1922. /* Allocates the stack if it does not exist.
  1923. * Guarantees space for at least one push.
  1924. */
  1925. static void cmDependsJava_yyensure_buffer_stack (yyscan_t yyscanner)
  1926. {
  1927. int num_to_alloc;
  1928. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1929. if (!yyg->yy_buffer_stack) {
  1930. /* First allocation is just for 2 elements, since we don't know if this
  1931. * scanner will even need a stack. We use 2 instead of 1 to avoid an
  1932. * immediate realloc on the next call.
  1933. */
  1934. num_to_alloc = 1;
  1935. yyg->yy_buffer_stack = (struct yy_buffer_state**)cmDependsJava_yyalloc
  1936. (num_to_alloc * sizeof(struct yy_buffer_state*)
  1937. , yyscanner);
  1938. memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  1939. yyg->yy_buffer_stack_max = num_to_alloc;
  1940. yyg->yy_buffer_stack_top = 0;
  1941. return;
  1942. }
  1943. if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
  1944. /* Increase the buffer to prepare for a possible push. */
  1945. int grow_size = 8 /* arbitrary grow size */;
  1946. num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
  1947. yyg->yy_buffer_stack = (struct yy_buffer_state**)cmDependsJava_yyrealloc
  1948. (yyg->yy_buffer_stack,
  1949. num_to_alloc * sizeof(struct yy_buffer_state*)
  1950. , yyscanner);
  1951. /* zero only the new slots.*/
  1952. memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
  1953. yyg->yy_buffer_stack_max = num_to_alloc;
  1954. }
  1955. }
  1956. /** Setup the input buffer state to scan directly from a user-specified character buffer.
  1957. * @param base the character buffer
  1958. * @param size the size in bytes of the character buffer
  1959. * @param yyscanner The scanner object.
  1960. * @return the newly allocated buffer state object.
  1961. */
  1962. YY_BUFFER_STATE cmDependsJava_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
  1963. {
  1964. YY_BUFFER_STATE b;
  1965. if ( size < 2 ||
  1966. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1967. base[size-1] != YY_END_OF_BUFFER_CHAR )
  1968. /* They forgot to leave room for the EOB's. */
  1969. return 0;
  1970. b = (YY_BUFFER_STATE) cmDependsJava_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
  1971. if ( ! b )
  1972. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_scan_buffer()" );
  1973. b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  1974. b->yy_buf_pos = b->yy_ch_buf = base;
  1975. b->yy_is_our_buffer = 0;
  1976. b->yy_input_file = 0;
  1977. b->yy_n_chars = b->yy_buf_size;
  1978. b->yy_is_interactive = 0;
  1979. b->yy_at_bol = 1;
  1980. b->yy_fill_buffer = 0;
  1981. b->yy_buffer_status = YY_BUFFER_NEW;
  1982. cmDependsJava_yy_switch_to_buffer(b ,yyscanner );
  1983. return b;
  1984. }
  1985. /** Setup the input buffer state to scan a string. The next call to cmDependsJava_yylex() will
  1986. * scan from a @e copy of @a str.
  1987. * @param str a NUL-terminated string to scan
  1988. * @param yyscanner The scanner object.
  1989. * @return the newly allocated buffer state object.
  1990. * @note If you want to scan bytes that may contain NUL values, then use
  1991. * cmDependsJava_yy_scan_bytes() instead.
  1992. */
  1993. YY_BUFFER_STATE cmDependsJava_yy_scan_string (yyconst char * yy_str , yyscan_t yyscanner)
  1994. {
  1995. return cmDependsJava_yy_scan_bytes(yy_str,strlen(yy_str) ,yyscanner);
  1996. }
  1997. /** Setup the input buffer state to scan the given bytes. The next call to cmDependsJava_yylex() will
  1998. * scan from a @e copy of @a bytes.
  1999. * @param bytes the byte buffer to scan
  2000. * @param len the number of bytes in the buffer pointed to by @a bytes.
  2001. * @param yyscanner The scanner object.
  2002. * @return the newly allocated buffer state object.
  2003. */
  2004. YY_BUFFER_STATE cmDependsJava_yy_scan_bytes (yyconst char * bytes, int len , yyscan_t yyscanner)
  2005. {
  2006. YY_BUFFER_STATE b;
  2007. char *buf;
  2008. yy_size_t n;
  2009. int i;
  2010. /* Get memory for full buffer, including space for trailing EOB's. */
  2011. n = len + 2;
  2012. buf = (char *) cmDependsJava_yyalloc(n ,yyscanner );
  2013. if ( ! buf )
  2014. YY_FATAL_ERROR( "out of dynamic memory in cmDependsJava_yy_scan_bytes()" );
  2015. for ( i = 0; i < len; ++i )
  2016. buf[i] = bytes[i];
  2017. buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
  2018. b = cmDependsJava_yy_scan_buffer(buf,n ,yyscanner);
  2019. if ( ! b )
  2020. YY_FATAL_ERROR( "bad buffer in cmDependsJava_yy_scan_bytes()" );
  2021. /* It's okay to grow etc. this buffer, and we should throw it
  2022. * away when we're done.
  2023. */
  2024. b->yy_is_our_buffer = 1;
  2025. return b;
  2026. }
  2027. #ifndef YY_EXIT_FAILURE
  2028. #define YY_EXIT_FAILURE 2
  2029. #endif
  2030. static void yy_fatal_error (yyconst char* msg , yyscan_t)
  2031. {
  2032. (void) fprintf( stderr, "%s\n", msg );
  2033. exit( YY_EXIT_FAILURE );
  2034. }
  2035. /* Redefine yyless() so it works in section 3 code. */
  2036. #undef yyless
  2037. #define yyless(n) \
  2038. do \
  2039. { \
  2040. /* Undo effects of setting up yytext. */ \
  2041. int yyless_macro_arg = (n); \
  2042. YY_LESS_LINENO(yyless_macro_arg);\
  2043. yytext[yyleng] = yyg->yy_hold_char; \
  2044. yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
  2045. yyg->yy_hold_char = *yyg->yy_c_buf_p; \
  2046. *yyg->yy_c_buf_p = '\0'; \
  2047. yyleng = yyless_macro_arg; \
  2048. } \
  2049. while ( 0 )
  2050. /* Accessor methods (get/set functions) to struct members. */
  2051. /** Get the user-defined data for this scanner.
  2052. * @param yyscanner The scanner object.
  2053. */
  2054. YY_EXTRA_TYPE cmDependsJava_yyget_extra (yyscan_t yyscanner)
  2055. {
  2056. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2057. return yyextra;
  2058. }
  2059. /** Get the current line number.
  2060. * @param yyscanner The scanner object.
  2061. */
  2062. int cmDependsJava_yyget_lineno (yyscan_t yyscanner)
  2063. {
  2064. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2065. if (! YY_CURRENT_BUFFER)
  2066. return 0;
  2067. return yylineno;
  2068. }
  2069. /** Get the current column number.
  2070. * @param yyscanner The scanner object.
  2071. */
  2072. int cmDependsJava_yyget_column (yyscan_t yyscanner)
  2073. {
  2074. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2075. if (! YY_CURRENT_BUFFER)
  2076. return 0;
  2077. return yycolumn;
  2078. }
  2079. /** Get the input stream.
  2080. * @param yyscanner The scanner object.
  2081. */
  2082. FILE *cmDependsJava_yyget_in (yyscan_t yyscanner)
  2083. {
  2084. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2085. return yyin;
  2086. }
  2087. /** Get the output stream.
  2088. * @param yyscanner The scanner object.
  2089. */
  2090. FILE *cmDependsJava_yyget_out (yyscan_t yyscanner)
  2091. {
  2092. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2093. return yyout;
  2094. }
  2095. /** Get the length of the current token.
  2096. * @param yyscanner The scanner object.
  2097. */
  2098. int cmDependsJava_yyget_leng (yyscan_t yyscanner)
  2099. {
  2100. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2101. return yyleng;
  2102. }
  2103. /** Get the current token.
  2104. * @param yyscanner The scanner object.
  2105. */
  2106. char *cmDependsJava_yyget_text (yyscan_t yyscanner)
  2107. {
  2108. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2109. return yytext;
  2110. }
  2111. /** Set the user-defined data. This data is never touched by the scanner.
  2112. * @param user_defined The data to be associated with this scanner.
  2113. * @param yyscanner The scanner object.
  2114. */
  2115. void cmDependsJava_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
  2116. {
  2117. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2118. yyextra = user_defined ;
  2119. }
  2120. /** Set the current line number.
  2121. * @param line_number
  2122. * @param yyscanner The scanner object.
  2123. */
  2124. void cmDependsJava_yyset_lineno (int line_number , yyscan_t yyscanner)
  2125. {
  2126. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2127. /* lineno is only valid if an input buffer exists. */
  2128. if (! YY_CURRENT_BUFFER )
  2129. yy_fatal_error( "cmDependsJava_yyset_lineno called with no buffer" , yyscanner);
  2130. yylineno = line_number;
  2131. }
  2132. /** Set the current column.
  2133. * @param line_number
  2134. * @param yyscanner The scanner object.
  2135. */
  2136. void cmDependsJava_yyset_column (int column_no , yyscan_t yyscanner)
  2137. {
  2138. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2139. /* column is only valid if an input buffer exists. */
  2140. if (! YY_CURRENT_BUFFER )
  2141. yy_fatal_error( "cmDependsJava_yyset_column called with no buffer" , yyscanner);
  2142. yycolumn = column_no;
  2143. }
  2144. /** Set the input stream. This does not discard the current
  2145. * input buffer.
  2146. * @param in_str A readable stream.
  2147. * @param yyscanner The scanner object.
  2148. * @see cmDependsJava_yy_switch_to_buffer
  2149. */
  2150. void cmDependsJava_yyset_in (FILE * in_str , yyscan_t yyscanner)
  2151. {
  2152. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2153. yyin = in_str ;
  2154. }
  2155. void cmDependsJava_yyset_out (FILE * out_str , yyscan_t yyscanner)
  2156. {
  2157. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2158. yyout = out_str ;
  2159. }
  2160. int cmDependsJava_yyget_debug (yyscan_t yyscanner)
  2161. {
  2162. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2163. return yy_flex_debug;
  2164. }
  2165. void cmDependsJava_yyset_debug (int bdebug , yyscan_t yyscanner)
  2166. {
  2167. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2168. yy_flex_debug = bdebug ;
  2169. }
  2170. /* Accessor methods for yylval and yylloc */
  2171. static int yy_init_globals (yyscan_t yyscanner)
  2172. {
  2173. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2174. /* Initialization is the same as for the non-reentrant scanner.
  2175. This function is called once per scanner lifetime. */
  2176. yyg->yy_buffer_stack = 0;
  2177. yyg->yy_buffer_stack_top = 0;
  2178. yyg->yy_buffer_stack_max = 0;
  2179. yyg->yy_c_buf_p = (char *) 0;
  2180. yyg->yy_init = 1;
  2181. yyg->yy_start = 0;
  2182. yyg->yy_start_stack_ptr = 0;
  2183. yyg->yy_start_stack_depth = 0;
  2184. yyg->yy_start_stack = (int *) 0;
  2185. /* Defined in main.c */
  2186. #ifdef YY_STDINIT
  2187. yyin = stdin;
  2188. yyout = stdout;
  2189. #else
  2190. yyin = (FILE *) 0;
  2191. yyout = (FILE *) 0;
  2192. #endif
  2193. /* For future reference: Set errno on error, since we are called by
  2194. * cmDependsJava_yylex_init()
  2195. */
  2196. return 0;
  2197. }
  2198. /* User-visible API */
  2199. /* cmDependsJava_yylex_init is special because it creates the scanner itself, so it is
  2200. * the ONLY reentrant function that doesn't take the scanner as the last argument.
  2201. * That's why we explicitly handle the declaration, instead of using our macros.
  2202. */
  2203. int cmDependsJava_yylex_init(yyscan_t* ptr_yy_globals)
  2204. {
  2205. if (ptr_yy_globals == NULL){
  2206. errno = EINVAL;
  2207. return 1;
  2208. }
  2209. *ptr_yy_globals = (yyscan_t) cmDependsJava_yyalloc ( sizeof( struct yyguts_t ), NULL );
  2210. if (*ptr_yy_globals == NULL){
  2211. errno = ENOMEM;
  2212. return 1;
  2213. }
  2214. memset(*ptr_yy_globals,0,sizeof(struct yyguts_t));
  2215. return yy_init_globals ( *ptr_yy_globals );
  2216. }
  2217. /* cmDependsJava_yylex_destroy is for both reentrant and non-reentrant scanners. */
  2218. int cmDependsJava_yylex_destroy (yyscan_t yyscanner)
  2219. {
  2220. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2221. /* Pop the buffer stack, destroying each element. */
  2222. while(YY_CURRENT_BUFFER){
  2223. cmDependsJava_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
  2224. YY_CURRENT_BUFFER_LVALUE = NULL;
  2225. cmDependsJava_yypop_buffer_state(yyscanner);
  2226. }
  2227. /* Destroy the stack itself. */
  2228. cmDependsJava_yyfree(yyg->yy_buffer_stack ,yyscanner);
  2229. yyg->yy_buffer_stack = NULL;
  2230. /* Destroy the start condition stack. */
  2231. cmDependsJava_yyfree(yyg->yy_start_stack ,yyscanner );
  2232. yyg->yy_start_stack = NULL;
  2233. /* Destroy the main struct (reentrant only). */
  2234. cmDependsJava_yyfree ( yyscanner , yyscanner );
  2235. return 0;
  2236. }
  2237. /*
  2238. * Internal utility routines.
  2239. */
  2240. #ifndef yytext_ptr
  2241. static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
  2242. {
  2243. register int i;
  2244. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2245. for ( i = 0; i < n; ++i )
  2246. s1[i] = s2[i];
  2247. }
  2248. #endif
  2249. #ifdef YY_NEED_STRLEN
  2250. static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
  2251. {
  2252. register int n;
  2253. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2254. for ( n = 0; s[n]; ++n )
  2255. ;
  2256. return n;
  2257. }
  2258. #endif
  2259. void *cmDependsJava_yyalloc (yy_size_t size , yyscan_t)
  2260. {
  2261. return (void *) malloc( size );
  2262. }
  2263. void *cmDependsJava_yyrealloc (void * ptr, yy_size_t size , yyscan_t)
  2264. {
  2265. /* The cast to (char *) in the following accommodates both
  2266. * implementations that use char* generic pointers, and those
  2267. * that use void* generic pointers. It works with the latter
  2268. * because both ANSI C and C++ allow castless assignment from
  2269. * any pointer type to void*, and deal with argument conversions
  2270. * as though doing an assignment.
  2271. */
  2272. return (void *) realloc( (char *) ptr, size );
  2273. }
  2274. void cmDependsJava_yyfree (void * ptr , yyscan_t)
  2275. {
  2276. free( (char *) ptr ); /* see cmDependsJava_yyrealloc() for (char *) cast */
  2277. }
  2278. #define YYTABLES_NAME "yytables"
  2279. #undef YY_NEW_FILE
  2280. #undef YY_FLUSH_BUFFER
  2281. #undef yy_set_bol
  2282. #undef yy_new_buffer
  2283. #undef yy_set_interactive
  2284. #undef yytext_ptr
  2285. #undef YY_DO_BEFORE_ACTION
  2286. #ifdef YY_DECL_IS_OURS
  2287. #undef YY_DECL_IS_OURS
  2288. #undef YY_DECL
  2289. #endif
  2290. #line 214 "cmDependsJavaLexer.in.l"