BsLexerFX.c 123 KB

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