BsLexerFX.c 95 KB

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