cmDependsJavaLexer.cxx 76 KB

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