BsParserFX.c 203 KB

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