cmDependsJavaLexer.cxx 76 KB

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