cmDependsJavaLexer.cxx 75 KB

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