BsParserFX.c 203 KB

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