BsParserFX.c 210 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746
  1. /* A Bison parser, made by GNU Bison 2.7. */
  2. /* Skeleton implementation for Bison GLR parsers in C
  3. Copyright (C) 2002-2012 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. /* As a special exception, you may create a larger work that contains
  15. part or all of the Bison parser skeleton and distribute that work
  16. under terms of your choice, so long as that work isn't itself a
  17. parser generator using the skeleton or a modified version thereof
  18. as a parser skeleton. Alternatively, if you modify or redistribute
  19. the parser skeleton itself, you may (at your option) remove this
  20. special exception, which will cause the skeleton and the resulting
  21. Bison output files to be licensed under the GNU General Public
  22. License without this special exception.
  23. This special exception was added by the Free Software Foundation in
  24. version 2.2 of Bison. */
  25. /* C GLR parser skeleton written by Paul Hilfinger. */
  26. /* Identify Bison output. */
  27. #define YYBISON 1
  28. /* Bison version. */
  29. #define YYBISON_VERSION "2.7"
  30. /* Skeleton name. */
  31. #define YYSKELETON_NAME "glr.c"
  32. /* Pure parsers. */
  33. #define YYPURE 1
  34. /* Copy the first part of user declarations. */
  35. /* Line 207 of glr.c */
  36. #line 1 "../../../Source/BansheeSL/BsParserFX.y"
  37. #include "BsParserFX.h"
  38. #include "BsLexerFX.h"
  39. #define inline
  40. void yyerror(YYLTYPE *locp, ParseState* parse_state, yyscan_t scanner, const char *msg);
  41. /* Line 207 of glr.c */
  42. #line 64 "BsParserFX.c"
  43. # ifndef YY_NULL
  44. # if defined __cplusplus && 201103L <= __cplusplus
  45. # define YY_NULL nullptr
  46. # else
  47. # define YY_NULL 0
  48. # endif
  49. # endif
  50. #include "BsParserFX.h"
  51. /* Enabling verbose error messages. */
  52. #ifdef YYERROR_VERBOSE
  53. # undef YYERROR_VERBOSE
  54. # define YYERROR_VERBOSE 1
  55. #else
  56. # define YYERROR_VERBOSE 0
  57. #endif
  58. /* Default (constant) value used for initialization for null
  59. right-hand sides. Unlike the standard yacc.c template, here we set
  60. the default value of $$ to a zeroed-out value. Since the default
  61. value is undefined, this behavior is technically correct. */
  62. static YYSTYPE yyval_default;
  63. static YYLTYPE yyloc_default
  64. # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  65. = { 1, 1, 1, 1 }
  66. # endif
  67. ;
  68. /* Copy the second part of user declarations. */
  69. /* Line 230 of glr.c */
  70. #line 98 "BsParserFX.c"
  71. #include <stdio.h>
  72. #include <stdlib.h>
  73. #include <string.h>
  74. #ifndef YY_
  75. # if defined YYENABLE_NLS && YYENABLE_NLS
  76. # if ENABLE_NLS
  77. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  78. # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
  79. # endif
  80. # endif
  81. # ifndef YY_
  82. # define YY_(Msgid) Msgid
  83. # endif
  84. #endif
  85. /* Suppress unused-variable warnings by "using" E. */
  86. #if ! defined lint || defined __GNUC__
  87. # define YYUSE(E) ((void) (E))
  88. #else
  89. # define YYUSE(E) /* empty */
  90. #endif
  91. /* Identity function, used to suppress warnings about constant conditions. */
  92. #ifndef lint
  93. # define YYID(N) (N)
  94. #else
  95. #if (defined __STDC__ || defined __C99__FUNC__ \
  96. || defined __cplusplus || defined _MSC_VER)
  97. static int
  98. YYID (int i)
  99. #else
  100. static int
  101. YYID (i)
  102. int i;
  103. #endif
  104. {
  105. return i;
  106. }
  107. #endif
  108. #ifndef YYFREE
  109. # define YYFREE free
  110. #endif
  111. #ifndef YYMALLOC
  112. # define YYMALLOC malloc
  113. #endif
  114. #ifndef YYREALLOC
  115. # define YYREALLOC realloc
  116. #endif
  117. #define YYSIZEMAX ((size_t) -1)
  118. #ifdef __cplusplus
  119. typedef bool yybool;
  120. #else
  121. typedef unsigned char yybool;
  122. #endif
  123. #define yytrue 1
  124. #define yyfalse 0
  125. #ifndef YYSETJMP
  126. # include <setjmp.h>
  127. # define YYJMP_BUF jmp_buf
  128. # define YYSETJMP(Env) setjmp (Env)
  129. /* Pacify clang. */
  130. # define YYLONGJMP(Env, Val) (longjmp (Env, Val), YYASSERT (0))
  131. #endif
  132. /*-----------------.
  133. | GCC extensions. |
  134. `-----------------*/
  135. #ifndef __attribute__
  136. /* This feature is available in gcc versions 2.5 and later. */
  137. # if (! defined __GNUC__ || __GNUC__ < 2 \
  138. || (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
  139. # define __attribute__(Spec) /* empty */
  140. # endif
  141. #endif
  142. #ifndef YYASSERT
  143. # define YYASSERT(Condition) ((void) ((Condition) || (abort (), 0)))
  144. #endif
  145. /* YYFINAL -- State number of the termination state. */
  146. #define YYFINAL 24
  147. /* YYLAST -- Last index in YYTABLE. */
  148. #define YYLAST 680
  149. /* YYNTOKENS -- Number of terminals. */
  150. #define YYNTOKENS 129
  151. /* YYNNTS -- Number of nonterminals. */
  152. #define YYNNTS 97
  153. /* YYNRULES -- Number of rules. */
  154. #define YYNRULES 226
  155. /* YYNRULES -- Number of states. */
  156. #define YYNSTATES 711
  157. /* YYMAXRHS -- Maximum number of symbols on right-hand side of rule. */
  158. #define YYMAXRHS 33
  159. /* YYMAXLEFT -- Maximum number of symbols to the left of a handle
  160. accessed by $0, $-1, etc., in any rule. */
  161. #define YYMAXLEFT 0
  162. /* YYTRANSLATE(X) -- Bison symbol number corresponding to X. */
  163. #define YYUNDEFTOK 2
  164. #define YYMAXUTOK 375
  165. #define YYTRANSLATE(YYX) \
  166. ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  167. /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  168. static const unsigned char yytranslate[] =
  169. {
  170. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  171. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  172. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  173. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  174. 127, 128, 2, 2, 125, 2, 2, 2, 2, 2,
  175. 2, 2, 2, 2, 2, 2, 2, 2, 126, 122,
  176. 2, 121, 2, 2, 2, 2, 2, 2, 2, 2,
  177. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  178. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  179. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  180. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  181. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  182. 2, 2, 2, 123, 2, 124, 2, 2, 2, 2,
  183. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  184. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  185. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  186. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  187. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  188. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  189. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  190. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  191. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  192. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  193. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  194. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  195. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  196. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  197. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  198. 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  199. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  200. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  201. 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
  202. 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
  203. 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
  204. 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
  205. 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
  206. 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
  207. 115, 116, 117, 118, 119, 120
  208. };
  209. #if YYDEBUG
  210. /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  211. YYRHS. */
  212. static const unsigned short int yyprhs[] =
  213. {
  214. 0, 0, 3, 4, 7, 9, 11, 13, 15, 20,
  215. 25, 30, 35, 41, 44, 45, 48, 50, 52, 54,
  216. 56, 61, 66, 72, 75, 76, 79, 81, 83, 88,
  217. 93, 98, 103, 108, 113, 118, 123, 128, 133, 138,
  218. 143, 148, 153, 158, 164, 170, 176, 182, 187, 192,
  219. 194, 199, 208, 211, 214, 217, 220, 223, 226, 229,
  220. 232, 235, 243, 244, 247, 252, 257, 262, 267, 273,
  221. 276, 277, 280, 282, 287, 292, 298, 304, 310, 316,
  222. 321, 324, 327, 328, 331, 337, 342, 347, 352, 353,
  223. 356, 358, 363, 368, 373, 378, 383, 388, 393, 398,
  224. 403, 409, 415, 418, 424, 425, 428, 433, 438, 443,
  225. 449, 457, 467, 473, 481, 491, 505, 523, 543, 569,
  226. 603, 609, 612, 613, 616, 621, 626, 631, 636, 641,
  227. 646, 651, 656, 661, 666, 671, 676, 681, 686, 691,
  228. 696, 701, 706, 711, 715, 719, 722, 725, 728, 731,
  229. 734, 737, 740, 743, 746, 749, 752, 755, 758, 761,
  230. 764, 767, 770, 773, 776, 779, 782, 785, 788, 791,
  231. 794, 797, 800, 803, 806, 809, 812, 815, 818, 821,
  232. 824, 827, 830, 833, 836, 839, 840, 843, 844, 847,
  233. 848, 851, 852, 855, 856, 859, 860, 863, 864, 867,
  234. 868, 871, 872, 875, 876, 879, 880, 883, 884, 887,
  235. 888, 891, 892, 897, 898, 901, 907, 910, 911, 914,
  236. 918, 921, 922, 925, 931, 937, 943
  237. };
  238. /* YYRHS -- A `-1'-separated list of the rules' RHS. */
  239. static const short int yyrhs[] =
  240. {
  241. 130, 0, -1, -1, 131, 130, -1, 132, -1, 133,
  242. -1, 178, -1, 219, -1, 62, 121, 5, 122, -1,
  243. 63, 121, 17, 122, -1, 64, 121, 3, 122, -1,
  244. 65, 121, 5, 122, -1, 134, 123, 135, 124, 122,
  245. -1, 68, 121, -1, -1, 136, 135, -1, 137, -1,
  246. 138, -1, 142, -1, 143, -1, 69, 121, 6, 122,
  247. -1, 70, 121, 6, 122, -1, 139, 123, 140, 124,
  248. 122, -1, 71, 121, -1, -1, 141, 140, -1, 142,
  249. -1, 143, -1, 101, 121, 3, 122, -1, 80, 121,
  250. 8, 122, -1, 81, 121, 9, 122, -1, 82, 121,
  251. 4, 122, -1, 83, 121, 4, 122, -1, 84, 121,
  252. 5, 122, -1, 85, 121, 5, 122, -1, 86, 121,
  253. 5, 122, -1, 87, 121, 5, 122, -1, 88, 121,
  254. 5, 122, -1, 89, 121, 5, 122, -1, 90, 121,
  255. 10, 122, -1, 91, 121, 5, 122, -1, 92, 121,
  256. 3, 122, -1, 93, 121, 3, 122, -1, 145, 123,
  257. 148, 124, 122, -1, 146, 123, 148, 124, 122, -1,
  258. 145, 123, 147, 124, 122, -1, 146, 123, 147, 124,
  259. 122, -1, 98, 121, 5, 122, -1, 99, 121, 5,
  260. 122, -1, 150, -1, 79, 121, 3, 122, -1, 144,
  261. 123, 101, 121, 3, 122, 124, 122, -1, 72, 121,
  262. -1, 73, 121, -1, 74, 121, -1, 75, 121, -1,
  263. 76, 121, -1, 77, 121, -1, 78, 121, -1, 94,
  264. 121, -1, 95, 121, -1, 11, 125, 11, 125, 11,
  265. 125, 10, -1, -1, 149, 148, -1, 96, 121, 11,
  266. 122, -1, 97, 121, 11, 122, -1, 71, 121, 11,
  267. 122, -1, 90, 121, 10, 122, -1, 151, 123, 152,
  268. 124, 122, -1, 100, 121, -1, -1, 153, 152, -1,
  269. 154, -1, 101, 121, 3, 122, -1, 102, 121, 5,
  270. 122, -1, 155, 123, 157, 124, 122, -1, 156, 123,
  271. 157, 124, 122, -1, 155, 123, 158, 124, 122, -1,
  272. 156, 123, 158, 124, 122, -1, 105, 121, 12, 122,
  273. -1, 103, 121, -1, 104, 121, -1, -1, 159, 157,
  274. -1, 11, 125, 11, 125, 15, -1, 106, 121, 11,
  275. 122, -1, 107, 121, 11, 122, -1, 108, 121, 15,
  276. 122, -1, -1, 161, 160, -1, 162, -1, 110, 121,
  277. 14, 122, -1, 111, 121, 14, 122, -1, 112, 121,
  278. 14, 122, -1, 113, 121, 3, 122, -1, 114, 121,
  279. 4, 122, -1, 115, 121, 4, 122, -1, 116, 121,
  280. 4, 122, -1, 117, 121, 169, 122, -1, 90, 121,
  281. 10, 122, -1, 163, 123, 165, 124, 122, -1, 163,
  282. 123, 164, 124, 122, -1, 109, 121, -1, 13, 125,
  283. 13, 125, 13, -1, -1, 166, 165, -1, 118, 121,
  284. 13, 122, -1, 119, 121, 13, 122, -1, 120, 121,
  285. 13, 122, -1, 123, 4, 125, 4, 124, -1, 123,
  286. 4, 125, 4, 125, 4, 124, -1, 123, 4, 125,
  287. 4, 125, 4, 125, 4, 124, -1, 123, 3, 125,
  288. 3, 124, -1, 123, 3, 125, 3, 125, 3, 124,
  289. -1, 123, 3, 125, 3, 125, 3, 125, 3, 124,
  290. -1, 123, 4, 125, 4, 125, 4, 125, 4, 125,
  291. 4, 125, 4, 124, -1, 123, 4, 125, 4, 125,
  292. 4, 125, 4, 125, 4, 125, 4, 125, 4, 125,
  293. 4, 124, -1, 123, 4, 125, 4, 125, 4, 125,
  294. 4, 125, 4, 125, 4, 125, 4, 125, 4, 125,
  295. 4, 124, -1, 123, 4, 125, 4, 125, 4, 125,
  296. 4, 125, 4, 125, 4, 125, 4, 125, 4, 125,
  297. 4, 125, 4, 125, 4, 125, 4, 124, -1, 123,
  298. 4, 125, 4, 125, 4, 125, 4, 125, 4, 125,
  299. 4, 125, 4, 125, 4, 125, 4, 125, 4, 125,
  300. 4, 125, 4, 125, 4, 125, 4, 125, 4, 125,
  301. 4, 124, -1, 179, 123, 180, 124, 122, -1, 66,
  302. 121, -1, -1, 181, 180, -1, 182, 224, 204, 122,
  303. -1, 183, 224, 205, 122, -1, 184, 224, 206, 122,
  304. -1, 185, 224, 207, 122, -1, 186, 224, 208, 122,
  305. -1, 187, 224, 209, 122, -1, 188, 224, 210, 122,
  306. -1, 189, 224, 211, 122, -1, 190, 224, 207, 122,
  307. -1, 191, 224, 207, 122, -1, 192, 224, 212, 122,
  308. -1, 193, 224, 213, 122, -1, 194, 224, 212, 122,
  309. -1, 195, 224, 214, 122, -1, 196, 224, 215, 122,
  310. -1, 197, 224, 213, 122, -1, 198, 224, 215, 122,
  311. -1, 199, 224, 216, 122, -1, 201, 224, 218, 122,
  312. -1, 202, 224, 122, -1, 203, 217, 122, -1, 18,
  313. 7, -1, 19, 7, -1, 20, 7, -1, 21, 7,
  314. -1, 22, 7, -1, 23, 7, -1, 24, 7, -1,
  315. 25, 7, -1, 26, 7, -1, 27, 7, -1, 28,
  316. 7, -1, 29, 7, -1, 30, 7, -1, 31, 7,
  317. -1, 32, 7, -1, 33, 7, -1, 34, 7, -1,
  318. 35, 7, -1, 36, 7, -1, 37, 7, -1, 38,
  319. 7, -1, 39, 7, -1, 40, 7, -1, 41, 7,
  320. -1, 42, 7, -1, 43, 7, -1, 44, 7, -1,
  321. 45, 7, -1, 46, 7, -1, 47, 7, -1, 48,
  322. 7, -1, 49, 7, -1, 50, 7, -1, 51, 7,
  323. -1, 52, 7, -1, 53, 7, -1, 54, 7, -1,
  324. 55, 7, -1, 56, 7, -1, 200, 224, -1, -1,
  325. 121, 4, -1, -1, 121, 167, -1, -1, 121, 168,
  326. -1, -1, 121, 169, -1, -1, 121, 3, -1, -1,
  327. 121, 170, -1, -1, 121, 171, -1, -1, 121, 172,
  328. -1, -1, 121, 173, -1, -1, 121, 174, -1, -1,
  329. 121, 175, -1, -1, 121, 176, -1, -1, 121, 177,
  330. -1, -1, 121, 123, 160, 124, -1, -1, 121, 6,
  331. -1, 220, 123, 221, 124, 122, -1, 67, 121, -1,
  332. -1, 222, 221, -1, 223, 224, 122, -1, 57, 7,
  333. -1, -1, 225, 224, -1, 126, 59, 127, 6, 128,
  334. -1, 126, 58, 127, 6, 128, -1, 126, 60, 127,
  335. 5, 128, -1, 126, 61, 127, 16, 128, -1
  336. };
  337. /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  338. static const unsigned short int yyrline[] =
  339. {
  340. 0, 283, 283, 284, 288, 289, 290, 291, 295, 296,
  341. 297, 298, 304, 308, 315, 317, 321, 322, 323, 324,
  342. 328, 329, 335, 339, 346, 348, 352, 353, 357, 358,
  343. 359, 360, 361, 362, 363, 364, 365, 366, 367, 368,
  344. 369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
  345. 379, 385, 399, 404, 409, 414, 419, 424, 429, 439,
  346. 447, 455, 469, 471, 475, 476, 477, 478, 483, 487,
  347. 494, 496, 500, 504, 505, 506, 507, 508, 509, 510,
  348. 515, 523, 530, 532, 536, 549, 550, 551, 556, 558,
  349. 562, 563, 564, 565, 566, 567, 568, 569, 570, 571,
  350. 576, 577, 581, 589, 601, 603, 607, 608, 609, 614,
  351. 618, 622, 626, 630, 634, 638, 647, 658, 669, 680,
  352. 694, 698, 705, 707, 711, 712, 713, 714, 715, 716,
  353. 717, 718, 719, 720, 721, 722, 723, 724, 725, 726,
  354. 727, 728, 729, 730, 731, 747, 751, 755, 759, 763,
  355. 767, 771, 775, 779, 783, 787, 791, 795, 799, 803,
  356. 807, 811, 815, 819, 820, 821, 822, 823, 827, 828,
  357. 829, 830, 831, 832, 833, 834, 835, 839, 840, 841,
  358. 842, 843, 844, 845, 849, 857, 858, 862, 863, 867,
  359. 868, 872, 873, 877, 878, 882, 883, 887, 888, 892,
  360. 893, 897, 898, 902, 903, 907, 908, 912, 913, 917,
  361. 918, 922, 923, 927, 928, 933, 937, 944, 946, 950,
  362. 954, 968, 970, 974, 975, 976, 977
  363. };
  364. #endif
  365. #if YYDEBUG || YYERROR_VERBOSE || 0
  366. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  367. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  368. static const char *const yytname[] =
  369. {
  370. "$end", "error", "$undefined", "TOKEN_INTEGER", "TOKEN_FLOAT",
  371. "TOKEN_BOOLEAN", "TOKEN_STRING", "TOKEN_IDENTIFIER",
  372. "TOKEN_FILLMODEVALUE", "TOKEN_CULLMODEVALUE", "TOKEN_COMPFUNCVALUE",
  373. "TOKEN_OPVALUE", "TOKEN_COLORMASK", "TOKEN_ADDRMODEVALUE",
  374. "TOKEN_FILTERVALUE", "TOKEN_BLENDOPVALUE", "TOKEN_BUFFERUSAGE",
  375. "TOKEN_QUEUETYPE", "TOKEN_FLOATTYPE", "TOKEN_FLOAT2TYPE",
  376. "TOKEN_FLOAT3TYPE", "TOKEN_FLOAT4TYPE", "TOKEN_INTTYPE",
  377. "TOKEN_INT2TYPE", "TOKEN_INT3TYPE", "TOKEN_INT4TYPE", "TOKEN_COLORTYPE",
  378. "TOKEN_MAT2x2TYPE", "TOKEN_MAT2x3TYPE", "TOKEN_MAT2x4TYPE",
  379. "TOKEN_MAT3x2TYPE", "TOKEN_MAT3x3TYPE", "TOKEN_MAT3x4TYPE",
  380. "TOKEN_MAT4x2TYPE", "TOKEN_MAT4x3TYPE", "TOKEN_MAT4x4TYPE",
  381. "TOKEN_SAMPLER1D", "TOKEN_SAMPLER2D", "TOKEN_SAMPLER3D",
  382. "TOKEN_SAMPLERCUBE", "TOKEN_SAMPLER2DMS", "TOKEN_TEXTURE1D",
  383. "TOKEN_TEXTURE2D", "TOKEN_TEXTURE3D", "TOKEN_TEXTURECUBE",
  384. "TOKEN_TEXTURE2DMS", "TOKEN_RWTEXTURE1D", "TOKEN_RWTEXTURE2D",
  385. "TOKEN_RWTEXTURE3D", "TOKEN_RWTEXTURE2DMS", "TOKEN_BYTEBUFFER",
  386. "TOKEN_STRUCTBUFFER", "TOKEN_RWTYPEDBUFFER", "TOKEN_RWBYTEBUFFER",
  387. "TOKEN_RWSTRUCTBUFFER", "TOKEN_RWAPPENDBUFFER", "TOKEN_RWCONSUMEBUFFER",
  388. "TOKEN_PARAMSBLOCK", "TOKEN_AUTO", "TOKEN_ALIAS", "TOKEN_SHARED",
  389. "TOKEN_USAGE", "TOKEN_SEPARABLE", "TOKEN_SORT", "TOKEN_PRIORITY",
  390. "TOKEN_TRANSPARENT", "TOKEN_PARAMETERS", "TOKEN_BLOCKS",
  391. "TOKEN_TECHNIQUE", "TOKEN_RENDERER", "TOKEN_LANGUAGE", "TOKEN_PASS",
  392. "TOKEN_VERTEX", "TOKEN_FRAGMENT", "TOKEN_GEOMETRY", "TOKEN_HULL",
  393. "TOKEN_DOMAIN", "TOKEN_COMPUTE", "TOKEN_COMMON", "TOKEN_STENCILREF",
  394. "TOKEN_FILLMODE", "TOKEN_CULLMODE", "TOKEN_DEPTHBIAS",
  395. "TOKEN_SDEPTHBIAS", "TOKEN_DEPTHCLIP", "TOKEN_SCISSOR",
  396. "TOKEN_MULTISAMPLE", "TOKEN_AALINE", "TOKEN_DEPTHREAD",
  397. "TOKEN_DEPTHWRITE", "TOKEN_COMPAREFUNC", "TOKEN_STENCIL",
  398. "TOKEN_STENCILREADMASK", "TOKEN_STENCILWRITEMASK",
  399. "TOKEN_STENCILOPFRONT", "TOKEN_STENCILOPBACK", "TOKEN_FAIL",
  400. "TOKEN_ZFAIL", "TOKEN_ALPHATOCOVERAGE", "TOKEN_INDEPENDANTBLEND",
  401. "TOKEN_TARGET", "TOKEN_INDEX", "TOKEN_BLEND", "TOKEN_COLOR",
  402. "TOKEN_ALPHA", "TOKEN_WRITEMASK", "TOKEN_SOURCE", "TOKEN_DEST",
  403. "TOKEN_OP", "TOKEN_ADDRMODE", "TOKEN_MINFILTER", "TOKEN_MAGFILTER",
  404. "TOKEN_MIPFILTER", "TOKEN_MAXANISO", "TOKEN_MIPBIAS", "TOKEN_MIPMIN",
  405. "TOKEN_MIPMAX", "TOKEN_BORDERCOLOR", "TOKEN_U", "TOKEN_V", "TOKEN_W",
  406. "'='", "';'", "'{'", "'}'", "','", "':'", "'('", "')'", "$accept",
  407. "shader", "shader_statement", "shader_option", "technique",
  408. "technique_header", "technique_body", "technique_statement",
  409. "technique_option", "pass", "pass_header", "pass_body", "pass_statement",
  410. "pass_option", "code", "code_header", "stencil_op_front_header",
  411. "stencil_op_back_header", "stencil_op_body_init", "stencil_op_body",
  412. "stencil_op_option", "target", "target_header", "target_body",
  413. "target_statement", "target_option", "blend_color_header",
  414. "blend_alpha_header", "blenddef_body", "blenddef_body_init",
  415. "blenddef_option", "sampler_state_body", "sampler_state_option",
  416. "addr_mode", "addr_mode_header", "addr_mode_body_init", "addr_mode_body",
  417. "addr_mode_option", "float2", "float3", "float4", "int2", "int3", "int4",
  418. "mat6", "mat8", "mat9", "mat12", "mat16", "parameters",
  419. "parameters_header", "parameters_body", "parameter",
  420. "param_header_float", "param_header_float2", "param_header_float3",
  421. "param_header_float4", "param_header_int", "param_header_int2",
  422. "param_header_int3", "param_header_int4", "param_header_color",
  423. "param_header_mat2x2", "param_header_mat2x3", "param_header_mat2x4",
  424. "param_header_mat3x2", "param_header_mat3x3", "param_header_mat3x4",
  425. "param_header_mat4x2", "param_header_mat4x3", "param_header_mat4x4",
  426. "param_header_sampler", "param_header_texture", "param_header_buffer",
  427. "param_header_qualified_sampler", "param_body_float",
  428. "param_body_float2", "param_body_float3", "param_body_float4",
  429. "param_body_int", "param_body_int2", "param_body_int3",
  430. "param_body_int4", "param_body_mat6", "param_body_mat8",
  431. "param_body_mat9", "param_body_mat12", "param_body_mat16",
  432. "param_body_sampler", "param_body_tex", "blocks", "blocks_header",
  433. "blocks_body", "block", "block_header", "qualifier_list", "qualifier", YY_NULL
  434. };
  435. #endif
  436. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  437. static const unsigned char yyr1[] =
  438. {
  439. 0, 129, 130, 130, 131, 131, 131, 131, 132, 132,
  440. 132, 132, 133, 134, 135, 135, 136, 136, 136, 136,
  441. 137, 137, 138, 139, 140, 140, 141, 141, 142, 142,
  442. 142, 142, 142, 142, 142, 142, 142, 142, 142, 142,
  443. 142, 142, 142, 142, 142, 142, 142, 142, 142, 142,
  444. 142, 143, 144, 144, 144, 144, 144, 144, 144, 145,
  445. 146, 147, 148, 148, 149, 149, 149, 149, 150, 151,
  446. 152, 152, 153, 154, 154, 154, 154, 154, 154, 154,
  447. 155, 156, 157, 157, 158, 159, 159, 159, 160, 160,
  448. 161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
  449. 162, 162, 163, 164, 165, 165, 166, 166, 166, 167,
  450. 168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
  451. 178, 179, 180, 180, 181, 181, 181, 181, 181, 181,
  452. 181, 181, 181, 181, 181, 181, 181, 181, 181, 181,
  453. 181, 181, 181, 181, 181, 182, 183, 184, 185, 186,
  454. 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
  455. 197, 198, 199, 200, 200, 200, 200, 200, 201, 201,
  456. 201, 201, 201, 201, 201, 201, 201, 202, 202, 202,
  457. 202, 202, 202, 202, 203, 204, 204, 205, 205, 206,
  458. 206, 207, 207, 208, 208, 209, 209, 210, 210, 211,
  459. 211, 212, 212, 213, 213, 214, 214, 215, 215, 216,
  460. 216, 217, 217, 218, 218, 219, 220, 221, 221, 222,
  461. 223, 224, 224, 225, 225, 225, 225
  462. };
  463. /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  464. static const unsigned char yyr2[] =
  465. {
  466. 0, 2, 0, 2, 1, 1, 1, 1, 4, 4,
  467. 4, 4, 5, 2, 0, 2, 1, 1, 1, 1,
  468. 4, 4, 5, 2, 0, 2, 1, 1, 4, 4,
  469. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  470. 4, 4, 4, 5, 5, 5, 5, 4, 4, 1,
  471. 4, 8, 2, 2, 2, 2, 2, 2, 2, 2,
  472. 2, 7, 0, 2, 4, 4, 4, 4, 5, 2,
  473. 0, 2, 1, 4, 4, 5, 5, 5, 5, 4,
  474. 2, 2, 0, 2, 5, 4, 4, 4, 0, 2,
  475. 1, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  476. 5, 5, 2, 5, 0, 2, 4, 4, 4, 5,
  477. 7, 9, 5, 7, 9, 13, 17, 19, 25, 33,
  478. 5, 2, 0, 2, 4, 4, 4, 4, 4, 4,
  479. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  480. 4, 4, 4, 3, 3, 2, 2, 2, 2, 2,
  481. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  482. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  483. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  484. 2, 2, 2, 2, 2, 0, 2, 0, 2, 0,
  485. 2, 0, 2, 0, 2, 0, 2, 0, 2, 0,
  486. 2, 0, 2, 0, 2, 0, 2, 0, 2, 0,
  487. 2, 0, 4, 0, 2, 5, 2, 0, 2, 3,
  488. 2, 0, 2, 5, 5, 5, 5
  489. };
  490. /* YYDPREC[RULE-NUM] -- Dynamic precedence of rule #RULE-NUM (0 if none). */
  491. static const unsigned char yydprec[] =
  492. {
  493. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  494. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  495. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  496. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  497. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  498. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  499. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  500. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  501. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  502. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  503. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  504. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  505. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  506. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  507. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  508. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  509. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  510. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  511. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  512. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  513. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  514. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  515. 0, 0, 0, 0, 0, 0, 0
  516. };
  517. /* YYMERGER[RULE-NUM] -- Index of merging function for rule #RULE-NUM. */
  518. static const unsigned char yymerger[] =
  519. {
  520. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  521. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  522. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  523. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  524. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  525. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  526. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  527. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  528. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  529. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  530. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  531. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  532. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  533. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  534. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  535. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  536. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  537. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  538. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  539. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  540. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  541. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  542. 0, 0, 0, 0, 0, 0, 0
  543. };
  544. /* YYDEFACT[S] -- default reduction number in state S. Performed when
  545. YYTABLE doesn't specify something else to do. Zero means the default
  546. is an error. */
  547. static const unsigned char yydefact[] =
  548. {
  549. 2, 0, 0, 0, 0, 0, 0, 0, 0, 2,
  550. 4, 5, 0, 6, 0, 7, 0, 0, 0, 0,
  551. 0, 121, 216, 13, 1, 3, 14, 122, 217, 0,
  552. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  553. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  554. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  555. 0, 0, 0, 0, 0, 14, 16, 17, 0, 18,
  556. 19, 0, 0, 0, 49, 0, 0, 0, 0, 0,
  557. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  558. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  559. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  560. 0, 0, 0, 0, 0, 0, 122, 221, 221, 221,
  561. 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
  562. 221, 221, 221, 221, 221, 221, 221, 221, 211, 0,
  563. 0, 217, 221, 8, 9, 10, 11, 0, 0, 23,
  564. 52, 53, 54, 55, 56, 57, 58, 0, 0, 0,
  565. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  566. 0, 0, 59, 60, 0, 0, 69, 0, 0, 15,
  567. 24, 0, 62, 62, 70, 145, 146, 147, 148, 149,
  568. 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
  569. 160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
  570. 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
  571. 180, 181, 182, 183, 0, 123, 0, 185, 221, 187,
  572. 189, 191, 193, 195, 197, 199, 191, 191, 201, 203,
  573. 201, 205, 207, 203, 207, 209, 184, 213, 0, 0,
  574. 0, 220, 0, 218, 0, 0, 0, 0, 0, 0,
  575. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  576. 0, 0, 0, 0, 0, 12, 0, 24, 26, 27,
  577. 0, 0, 0, 0, 0, 0, 0, 0, 62, 0,
  578. 0, 0, 0, 0, 0, 0, 0, 70, 72, 0,
  579. 0, 120, 0, 0, 0, 0, 0, 0, 222, 0,
  580. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  581. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  582. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  583. 143, 88, 144, 215, 219, 20, 21, 50, 29, 30,
  584. 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
  585. 41, 42, 47, 48, 28, 0, 25, 0, 0, 0,
  586. 0, 0, 0, 0, 0, 63, 0, 0, 0, 0,
  587. 80, 81, 0, 0, 71, 82, 82, 0, 0, 0,
  588. 0, 186, 124, 0, 188, 125, 0, 190, 126, 0,
  589. 192, 127, 194, 128, 0, 196, 129, 0, 198, 130,
  590. 0, 200, 131, 132, 133, 0, 202, 134, 0, 204,
  591. 135, 136, 0, 206, 137, 0, 208, 138, 139, 140,
  592. 0, 210, 141, 214, 142, 0, 0, 0, 0, 0,
  593. 0, 0, 0, 0, 0, 0, 88, 90, 0, 22,
  594. 0, 0, 0, 0, 0, 0, 45, 43, 46, 44,
  595. 0, 0, 0, 68, 0, 0, 0, 0, 0, 0,
  596. 82, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  597. 0, 0, 0, 0, 0, 0, 0, 0, 0, 102,
  598. 0, 0, 0, 0, 0, 0, 0, 0, 212, 89,
  599. 104, 0, 0, 66, 67, 64, 65, 73, 74, 79,
  600. 0, 0, 0, 0, 0, 0, 83, 0, 0, 224,
  601. 223, 225, 226, 0, 0, 0, 0, 0, 0, 0,
  602. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  603. 0, 0, 0, 0, 0, 0, 0, 0, 0, 104,
  604. 0, 0, 0, 0, 0, 0, 75, 77, 76, 78,
  605. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  606. 0, 99, 91, 92, 93, 94, 95, 96, 97, 98,
  607. 0, 0, 0, 0, 0, 0, 105, 51, 0, 0,
  608. 85, 86, 87, 109, 0, 0, 112, 0, 0, 0,
  609. 0, 0, 0, 0, 0, 0, 0, 0, 101, 100,
  610. 61, 84, 0, 0, 0, 0, 0, 0, 0, 0,
  611. 0, 0, 106, 107, 108, 110, 0, 113, 0, 0,
  612. 0, 0, 0, 0, 103, 0, 0, 0, 0, 0,
  613. 0, 0, 111, 114, 0, 0, 0, 0, 0, 0,
  614. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  615. 0, 0, 0, 0, 115, 0, 0, 0, 0, 0,
  616. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  617. 0, 116, 0, 0, 0, 0, 0, 0, 117, 0,
  618. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  619. 0, 118, 0, 0, 0, 0, 0, 0, 0, 0,
  620. 119
  621. };
  622. /* YYPDEFGOTO[NTERM-NUM]. */
  623. static const short int yydefgoto[] =
  624. {
  625. -1, 8, 9, 10, 11, 12, 64, 65, 66, 67,
  626. 68, 276, 277, 69, 70, 71, 72, 73, 286, 287,
  627. 288, 74, 75, 296, 297, 298, 299, 300, 468, 469,
  628. 470, 445, 446, 447, 448, 547, 548, 549, 394, 397,
  629. 400, 405, 408, 411, 416, 419, 423, 426, 431, 13,
  630. 14, 115, 116, 117, 118, 119, 120, 121, 122, 123,
  631. 124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
  632. 134, 135, 136, 137, 138, 307, 310, 312, 314, 316,
  633. 318, 320, 322, 326, 328, 331, 333, 337, 250, 339,
  634. 15, 16, 140, 141, 142, 227, 228
  635. };
  636. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  637. STATE-NUM. */
  638. #define YYPACT_NINF -358
  639. static const short int yypact[] =
  640. {
  641. 8, -34, -15, -12, -7, -6, -1, 0, 123, 8,
  642. -358, -358, 1, -358, 33, -358, 34, 181, 170, 189,
  643. 188, -358, -358, -358, -358, -358, 60, 12, 137, 73,
  644. 74, 75, 76, 78, 79, 80, 81, 82, 83, 84,
  645. 85, 86, 87, 88, 89, 91, 92, 93, 94, 95,
  646. 96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
  647. 106, 107, 108, 109, 110, 60, -358, -358, 112, -358,
  648. -358, 113, 114, 115, -358, 116, 204, 224, 225, 226,
  649. 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
  650. 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
  651. 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
  652. 263, 264, 265, 266, 267, 151, 12, 150, 150, 150,
  653. 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
  654. 150, 150, 150, 150, 150, 150, 150, 150, 156, 271,
  655. 155, 137, 150, -358, -358, -358, -358, 274, 275, -358,
  656. -358, -358, -358, -358, -358, -358, -358, 279, 276, 277,
  657. 281, 283, 278, 284, 285, 286, 287, 288, 289, 290,
  658. 291, 293, -358, -358, 292, 295, -358, 298, 166, -358,
  659. 90, 197, 15, 15, -24, -358, -358, -358, -358, -358,
  660. -358, -358, -358, -358, -358, -358, -358, -358, -358, -358,
  661. -358, -358, -358, -358, -358, -358, -358, -358, -358, -358,
  662. -358, -358, -358, -358, -358, -358, -358, -358, -358, -358,
  663. -358, -358, -358, -358, 180, -358, 39, 182, 150, 183,
  664. 184, 185, 186, 187, 190, 191, 185, 185, 192, 193,
  665. 192, 194, 195, 193, 195, 196, -358, 198, 199, 200,
  666. 202, -358, 203, -358, 205, 206, 207, 208, 209, 210,
  667. 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
  668. 221, 222, 223, 227, 228, -358, 229, 90, -358, -358,
  669. 201, 230, 231, 268, 269, 270, 232, 272, 11, 273,
  670. 280, 282, 294, 296, 297, 299, 300, -24, -358, 302,
  671. 303, -358, 301, 304, 305, 306, 314, 307, -358, 311,
  672. 308, 312, 315, 313, 316, 317, 318, 319, 321, 322,
  673. 324, 325, 327, 328, 329, 330, 332, 333, 335, 336,
  674. 337, 339, 340, 342, 343, 344, 345, 347, 320, 348,
  675. -358, -21, -358, -358, -358, -358, -358, -358, -358, -358,
  676. -358, -358, -358, -358, -358, -358, -358, -358, -358, -358,
  677. -358, -358, -358, -358, -358, 349, -358, 351, 346, 350,
  678. 338, 352, 353, 354, 355, -358, 356, 357, 359, 341,
  679. -358, -358, 358, 360, -358, 10, 10, 361, 362, 364,
  680. 331, -358, -358, 367, -358, -358, 368, -358, -358, 369,
  681. -358, -358, -358, -358, 363, -358, -358, 371, -358, -358,
  682. 372, -358, -358, -358, -358, 373, -358, -358, 374, -358,
  683. -358, -358, 375, -358, -358, 376, -358, -358, -358, -358,
  684. 377, -358, -358, -358, -358, 323, 326, 334, 365, 366,
  685. 370, 378, 379, 380, 381, 382, -21, -358, 384, -358,
  686. 383, 385, 386, 387, 389, 390, -358, -358, -358, -358,
  687. 391, 392, 393, -358, 394, 395, 396, 397, 398, 399,
  688. -23, 400, 401, 402, 403, 404, 405, 409, 410, 411,
  689. 412, 413, 414, 415, 416, 417, 418, 419, 388, -358,
  690. 407, 408, 425, 406, 423, 437, 448, 313, -358, -358,
  691. 7, 421, 451, -358, -358, -358, -358, -358, -358, -358,
  692. 456, 461, 462, 444, 424, 426, -358, 427, 428, -358,
  693. -358, -358, -358, 470, 471, 476, 420, 478, 480, 481,
  694. 484, 485, 486, 488, 429, 430, 431, 432, 433, 434,
  695. 435, 436, 438, 422, 440, 441, 442, 443, 445, -16,
  696. 446, 439, 447, 449, 452, 453, -358, -358, -358, -358,
  697. 454, 455, 457, 459, 460, 463, 464, 465, 466, 467,
  698. 468, -358, -358, -358, -358, -358, -358, -358, -358, -358,
  699. 482, 483, 490, 491, 472, 473, -358, -358, 474, 479,
  700. -358, -358, -358, -358, 489, 493, -358, 495, 517, 522,
  701. 523, 524, 525, 555, 475, 477, 487, 492, -358, -358,
  702. -358, -358, 494, 496, 498, 499, 500, 501, 502, 503,
  703. 504, 508, -358, -358, -358, -358, 561, -358, 563, 566,
  704. 569, 572, 573, 575, -358, 506, 507, 509, 510, 511,
  705. 512, 513, -358, -358, 577, 580, 582, 583, 592, 514,
  706. 515, 516, 518, 519, 593, 594, 597, 598, 599, 521,
  707. 526, 527, 528, 529, -358, 600, 601, 602, 603, 530,
  708. 531, 532, 533, 604, 606, 607, 608, 535, 536, 537,
  709. 538, -358, 609, 611, 612, 540, 541, 542, -358, 613,
  710. 615, 543, 544, 616, 619, 545, 546, 628, 629, 548,
  711. 549, -358, 638, 550, 642, 551, 643, 552, 644, 554,
  712. -358
  713. };
  714. /* YYPGOTO[NTERM-NUM]. */
  715. static const short int yypgoto[] =
  716. {
  717. -358, 640, -358, -358, -358, -358, 585, -358, -358, -358,
  718. -358, 32, -358, -158, -155, -358, -358, -358, 127, -160,
  719. -358, -358, -358, 54, -358, -358, -358, -358, -357, -28,
  720. -358, -87, -358, -358, -358, -358, -189, -358, -358, -358,
  721. -132, -358, -358, -358, -358, -358, -358, -358, -358, -358,
  722. -358, 557, -358, -358, -358, -358, -358, -358, -358, -358,
  723. -358, -358, -358, -358, -358, -358, -358, -358, -358, -358,
  724. -358, -358, -358, -358, -358, -358, -358, -358, -209, -358,
  725. -358, -358, -358, 136, 139, -358, 140, -358, -358, -358,
  726. -358, -358, 539, -358, -358, -118, -358
  727. };
  728. /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  729. positive, shift that token. If negative, reduce the rule which
  730. number is the opposite. If YYTABLE_NINF, syntax error. */
  731. #define YYTABLE_NINF -1
  732. static const unsigned short int yytable[] =
  733. {
  734. 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
  735. 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
  736. 543, 464, 278, 290, 254, 279, 281, 323, 324, 471,
  737. 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
  738. 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
  739. 96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
  740. 106, 107, 108, 109, 110, 111, 112, 113, 114, 435,
  741. 1, 2, 3, 4, 5, 6, 7, 291, 292, 293,
  742. 294, 295, 282, 465, 466, 467, 282, 17, 436, 437,
  743. 438, 439, 440, 441, 442, 443, 444, 302, 303, 304,
  744. 305, 283, 544, 545, 546, 283, 18, 284, 285, 19,
  745. 308, 284, 285, 516, 20, 21, 465, 466, 467, 278,
  746. 22, 23, 279, 24, 26, 544, 545, 546, 375, 33,
  747. 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
  748. 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
  749. 54, 55, 56, 57, 58, 59, 27, 28, 60, 61,
  750. 62, 63, 36, 37, 38, 39, 40, 41, 42, 43,
  751. 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
  752. 54, 55, 56, 57, 58, 59, 29, 30, 60, 61,
  753. 62, 63, 31, 32, 139, 143, 144, 145, 146, 147,
  754. 148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
  755. 158, 185, 159, 160, 161, 162, 163, 164, 165, 166,
  756. 167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
  757. 177, 186, 187, 188, 178, 180, 181, 182, 183, 184,
  758. 189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
  759. 199, 200, 201, 202, 203, 204, 205, 206, 207, 208,
  760. 209, 210, 211, 212, 213, 214, 215, 216, 217, 218,
  761. 219, 220, 221, 222, 223, 224, 226, 249, 251, 252,
  762. 255, 256, 257, 262, 258, 260, 259, 261, 275, 263,
  763. 264, 265, 266, 267, 270, 269, 271, 272, 280, 268,
  764. 273, 274, 301, 306, 309, 311, 313, 315, 317, 366,
  765. 289, 319, 321, 325, 327, 330, 332, 336, 391, 338,
  766. 402, 340, 367, 341, 342, 343, 433, 344, 345, 346,
  767. 347, 348, 349, 350, 351, 352, 353, 354, 355, 356,
  768. 357, 358, 359, 360, 361, 362, 461, 476, 453, 363,
  769. 364, 384, 369, 365, 450, 368, 373, 451, 472, 499,
  770. 586, 452, 460, 454, 455, 542, 480, 473, 474, 475,
  771. 462, 477, 478, 479, 481, 482, 329, 483, 484, 485,
  772. 486, 487, 334, 0, 335, 0, 0, 0, 0, 370,
  773. 371, 372, 0, 0, 0, 0, 374, 376, 534, 0,
  774. 0, 0, 0, 378, 377, 0, 0, 0, 0, 538,
  775. 0, 0, 0, 0, 0, 379, 0, 380, 381, 0,
  776. 382, 535, 536, 563, 383, 385, 386, 539, 387, 392,
  777. 395, 388, 389, 390, 393, 396, 399, 398, 401, 537,
  778. 403, 540, 404, 406, 488, 407, 409, 489, 410, 412,
  779. 413, 414, 541, 415, 417, 490, 418, 420, 421, 555,
  780. 422, 424, 551, 425, 427, 428, 429, 552, 430, 432,
  781. 434, 449, 553, 554, 560, 561, 456, 457, 458, 459,
  782. 562, 564, 463, 565, 610, 566, 491, 492, 567, 568,
  783. 569, 493, 570, 612, 611, 604, 605, 613, 614, 494,
  784. 495, 496, 497, 606, 607, 501, 498, 500, 503, 504,
  785. 502, 505, 506, 507, 508, 509, 511, 512, 513, 510,
  786. 615, 634, 514, 515, 517, 518, 616, 617, 618, 619,
  787. 519, 520, 521, 522, 523, 524, 525, 526, 527, 528,
  788. 529, 530, 531, 532, 533, 550, 556, 580, 557, 558,
  789. 559, 571, 572, 573, 574, 575, 576, 577, 578, 620,
  790. 579, 581, 582, 583, 588, 635, 636, 584, 587, 585,
  791. 637, 590, 589, 638, 591, 592, 639, 640, 593, 641,
  792. 594, 649, 595, 596, 650, 597, 651, 652, 598, 599,
  793. 600, 601, 602, 603, 608, 609, 653, 659, 660, 622,
  794. 621, 661, 662, 663, 669, 670, 671, 672, 677, 623,
  795. 678, 679, 680, 685, 624, 686, 687, 691, 625, 692,
  796. 695, 626, 627, 696, 628, 629, 630, 631, 632, 633,
  797. 642, 643, 699, 700, 644, 645, 646, 647, 648, 654,
  798. 655, 656, 703, 657, 658, 664, 705, 707, 709, 25,
  799. 179, 665, 666, 667, 668, 673, 674, 675, 676, 681,
  800. 0, 682, 683, 684, 688, 0, 689, 690, 693, 694,
  801. 697, 698, 701, 225, 702, 704, 706, 708, 710, 0,
  802. 253
  803. };
  804. /* YYCONFLP[YYPACT[STATE-NUM]] -- Pointer into YYCONFL of start of
  805. list of conflicting reductions corresponding to action entry for
  806. state STATE-NUM in yytable. 0 means no conflicts. The list in
  807. yyconfl is terminated by a rule number of 0. */
  808. static const unsigned char yyconflp[] =
  809. {
  810. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  811. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  812. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  813. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  814. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  815. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  816. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  817. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  818. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  819. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  820. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  821. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  822. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  823. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  824. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  825. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  826. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  827. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  828. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  829. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  830. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  831. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  832. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  833. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  834. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  835. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  836. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  837. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  838. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  839. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  840. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  841. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  842. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  843. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  844. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  845. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  846. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  847. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  848. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  849. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  850. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  851. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  852. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  853. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  854. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  855. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  856. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  857. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  858. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  859. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  860. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  861. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  862. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  863. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  864. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  865. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  866. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  867. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  868. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  869. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  870. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  871. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  872. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  873. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  874. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  875. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  876. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  877. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  878. 0
  879. };
  880. /* YYCONFL[I] -- lists of conflicting rule numbers, each terminated by
  881. 0, pointed into by YYCONFLP. */
  882. static const short int yyconfl[] =
  883. {
  884. 0
  885. };
  886. static const short int yycheck[] =
  887. {
  888. 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
  889. 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
  890. 13, 11, 180, 183, 142, 180, 11, 236, 237, 386,
  891. 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
  892. 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
  893. 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
  894. 48, 49, 50, 51, 52, 53, 54, 55, 56, 90,
  895. 62, 63, 64, 65, 66, 67, 68, 101, 102, 103,
  896. 104, 105, 71, 106, 107, 108, 71, 121, 109, 110,
  897. 111, 112, 113, 114, 115, 116, 117, 58, 59, 60,
  898. 61, 90, 118, 119, 120, 90, 121, 96, 97, 121,
  899. 228, 96, 97, 470, 121, 121, 106, 107, 108, 277,
  900. 121, 121, 277, 0, 123, 118, 119, 120, 288, 69,
  901. 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
  902. 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
  903. 90, 91, 92, 93, 94, 95, 123, 123, 98, 99,
  904. 100, 101, 72, 73, 74, 75, 76, 77, 78, 79,
  905. 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
  906. 90, 91, 92, 93, 94, 95, 5, 17, 98, 99,
  907. 100, 101, 3, 5, 57, 122, 122, 122, 122, 121,
  908. 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
  909. 121, 7, 121, 121, 121, 121, 121, 121, 121, 121,
  910. 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
  911. 121, 7, 7, 7, 124, 123, 123, 123, 123, 123,
  912. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  913. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  914. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  915. 7, 7, 7, 7, 7, 124, 126, 121, 7, 124,
  916. 6, 6, 3, 5, 8, 4, 9, 4, 122, 5,
  917. 5, 5, 5, 5, 3, 5, 3, 5, 101, 10,
  918. 5, 3, 122, 121, 121, 121, 121, 121, 121, 277,
  919. 183, 121, 121, 121, 121, 121, 121, 121, 4, 121,
  920. 3, 122, 121, 123, 122, 122, 6, 122, 122, 122,
  921. 122, 122, 122, 122, 122, 122, 122, 122, 122, 122,
  922. 122, 122, 122, 122, 122, 122, 5, 16, 10, 122,
  923. 122, 297, 121, 124, 3, 125, 124, 11, 386, 446,
  924. 549, 11, 3, 11, 11, 497, 3, 6, 6, 5,
  925. 12, 4, 4, 4, 3, 3, 240, 4, 4, 4,
  926. 4, 4, 243, -1, 244, -1, -1, -1, -1, 121,
  927. 121, 121, -1, -1, -1, -1, 124, 124, 10, -1,
  928. -1, -1, -1, 121, 124, -1, -1, -1, -1, 3,
  929. -1, -1, -1, -1, -1, 121, -1, 121, 121, -1,
  930. 121, 14, 14, 3, 124, 123, 123, 4, 127, 122,
  931. 122, 127, 127, 127, 123, 123, 123, 122, 122, 14,
  932. 122, 4, 123, 122, 121, 123, 122, 121, 123, 122,
  933. 122, 122, 4, 123, 122, 121, 123, 122, 122, 15,
  934. 123, 122, 11, 123, 122, 122, 122, 11, 123, 122,
  935. 122, 122, 11, 11, 4, 4, 122, 122, 122, 122,
  936. 4, 3, 122, 3, 10, 4, 121, 121, 4, 4,
  937. 4, 121, 4, 4, 15, 13, 13, 4, 3, 121,
  938. 121, 121, 121, 13, 13, 122, 124, 123, 122, 122,
  939. 125, 122, 122, 122, 122, 122, 121, 121, 121, 125,
  940. 3, 13, 124, 124, 124, 124, 4, 4, 4, 4,
  941. 128, 128, 128, 128, 125, 125, 125, 125, 125, 125,
  942. 125, 125, 125, 125, 125, 124, 122, 125, 122, 122,
  943. 122, 122, 122, 122, 122, 122, 122, 122, 122, 4,
  944. 122, 121, 121, 121, 125, 4, 3, 124, 122, 124,
  945. 4, 122, 125, 4, 122, 122, 4, 4, 124, 4,
  946. 125, 4, 125, 124, 4, 125, 4, 4, 125, 125,
  947. 125, 125, 125, 125, 122, 122, 4, 4, 4, 122,
  948. 125, 4, 4, 4, 4, 4, 4, 4, 4, 122,
  949. 4, 4, 4, 4, 122, 4, 4, 4, 124, 4,
  950. 4, 125, 124, 4, 125, 125, 125, 125, 125, 125,
  951. 124, 124, 4, 4, 125, 125, 125, 125, 125, 125,
  952. 125, 125, 4, 125, 125, 124, 4, 4, 4, 9,
  953. 65, 125, 125, 125, 125, 125, 125, 125, 125, 124,
  954. -1, 125, 125, 125, 124, -1, 125, 125, 125, 125,
  955. 125, 125, 124, 116, 125, 125, 125, 125, 124, -1,
  956. 141
  957. };
  958. /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  959. symbol of state STATE-NUM. */
  960. static const unsigned char yystos[] =
  961. {
  962. 0, 62, 63, 64, 65, 66, 67, 68, 130, 131,
  963. 132, 133, 134, 178, 179, 219, 220, 121, 121, 121,
  964. 121, 121, 121, 121, 0, 130, 123, 123, 123, 5,
  965. 17, 3, 5, 69, 70, 71, 72, 73, 74, 75,
  966. 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
  967. 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
  968. 98, 99, 100, 101, 135, 136, 137, 138, 139, 142,
  969. 143, 144, 145, 146, 150, 151, 18, 19, 20, 21,
  970. 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  971. 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  972. 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
  973. 52, 53, 54, 55, 56, 180, 181, 182, 183, 184,
  974. 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
  975. 195, 196, 197, 198, 199, 200, 201, 202, 203, 57,
  976. 221, 222, 223, 122, 122, 122, 122, 121, 121, 121,
  977. 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
  978. 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
  979. 121, 121, 121, 121, 121, 121, 121, 121, 124, 135,
  980. 123, 123, 123, 123, 123, 7, 7, 7, 7, 7,
  981. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  982. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  983. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  984. 7, 7, 7, 7, 124, 180, 126, 224, 225, 224,
  985. 224, 224, 224, 224, 224, 224, 224, 224, 224, 224,
  986. 224, 224, 224, 224, 224, 224, 224, 224, 224, 121,
  987. 217, 7, 124, 221, 224, 6, 6, 3, 8, 9,
  988. 4, 4, 5, 5, 5, 5, 5, 5, 10, 5,
  989. 3, 3, 5, 5, 3, 122, 140, 141, 142, 143,
  990. 101, 11, 71, 90, 96, 97, 147, 148, 149, 147,
  991. 148, 101, 102, 103, 104, 105, 152, 153, 154, 155,
  992. 156, 122, 58, 59, 60, 61, 121, 204, 224, 121,
  993. 205, 121, 206, 121, 207, 121, 208, 121, 209, 121,
  994. 210, 121, 211, 207, 207, 121, 212, 121, 213, 212,
  995. 121, 214, 121, 215, 213, 215, 121, 216, 121, 218,
  996. 122, 123, 122, 122, 122, 122, 122, 122, 122, 122,
  997. 122, 122, 122, 122, 122, 122, 122, 122, 122, 122,
  998. 122, 122, 122, 122, 122, 124, 140, 121, 125, 121,
  999. 121, 121, 121, 124, 124, 148, 124, 124, 121, 121,
  1000. 121, 121, 121, 124, 152, 123, 123, 127, 127, 127,
  1001. 127, 4, 122, 123, 167, 122, 123, 168, 122, 123,
  1002. 169, 122, 3, 122, 123, 170, 122, 123, 171, 122,
  1003. 123, 172, 122, 122, 122, 123, 173, 122, 123, 174,
  1004. 122, 122, 123, 175, 122, 123, 176, 122, 122, 122,
  1005. 123, 177, 122, 6, 122, 90, 109, 110, 111, 112,
  1006. 113, 114, 115, 116, 117, 160, 161, 162, 163, 122,
  1007. 3, 11, 11, 10, 11, 11, 122, 122, 122, 122,
  1008. 3, 5, 12, 122, 11, 106, 107, 108, 157, 158,
  1009. 159, 157, 158, 6, 6, 5, 16, 4, 4, 4,
  1010. 3, 3, 3, 4, 4, 4, 4, 4, 121, 121,
  1011. 121, 121, 121, 121, 121, 121, 121, 121, 124, 160,
  1012. 123, 122, 125, 122, 122, 122, 122, 122, 122, 122,
  1013. 125, 121, 121, 121, 124, 124, 157, 124, 124, 128,
  1014. 128, 128, 128, 125, 125, 125, 125, 125, 125, 125,
  1015. 125, 125, 125, 125, 10, 14, 14, 14, 3, 4,
  1016. 4, 4, 169, 13, 118, 119, 120, 164, 165, 166,
  1017. 124, 11, 11, 11, 11, 15, 122, 122, 122, 122,
  1018. 4, 4, 4, 3, 3, 3, 4, 4, 4, 4,
  1019. 4, 122, 122, 122, 122, 122, 122, 122, 122, 122,
  1020. 125, 121, 121, 121, 124, 124, 165, 122, 125, 125,
  1021. 122, 122, 122, 124, 125, 125, 124, 125, 125, 125,
  1022. 125, 125, 125, 125, 13, 13, 13, 13, 122, 122,
  1023. 10, 15, 4, 4, 3, 3, 4, 4, 4, 4,
  1024. 4, 125, 122, 122, 122, 124, 125, 124, 125, 125,
  1025. 125, 125, 125, 125, 13, 4, 3, 4, 4, 4,
  1026. 4, 4, 124, 124, 125, 125, 125, 125, 125, 4,
  1027. 4, 4, 4, 4, 125, 125, 125, 125, 125, 4,
  1028. 4, 4, 4, 4, 124, 125, 125, 125, 125, 4,
  1029. 4, 4, 4, 125, 125, 125, 125, 4, 4, 4,
  1030. 4, 124, 125, 125, 125, 4, 4, 4, 124, 125,
  1031. 125, 4, 4, 125, 125, 4, 4, 125, 125, 4,
  1032. 4, 124, 125, 4, 125, 4, 125, 4, 125, 4,
  1033. 124
  1034. };
  1035. /* Error token number */
  1036. #define YYTERROR 1
  1037. /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
  1038. If N is 0, then set CURRENT to the empty location which ends
  1039. the previous symbol: RHS[0] (always defined). */
  1040. #ifndef YYLLOC_DEFAULT
  1041. # define YYLLOC_DEFAULT(Current, Rhs, N) \
  1042. do \
  1043. if (YYID (N)) \
  1044. { \
  1045. (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
  1046. (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
  1047. (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
  1048. (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
  1049. } \
  1050. else \
  1051. { \
  1052. (Current).first_line = (Current).last_line = \
  1053. YYRHSLOC (Rhs, 0).last_line; \
  1054. (Current).first_column = (Current).last_column = \
  1055. YYRHSLOC (Rhs, 0).last_column; \
  1056. } \
  1057. while (YYID (0))
  1058. #endif
  1059. # define YYRHSLOC(Rhs, K) ((Rhs)[K].yystate.yyloc)
  1060. /* YY_LOCATION_PRINT -- Print the location on the stream.
  1061. This macro was not mandated originally: define only if we know
  1062. we won't break user code: when these are the locations we know. */
  1063. #ifndef __attribute__
  1064. /* This feature is available in gcc versions 2.5 and later. */
  1065. # if (! defined __GNUC__ || __GNUC__ < 2 \
  1066. || (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
  1067. # define __attribute__(Spec) /* empty */
  1068. # endif
  1069. #endif
  1070. #ifndef YY_LOCATION_PRINT
  1071. # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  1072. /* Print *YYLOCP on YYO. Private, do not rely on its existence. */
  1073. __attribute__((__unused__))
  1074. #if (defined __STDC__ || defined __C99__FUNC__ \
  1075. || defined __cplusplus || defined _MSC_VER)
  1076. static unsigned
  1077. yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
  1078. #else
  1079. static unsigned
  1080. yy_location_print_ (yyo, yylocp)
  1081. FILE *yyo;
  1082. YYLTYPE const * const yylocp;
  1083. #endif
  1084. {
  1085. unsigned res = 0;
  1086. int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
  1087. if (0 <= yylocp->first_line)
  1088. {
  1089. res += fprintf (yyo, "%d", yylocp->first_line);
  1090. if (0 <= yylocp->first_column)
  1091. res += fprintf (yyo, ".%d", yylocp->first_column);
  1092. }
  1093. if (0 <= yylocp->last_line)
  1094. {
  1095. if (yylocp->first_line < yylocp->last_line)
  1096. {
  1097. res += fprintf (yyo, "-%d", yylocp->last_line);
  1098. if (0 <= end_col)
  1099. res += fprintf (yyo, ".%d", end_col);
  1100. }
  1101. else if (0 <= end_col && yylocp->first_column < end_col)
  1102. res += fprintf (yyo, "-%d", end_col);
  1103. }
  1104. return res;
  1105. }
  1106. # define YY_LOCATION_PRINT(File, Loc) \
  1107. yy_location_print_ (File, &(Loc))
  1108. # else
  1109. # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  1110. # endif
  1111. #endif
  1112. /* YYLEX -- calling `yylex' with the right arguments. */
  1113. #define YYLEX yylex (&yylval, &yylloc, scanner)
  1114. #undef yynerrs
  1115. #define yynerrs (yystackp->yyerrcnt)
  1116. #undef yychar
  1117. #define yychar (yystackp->yyrawchar)
  1118. #undef yylval
  1119. #define yylval (yystackp->yyval)
  1120. #undef yylloc
  1121. #define yylloc (yystackp->yyloc)
  1122. static const int YYEOF = 0;
  1123. static const int YYEMPTY = -2;
  1124. typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;
  1125. #define YYCHK(YYE) \
  1126. do { YYRESULTTAG yyflag = YYE; if (yyflag != yyok) return yyflag; } \
  1127. while (YYID (0))
  1128. #if YYDEBUG
  1129. # ifndef YYFPRINTF
  1130. # define YYFPRINTF fprintf
  1131. # endif
  1132. # define YYDPRINTF(Args) \
  1133. do { \
  1134. if (yydebug) \
  1135. YYFPRINTF Args; \
  1136. } while (YYID (0))
  1137. /*--------------------------------.
  1138. | Print this symbol on YYOUTPUT. |
  1139. `--------------------------------*/
  1140. /*ARGSUSED*/
  1141. static void
  1142. yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, ParseState* parse_state, yyscan_t scanner)
  1143. {
  1144. FILE *yyo = yyoutput;
  1145. YYUSE (yyo);
  1146. if (!yyvaluep)
  1147. return;
  1148. YYUSE (yylocationp);
  1149. YYUSE (parse_state);
  1150. YYUSE (scanner);
  1151. # ifdef YYPRINT
  1152. if (yytype < YYNTOKENS)
  1153. YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  1154. # else
  1155. YYUSE (yyoutput);
  1156. # endif
  1157. switch (yytype)
  1158. {
  1159. default:
  1160. break;
  1161. }
  1162. }
  1163. /*--------------------------------.
  1164. | Print this symbol on YYOUTPUT. |
  1165. `--------------------------------*/
  1166. static void
  1167. yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, ParseState* parse_state, yyscan_t scanner)
  1168. {
  1169. if (yytype < YYNTOKENS)
  1170. YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  1171. else
  1172. YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  1173. YY_LOCATION_PRINT (yyoutput, *yylocationp);
  1174. YYFPRINTF (yyoutput, ": ");
  1175. yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, parse_state, scanner);
  1176. YYFPRINTF (yyoutput, ")");
  1177. }
  1178. # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  1179. do { \
  1180. if (yydebug) \
  1181. { \
  1182. YYFPRINTF (stderr, "%s ", Title); \
  1183. yy_symbol_print (stderr, Type, Value, Location, parse_state, scanner); \
  1184. YYFPRINTF (stderr, "\n"); \
  1185. } \
  1186. } while (YYID (0))
  1187. /* Nonzero means print parse trace. It is left uninitialized so that
  1188. multiple parsers can coexist. */
  1189. int yydebug;
  1190. #else /* !YYDEBUG */
  1191. # define YYDPRINTF(Args)
  1192. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  1193. #endif /* !YYDEBUG */
  1194. /* YYINITDEPTH -- initial size of the parser's stacks. */
  1195. #ifndef YYINITDEPTH
  1196. # define YYINITDEPTH 200
  1197. #endif
  1198. /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  1199. if the built-in stack extension method is used).
  1200. Do not make this value too large; the results are undefined if
  1201. SIZE_MAX < YYMAXDEPTH * sizeof (GLRStackItem)
  1202. evaluated with infinite-precision integer arithmetic. */
  1203. #ifndef YYMAXDEPTH
  1204. # define YYMAXDEPTH 10000
  1205. #endif
  1206. /* Minimum number of free items on the stack allowed after an
  1207. allocation. This is to allow allocation and initialization
  1208. to be completed by functions that call yyexpandGLRStack before the
  1209. stack is expanded, thus insuring that all necessary pointers get
  1210. properly redirected to new data. */
  1211. #define YYHEADROOM 2
  1212. #ifndef YYSTACKEXPANDABLE
  1213. # if (! defined __cplusplus \
  1214. || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
  1215. && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))
  1216. # define YYSTACKEXPANDABLE 1
  1217. # else
  1218. # define YYSTACKEXPANDABLE 0
  1219. # endif
  1220. #endif
  1221. #if YYSTACKEXPANDABLE
  1222. # define YY_RESERVE_GLRSTACK(Yystack) \
  1223. do { \
  1224. if (Yystack->yyspaceLeft < YYHEADROOM) \
  1225. yyexpandGLRStack (Yystack); \
  1226. } while (YYID (0))
  1227. #else
  1228. # define YY_RESERVE_GLRSTACK(Yystack) \
  1229. do { \
  1230. if (Yystack->yyspaceLeft < YYHEADROOM) \
  1231. yyMemoryExhausted (Yystack); \
  1232. } while (YYID (0))
  1233. #endif
  1234. #if YYERROR_VERBOSE
  1235. # ifndef yystpcpy
  1236. # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
  1237. # define yystpcpy stpcpy
  1238. # else
  1239. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  1240. YYDEST. */
  1241. static char *
  1242. yystpcpy (char *yydest, const char *yysrc)
  1243. {
  1244. char *yyd = yydest;
  1245. const char *yys = yysrc;
  1246. while ((*yyd++ = *yys++) != '\0')
  1247. continue;
  1248. return yyd - 1;
  1249. }
  1250. # endif
  1251. # endif
  1252. # ifndef yytnamerr
  1253. /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
  1254. quotes and backslashes, so that it's suitable for yyerror. The
  1255. heuristic is that double-quoting is unnecessary unless the string
  1256. contains an apostrophe, a comma, or backslash (other than
  1257. backslash-backslash). YYSTR is taken from yytname. If YYRES is
  1258. null, do not copy; instead, return the length of what the result
  1259. would have been. */
  1260. static size_t
  1261. yytnamerr (char *yyres, const char *yystr)
  1262. {
  1263. if (*yystr == '"')
  1264. {
  1265. size_t yyn = 0;
  1266. char const *yyp = yystr;
  1267. for (;;)
  1268. switch (*++yyp)
  1269. {
  1270. case '\'':
  1271. case ',':
  1272. goto do_not_strip_quotes;
  1273. case '\\':
  1274. if (*++yyp != '\\')
  1275. goto do_not_strip_quotes;
  1276. /* Fall through. */
  1277. default:
  1278. if (yyres)
  1279. yyres[yyn] = *yyp;
  1280. yyn++;
  1281. break;
  1282. case '"':
  1283. if (yyres)
  1284. yyres[yyn] = '\0';
  1285. return yyn;
  1286. }
  1287. do_not_strip_quotes: ;
  1288. }
  1289. if (! yyres)
  1290. return strlen (yystr);
  1291. return yystpcpy (yyres, yystr) - yyres;
  1292. }
  1293. # endif
  1294. #endif /* !YYERROR_VERBOSE */
  1295. /** State numbers, as in LALR(1) machine */
  1296. typedef int yyStateNum;
  1297. /** Rule numbers, as in LALR(1) machine */
  1298. typedef int yyRuleNum;
  1299. /** Grammar symbol */
  1300. typedef short int yySymbol;
  1301. /** Item references, as in LALR(1) machine */
  1302. typedef short int yyItemNum;
  1303. typedef struct yyGLRState yyGLRState;
  1304. typedef struct yyGLRStateSet yyGLRStateSet;
  1305. typedef struct yySemanticOption yySemanticOption;
  1306. typedef union yyGLRStackItem yyGLRStackItem;
  1307. typedef struct yyGLRStack yyGLRStack;
  1308. struct yyGLRState {
  1309. /** Type tag: always true. */
  1310. yybool yyisState;
  1311. /** Type tag for yysemantics. If true, yysval applies, otherwise
  1312. * yyfirstVal applies. */
  1313. yybool yyresolved;
  1314. /** Number of corresponding LALR(1) machine state. */
  1315. yyStateNum yylrState;
  1316. /** Preceding state in this stack */
  1317. yyGLRState* yypred;
  1318. /** Source position of the first token produced by my symbol */
  1319. size_t yyposn;
  1320. union {
  1321. /** First in a chain of alternative reductions producing the
  1322. * non-terminal corresponding to this state, threaded through
  1323. * yynext. */
  1324. yySemanticOption* yyfirstVal;
  1325. /** Semantic value for this state. */
  1326. YYSTYPE yysval;
  1327. } yysemantics;
  1328. /** Source location for this state. */
  1329. YYLTYPE yyloc;
  1330. };
  1331. struct yyGLRStateSet {
  1332. yyGLRState** yystates;
  1333. /** During nondeterministic operation, yylookaheadNeeds tracks which
  1334. * stacks have actually needed the current lookahead. During deterministic
  1335. * operation, yylookaheadNeeds[0] is not maintained since it would merely
  1336. * duplicate yychar != YYEMPTY. */
  1337. yybool* yylookaheadNeeds;
  1338. size_t yysize, yycapacity;
  1339. };
  1340. struct yySemanticOption {
  1341. /** Type tag: always false. */
  1342. yybool yyisState;
  1343. /** Rule number for this reduction */
  1344. yyRuleNum yyrule;
  1345. /** The last RHS state in the list of states to be reduced. */
  1346. yyGLRState* yystate;
  1347. /** The lookahead for this reduction. */
  1348. int yyrawchar;
  1349. YYSTYPE yyval;
  1350. YYLTYPE yyloc;
  1351. /** Next sibling in chain of options. To facilitate merging,
  1352. * options are chained in decreasing order by address. */
  1353. yySemanticOption* yynext;
  1354. };
  1355. /** Type of the items in the GLR stack. The yyisState field
  1356. * indicates which item of the union is valid. */
  1357. union yyGLRStackItem {
  1358. yyGLRState yystate;
  1359. yySemanticOption yyoption;
  1360. };
  1361. struct yyGLRStack {
  1362. int yyerrState;
  1363. /* To compute the location of the error token. */
  1364. yyGLRStackItem yyerror_range[3];
  1365. int yyerrcnt;
  1366. int yyrawchar;
  1367. YYSTYPE yyval;
  1368. YYLTYPE yyloc;
  1369. YYJMP_BUF yyexception_buffer;
  1370. yyGLRStackItem* yyitems;
  1371. yyGLRStackItem* yynextFree;
  1372. size_t yyspaceLeft;
  1373. yyGLRState* yysplitPoint;
  1374. yyGLRState* yylastDeleted;
  1375. yyGLRStateSet yytops;
  1376. };
  1377. #if YYSTACKEXPANDABLE
  1378. static void yyexpandGLRStack (yyGLRStack* yystackp);
  1379. #endif
  1380. static void yyFail (yyGLRStack* yystackp, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner, const char* yymsg)
  1381. __attribute__ ((__noreturn__));
  1382. static void
  1383. yyFail (yyGLRStack* yystackp, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner, const char* yymsg)
  1384. {
  1385. if (yymsg != YY_NULL)
  1386. yyerror (yylocp, parse_state, scanner, yymsg);
  1387. YYLONGJMP (yystackp->yyexception_buffer, 1);
  1388. }
  1389. static void yyMemoryExhausted (yyGLRStack* yystackp)
  1390. __attribute__ ((__noreturn__));
  1391. static void
  1392. yyMemoryExhausted (yyGLRStack* yystackp)
  1393. {
  1394. YYLONGJMP (yystackp->yyexception_buffer, 2);
  1395. }
  1396. #if YYDEBUG || YYERROR_VERBOSE
  1397. /** A printable representation of TOKEN. */
  1398. static inline const char*
  1399. yytokenName (yySymbol yytoken)
  1400. {
  1401. if (yytoken == YYEMPTY)
  1402. return "";
  1403. return yytname[yytoken];
  1404. }
  1405. #endif
  1406. /** Fill in YYVSP[YYLOW1 .. YYLOW0-1] from the chain of states starting
  1407. * at YYVSP[YYLOW0].yystate.yypred. Leaves YYVSP[YYLOW1].yystate.yypred
  1408. * containing the pointer to the next state in the chain. */
  1409. static void yyfillin (yyGLRStackItem *, int, int) __attribute__ ((__unused__));
  1410. static void
  1411. yyfillin (yyGLRStackItem *yyvsp, int yylow0, int yylow1)
  1412. {
  1413. int i;
  1414. yyGLRState *s = yyvsp[yylow0].yystate.yypred;
  1415. for (i = yylow0-1; i >= yylow1; i -= 1)
  1416. {
  1417. YYASSERT (s->yyresolved);
  1418. yyvsp[i].yystate.yyresolved = yytrue;
  1419. yyvsp[i].yystate.yysemantics.yysval = s->yysemantics.yysval;
  1420. yyvsp[i].yystate.yyloc = s->yyloc;
  1421. s = yyvsp[i].yystate.yypred = s->yypred;
  1422. }
  1423. }
  1424. /* Do nothing if YYNORMAL or if *YYLOW <= YYLOW1. Otherwise, fill in
  1425. * YYVSP[YYLOW1 .. *YYLOW-1] as in yyfillin and set *YYLOW = YYLOW1.
  1426. * For convenience, always return YYLOW1. */
  1427. static inline int yyfill (yyGLRStackItem *, int *, int, yybool)
  1428. __attribute__ ((__unused__));
  1429. static inline int
  1430. yyfill (yyGLRStackItem *yyvsp, int *yylow, int yylow1, yybool yynormal)
  1431. {
  1432. if (!yynormal && yylow1 < *yylow)
  1433. {
  1434. yyfillin (yyvsp, *yylow, yylow1);
  1435. *yylow = yylow1;
  1436. }
  1437. return yylow1;
  1438. }
  1439. /** Perform user action for rule number YYN, with RHS length YYRHSLEN,
  1440. * and top stack item YYVSP. YYLVALP points to place to put semantic
  1441. * value ($$), and yylocp points to place for location information
  1442. * (@$). Returns yyok for normal return, yyaccept for YYACCEPT,
  1443. * yyerr for YYERROR, yyabort for YYABORT. */
  1444. /*ARGSUSED*/ static YYRESULTTAG
  1445. yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp,
  1446. yyGLRStack* yystackp,
  1447. YYSTYPE* yyvalp, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner)
  1448. {
  1449. yybool yynormal __attribute__ ((__unused__)) =
  1450. (yystackp->yysplitPoint == YY_NULL);
  1451. int yylow;
  1452. YYUSE (parse_state);
  1453. YYUSE (scanner);
  1454. # undef yyerrok
  1455. # define yyerrok (yystackp->yyerrState = 0)
  1456. # undef YYACCEPT
  1457. # define YYACCEPT return yyaccept
  1458. # undef YYABORT
  1459. # define YYABORT return yyabort
  1460. # undef YYERROR
  1461. # define YYERROR return yyerrok, yyerr
  1462. # undef YYRECOVERING
  1463. # define YYRECOVERING() (yystackp->yyerrState != 0)
  1464. # undef yyclearin
  1465. # define yyclearin (yychar = YYEMPTY)
  1466. # undef YYFILL
  1467. # define YYFILL(N) yyfill (yyvsp, &yylow, N, yynormal)
  1468. # undef YYBACKUP
  1469. # define YYBACKUP(Token, Value) \
  1470. return yyerror (yylocp, parse_state, scanner, YY_("syntax error: cannot back up")), \
  1471. yyerrok, yyerr
  1472. yylow = 1;
  1473. if (yyrhslen == 0)
  1474. *yyvalp = yyval_default;
  1475. else
  1476. *yyvalp = yyvsp[YYFILL (1-yyrhslen)].yystate.yysemantics.yysval;
  1477. YYLLOC_DEFAULT ((*yylocp), (yyvsp - yyrhslen), yyrhslen);
  1478. yystackp->yyerror_range[1].yystate.yyloc = *yylocp;
  1479. switch (yyn)
  1480. {
  1481. case 2:
  1482. /* Line 868 of glr.c */
  1483. #line 283 "../../../Source/BansheeSL/BsParserFX.y"
  1484. { }
  1485. break;
  1486. case 3:
  1487. /* Line 868 of glr.c */
  1488. #line 284 "../../../Source/BansheeSL/BsParserFX.y"
  1489. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  1490. break;
  1491. case 5:
  1492. /* Line 868 of glr.c */
  1493. #line 289 "../../../Source/BansheeSL/BsParserFX.y"
  1494. { ((*yyvalp).nodeOption).type = OT_Technique; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1495. break;
  1496. case 6:
  1497. /* Line 868 of glr.c */
  1498. #line 290 "../../../Source/BansheeSL/BsParserFX.y"
  1499. { ((*yyvalp).nodeOption).type = OT_Parameters; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1500. break;
  1501. case 7:
  1502. /* Line 868 of glr.c */
  1503. #line 291 "../../../Source/BansheeSL/BsParserFX.y"
  1504. { ((*yyvalp).nodeOption).type = OT_Blocks; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1505. break;
  1506. case 8:
  1507. /* Line 868 of glr.c */
  1508. #line 295 "../../../Source/BansheeSL/BsParserFX.y"
  1509. { ((*yyvalp).nodeOption).type = OT_Separable; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1510. break;
  1511. case 9:
  1512. /* Line 868 of glr.c */
  1513. #line 296 "../../../Source/BansheeSL/BsParserFX.y"
  1514. { ((*yyvalp).nodeOption).type = OT_Sort; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1515. break;
  1516. case 10:
  1517. /* Line 868 of glr.c */
  1518. #line 297 "../../../Source/BansheeSL/BsParserFX.y"
  1519. { ((*yyvalp).nodeOption).type = OT_Priority; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1520. break;
  1521. case 11:
  1522. /* Line 868 of glr.c */
  1523. #line 298 "../../../Source/BansheeSL/BsParserFX.y"
  1524. { ((*yyvalp).nodeOption).type = OT_Transparent; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1525. break;
  1526. case 12:
  1527. /* Line 868 of glr.c */
  1528. #line 304 "../../../Source/BansheeSL/BsParserFX.y"
  1529. { nodePop(parse_state); ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1530. break;
  1531. case 13:
  1532. /* Line 868 of glr.c */
  1533. #line 309 "../../../Source/BansheeSL/BsParserFX.y"
  1534. {
  1535. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_Technique);
  1536. nodePush(parse_state, ((*yyvalp).nodePtr));
  1537. }
  1538. break;
  1539. case 15:
  1540. /* Line 868 of glr.c */
  1541. #line 317 "../../../Source/BansheeSL/BsParserFX.y"
  1542. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  1543. break;
  1544. case 17:
  1545. /* Line 868 of glr.c */
  1546. #line 322 "../../../Source/BansheeSL/BsParserFX.y"
  1547. { ((*yyvalp).nodeOption).type = OT_Pass; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1548. break;
  1549. case 19:
  1550. /* Line 868 of glr.c */
  1551. #line 324 "../../../Source/BansheeSL/BsParserFX.y"
  1552. { ((*yyvalp).nodeOption).type = OT_Code; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1553. break;
  1554. case 20:
  1555. /* Line 868 of glr.c */
  1556. #line 328 "../../../Source/BansheeSL/BsParserFX.y"
  1557. { ((*yyvalp).nodeOption).type = OT_Renderer; ((*yyvalp).nodeOption).value.strValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.strValue); }
  1558. break;
  1559. case 21:
  1560. /* Line 868 of glr.c */
  1561. #line 329 "../../../Source/BansheeSL/BsParserFX.y"
  1562. { ((*yyvalp).nodeOption).type = OT_Language; ((*yyvalp).nodeOption).value.strValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.strValue); }
  1563. break;
  1564. case 22:
  1565. /* Line 868 of glr.c */
  1566. #line 335 "../../../Source/BansheeSL/BsParserFX.y"
  1567. { nodePop(parse_state); ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1568. break;
  1569. case 23:
  1570. /* Line 868 of glr.c */
  1571. #line 340 "../../../Source/BansheeSL/BsParserFX.y"
  1572. {
  1573. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_Pass);
  1574. nodePush(parse_state, ((*yyvalp).nodePtr));
  1575. }
  1576. break;
  1577. case 25:
  1578. /* Line 868 of glr.c */
  1579. #line 348 "../../../Source/BansheeSL/BsParserFX.y"
  1580. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  1581. break;
  1582. case 27:
  1583. /* Line 868 of glr.c */
  1584. #line 353 "../../../Source/BansheeSL/BsParserFX.y"
  1585. { ((*yyvalp).nodeOption).type = OT_Code; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1586. break;
  1587. case 28:
  1588. /* Line 868 of glr.c */
  1589. #line 357 "../../../Source/BansheeSL/BsParserFX.y"
  1590. { ((*yyvalp).nodeOption).type = OT_Index; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1591. break;
  1592. case 29:
  1593. /* Line 868 of glr.c */
  1594. #line 358 "../../../Source/BansheeSL/BsParserFX.y"
  1595. { ((*yyvalp).nodeOption).type = OT_FillMode; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1596. break;
  1597. case 30:
  1598. /* Line 868 of glr.c */
  1599. #line 359 "../../../Source/BansheeSL/BsParserFX.y"
  1600. { ((*yyvalp).nodeOption).type = OT_CullMode; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1601. break;
  1602. case 31:
  1603. /* Line 868 of glr.c */
  1604. #line 360 "../../../Source/BansheeSL/BsParserFX.y"
  1605. { ((*yyvalp).nodeOption).type = OT_DepthBias; ((*yyvalp).nodeOption).value.floatValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.floatValue); }
  1606. break;
  1607. case 32:
  1608. /* Line 868 of glr.c */
  1609. #line 361 "../../../Source/BansheeSL/BsParserFX.y"
  1610. { ((*yyvalp).nodeOption).type = OT_SDepthBias; ((*yyvalp).nodeOption).value.floatValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.floatValue); }
  1611. break;
  1612. case 33:
  1613. /* Line 868 of glr.c */
  1614. #line 362 "../../../Source/BansheeSL/BsParserFX.y"
  1615. { ((*yyvalp).nodeOption).type = OT_DepthClip; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1616. break;
  1617. case 34:
  1618. /* Line 868 of glr.c */
  1619. #line 363 "../../../Source/BansheeSL/BsParserFX.y"
  1620. { ((*yyvalp).nodeOption).type = OT_Scissor; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1621. break;
  1622. case 35:
  1623. /* Line 868 of glr.c */
  1624. #line 364 "../../../Source/BansheeSL/BsParserFX.y"
  1625. { ((*yyvalp).nodeOption).type = OT_Multisample; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1626. break;
  1627. case 36:
  1628. /* Line 868 of glr.c */
  1629. #line 365 "../../../Source/BansheeSL/BsParserFX.y"
  1630. { ((*yyvalp).nodeOption).type = OT_AALine; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1631. break;
  1632. case 37:
  1633. /* Line 868 of glr.c */
  1634. #line 366 "../../../Source/BansheeSL/BsParserFX.y"
  1635. { ((*yyvalp).nodeOption).type = OT_DepthRead; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1636. break;
  1637. case 38:
  1638. /* Line 868 of glr.c */
  1639. #line 367 "../../../Source/BansheeSL/BsParserFX.y"
  1640. { ((*yyvalp).nodeOption).type = OT_DepthWrite; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1641. break;
  1642. case 39:
  1643. /* Line 868 of glr.c */
  1644. #line 368 "../../../Source/BansheeSL/BsParserFX.y"
  1645. { ((*yyvalp).nodeOption).type = OT_CompareFunc; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1646. break;
  1647. case 40:
  1648. /* Line 868 of glr.c */
  1649. #line 369 "../../../Source/BansheeSL/BsParserFX.y"
  1650. { ((*yyvalp).nodeOption).type = OT_Stencil; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1651. break;
  1652. case 41:
  1653. /* Line 868 of glr.c */
  1654. #line 370 "../../../Source/BansheeSL/BsParserFX.y"
  1655. { ((*yyvalp).nodeOption).type = OT_StencilReadMask; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1656. break;
  1657. case 42:
  1658. /* Line 868 of glr.c */
  1659. #line 371 "../../../Source/BansheeSL/BsParserFX.y"
  1660. { ((*yyvalp).nodeOption).type = OT_StencilWriteMask; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1661. break;
  1662. case 43:
  1663. /* Line 868 of glr.c */
  1664. #line 372 "../../../Source/BansheeSL/BsParserFX.y"
  1665. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_StencilOpFront; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1666. break;
  1667. case 44:
  1668. /* Line 868 of glr.c */
  1669. #line 373 "../../../Source/BansheeSL/BsParserFX.y"
  1670. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_StencilOpBack; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1671. break;
  1672. case 45:
  1673. /* Line 868 of glr.c */
  1674. #line 374 "../../../Source/BansheeSL/BsParserFX.y"
  1675. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_StencilOpFront; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1676. break;
  1677. case 46:
  1678. /* Line 868 of glr.c */
  1679. #line 375 "../../../Source/BansheeSL/BsParserFX.y"
  1680. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_StencilOpBack; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1681. break;
  1682. case 47:
  1683. /* Line 868 of glr.c */
  1684. #line 376 "../../../Source/BansheeSL/BsParserFX.y"
  1685. { ((*yyvalp).nodeOption).type = OT_AlphaToCoverage; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1686. break;
  1687. case 48:
  1688. /* Line 868 of glr.c */
  1689. #line 377 "../../../Source/BansheeSL/BsParserFX.y"
  1690. { ((*yyvalp).nodeOption).type = OT_IndependantBlend; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1691. break;
  1692. case 49:
  1693. /* Line 868 of glr.c */
  1694. #line 378 "../../../Source/BansheeSL/BsParserFX.y"
  1695. { ((*yyvalp).nodeOption).type = OT_Target; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1696. break;
  1697. case 50:
  1698. /* Line 868 of glr.c */
  1699. #line 379 "../../../Source/BansheeSL/BsParserFX.y"
  1700. { ((*yyvalp).nodeOption).type = OT_StencilRef; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1701. break;
  1702. case 51:
  1703. /* Line 868 of glr.c */
  1704. #line 386 "../../../Source/BansheeSL/BsParserFX.y"
  1705. {
  1706. NodeOption index;
  1707. index.type = OT_Index;
  1708. index.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (8))].yystate.yysemantics.yysval.intValue);
  1709. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &index);
  1710. nodePop(parse_state);
  1711. ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (8))].yystate.yysemantics.yysval.nodePtr);
  1712. }
  1713. break;
  1714. case 52:
  1715. /* Line 868 of glr.c */
  1716. #line 400 "../../../Source/BansheeSL/BsParserFX.y"
  1717. {
  1718. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_CodeVertex);
  1719. nodePush(parse_state, ((*yyvalp).nodePtr));
  1720. }
  1721. break;
  1722. case 53:
  1723. /* Line 868 of glr.c */
  1724. #line 405 "../../../Source/BansheeSL/BsParserFX.y"
  1725. {
  1726. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_CodeFragment);
  1727. nodePush(parse_state, ((*yyvalp).nodePtr));
  1728. }
  1729. break;
  1730. case 54:
  1731. /* Line 868 of glr.c */
  1732. #line 410 "../../../Source/BansheeSL/BsParserFX.y"
  1733. {
  1734. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_CodeGeometry);
  1735. nodePush(parse_state, ((*yyvalp).nodePtr));
  1736. }
  1737. break;
  1738. case 55:
  1739. /* Line 868 of glr.c */
  1740. #line 415 "../../../Source/BansheeSL/BsParserFX.y"
  1741. {
  1742. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_CodeHull);
  1743. nodePush(parse_state, ((*yyvalp).nodePtr));
  1744. }
  1745. break;
  1746. case 56:
  1747. /* Line 868 of glr.c */
  1748. #line 420 "../../../Source/BansheeSL/BsParserFX.y"
  1749. {
  1750. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_CodeDomain);
  1751. nodePush(parse_state, ((*yyvalp).nodePtr));
  1752. }
  1753. break;
  1754. case 57:
  1755. /* Line 868 of glr.c */
  1756. #line 425 "../../../Source/BansheeSL/BsParserFX.y"
  1757. {
  1758. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_CodeCompute);
  1759. nodePush(parse_state, ((*yyvalp).nodePtr));
  1760. }
  1761. break;
  1762. case 58:
  1763. /* Line 868 of glr.c */
  1764. #line 430 "../../../Source/BansheeSL/BsParserFX.y"
  1765. {
  1766. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_CodeCommon);
  1767. nodePush(parse_state, ((*yyvalp).nodePtr));
  1768. }
  1769. break;
  1770. case 59:
  1771. /* Line 868 of glr.c */
  1772. #line 440 "../../../Source/BansheeSL/BsParserFX.y"
  1773. {
  1774. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_StencilOp);
  1775. nodePush(parse_state, ((*yyvalp).nodePtr));
  1776. }
  1777. break;
  1778. case 60:
  1779. /* Line 868 of glr.c */
  1780. #line 448 "../../../Source/BansheeSL/BsParserFX.y"
  1781. {
  1782. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_StencilOp);
  1783. nodePush(parse_state, ((*yyvalp).nodePtr));
  1784. }
  1785. break;
  1786. case 61:
  1787. /* Line 868 of glr.c */
  1788. #line 456 "../../../Source/BansheeSL/BsParserFX.y"
  1789. {
  1790. NodeOption fail; fail.type = OT_Fail; fail.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (7))].yystate.yysemantics.yysval.intValue);
  1791. NodeOption zfail; zfail.type = OT_ZFail; zfail.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (7))].yystate.yysemantics.yysval.intValue);
  1792. NodeOption pass; pass.type = OT_PassOp; pass.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (7))].yystate.yysemantics.yysval.intValue);
  1793. NodeOption cmp; cmp.type = OT_CompareFunc; cmp.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (7))].yystate.yysemantics.yysval.intValue);
  1794. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &fail);
  1795. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &zfail);
  1796. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &pass);
  1797. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &cmp);
  1798. }
  1799. break;
  1800. case 63:
  1801. /* Line 868 of glr.c */
  1802. #line 471 "../../../Source/BansheeSL/BsParserFX.y"
  1803. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  1804. break;
  1805. case 64:
  1806. /* Line 868 of glr.c */
  1807. #line 475 "../../../Source/BansheeSL/BsParserFX.y"
  1808. { ((*yyvalp).nodeOption).type = OT_Fail; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1809. break;
  1810. case 65:
  1811. /* Line 868 of glr.c */
  1812. #line 476 "../../../Source/BansheeSL/BsParserFX.y"
  1813. { ((*yyvalp).nodeOption).type = OT_ZFail; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1814. break;
  1815. case 66:
  1816. /* Line 868 of glr.c */
  1817. #line 477 "../../../Source/BansheeSL/BsParserFX.y"
  1818. { ((*yyvalp).nodeOption).type = OT_PassOp; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1819. break;
  1820. case 67:
  1821. /* Line 868 of glr.c */
  1822. #line 478 "../../../Source/BansheeSL/BsParserFX.y"
  1823. { ((*yyvalp).nodeOption).type = OT_CompareFunc; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1824. break;
  1825. case 68:
  1826. /* Line 868 of glr.c */
  1827. #line 483 "../../../Source/BansheeSL/BsParserFX.y"
  1828. { nodePop(parse_state); ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1829. break;
  1830. case 69:
  1831. /* Line 868 of glr.c */
  1832. #line 488 "../../../Source/BansheeSL/BsParserFX.y"
  1833. {
  1834. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_Target);
  1835. nodePush(parse_state, ((*yyvalp).nodePtr));
  1836. }
  1837. break;
  1838. case 71:
  1839. /* Line 868 of glr.c */
  1840. #line 496 "../../../Source/BansheeSL/BsParserFX.y"
  1841. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  1842. break;
  1843. case 73:
  1844. /* Line 868 of glr.c */
  1845. #line 504 "../../../Source/BansheeSL/BsParserFX.y"
  1846. { ((*yyvalp).nodeOption).type = OT_Index; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1847. break;
  1848. case 74:
  1849. /* Line 868 of glr.c */
  1850. #line 505 "../../../Source/BansheeSL/BsParserFX.y"
  1851. { ((*yyvalp).nodeOption).type = OT_Blend; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1852. break;
  1853. case 75:
  1854. /* Line 868 of glr.c */
  1855. #line 506 "../../../Source/BansheeSL/BsParserFX.y"
  1856. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Color; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1857. break;
  1858. case 76:
  1859. /* Line 868 of glr.c */
  1860. #line 507 "../../../Source/BansheeSL/BsParserFX.y"
  1861. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Alpha; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1862. break;
  1863. case 77:
  1864. /* Line 868 of glr.c */
  1865. #line 508 "../../../Source/BansheeSL/BsParserFX.y"
  1866. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Color; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1867. break;
  1868. case 78:
  1869. /* Line 868 of glr.c */
  1870. #line 509 "../../../Source/BansheeSL/BsParserFX.y"
  1871. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Alpha; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1872. break;
  1873. case 79:
  1874. /* Line 868 of glr.c */
  1875. #line 510 "../../../Source/BansheeSL/BsParserFX.y"
  1876. { ((*yyvalp).nodeOption).type = OT_WriteMask; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1877. break;
  1878. case 80:
  1879. /* Line 868 of glr.c */
  1880. #line 516 "../../../Source/BansheeSL/BsParserFX.y"
  1881. {
  1882. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_BlendDef);
  1883. nodePush(parse_state, ((*yyvalp).nodePtr));
  1884. }
  1885. break;
  1886. case 81:
  1887. /* Line 868 of glr.c */
  1888. #line 524 "../../../Source/BansheeSL/BsParserFX.y"
  1889. {
  1890. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_BlendDef);
  1891. nodePush(parse_state, ((*yyvalp).nodePtr));
  1892. }
  1893. break;
  1894. case 83:
  1895. /* Line 868 of glr.c */
  1896. #line 532 "../../../Source/BansheeSL/BsParserFX.y"
  1897. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  1898. break;
  1899. case 84:
  1900. /* Line 868 of glr.c */
  1901. #line 537 "../../../Source/BansheeSL/BsParserFX.y"
  1902. {
  1903. NodeOption src; src.type = OT_Source; src.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.intValue);
  1904. NodeOption dst; dst.type = OT_Dest; dst.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.intValue);
  1905. NodeOption op; op.type = OT_Op; op.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.intValue);
  1906. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &src);
  1907. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &dst);
  1908. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &op);
  1909. }
  1910. break;
  1911. case 85:
  1912. /* Line 868 of glr.c */
  1913. #line 549 "../../../Source/BansheeSL/BsParserFX.y"
  1914. { ((*yyvalp).nodeOption).type = OT_Source; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1915. break;
  1916. case 86:
  1917. /* Line 868 of glr.c */
  1918. #line 550 "../../../Source/BansheeSL/BsParserFX.y"
  1919. { ((*yyvalp).nodeOption).type = OT_Dest; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1920. break;
  1921. case 87:
  1922. /* Line 868 of glr.c */
  1923. #line 551 "../../../Source/BansheeSL/BsParserFX.y"
  1924. { ((*yyvalp).nodeOption).type = OT_Op; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1925. break;
  1926. case 89:
  1927. /* Line 868 of glr.c */
  1928. #line 558 "../../../Source/BansheeSL/BsParserFX.y"
  1929. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  1930. break;
  1931. case 90:
  1932. /* Line 868 of glr.c */
  1933. #line 562 "../../../Source/BansheeSL/BsParserFX.y"
  1934. { ((*yyvalp).nodeOption).type = OT_AddrMode; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.nodePtr); }
  1935. break;
  1936. case 91:
  1937. /* Line 868 of glr.c */
  1938. #line 563 "../../../Source/BansheeSL/BsParserFX.y"
  1939. { ((*yyvalp).nodeOption).type = OT_MinFilter; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1940. break;
  1941. case 92:
  1942. /* Line 868 of glr.c */
  1943. #line 564 "../../../Source/BansheeSL/BsParserFX.y"
  1944. { ((*yyvalp).nodeOption).type = OT_MagFilter; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1945. break;
  1946. case 93:
  1947. /* Line 868 of glr.c */
  1948. #line 565 "../../../Source/BansheeSL/BsParserFX.y"
  1949. { ((*yyvalp).nodeOption).type = OT_MipFilter; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1950. break;
  1951. case 94:
  1952. /* Line 868 of glr.c */
  1953. #line 566 "../../../Source/BansheeSL/BsParserFX.y"
  1954. { ((*yyvalp).nodeOption).type = OT_MaxAniso; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1955. break;
  1956. case 95:
  1957. /* Line 868 of glr.c */
  1958. #line 567 "../../../Source/BansheeSL/BsParserFX.y"
  1959. { ((*yyvalp).nodeOption).type = OT_MipBias; ((*yyvalp).nodeOption).value.floatValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.floatValue); }
  1960. break;
  1961. case 96:
  1962. /* Line 868 of glr.c */
  1963. #line 568 "../../../Source/BansheeSL/BsParserFX.y"
  1964. { ((*yyvalp).nodeOption).type = OT_MipMin; ((*yyvalp).nodeOption).value.floatValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.floatValue); }
  1965. break;
  1966. case 97:
  1967. /* Line 868 of glr.c */
  1968. #line 569 "../../../Source/BansheeSL/BsParserFX.y"
  1969. { ((*yyvalp).nodeOption).type = OT_MipMax; ((*yyvalp).nodeOption).value.floatValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.floatValue); }
  1970. break;
  1971. case 98:
  1972. /* Line 868 of glr.c */
  1973. #line 570 "../../../Source/BansheeSL/BsParserFX.y"
  1974. { ((*yyvalp).nodeOption).type = OT_BorderColor; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.matrixValue))); }
  1975. break;
  1976. case 99:
  1977. /* Line 868 of glr.c */
  1978. #line 571 "../../../Source/BansheeSL/BsParserFX.y"
  1979. { ((*yyvalp).nodeOption).type = OT_CompareFunc; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  1980. break;
  1981. case 100:
  1982. /* Line 868 of glr.c */
  1983. #line 576 "../../../Source/BansheeSL/BsParserFX.y"
  1984. { nodePop(parse_state); ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1985. break;
  1986. case 101:
  1987. /* Line 868 of glr.c */
  1988. #line 577 "../../../Source/BansheeSL/BsParserFX.y"
  1989. { nodePop(parse_state); ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  1990. break;
  1991. case 102:
  1992. /* Line 868 of glr.c */
  1993. #line 582 "../../../Source/BansheeSL/BsParserFX.y"
  1994. {
  1995. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_AddrMode);
  1996. nodePush(parse_state, ((*yyvalp).nodePtr));
  1997. }
  1998. break;
  1999. case 103:
  2000. /* Line 868 of glr.c */
  2001. #line 590 "../../../Source/BansheeSL/BsParserFX.y"
  2002. {
  2003. NodeOption u; u.type = OT_U; u.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.intValue);
  2004. NodeOption v; v.type = OT_V; v.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.intValue);
  2005. NodeOption w; w.type = OT_W; w.value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.intValue);
  2006. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &u);
  2007. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &v);
  2008. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &w);
  2009. }
  2010. break;
  2011. case 105:
  2012. /* Line 868 of glr.c */
  2013. #line 603 "../../../Source/BansheeSL/BsParserFX.y"
  2014. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  2015. break;
  2016. case 106:
  2017. /* Line 868 of glr.c */
  2018. #line 607 "../../../Source/BansheeSL/BsParserFX.y"
  2019. { ((*yyvalp).nodeOption).type = OT_U; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  2020. break;
  2021. case 107:
  2022. /* Line 868 of glr.c */
  2023. #line 608 "../../../Source/BansheeSL/BsParserFX.y"
  2024. { ((*yyvalp).nodeOption).type = OT_V; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  2025. break;
  2026. case 108:
  2027. /* Line 868 of glr.c */
  2028. #line 609 "../../../Source/BansheeSL/BsParserFX.y"
  2029. { ((*yyvalp).nodeOption).type = OT_W; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.intValue); }
  2030. break;
  2031. case 109:
  2032. /* Line 868 of glr.c */
  2033. #line 614 "../../../Source/BansheeSL/BsParserFX.y"
  2034. { ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (5))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.floatValue); }
  2035. break;
  2036. case 110:
  2037. /* Line 868 of glr.c */
  2038. #line 618 "../../../Source/BansheeSL/BsParserFX.y"
  2039. { ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (7))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (7))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (7))].yystate.yysemantics.yysval.floatValue); }
  2040. break;
  2041. case 111:
  2042. /* Line 868 of glr.c */
  2043. #line 622 "../../../Source/BansheeSL/BsParserFX.y"
  2044. { ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (9))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (9))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (9))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[3] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (9))].yystate.yysemantics.yysval.floatValue);}
  2045. break;
  2046. case 112:
  2047. /* Line 868 of glr.c */
  2048. #line 626 "../../../Source/BansheeSL/BsParserFX.y"
  2049. { ((*yyvalp).intVectorValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (5))].yystate.yysemantics.yysval.intValue); ((*yyvalp).intVectorValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.intValue); }
  2050. break;
  2051. case 113:
  2052. /* Line 868 of glr.c */
  2053. #line 630 "../../../Source/BansheeSL/BsParserFX.y"
  2054. { ((*yyvalp).intVectorValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (7))].yystate.yysemantics.yysval.intValue); ((*yyvalp).intVectorValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (7))].yystate.yysemantics.yysval.intValue); ((*yyvalp).intVectorValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (7))].yystate.yysemantics.yysval.intValue); }
  2055. break;
  2056. case 114:
  2057. /* Line 868 of glr.c */
  2058. #line 634 "../../../Source/BansheeSL/BsParserFX.y"
  2059. { ((*yyvalp).intVectorValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (9))].yystate.yysemantics.yysval.intValue); ((*yyvalp).intVectorValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (9))].yystate.yysemantics.yysval.intValue); ((*yyvalp).intVectorValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (9))].yystate.yysemantics.yysval.intValue); ((*yyvalp).intVectorValue)[3] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (9))].yystate.yysemantics.yysval.intValue);}
  2060. break;
  2061. case 115:
  2062. /* Line 868 of glr.c */
  2063. #line 640 "../../../Source/BansheeSL/BsParserFX.y"
  2064. {
  2065. ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (13))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (13))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (13))].yystate.yysemantics.yysval.floatValue);
  2066. ((*yyvalp).matrixValue)[3] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (13))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[4] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((10) - (13))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[5] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((12) - (13))].yystate.yysemantics.yysval.floatValue);
  2067. }
  2068. break;
  2069. case 116:
  2070. /* Line 868 of glr.c */
  2071. #line 650 "../../../Source/BansheeSL/BsParserFX.y"
  2072. {
  2073. ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (17))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (17))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (17))].yystate.yysemantics.yysval.floatValue);
  2074. ((*yyvalp).matrixValue)[3] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (17))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[4] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((10) - (17))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[5] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((12) - (17))].yystate.yysemantics.yysval.floatValue);
  2075. ((*yyvalp).matrixValue)[6] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((14) - (17))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[7] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((16) - (17))].yystate.yysemantics.yysval.floatValue);
  2076. }
  2077. break;
  2078. case 117:
  2079. /* Line 868 of glr.c */
  2080. #line 661 "../../../Source/BansheeSL/BsParserFX.y"
  2081. {
  2082. ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (19))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (19))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (19))].yystate.yysemantics.yysval.floatValue);
  2083. ((*yyvalp).matrixValue)[3] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (19))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[4] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((10) - (19))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[5] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((12) - (19))].yystate.yysemantics.yysval.floatValue);
  2084. ((*yyvalp).matrixValue)[6] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((14) - (19))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[7] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((16) - (19))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[8] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((18) - (19))].yystate.yysemantics.yysval.floatValue);
  2085. }
  2086. break;
  2087. case 118:
  2088. /* Line 868 of glr.c */
  2089. #line 672 "../../../Source/BansheeSL/BsParserFX.y"
  2090. {
  2091. ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[3] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (25))].yystate.yysemantics.yysval.floatValue);
  2092. ((*yyvalp).matrixValue)[4] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((10) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[5] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((12) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[6] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((14) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[7] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((16) - (25))].yystate.yysemantics.yysval.floatValue);
  2093. ((*yyvalp).matrixValue)[8] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((18) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[9] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((20) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[10] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((22) - (25))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[11] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((24) - (25))].yystate.yysemantics.yysval.floatValue);
  2094. }
  2095. break;
  2096. case 119:
  2097. /* Line 868 of glr.c */
  2098. #line 684 "../../../Source/BansheeSL/BsParserFX.y"
  2099. {
  2100. ((*yyvalp).matrixValue)[0] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[1] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[2] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((6) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[3] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((8) - (33))].yystate.yysemantics.yysval.floatValue);
  2101. ((*yyvalp).matrixValue)[4] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((10) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[5] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((12) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[6] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((14) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[7] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((16) - (33))].yystate.yysemantics.yysval.floatValue);
  2102. ((*yyvalp).matrixValue)[8] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((18) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[9] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((20) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[10] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((22) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[11] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((24) - (33))].yystate.yysemantics.yysval.floatValue);
  2103. ((*yyvalp).matrixValue)[12] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((26) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[13] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((28) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[14] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((30) - (33))].yystate.yysemantics.yysval.floatValue); ((*yyvalp).matrixValue)[15] = (((yyGLRStackItem const *)yyvsp)[YYFILL ((32) - (33))].yystate.yysemantics.yysval.floatValue);
  2104. }
  2105. break;
  2106. case 120:
  2107. /* Line 868 of glr.c */
  2108. #line 694 "../../../Source/BansheeSL/BsParserFX.y"
  2109. { nodePop(parse_state); ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  2110. break;
  2111. case 121:
  2112. /* Line 868 of glr.c */
  2113. #line 699 "../../../Source/BansheeSL/BsParserFX.y"
  2114. {
  2115. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_Parameters);
  2116. nodePush(parse_state, ((*yyvalp).nodePtr));
  2117. }
  2118. break;
  2119. case 123:
  2120. /* Line 868 of glr.c */
  2121. #line 707 "../../../Source/BansheeSL/BsParserFX.y"
  2122. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  2123. break;
  2124. case 124:
  2125. /* Line 868 of glr.c */
  2126. #line 711 "../../../Source/BansheeSL/BsParserFX.y"
  2127. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2128. break;
  2129. case 125:
  2130. /* Line 868 of glr.c */
  2131. #line 712 "../../../Source/BansheeSL/BsParserFX.y"
  2132. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2133. break;
  2134. case 126:
  2135. /* Line 868 of glr.c */
  2136. #line 713 "../../../Source/BansheeSL/BsParserFX.y"
  2137. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2138. break;
  2139. case 127:
  2140. /* Line 868 of glr.c */
  2141. #line 714 "../../../Source/BansheeSL/BsParserFX.y"
  2142. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2143. break;
  2144. case 128:
  2145. /* Line 868 of glr.c */
  2146. #line 715 "../../../Source/BansheeSL/BsParserFX.y"
  2147. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2148. break;
  2149. case 129:
  2150. /* Line 868 of glr.c */
  2151. #line 716 "../../../Source/BansheeSL/BsParserFX.y"
  2152. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2153. break;
  2154. case 130:
  2155. /* Line 868 of glr.c */
  2156. #line 717 "../../../Source/BansheeSL/BsParserFX.y"
  2157. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2158. break;
  2159. case 131:
  2160. /* Line 868 of glr.c */
  2161. #line 718 "../../../Source/BansheeSL/BsParserFX.y"
  2162. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2163. break;
  2164. case 132:
  2165. /* Line 868 of glr.c */
  2166. #line 719 "../../../Source/BansheeSL/BsParserFX.y"
  2167. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2168. break;
  2169. case 133:
  2170. /* Line 868 of glr.c */
  2171. #line 720 "../../../Source/BansheeSL/BsParserFX.y"
  2172. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2173. break;
  2174. case 134:
  2175. /* Line 868 of glr.c */
  2176. #line 721 "../../../Source/BansheeSL/BsParserFX.y"
  2177. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2178. break;
  2179. case 135:
  2180. /* Line 868 of glr.c */
  2181. #line 722 "../../../Source/BansheeSL/BsParserFX.y"
  2182. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2183. break;
  2184. case 136:
  2185. /* Line 868 of glr.c */
  2186. #line 723 "../../../Source/BansheeSL/BsParserFX.y"
  2187. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2188. break;
  2189. case 137:
  2190. /* Line 868 of glr.c */
  2191. #line 724 "../../../Source/BansheeSL/BsParserFX.y"
  2192. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2193. break;
  2194. case 138:
  2195. /* Line 868 of glr.c */
  2196. #line 725 "../../../Source/BansheeSL/BsParserFX.y"
  2197. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2198. break;
  2199. case 139:
  2200. /* Line 868 of glr.c */
  2201. #line 726 "../../../Source/BansheeSL/BsParserFX.y"
  2202. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2203. break;
  2204. case 140:
  2205. /* Line 868 of glr.c */
  2206. #line 727 "../../../Source/BansheeSL/BsParserFX.y"
  2207. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2208. break;
  2209. case 141:
  2210. /* Line 868 of glr.c */
  2211. #line 728 "../../../Source/BansheeSL/BsParserFX.y"
  2212. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2213. break;
  2214. case 142:
  2215. /* Line 868 of glr.c */
  2216. #line 729 "../../../Source/BansheeSL/BsParserFX.y"
  2217. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.nodeOption)); nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.nodePtr); }
  2218. break;
  2219. case 143:
  2220. /* Line 868 of glr.c */
  2221. #line 730 "../../../Source/BansheeSL/BsParserFX.y"
  2222. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.nodePtr); }
  2223. break;
  2224. case 144:
  2225. /* Line 868 of glr.c */
  2226. #line 732 "../../../Source/BansheeSL/BsParserFX.y"
  2227. {
  2228. nodePop(parse_state);
  2229. NodeOption samplerState;
  2230. samplerState.type = OT_SamplerState;
  2231. samplerState.value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.nodePtr);
  2232. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &samplerState);
  2233. ((*yyvalp).nodeOption).type = OT_Parameter; ((*yyvalp).nodeOption).value.nodePtr = parse_state->topNode;
  2234. nodePop(parse_state);
  2235. }
  2236. break;
  2237. case 145:
  2238. /* Line 868 of glr.c */
  2239. #line 747 "../../../Source/BansheeSL/BsParserFX.y"
  2240. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2241. break;
  2242. case 146:
  2243. /* Line 868 of glr.c */
  2244. #line 751 "../../../Source/BansheeSL/BsParserFX.y"
  2245. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2246. break;
  2247. case 147:
  2248. /* Line 868 of glr.c */
  2249. #line 755 "../../../Source/BansheeSL/BsParserFX.y"
  2250. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2251. break;
  2252. case 148:
  2253. /* Line 868 of glr.c */
  2254. #line 759 "../../../Source/BansheeSL/BsParserFX.y"
  2255. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2256. break;
  2257. case 149:
  2258. /* Line 868 of glr.c */
  2259. #line 763 "../../../Source/BansheeSL/BsParserFX.y"
  2260. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2261. break;
  2262. case 150:
  2263. /* Line 868 of glr.c */
  2264. #line 767 "../../../Source/BansheeSL/BsParserFX.y"
  2265. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2266. break;
  2267. case 151:
  2268. /* Line 868 of glr.c */
  2269. #line 771 "../../../Source/BansheeSL/BsParserFX.y"
  2270. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2271. break;
  2272. case 152:
  2273. /* Line 868 of glr.c */
  2274. #line 775 "../../../Source/BansheeSL/BsParserFX.y"
  2275. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2276. break;
  2277. case 153:
  2278. /* Line 868 of glr.c */
  2279. #line 779 "../../../Source/BansheeSL/BsParserFX.y"
  2280. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2281. break;
  2282. case 154:
  2283. /* Line 868 of glr.c */
  2284. #line 783 "../../../Source/BansheeSL/BsParserFX.y"
  2285. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2286. break;
  2287. case 155:
  2288. /* Line 868 of glr.c */
  2289. #line 787 "../../../Source/BansheeSL/BsParserFX.y"
  2290. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2291. break;
  2292. case 156:
  2293. /* Line 868 of glr.c */
  2294. #line 791 "../../../Source/BansheeSL/BsParserFX.y"
  2295. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2296. break;
  2297. case 157:
  2298. /* Line 868 of glr.c */
  2299. #line 795 "../../../Source/BansheeSL/BsParserFX.y"
  2300. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2301. break;
  2302. case 158:
  2303. /* Line 868 of glr.c */
  2304. #line 799 "../../../Source/BansheeSL/BsParserFX.y"
  2305. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2306. break;
  2307. case 159:
  2308. /* Line 868 of glr.c */
  2309. #line 803 "../../../Source/BansheeSL/BsParserFX.y"
  2310. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2311. break;
  2312. case 160:
  2313. /* Line 868 of glr.c */
  2314. #line 807 "../../../Source/BansheeSL/BsParserFX.y"
  2315. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2316. break;
  2317. case 161:
  2318. /* Line 868 of glr.c */
  2319. #line 811 "../../../Source/BansheeSL/BsParserFX.y"
  2320. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2321. break;
  2322. case 162:
  2323. /* Line 868 of glr.c */
  2324. #line 815 "../../../Source/BansheeSL/BsParserFX.y"
  2325. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2326. break;
  2327. case 163:
  2328. /* Line 868 of glr.c */
  2329. #line 819 "../../../Source/BansheeSL/BsParserFX.y"
  2330. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2331. break;
  2332. case 164:
  2333. /* Line 868 of glr.c */
  2334. #line 820 "../../../Source/BansheeSL/BsParserFX.y"
  2335. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2336. break;
  2337. case 165:
  2338. /* Line 868 of glr.c */
  2339. #line 821 "../../../Source/BansheeSL/BsParserFX.y"
  2340. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2341. break;
  2342. case 166:
  2343. /* Line 868 of glr.c */
  2344. #line 822 "../../../Source/BansheeSL/BsParserFX.y"
  2345. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2346. break;
  2347. case 167:
  2348. /* Line 868 of glr.c */
  2349. #line 823 "../../../Source/BansheeSL/BsParserFX.y"
  2350. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2351. break;
  2352. case 168:
  2353. /* Line 868 of glr.c */
  2354. #line 827 "../../../Source/BansheeSL/BsParserFX.y"
  2355. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2356. break;
  2357. case 169:
  2358. /* Line 868 of glr.c */
  2359. #line 828 "../../../Source/BansheeSL/BsParserFX.y"
  2360. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2361. break;
  2362. case 170:
  2363. /* Line 868 of glr.c */
  2364. #line 829 "../../../Source/BansheeSL/BsParserFX.y"
  2365. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2366. break;
  2367. case 171:
  2368. /* Line 868 of glr.c */
  2369. #line 830 "../../../Source/BansheeSL/BsParserFX.y"
  2370. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2371. break;
  2372. case 172:
  2373. /* Line 868 of glr.c */
  2374. #line 831 "../../../Source/BansheeSL/BsParserFX.y"
  2375. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2376. break;
  2377. case 173:
  2378. /* Line 868 of glr.c */
  2379. #line 832 "../../../Source/BansheeSL/BsParserFX.y"
  2380. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2381. break;
  2382. case 174:
  2383. /* Line 868 of glr.c */
  2384. #line 833 "../../../Source/BansheeSL/BsParserFX.y"
  2385. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2386. break;
  2387. case 175:
  2388. /* Line 868 of glr.c */
  2389. #line 834 "../../../Source/BansheeSL/BsParserFX.y"
  2390. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2391. break;
  2392. case 176:
  2393. /* Line 868 of glr.c */
  2394. #line 835 "../../../Source/BansheeSL/BsParserFX.y"
  2395. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2396. break;
  2397. case 177:
  2398. /* Line 868 of glr.c */
  2399. #line 839 "../../../Source/BansheeSL/BsParserFX.y"
  2400. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2401. break;
  2402. case 178:
  2403. /* Line 868 of glr.c */
  2404. #line 840 "../../../Source/BansheeSL/BsParserFX.y"
  2405. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2406. break;
  2407. case 179:
  2408. /* Line 868 of glr.c */
  2409. #line 841 "../../../Source/BansheeSL/BsParserFX.y"
  2410. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2411. break;
  2412. case 180:
  2413. /* Line 868 of glr.c */
  2414. #line 842 "../../../Source/BansheeSL/BsParserFX.y"
  2415. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2416. break;
  2417. case 181:
  2418. /* Line 868 of glr.c */
  2419. #line 843 "../../../Source/BansheeSL/BsParserFX.y"
  2420. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2421. break;
  2422. case 182:
  2423. /* Line 868 of glr.c */
  2424. #line 844 "../../../Source/BansheeSL/BsParserFX.y"
  2425. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2426. break;
  2427. case 183:
  2428. /* Line 868 of glr.c */
  2429. #line 845 "../../../Source/BansheeSL/BsParserFX.y"
  2430. { ADD_PARAMETER(((*yyvalp).nodePtr), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.intValue), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue)); }
  2431. break;
  2432. case 184:
  2433. /* Line 868 of glr.c */
  2434. #line 850 "../../../Source/BansheeSL/BsParserFX.y"
  2435. {
  2436. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_SamplerState);
  2437. nodePush(parse_state, ((*yyvalp).nodePtr));
  2438. }
  2439. break;
  2440. case 185:
  2441. /* Line 868 of glr.c */
  2442. #line 857 "../../../Source/BansheeSL/BsParserFX.y"
  2443. { ((*yyvalp).nodeOption).type = OT_None; }
  2444. break;
  2445. case 186:
  2446. /* Line 868 of glr.c */
  2447. #line 858 "../../../Source/BansheeSL/BsParserFX.y"
  2448. { ((*yyvalp).nodeOption).type = OT_ParamValue; ((*yyvalp).nodeOption).value.floatValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.floatValue); }
  2449. break;
  2450. case 187:
  2451. /* Line 868 of glr.c */
  2452. #line 862 "../../../Source/BansheeSL/BsParserFX.y"
  2453. { ((*yyvalp).nodeOption).type = OT_None; }
  2454. break;
  2455. case 188:
  2456. /* Line 868 of glr.c */
  2457. #line 863 "../../../Source/BansheeSL/BsParserFX.y"
  2458. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2459. break;
  2460. case 189:
  2461. /* Line 868 of glr.c */
  2462. #line 867 "../../../Source/BansheeSL/BsParserFX.y"
  2463. { ((*yyvalp).nodeOption).type = OT_None; }
  2464. break;
  2465. case 190:
  2466. /* Line 868 of glr.c */
  2467. #line 868 "../../../Source/BansheeSL/BsParserFX.y"
  2468. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2469. break;
  2470. case 191:
  2471. /* Line 868 of glr.c */
  2472. #line 872 "../../../Source/BansheeSL/BsParserFX.y"
  2473. { ((*yyvalp).nodeOption).type = OT_None; }
  2474. break;
  2475. case 192:
  2476. /* Line 868 of glr.c */
  2477. #line 873 "../../../Source/BansheeSL/BsParserFX.y"
  2478. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2479. break;
  2480. case 193:
  2481. /* Line 868 of glr.c */
  2482. #line 877 "../../../Source/BansheeSL/BsParserFX.y"
  2483. { ((*yyvalp).nodeOption).type = OT_None; }
  2484. break;
  2485. case 194:
  2486. /* Line 868 of glr.c */
  2487. #line 878 "../../../Source/BansheeSL/BsParserFX.y"
  2488. { ((*yyvalp).nodeOption).type = OT_ParamValue; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.intValue); }
  2489. break;
  2490. case 195:
  2491. /* Line 868 of glr.c */
  2492. #line 882 "../../../Source/BansheeSL/BsParserFX.y"
  2493. { ((*yyvalp).nodeOption).type = OT_None; }
  2494. break;
  2495. case 196:
  2496. /* Line 868 of glr.c */
  2497. #line 883 "../../../Source/BansheeSL/BsParserFX.y"
  2498. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.intVectorValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.intVectorValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.intVectorValue))); }
  2499. break;
  2500. case 197:
  2501. /* Line 868 of glr.c */
  2502. #line 887 "../../../Source/BansheeSL/BsParserFX.y"
  2503. { ((*yyvalp).nodeOption).type = OT_None; }
  2504. break;
  2505. case 198:
  2506. /* Line 868 of glr.c */
  2507. #line 888 "../../../Source/BansheeSL/BsParserFX.y"
  2508. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.intVectorValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.intVectorValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.intVectorValue))); }
  2509. break;
  2510. case 199:
  2511. /* Line 868 of glr.c */
  2512. #line 892 "../../../Source/BansheeSL/BsParserFX.y"
  2513. { ((*yyvalp).nodeOption).type = OT_None; }
  2514. break;
  2515. case 200:
  2516. /* Line 868 of glr.c */
  2517. #line 893 "../../../Source/BansheeSL/BsParserFX.y"
  2518. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.intVectorValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.intVectorValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.intVectorValue))); }
  2519. break;
  2520. case 201:
  2521. /* Line 868 of glr.c */
  2522. #line 897 "../../../Source/BansheeSL/BsParserFX.y"
  2523. { ((*yyvalp).nodeOption).type = OT_None; }
  2524. break;
  2525. case 202:
  2526. /* Line 868 of glr.c */
  2527. #line 898 "../../../Source/BansheeSL/BsParserFX.y"
  2528. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2529. break;
  2530. case 203:
  2531. /* Line 868 of glr.c */
  2532. #line 902 "../../../Source/BansheeSL/BsParserFX.y"
  2533. { ((*yyvalp).nodeOption).type = OT_None; }
  2534. break;
  2535. case 204:
  2536. /* Line 868 of glr.c */
  2537. #line 903 "../../../Source/BansheeSL/BsParserFX.y"
  2538. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2539. break;
  2540. case 205:
  2541. /* Line 868 of glr.c */
  2542. #line 907 "../../../Source/BansheeSL/BsParserFX.y"
  2543. { ((*yyvalp).nodeOption).type = OT_None; }
  2544. break;
  2545. case 206:
  2546. /* Line 868 of glr.c */
  2547. #line 908 "../../../Source/BansheeSL/BsParserFX.y"
  2548. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2549. break;
  2550. case 207:
  2551. /* Line 868 of glr.c */
  2552. #line 912 "../../../Source/BansheeSL/BsParserFX.y"
  2553. { ((*yyvalp).nodeOption).type = OT_None; }
  2554. break;
  2555. case 208:
  2556. /* Line 868 of glr.c */
  2557. #line 913 "../../../Source/BansheeSL/BsParserFX.y"
  2558. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2559. break;
  2560. case 209:
  2561. /* Line 868 of glr.c */
  2562. #line 917 "../../../Source/BansheeSL/BsParserFX.y"
  2563. { ((*yyvalp).nodeOption).type = OT_None; }
  2564. break;
  2565. case 210:
  2566. /* Line 868 of glr.c */
  2567. #line 918 "../../../Source/BansheeSL/BsParserFX.y"
  2568. { ((*yyvalp).nodeOption).type = OT_ParamValue; memcpy(((*yyvalp).nodeOption).value.matrixValue, (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue), sizeof((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.matrixValue))); }
  2569. break;
  2570. case 211:
  2571. /* Line 868 of glr.c */
  2572. #line 922 "../../../Source/BansheeSL/BsParserFX.y"
  2573. { ((*yyvalp).nodeOption).type = OT_None; }
  2574. break;
  2575. case 212:
  2576. /* Line 868 of glr.c */
  2577. #line 923 "../../../Source/BansheeSL/BsParserFX.y"
  2578. { }
  2579. break;
  2580. case 213:
  2581. /* Line 868 of glr.c */
  2582. #line 927 "../../../Source/BansheeSL/BsParserFX.y"
  2583. { ((*yyvalp).nodeOption).type = OT_None; }
  2584. break;
  2585. case 214:
  2586. /* Line 868 of glr.c */
  2587. #line 928 "../../../Source/BansheeSL/BsParserFX.y"
  2588. { ((*yyvalp).nodeOption).type = OT_ParamStrValue; ((*yyvalp).nodeOption).value.strValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue); }
  2589. break;
  2590. case 215:
  2591. /* Line 868 of glr.c */
  2592. #line 933 "../../../Source/BansheeSL/BsParserFX.y"
  2593. { nodePop(parse_state); ((*yyvalp).nodePtr) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.nodePtr); }
  2594. break;
  2595. case 216:
  2596. /* Line 868 of glr.c */
  2597. #line 938 "../../../Source/BansheeSL/BsParserFX.y"
  2598. {
  2599. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_Blocks);
  2600. nodePush(parse_state, ((*yyvalp).nodePtr));
  2601. }
  2602. break;
  2603. case 218:
  2604. /* Line 868 of glr.c */
  2605. #line 946 "../../../Source/BansheeSL/BsParserFX.y"
  2606. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  2607. break;
  2608. case 219:
  2609. /* Line 868 of glr.c */
  2610. #line 950 "../../../Source/BansheeSL/BsParserFX.y"
  2611. { nodePop(parse_state); ((*yyvalp).nodeOption).type = OT_Block; ((*yyvalp).nodeOption).value.nodePtr = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.nodePtr); }
  2612. break;
  2613. case 220:
  2614. /* Line 868 of glr.c */
  2615. #line 955 "../../../Source/BansheeSL/BsParserFX.y"
  2616. {
  2617. ((*yyvalp).nodePtr) = nodeCreate(parse_state->memContext, NT_Block);
  2618. nodePush(parse_state, ((*yyvalp).nodePtr));
  2619. NodeOption blockName;
  2620. blockName.type = OT_Identifier;
  2621. blockName.value.strValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.strValue);
  2622. nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &blockName);
  2623. }
  2624. break;
  2625. case 222:
  2626. /* Line 868 of glr.c */
  2627. #line 970 "../../../Source/BansheeSL/BsParserFX.y"
  2628. { nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, &(((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.nodeOption)); }
  2629. break;
  2630. case 223:
  2631. /* Line 868 of glr.c */
  2632. #line 974 "../../../Source/BansheeSL/BsParserFX.y"
  2633. { ((*yyvalp).nodeOption).type = OT_Alias; ((*yyvalp).nodeOption).value.strValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.strValue); }
  2634. break;
  2635. case 224:
  2636. /* Line 868 of glr.c */
  2637. #line 975 "../../../Source/BansheeSL/BsParserFX.y"
  2638. { ((*yyvalp).nodeOption).type = OT_Auto; ((*yyvalp).nodeOption).value.strValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.strValue); }
  2639. break;
  2640. case 225:
  2641. /* Line 868 of glr.c */
  2642. #line 976 "../../../Source/BansheeSL/BsParserFX.y"
  2643. { ((*yyvalp).nodeOption).type = OT_Shared; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.intValue); }
  2644. break;
  2645. case 226:
  2646. /* Line 868 of glr.c */
  2647. #line 977 "../../../Source/BansheeSL/BsParserFX.y"
  2648. { ((*yyvalp).nodeOption).type = OT_Usage; ((*yyvalp).nodeOption).value.intValue = (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.intValue); }
  2649. break;
  2650. /* Line 868 of glr.c */
  2651. #line 3010 "BsParserFX.c"
  2652. default: break;
  2653. }
  2654. return yyok;
  2655. # undef yyerrok
  2656. # undef YYABORT
  2657. # undef YYACCEPT
  2658. # undef YYERROR
  2659. # undef YYBACKUP
  2660. # undef yyclearin
  2661. # undef YYRECOVERING
  2662. }
  2663. /*ARGSUSED*/ static void
  2664. yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
  2665. {
  2666. YYUSE (yy0);
  2667. YYUSE (yy1);
  2668. switch (yyn)
  2669. {
  2670. default: break;
  2671. }
  2672. }
  2673. /* Bison grammar-table manipulation. */
  2674. /*-----------------------------------------------.
  2675. | Release the memory associated to this symbol. |
  2676. `-----------------------------------------------*/
  2677. /*ARGSUSED*/
  2678. static void
  2679. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, ParseState* parse_state, yyscan_t scanner)
  2680. {
  2681. YYUSE (yyvaluep);
  2682. YYUSE (yylocationp);
  2683. YYUSE (parse_state);
  2684. YYUSE (scanner);
  2685. if (!yymsg)
  2686. yymsg = "Deleting";
  2687. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  2688. switch (yytype)
  2689. {
  2690. default:
  2691. break;
  2692. }
  2693. }
  2694. /** Number of symbols composing the right hand side of rule #RULE. */
  2695. static inline int
  2696. yyrhsLength (yyRuleNum yyrule)
  2697. {
  2698. return yyr2[yyrule];
  2699. }
  2700. static void
  2701. yydestroyGLRState (char const *yymsg, yyGLRState *yys, ParseState* parse_state, yyscan_t scanner)
  2702. {
  2703. if (yys->yyresolved)
  2704. yydestruct (yymsg, yystos[yys->yylrState],
  2705. &yys->yysemantics.yysval, &yys->yyloc, parse_state, scanner);
  2706. else
  2707. {
  2708. #if YYDEBUG
  2709. if (yydebug)
  2710. {
  2711. if (yys->yysemantics.yyfirstVal)
  2712. YYFPRINTF (stderr, "%s unresolved ", yymsg);
  2713. else
  2714. YYFPRINTF (stderr, "%s incomplete ", yymsg);
  2715. yy_symbol_print (stderr, yystos[yys->yylrState],
  2716. YY_NULL, &yys->yyloc, parse_state, scanner);
  2717. YYFPRINTF (stderr, "\n");
  2718. }
  2719. #endif
  2720. if (yys->yysemantics.yyfirstVal)
  2721. {
  2722. yySemanticOption *yyoption = yys->yysemantics.yyfirstVal;
  2723. yyGLRState *yyrh;
  2724. int yyn;
  2725. for (yyrh = yyoption->yystate, yyn = yyrhsLength (yyoption->yyrule);
  2726. yyn > 0;
  2727. yyrh = yyrh->yypred, yyn -= 1)
  2728. yydestroyGLRState (yymsg, yyrh, parse_state, scanner);
  2729. }
  2730. }
  2731. }
  2732. /** Left-hand-side symbol for rule #RULE. */
  2733. static inline yySymbol
  2734. yylhsNonterm (yyRuleNum yyrule)
  2735. {
  2736. return yyr1[yyrule];
  2737. }
  2738. #define yypact_value_is_default(Yystate) \
  2739. (!!((Yystate) == (-358)))
  2740. /** True iff LR state STATE has only a default reduction (regardless
  2741. * of token). */
  2742. static inline yybool
  2743. yyisDefaultedState (yyStateNum yystate)
  2744. {
  2745. return yypact_value_is_default (yypact[yystate]);
  2746. }
  2747. /** The default reduction for STATE, assuming it has one. */
  2748. static inline yyRuleNum
  2749. yydefaultAction (yyStateNum yystate)
  2750. {
  2751. return yydefact[yystate];
  2752. }
  2753. #define yytable_value_is_error(Yytable_value) \
  2754. YYID (0)
  2755. /** Set *YYACTION to the action to take in YYSTATE on seeing YYTOKEN.
  2756. * Result R means
  2757. * R < 0: Reduce on rule -R.
  2758. * R = 0: Error.
  2759. * R > 0: Shift to state R.
  2760. * Set *CONFLICTS to a pointer into yyconfl to 0-terminated list of
  2761. * conflicting reductions.
  2762. */
  2763. static inline void
  2764. yygetLRActions (yyStateNum yystate, int yytoken,
  2765. int* yyaction, const short int** yyconflicts)
  2766. {
  2767. int yyindex = yypact[yystate] + yytoken;
  2768. if (yypact_value_is_default (yypact[yystate])
  2769. || yyindex < 0 || YYLAST < yyindex || yycheck[yyindex] != yytoken)
  2770. {
  2771. *yyaction = -yydefact[yystate];
  2772. *yyconflicts = yyconfl;
  2773. }
  2774. else if (! yytable_value_is_error (yytable[yyindex]))
  2775. {
  2776. *yyaction = yytable[yyindex];
  2777. *yyconflicts = yyconfl + yyconflp[yyindex];
  2778. }
  2779. else
  2780. {
  2781. *yyaction = 0;
  2782. *yyconflicts = yyconfl + yyconflp[yyindex];
  2783. }
  2784. }
  2785. static inline yyStateNum
  2786. yyLRgotoState (yyStateNum yystate, yySymbol yylhs)
  2787. {
  2788. int yyr;
  2789. yyr = yypgoto[yylhs - YYNTOKENS] + yystate;
  2790. if (0 <= yyr && yyr <= YYLAST && yycheck[yyr] == yystate)
  2791. return yytable[yyr];
  2792. else
  2793. return yydefgoto[yylhs - YYNTOKENS];
  2794. }
  2795. static inline yybool
  2796. yyisShiftAction (int yyaction)
  2797. {
  2798. return 0 < yyaction;
  2799. }
  2800. static inline yybool
  2801. yyisErrorAction (int yyaction)
  2802. {
  2803. return yyaction == 0;
  2804. }
  2805. /* GLRStates */
  2806. /** Return a fresh GLRStackItem. Callers should call
  2807. * YY_RESERVE_GLRSTACK afterwards to make sure there is sufficient
  2808. * headroom. */
  2809. static inline yyGLRStackItem*
  2810. yynewGLRStackItem (yyGLRStack* yystackp, yybool yyisState)
  2811. {
  2812. yyGLRStackItem* yynewItem = yystackp->yynextFree;
  2813. yystackp->yyspaceLeft -= 1;
  2814. yystackp->yynextFree += 1;
  2815. yynewItem->yystate.yyisState = yyisState;
  2816. return yynewItem;
  2817. }
  2818. /** Add a new semantic action that will execute the action for rule
  2819. * RULENUM on the semantic values in RHS to the list of
  2820. * alternative actions for STATE. Assumes that RHS comes from
  2821. * stack #K of *STACKP. */
  2822. static void
  2823. yyaddDeferredAction (yyGLRStack* yystackp, size_t yyk, yyGLRState* yystate,
  2824. yyGLRState* rhs, yyRuleNum yyrule)
  2825. {
  2826. yySemanticOption* yynewOption =
  2827. &yynewGLRStackItem (yystackp, yyfalse)->yyoption;
  2828. yynewOption->yystate = rhs;
  2829. yynewOption->yyrule = yyrule;
  2830. if (yystackp->yytops.yylookaheadNeeds[yyk])
  2831. {
  2832. yynewOption->yyrawchar = yychar;
  2833. yynewOption->yyval = yylval;
  2834. yynewOption->yyloc = yylloc;
  2835. }
  2836. else
  2837. yynewOption->yyrawchar = YYEMPTY;
  2838. yynewOption->yynext = yystate->yysemantics.yyfirstVal;
  2839. yystate->yysemantics.yyfirstVal = yynewOption;
  2840. YY_RESERVE_GLRSTACK (yystackp);
  2841. }
  2842. /* GLRStacks */
  2843. /** Initialize SET to a singleton set containing an empty stack. */
  2844. static yybool
  2845. yyinitStateSet (yyGLRStateSet* yyset)
  2846. {
  2847. yyset->yysize = 1;
  2848. yyset->yycapacity = 16;
  2849. yyset->yystates = (yyGLRState**) YYMALLOC (16 * sizeof yyset->yystates[0]);
  2850. if (! yyset->yystates)
  2851. return yyfalse;
  2852. yyset->yystates[0] = YY_NULL;
  2853. yyset->yylookaheadNeeds =
  2854. (yybool*) YYMALLOC (16 * sizeof yyset->yylookaheadNeeds[0]);
  2855. if (! yyset->yylookaheadNeeds)
  2856. {
  2857. YYFREE (yyset->yystates);
  2858. return yyfalse;
  2859. }
  2860. return yytrue;
  2861. }
  2862. static void yyfreeStateSet (yyGLRStateSet* yyset)
  2863. {
  2864. YYFREE (yyset->yystates);
  2865. YYFREE (yyset->yylookaheadNeeds);
  2866. }
  2867. /** Initialize STACK to a single empty stack, with total maximum
  2868. * capacity for all stacks of SIZE. */
  2869. static yybool
  2870. yyinitGLRStack (yyGLRStack* yystackp, size_t yysize)
  2871. {
  2872. yystackp->yyerrState = 0;
  2873. yynerrs = 0;
  2874. yystackp->yyspaceLeft = yysize;
  2875. yystackp->yyitems =
  2876. (yyGLRStackItem*) YYMALLOC (yysize * sizeof yystackp->yynextFree[0]);
  2877. if (!yystackp->yyitems)
  2878. return yyfalse;
  2879. yystackp->yynextFree = yystackp->yyitems;
  2880. yystackp->yysplitPoint = YY_NULL;
  2881. yystackp->yylastDeleted = YY_NULL;
  2882. return yyinitStateSet (&yystackp->yytops);
  2883. }
  2884. #if YYSTACKEXPANDABLE
  2885. # define YYRELOC(YYFROMITEMS,YYTOITEMS,YYX,YYTYPE) \
  2886. &((YYTOITEMS) - ((YYFROMITEMS) - (yyGLRStackItem*) (YYX)))->YYTYPE
  2887. /** If STACK is expandable, extend it. WARNING: Pointers into the
  2888. stack from outside should be considered invalid after this call.
  2889. We always expand when there are 1 or fewer items left AFTER an
  2890. allocation, so that we can avoid having external pointers exist
  2891. across an allocation. */
  2892. static void
  2893. yyexpandGLRStack (yyGLRStack* yystackp)
  2894. {
  2895. yyGLRStackItem* yynewItems;
  2896. yyGLRStackItem* yyp0, *yyp1;
  2897. size_t yynewSize;
  2898. size_t yyn;
  2899. size_t yysize = yystackp->yynextFree - yystackp->yyitems;
  2900. if (YYMAXDEPTH - YYHEADROOM < yysize)
  2901. yyMemoryExhausted (yystackp);
  2902. yynewSize = 2*yysize;
  2903. if (YYMAXDEPTH < yynewSize)
  2904. yynewSize = YYMAXDEPTH;
  2905. yynewItems = (yyGLRStackItem*) YYMALLOC (yynewSize * sizeof yynewItems[0]);
  2906. if (! yynewItems)
  2907. yyMemoryExhausted (yystackp);
  2908. for (yyp0 = yystackp->yyitems, yyp1 = yynewItems, yyn = yysize;
  2909. 0 < yyn;
  2910. yyn -= 1, yyp0 += 1, yyp1 += 1)
  2911. {
  2912. *yyp1 = *yyp0;
  2913. if (*(yybool *) yyp0)
  2914. {
  2915. yyGLRState* yys0 = &yyp0->yystate;
  2916. yyGLRState* yys1 = &yyp1->yystate;
  2917. if (yys0->yypred != YY_NULL)
  2918. yys1->yypred =
  2919. YYRELOC (yyp0, yyp1, yys0->yypred, yystate);
  2920. if (! yys0->yyresolved && yys0->yysemantics.yyfirstVal != YY_NULL)
  2921. yys1->yysemantics.yyfirstVal =
  2922. YYRELOC (yyp0, yyp1, yys0->yysemantics.yyfirstVal, yyoption);
  2923. }
  2924. else
  2925. {
  2926. yySemanticOption* yyv0 = &yyp0->yyoption;
  2927. yySemanticOption* yyv1 = &yyp1->yyoption;
  2928. if (yyv0->yystate != YY_NULL)
  2929. yyv1->yystate = YYRELOC (yyp0, yyp1, yyv0->yystate, yystate);
  2930. if (yyv0->yynext != YY_NULL)
  2931. yyv1->yynext = YYRELOC (yyp0, yyp1, yyv0->yynext, yyoption);
  2932. }
  2933. }
  2934. if (yystackp->yysplitPoint != YY_NULL)
  2935. yystackp->yysplitPoint = YYRELOC (yystackp->yyitems, yynewItems,
  2936. yystackp->yysplitPoint, yystate);
  2937. for (yyn = 0; yyn < yystackp->yytops.yysize; yyn += 1)
  2938. if (yystackp->yytops.yystates[yyn] != YY_NULL)
  2939. yystackp->yytops.yystates[yyn] =
  2940. YYRELOC (yystackp->yyitems, yynewItems,
  2941. yystackp->yytops.yystates[yyn], yystate);
  2942. YYFREE (yystackp->yyitems);
  2943. yystackp->yyitems = yynewItems;
  2944. yystackp->yynextFree = yynewItems + yysize;
  2945. yystackp->yyspaceLeft = yynewSize - yysize;
  2946. }
  2947. #endif
  2948. static void
  2949. yyfreeGLRStack (yyGLRStack* yystackp)
  2950. {
  2951. YYFREE (yystackp->yyitems);
  2952. yyfreeStateSet (&yystackp->yytops);
  2953. }
  2954. /** Assuming that S is a GLRState somewhere on STACK, update the
  2955. * splitpoint of STACK, if needed, so that it is at least as deep as
  2956. * S. */
  2957. static inline void
  2958. yyupdateSplit (yyGLRStack* yystackp, yyGLRState* yys)
  2959. {
  2960. if (yystackp->yysplitPoint != YY_NULL && yystackp->yysplitPoint > yys)
  2961. yystackp->yysplitPoint = yys;
  2962. }
  2963. /** Invalidate stack #K in STACK. */
  2964. static inline void
  2965. yymarkStackDeleted (yyGLRStack* yystackp, size_t yyk)
  2966. {
  2967. if (yystackp->yytops.yystates[yyk] != YY_NULL)
  2968. yystackp->yylastDeleted = yystackp->yytops.yystates[yyk];
  2969. yystackp->yytops.yystates[yyk] = YY_NULL;
  2970. }
  2971. /** Undelete the last stack that was marked as deleted. Can only be
  2972. done once after a deletion, and only when all other stacks have
  2973. been deleted. */
  2974. static void
  2975. yyundeleteLastStack (yyGLRStack* yystackp)
  2976. {
  2977. if (yystackp->yylastDeleted == YY_NULL || yystackp->yytops.yysize != 0)
  2978. return;
  2979. yystackp->yytops.yystates[0] = yystackp->yylastDeleted;
  2980. yystackp->yytops.yysize = 1;
  2981. YYDPRINTF ((stderr, "Restoring last deleted stack as stack #0.\n"));
  2982. yystackp->yylastDeleted = YY_NULL;
  2983. }
  2984. static inline void
  2985. yyremoveDeletes (yyGLRStack* yystackp)
  2986. {
  2987. size_t yyi, yyj;
  2988. yyi = yyj = 0;
  2989. while (yyj < yystackp->yytops.yysize)
  2990. {
  2991. if (yystackp->yytops.yystates[yyi] == YY_NULL)
  2992. {
  2993. if (yyi == yyj)
  2994. {
  2995. YYDPRINTF ((stderr, "Removing dead stacks.\n"));
  2996. }
  2997. yystackp->yytops.yysize -= 1;
  2998. }
  2999. else
  3000. {
  3001. yystackp->yytops.yystates[yyj] = yystackp->yytops.yystates[yyi];
  3002. /* In the current implementation, it's unnecessary to copy
  3003. yystackp->yytops.yylookaheadNeeds[yyi] since, after
  3004. yyremoveDeletes returns, the parser immediately either enters
  3005. deterministic operation or shifts a token. However, it doesn't
  3006. hurt, and the code might evolve to need it. */
  3007. yystackp->yytops.yylookaheadNeeds[yyj] =
  3008. yystackp->yytops.yylookaheadNeeds[yyi];
  3009. if (yyj != yyi)
  3010. {
  3011. YYDPRINTF ((stderr, "Rename stack %lu -> %lu.\n",
  3012. (unsigned long int) yyi, (unsigned long int) yyj));
  3013. }
  3014. yyj += 1;
  3015. }
  3016. yyi += 1;
  3017. }
  3018. }
  3019. /** Shift to a new state on stack #K of STACK, corresponding to LR state
  3020. * LRSTATE, at input position POSN, with (resolved) semantic value SVAL. */
  3021. static inline void
  3022. yyglrShift (yyGLRStack* yystackp, size_t yyk, yyStateNum yylrState,
  3023. size_t yyposn,
  3024. YYSTYPE* yyvalp, YYLTYPE* yylocp)
  3025. {
  3026. yyGLRState* yynewState = &yynewGLRStackItem (yystackp, yytrue)->yystate;
  3027. yynewState->yylrState = yylrState;
  3028. yynewState->yyposn = yyposn;
  3029. yynewState->yyresolved = yytrue;
  3030. yynewState->yypred = yystackp->yytops.yystates[yyk];
  3031. yynewState->yysemantics.yysval = *yyvalp;
  3032. yynewState->yyloc = *yylocp;
  3033. yystackp->yytops.yystates[yyk] = yynewState;
  3034. YY_RESERVE_GLRSTACK (yystackp);
  3035. }
  3036. /** Shift stack #K of YYSTACK, to a new state corresponding to LR
  3037. * state YYLRSTATE, at input position YYPOSN, with the (unresolved)
  3038. * semantic value of YYRHS under the action for YYRULE. */
  3039. static inline void
  3040. yyglrShiftDefer (yyGLRStack* yystackp, size_t yyk, yyStateNum yylrState,
  3041. size_t yyposn, yyGLRState* rhs, yyRuleNum yyrule)
  3042. {
  3043. yyGLRState* yynewState = &yynewGLRStackItem (yystackp, yytrue)->yystate;
  3044. yynewState->yylrState = yylrState;
  3045. yynewState->yyposn = yyposn;
  3046. yynewState->yyresolved = yyfalse;
  3047. yynewState->yypred = yystackp->yytops.yystates[yyk];
  3048. yynewState->yysemantics.yyfirstVal = YY_NULL;
  3049. yystackp->yytops.yystates[yyk] = yynewState;
  3050. /* Invokes YY_RESERVE_GLRSTACK. */
  3051. yyaddDeferredAction (yystackp, yyk, yynewState, rhs, yyrule);
  3052. }
  3053. /** Pop the symbols consumed by reduction #RULE from the top of stack
  3054. * #K of STACK, and perform the appropriate semantic action on their
  3055. * semantic values. Assumes that all ambiguities in semantic values
  3056. * have been previously resolved. Set *VALP to the resulting value,
  3057. * and *LOCP to the computed location (if any). Return value is as
  3058. * for userAction. */
  3059. static inline YYRESULTTAG
  3060. yydoAction (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
  3061. YYSTYPE* yyvalp, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner)
  3062. {
  3063. int yynrhs = yyrhsLength (yyrule);
  3064. if (yystackp->yysplitPoint == YY_NULL)
  3065. {
  3066. /* Standard special case: single stack. */
  3067. yyGLRStackItem* rhs = (yyGLRStackItem*) yystackp->yytops.yystates[yyk];
  3068. YYASSERT (yyk == 0);
  3069. yystackp->yynextFree -= yynrhs;
  3070. yystackp->yyspaceLeft += yynrhs;
  3071. yystackp->yytops.yystates[0] = & yystackp->yynextFree[-1].yystate;
  3072. return yyuserAction (yyrule, yynrhs, rhs, yystackp,
  3073. yyvalp, yylocp, parse_state, scanner);
  3074. }
  3075. else
  3076. {
  3077. /* At present, doAction is never called in nondeterministic
  3078. * mode, so this branch is never taken. It is here in
  3079. * anticipation of a future feature that will allow immediate
  3080. * evaluation of selected actions in nondeterministic mode. */
  3081. int yyi;
  3082. yyGLRState* yys;
  3083. yyGLRStackItem yyrhsVals[YYMAXRHS + YYMAXLEFT + 1];
  3084. yys = yyrhsVals[YYMAXRHS + YYMAXLEFT].yystate.yypred
  3085. = yystackp->yytops.yystates[yyk];
  3086. if (yynrhs == 0)
  3087. /* Set default location. */
  3088. yyrhsVals[YYMAXRHS + YYMAXLEFT - 1].yystate.yyloc = yys->yyloc;
  3089. for (yyi = 0; yyi < yynrhs; yyi += 1)
  3090. {
  3091. yys = yys->yypred;
  3092. YYASSERT (yys);
  3093. }
  3094. yyupdateSplit (yystackp, yys);
  3095. yystackp->yytops.yystates[yyk] = yys;
  3096. return yyuserAction (yyrule, yynrhs, yyrhsVals + YYMAXRHS + YYMAXLEFT - 1,
  3097. yystackp, yyvalp, yylocp, parse_state, scanner);
  3098. }
  3099. }
  3100. #if !YYDEBUG
  3101. # define YY_REDUCE_PRINT(Args)
  3102. #else
  3103. # define YY_REDUCE_PRINT(Args) \
  3104. do { \
  3105. if (yydebug) \
  3106. yy_reduce_print Args; \
  3107. } while (YYID (0))
  3108. /*----------------------------------------------------------.
  3109. | Report that the RULE is going to be reduced on stack #K. |
  3110. `----------------------------------------------------------*/
  3111. /*ARGSUSED*/ static inline void
  3112. yy_reduce_print (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
  3113. YYSTYPE* yyvalp, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner)
  3114. {
  3115. int yynrhs = yyrhsLength (yyrule);
  3116. yybool yynormal __attribute__ ((__unused__)) =
  3117. (yystackp->yysplitPoint == YY_NULL);
  3118. yyGLRStackItem* yyvsp = (yyGLRStackItem*) yystackp->yytops.yystates[yyk];
  3119. int yylow = 1;
  3120. int yyi;
  3121. YYUSE (yyvalp);
  3122. YYUSE (yylocp);
  3123. YYUSE (parse_state);
  3124. YYUSE (scanner);
  3125. YYFPRINTF (stderr, "Reducing stack %lu by rule %d (line %lu):\n",
  3126. (unsigned long int) yyk, yyrule - 1,
  3127. (unsigned long int) yyrline[yyrule]);
  3128. /* The symbols being reduced. */
  3129. for (yyi = 0; yyi < yynrhs; yyi++)
  3130. {
  3131. YYFPRINTF (stderr, " $%d = ", yyi + 1);
  3132. yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
  3133. &(((yyGLRStackItem const *)yyvsp)[YYFILL ((yyi + 1) - (yynrhs))].yystate.yysemantics.yysval)
  3134. , &(((yyGLRStackItem const *)yyvsp)[YYFILL ((yyi + 1) - (yynrhs))].yystate.yyloc) , parse_state, scanner);
  3135. YYFPRINTF (stderr, "\n");
  3136. }
  3137. }
  3138. #endif
  3139. /** Pop items off stack #K of STACK according to grammar rule RULE,
  3140. * and push back on the resulting nonterminal symbol. Perform the
  3141. * semantic action associated with RULE and store its value with the
  3142. * newly pushed state, if FORCEEVAL or if STACK is currently
  3143. * unambiguous. Otherwise, store the deferred semantic action with
  3144. * the new state. If the new state would have an identical input
  3145. * position, LR state, and predecessor to an existing state on the stack,
  3146. * it is identified with that existing state, eliminating stack #K from
  3147. * the STACK. In this case, the (necessarily deferred) semantic value is
  3148. * added to the options for the existing state's semantic value.
  3149. */
  3150. static inline YYRESULTTAG
  3151. yyglrReduce (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
  3152. yybool yyforceEval, ParseState* parse_state, yyscan_t scanner)
  3153. {
  3154. size_t yyposn = yystackp->yytops.yystates[yyk]->yyposn;
  3155. if (yyforceEval || yystackp->yysplitPoint == YY_NULL)
  3156. {
  3157. YYSTYPE yysval;
  3158. YYLTYPE yyloc;
  3159. YY_REDUCE_PRINT ((yystackp, yyk, yyrule, &yysval, &yyloc, parse_state, scanner));
  3160. YYCHK (yydoAction (yystackp, yyk, yyrule, &yysval, &yyloc, parse_state, scanner));
  3161. YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyrule], &yysval, &yyloc);
  3162. yyglrShift (yystackp, yyk,
  3163. yyLRgotoState (yystackp->yytops.yystates[yyk]->yylrState,
  3164. yylhsNonterm (yyrule)),
  3165. yyposn, &yysval, &yyloc);
  3166. }
  3167. else
  3168. {
  3169. size_t yyi;
  3170. int yyn;
  3171. yyGLRState* yys, *yys0 = yystackp->yytops.yystates[yyk];
  3172. yyStateNum yynewLRState;
  3173. for (yys = yystackp->yytops.yystates[yyk], yyn = yyrhsLength (yyrule);
  3174. 0 < yyn; yyn -= 1)
  3175. {
  3176. yys = yys->yypred;
  3177. YYASSERT (yys);
  3178. }
  3179. yyupdateSplit (yystackp, yys);
  3180. yynewLRState = yyLRgotoState (yys->yylrState, yylhsNonterm (yyrule));
  3181. YYDPRINTF ((stderr,
  3182. "Reduced stack %lu by rule #%d; action deferred. Now in state %d.\n",
  3183. (unsigned long int) yyk, yyrule - 1, yynewLRState));
  3184. for (yyi = 0; yyi < yystackp->yytops.yysize; yyi += 1)
  3185. if (yyi != yyk && yystackp->yytops.yystates[yyi] != YY_NULL)
  3186. {
  3187. yyGLRState *yysplit = yystackp->yysplitPoint;
  3188. yyGLRState *yyp = yystackp->yytops.yystates[yyi];
  3189. while (yyp != yys && yyp != yysplit && yyp->yyposn >= yyposn)
  3190. {
  3191. if (yyp->yylrState == yynewLRState && yyp->yypred == yys)
  3192. {
  3193. yyaddDeferredAction (yystackp, yyk, yyp, yys0, yyrule);
  3194. yymarkStackDeleted (yystackp, yyk);
  3195. YYDPRINTF ((stderr, "Merging stack %lu into stack %lu.\n",
  3196. (unsigned long int) yyk,
  3197. (unsigned long int) yyi));
  3198. return yyok;
  3199. }
  3200. yyp = yyp->yypred;
  3201. }
  3202. }
  3203. yystackp->yytops.yystates[yyk] = yys;
  3204. yyglrShiftDefer (yystackp, yyk, yynewLRState, yyposn, yys0, yyrule);
  3205. }
  3206. return yyok;
  3207. }
  3208. static size_t
  3209. yysplitStack (yyGLRStack* yystackp, size_t yyk)
  3210. {
  3211. if (yystackp->yysplitPoint == YY_NULL)
  3212. {
  3213. YYASSERT (yyk == 0);
  3214. yystackp->yysplitPoint = yystackp->yytops.yystates[yyk];
  3215. }
  3216. if (yystackp->yytops.yysize >= yystackp->yytops.yycapacity)
  3217. {
  3218. yyGLRState** yynewStates;
  3219. yybool* yynewLookaheadNeeds;
  3220. yynewStates = YY_NULL;
  3221. if (yystackp->yytops.yycapacity
  3222. > (YYSIZEMAX / (2 * sizeof yynewStates[0])))
  3223. yyMemoryExhausted (yystackp);
  3224. yystackp->yytops.yycapacity *= 2;
  3225. yynewStates =
  3226. (yyGLRState**) YYREALLOC (yystackp->yytops.yystates,
  3227. (yystackp->yytops.yycapacity
  3228. * sizeof yynewStates[0]));
  3229. if (yynewStates == YY_NULL)
  3230. yyMemoryExhausted (yystackp);
  3231. yystackp->yytops.yystates = yynewStates;
  3232. yynewLookaheadNeeds =
  3233. (yybool*) YYREALLOC (yystackp->yytops.yylookaheadNeeds,
  3234. (yystackp->yytops.yycapacity
  3235. * sizeof yynewLookaheadNeeds[0]));
  3236. if (yynewLookaheadNeeds == YY_NULL)
  3237. yyMemoryExhausted (yystackp);
  3238. yystackp->yytops.yylookaheadNeeds = yynewLookaheadNeeds;
  3239. }
  3240. yystackp->yytops.yystates[yystackp->yytops.yysize]
  3241. = yystackp->yytops.yystates[yyk];
  3242. yystackp->yytops.yylookaheadNeeds[yystackp->yytops.yysize]
  3243. = yystackp->yytops.yylookaheadNeeds[yyk];
  3244. yystackp->yytops.yysize += 1;
  3245. return yystackp->yytops.yysize-1;
  3246. }
  3247. /** True iff Y0 and Y1 represent identical options at the top level.
  3248. * That is, they represent the same rule applied to RHS symbols
  3249. * that produce the same terminal symbols. */
  3250. static yybool
  3251. yyidenticalOptions (yySemanticOption* yyy0, yySemanticOption* yyy1)
  3252. {
  3253. if (yyy0->yyrule == yyy1->yyrule)
  3254. {
  3255. yyGLRState *yys0, *yys1;
  3256. int yyn;
  3257. for (yys0 = yyy0->yystate, yys1 = yyy1->yystate,
  3258. yyn = yyrhsLength (yyy0->yyrule);
  3259. yyn > 0;
  3260. yys0 = yys0->yypred, yys1 = yys1->yypred, yyn -= 1)
  3261. if (yys0->yyposn != yys1->yyposn)
  3262. return yyfalse;
  3263. return yytrue;
  3264. }
  3265. else
  3266. return yyfalse;
  3267. }
  3268. /** Assuming identicalOptions (Y0,Y1), destructively merge the
  3269. * alternative semantic values for the RHS-symbols of Y1 and Y0. */
  3270. static void
  3271. yymergeOptionSets (yySemanticOption* yyy0, yySemanticOption* yyy1)
  3272. {
  3273. yyGLRState *yys0, *yys1;
  3274. int yyn;
  3275. for (yys0 = yyy0->yystate, yys1 = yyy1->yystate,
  3276. yyn = yyrhsLength (yyy0->yyrule);
  3277. yyn > 0;
  3278. yys0 = yys0->yypred, yys1 = yys1->yypred, yyn -= 1)
  3279. {
  3280. if (yys0 == yys1)
  3281. break;
  3282. else if (yys0->yyresolved)
  3283. {
  3284. yys1->yyresolved = yytrue;
  3285. yys1->yysemantics.yysval = yys0->yysemantics.yysval;
  3286. }
  3287. else if (yys1->yyresolved)
  3288. {
  3289. yys0->yyresolved = yytrue;
  3290. yys0->yysemantics.yysval = yys1->yysemantics.yysval;
  3291. }
  3292. else
  3293. {
  3294. yySemanticOption** yyz0p = &yys0->yysemantics.yyfirstVal;
  3295. yySemanticOption* yyz1 = yys1->yysemantics.yyfirstVal;
  3296. while (YYID (yytrue))
  3297. {
  3298. if (yyz1 == *yyz0p || yyz1 == YY_NULL)
  3299. break;
  3300. else if (*yyz0p == YY_NULL)
  3301. {
  3302. *yyz0p = yyz1;
  3303. break;
  3304. }
  3305. else if (*yyz0p < yyz1)
  3306. {
  3307. yySemanticOption* yyz = *yyz0p;
  3308. *yyz0p = yyz1;
  3309. yyz1 = yyz1->yynext;
  3310. (*yyz0p)->yynext = yyz;
  3311. }
  3312. yyz0p = &(*yyz0p)->yynext;
  3313. }
  3314. yys1->yysemantics.yyfirstVal = yys0->yysemantics.yyfirstVal;
  3315. }
  3316. }
  3317. }
  3318. /** Y0 and Y1 represent two possible actions to take in a given
  3319. * parsing state; return 0 if no combination is possible,
  3320. * 1 if user-mergeable, 2 if Y0 is preferred, 3 if Y1 is preferred. */
  3321. static int
  3322. yypreference (yySemanticOption* y0, yySemanticOption* y1)
  3323. {
  3324. yyRuleNum r0 = y0->yyrule, r1 = y1->yyrule;
  3325. int p0 = yydprec[r0], p1 = yydprec[r1];
  3326. if (p0 == p1)
  3327. {
  3328. if (yymerger[r0] == 0 || yymerger[r0] != yymerger[r1])
  3329. return 0;
  3330. else
  3331. return 1;
  3332. }
  3333. if (p0 == 0 || p1 == 0)
  3334. return 0;
  3335. if (p0 < p1)
  3336. return 3;
  3337. if (p1 < p0)
  3338. return 2;
  3339. return 0;
  3340. }
  3341. static YYRESULTTAG yyresolveValue (yyGLRState* yys,
  3342. yyGLRStack* yystackp, ParseState* parse_state, yyscan_t scanner);
  3343. /** Resolve the previous N states starting at and including state S. If result
  3344. * != yyok, some states may have been left unresolved possibly with empty
  3345. * semantic option chains. Regardless of whether result = yyok, each state
  3346. * has been left with consistent data so that yydestroyGLRState can be invoked
  3347. * if necessary. */
  3348. static YYRESULTTAG
  3349. yyresolveStates (yyGLRState* yys, int yyn,
  3350. yyGLRStack* yystackp, ParseState* parse_state, yyscan_t scanner)
  3351. {
  3352. if (0 < yyn)
  3353. {
  3354. YYASSERT (yys->yypred);
  3355. YYCHK (yyresolveStates (yys->yypred, yyn-1, yystackp, parse_state, scanner));
  3356. if (! yys->yyresolved)
  3357. YYCHK (yyresolveValue (yys, yystackp, parse_state, scanner));
  3358. }
  3359. return yyok;
  3360. }
  3361. /** Resolve the states for the RHS of OPT, perform its user action, and return
  3362. * the semantic value and location. Regardless of whether result = yyok, all
  3363. * RHS states have been destroyed (assuming the user action destroys all RHS
  3364. * semantic values if invoked). */
  3365. static YYRESULTTAG
  3366. yyresolveAction (yySemanticOption* yyopt, yyGLRStack* yystackp,
  3367. YYSTYPE* yyvalp, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner)
  3368. {
  3369. yyGLRStackItem yyrhsVals[YYMAXRHS + YYMAXLEFT + 1];
  3370. int yynrhs = yyrhsLength (yyopt->yyrule);
  3371. YYRESULTTAG yyflag =
  3372. yyresolveStates (yyopt->yystate, yynrhs, yystackp, parse_state, scanner);
  3373. if (yyflag != yyok)
  3374. {
  3375. yyGLRState *yys;
  3376. for (yys = yyopt->yystate; yynrhs > 0; yys = yys->yypred, yynrhs -= 1)
  3377. yydestroyGLRState ("Cleanup: popping", yys, parse_state, scanner);
  3378. return yyflag;
  3379. }
  3380. yyrhsVals[YYMAXRHS + YYMAXLEFT].yystate.yypred = yyopt->yystate;
  3381. if (yynrhs == 0)
  3382. /* Set default location. */
  3383. yyrhsVals[YYMAXRHS + YYMAXLEFT - 1].yystate.yyloc = yyopt->yystate->yyloc;
  3384. {
  3385. int yychar_current = yychar;
  3386. YYSTYPE yylval_current = yylval;
  3387. YYLTYPE yylloc_current = yylloc;
  3388. yychar = yyopt->yyrawchar;
  3389. yylval = yyopt->yyval;
  3390. yylloc = yyopt->yyloc;
  3391. yyflag = yyuserAction (yyopt->yyrule, yynrhs,
  3392. yyrhsVals + YYMAXRHS + YYMAXLEFT - 1,
  3393. yystackp, yyvalp, yylocp, parse_state, scanner);
  3394. yychar = yychar_current;
  3395. yylval = yylval_current;
  3396. yylloc = yylloc_current;
  3397. }
  3398. return yyflag;
  3399. }
  3400. #if YYDEBUG
  3401. static void
  3402. yyreportTree (yySemanticOption* yyx, int yyindent)
  3403. {
  3404. int yynrhs = yyrhsLength (yyx->yyrule);
  3405. int yyi;
  3406. yyGLRState* yys;
  3407. yyGLRState* yystates[1 + YYMAXRHS];
  3408. yyGLRState yyleftmost_state;
  3409. for (yyi = yynrhs, yys = yyx->yystate; 0 < yyi; yyi -= 1, yys = yys->yypred)
  3410. yystates[yyi] = yys;
  3411. if (yys == YY_NULL)
  3412. {
  3413. yyleftmost_state.yyposn = 0;
  3414. yystates[0] = &yyleftmost_state;
  3415. }
  3416. else
  3417. yystates[0] = yys;
  3418. if (yyx->yystate->yyposn < yys->yyposn + 1)
  3419. YYFPRINTF (stderr, "%*s%s -> <Rule %d, empty>\n",
  3420. yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
  3421. yyx->yyrule - 1);
  3422. else
  3423. YYFPRINTF (stderr, "%*s%s -> <Rule %d, tokens %lu .. %lu>\n",
  3424. yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
  3425. yyx->yyrule - 1, (unsigned long int) (yys->yyposn + 1),
  3426. (unsigned long int) yyx->yystate->yyposn);
  3427. for (yyi = 1; yyi <= yynrhs; yyi += 1)
  3428. {
  3429. if (yystates[yyi]->yyresolved)
  3430. {
  3431. if (yystates[yyi-1]->yyposn+1 > yystates[yyi]->yyposn)
  3432. YYFPRINTF (stderr, "%*s%s <empty>\n", yyindent+2, "",
  3433. yytokenName (yyrhs[yyprhs[yyx->yyrule]+yyi-1]));
  3434. else
  3435. YYFPRINTF (stderr, "%*s%s <tokens %lu .. %lu>\n", yyindent+2, "",
  3436. yytokenName (yyrhs[yyprhs[yyx->yyrule]+yyi-1]),
  3437. (unsigned long int) (yystates[yyi - 1]->yyposn + 1),
  3438. (unsigned long int) yystates[yyi]->yyposn);
  3439. }
  3440. else
  3441. yyreportTree (yystates[yyi]->yysemantics.yyfirstVal, yyindent+2);
  3442. }
  3443. }
  3444. #endif
  3445. /*ARGSUSED*/ static YYRESULTTAG
  3446. yyreportAmbiguity (yySemanticOption* yyx0,
  3447. yySemanticOption* yyx1, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner)
  3448. {
  3449. YYUSE (yyx0);
  3450. YYUSE (yyx1);
  3451. #if YYDEBUG
  3452. YYFPRINTF (stderr, "Ambiguity detected.\n");
  3453. YYFPRINTF (stderr, "Option 1,\n");
  3454. yyreportTree (yyx0, 2);
  3455. YYFPRINTF (stderr, "\nOption 2,\n");
  3456. yyreportTree (yyx1, 2);
  3457. YYFPRINTF (stderr, "\n");
  3458. #endif
  3459. yyerror (yylocp, parse_state, scanner, YY_("syntax is ambiguous"));
  3460. return yyabort;
  3461. }
  3462. /** Starting at and including state S1, resolve the location for each of the
  3463. * previous N1 states that is unresolved. The first semantic option of a state
  3464. * is always chosen. */
  3465. static void
  3466. yyresolveLocations (yyGLRState* yys1, int yyn1,
  3467. yyGLRStack *yystackp, ParseState* parse_state, yyscan_t scanner)
  3468. {
  3469. if (0 < yyn1)
  3470. {
  3471. yyresolveLocations (yys1->yypred, yyn1 - 1, yystackp, parse_state, scanner);
  3472. if (!yys1->yyresolved)
  3473. {
  3474. yyGLRStackItem yyrhsloc[1 + YYMAXRHS];
  3475. int yynrhs;
  3476. yySemanticOption *yyoption = yys1->yysemantics.yyfirstVal;
  3477. YYASSERT (yyoption != YY_NULL);
  3478. yynrhs = yyrhsLength (yyoption->yyrule);
  3479. if (yynrhs > 0)
  3480. {
  3481. yyGLRState *yys;
  3482. int yyn;
  3483. yyresolveLocations (yyoption->yystate, yynrhs,
  3484. yystackp, parse_state, scanner);
  3485. for (yys = yyoption->yystate, yyn = yynrhs;
  3486. yyn > 0;
  3487. yys = yys->yypred, yyn -= 1)
  3488. yyrhsloc[yyn].yystate.yyloc = yys->yyloc;
  3489. }
  3490. else
  3491. {
  3492. /* Both yyresolveAction and yyresolveLocations traverse the GSS
  3493. in reverse rightmost order. It is only necessary to invoke
  3494. yyresolveLocations on a subforest for which yyresolveAction
  3495. would have been invoked next had an ambiguity not been
  3496. detected. Thus the location of the previous state (but not
  3497. necessarily the previous state itself) is guaranteed to be
  3498. resolved already. */
  3499. yyGLRState *yyprevious = yyoption->yystate;
  3500. yyrhsloc[0].yystate.yyloc = yyprevious->yyloc;
  3501. }
  3502. {
  3503. int yychar_current = yychar;
  3504. YYSTYPE yylval_current = yylval;
  3505. YYLTYPE yylloc_current = yylloc;
  3506. yychar = yyoption->yyrawchar;
  3507. yylval = yyoption->yyval;
  3508. yylloc = yyoption->yyloc;
  3509. YYLLOC_DEFAULT ((yys1->yyloc), yyrhsloc, yynrhs);
  3510. yychar = yychar_current;
  3511. yylval = yylval_current;
  3512. yylloc = yylloc_current;
  3513. }
  3514. }
  3515. }
  3516. }
  3517. /** Resolve the ambiguity represented in state S, perform the indicated
  3518. * actions, and set the semantic value of S. If result != yyok, the chain of
  3519. * semantic options in S has been cleared instead or it has been left
  3520. * unmodified except that redundant options may have been removed. Regardless
  3521. * of whether result = yyok, S has been left with consistent data so that
  3522. * yydestroyGLRState can be invoked if necessary. */
  3523. static YYRESULTTAG
  3524. yyresolveValue (yyGLRState* yys, yyGLRStack* yystackp, ParseState* parse_state, yyscan_t scanner)
  3525. {
  3526. yySemanticOption* yyoptionList = yys->yysemantics.yyfirstVal;
  3527. yySemanticOption* yybest = yyoptionList;
  3528. yySemanticOption** yypp;
  3529. yybool yymerge = yyfalse;
  3530. YYSTYPE yysval;
  3531. YYRESULTTAG yyflag;
  3532. YYLTYPE *yylocp = &yys->yyloc;
  3533. for (yypp = &yyoptionList->yynext; *yypp != YY_NULL; )
  3534. {
  3535. yySemanticOption* yyp = *yypp;
  3536. if (yyidenticalOptions (yybest, yyp))
  3537. {
  3538. yymergeOptionSets (yybest, yyp);
  3539. *yypp = yyp->yynext;
  3540. }
  3541. else
  3542. {
  3543. switch (yypreference (yybest, yyp))
  3544. {
  3545. case 0:
  3546. yyresolveLocations (yys, 1, yystackp, parse_state, scanner);
  3547. return yyreportAmbiguity (yybest, yyp, yylocp, parse_state, scanner);
  3548. break;
  3549. case 1:
  3550. yymerge = yytrue;
  3551. break;
  3552. case 2:
  3553. break;
  3554. case 3:
  3555. yybest = yyp;
  3556. yymerge = yyfalse;
  3557. break;
  3558. default:
  3559. /* This cannot happen so it is not worth a YYASSERT (yyfalse),
  3560. but some compilers complain if the default case is
  3561. omitted. */
  3562. break;
  3563. }
  3564. yypp = &yyp->yynext;
  3565. }
  3566. }
  3567. if (yymerge)
  3568. {
  3569. yySemanticOption* yyp;
  3570. int yyprec = yydprec[yybest->yyrule];
  3571. yyflag = yyresolveAction (yybest, yystackp, &yysval, yylocp, parse_state, scanner);
  3572. if (yyflag == yyok)
  3573. for (yyp = yybest->yynext; yyp != YY_NULL; yyp = yyp->yynext)
  3574. {
  3575. if (yyprec == yydprec[yyp->yyrule])
  3576. {
  3577. YYSTYPE yysval_other;
  3578. YYLTYPE yydummy;
  3579. yyflag = yyresolveAction (yyp, yystackp, &yysval_other, &yydummy, parse_state, scanner);
  3580. if (yyflag != yyok)
  3581. {
  3582. yydestruct ("Cleanup: discarding incompletely merged value for",
  3583. yystos[yys->yylrState],
  3584. &yysval, yylocp, parse_state, scanner);
  3585. break;
  3586. }
  3587. yyuserMerge (yymerger[yyp->yyrule], &yysval, &yysval_other);
  3588. }
  3589. }
  3590. }
  3591. else
  3592. yyflag = yyresolveAction (yybest, yystackp, &yysval, yylocp, parse_state, scanner);
  3593. if (yyflag == yyok)
  3594. {
  3595. yys->yyresolved = yytrue;
  3596. yys->yysemantics.yysval = yysval;
  3597. }
  3598. else
  3599. yys->yysemantics.yyfirstVal = YY_NULL;
  3600. return yyflag;
  3601. }
  3602. static YYRESULTTAG
  3603. yyresolveStack (yyGLRStack* yystackp, ParseState* parse_state, yyscan_t scanner)
  3604. {
  3605. if (yystackp->yysplitPoint != YY_NULL)
  3606. {
  3607. yyGLRState* yys;
  3608. int yyn;
  3609. for (yyn = 0, yys = yystackp->yytops.yystates[0];
  3610. yys != yystackp->yysplitPoint;
  3611. yys = yys->yypred, yyn += 1)
  3612. continue;
  3613. YYCHK (yyresolveStates (yystackp->yytops.yystates[0], yyn, yystackp
  3614. , parse_state, scanner));
  3615. }
  3616. return yyok;
  3617. }
  3618. static void
  3619. yycompressStack (yyGLRStack* yystackp)
  3620. {
  3621. yyGLRState* yyp, *yyq, *yyr;
  3622. if (yystackp->yytops.yysize != 1 || yystackp->yysplitPoint == YY_NULL)
  3623. return;
  3624. for (yyp = yystackp->yytops.yystates[0], yyq = yyp->yypred, yyr = YY_NULL;
  3625. yyp != yystackp->yysplitPoint;
  3626. yyr = yyp, yyp = yyq, yyq = yyp->yypred)
  3627. yyp->yypred = yyr;
  3628. yystackp->yyspaceLeft += yystackp->yynextFree - yystackp->yyitems;
  3629. yystackp->yynextFree = ((yyGLRStackItem*) yystackp->yysplitPoint) + 1;
  3630. yystackp->yyspaceLeft -= yystackp->yynextFree - yystackp->yyitems;
  3631. yystackp->yysplitPoint = YY_NULL;
  3632. yystackp->yylastDeleted = YY_NULL;
  3633. while (yyr != YY_NULL)
  3634. {
  3635. yystackp->yynextFree->yystate = *yyr;
  3636. yyr = yyr->yypred;
  3637. yystackp->yynextFree->yystate.yypred = &yystackp->yynextFree[-1].yystate;
  3638. yystackp->yytops.yystates[0] = &yystackp->yynextFree->yystate;
  3639. yystackp->yynextFree += 1;
  3640. yystackp->yyspaceLeft -= 1;
  3641. }
  3642. }
  3643. static YYRESULTTAG
  3644. yyprocessOneStack (yyGLRStack* yystackp, size_t yyk,
  3645. size_t yyposn, YYLTYPE *yylocp, ParseState* parse_state, yyscan_t scanner)
  3646. {
  3647. int yyaction;
  3648. const short int* yyconflicts;
  3649. yyRuleNum yyrule;
  3650. while (yystackp->yytops.yystates[yyk] != YY_NULL)
  3651. {
  3652. yyStateNum yystate = yystackp->yytops.yystates[yyk]->yylrState;
  3653. YYDPRINTF ((stderr, "Stack %lu Entering state %d\n",
  3654. (unsigned long int) yyk, yystate));
  3655. YYASSERT (yystate != YYFINAL);
  3656. if (yyisDefaultedState (yystate))
  3657. {
  3658. yyrule = yydefaultAction (yystate);
  3659. if (yyrule == 0)
  3660. {
  3661. YYDPRINTF ((stderr, "Stack %lu dies.\n",
  3662. (unsigned long int) yyk));
  3663. yymarkStackDeleted (yystackp, yyk);
  3664. return yyok;
  3665. }
  3666. YYCHK (yyglrReduce (yystackp, yyk, yyrule, yyfalse, parse_state, scanner));
  3667. }
  3668. else
  3669. {
  3670. yySymbol yytoken;
  3671. yystackp->yytops.yylookaheadNeeds[yyk] = yytrue;
  3672. if (yychar == YYEMPTY)
  3673. {
  3674. YYDPRINTF ((stderr, "Reading a token: "));
  3675. yychar = YYLEX;
  3676. }
  3677. if (yychar <= YYEOF)
  3678. {
  3679. yychar = yytoken = YYEOF;
  3680. YYDPRINTF ((stderr, "Now at end of input.\n"));
  3681. }
  3682. else
  3683. {
  3684. yytoken = YYTRANSLATE (yychar);
  3685. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  3686. }
  3687. yygetLRActions (yystate, yytoken, &yyaction, &yyconflicts);
  3688. while (*yyconflicts != 0)
  3689. {
  3690. size_t yynewStack = yysplitStack (yystackp, yyk);
  3691. YYDPRINTF ((stderr, "Splitting off stack %lu from %lu.\n",
  3692. (unsigned long int) yynewStack,
  3693. (unsigned long int) yyk));
  3694. YYCHK (yyglrReduce (yystackp, yynewStack,
  3695. *yyconflicts, yyfalse, parse_state, scanner));
  3696. YYCHK (yyprocessOneStack (yystackp, yynewStack,
  3697. yyposn, yylocp, parse_state, scanner));
  3698. yyconflicts += 1;
  3699. }
  3700. if (yyisShiftAction (yyaction))
  3701. break;
  3702. else if (yyisErrorAction (yyaction))
  3703. {
  3704. YYDPRINTF ((stderr, "Stack %lu dies.\n",
  3705. (unsigned long int) yyk));
  3706. yymarkStackDeleted (yystackp, yyk);
  3707. break;
  3708. }
  3709. else
  3710. YYCHK (yyglrReduce (yystackp, yyk, -yyaction,
  3711. yyfalse, parse_state, scanner));
  3712. }
  3713. }
  3714. return yyok;
  3715. }
  3716. /*ARGSUSED*/ static void
  3717. yyreportSyntaxError (yyGLRStack* yystackp, ParseState* parse_state, yyscan_t scanner)
  3718. {
  3719. if (yystackp->yyerrState != 0)
  3720. return;
  3721. #if ! YYERROR_VERBOSE
  3722. yyerror (&yylloc, parse_state, scanner, YY_("syntax error"));
  3723. #else
  3724. {
  3725. yySymbol yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
  3726. size_t yysize0 = yytnamerr (YY_NULL, yytokenName (yytoken));
  3727. size_t yysize = yysize0;
  3728. yybool yysize_overflow = yyfalse;
  3729. char* yymsg = YY_NULL;
  3730. enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  3731. /* Internationalized format string. */
  3732. const char *yyformat = YY_NULL;
  3733. /* Arguments of yyformat. */
  3734. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  3735. /* Number of reported tokens (one for the "unexpected", one per
  3736. "expected"). */
  3737. int yycount = 0;
  3738. /* There are many possibilities here to consider:
  3739. - If this state is a consistent state with a default action, then
  3740. the only way this function was invoked is if the default action
  3741. is an error action. In that case, don't check for expected
  3742. tokens because there are none.
  3743. - The only way there can be no lookahead present (in yychar) is if
  3744. this state is a consistent state with a default action. Thus,
  3745. detecting the absence of a lookahead is sufficient to determine
  3746. that there is no unexpected or expected token to report. In that
  3747. case, just report a simple "syntax error".
  3748. - Don't assume there isn't a lookahead just because this state is a
  3749. consistent state with a default action. There might have been a
  3750. previous inconsistent state, consistent state with a non-default
  3751. action, or user semantic action that manipulated yychar.
  3752. - Of course, the expected token list depends on states to have
  3753. correct lookahead information, and it depends on the parser not
  3754. to perform extra reductions after fetching a lookahead from the
  3755. scanner and before detecting a syntax error. Thus, state merging
  3756. (from LALR or IELR) and default reductions corrupt the expected
  3757. token list. However, the list is correct for canonical LR with
  3758. one exception: it will still contain any token that will not be
  3759. accepted due to an error action in a later state.
  3760. */
  3761. if (yytoken != YYEMPTY)
  3762. {
  3763. int yyn = yypact[yystackp->yytops.yystates[0]->yylrState];
  3764. yyarg[yycount++] = yytokenName (yytoken);
  3765. if (!yypact_value_is_default (yyn))
  3766. {
  3767. /* Start YYX at -YYN if negative to avoid negative indexes in
  3768. YYCHECK. In other words, skip the first -YYN actions for this
  3769. state because they are default actions. */
  3770. int yyxbegin = yyn < 0 ? -yyn : 0;
  3771. /* Stay within bounds of both yycheck and yytname. */
  3772. int yychecklim = YYLAST - yyn + 1;
  3773. int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  3774. int yyx;
  3775. for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  3776. if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
  3777. && !yytable_value_is_error (yytable[yyx + yyn]))
  3778. {
  3779. if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
  3780. {
  3781. yycount = 1;
  3782. yysize = yysize0;
  3783. break;
  3784. }
  3785. yyarg[yycount++] = yytokenName (yyx);
  3786. {
  3787. size_t yysz = yysize + yytnamerr (YY_NULL, yytokenName (yyx));
  3788. yysize_overflow |= yysz < yysize;
  3789. yysize = yysz;
  3790. }
  3791. }
  3792. }
  3793. }
  3794. switch (yycount)
  3795. {
  3796. #define YYCASE_(N, S) \
  3797. case N: \
  3798. yyformat = S; \
  3799. break
  3800. YYCASE_(0, YY_("syntax error"));
  3801. YYCASE_(1, YY_("syntax error, unexpected %s"));
  3802. YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
  3803. YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
  3804. YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
  3805. YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
  3806. #undef YYCASE_
  3807. }
  3808. {
  3809. size_t yysz = yysize + strlen (yyformat);
  3810. yysize_overflow |= yysz < yysize;
  3811. yysize = yysz;
  3812. }
  3813. if (!yysize_overflow)
  3814. yymsg = (char *) YYMALLOC (yysize);
  3815. if (yymsg)
  3816. {
  3817. char *yyp = yymsg;
  3818. int yyi = 0;
  3819. while ((*yyp = *yyformat))
  3820. {
  3821. if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
  3822. {
  3823. yyp += yytnamerr (yyp, yyarg[yyi++]);
  3824. yyformat += 2;
  3825. }
  3826. else
  3827. {
  3828. yyp++;
  3829. yyformat++;
  3830. }
  3831. }
  3832. yyerror (&yylloc, parse_state, scanner, yymsg);
  3833. YYFREE (yymsg);
  3834. }
  3835. else
  3836. {
  3837. yyerror (&yylloc, parse_state, scanner, YY_("syntax error"));
  3838. yyMemoryExhausted (yystackp);
  3839. }
  3840. }
  3841. #endif /* YYERROR_VERBOSE */
  3842. yynerrs += 1;
  3843. }
  3844. /* Recover from a syntax error on *YYSTACKP, assuming that *YYSTACKP->YYTOKENP,
  3845. yylval, and yylloc are the syntactic category, semantic value, and location
  3846. of the lookahead. */
  3847. /*ARGSUSED*/ static void
  3848. yyrecoverSyntaxError (yyGLRStack* yystackp, ParseState* parse_state, yyscan_t scanner)
  3849. {
  3850. size_t yyk;
  3851. int yyj;
  3852. if (yystackp->yyerrState == 3)
  3853. /* We just shifted the error token and (perhaps) took some
  3854. reductions. Skip tokens until we can proceed. */
  3855. while (YYID (yytrue))
  3856. {
  3857. yySymbol yytoken;
  3858. if (yychar == YYEOF)
  3859. yyFail (yystackp, &yylloc, parse_state, scanner, YY_NULL);
  3860. if (yychar != YYEMPTY)
  3861. {
  3862. /* We throw away the lookahead, but the error range
  3863. of the shifted error token must take it into account. */
  3864. yyGLRState *yys = yystackp->yytops.yystates[0];
  3865. yyGLRStackItem yyerror_range[3];
  3866. yyerror_range[1].yystate.yyloc = yys->yyloc;
  3867. yyerror_range[2].yystate.yyloc = yylloc;
  3868. YYLLOC_DEFAULT ((yys->yyloc), yyerror_range, 2);
  3869. yytoken = YYTRANSLATE (yychar);
  3870. yydestruct ("Error: discarding",
  3871. yytoken, &yylval, &yylloc, parse_state, scanner);
  3872. }
  3873. YYDPRINTF ((stderr, "Reading a token: "));
  3874. yychar = YYLEX;
  3875. if (yychar <= YYEOF)
  3876. {
  3877. yychar = yytoken = YYEOF;
  3878. YYDPRINTF ((stderr, "Now at end of input.\n"));
  3879. }
  3880. else
  3881. {
  3882. yytoken = YYTRANSLATE (yychar);
  3883. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  3884. }
  3885. yyj = yypact[yystackp->yytops.yystates[0]->yylrState];
  3886. if (yypact_value_is_default (yyj))
  3887. return;
  3888. yyj += yytoken;
  3889. if (yyj < 0 || YYLAST < yyj || yycheck[yyj] != yytoken)
  3890. {
  3891. if (yydefact[yystackp->yytops.yystates[0]->yylrState] != 0)
  3892. return;
  3893. }
  3894. else if (! yytable_value_is_error (yytable[yyj]))
  3895. return;
  3896. }
  3897. /* Reduce to one stack. */
  3898. for (yyk = 0; yyk < yystackp->yytops.yysize; yyk += 1)
  3899. if (yystackp->yytops.yystates[yyk] != YY_NULL)
  3900. break;
  3901. if (yyk >= yystackp->yytops.yysize)
  3902. yyFail (yystackp, &yylloc, parse_state, scanner, YY_NULL);
  3903. for (yyk += 1; yyk < yystackp->yytops.yysize; yyk += 1)
  3904. yymarkStackDeleted (yystackp, yyk);
  3905. yyremoveDeletes (yystackp);
  3906. yycompressStack (yystackp);
  3907. /* Now pop stack until we find a state that shifts the error token. */
  3908. yystackp->yyerrState = 3;
  3909. while (yystackp->yytops.yystates[0] != YY_NULL)
  3910. {
  3911. yyGLRState *yys = yystackp->yytops.yystates[0];
  3912. yyj = yypact[yys->yylrState];
  3913. if (! yypact_value_is_default (yyj))
  3914. {
  3915. yyj += YYTERROR;
  3916. if (0 <= yyj && yyj <= YYLAST && yycheck[yyj] == YYTERROR
  3917. && yyisShiftAction (yytable[yyj]))
  3918. {
  3919. /* Shift the error token. */
  3920. /* First adjust its location.*/
  3921. YYLTYPE yyerrloc;
  3922. yystackp->yyerror_range[2].yystate.yyloc = yylloc;
  3923. YYLLOC_DEFAULT (yyerrloc, (yystackp->yyerror_range), 2);
  3924. YY_SYMBOL_PRINT ("Shifting", yystos[yytable[yyj]],
  3925. &yylval, &yyerrloc);
  3926. yyglrShift (yystackp, 0, yytable[yyj],
  3927. yys->yyposn, &yylval, &yyerrloc);
  3928. yys = yystackp->yytops.yystates[0];
  3929. break;
  3930. }
  3931. }
  3932. yystackp->yyerror_range[1].yystate.yyloc = yys->yyloc;
  3933. if (yys->yypred != YY_NULL)
  3934. yydestroyGLRState ("Error: popping", yys, parse_state, scanner);
  3935. yystackp->yytops.yystates[0] = yys->yypred;
  3936. yystackp->yynextFree -= 1;
  3937. yystackp->yyspaceLeft += 1;
  3938. }
  3939. if (yystackp->yytops.yystates[0] == YY_NULL)
  3940. yyFail (yystackp, &yylloc, parse_state, scanner, YY_NULL);
  3941. }
  3942. #define YYCHK1(YYE) \
  3943. do { \
  3944. switch (YYE) { \
  3945. case yyok: \
  3946. break; \
  3947. case yyabort: \
  3948. goto yyabortlab; \
  3949. case yyaccept: \
  3950. goto yyacceptlab; \
  3951. case yyerr: \
  3952. goto yyuser_error; \
  3953. default: \
  3954. goto yybuglab; \
  3955. } \
  3956. } while (YYID (0))
  3957. /*----------.
  3958. | yyparse. |
  3959. `----------*/
  3960. int
  3961. yyparse (ParseState* parse_state, yyscan_t scanner)
  3962. {
  3963. int yyresult;
  3964. yyGLRStack yystack;
  3965. yyGLRStack* const yystackp = &yystack;
  3966. size_t yyposn;
  3967. YYDPRINTF ((stderr, "Starting parse\n"));
  3968. yychar = YYEMPTY;
  3969. yylval = yyval_default;
  3970. yylloc = yyloc_default;
  3971. if (! yyinitGLRStack (yystackp, YYINITDEPTH))
  3972. goto yyexhaustedlab;
  3973. switch (YYSETJMP (yystack.yyexception_buffer))
  3974. {
  3975. case 0: break;
  3976. case 1: goto yyabortlab;
  3977. case 2: goto yyexhaustedlab;
  3978. default: goto yybuglab;
  3979. }
  3980. yyglrShift (&yystack, 0, 0, 0, &yylval, &yylloc);
  3981. yyposn = 0;
  3982. while (YYID (yytrue))
  3983. {
  3984. /* For efficiency, we have two loops, the first of which is
  3985. specialized to deterministic operation (single stack, no
  3986. potential ambiguity). */
  3987. /* Standard mode */
  3988. while (YYID (yytrue))
  3989. {
  3990. yyRuleNum yyrule;
  3991. int yyaction;
  3992. const short int* yyconflicts;
  3993. yyStateNum yystate = yystack.yytops.yystates[0]->yylrState;
  3994. YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  3995. if (yystate == YYFINAL)
  3996. goto yyacceptlab;
  3997. if (yyisDefaultedState (yystate))
  3998. {
  3999. yyrule = yydefaultAction (yystate);
  4000. if (yyrule == 0)
  4001. {
  4002. yystack.yyerror_range[1].yystate.yyloc = yylloc;
  4003. yyreportSyntaxError (&yystack, parse_state, scanner);
  4004. goto yyuser_error;
  4005. }
  4006. YYCHK1 (yyglrReduce (&yystack, 0, yyrule, yytrue, parse_state, scanner));
  4007. }
  4008. else
  4009. {
  4010. yySymbol yytoken;
  4011. if (yychar == YYEMPTY)
  4012. {
  4013. YYDPRINTF ((stderr, "Reading a token: "));
  4014. yychar = YYLEX;
  4015. }
  4016. if (yychar <= YYEOF)
  4017. {
  4018. yychar = yytoken = YYEOF;
  4019. YYDPRINTF ((stderr, "Now at end of input.\n"));
  4020. }
  4021. else
  4022. {
  4023. yytoken = YYTRANSLATE (yychar);
  4024. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  4025. }
  4026. yygetLRActions (yystate, yytoken, &yyaction, &yyconflicts);
  4027. if (*yyconflicts != 0)
  4028. break;
  4029. if (yyisShiftAction (yyaction))
  4030. {
  4031. YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  4032. yychar = YYEMPTY;
  4033. yyposn += 1;
  4034. yyglrShift (&yystack, 0, yyaction, yyposn, &yylval, &yylloc);
  4035. if (0 < yystack.yyerrState)
  4036. yystack.yyerrState -= 1;
  4037. }
  4038. else if (yyisErrorAction (yyaction))
  4039. {
  4040. yystack.yyerror_range[1].yystate.yyloc = yylloc;
  4041. yyreportSyntaxError (&yystack, parse_state, scanner);
  4042. goto yyuser_error;
  4043. }
  4044. else
  4045. YYCHK1 (yyglrReduce (&yystack, 0, -yyaction, yytrue, parse_state, scanner));
  4046. }
  4047. }
  4048. while (YYID (yytrue))
  4049. {
  4050. yySymbol yytoken_to_shift;
  4051. size_t yys;
  4052. for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
  4053. yystackp->yytops.yylookaheadNeeds[yys] = yychar != YYEMPTY;
  4054. /* yyprocessOneStack returns one of three things:
  4055. - An error flag. If the caller is yyprocessOneStack, it
  4056. immediately returns as well. When the caller is finally
  4057. yyparse, it jumps to an error label via YYCHK1.
  4058. - yyok, but yyprocessOneStack has invoked yymarkStackDeleted
  4059. (&yystack, yys), which sets the top state of yys to NULL. Thus,
  4060. yyparse's following invocation of yyremoveDeletes will remove
  4061. the stack.
  4062. - yyok, when ready to shift a token.
  4063. Except in the first case, yyparse will invoke yyremoveDeletes and
  4064. then shift the next token onto all remaining stacks. This
  4065. synchronization of the shift (that is, after all preceding
  4066. reductions on all stacks) helps prevent double destructor calls
  4067. on yylval in the event of memory exhaustion. */
  4068. for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
  4069. YYCHK1 (yyprocessOneStack (&yystack, yys, yyposn, &yylloc, parse_state, scanner));
  4070. yyremoveDeletes (&yystack);
  4071. if (yystack.yytops.yysize == 0)
  4072. {
  4073. yyundeleteLastStack (&yystack);
  4074. if (yystack.yytops.yysize == 0)
  4075. yyFail (&yystack, &yylloc, parse_state, scanner, YY_("syntax error"));
  4076. YYCHK1 (yyresolveStack (&yystack, parse_state, scanner));
  4077. YYDPRINTF ((stderr, "Returning to deterministic operation.\n"));
  4078. yystack.yyerror_range[1].yystate.yyloc = yylloc;
  4079. yyreportSyntaxError (&yystack, parse_state, scanner);
  4080. goto yyuser_error;
  4081. }
  4082. /* If any yyglrShift call fails, it will fail after shifting. Thus,
  4083. a copy of yylval will already be on stack 0 in the event of a
  4084. failure in the following loop. Thus, yychar is set to YYEMPTY
  4085. before the loop to make sure the user destructor for yylval isn't
  4086. called twice. */
  4087. yytoken_to_shift = YYTRANSLATE (yychar);
  4088. yychar = YYEMPTY;
  4089. yyposn += 1;
  4090. for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
  4091. {
  4092. int yyaction;
  4093. const short int* yyconflicts;
  4094. yyStateNum yystate = yystack.yytops.yystates[yys]->yylrState;
  4095. yygetLRActions (yystate, yytoken_to_shift, &yyaction,
  4096. &yyconflicts);
  4097. /* Note that yyconflicts were handled by yyprocessOneStack. */
  4098. YYDPRINTF ((stderr, "On stack %lu, ", (unsigned long int) yys));
  4099. YY_SYMBOL_PRINT ("shifting", yytoken_to_shift, &yylval, &yylloc);
  4100. yyglrShift (&yystack, yys, yyaction, yyposn,
  4101. &yylval, &yylloc);
  4102. YYDPRINTF ((stderr, "Stack %lu now in state #%d\n",
  4103. (unsigned long int) yys,
  4104. yystack.yytops.yystates[yys]->yylrState));
  4105. }
  4106. if (yystack.yytops.yysize == 1)
  4107. {
  4108. YYCHK1 (yyresolveStack (&yystack, parse_state, scanner));
  4109. YYDPRINTF ((stderr, "Returning to deterministic operation.\n"));
  4110. yycompressStack (&yystack);
  4111. break;
  4112. }
  4113. }
  4114. continue;
  4115. yyuser_error:
  4116. yyrecoverSyntaxError (&yystack, parse_state, scanner);
  4117. yyposn = yystack.yytops.yystates[0]->yyposn;
  4118. }
  4119. yyacceptlab:
  4120. yyresult = 0;
  4121. goto yyreturn;
  4122. yybuglab:
  4123. YYASSERT (yyfalse);
  4124. goto yyabortlab;
  4125. yyabortlab:
  4126. yyresult = 1;
  4127. goto yyreturn;
  4128. yyexhaustedlab:
  4129. yyerror (&yylloc, parse_state, scanner, YY_("memory exhausted"));
  4130. yyresult = 2;
  4131. goto yyreturn;
  4132. yyreturn:
  4133. if (yychar != YYEMPTY)
  4134. yydestruct ("Cleanup: discarding lookahead",
  4135. YYTRANSLATE (yychar), &yylval, &yylloc, parse_state, scanner);
  4136. /* If the stack is well-formed, pop the stack until it is empty,
  4137. destroying its entries as we go. But free the stack regardless
  4138. of whether it is well-formed. */
  4139. if (yystack.yyitems)
  4140. {
  4141. yyGLRState** yystates = yystack.yytops.yystates;
  4142. if (yystates)
  4143. {
  4144. size_t yysize = yystack.yytops.yysize;
  4145. size_t yyk;
  4146. for (yyk = 0; yyk < yysize; yyk += 1)
  4147. if (yystates[yyk])
  4148. {
  4149. while (yystates[yyk])
  4150. {
  4151. yyGLRState *yys = yystates[yyk];
  4152. yystack.yyerror_range[1].yystate.yyloc = yys->yyloc;
  4153. if (yys->yypred != YY_NULL)
  4154. yydestroyGLRState ("Cleanup: popping", yys, parse_state, scanner);
  4155. yystates[yyk] = yys->yypred;
  4156. yystack.yynextFree -= 1;
  4157. yystack.yyspaceLeft += 1;
  4158. }
  4159. break;
  4160. }
  4161. }
  4162. yyfreeGLRStack (&yystack);
  4163. }
  4164. /* Make sure YYID is used. */
  4165. return YYID (yyresult);
  4166. }
  4167. /* DEBUGGING ONLY */
  4168. #if YYDEBUG
  4169. static void yypstack (yyGLRStack* yystackp, size_t yyk)
  4170. __attribute__ ((__unused__));
  4171. static void yypdumpstack (yyGLRStack* yystackp) __attribute__ ((__unused__));
  4172. static void
  4173. yy_yypstack (yyGLRState* yys)
  4174. {
  4175. if (yys->yypred)
  4176. {
  4177. yy_yypstack (yys->yypred);
  4178. YYFPRINTF (stderr, " -> ");
  4179. }
  4180. YYFPRINTF (stderr, "%d@%lu", yys->yylrState,
  4181. (unsigned long int) yys->yyposn);
  4182. }
  4183. static void
  4184. yypstates (yyGLRState* yyst)
  4185. {
  4186. if (yyst == YY_NULL)
  4187. YYFPRINTF (stderr, "<null>");
  4188. else
  4189. yy_yypstack (yyst);
  4190. YYFPRINTF (stderr, "\n");
  4191. }
  4192. static void
  4193. yypstack (yyGLRStack* yystackp, size_t yyk)
  4194. {
  4195. yypstates (yystackp->yytops.yystates[yyk]);
  4196. }
  4197. #define YYINDEX(YYX) \
  4198. ((YYX) == YY_NULL ? -1 : (yyGLRStackItem*) (YYX) - yystackp->yyitems)
  4199. static void
  4200. yypdumpstack (yyGLRStack* yystackp)
  4201. {
  4202. yyGLRStackItem* yyp;
  4203. size_t yyi;
  4204. for (yyp = yystackp->yyitems; yyp < yystackp->yynextFree; yyp += 1)
  4205. {
  4206. YYFPRINTF (stderr, "%3lu. ",
  4207. (unsigned long int) (yyp - yystackp->yyitems));
  4208. if (*(yybool *) yyp)
  4209. {
  4210. YYFPRINTF (stderr, "Res: %d, LR State: %d, posn: %lu, pred: %ld",
  4211. yyp->yystate.yyresolved, yyp->yystate.yylrState,
  4212. (unsigned long int) yyp->yystate.yyposn,
  4213. (long int) YYINDEX (yyp->yystate.yypred));
  4214. if (! yyp->yystate.yyresolved)
  4215. YYFPRINTF (stderr, ", firstVal: %ld",
  4216. (long int) YYINDEX (yyp->yystate
  4217. .yysemantics.yyfirstVal));
  4218. }
  4219. else
  4220. {
  4221. YYFPRINTF (stderr, "Option. rule: %d, state: %ld, next: %ld",
  4222. yyp->yyoption.yyrule - 1,
  4223. (long int) YYINDEX (yyp->yyoption.yystate),
  4224. (long int) YYINDEX (yyp->yyoption.yynext));
  4225. }
  4226. YYFPRINTF (stderr, "\n");
  4227. }
  4228. YYFPRINTF (stderr, "Tops:");
  4229. for (yyi = 0; yyi < yystackp->yytops.yysize; yyi += 1)
  4230. YYFPRINTF (stderr, "%lu: %ld; ", (unsigned long int) yyi,
  4231. (long int) YYINDEX (yystackp->yytops.yystates[yyi]));
  4232. YYFPRINTF (stderr, "\n");
  4233. }
  4234. #endif
  4235. /* Line 2575 of glr.c */
  4236. #line 979 "../../../Source/BansheeSL/BsParserFX.y"
  4237. void yyerror(YYLTYPE *locp, ParseState* parse_state, yyscan_t scanner, const char *msg)
  4238. {
  4239. parse_state->hasError = 1;
  4240. parse_state->errorLine = locp->first_line;
  4241. parse_state->errorColumn = locp->first_column;
  4242. parse_state->errorMessage = mmalloc_strdup(parse_state->memContext, msg);
  4243. parse_state->errorFile = locp->filename;
  4244. }