BsLexerFX.c 115 KB

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