BsLexerFX.c 99 KB

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