BsParserFX.c 174 KB

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