BsLexerFX.c 106 KB

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