BsLexerFX.c 95 KB

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