BsLexerFX.c 103 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606
  1. #line 2 "BsLexerFX.c"
  2. #line 4 "BsLexerFX.c"
  3. #define YY_INT_ALIGNED short int
  4. /* A lexical scanner generated by flex */
  5. /* %not-for-header */
  6. /* %if-c-only */
  7. /* %if-not-reentrant */
  8. /* %endif */
  9. /* %endif */
  10. /* %ok-for-header */
  11. #define FLEX_SCANNER
  12. #define YY_FLEX_MAJOR_VERSION 2
  13. #define YY_FLEX_MINOR_VERSION 5
  14. #define YY_FLEX_SUBMINOR_VERSION 37
  15. #if YY_FLEX_SUBMINOR_VERSION > 0
  16. #define FLEX_BETA
  17. #endif
  18. /* %if-c++-only */
  19. /* %endif */
  20. /* %if-c-only */
  21. /* %endif */
  22. /* %if-c-only */
  23. /* %endif */
  24. /* First, we deal with platform-specific or compiler-specific issues. */
  25. /* begin standard C headers. */
  26. /* %if-c-only */
  27. #include <stdio.h>
  28. #include <string.h>
  29. #include <errno.h>
  30. #include <stdlib.h>
  31. /* %endif */
  32. /* %if-tables-serialization */
  33. /* %endif */
  34. /* end standard C headers. */
  35. /* %if-c-or-c++ */
  36. /* flex integer type definitions */
  37. #ifndef FLEXINT_H
  38. #define FLEXINT_H
  39. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  40. #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  41. /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  42. * if you want the limit (max/min) macros for int types.
  43. */
  44. #ifndef __STDC_LIMIT_MACROS
  45. #define __STDC_LIMIT_MACROS 1
  46. #endif
  47. #include <inttypes.h>
  48. typedef int8_t flex_int8_t;
  49. typedef uint8_t flex_uint8_t;
  50. typedef int16_t flex_int16_t;
  51. typedef uint16_t flex_uint16_t;
  52. typedef int32_t flex_int32_t;
  53. typedef uint32_t flex_uint32_t;
  54. #else
  55. typedef signed char flex_int8_t;
  56. typedef short int flex_int16_t;
  57. typedef int flex_int32_t;
  58. typedef unsigned char flex_uint8_t;
  59. typedef unsigned short int flex_uint16_t;
  60. typedef unsigned int flex_uint32_t;
  61. /* Limits of integral types. */
  62. #ifndef INT8_MIN
  63. #define INT8_MIN (-128)
  64. #endif
  65. #ifndef INT16_MIN
  66. #define INT16_MIN (-32767-1)
  67. #endif
  68. #ifndef INT32_MIN
  69. #define INT32_MIN (-2147483647-1)
  70. #endif
  71. #ifndef INT8_MAX
  72. #define INT8_MAX (127)
  73. #endif
  74. #ifndef INT16_MAX
  75. #define INT16_MAX (32767)
  76. #endif
  77. #ifndef INT32_MAX
  78. #define INT32_MAX (2147483647)
  79. #endif
  80. #ifndef UINT8_MAX
  81. #define UINT8_MAX (255U)
  82. #endif
  83. #ifndef UINT16_MAX
  84. #define UINT16_MAX (65535U)
  85. #endif
  86. #ifndef UINT32_MAX
  87. #define UINT32_MAX (4294967295U)
  88. #endif
  89. #endif /* ! C99 */
  90. #endif /* ! FLEXINT_H */
  91. /* %endif */
  92. /* %if-c++-only */
  93. /* %endif */
  94. #ifdef __cplusplus
  95. /* The "const" storage-class-modifier is valid. */
  96. #define YY_USE_CONST
  97. #else /* ! __cplusplus */
  98. /* C99 requires __STDC__ to be defined as 1. */
  99. #if defined (__STDC__)
  100. #define YY_USE_CONST
  101. #endif /* defined (__STDC__) */
  102. #endif /* ! __cplusplus */
  103. #ifdef YY_USE_CONST
  104. #define yyconst const
  105. #else
  106. #define yyconst
  107. #endif
  108. /* %not-for-header */
  109. /* Returned upon end-of-file. */
  110. #define YY_NULL 0
  111. /* %ok-for-header */
  112. /* %not-for-header */
  113. /* Promotes a possibly negative, possibly signed char to an unsigned
  114. * integer for use as an array index. If the signed char is negative,
  115. * we want to instead treat it as an 8-bit unsigned char, hence the
  116. * double cast.
  117. */
  118. #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  119. /* %ok-for-header */
  120. /* %if-reentrant */
  121. /* An opaque pointer. */
  122. #ifndef YY_TYPEDEF_YY_SCANNER_T
  123. #define YY_TYPEDEF_YY_SCANNER_T
  124. typedef void* yyscan_t;
  125. #endif
  126. /* For convenience, these vars (plus the bison vars far below)
  127. are macros in the reentrant scanner. */
  128. #define yyin yyg->yyin_r
  129. #define yyout yyg->yyout_r
  130. #define yyextra yyg->yyextra_r
  131. #define yyleng yyg->yyleng_r
  132. #define yytext yyg->yytext_r
  133. #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  134. #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  135. #define yy_flex_debug yyg->yy_flex_debug_r
  136. /* %endif */
  137. /* %if-not-reentrant */
  138. /* %endif */
  139. /* Enter a start condition. This macro really ought to take a parameter,
  140. * but we do it the disgusting crufty way forced on us by the ()-less
  141. * definition of BEGIN.
  142. */
  143. #define BEGIN yyg->yy_start = 1 + 2 *
  144. /* Translate the current start state into a value that can be later handed
  145. * to BEGIN to return to the state. The YYSTATE alias is for lex
  146. * compatibility.
  147. */
  148. #define YY_START ((yyg->yy_start - 1) / 2)
  149. #define YYSTATE YY_START
  150. /* Action number for EOF rule of a given start state. */
  151. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  152. /* Special action meaning "start processing a new file". */
  153. #define YY_NEW_FILE yyrestart(yyin ,yyscanner )
  154. #define YY_END_OF_BUFFER_CHAR 0
  155. /* Size of default input buffer. */
  156. #ifndef YY_BUF_SIZE
  157. #define YY_BUF_SIZE 16384
  158. #endif
  159. /* The state buf must be large enough to hold one state per character in the main buffer.
  160. */
  161. #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  162. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  163. #define YY_TYPEDEF_YY_BUFFER_STATE
  164. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  165. #endif
  166. #ifndef YY_TYPEDEF_YY_SIZE_T
  167. #define YY_TYPEDEF_YY_SIZE_T
  168. typedef size_t yy_size_t;
  169. #endif
  170. /* %if-not-reentrant */
  171. /* %endif */
  172. /* %if-c-only */
  173. /* %if-not-reentrant */
  174. /* %endif */
  175. /* %endif */
  176. #define EOB_ACT_CONTINUE_SCAN 0
  177. #define EOB_ACT_END_OF_FILE 1
  178. #define EOB_ACT_LAST_MATCH 2
  179. /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
  180. * access to the local variable yy_act. Since yyless() is a macro, it would break
  181. * existing scanners that call yyless() from OUTSIDE yylex.
  182. * One obvious solution it to make yy_act a global. I tried that, and saw
  183. * a 5% performance hit in a non-yylineno scanner, because yy_act is
  184. * normally declared as a register variable-- so it is not worth it.
  185. */
  186. #define YY_LESS_LINENO(n) \
  187. do { \
  188. int yyl;\
  189. for ( yyl = n; yyl < yyleng; ++yyl )\
  190. if ( yytext[yyl] == '\n' )\
  191. --yylineno;\
  192. }while(0)
  193. /* Return all but the first "n" matched characters back to the input stream. */
  194. #define yyless(n) \
  195. do \
  196. { \
  197. /* Undo effects of setting up yytext. */ \
  198. int yyless_macro_arg = (n); \
  199. YY_LESS_LINENO(yyless_macro_arg);\
  200. *yy_cp = yyg->yy_hold_char; \
  201. YY_RESTORE_YY_MORE_OFFSET \
  202. yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  203. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  204. } \
  205. while ( 0 )
  206. #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
  207. #ifndef YY_STRUCT_YY_BUFFER_STATE
  208. #define YY_STRUCT_YY_BUFFER_STATE
  209. struct yy_buffer_state
  210. {
  211. /* %if-c-only */
  212. FILE *yy_input_file;
  213. /* %endif */
  214. /* %if-c++-only */
  215. /* %endif */
  216. char *yy_ch_buf; /* input buffer */
  217. char *yy_buf_pos; /* current position in input buffer */
  218. /* Size of input buffer in bytes, not including room for EOB
  219. * characters.
  220. */
  221. yy_size_t yy_buf_size;
  222. /* Number of characters read into yy_ch_buf, not including EOB
  223. * characters.
  224. */
  225. yy_size_t yy_n_chars;
  226. /* Whether we "own" the buffer - i.e., we know we created it,
  227. * and can realloc() it to grow it, and should free() it to
  228. * delete it.
  229. */
  230. int yy_is_our_buffer;
  231. /* Whether this is an "interactive" input source; if so, and
  232. * if we're using stdio for input, then we want to use getc()
  233. * instead of fread(), to make sure we stop fetching input after
  234. * each newline.
  235. */
  236. int yy_is_interactive;
  237. /* Whether we're considered to be at the beginning of a line.
  238. * If so, '^' rules will be active on the next match, otherwise
  239. * not.
  240. */
  241. int yy_at_bol;
  242. int yy_bs_lineno; /**< The line count. */
  243. int yy_bs_column; /**< The column count. */
  244. /* Whether to try to fill the input buffer when we reach the
  245. * end of it.
  246. */
  247. int yy_fill_buffer;
  248. int yy_buffer_status;
  249. #define YY_BUFFER_NEW 0
  250. #define YY_BUFFER_NORMAL 1
  251. /* When an EOF's been seen but there's still some text to process
  252. * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  253. * shouldn't try reading from the input source any more. We might
  254. * still have a bunch of tokens to match, though, because of
  255. * possible backing-up.
  256. *
  257. * When we actually see the EOF, we change the status to "new"
  258. * (via yyrestart()), so that the user can continue scanning by
  259. * just pointing yyin at a new input file.
  260. */
  261. #define YY_BUFFER_EOF_PENDING 2
  262. };
  263. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  264. /* %if-c-only Standard (non-C++) definition */
  265. /* %not-for-header */
  266. /* %if-not-reentrant */
  267. /* %endif */
  268. /* %ok-for-header */
  269. /* %endif */
  270. /* We provide macros for accessing buffer states in case in the
  271. * future we want to put the buffer states in a more general
  272. * "scanner state".
  273. *
  274. * Returns the top of the stack, or NULL.
  275. */
  276. #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
  277. ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  278. : NULL)
  279. /* Same as previous macro, but useful when we know that the buffer stack is not
  280. * NULL or when we need an lvalue. For internal use only.
  281. */
  282. #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  283. /* %if-c-only Standard (non-C++) definition */
  284. /* %if-not-reentrant */
  285. /* %not-for-header */
  286. /* %ok-for-header */
  287. /* %endif */
  288. void yyrestart (FILE *input_file ,yyscan_t yyscanner );
  289. void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  290. YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
  291. void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  292. void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  293. void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  294. void yypop_buffer_state (yyscan_t yyscanner );
  295. static void yyensure_buffer_stack (yyscan_t yyscanner );
  296. static void yy_load_buffer_state (yyscan_t yyscanner );
  297. static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
  298. #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
  299. YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
  300. YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
  301. YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
  302. /* %endif */
  303. void *yyalloc (yy_size_t ,yyscan_t yyscanner );
  304. void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
  305. void yyfree (void * ,yyscan_t yyscanner );
  306. #define yy_new_buffer yy_create_buffer
  307. #define yy_set_interactive(is_interactive) \
  308. { \
  309. if ( ! YY_CURRENT_BUFFER ){ \
  310. yyensure_buffer_stack (yyscanner); \
  311. YY_CURRENT_BUFFER_LVALUE = \
  312. yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
  313. } \
  314. YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  315. }
  316. #define yy_set_bol(at_bol) \
  317. { \
  318. if ( ! YY_CURRENT_BUFFER ){\
  319. yyensure_buffer_stack (yyscanner); \
  320. YY_CURRENT_BUFFER_LVALUE = \
  321. yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
  322. } \
  323. YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  324. }
  325. #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  326. /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
  327. #define yywrap(yyscanner) 1
  328. #define YY_SKIP_YYWRAP
  329. #define FLEX_DEBUG
  330. typedef unsigned char YY_CHAR;
  331. typedef int yy_state_type;
  332. #define yytext_ptr yytext_r
  333. /* %if-c-only Standard (non-C++) definition */
  334. static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
  335. static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
  336. static int yy_get_next_buffer (yyscan_t yyscanner );
  337. static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
  338. /* %endif */
  339. /* Done after the current pattern has been matched and before the
  340. * corresponding action - sets up yytext.
  341. */
  342. #define YY_DO_BEFORE_ACTION \
  343. yyg->yytext_ptr = yy_bp; \
  344. /* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
  345. yyleng = (size_t) (yy_cp - yy_bp); \
  346. yyg->yy_hold_char = *yy_cp; \
  347. *yy_cp = '\0'; \
  348. /* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
  349. yyg->yy_c_buf_p = yy_cp;
  350. /* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
  351. #define YY_NUM_RULES 167
  352. #define YY_END_OF_BUFFER 168
  353. /* This struct is not used in this scanner,
  354. but its presence is necessary. */
  355. struct yy_trans_info
  356. {
  357. flex_int32_t yy_verify;
  358. flex_int32_t yy_nxt;
  359. };
  360. static yyconst flex_int16_t yy_accept[742] =
  361. { 0,
  362. 1, 1, 168, 166, 1, 1, 166, 166, 2, 2,
  363. 139, 138, 165, 165, 165, 165, 137, 165, 165, 165,
  364. 165, 165, 165, 165, 136, 165, 165, 93, 94, 95,
  365. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  366. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  367. 165, 1, 0, 5, 164, 0, 2, 0, 165, 165,
  368. 165, 165, 145, 165, 165, 165, 165, 165, 165, 165,
  369. 165, 165, 144, 143, 165, 165, 165, 165, 165, 165,
  370. 165, 83, 165, 165, 165, 142, 141, 140, 165, 165,
  371. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  372. 165, 165, 165, 165, 165, 165, 165, 165, 165, 103,
  373. 165, 165, 109, 165, 165, 112, 165, 165, 165, 107,
  374. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  375. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  376. 165, 164, 4, 3, 165, 165, 165, 165, 165, 165,
  377. 165, 165, 165, 165, 165, 165, 165, 165, 165, 149,
  378. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  379. 165, 165, 165, 165, 148, 147, 146, 165, 165, 165,
  380. 165, 165, 165, 165, 165, 165, 165, 165, 130, 165,
  381. 165, 165, 165, 165, 165, 165, 104, 165, 165, 165,
  382. 165, 165, 165, 165, 165, 111, 165, 165, 165, 165,
  383. 108, 165, 134, 133, 165, 110, 165, 165, 121, 165,
  384. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  385. 165, 165, 165, 165, 165, 165, 165, 0, 4, 165,
  386. 165, 165, 165, 165, 165, 165, 165, 56, 165, 82,
  387. 165, 71, 55, 165, 165, 52, 165, 165, 165, 165,
  388. 165, 165, 165, 165, 165, 165, 165, 48, 165, 165,
  389. 150, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  390. 165, 165, 165, 165, 165, 96, 165, 165, 165, 165,
  391. 165, 117, 165, 165, 105, 165, 165, 116, 165, 165,
  392. 165, 113, 165, 165, 165, 165, 165, 165, 165, 165,
  393. 106, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  394. 165, 165, 165, 6, 165, 165, 100, 151, 114, 0,
  395. 4, 165, 165, 79, 77, 165, 165, 78, 165, 165,
  396. 165, 165, 165, 165, 165, 165, 76, 165, 165, 165,
  397. 165, 165, 165, 165, 165, 165, 165, 165, 40, 165,
  398. 165, 165, 165, 165, 165, 165, 165, 165, 165, 72,
  399. 97, 165, 165, 38, 165, 165, 153, 165, 165, 165,
  400. 165, 165, 7, 8, 165, 165, 165, 165, 165, 165,
  401. 165, 165, 165, 165, 165, 165, 156, 165, 165, 165,
  402. 165, 101, 165, 165, 165, 165, 165, 165, 165, 99,
  403. 62, 165, 165, 44, 165, 165, 165, 165, 165, 165,
  404. 165, 53, 165, 165, 165, 165, 165, 165, 165, 165,
  405. 165, 91, 90, 165, 165, 165, 165, 165, 165, 165,
  406. 165, 81, 165, 75, 165, 49, 165, 165, 165, 154,
  407. 165, 165, 165, 165, 165, 165, 9, 10, 11, 165,
  408. 165, 120, 165, 157, 12, 13, 14, 15, 16, 17,
  409. 18, 19, 20, 152, 165, 102, 165, 165, 165, 165,
  410. 165, 98, 165, 165, 162, 165, 165, 165, 165, 165,
  411. 165, 165, 165, 54, 165, 165, 165, 165, 165, 165,
  412. 47, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  413. 165, 165, 165, 60, 165, 66, 165, 165, 165, 165,
  414. 165, 165, 165, 165, 165, 163, 165, 165, 165, 165,
  415. 165, 135, 165, 165, 115, 165, 165, 165, 165, 165,
  416. 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  417. 165, 50, 51, 165, 46, 165, 88, 165, 165, 165,
  418. 165, 165, 41, 45, 165, 165, 165, 165, 165, 165,
  419. 165, 165, 165, 165, 165, 119, 165, 165, 118, 165,
  420. 165, 165, 165, 165, 155, 159, 165, 165, 165, 165,
  421. 165, 127, 123, 165, 131, 165, 165, 165, 165, 165,
  422. 165, 165, 165, 165, 57, 59, 63, 165, 165, 86,
  423. 85, 87, 165, 165, 165, 165, 39, 165, 165, 165,
  424. 42, 80, 165, 165, 165, 165, 126, 122, 165, 165,
  425. 165, 165, 160, 165, 21, 22, 23, 165, 165, 26,
  426. 27, 28, 165, 165, 165, 165, 165, 165, 64, 165,
  427. 89, 165, 43, 165, 165, 165, 165, 165, 165, 165,
  428. 31, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  429. 165, 165, 165, 84, 165, 92, 65, 165, 61, 165,
  430. 165, 165, 165, 165, 158, 165, 165, 165, 165, 165,
  431. 129, 125, 132, 25, 24, 165, 30, 29, 165, 165,
  432. 165, 165, 165, 165, 165, 165, 165, 36, 34, 165,
  433. 128, 124, 32, 165, 165, 165, 165, 70, 165, 165,
  434. 165, 165, 37, 165, 33, 165, 165, 165, 69, 165,
  435. 165, 161, 35, 73, 165, 58, 67, 165, 74, 68,
  436. 0
  437. } ;
  438. static yyconst flex_int32_t yy_ec[256] =
  439. { 0,
  440. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  441. 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
  442. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  443. 1, 2, 1, 4, 1, 1, 1, 1, 1, 1,
  444. 1, 1, 5, 1, 5, 6, 7, 8, 9, 10,
  445. 11, 12, 13, 13, 13, 13, 13, 1, 1, 1,
  446. 1, 1, 1, 1, 14, 15, 16, 17, 18, 19,
  447. 20, 21, 22, 23, 23, 24, 25, 23, 26, 27,
  448. 28, 29, 30, 31, 32, 33, 34, 35, 23, 36,
  449. 1, 1, 1, 1, 23, 1, 37, 38, 39, 40,
  450. 41, 42, 43, 44, 45, 23, 46, 47, 48, 49,
  451. 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
  452. 60, 61, 1, 1, 1, 1, 1, 1, 1, 1,
  453. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  454. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  455. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  456. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  457. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  458. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  459. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  460. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  461. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  462. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  463. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  464. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  465. 1, 1, 1, 1, 1
  466. } ;
  467. static yyconst flex_int32_t yy_meta[62] =
  468. { 0,
  469. 1, 1, 2, 1, 1, 1, 1, 3, 3, 3,
  470. 3, 3, 3, 4, 4, 4, 4, 3, 3, 5,
  471. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  472. 5, 5, 5, 5, 5, 5, 4, 4, 4, 4,
  473. 3, 3, 5, 5, 5, 5, 5, 5, 5, 5,
  474. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  475. 5
  476. } ;
  477. static yyconst flex_int16_t yy_base[747] =
  478. { 0,
  479. 0, 0, 813, 814, 60, 62, 808, 804, 60, 68,
  480. 53, 61, 32, 42, 0, 49, 75, 754, 760, 771,
  481. 54, 756, 48, 750, 83, 65, 68, 0, 764, 751,
  482. 784, 74, 79, 88, 71, 750, 70, 746, 751, 758,
  483. 73, 95, 46, 749, 97, 756, 99, 100, 742, 92,
  484. 754, 148, 790, 814, 0, 153, 161, 0, 0, 769,
  485. 752, 740, 0, 72, 737, 109, 742, 124, 740, 742,
  486. 739, 748, 0, 770, 733, 735, 119, 732, 125, 93,
  487. 733, 0, 123, 734, 737, 0, 763, 165, 727, 144,
  488. 724, 718, 732, 719, 732, 717, 724, 731, 727, 721,
  489. 720, 713, 708, 712, 708, 705, 701, 721, 708, 0,
  490. 94, 707, 0, 138, 705, 713, 143, 712, 703, 710,
  491. 131, 138, 698, 153, 708, 694, 702, 137, 698, 708,
  492. 697, 704, 156, 704, 682, 684, 688, 701, 684, 699,
  493. 682, 0, 178, 0, 689, 680, 688, 682, 691, 689,
  494. 678, 676, 679, 670, 669, 686, 675, 674, 677, 0,
  495. 671, 671, 670, 675, 672, 695, 699, 693, 179, 656,
  496. 673, 655, 658, 651, 0, 0, 692, 665, 657, 649,
  497. 665, 648, 651, 656, 654, 642, 641, 650, 0, 657,
  498. 639, 651, 641, 651, 649, 647, 0, 639, 632, 632,
  499. 629, 646, 635, 627, 643, 0, 626, 161, 627, 636,
  500. 0, 195, 0, 0, 623, 0, 158, 630, 0, 620,
  501. 624, 625, 617, 619, 616, 623, 173, 612, 610, 610,
  502. 609, 622, 621, 618, 619, 608, 608, 213, 814, 608,
  503. 615, 618, 614, 607, 611, 598, 174, 0, 606, 0,
  504. 604, 0, 0, 600, 606, 0, 590, 177, 589, 599,
  505. 594, 597, 596, 192, 603, 594, 590, 0, 584, 595,
  506. 0, 594, 593, 579, 579, 592, 591, 588, 579, 586,
  507. 585, 578, 570, 573, 573, 0, 575, 579, 581, 567,
  508. 561, 558, 194, 567, 0, 573, 558, 554, 570, 557,
  509. 556, 0, 571, 548, 547, 546, 554, 556, 555, 554,
  510. 0, 545, 562, 542, 550, 555, 555, 547, 543, 547,
  511. 552, 537, 533, 0, 548, 546, 0, 0, 0, 230,
  512. 236, 545, 531, 553, 0, 529, 529, 0, 528, 525,
  513. 235, 530, 537, 522, 536, 534, 0, 537, 526, 527,
  514. 524, 523, 510, 519, 516, 512, 524, 519, 0, 510,
  515. 522, 511, 523, 518, 513, 502, 511, 496, 529, 0,
  516. 0, 498, 512, 0, 498, 494, 0, 501, 495, 500,
  517. 496, 500, 0, 242, 491, 489, 487, 502, 487, 246,
  518. 249, 255, 486, 488, 490, 481, 496, 495, 495, 491,
  519. 491, 0, 479, 482, 489, 472, 489, 472, 486, 0,
  520. 0, 469, 472, 0, 505, 479, 478, 473, 470, 475,
  521. 462, 0, 465, 460, 471, 462, 467, 454, 454, 452,
  522. 451, 0, 0, 490, 467, 448, 447, 460, 483, 446,
  523. 460, 0, 450, 0, 444, 0, 458, 441, 455, 0,
  524. 450, 450, 453, 438, 441, 448, 0, 0, 0, 449,
  525. 430, 0, 195, 445, 0, 0, 0, 0, 0, 0,
  526. 0, 0, 0, 0, 430, 0, 441, 433, 439, 424,
  527. 425, 0, 433, 426, 0, 437, 435, 432, 416, 446,
  528. 454, 419, 449, 0, 430, 421, 428, 419, 408, 402,
  529. 0, 421, 419, 418, 408, 416, 415, 410, 406, 412,
  530. 392, 398, 409, 0, 402, 242, 392, 393, 396, 389,
  531. 402, 405, 391, 397, 390, 0, 388, 233, 391, 387,
  532. 388, 0, 382, 383, 0, 380, 264, 395, 378, 374,
  533. 374, 272, 386, 377, 376, 378, 368, 369, 371, 381,
  534. 365, 0, 0, 382, 0, 365, 0, 364, 363, 378,
  535. 363, 360, 0, 0, 361, 370, 359, 368, 355, 366,
  536. 360, 354, 362, 362, 346, 0, 364, 347, 0, 352,
  537. 348, 346, 349, 344, 0, 0, 357, 376, 375, 374,
  538. 358, 0, 0, 347, 0, 371, 370, 369, 353, 342,
  539. 343, 325, 331, 331, 0, 0, 0, 338, 329, 0,
  540. 0, 0, 323, 329, 321, 319, 0, 184, 336, 327,
  541. 0, 0, 326, 328, 316, 326, 0, 0, 316, 319,
  542. 321, 314, 0, 324, 0, 337, 0, 346, 318, 0,
  543. 334, 0, 343, 316, 315, 314, 301, 314, 0, 297,
  544. 0, 310, 0, 306, 312, 295, 307, 291, 306, 303,
  545. 314, 300, 297, 290, 302, 285, 282, 306, 317, 293,
  546. 303, 314, 278, 0, 277, 0, 0, 314, 0, 313,
  547. 288, 276, 300, 283, 284, 269, 287, 279, 282, 265,
  548. 0, 0, 0, 0, 0, 264, 0, 0, 287, 273,
  549. 37, 168, 170, 168, 198, 237, 215, 0, 0, 224,
  550. 0, 0, 250, 250, 242, 245, 250, 0, 234, 236,
  551. 254, 241, 0, 259, 0, 253, 246, 242, 0, 251,
  552. 244, 0, 0, 0, 259, 0, 0, 254, 0, 0,
  553. 814, 300, 303, 308, 311, 299
  554. } ;
  555. static yyconst flex_int16_t yy_def[747] =
  556. { 0,
  557. 741, 1, 741, 741, 741, 741, 742, 741, 741, 741,
  558. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  559. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  560. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  561. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  562. 743, 741, 742, 741, 744, 741, 741, 745, 743, 743,
  563. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  564. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  565. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  566. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  567. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  568. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  569. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  570. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  571. 743, 744, 746, 745, 743, 743, 743, 743, 743, 743,
  572. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  573. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  574. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  575. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  576. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  577. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  578. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  579. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  580. 743, 743, 743, 743, 743, 743, 743, 741, 741, 743,
  581. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  582. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  583. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  584. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  585. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  586. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  587. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  588. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  589. 743, 743, 743, 743, 743, 743, 743, 743, 743, 741,
  590. 741, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  591. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  592. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  593. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  594. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  595. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  596. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  597. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  598. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  599. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  600. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  601. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  602. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  603. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  604. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  605. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  606. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  607. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  608. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  609. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  610. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  611. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  612. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  613. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  614. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  615. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  616. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  617. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  618. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  619. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  620. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  621. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  622. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  623. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  624. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  625. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  626. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  627. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  628. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  629. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  630. 743, 743, 743, 743, 743, 743, 743, 743, 743, 743,
  631. 0, 741, 741, 741, 741, 741
  632. } ;
  633. static yyconst flex_int16_t yy_nxt[876] =
  634. { 0,
  635. 4, 5, 6, 7, 4, 4, 8, 9, 10, 10,
  636. 10, 10, 10, 11, 12, 13, 14, 15, 16, 17,
  637. 18, 19, 15, 20, 21, 22, 23, 24, 25, 26,
  638. 27, 28, 29, 30, 15, 31, 32, 33, 34, 35,
  639. 36, 37, 38, 15, 39, 40, 41, 42, 43, 44,
  640. 45, 15, 46, 47, 48, 49, 15, 50, 15, 15,
  641. 51, 52, 52, 52, 52, 56, 60, 57, 57, 57,
  642. 57, 57, 57, 56, 63, 57, 57, 57, 57, 57,
  643. 57, 66, 68, 716, 83, 70, 123, 67, 73, 74,
  644. 79, 69, 61, 71, 58, 124, 86, 87, 80, 62,
  645. 84, 72, 88, 90, 94, 91, 114, 64, 95, 81,
  646. 65, 111, 148, 99, 92, 75, 115, 119, 58, 93,
  647. 100, 149, 101, 89, 102, 104, 107, 120, 105, 103,
  648. 112, 121, 200, 126, 108, 129, 139, 109, 106, 122,
  649. 135, 168, 130, 169, 140, 110, 127, 201, 131, 52,
  650. 52, 132, 136, 133, 134, 151, 152, 163, 164, 137,
  651. 143, 143, 143, 143, 143, 143, 56, 166, 57, 57,
  652. 57, 57, 57, 57, 154, 171, 172, 155, 176, 177,
  653. 179, 207, 203, 167, 204, 212, 214, 222, 180, 213,
  654. 215, 217, 228, 223, 218, 238, 239, 263, 655, 208,
  655. 299, 300, 656, 264, 304, 305, 306, 308, 229, 318,
  656. 339, 319, 717, 309, 301, 718, 719, 330, 238, 239,
  657. 331, 331, 331, 331, 331, 331, 265, 346, 353, 340,
  658. 380, 529, 381, 530, 720, 347, 354, 331, 331, 331,
  659. 331, 331, 331, 331, 331, 331, 331, 331, 331, 418,
  660. 419, 457, 458, 459, 239, 465, 466, 467, 468, 469,
  661. 470, 721, 722, 420, 471, 472, 473, 567, 421, 580,
  662. 568, 581, 588, 589, 590, 569, 723, 239, 724, 591,
  663. 596, 597, 598, 725, 726, 727, 728, 599, 729, 730,
  664. 731, 732, 733, 734, 735, 736, 737, 738, 739, 740,
  665. 53, 143, 53, 53, 53, 59, 59, 59, 142, 715,
  666. 142, 142, 142, 144, 144, 714, 713, 712, 711, 710,
  667. 709, 708, 707, 706, 705, 704, 703, 702, 701, 700,
  668. 699, 698, 697, 696, 695, 694, 693, 692, 691, 690,
  669. 689, 688, 687, 686, 685, 684, 683, 682, 681, 680,
  670. 679, 678, 677, 676, 675, 674, 673, 672, 671, 670,
  671. 669, 668, 667, 666, 665, 664, 663, 662, 661, 660,
  672. 659, 658, 657, 654, 653, 652, 651, 650, 649, 648,
  673. 647, 646, 645, 644, 643, 642, 641, 640, 639, 638,
  674. 637, 636, 635, 634, 633, 632, 631, 630, 629, 628,
  675. 627, 626, 625, 624, 623, 622, 621, 620, 619, 618,
  676. 617, 616, 615, 614, 613, 612, 611, 610, 609, 608,
  677. 607, 606, 605, 604, 603, 602, 601, 600, 595, 594,
  678. 593, 592, 587, 586, 585, 584, 583, 582, 579, 578,
  679. 577, 576, 575, 574, 573, 572, 571, 570, 566, 565,
  680. 564, 563, 562, 561, 560, 559, 558, 557, 556, 555,
  681. 554, 553, 552, 551, 550, 549, 548, 547, 546, 545,
  682. 544, 543, 542, 541, 540, 539, 538, 537, 536, 535,
  683. 534, 533, 532, 531, 528, 527, 526, 525, 524, 523,
  684. 522, 521, 520, 519, 518, 517, 516, 515, 514, 513,
  685. 512, 511, 510, 509, 508, 507, 506, 505, 504, 503,
  686. 502, 501, 500, 499, 498, 497, 496, 495, 494, 493,
  687. 492, 491, 490, 489, 488, 487, 486, 485, 484, 483,
  688. 482, 481, 480, 479, 478, 477, 476, 475, 474, 464,
  689. 463, 462, 461, 460, 456, 455, 454, 453, 452, 451,
  690. 450, 449, 448, 447, 446, 445, 444, 443, 442, 441,
  691. 440, 439, 438, 437, 436, 435, 434, 433, 432, 431,
  692. 430, 429, 428, 427, 426, 425, 424, 423, 422, 417,
  693. 416, 415, 414, 413, 412, 411, 410, 409, 408, 407,
  694. 406, 405, 404, 403, 402, 401, 400, 399, 398, 397,
  695. 396, 395, 394, 393, 392, 391, 390, 389, 388, 387,
  696. 386, 385, 384, 383, 382, 379, 378, 377, 376, 375,
  697. 374, 373, 372, 371, 370, 369, 368, 367, 366, 365,
  698. 364, 363, 362, 361, 360, 359, 358, 357, 356, 355,
  699. 352, 351, 350, 349, 348, 345, 344, 343, 342, 341,
  700. 338, 337, 336, 335, 334, 333, 332, 329, 328, 327,
  701. 326, 325, 324, 323, 322, 321, 320, 317, 316, 315,
  702. 314, 313, 312, 311, 310, 307, 303, 302, 298, 297,
  703. 296, 295, 294, 293, 292, 291, 290, 289, 288, 287,
  704. 286, 285, 284, 283, 282, 281, 280, 279, 278, 277,
  705. 276, 275, 274, 273, 272, 271, 270, 269, 268, 267,
  706. 266, 262, 261, 260, 259, 258, 257, 256, 255, 254,
  707. 253, 252, 251, 250, 249, 248, 247, 246, 245, 244,
  708. 243, 242, 241, 240, 237, 236, 235, 234, 233, 232,
  709. 231, 230, 227, 226, 225, 224, 221, 220, 219, 216,
  710. 211, 210, 209, 206, 205, 202, 199, 198, 197, 196,
  711. 195, 194, 193, 192, 191, 190, 189, 188, 187, 186,
  712. 185, 184, 183, 182, 181, 178, 175, 174, 173, 170,
  713. 165, 162, 161, 160, 159, 158, 157, 156, 153, 150,
  714. 147, 146, 145, 54, 141, 138, 128, 125, 118, 117,
  715. 116, 113, 98, 97, 96, 85, 82, 78, 77, 76,
  716. 55, 54, 741, 3, 741, 741, 741, 741, 741, 741,
  717. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  718. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  719. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  720. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  721. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  722. 741, 741, 741, 741, 741
  723. } ;
  724. static yyconst flex_int16_t yy_chk[876] =
  725. { 0,
  726. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  727. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  728. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  729. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  730. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  731. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  732. 1, 5, 5, 6, 6, 9, 11, 9, 9, 9,
  733. 9, 9, 9, 10, 12, 10, 10, 10, 10, 10,
  734. 10, 13, 14, 701, 23, 16, 43, 13, 17, 17,
  735. 21, 14, 11, 16, 9, 43, 25, 25, 21, 11,
  736. 23, 16, 25, 26, 27, 26, 37, 12, 27, 21,
  737. 12, 35, 64, 32, 26, 17, 37, 41, 9, 26,
  738. 32, 64, 32, 25, 32, 33, 34, 41, 33, 32,
  739. 35, 42, 111, 45, 34, 47, 50, 34, 33, 42,
  740. 48, 80, 47, 80, 50, 34, 45, 111, 47, 52,
  741. 52, 47, 48, 47, 47, 66, 66, 77, 77, 48,
  742. 56, 56, 56, 56, 56, 56, 57, 79, 57, 57,
  743. 57, 57, 57, 57, 68, 83, 83, 68, 88, 88,
  744. 90, 117, 114, 79, 114, 121, 122, 128, 90, 121,
  745. 122, 124, 133, 128, 124, 143, 143, 169, 618, 117,
  746. 208, 208, 618, 169, 212, 212, 212, 217, 133, 227,
  747. 247, 227, 702, 217, 208, 703, 704, 238, 143, 143,
  748. 238, 238, 238, 238, 238, 238, 169, 258, 264, 247,
  749. 293, 463, 293, 463, 705, 258, 264, 330, 330, 330,
  750. 330, 330, 330, 331, 331, 331, 331, 331, 331, 341,
  751. 341, 384, 384, 384, 331, 390, 390, 390, 391, 391,
  752. 391, 706, 707, 341, 392, 392, 392, 516, 341, 528,
  753. 516, 528, 537, 537, 537, 516, 710, 331, 713, 537,
  754. 542, 542, 542, 714, 715, 716, 717, 542, 719, 720,
  755. 721, 722, 724, 726, 727, 728, 730, 731, 735, 738,
  756. 742, 746, 742, 742, 742, 743, 743, 743, 744, 700,
  757. 744, 744, 744, 745, 745, 699, 696, 690, 689, 688,
  758. 687, 686, 685, 684, 683, 682, 681, 680, 678, 675,
  759. 673, 672, 671, 670, 669, 668, 667, 666, 665, 664,
  760. 663, 662, 661, 660, 659, 658, 657, 656, 655, 654,
  761. 652, 650, 648, 647, 646, 645, 644, 643, 641, 639,
  762. 638, 636, 634, 632, 631, 630, 629, 626, 625, 624,
  763. 623, 620, 619, 616, 615, 614, 613, 609, 608, 604,
  764. 603, 602, 601, 600, 599, 598, 597, 596, 594, 591,
  765. 590, 589, 588, 587, 584, 583, 582, 581, 580, 578,
  766. 577, 575, 574, 573, 572, 571, 570, 569, 568, 567,
  767. 566, 565, 562, 561, 560, 559, 558, 556, 554, 551,
  768. 550, 549, 548, 547, 546, 545, 544, 543, 541, 540,
  769. 539, 538, 536, 534, 533, 531, 530, 529, 527, 525,
  770. 524, 523, 522, 521, 520, 519, 518, 517, 515, 513,
  771. 512, 511, 510, 509, 508, 507, 506, 505, 504, 503,
  772. 502, 500, 499, 498, 497, 496, 495, 493, 492, 491,
  773. 490, 489, 488, 487, 486, 484, 483, 481, 480, 479,
  774. 478, 477, 475, 464, 461, 460, 456, 455, 454, 453,
  775. 452, 451, 449, 448, 447, 445, 443, 441, 440, 439,
  776. 438, 437, 436, 435, 434, 431, 430, 429, 428, 427,
  777. 426, 425, 424, 423, 421, 420, 419, 418, 417, 416,
  778. 415, 413, 412, 409, 408, 407, 406, 405, 404, 403,
  779. 401, 400, 399, 398, 397, 396, 395, 394, 393, 389,
  780. 388, 387, 386, 385, 382, 381, 380, 379, 378, 376,
  781. 375, 373, 372, 369, 368, 367, 366, 365, 364, 363,
  782. 362, 361, 360, 358, 357, 356, 355, 354, 353, 352,
  783. 351, 350, 349, 348, 346, 345, 344, 343, 342, 340,
  784. 339, 337, 336, 334, 333, 332, 326, 325, 323, 322,
  785. 321, 320, 319, 318, 317, 316, 315, 314, 313, 312,
  786. 310, 309, 308, 307, 306, 305, 304, 303, 301, 300,
  787. 299, 298, 297, 296, 294, 292, 291, 290, 289, 288,
  788. 287, 285, 284, 283, 282, 281, 280, 279, 278, 277,
  789. 276, 275, 274, 273, 272, 270, 269, 267, 266, 265,
  790. 263, 262, 261, 260, 259, 257, 255, 254, 251, 249,
  791. 246, 245, 244, 243, 242, 241, 240, 237, 236, 235,
  792. 234, 233, 232, 231, 230, 229, 228, 226, 225, 224,
  793. 223, 222, 221, 220, 218, 215, 210, 209, 207, 205,
  794. 204, 203, 202, 201, 200, 199, 198, 196, 195, 194,
  795. 193, 192, 191, 190, 188, 187, 186, 185, 184, 183,
  796. 182, 181, 180, 179, 178, 177, 174, 173, 172, 171,
  797. 170, 168, 167, 166, 165, 164, 163, 162, 161, 159,
  798. 158, 157, 156, 155, 154, 153, 152, 151, 150, 149,
  799. 148, 147, 146, 145, 141, 140, 139, 138, 137, 136,
  800. 135, 134, 132, 131, 130, 129, 127, 126, 125, 123,
  801. 120, 119, 118, 116, 115, 112, 109, 108, 107, 106,
  802. 105, 104, 103, 102, 101, 100, 99, 98, 97, 96,
  803. 95, 94, 93, 92, 91, 89, 87, 85, 84, 81,
  804. 78, 76, 75, 74, 72, 71, 70, 69, 67, 65,
  805. 62, 61, 60, 53, 51, 49, 46, 44, 40, 39,
  806. 38, 36, 31, 30, 29, 24, 22, 20, 19, 18,
  807. 8, 7, 3, 741, 741, 741, 741, 741, 741, 741,
  808. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  809. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  810. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  811. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  812. 741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
  813. 741, 741, 741, 741, 741
  814. } ;
  815. /* Table of booleans, true if rule could match eol. */
  816. static yyconst flex_int32_t yy_rule_can_match_eol[168] =
  817. { 0,
  818. 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  819. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  820. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  821. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  822. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  823. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  824. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  825. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  826. 0, 0, 0, 0, 0, 0, 0, 0, };
  827. static yyconst flex_int16_t yy_rule_linenum[167] =
  828. { 0,
  829. 23, 24, 25, 26, 27, 28, 29, 33, 34, 35,
  830. 36, 38, 39, 40, 42, 43, 44, 46, 47, 48,
  831. 50, 51, 52, 53, 54, 56, 57, 58, 59, 60,
  832. 62, 63, 65, 66, 67, 68, 69, 71, 74, 75,
  833. 76, 77, 78, 79, 82, 83, 84, 85, 88, 89,
  834. 90, 91, 92, 93, 96, 97, 98, 99, 100, 101,
  835. 102, 103, 106, 107, 108, 109, 110, 111, 112, 113,
  836. 114, 115, 118, 119, 120, 121, 122, 123, 124, 125,
  837. 126, 127, 128, 131, 132, 133, 134, 135, 136, 137,
  838. 138, 139, 140, 141, 142, 145, 146, 147, 148, 151,
  839. 152, 154, 155, 156, 158, 159, 160, 161, 162, 163,
  840. 164, 165, 167, 168, 169, 170, 171, 172, 173, 174,
  841. 175, 176, 177, 178, 179, 180, 181, 182, 183, 185,
  842. 186, 187, 188, 189, 191, 192, 193, 194, 195, 196,
  843. 197, 198, 199, 200, 201, 202, 203, 204, 205, 206,
  844. 208, 209, 210, 211, 213, 214, 215, 216, 217, 218,
  845. 219, 221, 222, 224, 225, 226
  846. } ;
  847. /* The intent behind this definition is that it'll catch
  848. * any uses of REJECT which flex missed.
  849. */
  850. #define REJECT reject_used_but_not_detected
  851. #define yymore() yymore_used_but_not_detected
  852. #define YY_MORE_ADJ 0
  853. #define YY_RESTORE_YY_MORE_OFFSET
  854. #line 1 "BsLexerFX.l"
  855. #line 2 "BsLexerFX.l"
  856. #include "BsParserFX.h"
  857. #define YY_USER_ACTION yylloc->first_column = yycolumn + 1; yylloc->first_line = yylineno + 1; yycolumn += (int)yyleng;
  858. #define YY_USER_INIT yylineno = 0; yycolumn = 0;
  859. #define YY_NO_UNISTD_H 1
  860. #line 1010 "BsLexerFX.c"
  861. #define INITIAL 0
  862. /*windows compatibility case*/
  863. #include <io.h>
  864. #define isatty _isatty
  865. #define fileno _fileno
  866. #define YY_EXTRA_TYPE struct tagParseState *
  867. /* %if-c-only Reentrant structure and macros (non-C++). */
  868. /* %if-reentrant */
  869. /* Holds the entire state of the reentrant scanner. */
  870. struct yyguts_t
  871. {
  872. /* User-defined. Not touched by flex. */
  873. YY_EXTRA_TYPE yyextra_r;
  874. /* The rest are the same as the globals declared in the non-reentrant scanner. */
  875. FILE *yyin_r, *yyout_r;
  876. size_t yy_buffer_stack_top; /**< index of top of stack. */
  877. size_t yy_buffer_stack_max; /**< capacity of stack. */
  878. YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
  879. char yy_hold_char;
  880. yy_size_t yy_n_chars;
  881. yy_size_t yyleng_r;
  882. char *yy_c_buf_p;
  883. int yy_init;
  884. int yy_start;
  885. int yy_did_buffer_switch_on_eof;
  886. int yy_start_stack_ptr;
  887. int yy_start_stack_depth;
  888. int *yy_start_stack;
  889. yy_state_type yy_last_accepting_state;
  890. char* yy_last_accepting_cpos;
  891. int yylineno_r;
  892. int yy_flex_debug_r;
  893. char *yytext_r;
  894. int yy_more_flag;
  895. int yy_more_len;
  896. YYSTYPE * yylval_r;
  897. YYLTYPE * yylloc_r;
  898. }; /* end struct yyguts_t */
  899. /* %if-c-only */
  900. static int yy_init_globals (yyscan_t yyscanner );
  901. /* %endif */
  902. /* %if-reentrant */
  903. /* This must go here because YYSTYPE and YYLTYPE are included
  904. * from bison output in section 1.*/
  905. # define yylval yyg->yylval_r
  906. # define yylloc yyg->yylloc_r
  907. int yylex_init (yyscan_t* scanner);
  908. int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
  909. /* %endif */
  910. /* %endif End reentrant structures and macros. */
  911. /* Accessor methods to globals.
  912. These are made visible to non-reentrant scanners for convenience. */
  913. int yylex_destroy (yyscan_t yyscanner );
  914. int yyget_debug (yyscan_t yyscanner );
  915. void yyset_debug (int debug_flag ,yyscan_t yyscanner );
  916. YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
  917. void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
  918. FILE *yyget_in (yyscan_t yyscanner );
  919. void yyset_in (FILE * in_str ,yyscan_t yyscanner );
  920. FILE *yyget_out (yyscan_t yyscanner );
  921. void yyset_out (FILE * out_str ,yyscan_t yyscanner );
  922. yy_size_t yyget_leng (yyscan_t yyscanner );
  923. char *yyget_text (yyscan_t yyscanner );
  924. int yyget_lineno (yyscan_t yyscanner );
  925. void yyset_lineno (int line_number ,yyscan_t yyscanner );
  926. int yyget_column (yyscan_t yyscanner );
  927. void yyset_column (int column_no ,yyscan_t yyscanner );
  928. /* %if-bison-bridge */
  929. YYSTYPE * yyget_lval (yyscan_t yyscanner );
  930. void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
  931. YYLTYPE *yyget_lloc (yyscan_t yyscanner );
  932. void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
  933. /* %endif */
  934. /* Macros after this point can all be overridden by user definitions in
  935. * section 1.
  936. */
  937. #ifndef YY_SKIP_YYWRAP
  938. #ifdef __cplusplus
  939. extern "C" int yywrap (yyscan_t yyscanner );
  940. #else
  941. extern int yywrap (yyscan_t yyscanner );
  942. #endif
  943. #endif
  944. /* %not-for-header */
  945. static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
  946. /* %ok-for-header */
  947. /* %endif */
  948. #ifndef yytext_ptr
  949. static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
  950. #endif
  951. #ifdef YY_NEED_STRLEN
  952. static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
  953. #endif
  954. #ifndef YY_NO_INPUT
  955. /* %if-c-only Standard (non-C++) definition */
  956. /* %not-for-header */
  957. #ifdef __cplusplus
  958. static int yyinput (yyscan_t yyscanner );
  959. #else
  960. static int input (yyscan_t yyscanner );
  961. #endif
  962. /* %ok-for-header */
  963. /* %endif */
  964. #endif
  965. /* %if-c-only */
  966. /* %endif */
  967. /* Amount of stuff to slurp up with each read. */
  968. #ifndef YY_READ_BUF_SIZE
  969. #define YY_READ_BUF_SIZE 8192
  970. #endif
  971. /* Copy whatever the last rule matched to the standard output. */
  972. #ifndef ECHO
  973. /* %if-c-only Standard (non-C++) definition */
  974. /* This used to be an fputs(), but since the string might contain NUL's,
  975. * we now use fwrite().
  976. */
  977. #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
  978. /* %endif */
  979. /* %if-c++-only C++ definition */
  980. /* %endif */
  981. #endif
  982. /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  983. * is returned in "result".
  984. */
  985. #ifndef YY_INPUT
  986. #define YY_INPUT(buf,result,max_size) \
  987. /* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
  988. if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  989. { \
  990. int c = '*'; \
  991. size_t n; \
  992. for ( n = 0; n < max_size && \
  993. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  994. buf[n] = (char) c; \
  995. if ( c == '\n' ) \
  996. buf[n++] = (char) c; \
  997. if ( c == EOF && ferror( yyin ) ) \
  998. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  999. result = n; \
  1000. } \
  1001. else \
  1002. { \
  1003. errno=0; \
  1004. while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  1005. { \
  1006. if( errno != EINTR) \
  1007. { \
  1008. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1009. break; \
  1010. } \
  1011. errno=0; \
  1012. clearerr(yyin); \
  1013. } \
  1014. }\
  1015. \
  1016. /* %if-c++-only C++ definition \ */\
  1017. /* %endif */
  1018. #endif
  1019. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  1020. * we don't want an extra ';' after the "return" because that will cause
  1021. * some compilers to complain about unreachable statements.
  1022. */
  1023. #ifndef yyterminate
  1024. #define yyterminate() return YY_NULL
  1025. #endif
  1026. /* Number of entries by which start-condition stack grows. */
  1027. #ifndef YY_START_STACK_INCR
  1028. #define YY_START_STACK_INCR 25
  1029. #endif
  1030. /* Report a fatal error. */
  1031. #ifndef YY_FATAL_ERROR
  1032. /* %if-c-only */
  1033. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
  1034. /* %endif */
  1035. /* %if-c++-only */
  1036. /* %endif */
  1037. #endif
  1038. /* %if-tables-serialization structures and prototypes */
  1039. /* %not-for-header */
  1040. /* %ok-for-header */
  1041. /* %not-for-header */
  1042. /* %tables-yydmap generated elements */
  1043. /* %endif */
  1044. /* end tables serialization structures and prototypes */
  1045. /* %ok-for-header */
  1046. /* Default declaration of generated scanner - a define so the user can
  1047. * easily add parameters.
  1048. */
  1049. #ifndef YY_DECL
  1050. #define YY_DECL_IS_OURS 1
  1051. /* %if-c-only Standard (non-C++) definition */
  1052. extern int yylex \
  1053. (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
  1054. #define YY_DECL int yylex \
  1055. (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
  1056. /* %endif */
  1057. /* %if-c++-only C++ definition */
  1058. /* %endif */
  1059. #endif /* !YY_DECL */
  1060. /* Code executed at the beginning of each rule, after yytext and yyleng
  1061. * have been set up.
  1062. */
  1063. #ifndef YY_USER_ACTION
  1064. #define YY_USER_ACTION
  1065. #endif
  1066. /* Code executed at the end of each rule. */
  1067. #ifndef YY_BREAK
  1068. #define YY_BREAK break;
  1069. #endif
  1070. /* %% [6.0] YY_RULE_SETUP definition goes here */
  1071. #define YY_RULE_SETUP \
  1072. YY_USER_ACTION
  1073. /* %not-for-header */
  1074. /** The main scanner function which does all the work.
  1075. */
  1076. YY_DECL
  1077. {
  1078. register yy_state_type yy_current_state;
  1079. register char *yy_cp, *yy_bp;
  1080. register int yy_act;
  1081. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1082. /* %% [7.0] user's declarations go here */
  1083. #line 21 "BsLexerFX.l"
  1084. #line 1314 "BsLexerFX.c"
  1085. yylval = yylval_param;
  1086. yylloc = yylloc_param;
  1087. if ( !yyg->yy_init )
  1088. {
  1089. yyg->yy_init = 1;
  1090. #ifdef YY_USER_INIT
  1091. YY_USER_INIT;
  1092. #endif
  1093. if ( ! yyg->yy_start )
  1094. yyg->yy_start = 1; /* first start state */
  1095. if ( ! yyin )
  1096. /* %if-c-only */
  1097. yyin = stdin;
  1098. /* %endif */
  1099. /* %if-c++-only */
  1100. /* %endif */
  1101. if ( ! yyout )
  1102. /* %if-c-only */
  1103. yyout = stdout;
  1104. /* %endif */
  1105. /* %if-c++-only */
  1106. /* %endif */
  1107. if ( ! YY_CURRENT_BUFFER ) {
  1108. yyensure_buffer_stack (yyscanner);
  1109. YY_CURRENT_BUFFER_LVALUE =
  1110. yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
  1111. }
  1112. yy_load_buffer_state(yyscanner );
  1113. }
  1114. while ( 1 ) /* loops until end-of-file is reached */
  1115. {
  1116. /* %% [8.0] yymore()-related code goes here */
  1117. yy_cp = yyg->yy_c_buf_p;
  1118. /* Support of yytext. */
  1119. *yy_cp = yyg->yy_hold_char;
  1120. /* yy_bp points to the position in yy_ch_buf of the start of
  1121. * the current run.
  1122. */
  1123. yy_bp = yy_cp;
  1124. /* %% [9.0] code to set up and find next match goes here */
  1125. yy_current_state = yyg->yy_start;
  1126. yy_match:
  1127. do
  1128. {
  1129. register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  1130. if ( yy_accept[yy_current_state] )
  1131. {
  1132. yyg->yy_last_accepting_state = yy_current_state;
  1133. yyg->yy_last_accepting_cpos = yy_cp;
  1134. }
  1135. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1136. {
  1137. yy_current_state = (int) yy_def[yy_current_state];
  1138. if ( yy_current_state >= 742 )
  1139. yy_c = yy_meta[(unsigned int) yy_c];
  1140. }
  1141. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1142. ++yy_cp;
  1143. }
  1144. while ( yy_current_state != 741 );
  1145. yy_cp = yyg->yy_last_accepting_cpos;
  1146. yy_current_state = yyg->yy_last_accepting_state;
  1147. yy_find_action:
  1148. /* %% [10.0] code to find the action number goes here */
  1149. yy_act = yy_accept[yy_current_state];
  1150. YY_DO_BEFORE_ACTION;
  1151. /* %% [11.0] code for yylineno update goes here */
  1152. if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
  1153. {
  1154. yy_size_t yyl;
  1155. for ( yyl = 0; yyl < yyleng; ++yyl )
  1156. if ( yytext[yyl] == '\n' )
  1157. do{ yylineno++;
  1158. yycolumn=0;
  1159. }while(0)
  1160. ;
  1161. }
  1162. do_action: /* This label is used only to access EOF actions. */
  1163. /* %% [12.0] debug code goes here */
  1164. if ( yy_flex_debug )
  1165. {
  1166. if ( yy_act == 0 )
  1167. fprintf( stderr, "--scanner backing up\n" );
  1168. else if ( yy_act < 167 )
  1169. fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
  1170. (long)yy_rule_linenum[yy_act], yytext );
  1171. else if ( yy_act == 167 )
  1172. fprintf( stderr, "--accepting default rule (\"%s\")\n",
  1173. yytext );
  1174. else if ( yy_act == 168 )
  1175. fprintf( stderr, "--(end of buffer or a NUL)\n" );
  1176. else
  1177. fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
  1178. }
  1179. switch ( yy_act )
  1180. { /* beginning of action switch */
  1181. /* %% [13.0] actions go here */
  1182. case 0: /* must back up */
  1183. /* undo the effects of YY_DO_BEFORE_ACTION */
  1184. *yy_cp = yyg->yy_hold_char;
  1185. yy_cp = yyg->yy_last_accepting_cpos;
  1186. yy_current_state = yyg->yy_last_accepting_state;
  1187. goto yy_find_action;
  1188. case 1:
  1189. /* rule 1 can match eol */
  1190. YY_RULE_SETUP
  1191. #line 23 "BsLexerFX.l"
  1192. { /* Skip blank */ }
  1193. YY_BREAK
  1194. case 2:
  1195. YY_RULE_SETUP
  1196. #line 24 "BsLexerFX.l"
  1197. { yylval->intValue = atoi(yytext); return TOKEN_INTEGER; }
  1198. YY_BREAK
  1199. case 3:
  1200. YY_RULE_SETUP
  1201. #line 25 "BsLexerFX.l"
  1202. { yylval->intValue = (int)strtol(yytext, 0, 0); return TOKEN_INTEGER; }
  1203. YY_BREAK
  1204. case 4:
  1205. YY_RULE_SETUP
  1206. #line 26 "BsLexerFX.l"
  1207. { yylval->floatValue = (float)atof(yytext); return TOKEN_FLOAT; }
  1208. YY_BREAK
  1209. case 5:
  1210. YY_RULE_SETUP
  1211. #line 27 "BsLexerFX.l"
  1212. { yylval->strValue = mmalloc_strdup(yyextra->memContext, yytext); return TOKEN_STRING; }
  1213. YY_BREAK
  1214. case 6:
  1215. YY_RULE_SETUP
  1216. #line 28 "BsLexerFX.l"
  1217. { yylval->intValue = 1; return TOKEN_BOOLEAN; }
  1218. YY_BREAK
  1219. case 7:
  1220. YY_RULE_SETUP
  1221. #line 29 "BsLexerFX.l"
  1222. { yylval->intValue = 0; return TOKEN_BOOLEAN; }
  1223. YY_BREAK
  1224. /* Value types */
  1225. case 8:
  1226. YY_RULE_SETUP
  1227. #line 33 "BsLexerFX.l"
  1228. { yylval->intValue = PT_Float; return TOKEN_FLOATTYPE; }
  1229. YY_BREAK
  1230. case 9:
  1231. YY_RULE_SETUP
  1232. #line 34 "BsLexerFX.l"
  1233. { yylval->intValue = PT_Float2; return TOKEN_FLOAT2TYPE; }
  1234. YY_BREAK
  1235. case 10:
  1236. YY_RULE_SETUP
  1237. #line 35 "BsLexerFX.l"
  1238. { yylval->intValue = PT_Float3; return TOKEN_FLOAT3TYPE; }
  1239. YY_BREAK
  1240. case 11:
  1241. YY_RULE_SETUP
  1242. #line 36 "BsLexerFX.l"
  1243. { yylval->intValue = PT_Float4; return TOKEN_FLOAT4TYPE; }
  1244. YY_BREAK
  1245. case 12:
  1246. YY_RULE_SETUP
  1247. #line 38 "BsLexerFX.l"
  1248. { yylval->intValue = PT_Mat2x2; return TOKEN_MAT2x2TYPE; }
  1249. YY_BREAK
  1250. case 13:
  1251. YY_RULE_SETUP
  1252. #line 39 "BsLexerFX.l"
  1253. { yylval->intValue = PT_Mat2x3; return TOKEN_MAT2x3TYPE; }
  1254. YY_BREAK
  1255. case 14:
  1256. YY_RULE_SETUP
  1257. #line 40 "BsLexerFX.l"
  1258. { yylval->intValue = PT_Mat2x4; return TOKEN_MAT2x4TYPE; }
  1259. YY_BREAK
  1260. case 15:
  1261. YY_RULE_SETUP
  1262. #line 42 "BsLexerFX.l"
  1263. { yylval->intValue = PT_Mat3x2; return TOKEN_MAT3x2TYPE; }
  1264. YY_BREAK
  1265. case 16:
  1266. YY_RULE_SETUP
  1267. #line 43 "BsLexerFX.l"
  1268. { yylval->intValue = PT_Mat3x3; return TOKEN_MAT3x3TYPE; }
  1269. YY_BREAK
  1270. case 17:
  1271. YY_RULE_SETUP
  1272. #line 44 "BsLexerFX.l"
  1273. { yylval->intValue = PT_Mat3x4; return TOKEN_MAT3x4TYPE; }
  1274. YY_BREAK
  1275. case 18:
  1276. YY_RULE_SETUP
  1277. #line 46 "BsLexerFX.l"
  1278. { yylval->intValue = PT_Mat4x2; return TOKEN_MAT4x2TYPE; }
  1279. YY_BREAK
  1280. case 19:
  1281. YY_RULE_SETUP
  1282. #line 47 "BsLexerFX.l"
  1283. { yylval->intValue = PT_Mat4x3; return TOKEN_MAT4x3TYPE; }
  1284. YY_BREAK
  1285. case 20:
  1286. YY_RULE_SETUP
  1287. #line 48 "BsLexerFX.l"
  1288. { yylval->intValue = PT_Mat4x4; return TOKEN_MAT4x4TYPE; }
  1289. YY_BREAK
  1290. case 21:
  1291. YY_RULE_SETUP
  1292. #line 50 "BsLexerFX.l"
  1293. { yylval->intValue = PT_Sampler1D; return TOKEN_SAMPLER1D; }
  1294. YY_BREAK
  1295. case 22:
  1296. YY_RULE_SETUP
  1297. #line 51 "BsLexerFX.l"
  1298. { yylval->intValue = PT_Sampler2D; return TOKEN_SAMPLER2D; }
  1299. YY_BREAK
  1300. case 23:
  1301. YY_RULE_SETUP
  1302. #line 52 "BsLexerFX.l"
  1303. { yylval->intValue = PT_Sampler3D; return TOKEN_SAMPLER3D; }
  1304. YY_BREAK
  1305. case 24:
  1306. YY_RULE_SETUP
  1307. #line 53 "BsLexerFX.l"
  1308. { yylval->intValue = PT_SamplerCUBE; return TOKEN_SAMPLERCUBE; }
  1309. YY_BREAK
  1310. case 25:
  1311. YY_RULE_SETUP
  1312. #line 54 "BsLexerFX.l"
  1313. { yylval->intValue = PT_Sampler2DMS; return TOKEN_SAMPLER2DMS; }
  1314. YY_BREAK
  1315. case 26:
  1316. YY_RULE_SETUP
  1317. #line 56 "BsLexerFX.l"
  1318. { yylval->intValue = PT_Texture1D; return TOKEN_TEXTURE1D; }
  1319. YY_BREAK
  1320. case 27:
  1321. YY_RULE_SETUP
  1322. #line 57 "BsLexerFX.l"
  1323. { yylval->intValue = PT_Texture2D; return TOKEN_TEXTURE2D; }
  1324. YY_BREAK
  1325. case 28:
  1326. YY_RULE_SETUP
  1327. #line 58 "BsLexerFX.l"
  1328. { yylval->intValue = PT_Texture3D; return TOKEN_TEXTURE3D; }
  1329. YY_BREAK
  1330. case 29:
  1331. YY_RULE_SETUP
  1332. #line 59 "BsLexerFX.l"
  1333. { yylval->intValue = PT_TextureCUBE; return TOKEN_TEXTURECUBE; }
  1334. YY_BREAK
  1335. case 30:
  1336. YY_RULE_SETUP
  1337. #line 60 "BsLexerFX.l"
  1338. { yylval->intValue = PT_Texture2DMS; return TOKEN_TEXTURE2DMS; }
  1339. YY_BREAK
  1340. case 31:
  1341. YY_RULE_SETUP
  1342. #line 62 "BsLexerFX.l"
  1343. { yylval->intValue = PT_ByteBuffer; return TOKEN_BYTEBUFFER; }
  1344. YY_BREAK
  1345. case 32:
  1346. YY_RULE_SETUP
  1347. #line 63 "BsLexerFX.l"
  1348. { yylval->intValue = PT_StructBuffer; return TOKEN_STRUCTBUFFER; }
  1349. YY_BREAK
  1350. case 33:
  1351. YY_RULE_SETUP
  1352. #line 65 "BsLexerFX.l"
  1353. { yylval->intValue = PT_TypedBufferRW; return TOKEN_RWTYPEDBUFFER; }
  1354. YY_BREAK
  1355. case 34:
  1356. YY_RULE_SETUP
  1357. #line 66 "BsLexerFX.l"
  1358. { yylval->intValue = PT_ByteBufferRW; return TOKEN_RWBYTEBUFFER; }
  1359. YY_BREAK
  1360. case 35:
  1361. YY_RULE_SETUP
  1362. #line 67 "BsLexerFX.l"
  1363. { yylval->intValue = PT_StructBufferRW; return TOKEN_RWSTRUCTBUFFER; }
  1364. YY_BREAK
  1365. case 36:
  1366. YY_RULE_SETUP
  1367. #line 68 "BsLexerFX.l"
  1368. { yylval->intValue = PT_AppendBuffer; return TOKEN_RWAPPENDBUFFER; }
  1369. YY_BREAK
  1370. case 37:
  1371. YY_RULE_SETUP
  1372. #line 69 "BsLexerFX.l"
  1373. { yylval->intValue = PT_ConsumeBuffer; return TOKEN_RWCONSUMEBUFFER; }
  1374. YY_BREAK
  1375. case 38:
  1376. YY_RULE_SETUP
  1377. #line 71 "BsLexerFX.l"
  1378. { return TOKEN_PARAMSBLOCK; }
  1379. YY_BREAK
  1380. /* Shader keywords */
  1381. case 39:
  1382. YY_RULE_SETUP
  1383. #line 74 "BsLexerFX.l"
  1384. { return TOKEN_SEPARABLE; }
  1385. YY_BREAK
  1386. case 40:
  1387. YY_RULE_SETUP
  1388. #line 75 "BsLexerFX.l"
  1389. { return TOKEN_QUEUE; }
  1390. YY_BREAK
  1391. case 41:
  1392. YY_RULE_SETUP
  1393. #line 76 "BsLexerFX.l"
  1394. { return TOKEN_PRIORITY; }
  1395. YY_BREAK
  1396. case 42:
  1397. YY_RULE_SETUP
  1398. #line 77 "BsLexerFX.l"
  1399. { return TOKEN_TECHNIQUE; }
  1400. YY_BREAK
  1401. case 43:
  1402. YY_RULE_SETUP
  1403. #line 78 "BsLexerFX.l"
  1404. { return TOKEN_PARAMETERS; }
  1405. YY_BREAK
  1406. case 44:
  1407. YY_RULE_SETUP
  1408. #line 79 "BsLexerFX.l"
  1409. { return TOKEN_BLOCKS; }
  1410. YY_BREAK
  1411. /* Technique keywords */
  1412. case 45:
  1413. YY_RULE_SETUP
  1414. #line 82 "BsLexerFX.l"
  1415. { return TOKEN_RENDERER; }
  1416. YY_BREAK
  1417. case 46:
  1418. YY_RULE_SETUP
  1419. #line 83 "BsLexerFX.l"
  1420. { return TOKEN_LANGUAGE; }
  1421. YY_BREAK
  1422. case 47:
  1423. YY_RULE_SETUP
  1424. #line 84 "BsLexerFX.l"
  1425. { return TOKEN_INCLUDE; }
  1426. YY_BREAK
  1427. case 48:
  1428. YY_RULE_SETUP
  1429. #line 85 "BsLexerFX.l"
  1430. { return TOKEN_PASS; }
  1431. YY_BREAK
  1432. /* Pass keywords */
  1433. case 49:
  1434. YY_RULE_SETUP
  1435. #line 88 "BsLexerFX.l"
  1436. { return TOKEN_VERTEX; }
  1437. YY_BREAK
  1438. case 50:
  1439. YY_RULE_SETUP
  1440. #line 89 "BsLexerFX.l"
  1441. { return TOKEN_FRAGMENT; }
  1442. YY_BREAK
  1443. case 51:
  1444. YY_RULE_SETUP
  1445. #line 90 "BsLexerFX.l"
  1446. { return TOKEN_GEOMETRY; }
  1447. YY_BREAK
  1448. case 52:
  1449. YY_RULE_SETUP
  1450. #line 91 "BsLexerFX.l"
  1451. { return TOKEN_HULL; }
  1452. YY_BREAK
  1453. case 53:
  1454. YY_RULE_SETUP
  1455. #line 92 "BsLexerFX.l"
  1456. { return TOKEN_DOMAIN; }
  1457. YY_BREAK
  1458. case 54:
  1459. YY_RULE_SETUP
  1460. #line 93 "BsLexerFX.l"
  1461. { return TOKEN_COMPUTE; }
  1462. YY_BREAK
  1463. /* Rasterizer state keywords */
  1464. case 55:
  1465. YY_RULE_SETUP
  1466. #line 96 "BsLexerFX.l"
  1467. { return TOKEN_FILLMODE; }
  1468. YY_BREAK
  1469. case 56:
  1470. YY_RULE_SETUP
  1471. #line 97 "BsLexerFX.l"
  1472. { return TOKEN_CULLMODE; }
  1473. YY_BREAK
  1474. case 57:
  1475. YY_RULE_SETUP
  1476. #line 98 "BsLexerFX.l"
  1477. { return TOKEN_DEPTHBIAS; }
  1478. YY_BREAK
  1479. case 58:
  1480. YY_RULE_SETUP
  1481. #line 99 "BsLexerFX.l"
  1482. { return TOKEN_SDEPTHBIAS; }
  1483. YY_BREAK
  1484. case 59:
  1485. YY_RULE_SETUP
  1486. #line 100 "BsLexerFX.l"
  1487. { return TOKEN_DEPTHCLIP; }
  1488. YY_BREAK
  1489. case 60:
  1490. YY_RULE_SETUP
  1491. #line 101 "BsLexerFX.l"
  1492. { return TOKEN_SCISSOR; }
  1493. YY_BREAK
  1494. case 61:
  1495. YY_RULE_SETUP
  1496. #line 102 "BsLexerFX.l"
  1497. { return TOKEN_MULTISAMPLE; }
  1498. YY_BREAK
  1499. case 62:
  1500. YY_RULE_SETUP
  1501. #line 103 "BsLexerFX.l"
  1502. { return TOKEN_AALINE; }
  1503. YY_BREAK
  1504. /* Depth-stencil state keywords */
  1505. case 63:
  1506. YY_RULE_SETUP
  1507. #line 106 "BsLexerFX.l"
  1508. { return TOKEN_DEPTHREAD; }
  1509. YY_BREAK
  1510. case 64:
  1511. YY_RULE_SETUP
  1512. #line 107 "BsLexerFX.l"
  1513. { return TOKEN_DEPTHWRITE; }
  1514. YY_BREAK
  1515. case 65:
  1516. YY_RULE_SETUP
  1517. #line 108 "BsLexerFX.l"
  1518. { return TOKEN_COMPAREFUNC; }
  1519. YY_BREAK
  1520. case 66:
  1521. YY_RULE_SETUP
  1522. #line 109 "BsLexerFX.l"
  1523. { return TOKEN_STENCIL; }
  1524. YY_BREAK
  1525. case 67:
  1526. YY_RULE_SETUP
  1527. #line 110 "BsLexerFX.l"
  1528. { return TOKEN_STENCILREADMASK; }
  1529. YY_BREAK
  1530. case 68:
  1531. YY_RULE_SETUP
  1532. #line 111 "BsLexerFX.l"
  1533. { return TOKEN_STENCILWRITEMASK; }
  1534. YY_BREAK
  1535. case 69:
  1536. YY_RULE_SETUP
  1537. #line 112 "BsLexerFX.l"
  1538. { return TOKEN_STENCILOPFRONT; }
  1539. YY_BREAK
  1540. case 70:
  1541. YY_RULE_SETUP
  1542. #line 113 "BsLexerFX.l"
  1543. { return TOKEN_STENCILOPBACK; }
  1544. YY_BREAK
  1545. case 71:
  1546. YY_RULE_SETUP
  1547. #line 114 "BsLexerFX.l"
  1548. { return TOKEN_FAIL; }
  1549. YY_BREAK
  1550. case 72:
  1551. YY_RULE_SETUP
  1552. #line 115 "BsLexerFX.l"
  1553. { return TOKEN_ZFAIL; }
  1554. YY_BREAK
  1555. /* Blend state keywords */
  1556. case 73:
  1557. YY_RULE_SETUP
  1558. #line 118 "BsLexerFX.l"
  1559. { return TOKEN_ALPHATOCOVERAGE; }
  1560. YY_BREAK
  1561. case 74:
  1562. YY_RULE_SETUP
  1563. #line 119 "BsLexerFX.l"
  1564. { return TOKEN_INDEPENDANTBLEND; }
  1565. YY_BREAK
  1566. case 75:
  1567. YY_RULE_SETUP
  1568. #line 120 "BsLexerFX.l"
  1569. { return TOKEN_TARGET; }
  1570. YY_BREAK
  1571. case 76:
  1572. YY_RULE_SETUP
  1573. #line 121 "BsLexerFX.l"
  1574. { return TOKEN_INDEX; }
  1575. YY_BREAK
  1576. case 77:
  1577. YY_RULE_SETUP
  1578. #line 122 "BsLexerFX.l"
  1579. { return TOKEN_BLEND; }
  1580. YY_BREAK
  1581. case 78:
  1582. YY_RULE_SETUP
  1583. #line 123 "BsLexerFX.l"
  1584. { return TOKEN_COLOR; }
  1585. YY_BREAK
  1586. case 79:
  1587. YY_RULE_SETUP
  1588. #line 124 "BsLexerFX.l"
  1589. { return TOKEN_ALPHA; }
  1590. YY_BREAK
  1591. case 80:
  1592. YY_RULE_SETUP
  1593. #line 125 "BsLexerFX.l"
  1594. { return TOKEN_WRITEMASK; }
  1595. YY_BREAK
  1596. case 81:
  1597. YY_RULE_SETUP
  1598. #line 126 "BsLexerFX.l"
  1599. { return TOKEN_SOURCE; }
  1600. YY_BREAK
  1601. case 82:
  1602. YY_RULE_SETUP
  1603. #line 127 "BsLexerFX.l"
  1604. { return TOKEN_DEST; }
  1605. YY_BREAK
  1606. case 83:
  1607. YY_RULE_SETUP
  1608. #line 128 "BsLexerFX.l"
  1609. { return TOKEN_OP; }
  1610. YY_BREAK
  1611. /* Sampler state keywords */
  1612. case 84:
  1613. YY_RULE_SETUP
  1614. #line 131 "BsLexerFX.l"
  1615. { return TOKEN_ADDRMODE; }
  1616. YY_BREAK
  1617. case 85:
  1618. YY_RULE_SETUP
  1619. #line 132 "BsLexerFX.l"
  1620. { return TOKEN_MINFILTER; }
  1621. YY_BREAK
  1622. case 86:
  1623. YY_RULE_SETUP
  1624. #line 133 "BsLexerFX.l"
  1625. { return TOKEN_MAGFILTER; }
  1626. YY_BREAK
  1627. case 87:
  1628. YY_RULE_SETUP
  1629. #line 134 "BsLexerFX.l"
  1630. { return TOKEN_MIPFILTER; }
  1631. YY_BREAK
  1632. case 88:
  1633. YY_RULE_SETUP
  1634. #line 135 "BsLexerFX.l"
  1635. { return TOKEN_MAXANISO; }
  1636. YY_BREAK
  1637. case 89:
  1638. YY_RULE_SETUP
  1639. #line 136 "BsLexerFX.l"
  1640. { return TOKEN_MIPBIAS; }
  1641. YY_BREAK
  1642. case 90:
  1643. YY_RULE_SETUP
  1644. #line 137 "BsLexerFX.l"
  1645. { return TOKEN_MIPMIN; }
  1646. YY_BREAK
  1647. case 91:
  1648. YY_RULE_SETUP
  1649. #line 138 "BsLexerFX.l"
  1650. { return TOKEN_MIPMAX; }
  1651. YY_BREAK
  1652. case 92:
  1653. YY_RULE_SETUP
  1654. #line 139 "BsLexerFX.l"
  1655. { return TOKEN_BORDERCOLOR; }
  1656. YY_BREAK
  1657. case 93:
  1658. YY_RULE_SETUP
  1659. #line 140 "BsLexerFX.l"
  1660. { return TOKEN_U; }
  1661. YY_BREAK
  1662. case 94:
  1663. YY_RULE_SETUP
  1664. #line 141 "BsLexerFX.l"
  1665. { return TOKEN_V; }
  1666. YY_BREAK
  1667. case 95:
  1668. YY_RULE_SETUP
  1669. #line 142 "BsLexerFX.l"
  1670. { return TOKEN_W; }
  1671. YY_BREAK
  1672. /* Qualifiers */
  1673. case 96:
  1674. YY_RULE_SETUP
  1675. #line 145 "BsLexerFX.l"
  1676. { return TOKEN_AUTO; }
  1677. YY_BREAK
  1678. case 97:
  1679. YY_RULE_SETUP
  1680. #line 146 "BsLexerFX.l"
  1681. { return TOKEN_ALIAS; }
  1682. YY_BREAK
  1683. case 98:
  1684. YY_RULE_SETUP
  1685. #line 147 "BsLexerFX.l"
  1686. { return TOKEN_SHARED; }
  1687. YY_BREAK
  1688. case 99:
  1689. YY_RULE_SETUP
  1690. #line 148 "BsLexerFX.l"
  1691. { return TOKEN_USAGE; }
  1692. YY_BREAK
  1693. /* State values */
  1694. case 100:
  1695. YY_RULE_SETUP
  1696. #line 151 "BsLexerFX.l"
  1697. { yylval->intValue = 0; return TOKEN_FILLMODEVALUE; }
  1698. YY_BREAK
  1699. case 101:
  1700. YY_RULE_SETUP
  1701. #line 152 "BsLexerFX.l"
  1702. { yylval->intValue = 1; return TOKEN_FILLMODEVALUE; }
  1703. YY_BREAK
  1704. case 102:
  1705. YY_RULE_SETUP
  1706. #line 154 "BsLexerFX.l"
  1707. { yylval->intValue = 0; return TOKEN_CULLMODEVALUE; }
  1708. YY_BREAK
  1709. case 103:
  1710. YY_RULE_SETUP
  1711. #line 155 "BsLexerFX.l"
  1712. { yylval->intValue = 1; return TOKEN_CULLMODEVALUE; }
  1713. YY_BREAK
  1714. case 104:
  1715. YY_RULE_SETUP
  1716. #line 156 "BsLexerFX.l"
  1717. { yylval->intValue = 2; return TOKEN_CULLMODEVALUE; }
  1718. YY_BREAK
  1719. case 105:
  1720. YY_RULE_SETUP
  1721. #line 158 "BsLexerFX.l"
  1722. { yylval->intValue = 0; return TOKEN_COMPFUNCVALUE; }
  1723. YY_BREAK
  1724. case 106:
  1725. YY_RULE_SETUP
  1726. #line 159 "BsLexerFX.l"
  1727. { yylval->intValue = 1; return TOKEN_COMPFUNCVALUE; }
  1728. YY_BREAK
  1729. case 107:
  1730. YY_RULE_SETUP
  1731. #line 160 "BsLexerFX.l"
  1732. { yylval->intValue = 2; return TOKEN_COMPFUNCVALUE; }
  1733. YY_BREAK
  1734. case 108:
  1735. YY_RULE_SETUP
  1736. #line 161 "BsLexerFX.l"
  1737. { yylval->intValue = 3; return TOKEN_COMPFUNCVALUE; }
  1738. YY_BREAK
  1739. case 109:
  1740. YY_RULE_SETUP
  1741. #line 162 "BsLexerFX.l"
  1742. { yylval->intValue = 4; return TOKEN_COMPFUNCVALUE; }
  1743. YY_BREAK
  1744. case 110:
  1745. YY_RULE_SETUP
  1746. #line 163 "BsLexerFX.l"
  1747. { yylval->intValue = 5; return TOKEN_COMPFUNCVALUE; }
  1748. YY_BREAK
  1749. case 111:
  1750. YY_RULE_SETUP
  1751. #line 164 "BsLexerFX.l"
  1752. { yylval->intValue = 6; return TOKEN_COMPFUNCVALUE; }
  1753. YY_BREAK
  1754. case 112:
  1755. YY_RULE_SETUP
  1756. #line 165 "BsLexerFX.l"
  1757. { yylval->intValue = 7; return TOKEN_COMPFUNCVALUE; }
  1758. YY_BREAK
  1759. case 113:
  1760. YY_RULE_SETUP
  1761. #line 167 "BsLexerFX.l"
  1762. { yylval->intValue = 0; return TOKEN_OPVALUE; }
  1763. YY_BREAK
  1764. case 114:
  1765. YY_RULE_SETUP
  1766. #line 168 "BsLexerFX.l"
  1767. { yylval->intValue = 1; return TOKEN_OPVALUE; }
  1768. YY_BREAK
  1769. case 115:
  1770. YY_RULE_SETUP
  1771. #line 169 "BsLexerFX.l"
  1772. { yylval->intValue = 2; return TOKEN_OPVALUE; }
  1773. YY_BREAK
  1774. case 116:
  1775. YY_RULE_SETUP
  1776. #line 170 "BsLexerFX.l"
  1777. { yylval->intValue = 3; return TOKEN_OPVALUE; }
  1778. YY_BREAK
  1779. case 117:
  1780. YY_RULE_SETUP
  1781. #line 171 "BsLexerFX.l"
  1782. { yylval->intValue = 4; return TOKEN_OPVALUE; }
  1783. YY_BREAK
  1784. case 118:
  1785. YY_RULE_SETUP
  1786. #line 172 "BsLexerFX.l"
  1787. { yylval->intValue = 5; return TOKEN_OPVALUE; }
  1788. YY_BREAK
  1789. case 119:
  1790. YY_RULE_SETUP
  1791. #line 173 "BsLexerFX.l"
  1792. { yylval->intValue = 6; return TOKEN_OPVALUE; }
  1793. YY_BREAK
  1794. case 120:
  1795. YY_RULE_SETUP
  1796. #line 174 "BsLexerFX.l"
  1797. { yylval->intValue = 7; return TOKEN_OPVALUE; }
  1798. YY_BREAK
  1799. case 121:
  1800. YY_RULE_SETUP
  1801. #line 175 "BsLexerFX.l"
  1802. { yylval->intValue = 8; return TOKEN_OPVALUE; }
  1803. YY_BREAK
  1804. case 122:
  1805. YY_RULE_SETUP
  1806. #line 176 "BsLexerFX.l"
  1807. { yylval->intValue = 9; return TOKEN_OPVALUE; }
  1808. YY_BREAK
  1809. case 123:
  1810. YY_RULE_SETUP
  1811. #line 177 "BsLexerFX.l"
  1812. { yylval->intValue = 10; return TOKEN_OPVALUE; }
  1813. YY_BREAK
  1814. case 124:
  1815. YY_RULE_SETUP
  1816. #line 178 "BsLexerFX.l"
  1817. { yylval->intValue = 11; return TOKEN_OPVALUE; }
  1818. YY_BREAK
  1819. case 125:
  1820. YY_RULE_SETUP
  1821. #line 179 "BsLexerFX.l"
  1822. { yylval->intValue = 12; return TOKEN_OPVALUE; }
  1823. YY_BREAK
  1824. case 126:
  1825. YY_RULE_SETUP
  1826. #line 180 "BsLexerFX.l"
  1827. { yylval->intValue = 13; return TOKEN_OPVALUE; }
  1828. YY_BREAK
  1829. case 127:
  1830. YY_RULE_SETUP
  1831. #line 181 "BsLexerFX.l"
  1832. { yylval->intValue = 14; return TOKEN_OPVALUE; }
  1833. YY_BREAK
  1834. case 128:
  1835. YY_RULE_SETUP
  1836. #line 182 "BsLexerFX.l"
  1837. { yylval->intValue = 15; return TOKEN_OPVALUE; }
  1838. YY_BREAK
  1839. case 129:
  1840. YY_RULE_SETUP
  1841. #line 183 "BsLexerFX.l"
  1842. { yylval->intValue = 16; return TOKEN_OPVALUE; }
  1843. YY_BREAK
  1844. case 130:
  1845. YY_RULE_SETUP
  1846. #line 185 "BsLexerFX.l"
  1847. { yylval->intValue = 0; return TOKEN_BLENDOPVALUE; }
  1848. YY_BREAK
  1849. case 131:
  1850. YY_RULE_SETUP
  1851. #line 186 "BsLexerFX.l"
  1852. { yylval->intValue = 1; return TOKEN_BLENDOPVALUE; }
  1853. YY_BREAK
  1854. case 132:
  1855. YY_RULE_SETUP
  1856. #line 187 "BsLexerFX.l"
  1857. { yylval->intValue = 2; return TOKEN_BLENDOPVALUE; }
  1858. YY_BREAK
  1859. case 133:
  1860. YY_RULE_SETUP
  1861. #line 188 "BsLexerFX.l"
  1862. { yylval->intValue = 3; return TOKEN_BLENDOPVALUE; }
  1863. YY_BREAK
  1864. case 134:
  1865. YY_RULE_SETUP
  1866. #line 189 "BsLexerFX.l"
  1867. { yylval->intValue = 4; return TOKEN_BLENDOPVALUE; }
  1868. YY_BREAK
  1869. case 135:
  1870. YY_RULE_SETUP
  1871. #line 191 "BsLexerFX.l"
  1872. { yylval->intValue = 0x0; return TOKEN_COLORMASK; }
  1873. YY_BREAK
  1874. case 136:
  1875. YY_RULE_SETUP
  1876. #line 192 "BsLexerFX.l"
  1877. { yylval->intValue = 0x1; return TOKEN_COLORMASK; }
  1878. YY_BREAK
  1879. case 137:
  1880. YY_RULE_SETUP
  1881. #line 193 "BsLexerFX.l"
  1882. { yylval->intValue = 0x2; return TOKEN_COLORMASK; }
  1883. YY_BREAK
  1884. case 138:
  1885. YY_RULE_SETUP
  1886. #line 194 "BsLexerFX.l"
  1887. { yylval->intValue = 0x4; return TOKEN_COLORMASK; }
  1888. YY_BREAK
  1889. case 139:
  1890. YY_RULE_SETUP
  1891. #line 195 "BsLexerFX.l"
  1892. { yylval->intValue = 0x8; return TOKEN_COLORMASK; }
  1893. YY_BREAK
  1894. case 140:
  1895. YY_RULE_SETUP
  1896. #line 196 "BsLexerFX.l"
  1897. { yylval->intValue = 0x3; return TOKEN_COLORMASK; }
  1898. YY_BREAK
  1899. case 141:
  1900. YY_RULE_SETUP
  1901. #line 197 "BsLexerFX.l"
  1902. { yylval->intValue = 0x5; return TOKEN_COLORMASK; }
  1903. YY_BREAK
  1904. case 142:
  1905. YY_RULE_SETUP
  1906. #line 198 "BsLexerFX.l"
  1907. { yylval->intValue = 0x9; return TOKEN_COLORMASK; }
  1908. YY_BREAK
  1909. case 143:
  1910. YY_RULE_SETUP
  1911. #line 199 "BsLexerFX.l"
  1912. { yylval->intValue = 0x6; return TOKEN_COLORMASK; }
  1913. YY_BREAK
  1914. case 144:
  1915. YY_RULE_SETUP
  1916. #line 200 "BsLexerFX.l"
  1917. { yylval->intValue = 0xA; return TOKEN_COLORMASK; }
  1918. YY_BREAK
  1919. case 145:
  1920. YY_RULE_SETUP
  1921. #line 201 "BsLexerFX.l"
  1922. { yylval->intValue = 0xC; return TOKEN_COLORMASK; }
  1923. YY_BREAK
  1924. case 146:
  1925. YY_RULE_SETUP
  1926. #line 202 "BsLexerFX.l"
  1927. { yylval->intValue = 0x7; return TOKEN_COLORMASK; }
  1928. YY_BREAK
  1929. case 147:
  1930. YY_RULE_SETUP
  1931. #line 203 "BsLexerFX.l"
  1932. { yylval->intValue = 0xB; return TOKEN_COLORMASK; }
  1933. YY_BREAK
  1934. case 148:
  1935. YY_RULE_SETUP
  1936. #line 204 "BsLexerFX.l"
  1937. { yylval->intValue = 0xD; return TOKEN_COLORMASK; }
  1938. YY_BREAK
  1939. case 149:
  1940. YY_RULE_SETUP
  1941. #line 205 "BsLexerFX.l"
  1942. { yylval->intValue = 0xE; return TOKEN_COLORMASK; }
  1943. YY_BREAK
  1944. case 150:
  1945. YY_RULE_SETUP
  1946. #line 206 "BsLexerFX.l"
  1947. { yylval->intValue = 0xF; return TOKEN_COLORMASK; }
  1948. YY_BREAK
  1949. case 151:
  1950. YY_RULE_SETUP
  1951. #line 208 "BsLexerFX.l"
  1952. { yylval->intValue = 0; return TOKEN_ADDRMODEVALUE; }
  1953. YY_BREAK
  1954. case 152:
  1955. YY_RULE_SETUP
  1956. #line 209 "BsLexerFX.l"
  1957. { yylval->intValue = 1; return TOKEN_ADDRMODEVALUE; }
  1958. YY_BREAK
  1959. case 153:
  1960. YY_RULE_SETUP
  1961. #line 210 "BsLexerFX.l"
  1962. { yylval->intValue = 2; return TOKEN_ADDRMODEVALUE; }
  1963. YY_BREAK
  1964. case 154:
  1965. YY_RULE_SETUP
  1966. #line 211 "BsLexerFX.l"
  1967. { yylval->intValue = 3; return TOKEN_ADDRMODEVALUE; }
  1968. YY_BREAK
  1969. case 155:
  1970. YY_RULE_SETUP
  1971. #line 213 "BsLexerFX.l"
  1972. { yylval->intValue = 0; return TOKEN_FILTERVALUE; }
  1973. YY_BREAK
  1974. case 156:
  1975. YY_RULE_SETUP
  1976. #line 214 "BsLexerFX.l"
  1977. { yylval->intValue = 1; return TOKEN_FILTERVALUE; }
  1978. YY_BREAK
  1979. case 157:
  1980. YY_RULE_SETUP
  1981. #line 215 "BsLexerFX.l"
  1982. { yylval->intValue = 2; return TOKEN_FILTERVALUE; }
  1983. YY_BREAK
  1984. case 158:
  1985. YY_RULE_SETUP
  1986. #line 216 "BsLexerFX.l"
  1987. { yylval->intValue = 3; return TOKEN_FILTERVALUE; }
  1988. YY_BREAK
  1989. case 159:
  1990. YY_RULE_SETUP
  1991. #line 217 "BsLexerFX.l"
  1992. { yylval->intValue = 4; return TOKEN_FILTERVALUE; }
  1993. YY_BREAK
  1994. case 160:
  1995. YY_RULE_SETUP
  1996. #line 218 "BsLexerFX.l"
  1997. { yylval->intValue = 5; return TOKEN_FILTERVALUE; }
  1998. YY_BREAK
  1999. case 161:
  2000. YY_RULE_SETUP
  2001. #line 219 "BsLexerFX.l"
  2002. { yylval->intValue = 6; return TOKEN_FILTERVALUE; }
  2003. YY_BREAK
  2004. case 162:
  2005. YY_RULE_SETUP
  2006. #line 221 "BsLexerFX.l"
  2007. { yylval->intValue = 0; return TOKEN_BUFFERUSAGE; }
  2008. YY_BREAK
  2009. case 163:
  2010. YY_RULE_SETUP
  2011. #line 222 "BsLexerFX.l"
  2012. { yylval->intValue = 1; return TOKEN_BUFFERUSAGE; }
  2013. YY_BREAK
  2014. case 164:
  2015. YY_RULE_SETUP
  2016. #line 224 "BsLexerFX.l"
  2017. { }
  2018. YY_BREAK
  2019. case 165:
  2020. YY_RULE_SETUP
  2021. #line 225 "BsLexerFX.l"
  2022. { yylval->strValue = mmalloc_strdup(yyextra->memContext, yytext); return TOKEN_IDENTIFIER; }
  2023. YY_BREAK
  2024. case 166:
  2025. YY_RULE_SETUP
  2026. #line 226 "BsLexerFX.l"
  2027. { return yytext[0]; }
  2028. YY_BREAK
  2029. case 167:
  2030. YY_RULE_SETUP
  2031. #line 227 "BsLexerFX.l"
  2032. YY_FATAL_ERROR( "flex scanner jammed" );
  2033. YY_BREAK
  2034. #line 2286 "BsLexerFX.c"
  2035. case YY_STATE_EOF(INITIAL):
  2036. yyterminate();
  2037. case YY_END_OF_BUFFER:
  2038. {
  2039. /* Amount of text matched not including the EOB char. */
  2040. int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
  2041. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  2042. *yy_cp = yyg->yy_hold_char;
  2043. YY_RESTORE_YY_MORE_OFFSET
  2044. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  2045. {
  2046. /* We're scanning a new file or input source. It's
  2047. * possible that this happened because the user
  2048. * just pointed yyin at a new source and called
  2049. * yylex(). If so, then we have to assure
  2050. * consistency between YY_CURRENT_BUFFER and our
  2051. * globals. Here is the right place to do so, because
  2052. * this is the first action (other than possibly a
  2053. * back-up) that will match for the new input source.
  2054. */
  2055. yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  2056. YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  2057. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  2058. }
  2059. /* Note that here we test for yy_c_buf_p "<=" to the position
  2060. * of the first EOB in the buffer, since yy_c_buf_p will
  2061. * already have been incremented past the NUL character
  2062. * (since all states make transitions on EOB to the
  2063. * end-of-buffer state). Contrast this with the test
  2064. * in input().
  2065. */
  2066. if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  2067. { /* This was really a NUL. */
  2068. yy_state_type yy_next_state;
  2069. yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
  2070. yy_current_state = yy_get_previous_state( yyscanner );
  2071. /* Okay, we're now positioned to make the NUL
  2072. * transition. We couldn't have
  2073. * yy_get_previous_state() go ahead and do it
  2074. * for us because it doesn't know how to deal
  2075. * with the possibility of jamming (and we don't
  2076. * want to build jamming into it because then it
  2077. * will run more slowly).
  2078. */
  2079. yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
  2080. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  2081. if ( yy_next_state )
  2082. {
  2083. /* Consume the NUL. */
  2084. yy_cp = ++yyg->yy_c_buf_p;
  2085. yy_current_state = yy_next_state;
  2086. goto yy_match;
  2087. }
  2088. else
  2089. {
  2090. /* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
  2091. yy_cp = yyg->yy_last_accepting_cpos;
  2092. yy_current_state = yyg->yy_last_accepting_state;
  2093. goto yy_find_action;
  2094. }
  2095. }
  2096. else switch ( yy_get_next_buffer( yyscanner ) )
  2097. {
  2098. case EOB_ACT_END_OF_FILE:
  2099. {
  2100. yyg->yy_did_buffer_switch_on_eof = 0;
  2101. if ( yywrap(yyscanner ) )
  2102. {
  2103. /* Note: because we've taken care in
  2104. * yy_get_next_buffer() to have set up
  2105. * yytext, we can now set up
  2106. * yy_c_buf_p so that if some total
  2107. * hoser (like flex itself) wants to
  2108. * call the scanner after we return the
  2109. * YY_NULL, it'll still work - another
  2110. * YY_NULL will get returned.
  2111. */
  2112. yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  2113. yy_act = YY_STATE_EOF(YY_START);
  2114. goto do_action;
  2115. }
  2116. else
  2117. {
  2118. if ( ! yyg->yy_did_buffer_switch_on_eof )
  2119. YY_NEW_FILE;
  2120. }
  2121. break;
  2122. }
  2123. case EOB_ACT_CONTINUE_SCAN:
  2124. yyg->yy_c_buf_p =
  2125. yyg->yytext_ptr + yy_amount_of_matched_text;
  2126. yy_current_state = yy_get_previous_state( yyscanner );
  2127. yy_cp = yyg->yy_c_buf_p;
  2128. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  2129. goto yy_match;
  2130. case EOB_ACT_LAST_MATCH:
  2131. yyg->yy_c_buf_p =
  2132. &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
  2133. yy_current_state = yy_get_previous_state( yyscanner );
  2134. yy_cp = yyg->yy_c_buf_p;
  2135. yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  2136. goto yy_find_action;
  2137. }
  2138. break;
  2139. }
  2140. default:
  2141. YY_FATAL_ERROR(
  2142. "fatal flex scanner internal error--no action found" );
  2143. } /* end of action switch */
  2144. } /* end of scanning one token */
  2145. } /* end of yylex */
  2146. /* %ok-for-header */
  2147. /* %if-c++-only */
  2148. /* %not-for-header */
  2149. /* %ok-for-header */
  2150. /* %endif */
  2151. /* yy_get_next_buffer - try to read in a new buffer
  2152. *
  2153. * Returns a code representing an action:
  2154. * EOB_ACT_LAST_MATCH -
  2155. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  2156. * EOB_ACT_END_OF_FILE - end of file
  2157. */
  2158. /* %if-c-only */
  2159. static int yy_get_next_buffer (yyscan_t yyscanner)
  2160. /* %endif */
  2161. /* %if-c++-only */
  2162. /* %endif */
  2163. {
  2164. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2165. register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  2166. register char *source = yyg->yytext_ptr;
  2167. register int number_to_move, i;
  2168. int ret_val;
  2169. if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
  2170. YY_FATAL_ERROR(
  2171. "fatal flex scanner internal error--end of buffer missed" );
  2172. if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  2173. { /* Don't try to fill the buffer, so this is an EOF. */
  2174. if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
  2175. {
  2176. /* We matched a single character, the EOB, so
  2177. * treat this as a final EOF.
  2178. */
  2179. return EOB_ACT_END_OF_FILE;
  2180. }
  2181. else
  2182. {
  2183. /* We matched some text prior to the EOB, first
  2184. * process it.
  2185. */
  2186. return EOB_ACT_LAST_MATCH;
  2187. }
  2188. }
  2189. /* Try to read more data. */
  2190. /* First move last chars to start of buffer. */
  2191. number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
  2192. for ( i = 0; i < number_to_move; ++i )
  2193. *(dest++) = *(source++);
  2194. if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  2195. /* don't do the read, it's not guaranteed to return an EOF,
  2196. * just force an EOF
  2197. */
  2198. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
  2199. else
  2200. {
  2201. yy_size_t num_to_read =
  2202. YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  2203. while ( num_to_read <= 0 )
  2204. { /* Not enough room in the buffer - grow it. */
  2205. /* just a shorter name for the current buffer */
  2206. YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
  2207. int yy_c_buf_p_offset =
  2208. (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
  2209. if ( b->yy_is_our_buffer )
  2210. {
  2211. yy_size_t new_size = b->yy_buf_size * 2;
  2212. if ( new_size <= 0 )
  2213. b->yy_buf_size += b->yy_buf_size / 8;
  2214. else
  2215. b->yy_buf_size *= 2;
  2216. b->yy_ch_buf = (char *)
  2217. /* Include room in for 2 EOB chars. */
  2218. yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
  2219. }
  2220. else
  2221. /* Can't grow it, we don't own it. */
  2222. b->yy_ch_buf = 0;
  2223. if ( ! b->yy_ch_buf )
  2224. YY_FATAL_ERROR(
  2225. "fatal error - scanner input buffer overflow" );
  2226. yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  2227. num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  2228. number_to_move - 1;
  2229. }
  2230. if ( num_to_read > YY_READ_BUF_SIZE )
  2231. num_to_read = YY_READ_BUF_SIZE;
  2232. /* Read in more data. */
  2233. YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  2234. yyg->yy_n_chars, num_to_read );
  2235. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  2236. }
  2237. if ( yyg->yy_n_chars == 0 )
  2238. {
  2239. if ( number_to_move == YY_MORE_ADJ )
  2240. {
  2241. ret_val = EOB_ACT_END_OF_FILE;
  2242. yyrestart(yyin ,yyscanner);
  2243. }
  2244. else
  2245. {
  2246. ret_val = EOB_ACT_LAST_MATCH;
  2247. YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  2248. YY_BUFFER_EOF_PENDING;
  2249. }
  2250. }
  2251. else
  2252. ret_val = EOB_ACT_CONTINUE_SCAN;
  2253. if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  2254. /* Extend the array by 50%, plus the number we really need. */
  2255. yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
  2256. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
  2257. if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  2258. YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  2259. }
  2260. yyg->yy_n_chars += number_to_move;
  2261. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  2262. YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  2263. yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  2264. return ret_val;
  2265. }
  2266. /* yy_get_previous_state - get the state just before the EOB char was reached */
  2267. /* %if-c-only */
  2268. /* %not-for-header */
  2269. static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
  2270. /* %endif */
  2271. /* %if-c++-only */
  2272. /* %endif */
  2273. {
  2274. register yy_state_type yy_current_state;
  2275. register char *yy_cp;
  2276. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2277. /* %% [15.0] code to get the start state into yy_current_state goes here */
  2278. yy_current_state = yyg->yy_start;
  2279. for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
  2280. {
  2281. /* %% [16.0] code to find the next state goes here */
  2282. register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  2283. if ( yy_accept[yy_current_state] )
  2284. {
  2285. yyg->yy_last_accepting_state = yy_current_state;
  2286. yyg->yy_last_accepting_cpos = yy_cp;
  2287. }
  2288. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2289. {
  2290. yy_current_state = (int) yy_def[yy_current_state];
  2291. if ( yy_current_state >= 742 )
  2292. yy_c = yy_meta[(unsigned int) yy_c];
  2293. }
  2294. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  2295. }
  2296. return yy_current_state;
  2297. }
  2298. /* yy_try_NUL_trans - try to make a transition on the NUL character
  2299. *
  2300. * synopsis
  2301. * next_state = yy_try_NUL_trans( current_state );
  2302. */
  2303. /* %if-c-only */
  2304. static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
  2305. /* %endif */
  2306. /* %if-c++-only */
  2307. /* %endif */
  2308. {
  2309. register int yy_is_jam;
  2310. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
  2311. /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
  2312. register char *yy_cp = yyg->yy_c_buf_p;
  2313. register YY_CHAR yy_c = 1;
  2314. if ( yy_accept[yy_current_state] )
  2315. {
  2316. yyg->yy_last_accepting_state = yy_current_state;
  2317. yyg->yy_last_accepting_cpos = yy_cp;
  2318. }
  2319. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2320. {
  2321. yy_current_state = (int) yy_def[yy_current_state];
  2322. if ( yy_current_state >= 742 )
  2323. yy_c = yy_meta[(unsigned int) yy_c];
  2324. }
  2325. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  2326. yy_is_jam = (yy_current_state == 741);
  2327. (void)yyg;
  2328. return yy_is_jam ? 0 : yy_current_state;
  2329. }
  2330. /* %if-c-only */
  2331. static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
  2332. /* %endif */
  2333. /* %if-c++-only */
  2334. /* %endif */
  2335. {
  2336. register char *yy_cp;
  2337. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2338. yy_cp = yyg->yy_c_buf_p;
  2339. /* undo effects of setting up yytext */
  2340. *yy_cp = yyg->yy_hold_char;
  2341. if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  2342. { /* need to shift things up to make room */
  2343. /* +2 for EOB chars. */
  2344. register yy_size_t number_to_move = yyg->yy_n_chars + 2;
  2345. register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  2346. YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  2347. register char *source =
  2348. &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  2349. while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  2350. *--dest = *--source;
  2351. yy_cp += (int) (dest - source);
  2352. yy_bp += (int) (dest - source);
  2353. YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  2354. yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  2355. if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  2356. YY_FATAL_ERROR( "flex scanner push-back overflow" );
  2357. }
  2358. *--yy_cp = (char) c;
  2359. /* %% [18.0] update yylineno here */
  2360. if ( c == '\n' ){
  2361. --yylineno;
  2362. }
  2363. yyg->yytext_ptr = yy_bp;
  2364. yyg->yy_hold_char = *yy_cp;
  2365. yyg->yy_c_buf_p = yy_cp;
  2366. }
  2367. /* %if-c-only */
  2368. /* %endif */
  2369. /* %if-c-only */
  2370. #ifndef YY_NO_INPUT
  2371. #ifdef __cplusplus
  2372. static int yyinput (yyscan_t yyscanner)
  2373. #else
  2374. static int input (yyscan_t yyscanner)
  2375. #endif
  2376. /* %endif */
  2377. /* %if-c++-only */
  2378. /* %endif */
  2379. {
  2380. int c;
  2381. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2382. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  2383. if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  2384. {
  2385. /* yy_c_buf_p now points to the character we want to return.
  2386. * If this occurs *before* the EOB characters, then it's a
  2387. * valid NUL; if not, then we've hit the end of the buffer.
  2388. */
  2389. if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  2390. /* This was really a NUL. */
  2391. *yyg->yy_c_buf_p = '\0';
  2392. else
  2393. { /* need more input */
  2394. yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
  2395. ++yyg->yy_c_buf_p;
  2396. switch ( yy_get_next_buffer( yyscanner ) )
  2397. {
  2398. case EOB_ACT_LAST_MATCH:
  2399. /* This happens because yy_g_n_b()
  2400. * sees that we've accumulated a
  2401. * token and flags that we need to
  2402. * try matching the token before
  2403. * proceeding. But for input(),
  2404. * there's no matching to consider.
  2405. * So convert the EOB_ACT_LAST_MATCH
  2406. * to EOB_ACT_END_OF_FILE.
  2407. */
  2408. /* Reset buffer status. */
  2409. yyrestart(yyin ,yyscanner);
  2410. /*FALLTHROUGH*/
  2411. case EOB_ACT_END_OF_FILE:
  2412. {
  2413. if ( yywrap(yyscanner ) )
  2414. return EOF;
  2415. if ( ! yyg->yy_did_buffer_switch_on_eof )
  2416. YY_NEW_FILE;
  2417. #ifdef __cplusplus
  2418. return yyinput(yyscanner);
  2419. #else
  2420. return input(yyscanner);
  2421. #endif
  2422. }
  2423. case EOB_ACT_CONTINUE_SCAN:
  2424. yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
  2425. break;
  2426. }
  2427. }
  2428. }
  2429. c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
  2430. *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
  2431. yyg->yy_hold_char = *++yyg->yy_c_buf_p;
  2432. /* %% [19.0] update BOL and yylineno */
  2433. if ( c == '\n' )
  2434. do{ yylineno++;
  2435. yycolumn=0;
  2436. }while(0)
  2437. ;
  2438. return c;
  2439. }
  2440. /* %if-c-only */
  2441. #endif /* ifndef YY_NO_INPUT */
  2442. /* %endif */
  2443. /** Immediately switch to a different input stream.
  2444. * @param input_file A readable stream.
  2445. * @param yyscanner The scanner object.
  2446. * @note This function does not reset the start condition to @c INITIAL .
  2447. */
  2448. /* %if-c-only */
  2449. void yyrestart (FILE * input_file , yyscan_t yyscanner)
  2450. /* %endif */
  2451. /* %if-c++-only */
  2452. /* %endif */
  2453. {
  2454. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2455. if ( ! YY_CURRENT_BUFFER ){
  2456. yyensure_buffer_stack (yyscanner);
  2457. YY_CURRENT_BUFFER_LVALUE =
  2458. yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
  2459. }
  2460. yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
  2461. yy_load_buffer_state(yyscanner );
  2462. }
  2463. /** Switch to a different input buffer.
  2464. * @param new_buffer The new input buffer.
  2465. * @param yyscanner The scanner object.
  2466. */
  2467. /* %if-c-only */
  2468. void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
  2469. /* %endif */
  2470. /* %if-c++-only */
  2471. /* %endif */
  2472. {
  2473. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2474. /* TODO. We should be able to replace this entire function body
  2475. * with
  2476. * yypop_buffer_state();
  2477. * yypush_buffer_state(new_buffer);
  2478. */
  2479. yyensure_buffer_stack (yyscanner);
  2480. if ( YY_CURRENT_BUFFER == new_buffer )
  2481. return;
  2482. if ( YY_CURRENT_BUFFER )
  2483. {
  2484. /* Flush out information for old buffer. */
  2485. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  2486. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  2487. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  2488. }
  2489. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  2490. yy_load_buffer_state(yyscanner );
  2491. /* We don't actually know whether we did this switch during
  2492. * EOF (yywrap()) processing, but the only time this flag
  2493. * is looked at is after yywrap() is called, so it's safe
  2494. * to go ahead and always set it.
  2495. */
  2496. yyg->yy_did_buffer_switch_on_eof = 1;
  2497. }
  2498. /* %if-c-only */
  2499. static void yy_load_buffer_state (yyscan_t yyscanner)
  2500. /* %endif */
  2501. /* %if-c++-only */
  2502. /* %endif */
  2503. {
  2504. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2505. yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  2506. yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  2507. yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  2508. yyg->yy_hold_char = *yyg->yy_c_buf_p;
  2509. }
  2510. /** Allocate and initialize an input buffer state.
  2511. * @param file A readable stream.
  2512. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  2513. * @param yyscanner The scanner object.
  2514. * @return the allocated buffer state.
  2515. */
  2516. /* %if-c-only */
  2517. YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
  2518. /* %endif */
  2519. /* %if-c++-only */
  2520. /* %endif */
  2521. {
  2522. YY_BUFFER_STATE b;
  2523. b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
  2524. if ( ! b )
  2525. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2526. b->yy_buf_size = size;
  2527. /* yy_ch_buf has to be 2 characters longer than the size given because
  2528. * we need to put in 2 end-of-buffer characters.
  2529. */
  2530. b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ,yyscanner );
  2531. if ( ! b->yy_ch_buf )
  2532. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2533. b->yy_is_our_buffer = 1;
  2534. yy_init_buffer(b,file ,yyscanner);
  2535. return b;
  2536. }
  2537. /** Destroy the buffer.
  2538. * @param b a buffer created with yy_create_buffer()
  2539. * @param yyscanner The scanner object.
  2540. */
  2541. /* %if-c-only */
  2542. void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
  2543. /* %endif */
  2544. /* %if-c++-only */
  2545. /* %endif */
  2546. {
  2547. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2548. if ( ! b )
  2549. return;
  2550. if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  2551. YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  2552. if ( b->yy_is_our_buffer )
  2553. yyfree((void *) b->yy_ch_buf ,yyscanner );
  2554. yyfree((void *) b ,yyscanner );
  2555. }
  2556. /* Initializes or reinitializes a buffer.
  2557. * This function is sometimes called more than once on the same buffer,
  2558. * such as during a yyrestart() or at EOF.
  2559. */
  2560. /* %if-c-only */
  2561. static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
  2562. /* %endif */
  2563. /* %if-c++-only */
  2564. /* %endif */
  2565. {
  2566. int oerrno = errno;
  2567. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2568. yy_flush_buffer(b ,yyscanner);
  2569. b->yy_input_file = file;
  2570. b->yy_fill_buffer = 1;
  2571. /* If b is the current buffer, then yy_init_buffer was _probably_
  2572. * called from yyrestart() or through yy_get_next_buffer.
  2573. * In that case, we don't want to reset the lineno or column.
  2574. */
  2575. if (b != YY_CURRENT_BUFFER){
  2576. b->yy_bs_lineno = 1;
  2577. b->yy_bs_column = 0;
  2578. }
  2579. /* %if-c-only */
  2580. b->yy_is_interactive = 0;
  2581. /* %endif */
  2582. /* %if-c++-only */
  2583. /* %endif */
  2584. errno = oerrno;
  2585. }
  2586. /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  2587. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  2588. * @param yyscanner The scanner object.
  2589. */
  2590. /* %if-c-only */
  2591. void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
  2592. /* %endif */
  2593. /* %if-c++-only */
  2594. /* %endif */
  2595. {
  2596. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2597. if ( ! b )
  2598. return;
  2599. b->yy_n_chars = 0;
  2600. /* We always need two end-of-buffer characters. The first causes
  2601. * a transition to the end-of-buffer state. The second causes
  2602. * a jam in that state.
  2603. */
  2604. b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  2605. b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  2606. b->yy_buf_pos = &b->yy_ch_buf[0];
  2607. b->yy_at_bol = 1;
  2608. b->yy_buffer_status = YY_BUFFER_NEW;
  2609. if ( b == YY_CURRENT_BUFFER )
  2610. yy_load_buffer_state(yyscanner );
  2611. }
  2612. /* %if-c-or-c++ */
  2613. /** Pushes the new state onto the stack. The new state becomes
  2614. * the current state. This function will allocate the stack
  2615. * if necessary.
  2616. * @param new_buffer The new state.
  2617. * @param yyscanner The scanner object.
  2618. */
  2619. /* %if-c-only */
  2620. void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
  2621. /* %endif */
  2622. /* %if-c++-only */
  2623. /* %endif */
  2624. {
  2625. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2626. if (new_buffer == NULL)
  2627. return;
  2628. yyensure_buffer_stack(yyscanner);
  2629. /* This block is copied from yy_switch_to_buffer. */
  2630. if ( YY_CURRENT_BUFFER )
  2631. {
  2632. /* Flush out information for old buffer. */
  2633. *yyg->yy_c_buf_p = yyg->yy_hold_char;
  2634. YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  2635. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  2636. }
  2637. /* Only push if top exists. Otherwise, replace top. */
  2638. if (YY_CURRENT_BUFFER)
  2639. yyg->yy_buffer_stack_top++;
  2640. YY_CURRENT_BUFFER_LVALUE = new_buffer;
  2641. /* copied from yy_switch_to_buffer. */
  2642. yy_load_buffer_state(yyscanner );
  2643. yyg->yy_did_buffer_switch_on_eof = 1;
  2644. }
  2645. /* %endif */
  2646. /* %if-c-or-c++ */
  2647. /** Removes and deletes the top of the stack, if present.
  2648. * The next element becomes the new top.
  2649. * @param yyscanner The scanner object.
  2650. */
  2651. /* %if-c-only */
  2652. void yypop_buffer_state (yyscan_t yyscanner)
  2653. /* %endif */
  2654. /* %if-c++-only */
  2655. /* %endif */
  2656. {
  2657. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2658. if (!YY_CURRENT_BUFFER)
  2659. return;
  2660. yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
  2661. YY_CURRENT_BUFFER_LVALUE = NULL;
  2662. if (yyg->yy_buffer_stack_top > 0)
  2663. --yyg->yy_buffer_stack_top;
  2664. if (YY_CURRENT_BUFFER) {
  2665. yy_load_buffer_state(yyscanner );
  2666. yyg->yy_did_buffer_switch_on_eof = 1;
  2667. }
  2668. }
  2669. /* %endif */
  2670. /* %if-c-or-c++ */
  2671. /* Allocates the stack if it does not exist.
  2672. * Guarantees space for at least one push.
  2673. */
  2674. /* %if-c-only */
  2675. static void yyensure_buffer_stack (yyscan_t yyscanner)
  2676. /* %endif */
  2677. /* %if-c++-only */
  2678. /* %endif */
  2679. {
  2680. yy_size_t num_to_alloc;
  2681. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2682. if (!yyg->yy_buffer_stack) {
  2683. /* First allocation is just for 2 elements, since we don't know if this
  2684. * scanner will even need a stack. We use 2 instead of 1 to avoid an
  2685. * immediate realloc on the next call.
  2686. */
  2687. num_to_alloc = 1;
  2688. yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
  2689. (num_to_alloc * sizeof(struct yy_buffer_state*)
  2690. , yyscanner);
  2691. if ( ! yyg->yy_buffer_stack )
  2692. YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  2693. memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  2694. yyg->yy_buffer_stack_max = num_to_alloc;
  2695. yyg->yy_buffer_stack_top = 0;
  2696. return;
  2697. }
  2698. if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
  2699. /* Increase the buffer to prepare for a possible push. */
  2700. int grow_size = 8 /* arbitrary grow size */;
  2701. num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
  2702. yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
  2703. (yyg->yy_buffer_stack,
  2704. num_to_alloc * sizeof(struct yy_buffer_state*)
  2705. , yyscanner);
  2706. if ( ! yyg->yy_buffer_stack )
  2707. YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  2708. /* zero only the new slots.*/
  2709. memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
  2710. yyg->yy_buffer_stack_max = num_to_alloc;
  2711. }
  2712. }
  2713. /* %endif */
  2714. /* %if-c-only */
  2715. /** Setup the input buffer state to scan directly from a user-specified character buffer.
  2716. * @param base the character buffer
  2717. * @param size the size in bytes of the character buffer
  2718. * @param yyscanner The scanner object.
  2719. * @return the newly allocated buffer state object.
  2720. */
  2721. YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
  2722. {
  2723. YY_BUFFER_STATE b;
  2724. if ( size < 2 ||
  2725. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  2726. base[size-1] != YY_END_OF_BUFFER_CHAR )
  2727. /* They forgot to leave room for the EOB's. */
  2728. return 0;
  2729. b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
  2730. if ( ! b )
  2731. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  2732. b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  2733. b->yy_buf_pos = b->yy_ch_buf = base;
  2734. b->yy_is_our_buffer = 0;
  2735. b->yy_input_file = 0;
  2736. b->yy_n_chars = b->yy_buf_size;
  2737. b->yy_is_interactive = 0;
  2738. b->yy_at_bol = 1;
  2739. b->yy_fill_buffer = 0;
  2740. b->yy_buffer_status = YY_BUFFER_NEW;
  2741. yy_switch_to_buffer(b ,yyscanner );
  2742. return b;
  2743. }
  2744. /* %endif */
  2745. /* %if-c-only */
  2746. /** Setup the input buffer state to scan a string. The next call to yylex() will
  2747. * scan from a @e copy of @a str.
  2748. * @param yystr a NUL-terminated string to scan
  2749. * @param yyscanner The scanner object.
  2750. * @return the newly allocated buffer state object.
  2751. * @note If you want to scan bytes that may contain NUL values, then use
  2752. * yy_scan_bytes() instead.
  2753. */
  2754. YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
  2755. {
  2756. return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
  2757. }
  2758. /* %endif */
  2759. /* %if-c-only */
  2760. /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  2761. * scan from a @e copy of @a bytes.
  2762. * @param yybytes the byte buffer to scan
  2763. * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  2764. * @param yyscanner The scanner object.
  2765. * @return the newly allocated buffer state object.
  2766. */
  2767. YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
  2768. {
  2769. YY_BUFFER_STATE b;
  2770. char *buf;
  2771. yy_size_t n;
  2772. yy_size_t i;
  2773. /* Get memory for full buffer, including space for trailing EOB's. */
  2774. n = _yybytes_len + 2;
  2775. buf = (char *) yyalloc(n ,yyscanner );
  2776. if ( ! buf )
  2777. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  2778. for ( i = 0; i < _yybytes_len; ++i )
  2779. buf[i] = yybytes[i];
  2780. buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  2781. b = yy_scan_buffer(buf,n ,yyscanner);
  2782. if ( ! b )
  2783. YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  2784. /* It's okay to grow etc. this buffer, and we should throw it
  2785. * away when we're done.
  2786. */
  2787. b->yy_is_our_buffer = 1;
  2788. return b;
  2789. }
  2790. /* %endif */
  2791. #ifndef YY_EXIT_FAILURE
  2792. #define YY_EXIT_FAILURE 2
  2793. #endif
  2794. /* %if-c-only */
  2795. static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
  2796. {
  2797. (void) fprintf( stderr, "%s\n", msg );
  2798. exit( YY_EXIT_FAILURE );
  2799. }
  2800. /* %endif */
  2801. /* %if-c++-only */
  2802. /* %endif */
  2803. /* Redefine yyless() so it works in section 3 code. */
  2804. #undef yyless
  2805. #define yyless(n) \
  2806. do \
  2807. { \
  2808. /* Undo effects of setting up yytext. */ \
  2809. int yyless_macro_arg = (n); \
  2810. YY_LESS_LINENO(yyless_macro_arg);\
  2811. yytext[yyleng] = yyg->yy_hold_char; \
  2812. yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
  2813. yyg->yy_hold_char = *yyg->yy_c_buf_p; \
  2814. *yyg->yy_c_buf_p = '\0'; \
  2815. yyleng = yyless_macro_arg; \
  2816. } \
  2817. while ( 0 )
  2818. /* Accessor methods (get/set functions) to struct members. */
  2819. /* %if-c-only */
  2820. /* %if-reentrant */
  2821. /** Get the user-defined data for this scanner.
  2822. * @param yyscanner The scanner object.
  2823. */
  2824. YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
  2825. {
  2826. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2827. return yyextra;
  2828. }
  2829. /* %endif */
  2830. /** Get the current line number.
  2831. * @param yyscanner The scanner object.
  2832. */
  2833. int yyget_lineno (yyscan_t yyscanner)
  2834. {
  2835. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2836. if (! YY_CURRENT_BUFFER)
  2837. return 0;
  2838. return yylineno;
  2839. }
  2840. /** Get the current column number.
  2841. * @param yyscanner The scanner object.
  2842. */
  2843. int yyget_column (yyscan_t yyscanner)
  2844. {
  2845. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2846. if (! YY_CURRENT_BUFFER)
  2847. return 0;
  2848. return yycolumn;
  2849. }
  2850. /** Get the input stream.
  2851. * @param yyscanner The scanner object.
  2852. */
  2853. FILE *yyget_in (yyscan_t yyscanner)
  2854. {
  2855. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2856. return yyin;
  2857. }
  2858. /** Get the output stream.
  2859. * @param yyscanner The scanner object.
  2860. */
  2861. FILE *yyget_out (yyscan_t yyscanner)
  2862. {
  2863. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2864. return yyout;
  2865. }
  2866. /** Get the length of the current token.
  2867. * @param yyscanner The scanner object.
  2868. */
  2869. yy_size_t yyget_leng (yyscan_t yyscanner)
  2870. {
  2871. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2872. return yyleng;
  2873. }
  2874. /** Get the current token.
  2875. * @param yyscanner The scanner object.
  2876. */
  2877. char *yyget_text (yyscan_t yyscanner)
  2878. {
  2879. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2880. return yytext;
  2881. }
  2882. /* %if-reentrant */
  2883. /** Set the user-defined data. This data is never touched by the scanner.
  2884. * @param user_defined The data to be associated with this scanner.
  2885. * @param yyscanner The scanner object.
  2886. */
  2887. void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
  2888. {
  2889. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2890. yyextra = user_defined ;
  2891. }
  2892. /* %endif */
  2893. /** Set the current line number.
  2894. * @param line_number
  2895. * @param yyscanner The scanner object.
  2896. */
  2897. void yyset_lineno (int line_number , yyscan_t yyscanner)
  2898. {
  2899. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2900. /* lineno is only valid if an input buffer exists. */
  2901. if (! YY_CURRENT_BUFFER )
  2902. YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
  2903. yylineno = line_number;
  2904. }
  2905. /** Set the current column.
  2906. * @param line_number
  2907. * @param yyscanner The scanner object.
  2908. */
  2909. void yyset_column (int column_no , yyscan_t yyscanner)
  2910. {
  2911. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2912. /* column is only valid if an input buffer exists. */
  2913. if (! YY_CURRENT_BUFFER )
  2914. YY_FATAL_ERROR( "yyset_column called with no buffer" );
  2915. yycolumn = column_no;
  2916. }
  2917. /** Set the input stream. This does not discard the current
  2918. * input buffer.
  2919. * @param in_str A readable stream.
  2920. * @param yyscanner The scanner object.
  2921. * @see yy_switch_to_buffer
  2922. */
  2923. void yyset_in (FILE * in_str , yyscan_t yyscanner)
  2924. {
  2925. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2926. yyin = in_str ;
  2927. }
  2928. void yyset_out (FILE * out_str , yyscan_t yyscanner)
  2929. {
  2930. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2931. yyout = out_str ;
  2932. }
  2933. int yyget_debug (yyscan_t yyscanner)
  2934. {
  2935. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2936. return yy_flex_debug;
  2937. }
  2938. void yyset_debug (int bdebug , yyscan_t yyscanner)
  2939. {
  2940. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2941. yy_flex_debug = bdebug ;
  2942. }
  2943. /* %endif */
  2944. /* %if-reentrant */
  2945. /* Accessor methods for yylval and yylloc */
  2946. /* %if-bison-bridge */
  2947. YYSTYPE * yyget_lval (yyscan_t yyscanner)
  2948. {
  2949. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2950. return yylval;
  2951. }
  2952. void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
  2953. {
  2954. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2955. yylval = yylval_param;
  2956. }
  2957. YYLTYPE *yyget_lloc (yyscan_t yyscanner)
  2958. {
  2959. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2960. return yylloc;
  2961. }
  2962. void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
  2963. {
  2964. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2965. yylloc = yylloc_param;
  2966. }
  2967. /* %endif */
  2968. /* User-visible API */
  2969. /* yylex_init is special because it creates the scanner itself, so it is
  2970. * the ONLY reentrant function that doesn't take the scanner as the last argument.
  2971. * That's why we explicitly handle the declaration, instead of using our macros.
  2972. */
  2973. int yylex_init(yyscan_t* ptr_yy_globals)
  2974. {
  2975. if (ptr_yy_globals == NULL){
  2976. errno = EINVAL;
  2977. return 1;
  2978. }
  2979. *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
  2980. if (*ptr_yy_globals == NULL){
  2981. errno = ENOMEM;
  2982. return 1;
  2983. }
  2984. /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
  2985. memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
  2986. return yy_init_globals ( *ptr_yy_globals );
  2987. }
  2988. /* yylex_init_extra has the same functionality as yylex_init, but follows the
  2989. * convention of taking the scanner as the last argument. Note however, that
  2990. * this is a *pointer* to a scanner, as it will be allocated by this call (and
  2991. * is the reason, too, why this function also must handle its own declaration).
  2992. * The user defined value in the first argument will be available to yyalloc in
  2993. * the yyextra field.
  2994. */
  2995. int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
  2996. {
  2997. struct yyguts_t dummy_yyguts;
  2998. yyset_extra (yy_user_defined, &dummy_yyguts);
  2999. if (ptr_yy_globals == NULL){
  3000. errno = EINVAL;
  3001. return 1;
  3002. }
  3003. *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
  3004. if (*ptr_yy_globals == NULL){
  3005. errno = ENOMEM;
  3006. return 1;
  3007. }
  3008. /* By setting to 0xAA, we expose bugs in
  3009. yy_init_globals. Leave at 0x00 for releases. */
  3010. memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
  3011. yyset_extra (yy_user_defined, *ptr_yy_globals);
  3012. return yy_init_globals ( *ptr_yy_globals );
  3013. }
  3014. /* %endif if-c-only */
  3015. /* %if-c-only */
  3016. static int yy_init_globals (yyscan_t yyscanner)
  3017. {
  3018. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  3019. /* Initialization is the same as for the non-reentrant scanner.
  3020. * This function is called from yylex_destroy(), so don't allocate here.
  3021. */
  3022. yyg->yy_buffer_stack = 0;
  3023. yyg->yy_buffer_stack_top = 0;
  3024. yyg->yy_buffer_stack_max = 0;
  3025. yyg->yy_c_buf_p = (char *) 0;
  3026. yyg->yy_init = 0;
  3027. yyg->yy_start = 0;
  3028. yyg->yy_start_stack_ptr = 0;
  3029. yyg->yy_start_stack_depth = 0;
  3030. yyg->yy_start_stack = NULL;
  3031. /* Defined in main.c */
  3032. #ifdef YY_STDINIT
  3033. yyin = stdin;
  3034. yyout = stdout;
  3035. #else
  3036. yyin = (FILE *) 0;
  3037. yyout = (FILE *) 0;
  3038. #endif
  3039. /* For future reference: Set errno on error, since we are called by
  3040. * yylex_init()
  3041. */
  3042. return 0;
  3043. }
  3044. /* %endif */
  3045. /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
  3046. /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  3047. int yylex_destroy (yyscan_t yyscanner)
  3048. {
  3049. struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  3050. /* Pop the buffer stack, destroying each element. */
  3051. while(YY_CURRENT_BUFFER){
  3052. yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
  3053. YY_CURRENT_BUFFER_LVALUE = NULL;
  3054. yypop_buffer_state(yyscanner);
  3055. }
  3056. /* Destroy the stack itself. */
  3057. yyfree(yyg->yy_buffer_stack ,yyscanner);
  3058. yyg->yy_buffer_stack = NULL;
  3059. /* Destroy the start condition stack. */
  3060. yyfree(yyg->yy_start_stack ,yyscanner );
  3061. yyg->yy_start_stack = NULL;
  3062. /* Reset the globals. This is important in a non-reentrant scanner so the next time
  3063. * yylex() is called, initialization will occur. */
  3064. yy_init_globals( yyscanner);
  3065. /* %if-reentrant */
  3066. /* Destroy the main struct (reentrant only). */
  3067. yyfree ( yyscanner , yyscanner );
  3068. yyscanner = NULL;
  3069. /* %endif */
  3070. return 0;
  3071. }
  3072. /* %endif */
  3073. /*
  3074. * Internal utility routines.
  3075. */
  3076. #ifndef yytext_ptr
  3077. static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
  3078. {
  3079. register int i;
  3080. for ( i = 0; i < n; ++i )
  3081. s1[i] = s2[i];
  3082. }
  3083. #endif
  3084. #ifdef YY_NEED_STRLEN
  3085. static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
  3086. {
  3087. register int n;
  3088. for ( n = 0; s[n]; ++n )
  3089. ;
  3090. return n;
  3091. }
  3092. #endif
  3093. void *yyalloc (yy_size_t size , yyscan_t yyscanner)
  3094. {
  3095. return (void *) malloc( size );
  3096. }
  3097. void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
  3098. {
  3099. /* The cast to (char *) in the following accommodates both
  3100. * implementations that use char* generic pointers, and those
  3101. * that use void* generic pointers. It works with the latter
  3102. * because both ANSI C and C++ allow castless assignment from
  3103. * any pointer type to void*, and deal with argument conversions
  3104. * as though doing an assignment.
  3105. */
  3106. return (void *) realloc( (char *) ptr, size );
  3107. }
  3108. void yyfree (void * ptr , yyscan_t yyscanner)
  3109. {
  3110. free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  3111. }
  3112. /* %if-tables-serialization definitions */
  3113. /* %define-yytables The name for this specific scanner's tables. */
  3114. #define YYTABLES_NAME "yytables"
  3115. /* %endif */
  3116. /* %ok-for-header */
  3117. #line 226 "BsLexerFX.l"