cmDependsJavaLexer.cxx 79 KB

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