BsLexerFX.c 100 KB

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