cmDependsJavaLexer.cxx 77 KB

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