| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910 |
- #line 2 "BsLexerFX.c"
- #line 4 "BsLexerFX.c"
- #define YY_INT_ALIGNED short int
- /* A lexical scanner generated by flex */
- #define FLEX_SCANNER
- #define YY_FLEX_MAJOR_VERSION 2
- #define YY_FLEX_MINOR_VERSION 5
- #define YY_FLEX_SUBMINOR_VERSION 37
- #if YY_FLEX_SUBMINOR_VERSION > 0
- #define FLEX_BETA
- #endif
- /* First, we deal with platform-specific or compiler-specific issues. */
- /* begin standard C headers. */
- #include <stdio.h>
- #include <string.h>
- #include <errno.h>
- #include <stdlib.h>
- /* end standard C headers. */
- /* flex integer type definitions */
- #ifndef FLEXINT_H
- #define FLEXINT_H
- /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
- #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
- /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
- * if you want the limit (max/min) macros for int types.
- */
- #ifndef __STDC_LIMIT_MACROS
- #define __STDC_LIMIT_MACROS 1
- #endif
- #include <inttypes.h>
- typedef int8_t flex_int8_t;
- typedef uint8_t flex_uint8_t;
- typedef int16_t flex_int16_t;
- typedef uint16_t flex_uint16_t;
- typedef int32_t flex_int32_t;
- typedef uint32_t flex_uint32_t;
- #else
- typedef signed char flex_int8_t;
- typedef short int flex_int16_t;
- typedef int flex_int32_t;
- typedef unsigned char flex_uint8_t;
- typedef unsigned short int flex_uint16_t;
- typedef unsigned int flex_uint32_t;
- /* Limits of integral types. */
- #ifndef INT8_MIN
- #define INT8_MIN (-128)
- #endif
- #ifndef INT16_MIN
- #define INT16_MIN (-32767-1)
- #endif
- #ifndef INT32_MIN
- #define INT32_MIN (-2147483647-1)
- #endif
- #ifndef INT8_MAX
- #define INT8_MAX (127)
- #endif
- #ifndef INT16_MAX
- #define INT16_MAX (32767)
- #endif
- #ifndef INT32_MAX
- #define INT32_MAX (2147483647)
- #endif
- #ifndef UINT8_MAX
- #define UINT8_MAX (255U)
- #endif
- #ifndef UINT16_MAX
- #define UINT16_MAX (65535U)
- #endif
- #ifndef UINT32_MAX
- #define UINT32_MAX (4294967295U)
- #endif
- #endif /* ! C99 */
- #endif /* ! FLEXINT_H */
- #ifdef __cplusplus
- /* The "const" storage-class-modifier is valid. */
- #define YY_USE_CONST
- #else /* ! __cplusplus */
- /* C99 requires __STDC__ to be defined as 1. */
- #if defined (__STDC__)
- #define YY_USE_CONST
- #endif /* defined (__STDC__) */
- #endif /* ! __cplusplus */
- #ifdef YY_USE_CONST
- #define yyconst const
- #else
- #define yyconst
- #endif
- /* Returned upon end-of-file. */
- #define YY_NULL 0
- /* Promotes a possibly negative, possibly signed char to an unsigned
- * integer for use as an array index. If the signed char is negative,
- * we want to instead treat it as an 8-bit unsigned char, hence the
- * double cast.
- */
- #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
- /* An opaque pointer. */
- #ifndef YY_TYPEDEF_YY_SCANNER_T
- #define YY_TYPEDEF_YY_SCANNER_T
- typedef void* yyscan_t;
- #endif
- /* For convenience, these vars (plus the bison vars far below)
- are macros in the reentrant scanner. */
- #define yyin yyg->yyin_r
- #define yyout yyg->yyout_r
- #define yyextra yyg->yyextra_r
- #define yyleng yyg->yyleng_r
- #define yytext yyg->yytext_r
- #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
- #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
- #define yy_flex_debug yyg->yy_flex_debug_r
- /* Enter a start condition. This macro really ought to take a parameter,
- * but we do it the disgusting crufty way forced on us by the ()-less
- * definition of BEGIN.
- */
- #define BEGIN yyg->yy_start = 1 + 2 *
- /* Translate the current start state into a value that can be later handed
- * to BEGIN to return to the state. The YYSTATE alias is for lex
- * compatibility.
- */
- #define YY_START ((yyg->yy_start - 1) / 2)
- #define YYSTATE YY_START
- /* Action number for EOF rule of a given start state. */
- #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
- /* Special action meaning "start processing a new file". */
- #define YY_NEW_FILE yyrestart(yyin ,yyscanner )
- #define YY_END_OF_BUFFER_CHAR 0
- /* Size of default input buffer. */
- #ifndef YY_BUF_SIZE
- #define YY_BUF_SIZE 16384
- #endif
- /* The state buf must be large enough to hold one state per character in the main buffer.
- */
- #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
- #ifndef YY_TYPEDEF_YY_BUFFER_STATE
- #define YY_TYPEDEF_YY_BUFFER_STATE
- typedef struct yy_buffer_state *YY_BUFFER_STATE;
- #endif
- #ifndef YY_TYPEDEF_YY_SIZE_T
- #define YY_TYPEDEF_YY_SIZE_T
- typedef size_t yy_size_t;
- #endif
- #define EOB_ACT_CONTINUE_SCAN 0
- #define EOB_ACT_END_OF_FILE 1
- #define EOB_ACT_LAST_MATCH 2
- /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
- * access to the local variable yy_act. Since yyless() is a macro, it would break
- * existing scanners that call yyless() from OUTSIDE yylex.
- * One obvious solution it to make yy_act a global. I tried that, and saw
- * a 5% performance hit in a non-yylineno scanner, because yy_act is
- * normally declared as a register variable-- so it is not worth it.
- */
- #define YY_LESS_LINENO(n) \
- do { \
- int yyl;\
- for ( yyl = n; yyl < yyleng; ++yyl )\
- if ( yytext[yyl] == '\n' )\
- --yylineno;\
- }while(0)
-
- /* Return all but the first "n" matched characters back to the input stream. */
- #define yyless(n) \
- do \
- { \
- /* Undo effects of setting up yytext. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- *yy_cp = yyg->yy_hold_char; \
- YY_RESTORE_YY_MORE_OFFSET \
- yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
- YY_DO_BEFORE_ACTION; /* set up yytext again */ \
- } \
- while ( 0 )
- #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
- #ifndef YY_STRUCT_YY_BUFFER_STATE
- #define YY_STRUCT_YY_BUFFER_STATE
- struct yy_buffer_state
- {
- FILE *yy_input_file;
- char *yy_ch_buf; /* input buffer */
- char *yy_buf_pos; /* current position in input buffer */
- /* Size of input buffer in bytes, not including room for EOB
- * characters.
- */
- yy_size_t yy_buf_size;
- /* Number of characters read into yy_ch_buf, not including EOB
- * characters.
- */
- yy_size_t yy_n_chars;
- /* Whether we "own" the buffer - i.e., we know we created it,
- * and can realloc() it to grow it, and should free() it to
- * delete it.
- */
- int yy_is_our_buffer;
- /* Whether this is an "interactive" input source; if so, and
- * if we're using stdio for input, then we want to use getc()
- * instead of fread(), to make sure we stop fetching input after
- * each newline.
- */
- int yy_is_interactive;
- /* Whether we're considered to be at the beginning of a line.
- * If so, '^' rules will be active on the next match, otherwise
- * not.
- */
- int yy_at_bol;
- int yy_bs_lineno; /**< The line count. */
- int yy_bs_column; /**< The column count. */
-
- /* Whether to try to fill the input buffer when we reach the
- * end of it.
- */
- int yy_fill_buffer;
- int yy_buffer_status;
- #define YY_BUFFER_NEW 0
- #define YY_BUFFER_NORMAL 1
- /* When an EOF's been seen but there's still some text to process
- * then we mark the buffer as YY_EOF_PENDING, to indicate that we
- * shouldn't try reading from the input source any more. We might
- * still have a bunch of tokens to match, though, because of
- * possible backing-up.
- *
- * When we actually see the EOF, we change the status to "new"
- * (via yyrestart()), so that the user can continue scanning by
- * just pointing yyin at a new input file.
- */
- #define YY_BUFFER_EOF_PENDING 2
- };
- #endif /* !YY_STRUCT_YY_BUFFER_STATE */
- /* We provide macros for accessing buffer states in case in the
- * future we want to put the buffer states in a more general
- * "scanner state".
- *
- * Returns the top of the stack, or NULL.
- */
- #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
- ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
- : NULL)
- /* Same as previous macro, but useful when we know that the buffer stack is not
- * NULL or when we need an lvalue. For internal use only.
- */
- #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
- void yyrestart (FILE *input_file ,yyscan_t yyscanner );
- void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
- YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
- void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
- void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
- void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
- void yypop_buffer_state (yyscan_t yyscanner );
- static void yyensure_buffer_stack (yyscan_t yyscanner );
- static void yy_load_buffer_state (yyscan_t yyscanner );
- static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
- #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
- YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
- YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
- YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
- void *yyalloc (yy_size_t ,yyscan_t yyscanner );
- void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
- void yyfree (void * ,yyscan_t yyscanner );
- #define yy_new_buffer yy_create_buffer
- #define yy_set_interactive(is_interactive) \
- { \
- if ( ! YY_CURRENT_BUFFER ){ \
- yyensure_buffer_stack (yyscanner); \
- YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
- }
- #define yy_set_bol(at_bol) \
- { \
- if ( ! YY_CURRENT_BUFFER ){\
- yyensure_buffer_stack (yyscanner); \
- YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
- }
- #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
- /* Begin user sect3 */
- #define yywrap(yyscanner) 1
- #define YY_SKIP_YYWRAP
- typedef unsigned char YY_CHAR;
- typedef int yy_state_type;
- #define yytext_ptr yytext_r
- static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
- static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
- static int yy_get_next_buffer (yyscan_t yyscanner );
- static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
- /* Done after the current pattern has been matched and before the
- * corresponding action - sets up yytext.
- */
- #define YY_DO_BEFORE_ACTION \
- yyg->yytext_ptr = yy_bp; \
- yyleng = (size_t) (yy_cp - yy_bp); \
- yyg->yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
- yyg->yy_c_buf_p = yy_cp;
- #define YY_NUM_RULES 235
- #define YY_END_OF_BUFFER 236
- /* This struct is not used in this scanner,
- but its presence is necessary. */
- struct yy_trans_info
- {
- flex_int32_t yy_verify;
- flex_int32_t yy_nxt;
- };
- static yyconst flex_int16_t yy_accept[904] =
- { 0,
- 1, 1, 175, 175, 218, 218, 221, 221, 0, 0,
- 231, 231, 0, 0, 183, 183, 186, 186, 190, 190,
- 194, 194, 207, 207, 200, 200, 236, 234, 1, 1,
- 234, 234, 234, 234, 2, 2, 146, 145, 233, 233,
- 233, 233, 144, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 143, 233, 233, 98, 99, 100, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 177, 175,
- 175, 177, 219, 218, 218, 217, 222, 221, 221, 220,
- 225, 225, 223, 224, 231, 231, 226, 227, 228, 229,
- 230, 182, 179, 181, 181, 180, 183, 184, 188, 186,
- 186, 187, 192, 190, 190, 191, 196, 194, 194, 195,
- 209, 207, 207, 208, 206, 200, 200, 206, 1, 0,
- 5, 0, 0, 0, 0, 2, 232, 0, 2, 0,
- 233, 233, 233, 233, 233, 233, 233, 152, 233, 233,
- 233, 233, 233, 233, 110, 233, 233, 233, 233, 233,
- 233, 233, 116, 233, 233, 233, 233, 233, 151, 150,
- 119, 233, 233, 233, 233, 233, 233, 114, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 88, 233, 233,
- 233, 233, 149, 148, 233, 147, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 175, 0,
- 176, 218, 221, 231, 180, 183, 186, 187, 190, 191,
- 194, 195, 207, 208, 200, 0, 0, 0, 0, 0,
- 0, 0, 0, 2, 232, 4, 3, 233, 137, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 111,
- 233, 233, 233, 233, 233, 124, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 156, 118, 233, 233,
- 123, 127, 233, 233, 233, 115, 233, 141, 140, 233,
- 233, 233, 233, 233, 233, 117, 233, 233, 233, 128,
- 233, 233, 233, 233, 233, 155, 233, 154, 153, 233,
- 233, 233, 233, 233, 233, 233, 233, 138, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 8, 233, 233, 233, 233, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 4, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 61, 233,
- 133, 233, 233, 233, 233, 87, 233, 112, 233, 76,
- 60, 233, 233, 213, 233, 233, 120, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 113, 233, 233, 58, 233, 233, 157, 139, 233,
- 233, 233, 233, 233, 233, 134, 233, 233, 233, 233,
- 233, 233, 233, 49, 233, 233, 233, 57, 233, 233,
- 233, 233, 233, 107, 158, 233, 121, 233, 233, 101,
- 105, 233, 233, 233, 233, 9, 10, 11, 233, 233,
- 233, 233, 6, 233, 0, 0, 0, 0, 0, 0,
- 198, 197, 0, 0, 0, 0, 0, 0, 4, 233,
- 165, 233, 84, 233, 233, 233, 82, 47, 233, 233,
- 160, 83, 233, 233, 233, 233, 233, 135, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 81, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 163, 233, 233, 233, 233, 233,
- 233, 233, 233, 108, 136, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 77, 102, 16, 7, 12, 233, 233, 233, 233,
- 233, 104, 204, 203, 0, 0, 0, 0, 199, 189,
- 0, 0, 185, 67, 168, 233, 233, 233, 233, 161,
- 54, 233, 233, 216, 233, 233, 233, 233, 233, 129,
- 233, 233, 233, 233, 233, 214, 233, 233, 233, 233,
- 233, 164, 233, 159, 233, 233, 233, 233, 96, 95,
- 233, 233, 233, 109, 233, 173, 166, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 130, 169, 233, 233,
- 233, 233, 86, 233, 233, 80, 233, 233, 233, 210,
- 233, 13, 14, 15, 233, 17, 18, 19, 20, 21,
- 22, 23, 24, 25, 103, 205, 201, 0, 178, 193,
- 0, 233, 233, 233, 233, 233, 233, 233, 215, 233,
- 126, 131, 170, 233, 233, 233, 233, 233, 233, 233,
- 125, 233, 167, 233, 233, 233, 233, 233, 233, 233,
- 142, 233, 233, 233, 122, 233, 233, 233, 233, 233,
- 132, 233, 233, 65, 233, 71, 233, 233, 233, 233,
- 233, 233, 202, 174, 233, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 211, 212, 233,
- 56, 233, 93, 233, 233, 233, 233, 162, 233, 50,
- 233, 233, 233, 233, 55, 233, 233, 233, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 233, 233, 106, 233, 233, 233, 233, 233, 233, 233,
- 233, 62, 64, 68, 233, 233, 233, 91, 90, 92,
- 233, 233, 233, 233, 233, 233, 233, 26, 27, 28,
- 233, 233, 48, 233, 233, 233, 233, 52, 31, 32,
- 33, 233, 233, 85, 233, 233, 233, 233, 233, 40,
- 233, 233, 69, 233, 233, 94, 233, 53, 233, 233,
- 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
- 59, 233, 233, 233, 233, 233, 89, 233, 233, 172,
- 97, 70, 233, 171, 233, 66, 233, 233, 36, 37,
- 38, 233, 30, 29, 233, 233, 233, 233, 233, 233,
- 35, 34, 51, 233, 45, 233, 233, 43, 233, 233,
- 233, 233, 233, 233, 233, 233, 41, 233, 46, 233,
- 233, 39, 42, 233, 75, 233, 233, 233, 233, 233,
- 44, 233, 74, 233, 233, 78, 233, 63, 72, 233,
- 79, 73, 0
- } ;
- static yyconst flex_int32_t yy_ec[256] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 1, 5, 6, 1, 1, 1, 1, 1,
- 1, 1, 7, 1, 8, 9, 10, 11, 12, 13,
- 14, 15, 16, 16, 16, 16, 16, 1, 1, 1,
- 17, 1, 1, 1, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
- 1, 1, 1, 1, 27, 1, 44, 45, 46, 47,
- 48, 49, 50, 51, 52, 27, 53, 54, 55, 56,
- 57, 58, 59, 60, 61, 62, 63, 64, 27, 65,
- 66, 27, 67, 1, 68, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1
- } ;
- static yyconst flex_int32_t yy_meta[69] =
- { 0,
- 1, 1, 2, 3, 1, 1, 1, 1, 1, 1,
- 4, 4, 4, 4, 4, 4, 1, 4, 4, 4,
- 4, 4, 4, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 4, 4, 4, 4, 4, 4, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 1, 1
- } ;
- static yyconst flex_int16_t yy_base[927] =
- { 0,
- 0, 0, 67, 71, 75, 78, 81, 84, 87, 92,
- 95, 100, 160, 228, 97, 113, 296, 364, 432, 500,
- 568, 636, 704, 772, 116, 121, 1328, 1329, 126, 129,
- 1322, 87, 129, 1316, 181, 169, 229, 260, 228, 164,
- 1291, 297, 170, 1261, 90, 0, 1301, 112, 161, 104,
- 167, 233, 234, 290, 155, 0, 1274, 228, 130, 147,
- 1277, 1263, 93, 1263, 1274, 1266, 1256, 1254, 1329, 269,
- 277, 1309, 1329, 316, 327, 1329, 1329, 340, 351, 1329,
- 1329, 1329, 1329, 1329, 1329, 356, 1329, 1329, 1329, 1329,
- 1329, 1329, 1329, 1329, 1329, 0, 0, 1329, 1329, 380,
- 383, 0, 1329, 386, 389, 0, 1329, 392, 395, 0,
- 1329, 398, 401, 0, 1329, 404, 407, 156, 410, 1308,
- 1329, 1264, 155, 167, 1255, 404, 0, 410, 441, 0,
- 0, 1281, 1288, 1282, 1260, 1248, 1247, 1284, 1268, 169,
- 1242, 1239, 1260, 1281, 0, 373, 1244, 1277, 1259, 1264,
- 32, 1239, 0, 1267, 1260, 1239, 1236, 1245, 0, 1270,
- 1265, 1229, 1231, 247, 1237, 1261, 1251, 1259, 1224, 1238,
- 224, 199, 265, 1224, 1243, 325, 1254, 0, 1239, 1248,
- 97, 1221, 0, 1254, 1238, 201, 1232, 314, 1213, 1239,
- 1247, 1248, 1246, 1209, 217, 1205, 277, 154, 234, 270,
- 1218, 1201, 1225, 1241, 1206, 1222, 1212, 1203, 1192, 1192,
- 1198, 1197, 1193, 400, 1187, 1204, 1184, 1202, 456, 1240,
- 1329, 461, 464, 467, 0, 0, 470, 0, 473, 0,
- 476, 0, 479, 0, 482, 433, 1195, 1194, 214, 1195,
- 441, 1195, 1193, 479, 0, 507, 0, 1187, 0, 1202,
- 1177, 1185, 1187, 1206, 1212, 1176, 1185, 1183, 1181, 0,
- 1198, 1170, 469, 1165, 1171, 1184, 507, 1205, 1160, 1159,
- 1176, 1190, 1187, 1163, 1162, 1165, 0, 0, 1159, 1159,
- 1172, 0, 1163, 1177, 1187, 0, 1158, 0, 0, 1172,
- 1183, 1187, 1181, 505, 1141, 0, 324, 1176, 1169, 0,
- 1164, 1168, 1154, 1136, 1139, 0, 1166, 0, 1176, 1174,
- 1126, 1129, 478, 1143, 1163, 513, 1151, 0, 1129, 1132,
- 1124, 1140, 1121, 1122, 1125, 1117, 1118, 1128, 1126, 1114,
- 1119, 1112, 1151, 1139, 1109, 1138, 1117, 1124, 1110, 1118,
- 1108, 1103, 1119, 1114, 523, 532, 1101, 1112, 1109, 480,
- 1111, 487, 1105, 1107, 1107, 1102, 1105, 1105, 1097, 1102,
- 550, 1329, 1093, 1116, 1099, 1102, 1089, 1107, 1121, 1095,
- 1088, 1092, 1120, 1105, 1077, 1079, 496, 1072, 0, 1099,
- 0, 568, 1109, 1102, 1080, 0, 1078, 0, 1092, 0,
- 0, 1073, 1079, 0, 1091, 281, 0, 1107, 1061, 1091,
- 1070, 1065, 1068, 1067, 543, 1074, 1065, 1087, 1086, 1085,
- 1078, 0, 1075, 1056, 0, 1050, 1091, 0, 0, 1046,
- 1047, 1041, 1047, 1056, 1082, 0, 570, 1078, 1075, 1046,
- 1051, 1037, 1037, 0, 1050, 1049, 1048, 0, 1045, 1036,
- 1028, 1029, 1041, 0, 0, 1040, 0, 1033, 1025, 0,
- 0, 1025, 1036, 1021, 1022, 0, 0, 0, 1016, 1015,
- 1014, 1030, 0, 1029, 1027, 1027, 1022, 1025, 1025, 1015,
- 1329, 1329, 1021, 1020, 1020, 1004, 1017, 538, 578, 1017,
- 1044, 1002, 1025, 1014, 1028, 1024, 0, 997, 997, 993,
- 0, 0, 999, 994, 991, 997, 1033, 0, 1026, 1030,
- 1022, 577, 991, 1009, 997, 982, 1025, 994, 0, 1006,
- 996, 1004, 984, 985, 982, 981, 969, 977, 974, 970,
- 998, 1000, 991, 990, 1006, 977, 972, 1003, 974, 958,
- 958, 971, 958, 0, 0, 993, 997, 995, 966, 966,
- 955, 967, 962, 957, 946, 945, 954, 945, 946, 938,
- 972, 0, 0, 0, 0, 585, 949, 593, 596, 600,
- 953, 0, 1329, 1329, 950, 949, 949, 948, 1329, 1329,
- 946, 947, 1329, 0, 0, 932, 935, 972, 967, 0,
- 0, 969, 939, 0, 939, 938, 937, 951, 964, 0,
- 962, 929, 926, 931, 918, 0, 945, 920, 915, 941,
- 917, 952, 921, 0, 908, 908, 906, 905, 0, 0,
- 947, 921, 929, 0, 941, 0, 0, 900, 899, 938,
- 940, 912, 894, 909, 907, 935, 0, 0, 893, 931,
- 891, 905, 0, 895, 929, 0, 888, 898, 901, 0,
- 900, 0, 0, 0, 881, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1329, 1329, 893, 1329, 1329,
- 893, 910, 919, 875, 902, 879, 886, 911, 0, 914,
- 0, 0, 0, 885, 865, 872, 857, 883, 776, 771,
- 0, 789, 0, 787, 786, 776, 784, 783, 778, 774,
- 0, 793, 779, 760, 0, 762, 762, 763, 803, 761,
- 0, 606, 772, 0, 765, 589, 755, 754, 642, 756,
- 754, 753, 1329, 1329, 756, 755, 762, 778, 755, 760,
- 744, 743, 744, 746, 756, 740, 783, 0, 0, 756,
- 0, 739, 0, 738, 737, 752, 737, 0, 734, 0,
- 744, 773, 743, 727, 0, 749, 748, 747, 729, 708,
- 717, 706, 715, 702, 712, 712, 738, 737, 736, 718,
- 707, 701, 0, 706, 688, 702, 719, 692, 688, 691,
- 697, 0, 0, 0, 697, 724, 687, 0, 0, 0,
- 681, 687, 679, 690, 675, 618, 688, 0, 706, 0,
- 716, 672, 0, 638, 579, 681, 683, 0, 0, 701,
- 0, 711, 673, 0, 680, 679, 678, 688, 664, 0,
- 677, 673, 0, 77, 129, 0, 214, 0, 241, 241,
- 303, 409, 440, 447, 462, 580, 553, 572, 562, 578,
- 0, 571, 586, 622, 637, 598, 0, 603, 604, 0,
- 0, 0, 617, 0, 647, 0, 607, 619, 0, 639,
- 0, 622, 0, 0, 652, 626, 616, 644, 627, 616,
- 0, 0, 0, 633, 0, 618, 625, 0, 632, 645,
- 622, 631, 631, 629, 642, 657, 0, 638, 0, 641,
- 630, 0, 0, 647, 0, 630, 632, 650, 647, 640,
- 0, 636, 0, 645, 638, 0, 653, 0, 0, 648,
- 0, 0, 1329, 840, 845, 850, 855, 860, 865, 870,
- 875, 880, 885, 890, 895, 900, 902, 907, 909, 914,
- 916, 918, 920, 922, 927, 698
- } ;
- static yyconst flex_int16_t yy_def[927] =
- { 0,
- 903, 1, 904, 904, 905, 905, 906, 906, 907, 907,
- 908, 908, 909, 909, 910, 910, 911, 911, 912, 912,
- 913, 913, 914, 914, 915, 915, 903, 903, 903, 903,
- 916, 903, 903, 903, 903, 903, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 903, 903,
- 903, 918, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 919, 920, 903, 903, 903,
- 903, 921, 903, 903, 903, 922, 903, 903, 903, 923,
- 903, 903, 903, 924, 903, 903, 903, 903, 903, 916,
- 903, 903, 903, 903, 903, 903, 925, 903, 903, 926,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 903, 918,
- 903, 903, 903, 903, 919, 920, 903, 921, 903, 922,
- 903, 923, 903, 924, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 925, 903, 926, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 903, 903, 903, 903, 903,
- 903, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 903, 903, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 0, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903
- } ;
- static yyconst flex_int16_t yy_nxt[1398] =
- { 0,
- 28, 29, 30, 29, 31, 32, 28, 33, 28, 34,
- 35, 36, 36, 36, 36, 36, 28, 37, 38, 39,
- 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
- 50, 51, 52, 46, 53, 54, 55, 56, 57, 58,
- 46, 46, 59, 60, 61, 62, 46, 46, 63, 46,
- 46, 64, 46, 46, 65, 46, 46, 46, 46, 46,
- 66, 67, 68, 46, 46, 46, 28, 28, 70, 71,
- 70, 72, 70, 71, 70, 72, 74, 75, 74, 74,
- 75, 74, 78, 79, 78, 78, 79, 78, 82, 269,
- 82, 76, 270, 82, 76, 82, 86, 86, 86, 98,
- 98, 86, 86, 86, 844, 87, 88, 89, 90, 91,
- 87, 88, 89, 90, 91, 98, 98, 116, 117, 116,
- 164, 118, 116, 117, 116, 175, 118, 119, 119, 119,
- 119, 119, 119, 122, 123, 176, 212, 167, 124, 126,
- 126, 126, 126, 126, 126, 165, 213, 80, 168, 125,
- 80, 206, 207, 83, 84, 169, 303, 304, 83, 84,
- 92, 93, 94, 95, 92, 92, 92, 92, 92, 92,
- 92, 92, 92, 92, 92, 92, 92, 128, 170, 129,
- 129, 129, 129, 129, 129, 148, 171, 159, 160, 128,
- 845, 129, 129, 129, 129, 129, 129, 177, 199, 149,
- 208, 325, 200, 236, 172, 150, 161, 237, 239, 209,
- 240, 151, 173, 326, 201, 241, 256, 162, 308, 309,
- 152, 130, 242, 174, 178, 257, 92, 92, 92, 93,
- 94, 95, 92, 92, 92, 92, 92, 92, 92, 92,
- 92, 92, 92, 92, 92, 130, 132, 143, 291, 133,
- 179, 183, 184, 203, 289, 185, 144, 186, 290, 134,
- 320, 846, 204, 292, 180, 354, 281, 145, 321, 187,
- 219, 219, 219, 188, 355, 135, 181, 138, 219, 219,
- 219, 189, 136, 327, 146, 282, 137, 205, 847, 848,
- 147, 139, 182, 328, 92, 92, 99, 100, 101, 100,
- 99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
- 99, 99, 99, 140, 154, 329, 141, 222, 222, 222,
- 293, 190, 294, 849, 191, 142, 192, 193, 222, 222,
- 222, 155, 311, 194, 330, 195, 323, 196, 508, 324,
- 156, 223, 223, 223, 297, 509, 197, 298, 157, 312,
- 313, 198, 223, 223, 223, 408, 158, 224, 224, 224,
- 299, 409, 99, 99, 99, 100, 101, 100, 99, 99,
- 99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
- 99, 227, 227, 227, 227, 227, 227, 229, 229, 229,
- 229, 229, 229, 231, 231, 231, 231, 231, 231, 233,
- 233, 233, 233, 233, 233, 235, 235, 235, 235, 235,
- 235, 119, 119, 119, 244, 244, 244, 244, 244, 244,
- 246, 246, 246, 246, 246, 246, 262, 263, 264, 850,
- 99, 99, 103, 104, 105, 104, 103, 103, 103, 103,
- 103, 103, 103, 103, 103, 103, 103, 103, 103, 128,
- 344, 129, 129, 129, 129, 129, 129, 219, 219, 219,
- 851, 345, 222, 222, 222, 223, 223, 223, 224, 224,
- 224, 227, 227, 227, 229, 229, 229, 231, 231, 231,
- 233, 233, 233, 235, 235, 235, 350, 357, 351, 244,
- 244, 244, 244, 244, 244, 852, 358, 853, 103, 103,
- 103, 104, 105, 104, 103, 103, 103, 103, 103, 103,
- 103, 103, 103, 103, 103, 103, 103, 246, 246, 246,
- 246, 246, 246, 376, 381, 422, 377, 404, 361, 362,
- 426, 465, 382, 468, 405, 456, 457, 458, 427, 494,
- 466, 383, 469, 423, 459, 460, 461, 428, 479, 479,
- 479, 479, 479, 479, 361, 362, 478, 478, 495, 406,
- 479, 479, 479, 479, 479, 479, 103, 103, 107, 108,
- 109, 108, 107, 107, 107, 107, 107, 107, 107, 107,
- 107, 107, 107, 107, 107, 498, 517, 535, 479, 479,
- 479, 479, 479, 479, 518, 592, 593, 642, 643, 644,
- 362, 854, 499, 855, 536, 646, 647, 648, 649, 650,
- 651, 594, 652, 653, 654, 856, 595, 746, 747, 748,
- 752, 857, 830, 753, 858, 749, 362, 831, 754, 821,
- 822, 823, 859, 860, 107, 107, 107, 108, 109, 108,
- 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
- 107, 107, 107, 757, 758, 759, 828, 861, 862, 863,
- 829, 760, 864, 865, 866, 867, 868, 869, 870, 871,
- 872, 873, 874, 875, 876, 877, 878, 879, 880, 881,
- 882, 883, 884, 885, 886, 887, 888, 889, 890, 891,
- 892, 893, 894, 895, 896, 897, 898, 899, 900, 901,
- 902, 247, 107, 107, 111, 112, 113, 112, 111, 111,
- 111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
- 111, 843, 842, 841, 840, 839, 838, 837, 836, 835,
- 834, 833, 832, 827, 826, 825, 824, 820, 819, 818,
- 817, 816, 815, 814, 813, 812, 811, 810, 809, 808,
- 807, 806, 805, 804, 803, 802, 801, 800, 799, 798,
- 797, 796, 795, 794, 793, 792, 791, 790, 789, 788,
- 111, 111, 111, 112, 113, 112, 111, 111, 111, 111,
- 111, 111, 111, 111, 111, 111, 111, 111, 111, 787,
- 786, 785, 784, 783, 782, 781, 780, 779, 778, 777,
- 776, 775, 774, 773, 772, 771, 770, 769, 768, 767,
- 766, 765, 764, 763, 762, 761, 756, 755, 751, 750,
- 745, 744, 743, 742, 741, 740, 739, 738, 737, 736,
- 735, 734, 733, 732, 731, 730, 729, 728, 111, 111,
- 69, 69, 69, 69, 69, 73, 73, 73, 73, 73,
- 77, 77, 77, 77, 77, 81, 81, 81, 81, 81,
- 85, 85, 85, 85, 85, 96, 96, 96, 96, 96,
- 97, 97, 97, 97, 97, 102, 102, 102, 102, 102,
- 106, 106, 106, 106, 106, 110, 110, 110, 110, 110,
- 114, 114, 114, 114, 114, 115, 115, 115, 115, 115,
- 120, 727, 120, 120, 120, 131, 131, 220, 726, 220,
- 220, 220, 225, 225, 226, 725, 724, 226, 226, 228,
- 228, 230, 230, 232, 232, 234, 234, 245, 723, 245,
- 245, 245, 722, 721, 720, 719, 718, 717, 716, 715,
- 714, 713, 712, 711, 710, 709, 708, 707, 706, 705,
- 704, 703, 702, 701, 700, 699, 698, 697, 696, 695,
- 694, 693, 692, 691, 690, 689, 688, 687, 686, 685,
- 684, 683, 682, 681, 680, 679, 678, 677, 676, 675,
- 674, 673, 672, 671, 670, 669, 668, 667, 666, 665,
- 664, 663, 662, 661, 660, 659, 658, 657, 656, 655,
- 645, 641, 640, 639, 638, 637, 636, 635, 634, 633,
- 632, 631, 630, 629, 628, 627, 626, 625, 624, 623,
- 622, 621, 620, 619, 618, 617, 616, 615, 614, 613,
- 612, 611, 610, 609, 608, 607, 606, 605, 604, 603,
- 602, 601, 600, 599, 598, 597, 596, 591, 590, 589,
- 588, 587, 586, 585, 584, 583, 582, 581, 580, 579,
- 578, 577, 576, 575, 574, 573, 572, 571, 570, 569,
- 568, 567, 566, 565, 564, 563, 562, 561, 560, 559,
- 558, 557, 556, 555, 554, 553, 552, 551, 550, 549,
- 548, 547, 546, 545, 544, 543, 542, 541, 540, 539,
- 538, 537, 534, 533, 532, 531, 530, 529, 528, 527,
- 526, 525, 524, 523, 522, 521, 520, 519, 516, 515,
- 514, 513, 512, 511, 510, 507, 506, 505, 504, 503,
- 502, 501, 500, 497, 496, 493, 492, 491, 490, 489,
- 488, 487, 486, 485, 484, 483, 482, 481, 480, 477,
- 476, 475, 474, 473, 472, 471, 470, 467, 464, 463,
- 462, 455, 454, 453, 452, 451, 450, 449, 448, 447,
- 446, 445, 444, 443, 442, 441, 440, 439, 438, 437,
- 436, 435, 434, 433, 432, 431, 430, 429, 425, 424,
- 421, 420, 419, 418, 417, 416, 415, 414, 413, 412,
- 411, 410, 407, 403, 402, 401, 400, 399, 398, 397,
- 396, 395, 394, 393, 392, 391, 390, 389, 388, 387,
- 386, 385, 384, 380, 379, 378, 375, 374, 373, 372,
- 371, 370, 369, 368, 367, 366, 365, 364, 363, 360,
- 359, 356, 353, 352, 221, 349, 348, 347, 346, 343,
- 342, 341, 340, 339, 338, 337, 336, 335, 334, 333,
- 332, 331, 322, 319, 318, 317, 316, 315, 314, 310,
- 307, 306, 305, 302, 301, 300, 296, 295, 288, 287,
- 286, 285, 284, 283, 280, 279, 278, 277, 276, 275,
- 274, 273, 272, 271, 268, 267, 266, 265, 261, 260,
- 259, 258, 255, 254, 253, 252, 251, 250, 249, 248,
- 243, 238, 121, 221, 218, 217, 216, 215, 214, 211,
- 210, 202, 166, 163, 153, 127, 121, 903, 27, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903
- } ;
- static yyconst flex_int16_t yy_chk[1398] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 3, 3,
- 3, 3, 4, 4, 4, 4, 5, 5, 5, 6,
- 6, 6, 7, 7, 7, 8, 8, 8, 9, 151,
- 9, 5, 151, 10, 6, 10, 11, 11, 11, 15,
- 15, 12, 12, 12, 814, 11, 11, 11, 11, 11,
- 12, 12, 12, 12, 12, 16, 16, 25, 25, 25,
- 45, 25, 26, 26, 26, 50, 26, 29, 29, 29,
- 30, 30, 30, 32, 32, 50, 63, 48, 32, 33,
- 33, 33, 33, 33, 33, 45, 63, 7, 48, 32,
- 8, 59, 59, 9, 9, 48, 181, 181, 10, 10,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 36, 49, 36,
- 36, 36, 36, 36, 36, 40, 49, 43, 43, 35,
- 815, 35, 35, 35, 35, 35, 35, 51, 55, 40,
- 60, 198, 55, 118, 49, 40, 43, 118, 123, 60,
- 123, 40, 49, 198, 55, 124, 140, 43, 186, 186,
- 40, 35, 124, 49, 51, 140, 13, 13, 14, 14,
- 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
- 14, 14, 14, 14, 14, 35, 37, 39, 172, 37,
- 52, 53, 53, 58, 171, 53, 39, 53, 171, 37,
- 195, 817, 58, 172, 52, 239, 164, 39, 195, 53,
- 70, 70, 70, 53, 239, 37, 52, 38, 71, 71,
- 71, 53, 37, 199, 39, 164, 37, 58, 819, 820,
- 39, 38, 52, 199, 14, 14, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 38, 42, 200, 38, 74, 74, 74,
- 173, 54, 173, 821, 54, 38, 54, 54, 75, 75,
- 75, 42, 188, 54, 200, 54, 197, 54, 396, 197,
- 42, 78, 78, 78, 176, 396, 54, 176, 42, 188,
- 188, 54, 79, 79, 79, 297, 42, 86, 86, 86,
- 176, 297, 17, 17, 18, 18, 18, 18, 18, 18,
- 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
- 18, 100, 100, 100, 101, 101, 101, 104, 104, 104,
- 105, 105, 105, 108, 108, 108, 109, 109, 109, 112,
- 112, 112, 113, 113, 113, 116, 116, 116, 117, 117,
- 117, 119, 119, 119, 126, 126, 126, 126, 126, 126,
- 128, 128, 128, 128, 128, 128, 146, 146, 146, 822,
- 18, 18, 19, 19, 19, 19, 19, 19, 19, 19,
- 19, 19, 19, 19, 19, 19, 19, 19, 19, 129,
- 214, 129, 129, 129, 129, 129, 129, 219, 219, 219,
- 823, 214, 222, 222, 222, 223, 223, 223, 224, 224,
- 224, 227, 227, 227, 229, 229, 229, 231, 231, 231,
- 233, 233, 233, 235, 235, 235, 236, 241, 236, 244,
- 244, 244, 244, 244, 244, 824, 241, 825, 19, 19,
- 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
- 20, 20, 20, 20, 20, 20, 20, 246, 246, 246,
- 246, 246, 246, 263, 267, 313, 263, 294, 246, 246,
- 316, 350, 267, 352, 294, 345, 345, 345, 316, 377,
- 350, 267, 352, 313, 346, 346, 346, 316, 478, 478,
- 478, 478, 478, 478, 246, 246, 361, 361, 377, 294,
- 361, 361, 361, 361, 361, 361, 20, 20, 21, 21,
- 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- 21, 21, 21, 21, 21, 382, 405, 427, 479, 479,
- 479, 479, 479, 479, 405, 502, 502, 556, 556, 556,
- 479, 826, 382, 827, 427, 558, 558, 558, 559, 559,
- 559, 502, 560, 560, 560, 828, 502, 702, 702, 702,
- 706, 829, 795, 706, 830, 702, 479, 795, 706, 786,
- 786, 786, 832, 833, 21, 21, 22, 22, 22, 22,
- 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
- 22, 22, 22, 709, 709, 709, 794, 834, 835, 836,
- 794, 709, 838, 839, 843, 845, 847, 848, 850, 852,
- 855, 856, 857, 858, 859, 860, 864, 866, 867, 869,
- 870, 871, 872, 873, 874, 875, 876, 878, 880, 881,
- 884, 886, 887, 888, 889, 890, 892, 894, 895, 897,
- 900, 926, 22, 22, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 812, 811, 809, 808, 807, 806, 805, 803, 802,
- 800, 797, 796, 792, 791, 789, 787, 785, 784, 783,
- 782, 781, 777, 776, 775, 771, 770, 769, 768, 767,
- 766, 765, 764, 762, 761, 760, 759, 758, 757, 756,
- 755, 754, 753, 752, 751, 750, 749, 748, 747, 746,
- 23, 23, 24, 24, 24, 24, 24, 24, 24, 24,
- 24, 24, 24, 24, 24, 24, 24, 24, 24, 744,
- 743, 742, 741, 739, 737, 736, 735, 734, 732, 730,
- 727, 726, 725, 724, 723, 722, 721, 720, 719, 718,
- 717, 716, 715, 712, 711, 710, 708, 707, 705, 703,
- 700, 699, 698, 697, 696, 694, 693, 692, 690, 689,
- 688, 687, 686, 685, 684, 682, 680, 679, 24, 24,
- 904, 904, 904, 904, 904, 905, 905, 905, 905, 905,
- 906, 906, 906, 906, 906, 907, 907, 907, 907, 907,
- 908, 908, 908, 908, 908, 909, 909, 909, 909, 909,
- 910, 910, 910, 910, 910, 911, 911, 911, 911, 911,
- 912, 912, 912, 912, 912, 913, 913, 913, 913, 913,
- 914, 914, 914, 914, 914, 915, 915, 915, 915, 915,
- 916, 678, 916, 916, 916, 917, 917, 918, 677, 918,
- 918, 918, 919, 919, 920, 676, 675, 920, 920, 921,
- 921, 922, 922, 923, 923, 924, 924, 925, 674, 925,
- 925, 925, 670, 668, 667, 666, 665, 664, 663, 662,
- 661, 658, 645, 641, 639, 638, 637, 635, 634, 632,
- 631, 630, 629, 626, 625, 624, 623, 622, 621, 620,
- 619, 618, 615, 613, 612, 611, 608, 607, 606, 605,
- 603, 602, 601, 600, 599, 598, 597, 595, 594, 593,
- 592, 591, 589, 588, 587, 586, 585, 583, 582, 579,
- 578, 577, 576, 572, 571, 568, 567, 566, 565, 561,
- 557, 551, 550, 549, 548, 547, 546, 545, 544, 543,
- 542, 541, 540, 539, 538, 537, 536, 533, 532, 531,
- 530, 529, 528, 527, 526, 525, 524, 523, 522, 521,
- 520, 519, 518, 517, 516, 515, 514, 513, 512, 511,
- 510, 508, 507, 506, 505, 504, 503, 501, 500, 499,
- 497, 496, 495, 494, 493, 490, 489, 488, 486, 485,
- 484, 483, 482, 481, 480, 477, 476, 475, 474, 473,
- 470, 469, 468, 467, 466, 465, 464, 462, 461, 460,
- 459, 455, 454, 453, 452, 449, 448, 446, 443, 442,
- 441, 440, 439, 437, 436, 435, 433, 432, 431, 430,
- 429, 428, 425, 424, 423, 422, 421, 420, 417, 416,
- 414, 413, 411, 410, 409, 408, 407, 406, 404, 403,
- 402, 401, 400, 399, 398, 395, 393, 392, 389, 387,
- 385, 384, 383, 380, 378, 376, 375, 374, 373, 372,
- 371, 370, 369, 368, 367, 366, 365, 364, 363, 360,
- 359, 358, 357, 356, 355, 354, 353, 351, 349, 348,
- 347, 344, 343, 342, 341, 340, 339, 338, 337, 336,
- 335, 334, 333, 332, 331, 330, 329, 328, 327, 326,
- 325, 324, 323, 322, 321, 320, 319, 317, 315, 314,
- 312, 311, 310, 309, 307, 305, 304, 303, 302, 301,
- 299, 298, 295, 293, 292, 291, 290, 287, 285, 284,
- 283, 281, 280, 279, 276, 275, 274, 273, 272, 271,
- 270, 269, 268, 266, 265, 264, 262, 261, 259, 258,
- 257, 256, 255, 254, 253, 252, 251, 250, 248, 243,
- 242, 240, 238, 237, 220, 218, 217, 216, 215, 213,
- 212, 211, 210, 209, 208, 207, 206, 205, 204, 203,
- 202, 201, 196, 194, 193, 192, 191, 190, 189, 187,
- 185, 184, 182, 180, 179, 177, 175, 174, 170, 169,
- 168, 167, 166, 165, 163, 162, 161, 160, 158, 157,
- 156, 155, 154, 152, 150, 149, 148, 147, 144, 143,
- 142, 141, 139, 138, 137, 136, 135, 134, 133, 132,
- 125, 122, 120, 72, 68, 67, 66, 65, 64, 62,
- 61, 57, 47, 44, 41, 34, 31, 27, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903, 903, 903, 903,
- 903, 903, 903, 903, 903, 903, 903
- } ;
- /* Table of booleans, true if rule could match eol. */
- static yyconst flex_int32_t yy_rule_can_match_eol[236] =
- { 0,
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
- 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0,
- 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
- 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, };
- /* The intent behind this definition is that it'll catch
- * any uses of REJECT which flex missed.
- */
- #define REJECT reject_used_but_not_detected
- #define yymore() yymore_used_but_not_detected
- #define YY_MORE_ADJ 0
- #define YY_RESTORE_YY_MORE_OFFSET
- #line 1 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- #line 2 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- #include "BsParserFX.h"
- #define YY_USER_ACTION yylloc->first_column = yycolumn + 1; yylloc->first_line = yylineno + 1; yycolumn += (int)yyleng; yylloc->filename = getCurrentFilename(yyextra);
- #define YY_USER_INIT yylineno = 0; yycolumn = 0;
- #define YY_NO_UNISTD_H 1
- /* Start conditions */
- #line 1094 "BsLexerFX.c"
- #define INITIAL 0
- #define INCLUDE 1
- #define CODEBLOCK_HEADER 2
- #define CODEBLOCK_EQUALS 3
- #define CODEBLOCK 4
- #define CODEBLOCK_END 5
- #define DEFINE_COND 6
- #define DEFINE_COND_EXPR 7
- #define UNDEF_COND 8
- #define CONDITIONAL_IF 9
- #define CONDITIONAL_IFN 10
- #define CONDITIONAL_ELIF 11
- #define CONDITIONAL_IGNORE 12
- /*windows compatibility case*/
- #include <io.h>
- #define isatty _isatty
- #define fileno _fileno
-
- #define YY_EXTRA_TYPE struct tagParseState *
- /* Holds the entire state of the reentrant scanner. */
- struct yyguts_t
- {
- /* User-defined. Not touched by flex. */
- YY_EXTRA_TYPE yyextra_r;
- /* The rest are the same as the globals declared in the non-reentrant scanner. */
- FILE *yyin_r, *yyout_r;
- size_t yy_buffer_stack_top; /**< index of top of stack. */
- size_t yy_buffer_stack_max; /**< capacity of stack. */
- YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
- char yy_hold_char;
- yy_size_t yy_n_chars;
- yy_size_t yyleng_r;
- char *yy_c_buf_p;
- int yy_init;
- int yy_start;
- int yy_did_buffer_switch_on_eof;
- int yy_start_stack_ptr;
- int yy_start_stack_depth;
- int *yy_start_stack;
- yy_state_type yy_last_accepting_state;
- char* yy_last_accepting_cpos;
- int yylineno_r;
- int yy_flex_debug_r;
- char *yytext_r;
- int yy_more_flag;
- int yy_more_len;
- YYSTYPE * yylval_r;
- YYLTYPE * yylloc_r;
- }; /* end struct yyguts_t */
- static int yy_init_globals (yyscan_t yyscanner );
- /* This must go here because YYSTYPE and YYLTYPE are included
- * from bison output in section 1.*/
- # define yylval yyg->yylval_r
-
- # define yylloc yyg->yylloc_r
-
- int yylex_init (yyscan_t* scanner);
- int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
- /* Accessor methods to globals.
- These are made visible to non-reentrant scanners for convenience. */
- int yylex_destroy (yyscan_t yyscanner );
- int yyget_debug (yyscan_t yyscanner );
- void yyset_debug (int debug_flag ,yyscan_t yyscanner );
- YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
- void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
- FILE *yyget_in (yyscan_t yyscanner );
- void yyset_in (FILE * in_str ,yyscan_t yyscanner );
- FILE *yyget_out (yyscan_t yyscanner );
- void yyset_out (FILE * out_str ,yyscan_t yyscanner );
- yy_size_t yyget_leng (yyscan_t yyscanner );
- char *yyget_text (yyscan_t yyscanner );
- int yyget_lineno (yyscan_t yyscanner );
- void yyset_lineno (int line_number ,yyscan_t yyscanner );
- int yyget_column (yyscan_t yyscanner );
- void yyset_column (int column_no ,yyscan_t yyscanner );
- YYSTYPE * yyget_lval (yyscan_t yyscanner );
- void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
- YYLTYPE *yyget_lloc (yyscan_t yyscanner );
-
- void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
-
- /* Macros after this point can all be overridden by user definitions in
- * section 1.
- */
- #ifndef YY_SKIP_YYWRAP
- #ifdef __cplusplus
- extern "C" int yywrap (yyscan_t yyscanner );
- #else
- extern int yywrap (yyscan_t yyscanner );
- #endif
- #endif
- static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
-
- #ifndef yytext_ptr
- static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
- #endif
- #ifdef YY_NEED_STRLEN
- static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
- #endif
- #ifndef YY_NO_INPUT
- #ifdef __cplusplus
- static int yyinput (yyscan_t yyscanner );
- #else
- static int input (yyscan_t yyscanner );
- #endif
- #endif
- /* Amount of stuff to slurp up with each read. */
- #ifndef YY_READ_BUF_SIZE
- #define YY_READ_BUF_SIZE 8192
- #endif
- /* Copy whatever the last rule matched to the standard output. */
- #ifndef ECHO
- /* This used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite().
- */
- #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
- #endif
- /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
- #ifndef YY_INPUT
- #define YY_INPUT(buf,result,max_size) \
- if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
- { \
- int c = '*'; \
- size_t n; \
- for ( n = 0; n < max_size && \
- (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
- buf[n] = (char) c; \
- if ( c == '\n' ) \
- buf[n++] = (char) c; \
- if ( c == EOF && ferror( yyin ) ) \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- result = n; \
- } \
- else \
- { \
- errno=0; \
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
- { \
- if( errno != EINTR) \
- { \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- break; \
- } \
- errno=0; \
- clearerr(yyin); \
- } \
- }\
- \
- #endif
- /* No semi-colon after return; correct usage is to write "yyterminate();" -
- * we don't want an extra ';' after the "return" because that will cause
- * some compilers to complain about unreachable statements.
- */
- #ifndef yyterminate
- #define yyterminate() return YY_NULL
- #endif
- /* Number of entries by which start-condition stack grows. */
- #ifndef YY_START_STACK_INCR
- #define YY_START_STACK_INCR 25
- #endif
- /* Report a fatal error. */
- #ifndef YY_FATAL_ERROR
- #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
- #endif
- /* end tables serialization structures and prototypes */
- /* Default declaration of generated scanner - a define so the user can
- * easily add parameters.
- */
- #ifndef YY_DECL
- #define YY_DECL_IS_OURS 1
- extern int yylex \
- (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
- #define YY_DECL int yylex \
- (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
- #endif /* !YY_DECL */
- /* Code executed at the beginning of each rule, after yytext and yyleng
- * have been set up.
- */
- #ifndef YY_USER_ACTION
- #define YY_USER_ACTION
- #endif
- /* Code executed at the end of each rule. */
- #ifndef YY_BREAK
- #define YY_BREAK break;
- #endif
- #define YY_RULE_SETUP \
- YY_USER_ACTION
- /** The main scanner function which does all the work.
- */
- YY_DECL
- {
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- #line 38 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- #line 1349 "BsLexerFX.c"
- yylval = yylval_param;
- yylloc = yylloc_param;
- if ( !yyg->yy_init )
- {
- yyg->yy_init = 1;
- #ifdef YY_USER_INIT
- YY_USER_INIT;
- #endif
- if ( ! yyg->yy_start )
- yyg->yy_start = 1; /* first start state */
- if ( ! yyin )
- yyin = stdin;
- if ( ! yyout )
- yyout = stdout;
- if ( ! YY_CURRENT_BUFFER ) {
- yyensure_buffer_stack (yyscanner);
- YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
- }
- yy_load_buffer_state(yyscanner );
- }
- while ( 1 ) /* loops until end-of-file is reached */
- {
- yy_cp = yyg->yy_c_buf_p;
- /* Support of yytext. */
- *yy_cp = yyg->yy_hold_char;
- /* yy_bp points to the position in yy_ch_buf of the start of
- * the current run.
- */
- yy_bp = yy_cp;
- yy_current_state = yyg->yy_start;
- yy_match:
- do
- {
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 904 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- ++yy_cp;
- }
- while ( yy_current_state != 903 );
- yy_cp = yyg->yy_last_accepting_cpos;
- yy_current_state = yyg->yy_last_accepting_state;
- yy_find_action:
- yy_act = yy_accept[yy_current_state];
- YY_DO_BEFORE_ACTION;
- if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
- {
- yy_size_t yyl;
- for ( yyl = 0; yyl < yyleng; ++yyl )
- if ( yytext[yyl] == '\n' )
-
- do{ yylineno++;
- yycolumn=0;
- }while(0)
- ;
- }
- do_action: /* This label is used only to access EOF actions. */
- switch ( yy_act )
- { /* beginning of action switch */
- case 0: /* must back up */
- /* undo the effects of YY_DO_BEFORE_ACTION */
- *yy_cp = yyg->yy_hold_char;
- yy_cp = yyg->yy_last_accepting_cpos;
- yy_current_state = yyg->yy_last_accepting_state;
- goto yy_find_action;
- case 1:
- /* rule 1 can match eol */
- YY_RULE_SETUP
- #line 40 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 2:
- YY_RULE_SETUP
- #line 41 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = atoi(yytext); return TOKEN_INTEGER; }
- YY_BREAK
- case 3:
- YY_RULE_SETUP
- #line 42 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = (int)strtol(yytext, 0, 0); return TOKEN_INTEGER; }
- YY_BREAK
- case 4:
- YY_RULE_SETUP
- #line 43 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->floatValue = (float)atof(yytext); return TOKEN_FLOAT; }
- YY_BREAK
- case 5:
- YY_RULE_SETUP
- #line 44 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->strValue = mmalloc_strdup(yyextra->memContext, yytext); return TOKEN_STRING; }
- YY_BREAK
- case 6:
- YY_RULE_SETUP
- #line 45 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 1; return TOKEN_BOOLEAN; }
- YY_BREAK
- case 7:
- YY_RULE_SETUP
- #line 46 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0; return TOKEN_BOOLEAN; }
- YY_BREAK
- /* Value types */
- case 8:
- YY_RULE_SETUP
- #line 50 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Int; return TOKEN_INTTYPE; }
- YY_BREAK
- case 9:
- YY_RULE_SETUP
- #line 51 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Int2; return TOKEN_INT2TYPE; }
- YY_BREAK
- case 10:
- YY_RULE_SETUP
- #line 52 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Int3; return TOKEN_INT3TYPE; }
- YY_BREAK
- case 11:
- YY_RULE_SETUP
- #line 53 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Int4; return TOKEN_INT4TYPE; }
- YY_BREAK
- case 12:
- YY_RULE_SETUP
- #line 55 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Float; return TOKEN_FLOATTYPE; }
- YY_BREAK
- case 13:
- YY_RULE_SETUP
- #line 56 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Float2; return TOKEN_FLOAT2TYPE; }
- YY_BREAK
- case 14:
- YY_RULE_SETUP
- #line 57 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Float3; return TOKEN_FLOAT3TYPE; }
- YY_BREAK
- case 15:
- YY_RULE_SETUP
- #line 58 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Float4; return TOKEN_FLOAT4TYPE; }
- YY_BREAK
- case 16:
- YY_RULE_SETUP
- #line 59 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Color; return TOKEN_COLORTYPE; }
- YY_BREAK
- case 17:
- YY_RULE_SETUP
- #line 61 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat2x2; return TOKEN_MAT2x2TYPE; }
- YY_BREAK
- case 18:
- YY_RULE_SETUP
- #line 62 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat2x3; return TOKEN_MAT2x3TYPE; }
- YY_BREAK
- case 19:
- YY_RULE_SETUP
- #line 63 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat2x4; return TOKEN_MAT2x4TYPE; }
- YY_BREAK
- case 20:
- YY_RULE_SETUP
- #line 65 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat3x2; return TOKEN_MAT3x2TYPE; }
- YY_BREAK
- case 21:
- YY_RULE_SETUP
- #line 66 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat3x3; return TOKEN_MAT3x3TYPE; }
- YY_BREAK
- case 22:
- YY_RULE_SETUP
- #line 67 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat3x4; return TOKEN_MAT3x4TYPE; }
- YY_BREAK
- case 23:
- YY_RULE_SETUP
- #line 69 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat4x2; return TOKEN_MAT4x2TYPE; }
- YY_BREAK
- case 24:
- YY_RULE_SETUP
- #line 70 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat4x3; return TOKEN_MAT4x3TYPE; }
- YY_BREAK
- case 25:
- YY_RULE_SETUP
- #line 71 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Mat4x4; return TOKEN_MAT4x4TYPE; }
- YY_BREAK
- case 26:
- YY_RULE_SETUP
- #line 73 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Sampler1D; return TOKEN_SAMPLER1D; }
- YY_BREAK
- case 27:
- YY_RULE_SETUP
- #line 74 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Sampler2D; return TOKEN_SAMPLER2D; }
- YY_BREAK
- case 28:
- YY_RULE_SETUP
- #line 75 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Sampler3D; return TOKEN_SAMPLER3D; }
- YY_BREAK
- case 29:
- YY_RULE_SETUP
- #line 76 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_SamplerCUBE; return TOKEN_SAMPLERCUBE; }
- YY_BREAK
- case 30:
- YY_RULE_SETUP
- #line 77 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Sampler2DMS; return TOKEN_SAMPLER2DMS; }
- YY_BREAK
- case 31:
- YY_RULE_SETUP
- #line 79 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Texture1D; return TOKEN_TEXTURE1D; }
- YY_BREAK
- case 32:
- YY_RULE_SETUP
- #line 80 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Texture2D; return TOKEN_TEXTURE2D; }
- YY_BREAK
- case 33:
- YY_RULE_SETUP
- #line 81 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Texture3D; return TOKEN_TEXTURE3D; }
- YY_BREAK
- case 34:
- YY_RULE_SETUP
- #line 82 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_TextureCUBE; return TOKEN_TEXTURECUBE; }
- YY_BREAK
- case 35:
- YY_RULE_SETUP
- #line 83 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_Texture2DMS; return TOKEN_TEXTURE2DMS; }
- YY_BREAK
- case 36:
- YY_RULE_SETUP
- #line 85 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_RWTexture1D; return TOKEN_RWTEXTURE1D; }
- YY_BREAK
- case 37:
- YY_RULE_SETUP
- #line 86 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_RWTexture2D; return TOKEN_RWTEXTURE2D; }
- YY_BREAK
- case 38:
- YY_RULE_SETUP
- #line 87 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_RWTexture3D; return TOKEN_RWTEXTURE3D; }
- YY_BREAK
- case 39:
- YY_RULE_SETUP
- #line 88 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_RWTexture2DMS; return TOKEN_RWTEXTURE2DMS; }
- YY_BREAK
- case 40:
- YY_RULE_SETUP
- #line 90 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_ByteBuffer; return TOKEN_BYTEBUFFER; }
- YY_BREAK
- case 41:
- YY_RULE_SETUP
- #line 91 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_StructBuffer; return TOKEN_STRUCTBUFFER; }
- YY_BREAK
- case 42:
- YY_RULE_SETUP
- #line 93 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_TypedBufferRW; return TOKEN_RWTYPEDBUFFER; }
- YY_BREAK
- case 43:
- YY_RULE_SETUP
- #line 94 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_ByteBufferRW; return TOKEN_RWBYTEBUFFER; }
- YY_BREAK
- case 44:
- YY_RULE_SETUP
- #line 95 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_StructBufferRW; return TOKEN_RWSTRUCTBUFFER; }
- YY_BREAK
- case 45:
- YY_RULE_SETUP
- #line 96 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_AppendBuffer; return TOKEN_RWAPPENDBUFFER; }
- YY_BREAK
- case 46:
- YY_RULE_SETUP
- #line 97 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = PT_ConsumeBuffer; return TOKEN_RWCONSUMEBUFFER; }
- YY_BREAK
- case 47:
- YY_RULE_SETUP
- #line 99 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_PARAMSBLOCK; }
- YY_BREAK
- /* Shader keywords */
- case 48:
- YY_RULE_SETUP
- #line 102 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_SEPARABLE; }
- YY_BREAK
- case 49:
- YY_RULE_SETUP
- #line 103 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_SORT; }
- YY_BREAK
- case 50:
- YY_RULE_SETUP
- #line 104 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_PRIORITY; }
- YY_BREAK
- case 51:
- YY_RULE_SETUP
- #line 105 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_TRANSPARENT; }
- YY_BREAK
- case 52:
- YY_RULE_SETUP
- #line 106 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_TECHNIQUE; }
- YY_BREAK
- case 53:
- YY_RULE_SETUP
- #line 107 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_PARAMETERS; }
- YY_BREAK
- case 54:
- YY_RULE_SETUP
- #line 108 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_BLOCKS; }
- YY_BREAK
- /* Technique keywords */
- case 55:
- YY_RULE_SETUP
- #line 111 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_RENDERER; }
- YY_BREAK
- case 56:
- YY_RULE_SETUP
- #line 112 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_LANGUAGE; }
- YY_BREAK
- case 57:
- YY_RULE_SETUP
- #line 113 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_TAGS; }
- YY_BREAK
- case 58:
- YY_RULE_SETUP
- #line 114 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_PASS; }
- YY_BREAK
- /* Pass keywords */
- case 59:
- YY_RULE_SETUP
- #line 117 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_STENCILREF; }
- YY_BREAK
- /* Rasterizer state keywords */
- case 60:
- YY_RULE_SETUP
- #line 120 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_FILLMODE; }
- YY_BREAK
- case 61:
- YY_RULE_SETUP
- #line 121 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_CULLMODE; }
- YY_BREAK
- case 62:
- YY_RULE_SETUP
- #line 122 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_DEPTHBIAS; }
- YY_BREAK
- case 63:
- YY_RULE_SETUP
- #line 123 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_SDEPTHBIAS; }
- YY_BREAK
- case 64:
- YY_RULE_SETUP
- #line 124 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_DEPTHCLIP; }
- YY_BREAK
- case 65:
- YY_RULE_SETUP
- #line 125 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_SCISSOR; }
- YY_BREAK
- case 66:
- YY_RULE_SETUP
- #line 126 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MULTISAMPLE; }
- YY_BREAK
- case 67:
- YY_RULE_SETUP
- #line 127 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_AALINE; }
- YY_BREAK
- /* Depth-stencil state keywords */
- case 68:
- YY_RULE_SETUP
- #line 130 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_DEPTHREAD; }
- YY_BREAK
- case 69:
- YY_RULE_SETUP
- #line 131 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_DEPTHWRITE; }
- YY_BREAK
- case 70:
- YY_RULE_SETUP
- #line 132 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_COMPAREFUNC; }
- YY_BREAK
- case 71:
- YY_RULE_SETUP
- #line 133 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_STENCIL; }
- YY_BREAK
- case 72:
- YY_RULE_SETUP
- #line 134 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_STENCILREADMASK; }
- YY_BREAK
- case 73:
- YY_RULE_SETUP
- #line 135 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_STENCILWRITEMASK; }
- YY_BREAK
- case 74:
- YY_RULE_SETUP
- #line 136 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_STENCILOPFRONT; }
- YY_BREAK
- case 75:
- YY_RULE_SETUP
- #line 137 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_STENCILOPBACK; }
- YY_BREAK
- case 76:
- YY_RULE_SETUP
- #line 138 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_FAIL; }
- YY_BREAK
- case 77:
- YY_RULE_SETUP
- #line 139 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_ZFAIL; }
- YY_BREAK
- /* Blend state keywords */
- case 78:
- YY_RULE_SETUP
- #line 142 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_ALPHATOCOVERAGE; }
- YY_BREAK
- case 79:
- YY_RULE_SETUP
- #line 143 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_INDEPENDANTBLEND; }
- YY_BREAK
- case 80:
- YY_RULE_SETUP
- #line 144 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_TARGET; }
- YY_BREAK
- case 81:
- YY_RULE_SETUP
- #line 145 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_INDEX; }
- YY_BREAK
- case 82:
- YY_RULE_SETUP
- #line 146 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_BLEND; }
- YY_BREAK
- case 83:
- YY_RULE_SETUP
- #line 147 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_COLOR; }
- YY_BREAK
- case 84:
- YY_RULE_SETUP
- #line 148 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_ALPHA; }
- YY_BREAK
- case 85:
- YY_RULE_SETUP
- #line 149 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_WRITEMASK; }
- YY_BREAK
- case 86:
- YY_RULE_SETUP
- #line 150 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_SOURCE; }
- YY_BREAK
- case 87:
- YY_RULE_SETUP
- #line 151 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_DEST; }
- YY_BREAK
- case 88:
- YY_RULE_SETUP
- #line 152 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_OP; }
- YY_BREAK
- /* Sampler state keywords */
- case 89:
- YY_RULE_SETUP
- #line 155 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_ADDRMODE; }
- YY_BREAK
- case 90:
- YY_RULE_SETUP
- #line 156 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MINFILTER; }
- YY_BREAK
- case 91:
- YY_RULE_SETUP
- #line 157 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MAGFILTER; }
- YY_BREAK
- case 92:
- YY_RULE_SETUP
- #line 158 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MIPFILTER; }
- YY_BREAK
- case 93:
- YY_RULE_SETUP
- #line 159 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MAXANISO; }
- YY_BREAK
- case 94:
- YY_RULE_SETUP
- #line 160 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MIPBIAS; }
- YY_BREAK
- case 95:
- YY_RULE_SETUP
- #line 161 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MIPMIN; }
- YY_BREAK
- case 96:
- YY_RULE_SETUP
- #line 162 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_MIPMAX; }
- YY_BREAK
- case 97:
- YY_RULE_SETUP
- #line 163 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_BORDERCOLOR; }
- YY_BREAK
- case 98:
- YY_RULE_SETUP
- #line 164 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_U; }
- YY_BREAK
- case 99:
- YY_RULE_SETUP
- #line 165 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_V; }
- YY_BREAK
- case 100:
- YY_RULE_SETUP
- #line 166 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_W; }
- YY_BREAK
- /* Qualifiers */
- case 101:
- YY_RULE_SETUP
- #line 169 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_AUTO; }
- YY_BREAK
- case 102:
- YY_RULE_SETUP
- #line 170 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_ALIAS; }
- YY_BREAK
- case 103:
- YY_RULE_SETUP
- #line 171 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_SHARED; }
- YY_BREAK
- case 104:
- YY_RULE_SETUP
- #line 172 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_USAGE; }
- YY_BREAK
- case 105:
- YY_RULE_SETUP
- #line 173 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_BASE; }
- YY_BREAK
- case 106:
- YY_RULE_SETUP
- #line 174 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return TOKEN_INHERITS; }
- YY_BREAK
- /* State values */
- case 107:
- YY_RULE_SETUP
- #line 177 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FMV_Wire; return TOKEN_FILLMODEVALUE; }
- YY_BREAK
- case 108:
- YY_RULE_SETUP
- #line 178 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FMV_Solid; return TOKEN_FILLMODEVALUE; }
- YY_BREAK
- case 109:
- YY_RULE_SETUP
- #line 180 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CMV_None; return TOKEN_CULLMODEVALUE; }
- YY_BREAK
- case 110:
- YY_RULE_SETUP
- #line 181 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CMV_CW; return TOKEN_CULLMODEVALUE; }
- YY_BREAK
- case 111:
- YY_RULE_SETUP
- #line 182 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CMV_CCW; return TOKEN_CULLMODEVALUE; }
- YY_BREAK
- case 112:
- YY_RULE_SETUP
- #line 184 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_Fail; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 113:
- YY_RULE_SETUP
- #line 185 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_Pass; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 114:
- YY_RULE_SETUP
- #line 186 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_LT; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 115:
- YY_RULE_SETUP
- #line 187 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_LTE; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 116:
- YY_RULE_SETUP
- #line 188 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_EQ; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 117:
- YY_RULE_SETUP
- #line 189 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_NEQ; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 118:
- YY_RULE_SETUP
- #line 190 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_GTE; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 119:
- YY_RULE_SETUP
- #line 191 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = CFV_GT; return TOKEN_COMPFUNCVALUE; }
- YY_BREAK
- case 120:
- YY_RULE_SETUP
- #line 193 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_Keep; return TOKEN_OPVALUE; }
- YY_BREAK
- case 121:
- YY_RULE_SETUP
- #line 194 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_Zero; return TOKEN_OPVALUE; }
- YY_BREAK
- case 122:
- YY_RULE_SETUP
- #line 195 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_Replace; return TOKEN_OPVALUE; }
- YY_BREAK
- case 123:
- YY_RULE_SETUP
- #line 196 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_Incr; return TOKEN_OPVALUE; }
- YY_BREAK
- case 124:
- YY_RULE_SETUP
- #line 197 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_Decr; return TOKEN_OPVALUE; }
- YY_BREAK
- case 125:
- YY_RULE_SETUP
- #line 198 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_IncrWrap; return TOKEN_OPVALUE; }
- YY_BREAK
- case 126:
- YY_RULE_SETUP
- #line 199 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_DecrWrap; return TOKEN_OPVALUE; }
- YY_BREAK
- case 127:
- YY_RULE_SETUP
- #line 200 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_Invert; return TOKEN_OPVALUE; }
- YY_BREAK
- case 128:
- YY_RULE_SETUP
- #line 201 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_One; return TOKEN_OPVALUE; }
- YY_BREAK
- case 129:
- YY_RULE_SETUP
- #line 202 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_DestColor; return TOKEN_OPVALUE; }
- YY_BREAK
- case 130:
- YY_RULE_SETUP
- #line 203 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_SrcColor; return TOKEN_OPVALUE; }
- YY_BREAK
- case 131:
- YY_RULE_SETUP
- #line 204 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_InvDestColor; return TOKEN_OPVALUE; }
- YY_BREAK
- case 132:
- YY_RULE_SETUP
- #line 205 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_InvSrcColor; return TOKEN_OPVALUE; }
- YY_BREAK
- case 133:
- YY_RULE_SETUP
- #line 206 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_DestAlpha; return TOKEN_OPVALUE; }
- YY_BREAK
- case 134:
- YY_RULE_SETUP
- #line 207 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_SrcAlpha; return TOKEN_OPVALUE; }
- YY_BREAK
- case 135:
- YY_RULE_SETUP
- #line 208 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_InvDestAlpha; return TOKEN_OPVALUE; }
- YY_BREAK
- case 136:
- YY_RULE_SETUP
- #line 209 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = OV_InvSrcAlpha; return TOKEN_OPVALUE; }
- YY_BREAK
- case 137:
- YY_RULE_SETUP
- #line 211 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = BOV_Add; return TOKEN_BLENDOPVALUE; }
- YY_BREAK
- case 138:
- YY_RULE_SETUP
- #line 212 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = BOV_Subtract; return TOKEN_BLENDOPVALUE; }
- YY_BREAK
- case 139:
- YY_RULE_SETUP
- #line 213 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = BOV_RevSubtract; return TOKEN_BLENDOPVALUE; }
- YY_BREAK
- case 140:
- YY_RULE_SETUP
- #line 214 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = BOV_Min; return TOKEN_BLENDOPVALUE; }
- YY_BREAK
- case 141:
- YY_RULE_SETUP
- #line 215 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = BOV_Max; return TOKEN_BLENDOPVALUE; }
- YY_BREAK
- case 142:
- YY_RULE_SETUP
- #line 217 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x0; return TOKEN_COLORMASK; }
- YY_BREAK
- case 143:
- YY_RULE_SETUP
- #line 218 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x1; return TOKEN_COLORMASK; }
- YY_BREAK
- case 144:
- YY_RULE_SETUP
- #line 219 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x2; return TOKEN_COLORMASK; }
- YY_BREAK
- case 145:
- YY_RULE_SETUP
- #line 220 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x4; return TOKEN_COLORMASK; }
- YY_BREAK
- case 146:
- YY_RULE_SETUP
- #line 221 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x8; return TOKEN_COLORMASK; }
- YY_BREAK
- case 147:
- YY_RULE_SETUP
- #line 222 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x3; return TOKEN_COLORMASK; }
- YY_BREAK
- case 148:
- YY_RULE_SETUP
- #line 223 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x5; return TOKEN_COLORMASK; }
- YY_BREAK
- case 149:
- YY_RULE_SETUP
- #line 224 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x9; return TOKEN_COLORMASK; }
- YY_BREAK
- case 150:
- YY_RULE_SETUP
- #line 225 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x6; return TOKEN_COLORMASK; }
- YY_BREAK
- case 151:
- YY_RULE_SETUP
- #line 226 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0xA; return TOKEN_COLORMASK; }
- YY_BREAK
- case 152:
- YY_RULE_SETUP
- #line 227 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0xC; return TOKEN_COLORMASK; }
- YY_BREAK
- case 153:
- YY_RULE_SETUP
- #line 228 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0x7; return TOKEN_COLORMASK; }
- YY_BREAK
- case 154:
- YY_RULE_SETUP
- #line 229 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0xB; return TOKEN_COLORMASK; }
- YY_BREAK
- case 155:
- YY_RULE_SETUP
- #line 230 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0xD; return TOKEN_COLORMASK; }
- YY_BREAK
- case 156:
- YY_RULE_SETUP
- #line 231 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0xE; return TOKEN_COLORMASK; }
- YY_BREAK
- case 157:
- YY_RULE_SETUP
- #line 232 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = 0xF; return TOKEN_COLORMASK; }
- YY_BREAK
- case 158:
- YY_RULE_SETUP
- #line 234 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = AMV_Wrap; return TOKEN_ADDRMODEVALUE; }
- YY_BREAK
- case 159:
- YY_RULE_SETUP
- #line 235 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = AMV_Mirror; return TOKEN_ADDRMODEVALUE; }
- YY_BREAK
- case 160:
- YY_RULE_SETUP
- #line 236 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = AMV_Clamp; return TOKEN_ADDRMODEVALUE; }
- YY_BREAK
- case 161:
- YY_RULE_SETUP
- #line 237 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = AMV_Border; return TOKEN_ADDRMODEVALUE; }
- YY_BREAK
- case 162:
- YY_RULE_SETUP
- #line 239 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FV_None; return TOKEN_FILTERVALUE; }
- YY_BREAK
- case 163:
- YY_RULE_SETUP
- #line 240 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FV_Point; return TOKEN_FILTERVALUE; }
- YY_BREAK
- case 164:
- YY_RULE_SETUP
- #line 241 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FV_Linear; return TOKEN_FILTERVALUE; }
- YY_BREAK
- case 165:
- YY_RULE_SETUP
- #line 242 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FV_Anisotropic; return TOKEN_FILTERVALUE; }
- YY_BREAK
- case 166:
- YY_RULE_SETUP
- #line 243 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FV_PointCmp; return TOKEN_FILTERVALUE; }
- YY_BREAK
- case 167:
- YY_RULE_SETUP
- #line 244 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FV_LinearCmp; return TOKEN_FILTERVALUE; }
- YY_BREAK
- case 168:
- YY_RULE_SETUP
- #line 245 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = FV_AnisotropicCmp; return TOKEN_FILTERVALUE; }
- YY_BREAK
- case 169:
- YY_RULE_SETUP
- #line 247 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = BUV_Static; return TOKEN_BUFFERUSAGE; }
- YY_BREAK
- case 170:
- YY_RULE_SETUP
- #line 248 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = BUV_Dynamic; return TOKEN_BUFFERUSAGE; }
- YY_BREAK
- case 171:
- YY_RULE_SETUP
- #line 250 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = QST_FrontToBack; return TOKEN_QUEUETYPE; }
- YY_BREAK
- case 172:
- YY_RULE_SETUP
- #line 251 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = QST_BackToFront; return TOKEN_QUEUETYPE; }
- YY_BREAK
- case 173:
- YY_RULE_SETUP
- #line 252 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = QST_None; return TOKEN_QUEUETYPE; }
- YY_BREAK
- /* Preprocessor */
- case 174:
- YY_RULE_SETUP
- #line 255 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(INCLUDE); }
- YY_BREAK
- case 175:
- /* rule 175 can match eol */
- YY_RULE_SETUP
- #line 257 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 176:
- YY_RULE_SETUP
- #line 258 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- int size = 0;
- char* includeBuffer = includePush(yyextra, yytext, yylineno, yycolumn, &size);
- if(!includeBuffer)
- yyterminate();
- YY_BUFFER_STATE currentBuffer = YY_CURRENT_BUFFER;
- YY_BUFFER_STATE newBuffer = yy_scan_buffer(includeBuffer,size,yyscanner);
- yy_switch_to_buffer(currentBuffer,yyscanner);
- yypush_buffer_state(newBuffer,yyscanner);
- yylineno = 0;
- yycolumn = 0;
- BEGIN(INITIAL);
- }
- YY_BREAK
- case 177:
- YY_RULE_SETUP
- #line 275 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case YY_STATE_EOF(INITIAL):
- case YY_STATE_EOF(INCLUDE):
- case YY_STATE_EOF(CODEBLOCK_HEADER):
- case YY_STATE_EOF(CODEBLOCK_EQUALS):
- case YY_STATE_EOF(CODEBLOCK):
- case YY_STATE_EOF(CODEBLOCK_END):
- case YY_STATE_EOF(DEFINE_COND):
- case YY_STATE_EOF(DEFINE_COND_EXPR):
- case YY_STATE_EOF(UNDEF_COND):
- case YY_STATE_EOF(CONDITIONAL_IF):
- case YY_STATE_EOF(CONDITIONAL_IFN):
- case YY_STATE_EOF(CONDITIONAL_ELIF):
- case YY_STATE_EOF(CONDITIONAL_IGNORE):
- #line 277 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- if(!yyextra->includeStack)
- yyterminate();
- yypop_buffer_state(yyscanner);
- includePop(yyextra);
- }
- YY_BREAK
- case 178:
- YY_RULE_SETUP
- #line 285 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(DEFINE_COND); }
- YY_BREAK
- case 179:
- YY_RULE_SETUP
- #line 286 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 180:
- YY_RULE_SETUP
- #line 287 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { addDefine(yyextra, yytext); BEGIN(DEFINE_COND_EXPR); }
- YY_BREAK
- case 181:
- /* rule 181 can match eol */
- YY_RULE_SETUP
- #line 288 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(INITIAL); }
- YY_BREAK
- case 182:
- YY_RULE_SETUP
- #line 289 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case 183:
- YY_RULE_SETUP
- #line 291 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { addDefineExpr(yyextra, yytext); BEGIN(INITIAL); }
- YY_BREAK
- case 184:
- /* rule 184 can match eol */
- YY_RULE_SETUP
- #line 292 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(INITIAL); }
- YY_BREAK
- case 185:
- YY_RULE_SETUP
- #line 294 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(UNDEF_COND); }
- YY_BREAK
- case 186:
- /* rule 186 can match eol */
- YY_RULE_SETUP
- #line 295 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 187:
- YY_RULE_SETUP
- #line 296 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { removeDefine(yyextra, yytext); BEGIN(INITIAL); }
- YY_BREAK
- case 188:
- YY_RULE_SETUP
- #line 297 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case 189:
- YY_RULE_SETUP
- #line 299 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CONDITIONAL_IF); }
- YY_BREAK
- case 190:
- /* rule 190 can match eol */
- YY_RULE_SETUP
- #line 300 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 191:
- YY_RULE_SETUP
- #line 301 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- int isEnabled = pushConditional(yyextra, hasDefine(yyextra, yytext));
- if(!isEnabled)
- BEGIN(CONDITIONAL_IGNORE);
- else
- BEGIN(INITIAL);
- }
- YY_BREAK
- case 192:
- YY_RULE_SETUP
- #line 308 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case 193:
- YY_RULE_SETUP
- #line 310 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CONDITIONAL_IFN); }
- YY_BREAK
- case 194:
- /* rule 194 can match eol */
- YY_RULE_SETUP
- #line 311 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 195:
- YY_RULE_SETUP
- #line 312 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- int isEnabled = pushConditional(yyextra, !hasDefine(yyextra, yytext));
- if(!isEnabled)
- BEGIN(CONDITIONAL_IGNORE);
- else
- BEGIN(INITIAL);
- }
- YY_BREAK
- case 196:
- YY_RULE_SETUP
- #line 319 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case 197:
- YY_RULE_SETUP
- #line 321 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CONDITIONAL_IGNORE); }
- YY_BREAK
- case 198:
- YY_RULE_SETUP
- #line 322 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CONDITIONAL_IGNORE); }
- YY_BREAK
- case 199:
- YY_RULE_SETUP
- #line 324 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { popConditional(yyextra); }
- YY_BREAK
- case 200:
- /* rule 200 can match eol */
- YY_RULE_SETUP
- #line 326 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip */ }
- YY_BREAK
- case 201:
- YY_RULE_SETUP
- #line 327 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { pushConditional(yyextra, 0); }
- YY_BREAK
- case 202:
- YY_RULE_SETUP
- #line 328 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { pushConditional(yyextra, 0); }
- YY_BREAK
- case 203:
- YY_RULE_SETUP
- #line 329 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- if(switchConditional(yyextra))
- BEGIN(INITIAL);
- }
- YY_BREAK
- case 204:
- YY_RULE_SETUP
- #line 333 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CONDITIONAL_ELIF); }
- YY_BREAK
- case 205:
- YY_RULE_SETUP
- #line 334 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- if(popConditional(yyextra))
- BEGIN(INITIAL);
- }
- YY_BREAK
- case 206:
- YY_RULE_SETUP
- #line 338 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip */ }
- YY_BREAK
- case 207:
- /* rule 207 can match eol */
- YY_RULE_SETUP
- #line 340 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 208:
- YY_RULE_SETUP
- #line 341 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- int isEnabled = setConditional(yyextra, hasDefine(yyextra, yytext));
- if(!isEnabled)
- BEGIN(CONDITIONAL_IGNORE);
- else
- BEGIN(INITIAL);
- }
- YY_BREAK
- case 209:
- YY_RULE_SETUP
- #line 348 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- /* Code blocks */
- case 210:
- YY_RULE_SETUP
- #line 351 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_HEADER); return TOKEN_VERTEX; }
- YY_BREAK
- case 211:
- YY_RULE_SETUP
- #line 352 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_HEADER); return TOKEN_FRAGMENT; }
- YY_BREAK
- case 212:
- YY_RULE_SETUP
- #line 353 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_HEADER); return TOKEN_GEOMETRY; }
- YY_BREAK
- case 213:
- YY_RULE_SETUP
- #line 354 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_HEADER); return TOKEN_HULL; }
- YY_BREAK
- case 214:
- YY_RULE_SETUP
- #line 355 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_HEADER); return TOKEN_DOMAIN; }
- YY_BREAK
- case 215:
- YY_RULE_SETUP
- #line 356 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_HEADER); return TOKEN_COMPUTE; }
- YY_BREAK
- case 216:
- YY_RULE_SETUP
- #line 357 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_HEADER); return TOKEN_COMMON; }
- YY_BREAK
- /* Track when the code block begins, insert all code block characters into our own buffer, record a sequential index */
- /* of all code blocks in the text, and track bracket open/closed state so we know when we're done with the code block. */
- /* And finally output a sequential code block index to the parser (it shouldn't be aware of anything else in the block). */
- case 217:
- YY_RULE_SETUP
- #line 362 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK_EQUALS); return yytext[0]; }
- YY_BREAK
- case 218:
- /* rule 218 can match eol */
- YY_RULE_SETUP
- #line 363 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 219:
- YY_RULE_SETUP
- #line 364 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case 220:
- YY_RULE_SETUP
- #line 366 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(CODEBLOCK); beginCodeBlock(yyextra); yyextra->numOpenBrackets = 1; return yytext[0]; }
- YY_BREAK
- case 221:
- /* rule 221 can match eol */
- YY_RULE_SETUP
- #line 367 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Skip blank */ }
- YY_BREAK
- case 222:
- YY_RULE_SETUP
- #line 368 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case 223:
- YY_RULE_SETUP
- #line 370 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yyextra->numOpenBrackets++; appendCodeBlock(yyextra, yytext, 1); }
- YY_BREAK
- case 224:
- YY_RULE_SETUP
- #line 371 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- {
- yyextra->numOpenBrackets--;
- if(yyextra->numOpenBrackets == 0)
- {
- BEGIN(CODEBLOCK_END);
- unput('0');
- }
- else
- appendCodeBlock(yyextra, yytext, 1);
- }
- YY_BREAK
- case 225:
- /* rule 225 can match eol */
- YY_RULE_SETUP
- #line 382 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { appendCodeBlock(yyextra, yytext, 1); }
- YY_BREAK
- /* Logic for manually inserting "Index = codeBlockIndex;". We insert arbitrary numbers which allows us to sequentially */
- /* output all the tokens we need. We use only single-character values so we don't override anything in the text buffer */
- /* (since the starting value was also a single character "{"). */
- case 226:
- YY_RULE_SETUP
- #line 387 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { unput('1'); return TOKEN_INDEX; }
- YY_BREAK
- case 227:
- YY_RULE_SETUP
- #line 388 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { unput('2'); return '='; }
- YY_BREAK
- case 228:
- YY_RULE_SETUP
- #line 389 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->intValue = getCodeBlockIndex(yyextra); unput('3'); return TOKEN_INTEGER; }
- YY_BREAK
- case 229:
- YY_RULE_SETUP
- #line 390 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { unput('4'); return ';'; }
- YY_BREAK
- case 230:
- YY_RULE_SETUP
- #line 391 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { BEGIN(INITIAL); return '}'; }
- YY_BREAK
- case 231:
- /* rule 231 can match eol */
- YY_RULE_SETUP
- #line 392 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { /* Never reached */ }
- YY_BREAK
- /* Catch all rules */
- case 232:
- YY_RULE_SETUP
- #line 395 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { }
- YY_BREAK
- case 233:
- YY_RULE_SETUP
- #line 396 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { yylval->strValue = mmalloc_strdup(yyextra->memContext, yytext); return TOKEN_IDENTIFIER; }
- YY_BREAK
- case 234:
- YY_RULE_SETUP
- #line 397 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- { return yytext[0]; }
- YY_BREAK
- case 235:
- YY_RULE_SETUP
- #line 399 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
- YY_FATAL_ERROR( "flex scanner jammed" );
- YY_BREAK
- #line 2723 "BsLexerFX.c"
- case YY_END_OF_BUFFER:
- {
- /* Amount of text matched not including the EOB char. */
- int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
- /* Undo the effects of YY_DO_BEFORE_ACTION. */
- *yy_cp = yyg->yy_hold_char;
- YY_RESTORE_YY_MORE_OFFSET
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
- {
- /* We're scanning a new file or input source. It's
- * possible that this happened because the user
- * just pointed yyin at a new source and called
- * yylex(). If so, then we have to assure
- * consistency between YY_CURRENT_BUFFER and our
- * globals. Here is the right place to do so, because
- * this is the first action (other than possibly a
- * back-up) that will match for the new input source.
- */
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
- }
- /* Note that here we test for yy_c_buf_p "<=" to the position
- * of the first EOB in the buffer, since yy_c_buf_p will
- * already have been incremented past the NUL character
- * (since all states make transitions on EOB to the
- * end-of-buffer state). Contrast this with the test
- * in input().
- */
- if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
- { /* This was really a NUL. */
- yy_state_type yy_next_state;
- yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
- yy_current_state = yy_get_previous_state( yyscanner );
- /* Okay, we're now positioned to make the NUL
- * transition. We couldn't have
- * yy_get_previous_state() go ahead and do it
- * for us because it doesn't know how to deal
- * with the possibility of jamming (and we don't
- * want to build jamming into it because then it
- * will run more slowly).
- */
- yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- if ( yy_next_state )
- {
- /* Consume the NUL. */
- yy_cp = ++yyg->yy_c_buf_p;
- yy_current_state = yy_next_state;
- goto yy_match;
- }
- else
- {
- yy_cp = yyg->yy_last_accepting_cpos;
- yy_current_state = yyg->yy_last_accepting_state;
- goto yy_find_action;
- }
- }
- else switch ( yy_get_next_buffer( yyscanner ) )
- {
- case EOB_ACT_END_OF_FILE:
- {
- yyg->yy_did_buffer_switch_on_eof = 0;
- if ( yywrap(yyscanner ) )
- {
- /* Note: because we've taken care in
- * yy_get_next_buffer() to have set up
- * yytext, we can now set up
- * yy_c_buf_p so that if some total
- * hoser (like flex itself) wants to
- * call the scanner after we return the
- * YY_NULL, it'll still work - another
- * YY_NULL will get returned.
- */
- yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
- yy_act = YY_STATE_EOF(YY_START);
- goto do_action;
- }
- else
- {
- if ( ! yyg->yy_did_buffer_switch_on_eof )
- YY_NEW_FILE;
- }
- break;
- }
- case EOB_ACT_CONTINUE_SCAN:
- yyg->yy_c_buf_p =
- yyg->yytext_ptr + yy_amount_of_matched_text;
- yy_current_state = yy_get_previous_state( yyscanner );
- yy_cp = yyg->yy_c_buf_p;
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- goto yy_match;
- case EOB_ACT_LAST_MATCH:
- yyg->yy_c_buf_p =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
- yy_current_state = yy_get_previous_state( yyscanner );
- yy_cp = yyg->yy_c_buf_p;
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- goto yy_find_action;
- }
- break;
- }
- default:
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--no action found" );
- } /* end of action switch */
- } /* end of scanning one token */
- } /* end of yylex */
- /* yy_get_next_buffer - try to read in a new buffer
- *
- * Returns a code representing an action:
- * EOB_ACT_LAST_MATCH -
- * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
- * EOB_ACT_END_OF_FILE - end of file
- */
- static int yy_get_next_buffer (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
- register char *source = yyg->yytext_ptr;
- register int number_to_move, i;
- int ret_val;
- if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--end of buffer missed" );
- if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
- { /* Don't try to fill the buffer, so this is an EOF. */
- if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
- {
- /* We matched a single character, the EOB, so
- * treat this as a final EOF.
- */
- return EOB_ACT_END_OF_FILE;
- }
- else
- {
- /* We matched some text prior to the EOB, first
- * process it.
- */
- return EOB_ACT_LAST_MATCH;
- }
- }
- /* Try to read more data. */
- /* First move last chars to start of buffer. */
- number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
- /* don't do the read, it's not guaranteed to return an EOF,
- * just force an EOF
- */
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
- else
- {
- yy_size_t num_to_read =
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
- while ( num_to_read <= 0 )
- { /* Not enough room in the buffer - grow it. */
- /* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
- int yy_c_buf_p_offset =
- (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
- if ( b->yy_is_our_buffer )
- {
- yy_size_t new_size = b->yy_buf_size * 2;
- if ( new_size <= 0 )
- b->yy_buf_size += b->yy_buf_size / 8;
- else
- b->yy_buf_size *= 2;
- b->yy_ch_buf = (char *)
- /* Include room in for 2 EOB chars. */
- yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
- }
- else
- /* Can't grow it, we don't own it. */
- b->yy_ch_buf = 0;
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR(
- "fatal error - scanner input buffer overflow" );
- yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
- num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
- number_to_move - 1;
- }
- if ( num_to_read > YY_READ_BUF_SIZE )
- num_to_read = YY_READ_BUF_SIZE;
- /* Read in more data. */
- YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- yyg->yy_n_chars, num_to_read );
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
- if ( yyg->yy_n_chars == 0 )
- {
- if ( number_to_move == YY_MORE_ADJ )
- {
- ret_val = EOB_ACT_END_OF_FILE;
- yyrestart(yyin ,yyscanner);
- }
- else
- {
- ret_val = EOB_ACT_LAST_MATCH;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
- YY_BUFFER_EOF_PENDING;
- }
- }
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
- if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
- /* Extend the array by 50%, plus the number we really need. */
- yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
- if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
- }
- yyg->yy_n_chars += number_to_move;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
- yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
- return ret_val;
- }
- /* yy_get_previous_state - get the state just before the EOB char was reached */
- static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
- {
- register yy_state_type yy_current_state;
- register char *yy_cp;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_current_state = yyg->yy_start;
- for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
- {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 904 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- }
- return yy_current_state;
- }
- /* yy_try_NUL_trans - try to make a transition on the NUL character
- *
- * synopsis
- * next_state = yy_try_NUL_trans( current_state );
- */
- static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
- {
- register int yy_is_jam;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
- register char *yy_cp = yyg->yy_c_buf_p;
- register YY_CHAR yy_c = 1;
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 904 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- yy_is_jam = (yy_current_state == 903);
- (void)yyg;
- return yy_is_jam ? 0 : yy_current_state;
- }
- static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
- {
- register char *yy_cp;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_cp = yyg->yy_c_buf_p;
- /* undo effects of setting up yytext */
- *yy_cp = yyg->yy_hold_char;
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- { /* need to shift things up to make room */
- /* +2 for EOB chars. */
- register yy_size_t number_to_move = yyg->yy_n_chars + 2;
- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
- register char *source =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
- while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- *--dest = *--source;
- yy_cp += (int) (dest - source);
- yy_bp += (int) (dest - source);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
- *--yy_cp = (char) c;
- if ( c == '\n' ){
- --yylineno;
- }
- yyg->yytext_ptr = yy_bp;
- yyg->yy_hold_char = *yy_cp;
- yyg->yy_c_buf_p = yy_cp;
- }
- #ifndef YY_NO_INPUT
- #ifdef __cplusplus
- static int yyinput (yyscan_t yyscanner)
- #else
- static int input (yyscan_t yyscanner)
- #endif
- {
- int c;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
- {
- /* yy_c_buf_p now points to the character we want to return.
- * If this occurs *before* the EOB characters, then it's a
- * valid NUL; if not, then we've hit the end of the buffer.
- */
- if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
- /* This was really a NUL. */
- *yyg->yy_c_buf_p = '\0';
- else
- { /* need more input */
- yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
- ++yyg->yy_c_buf_p;
- switch ( yy_get_next_buffer( yyscanner ) )
- {
- case EOB_ACT_LAST_MATCH:
- /* This happens because yy_g_n_b()
- * sees that we've accumulated a
- * token and flags that we need to
- * try matching the token before
- * proceeding. But for input(),
- * there's no matching to consider.
- * So convert the EOB_ACT_LAST_MATCH
- * to EOB_ACT_END_OF_FILE.
- */
- /* Reset buffer status. */
- yyrestart(yyin ,yyscanner);
- /*FALLTHROUGH*/
- case EOB_ACT_END_OF_FILE:
- {
- if ( yywrap(yyscanner ) )
- return EOF;
- if ( ! yyg->yy_did_buffer_switch_on_eof )
- YY_NEW_FILE;
- #ifdef __cplusplus
- return yyinput(yyscanner);
- #else
- return input(yyscanner);
- #endif
- }
- case EOB_ACT_CONTINUE_SCAN:
- yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
- break;
- }
- }
- }
- c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
- *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
- yyg->yy_hold_char = *++yyg->yy_c_buf_p;
- if ( c == '\n' )
-
- do{ yylineno++;
- yycolumn=0;
- }while(0)
- ;
- return c;
- }
- #endif /* ifndef YY_NO_INPUT */
- /** Immediately switch to a different input stream.
- * @param input_file A readable stream.
- * @param yyscanner The scanner object.
- * @note This function does not reset the start condition to @c INITIAL .
- */
- void yyrestart (FILE * input_file , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( ! YY_CURRENT_BUFFER ){
- yyensure_buffer_stack (yyscanner);
- YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
- }
- yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
- yy_load_buffer_state(yyscanner );
- }
- /** Switch to a different input buffer.
- * @param new_buffer The new input buffer.
- * @param yyscanner The scanner object.
- */
- void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- /* TODO. We should be able to replace this entire function body
- * with
- * yypop_buffer_state();
- * yypush_buffer_state(new_buffer);
- */
- yyensure_buffer_stack (yyscanner);
- if ( YY_CURRENT_BUFFER == new_buffer )
- return;
- if ( YY_CURRENT_BUFFER )
- {
- /* Flush out information for old buffer. */
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
- yy_load_buffer_state(yyscanner );
- /* We don't actually know whether we did this switch during
- * EOF (yywrap()) processing, but the only time this flag
- * is looked at is after yywrap() is called, so it's safe
- * to go ahead and always set it.
- */
- yyg->yy_did_buffer_switch_on_eof = 1;
- }
- static void yy_load_buffer_state (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
- yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
- yyg->yy_hold_char = *yyg->yy_c_buf_p;
- }
- /** Allocate and initialize an input buffer state.
- * @param file A readable stream.
- * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
- * @param yyscanner The scanner object.
- * @return the allocated buffer state.
- */
- YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
- {
- YY_BUFFER_STATE b;
-
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
- b->yy_buf_size = size;
- /* yy_ch_buf has to be 2 characters longer than the size given because
- * we need to put in 2 end-of-buffer characters.
- */
- b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ,yyscanner );
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
- b->yy_is_our_buffer = 1;
- yy_init_buffer(b,file ,yyscanner);
- return b;
- }
- /** Destroy the buffer.
- * @param b a buffer created with yy_create_buffer()
- * @param yyscanner The scanner object.
- */
- void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( ! b )
- return;
- if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
- if ( b->yy_is_our_buffer )
- yyfree((void *) b->yy_ch_buf ,yyscanner );
- yyfree((void *) b ,yyscanner );
- }
- /* Initializes or reinitializes a buffer.
- * This function is sometimes called more than once on the same buffer,
- * such as during a yyrestart() or at EOF.
- */
- static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
- {
- int oerrno = errno;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_flush_buffer(b ,yyscanner);
- b->yy_input_file = file;
- b->yy_fill_buffer = 1;
- /* If b is the current buffer, then yy_init_buffer was _probably_
- * called from yyrestart() or through yy_get_next_buffer.
- * In that case, we don't want to reset the lineno or column.
- */
- if (b != YY_CURRENT_BUFFER){
- b->yy_bs_lineno = 1;
- b->yy_bs_column = 0;
- }
- b->yy_is_interactive = 0;
-
- errno = oerrno;
- }
- /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
- * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
- * @param yyscanner The scanner object.
- */
- void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( ! b )
- return;
- b->yy_n_chars = 0;
- /* We always need two end-of-buffer characters. The first causes
- * a transition to the end-of-buffer state. The second causes
- * a jam in that state.
- */
- b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
- b->yy_buf_pos = &b->yy_ch_buf[0];
- b->yy_at_bol = 1;
- b->yy_buffer_status = YY_BUFFER_NEW;
- if ( b == YY_CURRENT_BUFFER )
- yy_load_buffer_state(yyscanner );
- }
- /** Pushes the new state onto the stack. The new state becomes
- * the current state. This function will allocate the stack
- * if necessary.
- * @param new_buffer The new state.
- * @param yyscanner The scanner object.
- */
- void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (new_buffer == NULL)
- return;
- yyensure_buffer_stack(yyscanner);
- /* This block is copied from yy_switch_to_buffer. */
- if ( YY_CURRENT_BUFFER )
- {
- /* Flush out information for old buffer. */
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
- /* Only push if top exists. Otherwise, replace top. */
- if (YY_CURRENT_BUFFER)
- yyg->yy_buffer_stack_top++;
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
- /* copied from yy_switch_to_buffer. */
- yy_load_buffer_state(yyscanner );
- yyg->yy_did_buffer_switch_on_eof = 1;
- }
- /** Removes and deletes the top of the stack, if present.
- * The next element becomes the new top.
- * @param yyscanner The scanner object.
- */
- void yypop_buffer_state (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (!YY_CURRENT_BUFFER)
- return;
- yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
- YY_CURRENT_BUFFER_LVALUE = NULL;
- if (yyg->yy_buffer_stack_top > 0)
- --yyg->yy_buffer_stack_top;
- if (YY_CURRENT_BUFFER) {
- yy_load_buffer_state(yyscanner );
- yyg->yy_did_buffer_switch_on_eof = 1;
- }
- }
- /* Allocates the stack if it does not exist.
- * Guarantees space for at least one push.
- */
- static void yyensure_buffer_stack (yyscan_t yyscanner)
- {
- yy_size_t num_to_alloc;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (!yyg->yy_buffer_stack) {
- /* First allocation is just for 2 elements, since we don't know if this
- * scanner will even need a stack. We use 2 instead of 1 to avoid an
- * immediate realloc on the next call.
- */
- num_to_alloc = 1;
- yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
- (num_to_alloc * sizeof(struct yy_buffer_state*)
- , yyscanner);
- if ( ! yyg->yy_buffer_stack )
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
-
- memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
-
- yyg->yy_buffer_stack_max = num_to_alloc;
- yyg->yy_buffer_stack_top = 0;
- return;
- }
- if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
- /* Increase the buffer to prepare for a possible push. */
- int grow_size = 8 /* arbitrary grow size */;
- num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
- yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
- (yyg->yy_buffer_stack,
- num_to_alloc * sizeof(struct yy_buffer_state*)
- , yyscanner);
- if ( ! yyg->yy_buffer_stack )
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
- /* zero only the new slots.*/
- memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
- yyg->yy_buffer_stack_max = num_to_alloc;
- }
- }
- /** Setup the input buffer state to scan directly from a user-specified character buffer.
- * @param base the character buffer
- * @param size the size in bytes of the character buffer
- * @param yyscanner The scanner object.
- * @return the newly allocated buffer state object.
- */
- YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
- {
- YY_BUFFER_STATE b;
-
- if ( size < 2 ||
- base[size-2] != YY_END_OF_BUFFER_CHAR ||
- base[size-1] != YY_END_OF_BUFFER_CHAR )
- /* They forgot to leave room for the EOB's. */
- return 0;
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
- b->yy_buf_pos = b->yy_ch_buf = base;
- b->yy_is_our_buffer = 0;
- b->yy_input_file = 0;
- b->yy_n_chars = b->yy_buf_size;
- b->yy_is_interactive = 0;
- b->yy_at_bol = 1;
- b->yy_fill_buffer = 0;
- b->yy_buffer_status = YY_BUFFER_NEW;
- yy_switch_to_buffer(b ,yyscanner );
- return b;
- }
- /** Setup the input buffer state to scan a string. The next call to yylex() will
- * scan from a @e copy of @a str.
- * @param yystr a NUL-terminated string to scan
- * @param yyscanner The scanner object.
- * @return the newly allocated buffer state object.
- * @note If you want to scan bytes that may contain NUL values, then use
- * yy_scan_bytes() instead.
- */
- YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
- {
-
- return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
- }
- /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
- * scan from a @e copy of @a bytes.
- * @param yybytes the byte buffer to scan
- * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
- * @param yyscanner The scanner object.
- * @return the newly allocated buffer state object.
- */
- YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
- {
- YY_BUFFER_STATE b;
- char *buf;
- yy_size_t n;
- yy_size_t i;
-
- /* Get memory for full buffer, including space for trailing EOB's. */
- n = _yybytes_len + 2;
- buf = (char *) yyalloc(n ,yyscanner );
- if ( ! buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
- for ( i = 0; i < _yybytes_len; ++i )
- buf[i] = yybytes[i];
- buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
- b = yy_scan_buffer(buf,n ,yyscanner);
- if ( ! b )
- YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
- /* It's okay to grow etc. this buffer, and we should throw it
- * away when we're done.
- */
- b->yy_is_our_buffer = 1;
- return b;
- }
- #ifndef YY_EXIT_FAILURE
- #define YY_EXIT_FAILURE 2
- #endif
- static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
- {
- (void) fprintf( stderr, "%s\n", msg );
- exit( YY_EXIT_FAILURE );
- }
- /* Redefine yyless() so it works in section 3 code. */
- #undef yyless
- #define yyless(n) \
- do \
- { \
- /* Undo effects of setting up yytext. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- yytext[yyleng] = yyg->yy_hold_char; \
- yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
- yyg->yy_hold_char = *yyg->yy_c_buf_p; \
- *yyg->yy_c_buf_p = '\0'; \
- yyleng = yyless_macro_arg; \
- } \
- while ( 0 )
- /* Accessor methods (get/set functions) to struct members. */
- /** Get the user-defined data for this scanner.
- * @param yyscanner The scanner object.
- */
- YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyextra;
- }
- /** Get the current line number.
- * @param yyscanner The scanner object.
- */
- int yyget_lineno (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if (! YY_CURRENT_BUFFER)
- return 0;
-
- return yylineno;
- }
- /** Get the current column number.
- * @param yyscanner The scanner object.
- */
- int yyget_column (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if (! YY_CURRENT_BUFFER)
- return 0;
-
- return yycolumn;
- }
- /** Get the input stream.
- * @param yyscanner The scanner object.
- */
- FILE *yyget_in (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyin;
- }
- /** Get the output stream.
- * @param yyscanner The scanner object.
- */
- FILE *yyget_out (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyout;
- }
- /** Get the length of the current token.
- * @param yyscanner The scanner object.
- */
- yy_size_t yyget_leng (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyleng;
- }
- /** Get the current token.
- * @param yyscanner The scanner object.
- */
- char *yyget_text (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yytext;
- }
- /** Set the user-defined data. This data is never touched by the scanner.
- * @param user_defined The data to be associated with this scanner.
- * @param yyscanner The scanner object.
- */
- void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyextra = user_defined ;
- }
- /** Set the current line number.
- * @param line_number
- * @param yyscanner The scanner object.
- */
- void yyset_lineno (int line_number , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- /* lineno is only valid if an input buffer exists. */
- if (! YY_CURRENT_BUFFER )
- YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
-
- yylineno = line_number;
- }
- /** Set the current column.
- * @param line_number
- * @param yyscanner The scanner object.
- */
- void yyset_column (int column_no , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- /* column is only valid if an input buffer exists. */
- if (! YY_CURRENT_BUFFER )
- YY_FATAL_ERROR( "yyset_column called with no buffer" );
-
- yycolumn = column_no;
- }
- /** Set the input stream. This does not discard the current
- * input buffer.
- * @param in_str A readable stream.
- * @param yyscanner The scanner object.
- * @see yy_switch_to_buffer
- */
- void yyset_in (FILE * in_str , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyin = in_str ;
- }
- void yyset_out (FILE * out_str , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyout = out_str ;
- }
- int yyget_debug (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yy_flex_debug;
- }
- void yyset_debug (int bdebug , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_flex_debug = bdebug ;
- }
- /* Accessor methods for yylval and yylloc */
- YYSTYPE * yyget_lval (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yylval;
- }
- void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yylval = yylval_param;
- }
- YYLTYPE *yyget_lloc (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yylloc;
- }
-
- void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yylloc = yylloc_param;
- }
-
- /* User-visible API */
- /* yylex_init is special because it creates the scanner itself, so it is
- * the ONLY reentrant function that doesn't take the scanner as the last argument.
- * That's why we explicitly handle the declaration, instead of using our macros.
- */
- int yylex_init(yyscan_t* ptr_yy_globals)
- {
- if (ptr_yy_globals == NULL){
- errno = EINVAL;
- return 1;
- }
- *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
- if (*ptr_yy_globals == NULL){
- errno = ENOMEM;
- return 1;
- }
- /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
- memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
- return yy_init_globals ( *ptr_yy_globals );
- }
- /* yylex_init_extra has the same functionality as yylex_init, but follows the
- * convention of taking the scanner as the last argument. Note however, that
- * this is a *pointer* to a scanner, as it will be allocated by this call (and
- * is the reason, too, why this function also must handle its own declaration).
- * The user defined value in the first argument will be available to yyalloc in
- * the yyextra field.
- */
- int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
- {
- struct yyguts_t dummy_yyguts;
- yyset_extra (yy_user_defined, &dummy_yyguts);
- if (ptr_yy_globals == NULL){
- errno = EINVAL;
- return 1;
- }
-
- *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
-
- if (*ptr_yy_globals == NULL){
- errno = ENOMEM;
- return 1;
- }
-
- /* By setting to 0xAA, we expose bugs in
- yy_init_globals. Leave at 0x00 for releases. */
- memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
-
- yyset_extra (yy_user_defined, *ptr_yy_globals);
-
- return yy_init_globals ( *ptr_yy_globals );
- }
- static int yy_init_globals (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- /* Initialization is the same as for the non-reentrant scanner.
- * This function is called from yylex_destroy(), so don't allocate here.
- */
- yyg->yy_buffer_stack = 0;
- yyg->yy_buffer_stack_top = 0;
- yyg->yy_buffer_stack_max = 0;
- yyg->yy_c_buf_p = (char *) 0;
- yyg->yy_init = 0;
- yyg->yy_start = 0;
- yyg->yy_start_stack_ptr = 0;
- yyg->yy_start_stack_depth = 0;
- yyg->yy_start_stack = NULL;
- /* Defined in main.c */
- #ifdef YY_STDINIT
- yyin = stdin;
- yyout = stdout;
- #else
- yyin = (FILE *) 0;
- yyout = (FILE *) 0;
- #endif
- /* For future reference: Set errno on error, since we are called by
- * yylex_init()
- */
- return 0;
- }
- /* yylex_destroy is for both reentrant and non-reentrant scanners. */
- int yylex_destroy (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- /* Pop the buffer stack, destroying each element. */
- while(YY_CURRENT_BUFFER){
- yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
- YY_CURRENT_BUFFER_LVALUE = NULL;
- yypop_buffer_state(yyscanner);
- }
- /* Destroy the stack itself. */
- yyfree(yyg->yy_buffer_stack ,yyscanner);
- yyg->yy_buffer_stack = NULL;
- /* Destroy the start condition stack. */
- yyfree(yyg->yy_start_stack ,yyscanner );
- yyg->yy_start_stack = NULL;
- /* Reset the globals. This is important in a non-reentrant scanner so the next time
- * yylex() is called, initialization will occur. */
- yy_init_globals( yyscanner);
- /* Destroy the main struct (reentrant only). */
- yyfree ( yyscanner , yyscanner );
- yyscanner = NULL;
- return 0;
- }
- /*
- * Internal utility routines.
- */
- #ifndef yytext_ptr
- static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
- {
- register int i;
- for ( i = 0; i < n; ++i )
- s1[i] = s2[i];
- }
- #endif
- #ifdef YY_NEED_STRLEN
- static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
- {
- register int n;
- for ( n = 0; s[n]; ++n )
- ;
- return n;
- }
- #endif
- void *yyalloc (yy_size_t size , yyscan_t yyscanner)
- {
- return (void *) malloc( size );
- }
- void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
- {
- /* The cast to (char *) in the following accommodates both
- * implementations that use char* generic pointers, and those
- * that use void* generic pointers. It works with the latter
- * because both ANSI C and C++ allow castless assignment from
- * any pointer type to void*, and deal with argument conversions
- * as though doing an assignment.
- */
- return (void *) realloc( (char *) ptr, size );
- }
- void yyfree (void * ptr , yyscan_t yyscanner)
- {
- free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
- }
- #define YYTABLES_NAME "yytables"
- #line 398 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsLexerFX.l"
|