BsLexerFX.c 134 KB

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