cmDependsJavaLexer.cxx 76 KB

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