mdlparse.c 308 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334
  1. /* A Bison parser, made by GNU Bison 3.0.4. */
  2. /* Bison implementation for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015 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 LALR(1) parser skeleton written by Richard Stallman, by
  26. simplifying the original so-called "semantic" parser. */
  27. /* All symbols defined below should begin with yy or YY, to avoid
  28. infringing on user name space. This should be done even for local
  29. variables, as they might otherwise be expanded by user macros.
  30. There are some unavoidable exceptions within include files to
  31. define necessary library symbols; they are noted "INFRINGES ON
  32. USER NAME SPACE" below. */
  33. /* Identify Bison output. */
  34. #define YYBISON 1
  35. /* Bison version. */
  36. #define YYBISON_VERSION "3.0.4"
  37. /* Skeleton name. */
  38. #define YYSKELETON_NAME "yacc.c"
  39. /* Pure parsers. */
  40. #define YYPURE 1
  41. /* Push parsers. */
  42. #define YYPUSH 0
  43. /* Pull parsers. */
  44. #define YYPULL 1
  45. /* Substitute the variable and function names. */
  46. #define yyparse mdlparse
  47. #define yylex mdllex
  48. #define yyerror mdlerror
  49. #define yydebug mdldebug
  50. #define yynerrs mdlnerrs
  51. /* Copy the first part of user declarations. */
  52. #line 1 "../src/../src/mdlparse.y" /* yacc.c:339 */
  53. #include "config.h"
  54. #include <stdio.h>
  55. #include <stdlib.h>
  56. #include <stdarg.h>
  57. #include <string.h>
  58. #include <time.h>
  59. #include <math.h>
  60. #include <float.h>
  61. #include <limits.h>
  62. #include <errno.h>
  63. #include "rng.h"
  64. #include "logging.h"
  65. #include "vector.h"
  66. #include "strfunc.h"
  67. #include "mem_util.h"
  68. #include "sym_table.h"
  69. #include "diffuse_util.h"
  70. #include "mdlparse_util.h"
  71. #include "mdlparse_aux.h"
  72. #include "util.h"
  73. #include "react_output.h"
  74. #include "macromolecule.h"
  75. #include "mcell_misc.h"
  76. #include "mcell_structs.h"
  77. #include "mcell_viz.h"
  78. #include "mcell_release.h"
  79. #include "mcell_objects.h"
  80. /* make sure to declare yyscan_t before including mdlparse.h */
  81. typedef void *yyscan_t;
  82. #include "mdlparse.h"
  83. int mdllex_init(yyscan_t *ptr_yy_globals) ;
  84. int mdllex_destroy(yyscan_t yyscanner);
  85. void mdlrestart(FILE *infile, yyscan_t scanner);
  86. int mdllex(YYSTYPE *yylval, struct mdlparse_vars *parse_state, yyscan_t scanner);
  87. static int mdlparse_file(struct mdlparse_vars *parse_state, char const *name);
  88. #ifdef DEBUG_MDL_PARSER
  89. #define FAILCHECK(t) do { mcell_error_nodie("Parser fail: %s:%d (%s)\n", __FILE__, __LINE__, t); return 1; } while(0)
  90. #else
  91. #define FAILCHECK(t) return 1
  92. #endif
  93. #define CHECK(a) do { if ((a) != 0) FAILCHECK("non-zero"); } while (0)
  94. #define CHECKN(a) do { if ((a) == NULL) FAILCHECK("NULL"); } while (0)
  95. #define CHECKF(a) do { \
  96. if (isnan(a)) \
  97. { \
  98. mdlerror(parse_state, "Expression result is not a number"); \
  99. FAILCHECK("NaN"); \
  100. } \
  101. else if (isinf(a)) \
  102. { \
  103. mdlerror(parse_state, "Expression result is infinite"); \
  104. FAILCHECK("Infinite"); \
  105. } \
  106. } while(0)
  107. #undef yyerror
  108. #define yyerror(a, b, c) mdlerror(a, c)
  109. #line 139 "mdlparse.c" /* yacc.c:339 */
  110. # ifndef YY_NULLPTR
  111. # if defined __cplusplus && 201103L <= __cplusplus
  112. # define YY_NULLPTR nullptr
  113. # else
  114. # define YY_NULLPTR 0
  115. # endif
  116. # endif
  117. /* Enabling verbose error messages. */
  118. #ifdef YYERROR_VERBOSE
  119. # undef YYERROR_VERBOSE
  120. # define YYERROR_VERBOSE 1
  121. #else
  122. # define YYERROR_VERBOSE 0
  123. #endif
  124. /* In a future release of Bison, this section will be replaced
  125. by #include "y.tab.h". */
  126. #ifndef YY_MDL_MDLPARSE_H_INCLUDED
  127. # define YY_MDL_MDLPARSE_H_INCLUDED
  128. /* Debug traces. */
  129. #ifndef YYDEBUG
  130. # define YYDEBUG 0
  131. #endif
  132. #if YYDEBUG
  133. extern int mdldebug;
  134. #endif
  135. /* Token type. */
  136. #ifndef YYTOKENTYPE
  137. # define YYTOKENTYPE
  138. enum yytokentype
  139. {
  140. ABS = 258,
  141. ABSORPTIVE = 259,
  142. ACCURATE_3D_REACTIONS = 260,
  143. ACOS = 261,
  144. ALL_CROSSINGS = 262,
  145. ALL_DATA = 263,
  146. ALL_ELEMENTS = 264,
  147. ALL_ENCLOSED = 265,
  148. ALL_HITS = 266,
  149. ALL_ITERATIONS = 267,
  150. ALL_MESHES = 268,
  151. ALL_MOLECULES = 269,
  152. ALL_NOTIFICATIONS = 270,
  153. ALL_TIMES = 271,
  154. ALL_WARNINGS = 272,
  155. ASCII = 273,
  156. ASIN = 274,
  157. ASPECT_RATIO = 275,
  158. ATAN = 276,
  159. BACK = 277,
  160. BACK_CROSSINGS = 278,
  161. BACK_HITS = 279,
  162. BINARY = 280,
  163. BOTTOM = 281,
  164. BOX = 282,
  165. BOX_TRIANGULATION_REPORT = 283,
  166. BRIEF = 284,
  167. CEIL = 285,
  168. CELLBLENDER = 286,
  169. CENTER_MOLECULES_ON_GRID = 287,
  170. CHECKPOINT_INFILE = 288,
  171. CHECKPOINT_ITERATIONS = 289,
  172. CHECKPOINT_OUTFILE = 290,
  173. CHECKPOINT_REALTIME = 291,
  174. CHECKPOINT_REPORT = 292,
  175. CLAMP_CONCENTRATION = 293,
  176. CLOSE_PARTITION_SPACING = 294,
  177. COMPLEX_PLACEMENT_ATTEMPTS = 295,
  178. COMPLEX_PLACEMENT_FAILURE = 296,
  179. COMPLEX_PLACEMENT_FAILURE_THRESHOLD = 297,
  180. COMPLEX_RATE = 298,
  181. CONCENTRATION = 299,
  182. CORNERS = 300,
  183. COS = 301,
  184. COUNT = 302,
  185. CUBIC = 303,
  186. CUBIC_RELEASE_SITE = 304,
  187. CUSTOM_SPACE_STEP = 305,
  188. CUSTOM_TIME_STEP = 306,
  189. DEFAULT = 307,
  190. DEFINE_COMPLEX_MOLECULE = 308,
  191. DEFINE_MOLECULE = 309,
  192. DEFINE_MOLECULES = 310,
  193. DEFINE_REACTIONS = 311,
  194. DEFINE_RELEASE_PATTERN = 312,
  195. DEFINE_SURFACE_CLASS = 313,
  196. DEFINE_SURFACE_CLASSES = 314,
  197. DEFINE_SURFACE_REGIONS = 315,
  198. DEGENERATE_POLYGONS = 316,
  199. DELAY = 317,
  200. DENSITY = 318,
  201. DIFFUSION_CONSTANT_2D = 319,
  202. DIFFUSION_CONSTANT_3D = 320,
  203. DIFFUSION_CONSTANT_REPORT = 321,
  204. DREAMM_V3 = 322,
  205. DREAMM_V3_GROUPED = 323,
  206. EFFECTOR_GRID_DENSITY = 324,
  207. ELEMENT_CONNECTIONS = 325,
  208. ELLIPTIC = 326,
  209. ELLIPTIC_RELEASE_SITE = 327,
  210. EQUAL = 328,
  211. ERROR = 329,
  212. ESTIMATE_CONCENTRATION = 330,
  213. EXCLUDE_ELEMENTS = 331,
  214. EXCLUDE_PATCH = 332,
  215. EXCLUDE_REGION = 333,
  216. EXIT = 334,
  217. EXP = 335,
  218. EXPRESSION = 336,
  219. FALSE = 337,
  220. FCLOSE = 338,
  221. FILENAME = 339,
  222. FILENAME_PREFIX = 340,
  223. FILE_OUTPUT_REPORT = 341,
  224. FINAL_SUMMARY = 342,
  225. FLOOR = 343,
  226. FOPEN = 344,
  227. FORMAT = 345,
  228. FPRINTF = 346,
  229. FPRINT_TIME = 347,
  230. FRONT = 348,
  231. FRONT_CROSSINGS = 349,
  232. FRONT_HITS = 350,
  233. GAUSSIAN_RELEASE_NUMBER = 351,
  234. GEOMETRY = 352,
  235. HEADER = 353,
  236. HIGH_PROBABILITY_THRESHOLD = 354,
  237. HIGH_REACTION_PROBABILITY = 355,
  238. IGNORED = 356,
  239. INCLUDE_ELEMENTS = 357,
  240. INCLUDE_FILE = 358,
  241. INCLUDE_PATCH = 359,
  242. INCLUDE_REGION = 360,
  243. INPUT_FILE = 361,
  244. INSTANTIATE = 362,
  245. LLINTEGER = 363,
  246. FULLY_RANDOM = 364,
  247. INTERACTION_RADIUS = 365,
  248. ITERATION_LIST = 366,
  249. ITERATION_NUMBERS = 367,
  250. ITERATION_REPORT = 368,
  251. ITERATIONS = 369,
  252. KEEP_CHECKPOINT_FILES = 370,
  253. LEFT = 371,
  254. LIFETIME_THRESHOLD = 372,
  255. LIFETIME_TOO_SHORT = 373,
  256. LIST = 374,
  257. LOCATION = 375,
  258. LOG = 376,
  259. LOG10 = 377,
  260. MAX_TOK = 378,
  261. MAXIMUM_STEP_LENGTH = 379,
  262. MEAN_DIAMETER = 380,
  263. MEAN_NUMBER = 381,
  264. MEMORY_PARTITION_X = 382,
  265. MEMORY_PARTITION_Y = 383,
  266. MEMORY_PARTITION_Z = 384,
  267. MEMORY_PARTITION_POOL = 385,
  268. MESHES = 386,
  269. MICROSCOPIC_REVERSIBILITY = 387,
  270. MIN_TOK = 388,
  271. MISSED_REACTIONS = 389,
  272. MISSED_REACTION_THRESHOLD = 390,
  273. MISSING_SURFACE_ORIENTATION = 391,
  274. MOD = 392,
  275. MODE = 393,
  276. MODIFY_SURFACE_REGIONS = 394,
  277. MOLECULE = 395,
  278. MOLECULE_COLLISION_REPORT = 396,
  279. MOLECULE_DENSITY = 397,
  280. MOLECULE_NUMBER = 398,
  281. MOLECULE_POSITIONS = 399,
  282. MOLECULES = 400,
  283. MOLECULE_PLACEMENT_FAILURE = 401,
  284. NAME_LIST = 402,
  285. NEGATIVE_DIFFUSION_CONSTANT = 403,
  286. NEGATIVE_REACTION_RATE = 404,
  287. NO = 405,
  288. NOEXIT = 406,
  289. NONE = 407,
  290. NO_SPECIES = 408,
  291. NOT_EQUAL = 409,
  292. NOTIFICATIONS = 410,
  293. NUMBER_OF_SUBUNITS = 411,
  294. NUMBER_OF_TRAINS = 412,
  295. NUMBER_TO_RELEASE = 413,
  296. OBJECT = 414,
  297. OFF = 415,
  298. ON = 416,
  299. ORIENTATIONS = 417,
  300. OUTPUT_BUFFER_SIZE = 418,
  301. INVALID_OUTPUT_STEP_TIME = 419,
  302. OVERWRITTEN_OUTPUT_FILE = 420,
  303. PARTITION_LOCATION_REPORT = 421,
  304. PARTITION_X = 422,
  305. PARTITION_Y = 423,
  306. PARTITION_Z = 424,
  307. PI_TOK = 425,
  308. POLYGON_LIST = 426,
  309. POSITIONS = 427,
  310. PRINTF = 428,
  311. PRINT_TIME = 429,
  312. PROBABILITY_REPORT = 430,
  313. PROBABILITY_REPORT_THRESHOLD = 431,
  314. PROGRESS_REPORT = 432,
  315. RADIAL_DIRECTIONS = 433,
  316. RADIAL_SUBDIVISIONS = 434,
  317. RAND_GAUSSIAN = 435,
  318. RAND_UNIFORM = 436,
  319. RATE_RULES = 437,
  320. REACTION_DATA_OUTPUT = 438,
  321. REACTION_OUTPUT_REPORT = 439,
  322. REACTION_GROUP = 440,
  323. REAL = 441,
  324. RECTANGULAR_RELEASE_SITE = 442,
  325. RECTANGULAR_TOKEN = 443,
  326. REFLECTIVE = 444,
  327. REGION_DATA = 445,
  328. RELEASE_EVENT_REPORT = 446,
  329. RELEASE_INTERVAL = 447,
  330. RELEASE_PATTERN = 448,
  331. RELEASE_PROBABILITY = 449,
  332. RELEASE_SITE = 450,
  333. REMOVE_ELEMENTS = 451,
  334. RIGHT = 452,
  335. ROTATE = 453,
  336. ROUND_OFF = 454,
  337. SCALE = 455,
  338. SEED = 456,
  339. SHAPE = 457,
  340. SHOW_EXACT_TIME = 458,
  341. SIN = 459,
  342. SITE_DIAMETER = 460,
  343. SITE_RADIUS = 461,
  344. SPACE_STEP = 462,
  345. SPHERICAL = 463,
  346. SPHERICAL_RELEASE_SITE = 464,
  347. SPHERICAL_SHELL = 465,
  348. SPHERICAL_SHELL_SITE = 466,
  349. SPRINTF = 467,
  350. SQRT = 468,
  351. STANDARD_DEVIATION = 469,
  352. STEP = 470,
  353. STRING_TO_NUM = 471,
  354. STR_VALUE = 472,
  355. SUBUNIT = 473,
  356. SUBUNIT_RELATIONSHIPS = 474,
  357. SUMMATION_OPERATOR = 475,
  358. SURFACE_CLASS = 476,
  359. SURFACE_ONLY = 477,
  360. TAN = 478,
  361. TARGET_ONLY = 479,
  362. TET_ELEMENT_CONNECTIONS = 480,
  363. THROUGHPUT_REPORT = 481,
  364. TIME_LIST = 482,
  365. TIME_POINTS = 483,
  366. TIME_STEP = 484,
  367. TIME_STEP_MAX = 485,
  368. TO = 486,
  369. TOP = 487,
  370. TRAIN_DURATION = 488,
  371. TRAIN_INTERVAL = 489,
  372. TRANSLATE = 490,
  373. TRANSPARENT = 491,
  374. TRIGGER = 492,
  375. TRUE = 493,
  376. UNLIMITED = 494,
  377. USELESS_VOLUME_ORIENTATION = 495,
  378. VACANCY_SEARCH_DISTANCE = 496,
  379. VAR = 497,
  380. VARYING_PROBABILITY_REPORT = 498,
  381. VERTEX_LIST = 499,
  382. VIZ_MESH_FORMAT = 500,
  383. VIZ_MOLECULE_FORMAT = 501,
  384. VIZ_OUTPUT = 502,
  385. VIZ_OUTPUT_REPORT = 503,
  386. VIZ_VALUE = 504,
  387. VOLUME_DATA_OUTPUT = 505,
  388. VOLUME_OUTPUT_REPORT = 506,
  389. VOLUME_DEPENDENT_RELEASE_NUMBER = 507,
  390. VOLUME_ONLY = 508,
  391. VOXEL_COUNT = 509,
  392. VOXEL_LIST = 510,
  393. VOXEL_SIZE = 511,
  394. WARNING = 512,
  395. WARNINGS = 513,
  396. WORLD = 514,
  397. YES = 515,
  398. UNARYMINUS = 516
  399. };
  400. #endif
  401. /* Tokens. */
  402. #define ABS 258
  403. #define ABSORPTIVE 259
  404. #define ACCURATE_3D_REACTIONS 260
  405. #define ACOS 261
  406. #define ALL_CROSSINGS 262
  407. #define ALL_DATA 263
  408. #define ALL_ELEMENTS 264
  409. #define ALL_ENCLOSED 265
  410. #define ALL_HITS 266
  411. #define ALL_ITERATIONS 267
  412. #define ALL_MESHES 268
  413. #define ALL_MOLECULES 269
  414. #define ALL_NOTIFICATIONS 270
  415. #define ALL_TIMES 271
  416. #define ALL_WARNINGS 272
  417. #define ASCII 273
  418. #define ASIN 274
  419. #define ASPECT_RATIO 275
  420. #define ATAN 276
  421. #define BACK 277
  422. #define BACK_CROSSINGS 278
  423. #define BACK_HITS 279
  424. #define BINARY 280
  425. #define BOTTOM 281
  426. #define BOX 282
  427. #define BOX_TRIANGULATION_REPORT 283
  428. #define BRIEF 284
  429. #define CEIL 285
  430. #define CELLBLENDER 286
  431. #define CENTER_MOLECULES_ON_GRID 287
  432. #define CHECKPOINT_INFILE 288
  433. #define CHECKPOINT_ITERATIONS 289
  434. #define CHECKPOINT_OUTFILE 290
  435. #define CHECKPOINT_REALTIME 291
  436. #define CHECKPOINT_REPORT 292
  437. #define CLAMP_CONCENTRATION 293
  438. #define CLOSE_PARTITION_SPACING 294
  439. #define COMPLEX_PLACEMENT_ATTEMPTS 295
  440. #define COMPLEX_PLACEMENT_FAILURE 296
  441. #define COMPLEX_PLACEMENT_FAILURE_THRESHOLD 297
  442. #define COMPLEX_RATE 298
  443. #define CONCENTRATION 299
  444. #define CORNERS 300
  445. #define COS 301
  446. #define COUNT 302
  447. #define CUBIC 303
  448. #define CUBIC_RELEASE_SITE 304
  449. #define CUSTOM_SPACE_STEP 305
  450. #define CUSTOM_TIME_STEP 306
  451. #define DEFAULT 307
  452. #define DEFINE_COMPLEX_MOLECULE 308
  453. #define DEFINE_MOLECULE 309
  454. #define DEFINE_MOLECULES 310
  455. #define DEFINE_REACTIONS 311
  456. #define DEFINE_RELEASE_PATTERN 312
  457. #define DEFINE_SURFACE_CLASS 313
  458. #define DEFINE_SURFACE_CLASSES 314
  459. #define DEFINE_SURFACE_REGIONS 315
  460. #define DEGENERATE_POLYGONS 316
  461. #define DELAY 317
  462. #define DENSITY 318
  463. #define DIFFUSION_CONSTANT_2D 319
  464. #define DIFFUSION_CONSTANT_3D 320
  465. #define DIFFUSION_CONSTANT_REPORT 321
  466. #define DREAMM_V3 322
  467. #define DREAMM_V3_GROUPED 323
  468. #define EFFECTOR_GRID_DENSITY 324
  469. #define ELEMENT_CONNECTIONS 325
  470. #define ELLIPTIC 326
  471. #define ELLIPTIC_RELEASE_SITE 327
  472. #define EQUAL 328
  473. #define ERROR 329
  474. #define ESTIMATE_CONCENTRATION 330
  475. #define EXCLUDE_ELEMENTS 331
  476. #define EXCLUDE_PATCH 332
  477. #define EXCLUDE_REGION 333
  478. #define EXIT 334
  479. #define EXP 335
  480. #define EXPRESSION 336
  481. #define FALSE 337
  482. #define FCLOSE 338
  483. #define FILENAME 339
  484. #define FILENAME_PREFIX 340
  485. #define FILE_OUTPUT_REPORT 341
  486. #define FINAL_SUMMARY 342
  487. #define FLOOR 343
  488. #define FOPEN 344
  489. #define FORMAT 345
  490. #define FPRINTF 346
  491. #define FPRINT_TIME 347
  492. #define FRONT 348
  493. #define FRONT_CROSSINGS 349
  494. #define FRONT_HITS 350
  495. #define GAUSSIAN_RELEASE_NUMBER 351
  496. #define GEOMETRY 352
  497. #define HEADER 353
  498. #define HIGH_PROBABILITY_THRESHOLD 354
  499. #define HIGH_REACTION_PROBABILITY 355
  500. #define IGNORED 356
  501. #define INCLUDE_ELEMENTS 357
  502. #define INCLUDE_FILE 358
  503. #define INCLUDE_PATCH 359
  504. #define INCLUDE_REGION 360
  505. #define INPUT_FILE 361
  506. #define INSTANTIATE 362
  507. #define LLINTEGER 363
  508. #define FULLY_RANDOM 364
  509. #define INTERACTION_RADIUS 365
  510. #define ITERATION_LIST 366
  511. #define ITERATION_NUMBERS 367
  512. #define ITERATION_REPORT 368
  513. #define ITERATIONS 369
  514. #define KEEP_CHECKPOINT_FILES 370
  515. #define LEFT 371
  516. #define LIFETIME_THRESHOLD 372
  517. #define LIFETIME_TOO_SHORT 373
  518. #define LIST 374
  519. #define LOCATION 375
  520. #define LOG 376
  521. #define LOG10 377
  522. #define MAX_TOK 378
  523. #define MAXIMUM_STEP_LENGTH 379
  524. #define MEAN_DIAMETER 380
  525. #define MEAN_NUMBER 381
  526. #define MEMORY_PARTITION_X 382
  527. #define MEMORY_PARTITION_Y 383
  528. #define MEMORY_PARTITION_Z 384
  529. #define MEMORY_PARTITION_POOL 385
  530. #define MESHES 386
  531. #define MICROSCOPIC_REVERSIBILITY 387
  532. #define MIN_TOK 388
  533. #define MISSED_REACTIONS 389
  534. #define MISSED_REACTION_THRESHOLD 390
  535. #define MISSING_SURFACE_ORIENTATION 391
  536. #define MOD 392
  537. #define MODE 393
  538. #define MODIFY_SURFACE_REGIONS 394
  539. #define MOLECULE 395
  540. #define MOLECULE_COLLISION_REPORT 396
  541. #define MOLECULE_DENSITY 397
  542. #define MOLECULE_NUMBER 398
  543. #define MOLECULE_POSITIONS 399
  544. #define MOLECULES 400
  545. #define MOLECULE_PLACEMENT_FAILURE 401
  546. #define NAME_LIST 402
  547. #define NEGATIVE_DIFFUSION_CONSTANT 403
  548. #define NEGATIVE_REACTION_RATE 404
  549. #define NO 405
  550. #define NOEXIT 406
  551. #define NONE 407
  552. #define NO_SPECIES 408
  553. #define NOT_EQUAL 409
  554. #define NOTIFICATIONS 410
  555. #define NUMBER_OF_SUBUNITS 411
  556. #define NUMBER_OF_TRAINS 412
  557. #define NUMBER_TO_RELEASE 413
  558. #define OBJECT 414
  559. #define OFF 415
  560. #define ON 416
  561. #define ORIENTATIONS 417
  562. #define OUTPUT_BUFFER_SIZE 418
  563. #define INVALID_OUTPUT_STEP_TIME 419
  564. #define OVERWRITTEN_OUTPUT_FILE 420
  565. #define PARTITION_LOCATION_REPORT 421
  566. #define PARTITION_X 422
  567. #define PARTITION_Y 423
  568. #define PARTITION_Z 424
  569. #define PI_TOK 425
  570. #define POLYGON_LIST 426
  571. #define POSITIONS 427
  572. #define PRINTF 428
  573. #define PRINT_TIME 429
  574. #define PROBABILITY_REPORT 430
  575. #define PROBABILITY_REPORT_THRESHOLD 431
  576. #define PROGRESS_REPORT 432
  577. #define RADIAL_DIRECTIONS 433
  578. #define RADIAL_SUBDIVISIONS 434
  579. #define RAND_GAUSSIAN 435
  580. #define RAND_UNIFORM 436
  581. #define RATE_RULES 437
  582. #define REACTION_DATA_OUTPUT 438
  583. #define REACTION_OUTPUT_REPORT 439
  584. #define REACTION_GROUP 440
  585. #define REAL 441
  586. #define RECTANGULAR_RELEASE_SITE 442
  587. #define RECTANGULAR_TOKEN 443
  588. #define REFLECTIVE 444
  589. #define REGION_DATA 445
  590. #define RELEASE_EVENT_REPORT 446
  591. #define RELEASE_INTERVAL 447
  592. #define RELEASE_PATTERN 448
  593. #define RELEASE_PROBABILITY 449
  594. #define RELEASE_SITE 450
  595. #define REMOVE_ELEMENTS 451
  596. #define RIGHT 452
  597. #define ROTATE 453
  598. #define ROUND_OFF 454
  599. #define SCALE 455
  600. #define SEED 456
  601. #define SHAPE 457
  602. #define SHOW_EXACT_TIME 458
  603. #define SIN 459
  604. #define SITE_DIAMETER 460
  605. #define SITE_RADIUS 461
  606. #define SPACE_STEP 462
  607. #define SPHERICAL 463
  608. #define SPHERICAL_RELEASE_SITE 464
  609. #define SPHERICAL_SHELL 465
  610. #define SPHERICAL_SHELL_SITE 466
  611. #define SPRINTF 467
  612. #define SQRT 468
  613. #define STANDARD_DEVIATION 469
  614. #define STEP 470
  615. #define STRING_TO_NUM 471
  616. #define STR_VALUE 472
  617. #define SUBUNIT 473
  618. #define SUBUNIT_RELATIONSHIPS 474
  619. #define SUMMATION_OPERATOR 475
  620. #define SURFACE_CLASS 476
  621. #define SURFACE_ONLY 477
  622. #define TAN 478
  623. #define TARGET_ONLY 479
  624. #define TET_ELEMENT_CONNECTIONS 480
  625. #define THROUGHPUT_REPORT 481
  626. #define TIME_LIST 482
  627. #define TIME_POINTS 483
  628. #define TIME_STEP 484
  629. #define TIME_STEP_MAX 485
  630. #define TO 486
  631. #define TOP 487
  632. #define TRAIN_DURATION 488
  633. #define TRAIN_INTERVAL 489
  634. #define TRANSLATE 490
  635. #define TRANSPARENT 491
  636. #define TRIGGER 492
  637. #define TRUE 493
  638. #define UNLIMITED 494
  639. #define USELESS_VOLUME_ORIENTATION 495
  640. #define VACANCY_SEARCH_DISTANCE 496
  641. #define VAR 497
  642. #define VARYING_PROBABILITY_REPORT 498
  643. #define VERTEX_LIST 499
  644. #define VIZ_MESH_FORMAT 500
  645. #define VIZ_MOLECULE_FORMAT 501
  646. #define VIZ_OUTPUT 502
  647. #define VIZ_OUTPUT_REPORT 503
  648. #define VIZ_VALUE 504
  649. #define VOLUME_DATA_OUTPUT 505
  650. #define VOLUME_OUTPUT_REPORT 506
  651. #define VOLUME_DEPENDENT_RELEASE_NUMBER 507
  652. #define VOLUME_ONLY 508
  653. #define VOXEL_COUNT 509
  654. #define VOXEL_LIST 510
  655. #define VOXEL_SIZE 511
  656. #define WARNING 512
  657. #define WARNINGS 513
  658. #define WORLD 514
  659. #define YES 515
  660. #define UNARYMINUS 516
  661. /* Value type. */
  662. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  663. union YYSTYPE
  664. {
  665. #line 69 "../src/../src/mdlparse.y" /* yacc.c:355 */
  666. int ival;
  667. int tok;
  668. double dbl;
  669. long long llival;
  670. char *str;
  671. struct sym_table *sym;
  672. struct vector3 *vec3;
  673. struct num_expr_list_head nlist;
  674. struct release_evaluator *rev;
  675. struct sym_table_list *symlist;
  676. struct output_times *otimes;
  677. /* Reaction output */
  678. struct output_times_inlist ro_otimes;
  679. struct output_column_list ro_cols;
  680. struct output_set *ro_set;
  681. struct output_set_list ro_sets;
  682. struct output_expression *cnt;
  683. /* Viz output */
  684. struct frame_data_list_head frame_list;
  685. /* Region definitions */
  686. struct element_list *elem_list_item;
  687. struct element_list_head elem_list;
  688. struct region *reg;
  689. /* Diffusion constants */
  690. struct diffusion_constant diff_const;
  691. /* Geometry */
  692. struct vertex_list_head vertlist;
  693. struct vertex_list *vertlistitem;
  694. struct element_connection_list_head ecl;
  695. struct element_connection_list *elem_conn;
  696. struct object *obj;
  697. struct object_list obj_list;
  698. struct voxel_object *voxel;
  699. /* Molecule species */
  700. struct mcell_species mol_type;
  701. struct mcell_species_list mol_type_list;
  702. struct mcell_species_spec *mcell_mol_spec;
  703. struct parse_mcell_species_list mcell_species_lst;
  704. struct sm_dat *surf_mol_dat;
  705. struct sm_dat_list surf_mol_dat_list;
  706. struct species_list species_lst;
  707. struct species_list_item *species_lst_item;
  708. /* Reactions */
  709. struct reaction_arrow react_arrow;
  710. struct reaction_rate react_rate;
  711. struct reaction_rates react_rates;
  712. /* Release sites/patterns */
  713. struct release_pattern rpat;
  714. struct release_single_molecule *rsm;
  715. struct release_single_molecule_list rsm_list;
  716. /* printf arguments */
  717. struct arg *printfarg;
  718. struct arg_list printfargs;
  719. /* Macromolecules */
  720. struct macro_subunit_assignment_list mmol_subunits;
  721. struct macro_topology *mmol_topo;
  722. struct macro_subunit_spec *mmol_su_comp;
  723. struct macro_subunit_assignment *mmol_su_assign;
  724. struct macro_geometry *mmol_geom;
  725. struct macro_relationship *mmol_su_rel;
  726. struct macro_rate_ruleset *mmol_rate_ruleset;
  727. struct macro_rate_rule *mmol_rate_rule;
  728. struct macro_rate_clause *mmol_rate_clause;
  729. /* Macromolecules (after the species is built) */
  730. struct macro_relation_state *relation_state;
  731. #line 780 "mdlparse.c" /* yacc.c:355 */
  732. };
  733. typedef union YYSTYPE YYSTYPE;
  734. # define YYSTYPE_IS_TRIVIAL 1
  735. # define YYSTYPE_IS_DECLARED 1
  736. #endif
  737. int mdlparse (struct mdlparse_vars *parse_state, yyscan_t scanner);
  738. #endif /* !YY_MDL_MDLPARSE_H_INCLUDED */
  739. /* Copy the second part of user declarations. */
  740. #line 796 "mdlparse.c" /* yacc.c:358 */
  741. #ifdef short
  742. # undef short
  743. #endif
  744. #ifdef YYTYPE_UINT8
  745. typedef YYTYPE_UINT8 yytype_uint8;
  746. #else
  747. typedef unsigned char yytype_uint8;
  748. #endif
  749. #ifdef YYTYPE_INT8
  750. typedef YYTYPE_INT8 yytype_int8;
  751. #else
  752. typedef signed char yytype_int8;
  753. #endif
  754. #ifdef YYTYPE_UINT16
  755. typedef YYTYPE_UINT16 yytype_uint16;
  756. #else
  757. typedef unsigned short int yytype_uint16;
  758. #endif
  759. #ifdef YYTYPE_INT16
  760. typedef YYTYPE_INT16 yytype_int16;
  761. #else
  762. typedef short int yytype_int16;
  763. #endif
  764. #ifndef YYSIZE_T
  765. # ifdef __SIZE_TYPE__
  766. # define YYSIZE_T __SIZE_TYPE__
  767. # elif defined size_t
  768. # define YYSIZE_T size_t
  769. # elif ! defined YYSIZE_T
  770. # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  771. # define YYSIZE_T size_t
  772. # else
  773. # define YYSIZE_T unsigned int
  774. # endif
  775. #endif
  776. #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
  777. #ifndef YY_
  778. # if defined YYENABLE_NLS && YYENABLE_NLS
  779. # if ENABLE_NLS
  780. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  781. # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
  782. # endif
  783. # endif
  784. # ifndef YY_
  785. # define YY_(Msgid) Msgid
  786. # endif
  787. #endif
  788. #ifndef YY_ATTRIBUTE
  789. # if (defined __GNUC__ \
  790. && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
  791. || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
  792. # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
  793. # else
  794. # define YY_ATTRIBUTE(Spec) /* empty */
  795. # endif
  796. #endif
  797. #ifndef YY_ATTRIBUTE_PURE
  798. # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
  799. #endif
  800. #ifndef YY_ATTRIBUTE_UNUSED
  801. # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
  802. #endif
  803. #if !defined _Noreturn \
  804. && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
  805. # if defined _MSC_VER && 1200 <= _MSC_VER
  806. # define _Noreturn __declspec (noreturn)
  807. # else
  808. # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
  809. # endif
  810. #endif
  811. /* Suppress unused-variable warnings by "using" E. */
  812. #if ! defined lint || defined __GNUC__
  813. # define YYUSE(E) ((void) (E))
  814. #else
  815. # define YYUSE(E) /* empty */
  816. #endif
  817. #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
  818. /* Suppress an incorrect diagnostic about yylval being uninitialized. */
  819. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
  820. _Pragma ("GCC diagnostic push") \
  821. _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
  822. _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
  823. # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
  824. _Pragma ("GCC diagnostic pop")
  825. #else
  826. # define YY_INITIAL_VALUE(Value) Value
  827. #endif
  828. #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  829. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  830. # define YY_IGNORE_MAYBE_UNINITIALIZED_END
  831. #endif
  832. #ifndef YY_INITIAL_VALUE
  833. # define YY_INITIAL_VALUE(Value) /* Nothing. */
  834. #endif
  835. #if ! defined yyoverflow || YYERROR_VERBOSE
  836. /* The parser invokes alloca or malloc; define the necessary symbols. */
  837. # ifdef YYSTACK_USE_ALLOCA
  838. # if YYSTACK_USE_ALLOCA
  839. # ifdef __GNUC__
  840. # define YYSTACK_ALLOC __builtin_alloca
  841. # elif defined __BUILTIN_VA_ARG_INCR
  842. # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
  843. # elif defined _AIX
  844. # define YYSTACK_ALLOC __alloca
  845. # elif defined _MSC_VER
  846. # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
  847. # define alloca _alloca
  848. # else
  849. # define YYSTACK_ALLOC alloca
  850. # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
  851. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  852. /* Use EXIT_SUCCESS as a witness for stdlib.h. */
  853. # ifndef EXIT_SUCCESS
  854. # define EXIT_SUCCESS 0
  855. # endif
  856. # endif
  857. # endif
  858. # endif
  859. # endif
  860. # ifdef YYSTACK_ALLOC
  861. /* Pacify GCC's 'empty if-body' warning. */
  862. # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  863. # ifndef YYSTACK_ALLOC_MAXIMUM
  864. /* The OS might guarantee only one guard page at the bottom of the stack,
  865. and a page size can be as small as 4096 bytes. So we cannot safely
  866. invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
  867. to allow for a few compiler-allocated temporary stack slots. */
  868. # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
  869. # endif
  870. # else
  871. # define YYSTACK_ALLOC YYMALLOC
  872. # define YYSTACK_FREE YYFREE
  873. # ifndef YYSTACK_ALLOC_MAXIMUM
  874. # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  875. # endif
  876. # if (defined __cplusplus && ! defined EXIT_SUCCESS \
  877. && ! ((defined YYMALLOC || defined malloc) \
  878. && (defined YYFREE || defined free)))
  879. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  880. # ifndef EXIT_SUCCESS
  881. # define EXIT_SUCCESS 0
  882. # endif
  883. # endif
  884. # ifndef YYMALLOC
  885. # define YYMALLOC malloc
  886. # if ! defined malloc && ! defined EXIT_SUCCESS
  887. void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
  888. # endif
  889. # endif
  890. # ifndef YYFREE
  891. # define YYFREE free
  892. # if ! defined free && ! defined EXIT_SUCCESS
  893. void free (void *); /* INFRINGES ON USER NAME SPACE */
  894. # endif
  895. # endif
  896. # endif
  897. #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
  898. #if (! defined yyoverflow \
  899. && (! defined __cplusplus \
  900. || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
  901. /* A type that is properly aligned for any stack member. */
  902. union yyalloc
  903. {
  904. yytype_int16 yyss_alloc;
  905. YYSTYPE yyvs_alloc;
  906. };
  907. /* The size of the maximum gap between one aligned stack and the next. */
  908. # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  909. /* The size of an array large to enough to hold all stacks, each with
  910. N elements. */
  911. # define YYSTACK_BYTES(N) \
  912. ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
  913. + YYSTACK_GAP_MAXIMUM)
  914. # define YYCOPY_NEEDED 1
  915. /* Relocate STACK from its old location to the new one. The
  916. local variables YYSIZE and YYSTACKSIZE give the old and new number of
  917. elements in the stack, and YYPTR gives the new location of the
  918. stack. Advance YYPTR to a properly aligned location for the next
  919. stack. */
  920. # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
  921. do \
  922. { \
  923. YYSIZE_T yynewbytes; \
  924. YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
  925. Stack = &yyptr->Stack_alloc; \
  926. yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  927. yyptr += yynewbytes / sizeof (*yyptr); \
  928. } \
  929. while (0)
  930. #endif
  931. #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
  932. /* Copy COUNT objects from SRC to DST. The source and destination do
  933. not overlap. */
  934. # ifndef YYCOPY
  935. # if defined __GNUC__ && 1 < __GNUC__
  936. # define YYCOPY(Dst, Src, Count) \
  937. __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
  938. # else
  939. # define YYCOPY(Dst, Src, Count) \
  940. do \
  941. { \
  942. YYSIZE_T yyi; \
  943. for (yyi = 0; yyi < (Count); yyi++) \
  944. (Dst)[yyi] = (Src)[yyi]; \
  945. } \
  946. while (0)
  947. # endif
  948. # endif
  949. #endif /* !YYCOPY_NEEDED */
  950. /* YYFINAL -- State number of the termination state. */
  951. #define YYFINAL 148
  952. /* YYLAST -- Last index in YYTABLE. */
  953. #define YYLAST 2861
  954. /* YYNTOKENS -- Number of terminals. */
  955. #define YYNTOKENS 282
  956. /* YYNNTS -- Number of nonterminals. */
  957. #define YYNNTS 338
  958. /* YYNRULES -- Number of rules. */
  959. #define YYNRULES 697
  960. /* YYNSTATES -- Number of states. */
  961. #define YYNSTATES 1366
  962. /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
  963. by yylex, with out-of-bounds checking. */
  964. #define YYUNDEFTOK 2
  965. #define YYMAXUTOK 516
  966. #define YYTRANSLATE(YYX) \
  967. ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  968. /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
  969. as returned by yylex, without out-of-bounds checking. */
  970. static const yytype_uint16 yytranslate[] =
  971. {
  972. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  973. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  974. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  975. 2, 2, 2, 2, 2, 2, 2, 2, 262, 273,
  976. 277, 278, 266, 264, 274, 265, 2, 267, 2, 2,
  977. 2, 2, 2, 2, 2, 2, 2, 2, 263, 272,
  978. 280, 261, 279, 2, 281, 2, 2, 2, 2, 2,
  979. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  980. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  981. 2, 270, 2, 271, 268, 2, 2, 2, 2, 2,
  982. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  983. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  984. 2, 2, 2, 275, 2, 276, 2, 2, 2, 2,
  985. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  986. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  987. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  988. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  989. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  990. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  991. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  992. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  993. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  994. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  995. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  996. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  997. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  998. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  999. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  1000. 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  1001. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  1002. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  1003. 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
  1004. 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
  1005. 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
  1006. 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
  1007. 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
  1008. 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
  1009. 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
  1010. 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
  1011. 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
  1012. 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
  1013. 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
  1014. 165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
  1015. 175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
  1016. 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
  1017. 195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
  1018. 205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
  1019. 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
  1020. 225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
  1021. 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
  1022. 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
  1023. 255, 256, 257, 258, 259, 260, 269
  1024. };
  1025. #if YYDEBUG
  1026. /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
  1027. static const yytype_uint16 yyrline[] =
  1028. {
  1029. 0, 650, 650, 654, 655, 660, 661, 662, 663, 664,
  1030. 665, 666, 667, 668, 669, 670, 671, 672, 673, 674,
  1031. 675, 676, 677, 678, 679, 684, 687, 690, 693, 696,
  1032. 697, 700, 703, 706, 707, 710, 711, 712, 713, 714,
  1033. 715, 718, 719, 720, 721, 725, 726, 727, 737, 749,
  1034. 752, 755, 767, 768, 781, 782, 788, 811, 812, 813,
  1035. 814, 817, 820, 823, 824, 835, 838, 841, 842, 845,
  1036. 846, 849, 850, 853, 854, 857, 861, 862, 863, 864,
  1037. 865, 866, 867, 868, 869, 870, 871, 872, 873, 874,
  1038. 875, 876, 877, 878, 879, 880, 881, 882, 883, 884,
  1039. 885, 886, 887, 888, 889, 890, 894, 895, 899, 900,
  1040. 901, 902, 905, 911, 912, 913, 914, 915, 916, 917,
  1041. 920, 924, 927, 930, 933, 936, 939, 940, 950, 951,
  1042. 952, 964, 968, 974, 979, 983, 992, 996, 997, 1001,
  1043. 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011,
  1044. 1012, 1013, 1014, 1015, 1016, 1017, 1021, 1022, 1026, 1030,
  1045. 1031, 1038, 1042, 1043, 1047, 1048, 1049, 1050, 1051, 1052,
  1046. 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062,
  1047. 1063, 1064, 1068, 1069, 1070, 1076, 1077, 1078, 1079, 1080,
  1048. 1084, 1085, 1086, 1090, 1091, 1092, 1093, 1101, 1102, 1103,
  1049. 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113,
  1050. 1114, 1115, 1116, 1123, 1124, 1125, 1126, 1130, 1134, 1135,
  1051. 1136, 1143, 1144, 1145, 1148, 1152, 1156, 1157, 1161, 1169,
  1052. 1172, 1176, 1177, 1181, 1182, 1191, 1202, 1203, 1207, 1208,
  1053. 1219, 1221, 1224, 1219, 1229, 1233, 1237, 1238, 1243, 1248,
  1054. 1249, 1253, 1254, 1258, 1262, 1263, 1268, 1269, 1273, 1277,
  1055. 1282, 1283, 1287, 1291, 1295, 1296, 1299, 1303, 1304, 1309,
  1056. 1313, 1314, 1318, 1319, 1324, 1327, 1328, 1331, 1335, 1339,
  1057. 1347, 1354, 1355, 1360, 1364, 1370, 1371, 1376, 1376, 1381,
  1058. 1384, 1386, 1391, 1392, 1393, 1397, 1400, 1406, 1411, 1412,
  1059. 1413, 1416, 1417, 1420, 1424, 1428, 1435, 1439, 1448, 1452,
  1060. 1461, 1465, 1472, 1477, 1478, 1481, 1482, 1486, 1490, 1493,
  1061. 1494, 1497, 1498, 1501, 1502, 1503, 1506, 1511, 1517, 1518,
  1062. 1519, 1520, 1523, 1524, 1528, 1533, 1534, 1537, 1541, 1542,
  1063. 1546, 1547, 1551, 1554, 1555, 1558, 1559, 1563, 1564, 1567,
  1064. 1578, 1595, 1596, 1597, 1601, 1602, 1603, 1604, 1611, 1618,
  1065. 1621, 1625, 1632, 1634, 1636, 1638, 1640, 1644, 1645, 1652,
  1066. 1652, 1663, 1666, 1667, 1668, 1669, 1670, 1679, 1682, 1685,
  1067. 1688, 1690, 1694, 1698, 1699, 1700, 1705, 1718, 1719, 1722,
  1068. 1723, 1728, 1727, 1734, 1735, 1740, 1739, 1747, 1748, 1749,
  1069. 1750, 1751, 1752, 1753, 1754, 1761, 1762, 1763, 1764, 1765,
  1070. 1770, 1769, 1776, 1777, 1778, 1779, 1780, 1784, 1785, 1788,
  1071. 1792, 1793, 1794, 1801, 1802, 1803, 1804, 1805, 1807, 1812,
  1072. 1813, 1817, 1818, 1819, 1820, 1825, 1826, 1832, 1839, 1847,
  1073. 1848, 1852, 1853, 1858, 1861, 1869, 1866, 1884, 1887, 1890,
  1074. 1891, 1895, 1900, 1901, 1905, 1908, 1910, 1916, 1917, 1921,
  1075. 1921, 1933, 1934, 1937, 1938, 1939, 1940, 1941, 1942, 1943,
  1076. 1947, 1948, 1953, 1954, 1955, 1956, 1960, 1965, 1969, 1973,
  1077. 1974, 1977, 1978, 1979, 1982, 1985, 1986, 1989, 1992, 1993,
  1078. 1997, 2003, 2004, 2009, 2010, 2009, 2020, 2017, 2030, 2034,
  1079. 2038, 2042, 2053, 2054, 2050, 2062, 2063, 2077, 2083, 2084,
  1080. 2089, 2090, 2092, 2089, 2101, 2104, 2106, 2111, 2112, 2113,
  1081. 2117, 2121, 2128, 2134, 2135, 2140, 2140, 2150, 2149, 2160,
  1082. 2161, 2172, 2173, 2174, 2177, 2181, 2189, 2196, 2197, 2211,
  1083. 2212, 2213, 2217, 2217, 2223, 2224, 2225, 2229, 2233, 2237,
  1084. 2238, 2247, 2251, 2252, 2253, 2254, 2255, 2256, 2257, 2258,
  1085. 2259, 2264, 2264, 2266, 2267, 2267, 2271, 2272, 2273, 2274,
  1086. 2275, 2278, 2281, 2285, 2295, 2296, 2297, 2298, 2302, 2307,
  1087. 2312, 2317, 2320, 2331, 2330, 2347, 2348, 2352, 2353, 2358,
  1088. 2363, 2378, 2379, 2380, 2383, 2384, 2387, 2388, 2389, 2390,
  1089. 2391, 2392, 2393, 2394, 2397, 2398, 2405, 2405, 2414, 2415,
  1090. 2419, 2420, 2423, 2424, 2425, 2426, 2427, 2430, 2434, 2437,
  1091. 2438, 2442, 2446, 2450, 2451, 2455, 2456, 2466, 2467, 2470,
  1092. 2474, 2480, 2481, 2496, 2497, 2498, 2502, 2508, 2509, 2513,
  1093. 2514, 2518, 2520, 2524, 2525, 2529, 2530, 2533, 2539, 2540,
  1094. 2557, 2562, 2563, 2567, 2573, 2574, 2591, 2595, 2596, 2597,
  1095. 2601, 2607, 2608, 2623, 2624, 2625, 2629, 2635, 2636, 2640,
  1096. 2641, 2642, 2646, 2652, 2653, 2670, 2675, 2681, 2682, 2699,
  1097. 2703, 2704, 2705, 2712, 2728, 2732, 2733, 2743, 2746, 2764,
  1098. 2765, 2774, 2778, 2782, 2803, 2804, 2805, 2806
  1099. };
  1100. #endif
  1101. #if YYDEBUG || YYERROR_VERBOSE || 0
  1102. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  1103. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  1104. static const char *const yytname[] =
  1105. {
  1106. "$end", "error", "$undefined", "ABS", "ABSORPTIVE",
  1107. "ACCURATE_3D_REACTIONS", "ACOS", "ALL_CROSSINGS", "ALL_DATA",
  1108. "ALL_ELEMENTS", "ALL_ENCLOSED", "ALL_HITS", "ALL_ITERATIONS",
  1109. "ALL_MESHES", "ALL_MOLECULES", "ALL_NOTIFICATIONS", "ALL_TIMES",
  1110. "ALL_WARNINGS", "ASCII", "ASIN", "ASPECT_RATIO", "ATAN", "BACK",
  1111. "BACK_CROSSINGS", "BACK_HITS", "BINARY", "BOTTOM", "BOX",
  1112. "BOX_TRIANGULATION_REPORT", "BRIEF", "CEIL", "CELLBLENDER",
  1113. "CENTER_MOLECULES_ON_GRID", "CHECKPOINT_INFILE", "CHECKPOINT_ITERATIONS",
  1114. "CHECKPOINT_OUTFILE", "CHECKPOINT_REALTIME", "CHECKPOINT_REPORT",
  1115. "CLAMP_CONCENTRATION", "CLOSE_PARTITION_SPACING",
  1116. "COMPLEX_PLACEMENT_ATTEMPTS", "COMPLEX_PLACEMENT_FAILURE",
  1117. "COMPLEX_PLACEMENT_FAILURE_THRESHOLD", "COMPLEX_RATE", "CONCENTRATION",
  1118. "CORNERS", "COS", "COUNT", "CUBIC", "CUBIC_RELEASE_SITE",
  1119. "CUSTOM_SPACE_STEP", "CUSTOM_TIME_STEP", "DEFAULT",
  1120. "DEFINE_COMPLEX_MOLECULE", "DEFINE_MOLECULE", "DEFINE_MOLECULES",
  1121. "DEFINE_REACTIONS", "DEFINE_RELEASE_PATTERN", "DEFINE_SURFACE_CLASS",
  1122. "DEFINE_SURFACE_CLASSES", "DEFINE_SURFACE_REGIONS",
  1123. "DEGENERATE_POLYGONS", "DELAY", "DENSITY", "DIFFUSION_CONSTANT_2D",
  1124. "DIFFUSION_CONSTANT_3D", "DIFFUSION_CONSTANT_REPORT", "DREAMM_V3",
  1125. "DREAMM_V3_GROUPED", "EFFECTOR_GRID_DENSITY", "ELEMENT_CONNECTIONS",
  1126. "ELLIPTIC", "ELLIPTIC_RELEASE_SITE", "EQUAL", "ERROR",
  1127. "ESTIMATE_CONCENTRATION", "EXCLUDE_ELEMENTS", "EXCLUDE_PATCH",
  1128. "EXCLUDE_REGION", "EXIT", "EXP", "EXPRESSION", "FALSE", "FCLOSE",
  1129. "FILENAME", "FILENAME_PREFIX", "FILE_OUTPUT_REPORT", "FINAL_SUMMARY",
  1130. "FLOOR", "FOPEN", "FORMAT", "FPRINTF", "FPRINT_TIME", "FRONT",
  1131. "FRONT_CROSSINGS", "FRONT_HITS", "GAUSSIAN_RELEASE_NUMBER", "GEOMETRY",
  1132. "HEADER", "HIGH_PROBABILITY_THRESHOLD", "HIGH_REACTION_PROBABILITY",
  1133. "IGNORED", "INCLUDE_ELEMENTS", "INCLUDE_FILE", "INCLUDE_PATCH",
  1134. "INCLUDE_REGION", "INPUT_FILE", "INSTANTIATE", "LLINTEGER",
  1135. "FULLY_RANDOM", "INTERACTION_RADIUS", "ITERATION_LIST",
  1136. "ITERATION_NUMBERS", "ITERATION_REPORT", "ITERATIONS",
  1137. "KEEP_CHECKPOINT_FILES", "LEFT", "LIFETIME_THRESHOLD",
  1138. "LIFETIME_TOO_SHORT", "LIST", "LOCATION", "LOG", "LOG10", "MAX_TOK",
  1139. "MAXIMUM_STEP_LENGTH", "MEAN_DIAMETER", "MEAN_NUMBER",
  1140. "MEMORY_PARTITION_X", "MEMORY_PARTITION_Y", "MEMORY_PARTITION_Z",
  1141. "MEMORY_PARTITION_POOL", "MESHES", "MICROSCOPIC_REVERSIBILITY",
  1142. "MIN_TOK", "MISSED_REACTIONS", "MISSED_REACTION_THRESHOLD",
  1143. "MISSING_SURFACE_ORIENTATION", "MOD", "MODE", "MODIFY_SURFACE_REGIONS",
  1144. "MOLECULE", "MOLECULE_COLLISION_REPORT", "MOLECULE_DENSITY",
  1145. "MOLECULE_NUMBER", "MOLECULE_POSITIONS", "MOLECULES",
  1146. "MOLECULE_PLACEMENT_FAILURE", "NAME_LIST", "NEGATIVE_DIFFUSION_CONSTANT",
  1147. "NEGATIVE_REACTION_RATE", "NO", "NOEXIT", "NONE", "NO_SPECIES",
  1148. "NOT_EQUAL", "NOTIFICATIONS", "NUMBER_OF_SUBUNITS", "NUMBER_OF_TRAINS",
  1149. "NUMBER_TO_RELEASE", "OBJECT", "OFF", "ON", "ORIENTATIONS",
  1150. "OUTPUT_BUFFER_SIZE", "INVALID_OUTPUT_STEP_TIME",
  1151. "OVERWRITTEN_OUTPUT_FILE", "PARTITION_LOCATION_REPORT", "PARTITION_X",
  1152. "PARTITION_Y", "PARTITION_Z", "PI_TOK", "POLYGON_LIST", "POSITIONS",
  1153. "PRINTF", "PRINT_TIME", "PROBABILITY_REPORT",
  1154. "PROBABILITY_REPORT_THRESHOLD", "PROGRESS_REPORT", "RADIAL_DIRECTIONS",
  1155. "RADIAL_SUBDIVISIONS", "RAND_GAUSSIAN", "RAND_UNIFORM", "RATE_RULES",
  1156. "REACTION_DATA_OUTPUT", "REACTION_OUTPUT_REPORT", "REACTION_GROUP",
  1157. "REAL", "RECTANGULAR_RELEASE_SITE", "RECTANGULAR_TOKEN", "REFLECTIVE",
  1158. "REGION_DATA", "RELEASE_EVENT_REPORT", "RELEASE_INTERVAL",
  1159. "RELEASE_PATTERN", "RELEASE_PROBABILITY", "RELEASE_SITE",
  1160. "REMOVE_ELEMENTS", "RIGHT", "ROTATE", "ROUND_OFF", "SCALE", "SEED",
  1161. "SHAPE", "SHOW_EXACT_TIME", "SIN", "SITE_DIAMETER", "SITE_RADIUS",
  1162. "SPACE_STEP", "SPHERICAL", "SPHERICAL_RELEASE_SITE", "SPHERICAL_SHELL",
  1163. "SPHERICAL_SHELL_SITE", "SPRINTF", "SQRT", "STANDARD_DEVIATION", "STEP",
  1164. "STRING_TO_NUM", "STR_VALUE", "SUBUNIT", "SUBUNIT_RELATIONSHIPS",
  1165. "SUMMATION_OPERATOR", "SURFACE_CLASS", "SURFACE_ONLY", "TAN",
  1166. "TARGET_ONLY", "TET_ELEMENT_CONNECTIONS", "THROUGHPUT_REPORT",
  1167. "TIME_LIST", "TIME_POINTS", "TIME_STEP", "TIME_STEP_MAX", "TO", "TOP",
  1168. "TRAIN_DURATION", "TRAIN_INTERVAL", "TRANSLATE", "TRANSPARENT",
  1169. "TRIGGER", "TRUE", "UNLIMITED", "USELESS_VOLUME_ORIENTATION",
  1170. "VACANCY_SEARCH_DISTANCE", "VAR", "VARYING_PROBABILITY_REPORT",
  1171. "VERTEX_LIST", "VIZ_MESH_FORMAT", "VIZ_MOLECULE_FORMAT", "VIZ_OUTPUT",
  1172. "VIZ_OUTPUT_REPORT", "VIZ_VALUE", "VOLUME_DATA_OUTPUT",
  1173. "VOLUME_OUTPUT_REPORT", "VOLUME_DEPENDENT_RELEASE_NUMBER", "VOLUME_ONLY",
  1174. "VOXEL_COUNT", "VOXEL_LIST", "VOXEL_SIZE", "WARNING", "WARNINGS",
  1175. "WORLD", "YES", "'='", "'&'", "':'", "'+'", "'-'", "'*'", "'/'", "'^'",
  1176. "UNARYMINUS", "'['", "']'", "';'", "'\\''", "','", "'{'", "'}'", "'('",
  1177. "')'", "'>'", "'<'", "'@'", "$accept", "mdl_format", "mdl_stmt_list",
  1178. "mdl_stmt", "str_value", "var", "file_name", "existing_object",
  1179. "mesh_object_or_wildcard", "existing_region", "point", "point_or_num",
  1180. "boolean", "orientation_class", "list_orient_marks", "head_mark",
  1181. "tail_mark", "orient_class_number", "list_range_specs", "range_spec",
  1182. "include_stmt", "assignment_stmt", "assign_var", "existing_var_only",
  1183. "array_value", "array_expr_only", "existing_array", "num_expr",
  1184. "num_value", "intOrReal", "num_expr_only", "existing_num_var",
  1185. "arith_expr", "str_expr", "str_expr_only", "existing_str_var", "io_stmt",
  1186. "fopen_stmt", "new_file_stream", "file_mode", "fclose_stmt",
  1187. "existing_file_stream", "format_string", "list_args", "list_arg",
  1188. "printf_stmt", "fprintf_stmt", "sprintf_stmt", "print_time_stmt",
  1189. "fprint_time_stmt", "notification_def", "notification_list",
  1190. "notification_item_def", "notify_bilevel", "notify_level",
  1191. "warnings_def", "warning_list", "warning_item_def", "warning_level",
  1192. "chkpt_stmt", "exit_or_no", "time_expr", "parameter_def",
  1193. "memory_partition_def", "partition_def", "partition_dimension",
  1194. "molecules_def", "define_one_molecule", "define_multiple_molecules",
  1195. "list_molecule_stmts", "molecule_stmt", "molecule_name", "new_molecule",
  1196. "diffusion_def", "mol_timestep_def", "target_def",
  1197. "maximum_step_length_def", "define_complex_molecule", "$@1", "$@2",
  1198. "$@3", "complex_mol_name", "complex_mol_topology",
  1199. "complex_mol_subunits", "complex_mol_subunit_assignment",
  1200. "complex_mol_subunit_spec", "complex_mol_subunit_component",
  1201. "complex_mol_geometry", "complex_mol_subunit_locations", "subunit_coord",
  1202. "complex_mol_subunit_location", "complex_mol_relationships",
  1203. "complex_mol_relationship_list", "complex_mol_relationship",
  1204. "complex_mol_rates", "complex_mol_rate_list", "complex_mol_rate",
  1205. "complex_mol_rate_rules", "complex_mol_rate_rule",
  1206. "complex_mol_rate_clauses", "complex_mol_rate_clause_list",
  1207. "complex_mol_rate_clause", "equal_or_not", "existing_molecule",
  1208. "existing_surface_molecule", "existing_molecule_opt_orient",
  1209. "existing_macromolecule", "surface_classes_def",
  1210. "define_one_surface_class", "define_multiple_surface_classes",
  1211. "list_surface_class_stmts", "surface_class_stmt", "$@4",
  1212. "existing_surface_class", "list_surface_prop_stmts", "surface_prop_stmt",
  1213. "surface_rxn_stmt", "surface_rxn_type", "equals_or_to",
  1214. "surface_class_mol_stmt", "surface_mol_stmt", "list_surface_mol_density",
  1215. "list_surface_mol_num", "surface_mol_quant",
  1216. "surface_class_viz_value_stmt", "rx_net_def", "list_rx_stmts", "rx_stmt",
  1217. "rx_group_def", "reaction_group_name", "list_rxns", "list_dashes",
  1218. "right_arrow", "left_arrow", "double_arrow", "right_cat_arrow",
  1219. "double_cat_arrow", "reaction_arrow", "new_rxn_pathname", "rxn",
  1220. "reactant_list", "reactant", "existing_molecule_or_subunit",
  1221. "opt_reactant_surface_class", "reactant_surface_class", "product_list",
  1222. "product", "rx_rate_syntax", "rx_rate1", "rx_rate2", "rx_dir_rate",
  1223. "atomic_rate", "release_pattern_def", "new_release_pattern",
  1224. "existing_release_pattern_xor_rxpn", "list_req_release_pattern_cmds",
  1225. "train_count", "instance_def", "$@5", "physical_object_def",
  1226. "object_def", "new_object", "start_object", "end_object",
  1227. "list_opt_object_cmds", "opt_object_cmd", "transformation",
  1228. "meta_object_def", "list_objects", "object_ref", "existing_object_ref",
  1229. "$@6", "release_site_def", "release_site_def_new", "$@7",
  1230. "release_site_geom", "release_region_expr", "release_site_def_old",
  1231. "$@8", "release_site_geom_old", "list_release_site_cmds",
  1232. "existing_num_or_array", "release_site_cmd", "site_size_cmd",
  1233. "release_number_cmd", "constant_release_number_cmd",
  1234. "gaussian_release_number_cmd", "volume_dependent_number_cmd",
  1235. "concentration_dependent_release_cmd", "molecule_release_pos_list",
  1236. "molecule_release_pos", "new_object_name", "polygon_list_def", "@9",
  1237. "vertex_list_cmd", "single_vertex", "list_points",
  1238. "element_connection_cmd", "list_element_connections",
  1239. "element_connection", "list_opt_polygon_object_cmds",
  1240. "opt_polygon_object_cmd", "remove_side", "$@10",
  1241. "remove_element_specifier_list", "side_name", "element_specifier_list",
  1242. "element_specifier", "incl_element_list_stmt", "excl_element_list_stmt",
  1243. "just_an_element_list", "list_element_specs", "element_spec",
  1244. "prev_region_stmt", "prev_region_type", "patch_statement", "patch_type",
  1245. "in_obj_define_surface_regions", "list_in_obj_surface_region_defs",
  1246. "in_obj_surface_region_def", "$@11", "$@12", "voxel_list_def", "$@13",
  1247. "tet_element_connection_cmd", "element_connection_tet",
  1248. "list_tet_arrays", "box_def", "$@14", "$@15", "opt_aspect_ratio_def",
  1249. "existing_obj_define_surface_regions",
  1250. "list_existing_obj_surface_region_defs",
  1251. "existing_obj_surface_region_def", "$@16", "$@17", "$@18", "new_region",
  1252. "list_opt_surface_region_stmts", "opt_surface_region_stmt",
  1253. "set_surface_class_stmt", "surface_region_viz_value_stmt",
  1254. "mod_surface_regions", "list_existing_surface_region_refs",
  1255. "existing_surface_region_ref", "$@19", "output_def", "$@20",
  1256. "output_buffer_size_def", "output_timer_def", "step_time_def",
  1257. "iteration_time_def", "real_time_def", "list_count_cmds", "count_cmd",
  1258. "count_stmt", "$@21", "custom_header_value", "custom_header",
  1259. "exact_time_toggle", "list_count_exprs", "single_count_expr",
  1260. "count_expr", "count_value", "$@22", "$@23", "file_arrow",
  1261. "outfile_syntax", "existing_rxpn_or_molecule",
  1262. "existing_molecule_required_orient_braces", "count_syntax",
  1263. "count_syntax_1", "count_syntax_2", "count_syntax_3",
  1264. "count_syntax_macromol", "subunit_molecule",
  1265. "count_syntax_macromol_subunit", "$@24", "opt_macromol_relation_states",
  1266. "macromol_relation_state_list", "macromol_relation_state",
  1267. "macromol_relation_name", "count_location_specifier", "opt_hit_spec",
  1268. "hit_spec", "opt_custom_header", "viz_output_def", "$@25",
  1269. "list_viz_output_cmds", "viz_output_maybe_mode_cmd", "viz_mode_def",
  1270. "viz_mesh_format_maybe_cmd", "viz_mesh_format_def",
  1271. "viz_molecule_format_maybe_cmd", "viz_molecule_format_def",
  1272. "viz_output_cmd", "viz_frames_def", "viz_filename_prefix_def",
  1273. "viz_molecules_block_def", "list_viz_molecules_block_cmds",
  1274. "viz_molecules_block_cmd", "viz_molecules_name_list_cmd",
  1275. "optional_state", "viz_include_mols_cmd_list", "viz_include_mols_cmd",
  1276. "existing_one_or_multiple_molecules", "viz_time_spec",
  1277. "viz_molecules_time_points_def", "viz_molecules_time_points_cmds",
  1278. "viz_molecules_time_points_one_cmd", "viz_iteration_spec",
  1279. "viz_molecules_iteration_numbers_def",
  1280. "viz_molecules_iteration_numbers_cmds",
  1281. "viz_molecules_iteration_numbers_one_cmd", "viz_molecules_one_item",
  1282. "viz_meshes_block_def", "list_viz_meshes_block_cmds",
  1283. "viz_meshes_block_cmd", "viz_meshes_name_list_cmd",
  1284. "viz_include_meshes_cmd_list", "viz_include_meshes_cmd",
  1285. "viz_meshes_time_points_def", "viz_meshes_time_points_cmds",
  1286. "viz_meshes_time_points_one_cmd", "viz_meshes_iteration_numbers_def",
  1287. "viz_meshes_iteration_numbers_cmds",
  1288. "viz_meshes_iteration_numbers_one_cmd", "viz_meshes_one_item",
  1289. "volume_output_def", "volume_output_filename_prefix",
  1290. "volume_output_molecule_list", "volume_output_molecule_decl",
  1291. "volume_output_molecule", "volume_output_molecules",
  1292. "volume_output_location", "volume_output_voxel_size",
  1293. "volume_output_voxel_count", "volume_output_times_def", YY_NULLPTR
  1294. };
  1295. #endif
  1296. # ifdef YYPRINT
  1297. /* YYTOKNUM[NUM] -- (External) token number corresponding to the
  1298. (internal) symbol number NUM (which must be that of a token). */
  1299. static const yytype_uint16 yytoknum[] =
  1300. {
  1301. 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  1302. 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  1303. 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
  1304. 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
  1305. 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
  1306. 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
  1307. 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
  1308. 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
  1309. 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
  1310. 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
  1311. 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
  1312. 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
  1313. 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
  1314. 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
  1315. 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
  1316. 405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
  1317. 415, 416, 417, 418, 419, 420, 421, 422, 423, 424,
  1318. 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
  1319. 435, 436, 437, 438, 439, 440, 441, 442, 443, 444,
  1320. 445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
  1321. 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
  1322. 465, 466, 467, 468, 469, 470, 471, 472, 473, 474,
  1323. 475, 476, 477, 478, 479, 480, 481, 482, 483, 484,
  1324. 485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
  1325. 495, 496, 497, 498, 499, 500, 501, 502, 503, 504,
  1326. 505, 506, 507, 508, 509, 510, 511, 512, 513, 514,
  1327. 515, 61, 38, 58, 43, 45, 42, 47, 94, 516,
  1328. 91, 93, 59, 39, 44, 123, 125, 40, 41, 62,
  1329. 60, 64
  1330. };
  1331. # endif
  1332. #define YYPACT_NINF -1157
  1333. #define yypact_value_is_default(Yystate) \
  1334. (!!((Yystate) == (-1157)))
  1335. #define YYTABLE_NINF -445
  1336. #define yytable_value_is_error(Yytable_value) \
  1337. 0
  1338. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  1339. STATE-NUM. */
  1340. static const yytype_int16 yypact[] =
  1341. {
  1342. 2603, -165, -153, -75, -33, 45, 55, 114, 34, 34,
  1343. 13, 78, 34, 34, 119, 128, 161, 184, 199, 258,
  1344. 238, -1157, 284, 292, 304, 306, 318, 343, 351, 383,
  1345. 275, 282, -1157, -1157, -1157, 341, 373, 391, 403, 392,
  1346. 413, 398, 416, 418, 419, -1157, 408, 411, 412, 692,
  1347. 2603, -1157, -46, -1157, -1157, 433, -1157, -1157, 606, -1157,
  1348. -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1349. -1157, 436, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1350. -1157, -1157, -1157, -1157, 124, -1157, -1157, -1157, -1157, 527,
  1351. -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157, 350, 350,
  1352. -37, 2403, -37, 2403, 2403, -1157, -1157, -1157, -1157, 438,
  1353. 34, 232, -1157, 445, -1157, 446, -1157, 34, 34, 2403,
  1354. 34, 34, 34, -37, 34, 2403, 2403, 350, 2403, 2403,
  1355. 2403, 2403, 588, 34, 400, -37, -37, 2078, 2403, 545,
  1356. 2403, 34, 2403, 2403, 2403, -1157, 625, 1366, -1157, -1157,
  1357. 1769, 437, -158, 447, -1157, -1157, 447, -1157, 447, -1157,
  1358. -1157, 447, 447, 447, -1157, -1157, -1157, -1157, -1157, -1157,
  1359. -1157, -1157, 448, -1157, -1157, -1157, -1157, -1157, 461, -1157,
  1360. -1157, 451, 453, 456, 458, 459, 462, 464, 465, -1157,
  1361. 470, 474, 478, 479, 481, -1157, -1157, -1157, -1157, 482,
  1362. -1157, 483, 486, 487, 488, 2403, 2403, 2403, -1157, 186,
  1363. -1157, -1157, -1157, -1157, -1157, 1294, -6, 672, 477, 23,
  1364. -128, -1157, 34, 34, -1157, 334, -1157, 193, -1157, -1157,
  1365. -1157, -183, -1157, -1157, -1157, -1157, 62, -1157, -1157, -1157,
  1366. 84, -1157, 672, -1157, 492, 498, 506, 461, -1157, 607,
  1367. -1157, 672, 672, -1157, 672, 672, 672, 672, -1157, -1157,
  1368. -1157, 514, 511, 92, -1157, 526, 530, 531, 533, 539,
  1369. 541, 542, 546, 547, 552, 553, 554, 558, 559, 562,
  1370. 563, 564, 571, 709, -1157, 461, -1157, 528, -1157, 672,
  1371. 672, 590, -1157, 672, -1157, 556, 672, 672, 672, 701,
  1372. 605, 725, 610, 611, 626, 629, 631, 633, 635, 636,
  1373. 638, 646, 648, 653, 655, 656, 658, 660, 663, 665,
  1374. 1065, -1157, 2177, 578, -1157, -1157, 672, 819, -1157, 1008,
  1375. 461, 668, -37, -1157, -1157, -1157, -1157, -1157, 853, 34,
  1376. -1157, 688, -1157, 688, -37, -37, 2403, 2403, 2403, 2403,
  1377. 2403, 2403, 2403, 2403, 2403, 2403, 2403, 2403, 2403, 2403,
  1378. 2403, 2403, -37, 2403, -1157, -1157, 700, -1157, -1157, 2403,
  1379. 2403, 2403, 2403, 2403, -1157, 2403, -1157, 777, 673, 681,
  1380. 475, -1157, -1157, -1157, 669, 676, -1157, -1157, -1157, 2403,
  1381. -1157, 326, -1157, -1157, -1157, -1157, -1157, -147, 34, -101,
  1382. -31, -1157, -1157, -1157, 689, -1157, -1157, -1157, -37, -37,
  1383. 34, -1157, -1157, -1157, 350, 350, 350, 17, 350, 350,
  1384. 1624, 350, 350, 350, 2403, 350, 17, 350, 350, 350,
  1385. 17, 17, -1157, -1157, -119, -1157, 2403, -39, -37, 697,
  1386. 717, -1157, -37, 708, 374, -1157, -41, -41, -41, 2403,
  1387. -41, 2403, -41, 2403, -41, -41, 2403, -41, -41, -41,
  1388. -41, -41, -41, -41, -1157, -1157, 2403, 233, -1157, 672,
  1389. 696, 710, 801, -1157, 452, 34, -1157, -1157, 778, 707,
  1390. 773, 538, 930, -1157, -1157, 729, 774, 812, 878, 893,
  1391. 902, 924, 929, 954, 970, 781, 1104, 1252, 1268, 993,
  1392. 1043, -18, 1048, -1157, 363, 363, 731, 731, -1157, 1312,
  1393. 740, -1157, 2403, 2403, 742, 743, 786, -147, -1157, 886,
  1394. -1157, -1157, -1157, -1157, 334, -1157, -1157, 752, -136, -1157,
  1395. 63, -1157, -1157, -1157, -70, 762, 763, 764, 765, 767,
  1396. -1157, 20, 34, -1157, 751, 759, -1157, -1157, -1157, -1157,
  1397. -1157, -1157, -1157, -1157, -1157, -1157, 672, -1157, -1157, -1157,
  1398. -1157, 672, -1157, -1157, -1157, -1157, -1157, -1157, -1157, 2039,
  1399. -1157, 672, 770, 772, 775, -34, -1157, -1157, -1157, -1157,
  1400. 395, 776, 797, -1157, 461, 34, 793, -1157, 802, -1157,
  1401. -1157, -1157, -1157, -1157, -1157, 672, -1157, 672, -1157, 672,
  1402. -1157, -1157, 672, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1403. 637, -1157, 2177, -37, -158, 183, -91, -1157, 803, 538,
  1404. -158, 790, -1157, 806, 809, 814, 811, 820, 816, 831,
  1405. 838, 839, -1157, -1157, 827, 538, -1157, 844, -1157, -1157,
  1406. -1157, -1157, -1157, 833, -1157, 203, -1157, -1157, -1157, -1157,
  1407. -1157, -1157, -1157, -1157, -1157, -1157, 2403, 2403, 2403, 2403,
  1408. -1157, -1157, -1157, -1157, 2403, -158, 891, 672, 672, 2403,
  1409. 2403, -1157, 987, -137, -1157, -1157, -1157, 848, -1157, -1157,
  1410. 752, -1157, 752, -1157, -1157, 276, -1157, 2403, 2265, 2403,
  1411. 2403, 2403, -1157, 34, 841, 843, -1157, -1157, 858, -1157,
  1412. -1157, -1157, -134, -1157, -1157, -1157, -1157, 850, 259, -1157,
  1413. -1157, 222, -1157, -1157, 668, -1157, -158, 2403, -158, 862,
  1414. 863, -1157, 15, -1157, -1157, -1157, -1157, 290, -1157, -1157,
  1415. -1157, -1157, -1157, 439, 864, 289, -1157, -1157, -1157, 865,
  1416. -158, 866, 874, 2403, -1157, 461, 854, 857, -1157, 447,
  1417. 872, 873, 894, -1157, -1157, -1157, -1157, 328, 538, -1157,
  1418. -1157, 73, -158, -1157, 2403, 2403, 1013, -158, 34, 34,
  1419. 2403, 34, 2403, 1022, -91, -1157, 2364, -158, -1157, -1157,
  1420. 1145, 1153, 1171, 1189, 1373, -1157, 903, 129, -1157, 672,
  1421. 672, 911, 887, -1157, -1157, 253, -1157, -1157, -70, 279,
  1422. 913, -1157, -1157, 672, -1157, 672, -1157, 672, 672, 672,
  1423. 916, 34, 34, 2403, -1157, -1157, 33, -1157, -1157, 917,
  1424. 918, -1157, -1157, -1157, -1157, -1157, -1157, 672, -1157, 703,
  1425. 350, 154, -1157, -1157, -1157, -1157, -1157, 490, 920, 899,
  1426. 909, -30, -1157, -1157, -1157, -1157, -1157, 34, -1157, 2364,
  1427. 925, 103, 357, -1157, -158, -1157, -158, 2364, -158, -1157,
  1428. -1157, -1157, -1157, -1157, -1157, 79, 514, -1157, 440, -91,
  1429. -1157, -1157, -1157, -1157, 87, -91, 672, 672, 926, -1157,
  1430. -1157, -158, 94, -1157, 672, -1157, -1157, 672, 937, -1157,
  1431. 1343, -1157, -1157, -1157, -1157, 151, -1157, -1, -1157, -1157,
  1432. -1157, -1157, 2403, 2403, 928, -1157, 985, 2403, -1157, -1157,
  1433. 34, 1824, 1824, -1157, -1157, 668, 281, -1157, 34, -1157,
  1434. 2403, 334, 944, 206, -1157, 230, -1157, 672, 334, -1157,
  1435. 933, 34, 2403, -1157, -1157, 461, -1157, -1157, -1157, 936,
  1436. 932, -1157, 154, 154, -1157, 72, -1157, 1350, -1157, -1157,
  1437. -1157, -37, 239, 277, -1157, -1157, -1157, 1343, -1157, -1157,
  1438. -1157, 2364, 949, 951, 955, 939, 2403, 1197, -1157, 965,
  1439. -1157, -1157, 296, 79, 79, 79, -1157, -1157, -1157, -1157,
  1440. 2403, -1157, -1157, -1157, 2403, -1157, -1157, 950, 953, 51,
  1441. -1157, -1157, -1157, 672, 1392, 312, -1157, 1023, 967, -1157,
  1442. 672, -1157, 34, -1157, -1157, -1157, 279, -1157, 672, -1157,
  1443. 2403, -1157, -1157, -1157, -1157, -1157, 851, -1157, 672, 974,
  1444. 2403, 154, 975, -1157, 390, 154, -175, -37, 154, 154,
  1445. 154, 154, -1157, 461, 972, 976, 977, -57, -1157, -1157,
  1446. -1157, -1157, 979, 981, 988, -44, -1157, -1157, -1157, -1157,
  1447. -1157, -158, 2403, -158, -1157, 1257, 1001, -1157, -91, 2403,
  1448. -1157, 983, 983, -1157, 435, 569, 34, -1157, -1157, 2403,
  1449. 1003, 2403, 997, -157, -1157, -1157, 1058, -1157, 998, 672,
  1450. 1007, -1157, -1157, 1032, -1157, -1157, 851, -1157, -1157, -1157,
  1451. -1157, 1034, -1157, 1035, 272, 1281, 613, 272, -1157, -1157,
  1452. 1018, 1020, 1039, -37, 461, 174, 174, -1157, -1157, 49,
  1453. -1157, 49, -1157, -1157, 85, -1157, 85, -1157, -1157, -1157,
  1454. 672, -1157, -1157, 2403, -1157, -1157, 672, 1061, -1157, 1062,
  1455. 246, -1157, 1044, 1370, 672, 34, -1157, 2403, -1157, -1157,
  1456. 251, 1049, 1057, -1157, 1055, 1064, -1157, -1157, 34, -158,
  1457. 1060, 1066, 1068, 1070, 1071, 1067, -1157, -1157, -1157, -1157,
  1458. -1157, -1157, -1157, 1076, -1157, -1157, 1069, -1157, -1157, -1157,
  1459. -1157, -1157, -3, -1157, 1072, 25, 41, -1157, 1073, -1157,
  1460. -1157, -1157, 21, -1157, 1075, 16, 27, -1157, 1077, 672,
  1461. -1, 2403, 2403, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1462. -1157, -1157, -1157, 682, 1074, -1157, 851, -1157, 1083, -1157,
  1463. -1157, 672, 316, -1157, 1088, -1157, -1157, -1157, 191, 191,
  1464. 263, -1157, 1086, 34, -85, -1157, -85, -85, -1157, -1157,
  1465. -1157, -1157, -1157, 32, 1102, -1157, -1157, 514, 1102, 1102,
  1466. -1157, -1157, -1157, 10, -1157, -1157, 32, 1102, -1157, -1157,
  1467. -1157, -1157, 1102, -1157, -1157, 10, -1157, 1063, 116, 851,
  1468. 2403, -1157, 191, 1103, 2403, -158, 255, 321, 345, -1157,
  1469. -158, -1157, -1157, 514, -1157, 1091, 1091, 1091, -1157, -1157,
  1470. -1157, 2403, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1471. -1157, -1157, -91, -1157, 1105, 851, 672, -1157, -158, 672,
  1472. -1157, -1157, 1099, -1157, -1157, -1157, -1157, 334, 794, -1157,
  1473. -1157, -1157, 672, -1157, 2403, -1157, -1157, -4, 1112, -1157,
  1474. -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157, 1230, 302,
  1475. -1157, 12, 11, -1157, 1114, 1119, -1157, 34, -1157, -1157,
  1476. -1157, -1157, 34, -1157, -1157, 2403, 34, -1157, 1115, -1157,
  1477. 672, -1157, 34, 1110, -1157, -12, -1157, 12, 1116, 34,
  1478. -1157, 34, -85, -1157, -1157, -1157
  1479. };
  1480. /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
  1481. Performed when YYTABLE does not specify something else to do. Zero
  1482. means the default is an error. */
  1483. static const yytype_uint16 yydefact[] =
  1484. {
  1485. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1486. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1487. 0, 369, 0, 0, 0, 0, 0, 0, 0, 0,
  1488. 0, 0, 218, 219, 220, 0, 0, 0, 0, 0,
  1489. 0, 0, 0, 0, 0, 26, 0, 0, 0, 0,
  1490. 2, 3, 377, 5, 6, 0, 7, 113, 0, 114,
  1491. 115, 116, 117, 118, 119, 8, 9, 10, 11, 13,
  1492. 12, 0, 14, 221, 222, 223, 15, 281, 282, 16,
  1493. 17, 19, 18, 371, 0, 372, 373, 394, 393, 0,
  1494. 375, 376, 374, 20, 21, 22, 23, 24, 0, 0,
  1495. 0, 0, 0, 0, 0, 244, 240, 229, 224, 0,
  1496. 0, 0, 359, 0, 230, 0, 283, 0, 0, 0,
  1497. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1498. 0, 0, 0, 0, 0, 0, 0, 0, 0, 529,
  1499. 0, 0, 0, 0, 0, 606, 0, 0, 1, 4,
  1500. 0, 0, 0, 0, 413, 414, 0, 415, 0, 412,
  1501. 416, 0, 0, 0, 36, 38, 40, 39, 35, 37,
  1502. 202, 201, 0, 109, 25, 108, 112, 185, 27, 106,
  1503. 107, 0, 0, 0, 0, 0, 0, 0, 0, 71,
  1504. 0, 0, 0, 0, 0, 94, 96, 95, 72, 0,
  1505. 97, 0, 0, 0, 0, 0, 0, 0, 75, 190,
  1506. 67, 69, 70, 68, 186, 193, 190, 212, 0, 0,
  1507. 0, 226, 0, 0, 277, 41, 338, 0, 313, 315,
  1508. 316, 340, 335, 337, 361, 287, 0, 285, 28, 510,
  1509. 0, 508, 207, 124, 0, 0, 0, 56, 377, 0,
  1510. 370, 208, 200, 188, 213, 214, 215, 216, 210, 211,
  1511. 209, 0, 0, 0, 523, 0, 0, 0, 0, 0,
  1512. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1513. 0, 0, 0, 0, 137, 125, 126, 0, 205, 204,
  1514. 206, 0, 527, 198, 61, 0, 197, 199, 203, 610,
  1515. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1516. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1517. 0, 162, 0, 62, 59, 60, 0, 73, 57, 74,
  1518. 0, 58, 0, 66, 217, 63, 64, 378, 0, 0,
  1519. 395, 0, 410, 0, 0, 0, 0, 0, 0, 0,
  1520. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1521. 0, 0, 0, 0, 105, 104, 0, 192, 191, 0,
  1522. 0, 0, 0, 0, 187, 0, 189, 0, 0, 0,
  1523. 233, 225, 227, 318, 0, 0, 44, 49, 50, 0,
  1524. 279, 42, 45, 46, 43, 312, 314, 0, 0, 0,
  1525. 0, 290, 284, 286, 0, 507, 509, 123, 0, 0,
  1526. 0, 525, 522, 524, 0, 0, 0, 0, 0, 0,
  1527. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1528. 0, 0, 136, 138, 0, 134, 0, 0, 0, 0,
  1529. 617, 611, 0, 0, 0, 685, 0, 0, 0, 0,
  1530. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1531. 0, 0, 0, 0, 161, 163, 0, 0, 52, 54,
  1532. 0, 0, 377, 390, 0, 380, 387, 389, 0, 0,
  1533. 0, 0, 0, 126, 110, 0, 0, 0, 0, 0,
  1534. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1535. 0, 0, 0, 76, 99, 100, 101, 102, 103, 194,
  1536. 0, 241, 0, 0, 0, 0, 236, 0, 339, 0,
  1537. 47, 48, 336, 289, 41, 341, 321, 0, 0, 328,
  1538. 0, 330, 329, 331, 0, 0, 0, 0, 0, 0,
  1539. 358, 0, 0, 126, 0, 0, 515, 158, 139, 146,
  1540. 154, 160, 159, 141, 148, 149, 156, 155, 157, 145,
  1541. 142, 144, 140, 151, 147, 150, 143, 153, 152, 0,
  1542. 131, 530, 0, 0, 0, 0, 531, 532, 533, 126,
  1543. 0, 0, 621, 618, 684, 0, 0, 686, 0, 184,
  1544. 182, 183, 164, 169, 178, 179, 170, 168, 167, 173,
  1545. 172, 174, 175, 176, 180, 165, 166, 181, 171, 177,
  1546. 0, 65, 0, 0, 0, 0, 0, 388, 0, 0,
  1547. 0, 0, 496, 0, 0, 0, 0, 0, 0, 0,
  1548. 0, 0, 429, 430, 0, 380, 417, 0, 422, 431,
  1549. 432, 433, 434, 0, 445, 0, 92, 89, 88, 90,
  1550. 84, 86, 77, 83, 78, 79, 0, 0, 0, 0,
  1551. 85, 91, 98, 87, 0, 0, 0, 232, 231, 0,
  1552. 0, 237, 238, 0, 319, 51, 342, 324, 322, 323,
  1553. 0, 325, 0, 345, 346, 0, 343, 0, 0, 0,
  1554. 0, 0, 300, 0, 0, 0, 298, 299, 0, 288,
  1555. 291, 292, 0, 293, 303, 294, 514, 0, 0, 135,
  1556. 31, 0, 130, 128, 129, 127, 0, 0, 0, 0,
  1557. 0, 542, 0, 537, 539, 540, 541, 0, 615, 616,
  1558. 613, 614, 612, 0, 0, 0, 622, 688, 689, 687,
  1559. 0, 0, 0, 0, 53, 122, 0, 0, 32, 0,
  1560. 0, 0, 0, 379, 386, 381, 382, 0, 380, 448,
  1561. 449, 0, 0, 380, 0, 0, 0, 0, 0, 0,
  1562. 0, 0, 0, 0, 0, 418, 0, 0, 455, 111,
  1563. 0, 0, 0, 0, 195, 245, 0, 0, 246, 235,
  1564. 234, 0, 0, 317, 320, 0, 326, 327, 0, 0,
  1565. 332, 347, 348, 362, 368, 367, 366, 363, 365, 364,
  1566. 0, 0, 0, 0, 302, 301, 0, 511, 132, 0,
  1567. 0, 526, 518, 516, 517, 519, 535, 534, 536, 0,
  1568. 0, 0, 528, 538, 133, 620, 619, 0, 0, 0,
  1569. 0, 0, 608, 626, 625, 627, 628, 0, 691, 0,
  1570. 0, 694, 0, 120, 0, 391, 0, 0, 0, 400,
  1571. 401, 404, 402, 399, 403, 0, 398, 405, 397, 0,
  1572. 447, 450, 499, 500, 0, 0, 439, 440, 0, 420,
  1573. 421, 0, 0, 441, 435, 360, 427, 426, 0, 411,
  1574. 419, 424, 423, 425, 454, 0, 452, 380, 80, 81,
  1575. 93, 82, 0, 0, 0, 247, 0, 0, 228, 344,
  1576. 0, 0, 0, 356, 354, 355, 0, 351, 0, 334,
  1577. 0, 41, 0, 0, 306, 0, 308, 311, 41, 295,
  1578. 0, 0, 0, 544, 545, 546, 547, 548, 561, 0,
  1579. 0, 564, 0, 0, 552, 0, 549, 604, 553, 624,
  1580. 623, 0, 0, 0, 607, 609, 690, 66, 33, 692,
  1581. 34, 0, 0, 0, 0, 0, 0, 505, 380, 0,
  1582. 384, 383, 0, 0, 0, 0, 396, 498, 501, 497,
  1583. 0, 443, 428, 442, 0, 451, 453, 0, 0, 0,
  1584. 456, 457, 458, 196, 251, 0, 249, 0, 0, 242,
  1585. 239, 280, 0, 352, 353, 349, 0, 333, 297, 278,
  1586. 0, 304, 307, 305, 309, 296, 0, 520, 521, 0,
  1587. 0, 0, 0, 559, 0, 0, 0, 0, 0, 0,
  1588. 0, 0, 551, 629, 0, 0, 0, 0, 661, 663,
  1589. 664, 665, 0, 0, 0, 0, 631, 633, 634, 635,
  1590. 693, 0, 0, 0, 683, 0, 0, 502, 0, 0,
  1591. 406, 407, 408, 409, 0, 0, 0, 459, 446, 0,
  1592. 0, 0, 0, 0, 254, 260, 0, 357, 0, 310,
  1593. 0, 489, 486, 0, 488, 485, 512, 470, 472, 473,
  1594. 474, 0, 475, 0, 0, 0, 0, 0, 554, 550,
  1595. 0, 0, 566, 0, 605, 555, 556, 557, 558, 0,
  1596. 668, 0, 660, 662, 0, 640, 0, 630, 632, 696,
  1597. 695, 697, 55, 0, 455, 392, 385, 0, 436, 0,
  1598. 0, 491, 0, 0, 252, 0, 250, 0, 253, 255,
  1599. 0, 0, 0, 350, 0, 0, 471, 515, 0, 0,
  1600. 0, 0, 572, 0, 0, 0, 574, 575, 576, 577,
  1601. 581, 563, 560, 0, 567, 570, 568, 571, 543, 680,
  1602. 681, 682, 0, 677, 0, 0, 0, 673, 0, 657,
  1603. 659, 658, 0, 654, 0, 0, 0, 648, 0, 506,
  1604. 503, 0, 0, 490, 492, 493, 469, 466, 464, 465,
  1605. 467, 468, 463, 481, 0, 483, 461, 462, 478, 479,
  1606. 248, 256, 0, 259, 0, 261, 264, 243, 0, 0,
  1607. 0, 484, 0, 0, 0, 573, 0, 0, 562, 565,
  1608. 569, 676, 678, 0, 638, 666, 30, 29, 638, 638,
  1609. 667, 672, 674, 0, 653, 655, 0, 638, 636, 644,
  1610. 643, 639, 638, 647, 649, 0, 380, 0, 0, 0,
  1611. 0, 460, 0, 0, 0, 0, 0, 0, 0, 513,
  1612. 0, 583, 591, 593, 592, 594, 594, 594, 651, 652,
  1613. 679, 0, 671, 670, 669, 645, 646, 675, 656, 642,
  1614. 641, 650, 0, 437, 0, 494, 482, 480, 0, 257,
  1615. 262, 263, 0, 265, 477, 476, 487, 41, 0, 580,
  1616. 578, 579, 637, 504, 0, 515, 258, 0, 0, 601,
  1617. 603, 598, 600, 597, 602, 599, 596, 595, 0, 0,
  1618. 271, 0, 0, 267, 0, 270, 272, 0, 438, 495,
  1619. 275, 276, 0, 266, 268, 0, 0, 582, 585, 274,
  1620. 269, 273, 0, 0, 590, 0, 587, 0, 0, 0,
  1621. 586, 0, 0, 588, 589, 584
  1622. };
  1623. /* YYPGOTO[NTERM-NUM]. */
  1624. static const yytype_int16 yypgoto[] =
  1625. {
  1626. -1157, -1157, -1157, 1286, -1017, 0, -98, -112, -1157, -131,
  1627. -586, -779, -76, -510, -1157, 1002, 1004, 236, -1157, 782,
  1628. -1157, -1157, 1258, -139, -145, -149, -1157, 931, -340, -130,
  1629. -140, -1157, -123, -84, -133, -1157, -1157, -1157, -1157, -1157,
  1630. -1157, 516, -115, -409, -1157, -1157, -1157, -1157, -1157, -1157,
  1631. -1157, -1157, 1118, 593, 167, -1157, -1157, 1078, 529, -1157,
  1632. 1186, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1633. -28, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1634. -1157, -1157, -1157, -1157, 616, -1157, 333, -1157, -1157, -1157,
  1635. 342, -1157, -1157, -1157, -1157, -1157, -1157, -1157, 74, -1157,
  1636. -1157, 68, 65, -1157, -1157, -220, 201, -1157, -1157, -1157,
  1637. -1157, -25, -1157, 494, -1157, -1157, -1157, -1157, -1157, -1157,
  1638. 885, -1157, -1157, -659, -1157, -1157, -1157, 1201, -1157, -1157,
  1639. -1157, -323, -47, -1157, -1157, -1157, -1157, -1157, -1157, -465,
  1640. -1157, 1033, -509, -1157, -1157, -1157, 634, -1157, -1157, -1157,
  1641. 423, -270, -1157, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1642. -277, -109, -121, -738, -616, -1157, -1157, 1309, -1157, 959,
  1643. -1157, -1157, -1157, -1157, -1157, -1157, -749, -1157, -1157, -1157,
  1644. 821, -1157, -568, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1645. 560, -1157, -1157, -1157, 1098, 684, -1157, -1157, -1157, 557,
  1646. 327, -1157, -1157, -1157, -1157, -1157, -1068, -1041, -1157, -1157,
  1647. -1157, -559, 197, -1157, -1157, -1157, -1157, -1157, -1157, 330,
  1648. -1157, -1157, -1157, -1157, -1157, 587, -1157, -1157, -1157, -1157,
  1649. -1157, -1157, -1157, 1222, -1157, -1157, -1157, 922, -1072, -1157,
  1650. -1157, -1157, -1157, -1157, 1205, -1157, -1157, -1157, -1157, -1157,
  1651. -1157, -1157, -1157, -1157, 747, -1157, -1157, -1157, -1157, -1157,
  1652. -1157, 454, -169, -1157, -1157, -1157, -1157, -1157, -1157, -1157,
  1653. 376, -1157, -1157, -1157, -1157, 109, -1157, -1157, -1157, -1157,
  1654. 112, -1157, -1156, -605, -1157, -1157, -1157, -1157, -1157, -1157,
  1655. -1157, -1157, -1157, -1157, -1157, 639, -1157, -1157, -1157, -1157,
  1656. 431, -1157, -658, -1157, -1157, -1157, 226, -1157, -1157, 291,
  1657. 241, -1157, -1157, 300, -1037, -1157, -1157, 467, -1157, -1157,
  1658. -1157, -1157, -1157, 309, -1157, -1157, 317, -1020, -1157, -1157,
  1659. -1157, 1046, 641, -1157, -1157, -1157, -1157, -1157
  1660. };
  1661. /* YYDEFGOTO[NTERM-NUM]. */
  1662. static const yytype_int16 yydefgoto[] =
  1663. {
  1664. -1, 49, 50, 51, 175, 208, 177, 261, 1238, 867,
  1665. 958, 959, 547, 390, 391, 392, 393, 394, 467, 468,
  1666. 53, 54, 55, 913, 748, 335, 336, 326, 210, 211,
  1667. 914, 212, 213, 285, 179, 180, 56, 57, 58, 746,
  1668. 59, 244, 286, 434, 715, 60, 61, 62, 63, 64,
  1669. 65, 283, 284, 548, 553, 66, 320, 321, 592, 67,
  1670. 374, 216, 68, 69, 70, 71, 72, 73, 74, 220,
  1671. 108, 109, 115, 380, 516, 672, 792, 75, 218, 666,
  1672. 1076, 106, 511, 787, 788, 995, 996, 906, 1073, 1212,
  1673. 1074, 999, 1140, 1215, 1142, 1266, 1303, 1332, 1333, 1334,
  1674. 1335, 1336, 1342, 225, 922, 226, 1002, 76, 77, 78,
  1675. 236, 116, 401, 524, 541, 700, 701, 702, 816, 703,
  1676. 822, 923, 925, 924, 705, 79, 227, 228, 229, 384,
  1677. 673, 795, 529, 530, 531, 532, 533, 534, 919, 230,
  1678. 231, 232, 233, 399, 525, 685, 686, 800, 801, 802,
  1679. 916, 917, 80, 113, 886, 400, 806, 81, 124, 82,
  1680. 83, 84, 339, 754, 616, 755, 756, 85, 475, 476,
  1681. 477, 968, 86, 87, 478, 619, 868, 88, 481, 162,
  1682. 635, 893, 636, 637, 638, 639, 640, 641, 642, 882,
  1683. 883, 89, 90, 778, 480, 760, 761, 644, 895, 896,
  1684. 897, 990, 991, 1133, 1204, 1205, 1086, 1087, 1088, 1089,
  1685. 1207, 1208, 1209, 1090, 1091, 1092, 1093, 992, 1130, 1131,
  1686. 1259, 1315, 91, 763, 622, 873, 874, 92, 1124, 1256,
  1687. 1057, 93, 240, 241, 404, 930, 1147, 1132, 711, 823,
  1688. 824, 825, 94, 263, 264, 546, 95, 437, 292, 575,
  1689. 576, 577, 578, 722, 723, 724, 831, 936, 725, 726,
  1690. 945, 946, 947, 948, 1019, 1022, 1103, 1168, 1153, 1154,
  1691. 1155, 1156, 1157, 1158, 1159, 1348, 1160, 1307, 1353, 1355,
  1692. 1356, 1357, 1275, 1309, 1327, 1032, 96, 299, 841, 440,
  1693. 441, 582, 583, 735, 736, 842, 843, 844, 845, 1045,
  1694. 1046, 1047, 1282, 1185, 1251, 1252, 1287, 1048, 1186, 1187,
  1695. 1280, 1049, 1182, 1183, 1184, 846, 1037, 1038, 1039, 1175,
  1696. 1240, 1040, 1176, 1177, 1041, 1172, 1173, 1174, 97, 301,
  1697. 444, 445, 738, 739, 588, 742, 851, 965
  1698. };
  1699. /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
  1700. positive, shift that token. If negative, reduce the rule whose
  1701. number is the opposite. If YYTABLE_NINF, syntax error. */
  1702. static const yytype_int16 yytable[] =
  1703. {
  1704. 52, 325, 262, 385, 214, 1169, 239, 334, 105, 107,
  1705. 328, 324, 112, 114, 676, 249, 178, 331, 178, 774,
  1706. 327, 287, 170, 171, 692, 684, 1285, 329, 747, 1179,
  1707. 1247, 535, 338, 589, 759, 1179, 889, 340, 1234, 247,
  1708. 341, 342, 343, -121, 1278, 1146, 551, 928, 1330, 1169,
  1709. 52, 253, 674, 172, 838, 1034, 260, 1169, 693, 987,
  1710. 590, 1072, 473, 1330, 719, 1206, 330, 775, 1042, 173,
  1711. 1276, 1277, 572, 367, 645, 1220, 528, 1151, 970, 1188,
  1712. 1151, 397, 221, 683, 45, 1340, 1100, 378, 379, 1101,
  1713. 1035, 1178, 237, 1179, 1170, 45, 98, 814, 398, 164,
  1714. 176, 839, 176, 1043, 1102, 45, 45, 750, 99, 751,
  1715. 107, 224, 322, 719, 45, 840, 972, 114, 238, 1138,
  1716. 243, 243, 243, 176, 248, -444, 536, 815, 239, 678,
  1717. 223, 976, 262, 238, 708, 176, 176, 979, 1170, 793,
  1718. 223, 294, 869, 679, 752, 368, 1170, 875, 381, 1188,
  1719. 323, 153, 333, 926, 848, 569, 1178, 45, 1236, 570,
  1720. 1294, 537, 694, 695, 526, 1146, 1341, 165, 1249, 720,
  1721. 727, 1036, 45, 154, 1272, 759, 573, 166, 167, 527,
  1722. 174, 879, 1050, 1180, 1044, 753, 100, 1171, 574, 1180,
  1723. 775, 1295, 382, 1181, 181, 988, 155, 182, 473, 1181,
  1724. 1196, 938, 538, 539, 677, 45, 1365, 223, 794, 696,
  1725. 183, 403, 184, 1197, 962, -61, 591, 1198, 720, 1112,
  1726. 107, 185, 383, 224, 1061, 1062, 1063, 224, 101, 483,
  1727. 474, 1171, 1117, 174, 470, 939, 114, 186, 45, 1171,
  1728. 238, 721, 174, 1329, 345, 540, 954, 1180, 178, 750,
  1729. 1359, 751, 45, 45, 1146, 168, 697, 1181, 45, 1360,
  1730. 662, 484, 189, 238, 1012, 367, 1014, 45, 967, 698,
  1731. 969, 187, 971, 1231, 45, 45, 45, 169, 501, 188,
  1732. 322, 989, 181, 156, 1199, 182, 752, 1343, 110, 684,
  1733. 721, 832, 1248, 543, 544, 981, 699, 1244, 183, 189,
  1734. 184, 1235, 322, 1253, 45, 45, 102, 1200, 680, 185,
  1735. 682, 157, 190, 191, 192, 45, 103, 1241, 963, 158,
  1736. 1125, 45, 910, 579, 193, 186, 45, 1068, 194, 45,
  1737. 964, 904, 176, 159, 45, 160, 45, 368, 402, 472,
  1738. 198, 552, 681, 322, 176, 176, 1025, 786, 1026, 870,
  1739. 552, 1034, 1058, 111, 552, 552, 865, 322, 584, 187,
  1740. 405, 195, 176, 977, 694, 695, 474, 188, 412, 172,
  1741. 982, 196, 197, 838, 940, 104, 859, 198, 222, 161,
  1742. 369, 370, 371, 372, 373, 173, 1035, 189, 1201, 1042,
  1743. 199, 941, 200, 45, 117, 201, 45, 224, 523, 860,
  1744. 190, 191, 192, 118, 202, 694, 695, 203, 176, 176,
  1745. 545, 1009, 193, 728, 204, 265, 194, 222, 1015, 942,
  1746. 839, 322, 119, 1202, 1043, 45, 729, 985, 266, 713,
  1747. 712, 943, 164, 45, 840, 45, 714, 267, 176, 327,
  1748. 1030, 1031, 176, 819, 694, 695, 329, 861, 45, 195,
  1749. 369, 370, 371, 372, 373, 205, 206, 835, 337, 196,
  1750. 197, 120, 730, 731, 836, 198, 268, 1036, 207, 395,
  1751. 223, 820, 45, 810, 45, 472, 121, 569, 199, 153,
  1752. 200, 779, 1011, 201, 819, 330, 269, 270, 45, 174,
  1753. 1150, 944, 202, 45, 586, 203, 174, 45, 821, 123,
  1754. 165, 154, 204, 749, 611, 1044, 1013, 612, 949, 223,
  1755. 166, 167, 820, 271, 45, 950, 862, 224, 678, 443,
  1756. 785, 45, 1193, 819, 155, 514, 515, 1213, 224, 745,
  1757. 224, 1301, 679, 569, 224, 122, 863, 818, 864, 1269,
  1758. 798, 272, 706, 205, 206, 125, 799, 732, 880, 881,
  1759. 133, 820, 1005, 126, 1313, 1006, 207, 134, 911, 912,
  1760. 973, 974, 975, 1222, 569, 127, 273, 128, 834, 323,
  1761. 45, 826, 966, 828, 1060, 274, 275, 276, 1339, 129,
  1762. 1283, 1284, 623, 1070, 277, 737, 1071, 1263, 168, 1289,
  1763. 1264, 278, 1304, 563, 1290, 1262, 929, 567, 568, 387,
  1764. 388, 624, 944, 944, 130, 865, 386, 387, 388, 389,
  1765. 169, 615, 131, 176, 333, 238, 1305, 872, 135, 1262,
  1766. 333, 369, 370, 371, 372, 373, 279, 891, 855, 371,
  1767. 372, 373, 894, 796, 625, 797, 892, 245, 246, 157,
  1768. 1292, 1003, 1004, 280, 132, 866, 327, 158, 281, 1127,
  1769. 136, 282, 137, 329, 1028, 1029, 1030, 1031, 626, 1267,
  1770. 1268, 159, 881, 160, 138, 333, 915, 139, 1098, 327,
  1771. 164, 1310, 1311, 224, 140, 141, 329, 142, 627, 143,
  1772. 144, 944, 628, 145, 1306, 944, 146, 147, 944, 944,
  1773. 944, 944, 148, 224, 150, 151, 629, 152, 163, 369,
  1774. 370, 371, 372, 373, 973, 974, 975, 161, 291, 960,
  1775. 300, 1128, 1316, 219, 332, 330, 333, 960, 333, 327,
  1776. 234, 235, 337, 345, 265, 344, 329, 327, 346, 872,
  1777. 347, 630, 631, 348, 329, 349, 350, 266, 165, 351,
  1778. 333, 352, 353, 632, 633, 935, 267, 354, 166, 167,
  1779. 894, 355, 377, 934, 937, 356, 357, 238, 358, 359,
  1780. 360, 333, 333, 361, 362, 363, 156, 333, 224, 224,
  1781. 407, 885, 408, 1023, 1024, 268, 890, 333, 915, 915,
  1782. 409, 327, 327, 1129, 410, 164, 411, 414, 329, 329,
  1783. 634, 415, 416, 172, 417, 269, 270, 1318, 224, 323,
  1784. 418, 1319, 419, 420, 1320, 1321, 435, 421, 422, 173,
  1785. 258, 921, 921, 423, 424, 425, 224, 1322, 1323, 426,
  1786. 427, 960, 271, 428, 429, 430, 168, 330, 330, 176,
  1787. 438, 327, 431, 369, 370, 371, 372, 373, 329, 439,
  1788. -112, 259, -75, -75, -75, -75, -75, 737, 169, 957,
  1789. 272, 436, 1096, 165, 333, 933, 333, 957, 333, 1105,
  1790. 1106, 1107, 1108, 166, 167, 238, 442, 1033, 743, 1324,
  1791. 443, 446, 447, 915, 333, 273, 327, 1028, 1029, 1030,
  1792. 1031, 333, 224, 329, 274, 275, 276, 448, 1325, 1326,
  1793. 449, 1162, 450, 277, 451, 333, 452, 453, 471, 454,
  1794. 278, 369, 370, 371, 372, 373, 1119, 455, 1121, 456,
  1795. 1001, 323, 323, 1260, 457, 1210, 458, 459, 1007, 460,
  1796. 174, 461, 330, 921, 462, 921, 463, 1080, 1081, 1082,
  1797. -106, 523, 479, 510, 512, 279, 369, 370, 371, 372,
  1798. 373, 168, 513, 1104, 517, 45, 369, 370, 371, 372,
  1799. 373, 176, 280, 1083, 518, 1084, 1085, 281, 580, 542,
  1800. 282, 957, 581, 169, 369, 370, 371, 372, 373, 585,
  1801. 613, 614, -444, 238, 238, 238, 593, 594, 503, 596,
  1802. 618, 598, 620, 600, 601, 432, 603, 604, 605, 606,
  1803. 607, 608, 609, 369, 370, 371, 372, 373, 621, 373,
  1804. 643, 665, 1077, 669, 670, 1167, 323, 646, 549, 550,
  1805. 671, 554, 555, 557, 558, 559, 560, 526, 562, 178,
  1806. 564, 565, 566, 687, 688, 689, 690, 176, 691, 709,
  1807. 710, 716, 209, 717, 215, 217, 718, 733, 369, 370,
  1808. 371, 372, 373, 734, 1239, 369, 370, 371, 372, 373,
  1809. 242, 333, 647, 333, 740, 656, 251, 252, 741, 254,
  1810. 255, 256, 257, 1237, 757, 762, 706, 764, 289, 290,
  1811. 765, 293, 767, 296, 297, 298, 369, 370, 371, 372,
  1812. 373, 768, 302, -69, -69, -69, -69, -69, 1279, 766,
  1813. 648, 769, 770, 1274, 1152, 1274, 1274, 1152, 1286, 771,
  1814. 772, 1279, 773, 176, 303, 776, 304, 305, 777, 786,
  1815. 1286, 791, 1273, 678, 1273, 1273, 811, 1347, 812, 813,
  1816. 1300, 817, 1349, 829, 830, 837, 306, 849, 850, 847,
  1817. 706, 854, 853, 856, 857, 224, 364, 365, 366, 878,
  1818. 1214, 1347, 369, 370, 371, 372, 373, 888, 1221, 333,
  1819. 369, 370, 371, 372, 373, 858, 649, 369, 370, 371,
  1820. 372, 373, 675, 908, 307, 308, 369, 370, 371, 372,
  1821. 373, 650, 907, 903, 952, 238, 918, 920, 931, 932,
  1822. 651, 951, 309, 310, 953, 1250, 961, 980, 369, 370,
  1823. 371, 372, 373, 369, 370, 371, 372, 373, 984, 311,
  1824. 312, 313, 652, 997, 998, 1010, 1020, 653, 1016, 1021,
  1825. 1051, 314, 1052, 315, 316, 1054, 1053, 1056, 369, 370,
  1826. 371, 372, 373, 1001, 238, 1066, 238, 238, 1067, 317,
  1827. 318, 1274, 654, 333, 369, 370, 371, 372, 373, 1059,
  1828. 1141, 1072, 1075, 333, 1094, 1097, 333, 1109, 655, 975,
  1829. 1273, 1110, 1111, 469, 1114, 333, 1115, 369, 370, 371,
  1830. 372, 373, 1123, 1116, 1135, 333, 1302, 1137, 1144, 1143,
  1831. 333, 660, -68, -68, -68, -68, -68, 485, 486, 487,
  1832. 488, 489, 490, 491, 492, 493, 494, 495, 496, 497,
  1833. 498, 499, 500, 1145, 502, 1148, 1149, 1164, 333, 1165,
  1834. 504, 505, 506, 507, 508, 319, 509, 369, 370, 371,
  1835. 372, 373, 369, 370, 371, 372, 373, 1331, 1166, 1195,
  1836. 519, 661, 1191, 1192, 1216, 1218, 663, 369, 370, 371,
  1837. 372, 373, 1331, 1217, 1219, 1223, 149, 224, 1228, 1293,
  1838. 1224, 464, 224, 389, 1226, 1227, 1331, 1229, 1230, 1265,
  1839. 1261, 556, 1354, 1233, 1243, 561, 1246, 1262, 1255, 1354,
  1840. 1270, 224, 238, 1281, 1298, 1308, 1314, 571, 369, 370,
  1841. 371, 372, 373, 181, 1317, 1337, 182, 1345, 657, 1196,
  1842. 595, 1346, 597, 302, 599, 1352, 1358, 602, 1225, 183,
  1843. 1362, 184, 1197, 520, 744, 521, 1198, 610, 465, 295,
  1844. 185, 433, 376, 905, 1136, 303, 1344, 304, 305, 369,
  1845. 370, 371, 372, 373, 1351, 1139, 186, 369, 370, 371,
  1846. 372, 373, 1361, 898, 1271, 1017, 704, 306, 396, 1078,
  1847. 522, 899, 909, 250, 617, 369, 370, 371, 372, 373,
  1848. 758, 482, 983, 667, 668, 871, 1080, 1081, 1082, 900,
  1849. 187, 1190, 986, 369, 370, 371, 372, 373, 188, 1297,
  1850. 1194, 978, 406, 1199, 707, 307, 308, 901, 413, 833,
  1851. 1364, 1363, 1083, 1163, 1084, 1085, 1118, 1254, 189, 1099,
  1852. 955, 1291, 1245, 309, 310, 1242, 1200, 1288, 956, 1232,
  1853. 587, 190, 191, 192, 369, 370, 371, 372, 373, 0,
  1854. 311, 312, 313, 193, 1113, 0, 1338, 194, 0, 0,
  1855. 0, 0, 314, 0, 315, 316, 369, 370, 371, 372,
  1856. 373, 369, 370, 371, 372, 373, 658, 0, 1122, 0,
  1857. 317, 318, 369, 370, 371, 372, 373, 0, 0, 0,
  1858. 195, 0, 659, 469, 0, 369, 370, 371, 372, 373,
  1859. 196, 197, 1161, 0, 0, 0, 198, 375, 369, 370,
  1860. 371, 372, 373, 0, 0, 0, 0, 1201, 0, 199,
  1861. 0, 200, 0, 0, 201, 664, 369, 370, 371, 372,
  1862. 373, 0, 0, 202, 0, 0, 203, 780, 781, 782,
  1863. 783, 0, 0, 204, 0, 784, 0, 0, 0, 0,
  1864. 789, 790, 1202, 0, 0, 0, 319, -75, -75, -75,
  1865. -75, -75, 45, 1027, 1028, 1029, 1030, 1031, 803, 805,
  1866. 807, 808, 809, 0, 0, 0, 0, 181, 0, 0,
  1867. 182, 0, 0, 0, 205, 206, 902, 369, 370, 371,
  1868. 372, 373, 0, 183, 0, 184, 0, 207, 827, 0,
  1869. 0, 0, 0, 0, 185, 1069, 369, 370, 371, 372,
  1870. 373, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1871. 186, 0, 0, 0, 852, 0, 0, 0, 0, 0,
  1872. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1873. 0, 0, 0, 0, 0, 876, 877, 0, 0, 0,
  1874. 0, 884, 0, 887, 187, 0, 164, 0, 0, 0,
  1875. 0, 0, 188, 0, 0, 0, 0, 0, 0, 0,
  1876. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1877. 0, 0, 189, 0, 0, 0, 0, 0, 0, 0,
  1878. 0, 0, 0, 0, 927, 190, 191, 192, 0, 0,
  1879. 0, 0, 0, 0, 0, 0, 0, 193, 0, 0,
  1880. 0, 194, 0, 0, 0, 0, 0, 0, 0, 0,
  1881. 0, 0, 181, 0, 165, 182, 0, 0, 0, 0,
  1882. 0, 0, 0, 0, 166, 167, 0, 0, 183, 0,
  1883. 184, 0, 0, 0, 195, 0, 0, 0, 0, 185,
  1884. 0, 0, 0, 0, 196, 197, 0, 0, 0, 0,
  1885. 198, 0, 0, 0, 0, 186, 0, 0, 0, 0,
  1886. 0, 0, 0, 199, 0, 200, 0, 181, 201, 0,
  1887. 182, 0, 0, 993, 994, 0, 0, 202, 1000, 0,
  1888. 203, 0, 0, 183, 0, 184, 0, 204, 0, 187,
  1889. 0, 1008, 0, 0, 185, 0, 0, 188, 0, 172,
  1890. 0, 0, 168, 1018, 0, 0, 45, 910, 0, 0,
  1891. 186, 0, 0, 0, 0, 173, 0, 189, 0, 0,
  1892. 0, 0, 0, 0, 169, 0, 0, 0, 205, 206,
  1893. 190, 191, 192, 0, 0, 0, 0, 1055, 0, 0,
  1894. 0, 207, 193, 0, 187, 0, 194, 0, 0, 0,
  1895. 0, 1064, 188, 0, 172, 1065, 0, 0, 0, 0,
  1896. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1897. 173, 0, 189, 0, 0, 0, 0, 0, 0, 195,
  1898. 0, 1079, 0, 0, 0, 190, 191, 192, 0, 196,
  1899. 197, 1095, 0, 0, 0, 198, 0, 193, 0, 0,
  1900. 0, 194, 0, 0, 0, 0, 0, 0, 199, 0,
  1901. 200, 0, 0, 201, 0, 0, 0, 0, 0, 0,
  1902. 0, 0, 202, 1120, 0, 203, 174, 0, 0, 0,
  1903. 1126, 0, 204, 0, 195, 0, 0, 0, 0, 0,
  1904. 1134, 0, 994, 0, 196, 197, 0, 0, 0, 0,
  1905. 198, 45, 0, 0, 0, 0, 0, 0, 0, 0,
  1906. 0, 0, 0, 199, 0, 200, 0, 0, 201, 0,
  1907. 0, 0, 0, 205, 206, 0, 0, 202, 0, 322,
  1908. 203, 174, 181, 0, 0, 182, 207, 204, 0, 0,
  1909. 0, 0, 0, 0, 1189, 0, 0, 0, 183, 0,
  1910. 184, 0, 0, 0, 1203, 0, 45, 0, 1211, 185,
  1911. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1912. 0, 181, 0, 0, 182, 186, 0, 0, 205, 206,
  1913. 0, 0, 0, 0, 0, 0, 0, 183, 0, 184,
  1914. 0, 207, 0, 0, 0, 0, 0, 0, 185, 0,
  1915. 0, 0, 0, 0, 0, 0, 0, 0, 0, 187,
  1916. 0, 0, 1257, 1258, 186, 0, 0, 188, 0, 172,
  1917. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1918. 0, 0, 0, 0, 0, 173, 0, 189, 0, 1203,
  1919. 1203, 0, 0, 0, 0, 0, 0, 0, 187, 0,
  1920. 190, 191, 192, 0, 0, 0, 188, 0, 0, 0,
  1921. 0, 0, 193, 0, 0, 0, 194, 0, 0, 0,
  1922. 181, 0, 0, 182, 0, 0, 189, 288, 0, 0,
  1923. 0, 1296, 0, 1203, 0, 1299, 183, 0, 184, 190,
  1924. 191, 192, 0, 0, 0, 0, 0, 185, 0, 195,
  1925. 0, 193, 1312, 0, 0, 194, 0, 0, 0, 196,
  1926. 197, 0, 0, 186, 0, 198, 0, 0, 0, 0,
  1927. 0, 0, 0, 0, 0, 0, 0, 0, 199, 0,
  1928. 200, 0, 0, 201, 0, 1328, 0, 0, 195, 0,
  1929. 0, 0, 202, 0, 0, 203, 174, 187, 196, 197,
  1930. 0, 0, 204, 0, 198, 188, 0, 0, 181, 0,
  1931. 0, 182, 0, 0, 0, 0, 1350, 199, 0, 200,
  1932. 0, 45, 201, 0, 183, 189, 184, 0, 0, 0,
  1933. 0, 202, 0, 0, 203, 185, 0, 0, 190, 191,
  1934. 192, 204, 0, 205, 206, 0, 0, 0, 0, 0,
  1935. 193, 186, 0, 0, 194, 0, 207, 0, 0, 0,
  1936. 45, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1937. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1938. 0, 0, 205, 206, 0, 187, 0, 195, 0, 0,
  1939. 0, 0, 0, 188, 0, 207, 0, 196, 197, 0,
  1940. 0, 0, 0, 198, 0, 0, 0, 181, 0, 0,
  1941. 182, 0, 0, 189, 0, 0, 199, 0, 200, 0,
  1942. 0, 201, 0, 183, 0, 184, 190, 191, 192, 0,
  1943. 202, 0, 0, 203, 185, 0, 0, 0, 193, 0,
  1944. 204, 0, 194, 0, 0, 0, 181, 0, 0, 182,
  1945. 186, 0, 0, 0, 0, 0, 0, 0, 0, 45,
  1946. 0, 0, 183, 0, 184, 0, 0, 0, 0, 0,
  1947. 0, 0, 0, 185, 0, 195, 0, 0, 0, 0,
  1948. 0, 205, 206, 0, 187, 196, 197, 466, 0, 186,
  1949. 0, 198, 188, 0, 207, 0, 0, 0, 0, 0,
  1950. 0, 0, 0, 0, 199, 0, 200, 0, 0, 201,
  1951. 0, 0, 189, 0, 0, 0, 0, 0, 202, 0,
  1952. 0, 203, 0, 187, 0, 190, 191, 192, 204, 0,
  1953. 0, 188, 0, 0, 0, 0, 0, 193, 0, 0,
  1954. 0, 194, 0, 0, 804, 0, 0, 45, 0, 0,
  1955. 0, 189, 0, 0, 0, 0, 0, 0, 0, 0,
  1956. 0, 0, 0, 0, 190, 191, 192, 0, 0, 205,
  1957. 206, 0, 0, 0, 195, 0, 193, 0, 0, 0,
  1958. 194, 0, 207, 0, 196, 197, 0, 0, 0, 0,
  1959. 198, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1960. 0, 0, 0, 199, 0, 200, 0, 0, 201, 0,
  1961. 0, 0, 0, 195, 0, 0, 0, 202, 0, 0,
  1962. 203, 0, 0, 196, 197, 0, 0, 204, 0, 198,
  1963. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1964. 0, 0, 199, 0, 200, 0, 45, 201, 1, 0,
  1965. 0, 0, 0, 0, 0, 0, 202, 0, 0, 203,
  1966. 0, 0, 0, 0, 0, 0, 204, 0, 205, 206,
  1967. 0, 0, 0, 0, 322, 2, 3, 4, 5, 6,
  1968. 0, 207, 0, 7, 0, 45, 0, 0, 0, 0,
  1969. 0, 0, 0, 0, 0, 0, 8, 9, 10, 11,
  1970. 12, 13, 14, 15, 0, 0, 0, 205, 206, 0,
  1971. 0, 0, 16, 0, 0, 0, 0, 0, 0, 0,
  1972. 207, 0, 0, 0, 0, 0, 17, 0, 0, 0,
  1973. 0, 0, 0, 0, 18, 19, 0, 0, 0, 0,
  1974. 0, 0, 0, 0, 0, 0, 20, 0, 0, 0,
  1975. 21, 0, 0, 22, 0, 0, 0, 23, 24, 0,
  1976. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1977. 25, 26, 27, 28, 0, 29, 0, 0, 0, 0,
  1978. 0, 0, 30, 0, 0, 0, 0, 0, 0, 0,
  1979. 0, 0, 0, 0, 0, 0, 0, 0, 31, 0,
  1980. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1981. 32, 33, 34, 0, 0, 0, 35, 36, 0, 0,
  1982. 0, 37, 38, 0, 0, 0, 39, 0, 0, 0,
  1983. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1984. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1985. 40, 0, 0, 0, 0, 41, 0, 0, 0, 0,
  1986. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1987. 0, 0, 42, 43, 0, 0, 0, 0, 0, 0,
  1988. 0, 0, 0, 0, 44, 45, 0, 0, 0, 0,
  1989. 46, 0, 0, 47, 0, 0, 0, 0, 0, 0,
  1990. 0, 48
  1991. };
  1992. static const yytype_int16 yycheck[] =
  1993. {
  1994. 0, 150, 133, 223, 102, 8, 118, 152, 8, 9,
  1995. 150, 150, 12, 13, 524, 124, 100, 150, 102, 635,
  1996. 150, 136, 98, 99, 4, 534, 16, 150, 614, 8,
  1997. 14, 62, 153, 74, 620, 8, 774, 158, 13, 123,
  1998. 161, 162, 163, 89, 12, 1086, 29, 14, 52, 8,
  1999. 50, 127, 517, 90, 84, 112, 132, 8, 38, 60,
  2000. 101, 218, 339, 52, 98, 1133, 150, 635, 112, 106,
  2001. 1226, 1227, 111, 79, 483, 1147, 399, 1094, 857, 1116,
  2002. 1097, 264, 110, 153, 242, 73, 261, 64, 65, 264,
  2003. 147, 1111, 117, 8, 97, 242, 261, 231, 281, 82,
  2004. 100, 131, 102, 147, 279, 242, 242, 198, 261, 200,
  2005. 110, 111, 270, 98, 242, 145, 865, 117, 118, 276,
  2006. 120, 121, 122, 123, 124, 171, 157, 261, 240, 265,
  2007. 277, 869, 263, 133, 543, 135, 136, 875, 97, 276,
  2008. 277, 141, 758, 279, 235, 151, 97, 763, 276, 1186,
  2009. 150, 27, 152, 812, 740, 274, 1176, 242, 1175, 278,
  2010. 44, 192, 142, 143, 265, 1206, 154, 150, 1185, 203,
  2011. 579, 228, 242, 49, 259, 761, 215, 160, 161, 280,
  2012. 217, 767, 961, 162, 228, 276, 261, 190, 227, 162,
  2013. 758, 1259, 220, 172, 3, 196, 72, 6, 475, 172,
  2014. 9, 47, 233, 234, 527, 242, 1362, 277, 673, 189,
  2015. 19, 236, 21, 22, 111, 261, 257, 26, 203, 276,
  2016. 220, 30, 222, 223, 973, 974, 975, 227, 261, 344,
  2017. 339, 190, 276, 217, 332, 81, 236, 46, 242, 190,
  2018. 240, 275, 217, 1315, 262, 276, 276, 162, 332, 198,
  2019. 262, 200, 242, 242, 1295, 238, 236, 172, 242, 271,
  2020. 278, 345, 108, 263, 923, 79, 925, 242, 854, 249,
  2021. 856, 80, 858, 276, 242, 242, 242, 260, 362, 88,
  2022. 270, 897, 3, 159, 93, 6, 235, 276, 275, 798,
  2023. 275, 276, 276, 408, 409, 881, 276, 276, 19, 108,
  2024. 21, 276, 270, 276, 242, 242, 261, 116, 528, 30,
  2025. 530, 187, 121, 122, 123, 242, 261, 276, 215, 195,
  2026. 1058, 242, 43, 438, 133, 46, 242, 276, 137, 242,
  2027. 227, 202, 332, 209, 242, 211, 242, 151, 276, 339,
  2028. 186, 417, 279, 270, 344, 345, 274, 218, 276, 276,
  2029. 426, 112, 968, 275, 430, 431, 277, 270, 442, 80,
  2030. 276, 170, 362, 276, 142, 143, 475, 88, 276, 90,
  2031. 276, 180, 181, 84, 220, 261, 48, 186, 185, 255,
  2032. 264, 265, 266, 267, 268, 106, 147, 108, 197, 112,
  2033. 199, 237, 201, 242, 275, 204, 242, 397, 398, 71,
  2034. 121, 122, 123, 275, 213, 142, 143, 216, 408, 409,
  2035. 410, 921, 133, 18, 223, 15, 137, 185, 928, 265,
  2036. 131, 270, 261, 232, 147, 242, 31, 276, 28, 569,
  2037. 569, 277, 82, 242, 145, 242, 569, 37, 438, 569,
  2038. 266, 267, 442, 221, 142, 143, 569, 119, 242, 170,
  2039. 264, 265, 266, 267, 268, 264, 265, 18, 275, 180,
  2040. 181, 277, 67, 68, 25, 186, 66, 228, 277, 276,
  2041. 277, 249, 242, 693, 242, 475, 277, 274, 199, 27,
  2042. 201, 278, 276, 204, 221, 569, 86, 87, 242, 217,
  2043. 218, 831, 213, 242, 120, 216, 217, 242, 276, 261,
  2044. 150, 49, 223, 615, 271, 228, 276, 274, 18, 277,
  2045. 160, 161, 249, 113, 242, 25, 188, 517, 265, 145,
  2046. 665, 242, 276, 221, 72, 50, 51, 276, 528, 613,
  2047. 530, 276, 279, 274, 534, 277, 208, 278, 210, 276,
  2048. 264, 141, 542, 264, 265, 261, 270, 152, 768, 769,
  2049. 275, 249, 271, 261, 1292, 274, 277, 275, 279, 280,
  2050. 264, 265, 266, 1149, 274, 261, 166, 261, 278, 569,
  2051. 242, 716, 215, 718, 278, 175, 176, 177, 276, 261,
  2052. 1238, 1239, 44, 271, 184, 585, 274, 271, 238, 1247,
  2053. 274, 191, 271, 426, 1252, 274, 816, 430, 431, 273,
  2054. 274, 63, 942, 943, 261, 277, 272, 273, 274, 275,
  2055. 260, 159, 261, 613, 614, 615, 271, 762, 277, 274,
  2056. 620, 264, 265, 266, 267, 268, 226, 776, 749, 266,
  2057. 267, 268, 777, 680, 96, 682, 776, 121, 122, 187,
  2058. 1256, 911, 912, 243, 261, 757, 776, 195, 248, 214,
  2059. 277, 251, 261, 776, 264, 265, 266, 267, 120, 1218,
  2060. 1219, 209, 882, 211, 261, 665, 799, 275, 278, 799,
  2061. 82, 1276, 1277, 673, 261, 277, 799, 261, 140, 261,
  2062. 261, 1021, 144, 275, 1270, 1025, 275, 275, 1028, 1029,
  2063. 1030, 1031, 0, 693, 261, 89, 158, 261, 171, 264,
  2064. 265, 266, 267, 268, 264, 265, 266, 255, 163, 849,
  2065. 85, 276, 1298, 275, 277, 799, 716, 857, 718, 849,
  2066. 275, 275, 275, 262, 15, 277, 849, 857, 277, 874,
  2067. 277, 193, 194, 277, 857, 277, 277, 28, 150, 277,
  2068. 740, 277, 277, 205, 206, 829, 37, 277, 160, 161,
  2069. 895, 277, 275, 829, 830, 277, 277, 757, 277, 277,
  2070. 277, 761, 762, 277, 277, 277, 159, 767, 768, 769,
  2071. 278, 771, 274, 942, 943, 66, 776, 777, 911, 912,
  2072. 274, 911, 912, 214, 270, 82, 275, 261, 911, 912,
  2073. 252, 261, 261, 90, 261, 86, 87, 1307, 798, 799,
  2074. 261, 7, 261, 261, 10, 11, 278, 261, 261, 106,
  2075. 222, 811, 812, 261, 261, 261, 816, 23, 24, 261,
  2076. 261, 961, 113, 261, 261, 261, 238, 911, 912, 829,
  2077. 274, 961, 261, 264, 265, 266, 267, 268, 961, 138,
  2078. 262, 253, 264, 265, 266, 267, 268, 847, 260, 849,
  2079. 141, 261, 1021, 150, 854, 152, 856, 857, 858, 1028,
  2080. 1029, 1030, 1031, 160, 161, 865, 261, 951, 231, 75,
  2081. 145, 261, 261, 1006, 874, 166, 1006, 264, 265, 266,
  2082. 267, 881, 882, 1006, 175, 176, 177, 261, 94, 95,
  2083. 261, 278, 261, 184, 261, 895, 261, 261, 45, 261,
  2084. 191, 264, 265, 266, 267, 268, 1051, 261, 1053, 261,
  2085. 910, 911, 912, 231, 261, 1135, 261, 261, 918, 261,
  2086. 217, 261, 1006, 923, 261, 925, 261, 76, 77, 78,
  2087. 262, 931, 244, 156, 261, 226, 264, 265, 266, 267,
  2088. 268, 238, 261, 1027, 275, 242, 264, 265, 266, 267,
  2089. 268, 951, 243, 102, 278, 104, 105, 248, 261, 270,
  2090. 251, 961, 245, 260, 264, 265, 266, 267, 268, 261,
  2091. 274, 261, 171, 973, 974, 975, 447, 448, 278, 450,
  2092. 202, 452, 275, 454, 455, 276, 457, 458, 459, 460,
  2093. 461, 462, 463, 264, 265, 266, 267, 268, 225, 268,
  2094. 70, 261, 1002, 261, 261, 1103, 1006, 278, 415, 416,
  2095. 224, 418, 419, 420, 421, 422, 423, 265, 425, 1103,
  2096. 427, 428, 429, 261, 261, 261, 261, 1027, 261, 278,
  2097. 271, 261, 101, 261, 103, 104, 261, 261, 264, 265,
  2098. 266, 267, 268, 246, 1175, 264, 265, 266, 267, 268,
  2099. 119, 1051, 278, 1053, 261, 274, 125, 126, 256, 128,
  2100. 129, 130, 131, 1175, 261, 275, 1066, 261, 137, 138,
  2101. 261, 140, 261, 142, 143, 144, 264, 265, 266, 267,
  2102. 268, 261, 17, 264, 265, 266, 267, 268, 1233, 275,
  2103. 278, 275, 261, 1224, 1094, 1226, 1227, 1097, 1243, 261,
  2104. 261, 1246, 275, 1103, 39, 261, 41, 42, 275, 218,
  2105. 1255, 124, 1224, 265, 1226, 1227, 275, 1337, 275, 261,
  2106. 1265, 271, 1342, 261, 261, 261, 61, 261, 254, 264,
  2107. 1130, 274, 278, 261, 261, 1135, 205, 206, 207, 126,
  2108. 1140, 1361, 264, 265, 266, 267, 268, 125, 1148, 1149,
  2109. 264, 265, 266, 267, 268, 261, 278, 264, 265, 266,
  2110. 267, 268, 276, 276, 99, 100, 264, 265, 266, 267,
  2111. 268, 278, 261, 270, 275, 1175, 263, 261, 261, 261,
  2112. 278, 261, 117, 118, 275, 1185, 261, 261, 264, 265,
  2113. 266, 267, 268, 264, 265, 266, 267, 268, 261, 134,
  2114. 135, 136, 278, 275, 219, 261, 270, 278, 275, 277,
  2115. 261, 146, 261, 148, 149, 276, 261, 20, 264, 265,
  2116. 266, 267, 268, 1223, 1224, 275, 1226, 1227, 275, 164,
  2117. 165, 1362, 278, 1233, 264, 265, 266, 267, 268, 274,
  2118. 182, 218, 275, 1243, 270, 270, 1246, 275, 278, 266,
  2119. 1362, 275, 275, 322, 275, 1255, 275, 264, 265, 266,
  2120. 267, 268, 261, 275, 261, 1265, 1266, 270, 261, 271,
  2121. 1270, 278, 264, 265, 266, 267, 268, 346, 347, 348,
  2122. 349, 350, 351, 352, 353, 354, 355, 356, 357, 358,
  2123. 359, 360, 361, 261, 363, 261, 261, 279, 1298, 279,
  2124. 369, 370, 371, 372, 373, 240, 375, 264, 265, 266,
  2125. 267, 268, 264, 265, 266, 267, 268, 1317, 279, 275,
  2126. 389, 278, 261, 261, 275, 270, 278, 264, 265, 266,
  2127. 267, 268, 1332, 276, 270, 275, 50, 1337, 271, 276,
  2128. 274, 276, 1342, 275, 274, 274, 1346, 271, 279, 261,
  2129. 276, 420, 1352, 281, 281, 424, 281, 274, 281, 1359,
  2130. 274, 1361, 1362, 261, 261, 274, 261, 436, 264, 265,
  2131. 266, 267, 268, 3, 275, 263, 6, 263, 274, 9,
  2132. 449, 262, 451, 17, 453, 270, 276, 456, 1152, 19,
  2133. 274, 21, 22, 391, 612, 391, 26, 466, 320, 141,
  2134. 30, 283, 216, 787, 1071, 39, 1332, 41, 42, 264,
  2135. 265, 266, 267, 268, 1346, 1073, 46, 264, 265, 266,
  2136. 267, 268, 1357, 278, 1223, 931, 541, 61, 227, 1006,
  2137. 397, 278, 798, 124, 475, 264, 265, 266, 267, 268,
  2138. 619, 343, 882, 512, 513, 761, 76, 77, 78, 278,
  2139. 80, 1124, 895, 264, 265, 266, 267, 268, 88, 1262,
  2140. 1130, 874, 240, 93, 542, 99, 100, 278, 263, 722,
  2141. 1361, 1359, 102, 1097, 104, 105, 1045, 1186, 108, 1025,
  2142. 841, 1255, 1182, 117, 118, 1176, 116, 1246, 847, 1172,
  2143. 444, 121, 122, 123, 264, 265, 266, 267, 268, -1,
  2144. 134, 135, 136, 133, 1037, -1, 276, 137, -1, -1,
  2145. -1, -1, 146, -1, 148, 149, 264, 265, 266, 267,
  2146. 268, 264, 265, 266, 267, 268, 274, -1, 271, -1,
  2147. 164, 165, 264, 265, 266, 267, 268, -1, -1, -1,
  2148. 170, -1, 274, 612, -1, 264, 265, 266, 267, 268,
  2149. 180, 181, 271, -1, -1, -1, 186, 263, 264, 265,
  2150. 266, 267, 268, -1, -1, -1, -1, 197, -1, 199,
  2151. -1, 201, -1, -1, 204, 263, 264, 265, 266, 267,
  2152. 268, -1, -1, 213, -1, -1, 216, 656, 657, 658,
  2153. 659, -1, -1, 223, -1, 664, -1, -1, -1, -1,
  2154. 669, 670, 232, -1, -1, -1, 240, 264, 265, 266,
  2155. 267, 268, 242, 263, 264, 265, 266, 267, 687, 688,
  2156. 689, 690, 691, -1, -1, -1, -1, 3, -1, -1,
  2157. 6, -1, -1, -1, 264, 265, 263, 264, 265, 266,
  2158. 267, 268, -1, 19, -1, 21, -1, 277, 717, -1,
  2159. -1, -1, -1, -1, 30, 263, 264, 265, 266, 267,
  2160. 268, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2161. 46, -1, -1, -1, 743, -1, -1, -1, -1, -1,
  2162. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2163. -1, -1, -1, -1, -1, 764, 765, -1, -1, -1,
  2164. -1, 770, -1, 772, 80, -1, 82, -1, -1, -1,
  2165. -1, -1, 88, -1, -1, -1, -1, -1, -1, -1,
  2166. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2167. -1, -1, 108, -1, -1, -1, -1, -1, -1, -1,
  2168. -1, -1, -1, -1, 813, 121, 122, 123, -1, -1,
  2169. -1, -1, -1, -1, -1, -1, -1, 133, -1, -1,
  2170. -1, 137, -1, -1, -1, -1, -1, -1, -1, -1,
  2171. -1, -1, 3, -1, 150, 6, -1, -1, -1, -1,
  2172. -1, -1, -1, -1, 160, 161, -1, -1, 19, -1,
  2173. 21, -1, -1, -1, 170, -1, -1, -1, -1, 30,
  2174. -1, -1, -1, -1, 180, 181, -1, -1, -1, -1,
  2175. 186, -1, -1, -1, -1, 46, -1, -1, -1, -1,
  2176. -1, -1, -1, 199, -1, 201, -1, 3, 204, -1,
  2177. 6, -1, -1, 902, 903, -1, -1, 213, 907, -1,
  2178. 216, -1, -1, 19, -1, 21, -1, 223, -1, 80,
  2179. -1, 920, -1, -1, 30, -1, -1, 88, -1, 90,
  2180. -1, -1, 238, 932, -1, -1, 242, 43, -1, -1,
  2181. 46, -1, -1, -1, -1, 106, -1, 108, -1, -1,
  2182. -1, -1, -1, -1, 260, -1, -1, -1, 264, 265,
  2183. 121, 122, 123, -1, -1, -1, -1, 966, -1, -1,
  2184. -1, 277, 133, -1, 80, -1, 137, -1, -1, -1,
  2185. -1, 980, 88, -1, 90, 984, -1, -1, -1, -1,
  2186. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2187. 106, -1, 108, -1, -1, -1, -1, -1, -1, 170,
  2188. -1, 1010, -1, -1, -1, 121, 122, 123, -1, 180,
  2189. 181, 1020, -1, -1, -1, 186, -1, 133, -1, -1,
  2190. -1, 137, -1, -1, -1, -1, -1, -1, 199, -1,
  2191. 201, -1, -1, 204, -1, -1, -1, -1, -1, -1,
  2192. -1, -1, 213, 1052, -1, 216, 217, -1, -1, -1,
  2193. 1059, -1, 223, -1, 170, -1, -1, -1, -1, -1,
  2194. 1069, -1, 1071, -1, 180, 181, -1, -1, -1, -1,
  2195. 186, 242, -1, -1, -1, -1, -1, -1, -1, -1,
  2196. -1, -1, -1, 199, -1, 201, -1, -1, 204, -1,
  2197. -1, -1, -1, 264, 265, -1, -1, 213, -1, 270,
  2198. 216, 217, 3, -1, -1, 6, 277, 223, -1, -1,
  2199. -1, -1, -1, -1, 1123, -1, -1, -1, 19, -1,
  2200. 21, -1, -1, -1, 1133, -1, 242, -1, 1137, 30,
  2201. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2202. -1, 3, -1, -1, 6, 46, -1, -1, 264, 265,
  2203. -1, -1, -1, -1, -1, -1, -1, 19, -1, 21,
  2204. -1, 277, -1, -1, -1, -1, -1, -1, 30, -1,
  2205. -1, -1, -1, -1, -1, -1, -1, -1, -1, 80,
  2206. -1, -1, 1191, 1192, 46, -1, -1, 88, -1, 90,
  2207. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2208. -1, -1, -1, -1, -1, 106, -1, 108, -1, 1218,
  2209. 1219, -1, -1, -1, -1, -1, -1, -1, 80, -1,
  2210. 121, 122, 123, -1, -1, -1, 88, -1, -1, -1,
  2211. -1, -1, 133, -1, -1, -1, 137, -1, -1, -1,
  2212. 3, -1, -1, 6, -1, -1, 108, 109, -1, -1,
  2213. -1, 1260, -1, 1262, -1, 1264, 19, -1, 21, 121,
  2214. 122, 123, -1, -1, -1, -1, -1, 30, -1, 170,
  2215. -1, 133, 1281, -1, -1, 137, -1, -1, -1, 180,
  2216. 181, -1, -1, 46, -1, 186, -1, -1, -1, -1,
  2217. -1, -1, -1, -1, -1, -1, -1, -1, 199, -1,
  2218. 201, -1, -1, 204, -1, 1314, -1, -1, 170, -1,
  2219. -1, -1, 213, -1, -1, 216, 217, 80, 180, 181,
  2220. -1, -1, 223, -1, 186, 88, -1, -1, 3, -1,
  2221. -1, 6, -1, -1, -1, -1, 1345, 199, -1, 201,
  2222. -1, 242, 204, -1, 19, 108, 21, -1, -1, -1,
  2223. -1, 213, -1, -1, 216, 30, -1, -1, 121, 122,
  2224. 123, 223, -1, 264, 265, -1, -1, -1, -1, -1,
  2225. 133, 46, -1, -1, 137, -1, 277, -1, -1, -1,
  2226. 242, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2227. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2228. -1, -1, 264, 265, -1, 80, -1, 170, -1, -1,
  2229. -1, -1, -1, 88, -1, 277, -1, 180, 181, -1,
  2230. -1, -1, -1, 186, -1, -1, -1, 3, -1, -1,
  2231. 6, -1, -1, 108, -1, -1, 199, -1, 201, -1,
  2232. -1, 204, -1, 19, -1, 21, 121, 122, 123, -1,
  2233. 213, -1, -1, 216, 30, -1, -1, -1, 133, -1,
  2234. 223, -1, 137, -1, -1, -1, 3, -1, -1, 6,
  2235. 46, -1, -1, -1, -1, -1, -1, -1, -1, 242,
  2236. -1, -1, 19, -1, 21, -1, -1, -1, -1, -1,
  2237. -1, -1, -1, 30, -1, 170, -1, -1, -1, -1,
  2238. -1, 264, 265, -1, 80, 180, 181, 270, -1, 46,
  2239. -1, 186, 88, -1, 277, -1, -1, -1, -1, -1,
  2240. -1, -1, -1, -1, 199, -1, 201, -1, -1, 204,
  2241. -1, -1, 108, -1, -1, -1, -1, -1, 213, -1,
  2242. -1, 216, -1, 80, -1, 121, 122, 123, 223, -1,
  2243. -1, 88, -1, -1, -1, -1, -1, 133, -1, -1,
  2244. -1, 137, -1, -1, 239, -1, -1, 242, -1, -1,
  2245. -1, 108, -1, -1, -1, -1, -1, -1, -1, -1,
  2246. -1, -1, -1, -1, 121, 122, 123, -1, -1, 264,
  2247. 265, -1, -1, -1, 170, -1, 133, -1, -1, -1,
  2248. 137, -1, 277, -1, 180, 181, -1, -1, -1, -1,
  2249. 186, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2250. -1, -1, -1, 199, -1, 201, -1, -1, 204, -1,
  2251. -1, -1, -1, 170, -1, -1, -1, 213, -1, -1,
  2252. 216, -1, -1, 180, 181, -1, -1, 223, -1, 186,
  2253. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2254. -1, -1, 199, -1, 201, -1, 242, 204, 5, -1,
  2255. -1, -1, -1, -1, -1, -1, 213, -1, -1, 216,
  2256. -1, -1, -1, -1, -1, -1, 223, -1, 264, 265,
  2257. -1, -1, -1, -1, 270, 32, 33, 34, 35, 36,
  2258. -1, 277, -1, 40, -1, 242, -1, -1, -1, -1,
  2259. -1, -1, -1, -1, -1, -1, 53, 54, 55, 56,
  2260. 57, 58, 59, 60, -1, -1, -1, 264, 265, -1,
  2261. -1, -1, 69, -1, -1, -1, -1, -1, -1, -1,
  2262. 277, -1, -1, -1, -1, -1, 83, -1, -1, -1,
  2263. -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
  2264. -1, -1, -1, -1, -1, -1, 103, -1, -1, -1,
  2265. 107, -1, -1, 110, -1, -1, -1, 114, 115, -1,
  2266. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2267. 127, 128, 129, 130, -1, 132, -1, -1, -1, -1,
  2268. -1, -1, 139, -1, -1, -1, -1, -1, -1, -1,
  2269. -1, -1, -1, -1, -1, -1, -1, -1, 155, -1,
  2270. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2271. 167, 168, 169, -1, -1, -1, 173, 174, -1, -1,
  2272. -1, 178, 179, -1, -1, -1, 183, -1, -1, -1,
  2273. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2274. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2275. 207, -1, -1, -1, -1, 212, -1, -1, -1, -1,
  2276. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  2277. -1, -1, 229, 230, -1, -1, -1, -1, -1, -1,
  2278. -1, -1, -1, -1, 241, 242, -1, -1, -1, -1,
  2279. 247, -1, -1, 250, -1, -1, -1, -1, -1, -1,
  2280. -1, 258
  2281. };
  2282. /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  2283. symbol of state STATE-NUM. */
  2284. static const yytype_uint16 yystos[] =
  2285. {
  2286. 0, 5, 32, 33, 34, 35, 36, 40, 53, 54,
  2287. 55, 56, 57, 58, 59, 60, 69, 83, 91, 92,
  2288. 103, 107, 110, 114, 115, 127, 128, 129, 130, 132,
  2289. 139, 155, 167, 168, 169, 173, 174, 178, 179, 183,
  2290. 207, 212, 229, 230, 241, 242, 247, 250, 258, 283,
  2291. 284, 285, 287, 302, 303, 304, 318, 319, 320, 322,
  2292. 327, 328, 329, 330, 331, 332, 337, 341, 344, 345,
  2293. 346, 347, 348, 349, 350, 359, 389, 390, 391, 407,
  2294. 434, 439, 441, 442, 443, 449, 454, 455, 459, 473,
  2295. 474, 504, 509, 513, 524, 528, 568, 610, 261, 261,
  2296. 261, 261, 261, 261, 261, 287, 363, 287, 352, 353,
  2297. 275, 275, 287, 435, 287, 354, 393, 275, 275, 261,
  2298. 277, 277, 277, 261, 440, 261, 261, 261, 261, 261,
  2299. 261, 261, 261, 275, 275, 277, 277, 261, 261, 275,
  2300. 261, 277, 261, 261, 261, 275, 275, 275, 0, 285,
  2301. 261, 89, 261, 27, 49, 72, 159, 187, 195, 209,
  2302. 211, 255, 461, 171, 82, 150, 160, 161, 238, 260,
  2303. 294, 294, 90, 106, 217, 286, 287, 288, 315, 316,
  2304. 317, 3, 6, 19, 21, 30, 46, 80, 88, 108,
  2305. 121, 122, 123, 133, 137, 170, 180, 181, 186, 199,
  2306. 201, 204, 213, 216, 223, 264, 265, 277, 287, 309,
  2307. 310, 311, 313, 314, 288, 309, 343, 309, 360, 275,
  2308. 351, 352, 185, 277, 287, 385, 387, 408, 409, 410,
  2309. 421, 422, 423, 424, 275, 275, 392, 393, 287, 289,
  2310. 514, 515, 309, 287, 323, 323, 323, 315, 287, 443,
  2311. 449, 309, 309, 294, 309, 309, 309, 309, 222, 253,
  2312. 294, 289, 291, 525, 526, 15, 28, 37, 66, 86,
  2313. 87, 113, 141, 166, 175, 176, 177, 184, 191, 226,
  2314. 243, 248, 251, 333, 334, 315, 324, 324, 109, 309,
  2315. 309, 163, 530, 309, 287, 304, 309, 309, 309, 569,
  2316. 85, 611, 17, 39, 41, 42, 61, 99, 100, 117,
  2317. 118, 134, 135, 136, 146, 148, 149, 164, 165, 240,
  2318. 338, 339, 270, 287, 305, 307, 309, 311, 312, 314,
  2319. 315, 316, 277, 287, 306, 307, 308, 275, 444, 444,
  2320. 444, 444, 444, 444, 277, 262, 277, 277, 277, 277,
  2321. 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
  2322. 277, 277, 277, 277, 309, 309, 309, 79, 151, 264,
  2323. 265, 266, 267, 268, 342, 263, 342, 275, 64, 65,
  2324. 355, 276, 352, 287, 411, 387, 272, 273, 274, 275,
  2325. 295, 296, 297, 298, 299, 276, 409, 264, 281, 425,
  2326. 437, 394, 276, 393, 516, 276, 515, 278, 274, 274,
  2327. 270, 275, 276, 526, 261, 261, 261, 261, 261, 261,
  2328. 261, 261, 261, 261, 261, 261, 261, 261, 261, 261,
  2329. 261, 261, 276, 334, 325, 278, 261, 529, 274, 138,
  2330. 571, 572, 261, 145, 612, 613, 261, 261, 261, 261,
  2331. 261, 261, 261, 261, 261, 261, 261, 261, 261, 261,
  2332. 261, 261, 261, 261, 276, 339, 270, 300, 301, 309,
  2333. 288, 45, 287, 442, 443, 450, 451, 452, 456, 244,
  2334. 476, 460, 476, 324, 315, 309, 309, 309, 309, 309,
  2335. 309, 309, 309, 309, 309, 309, 309, 309, 309, 309,
  2336. 309, 315, 309, 278, 309, 309, 309, 309, 309, 309,
  2337. 156, 364, 261, 261, 50, 51, 356, 275, 278, 309,
  2338. 297, 298, 423, 287, 395, 426, 265, 280, 413, 414,
  2339. 415, 416, 417, 418, 419, 62, 157, 192, 233, 234,
  2340. 276, 396, 270, 324, 324, 287, 527, 294, 335, 335,
  2341. 335, 29, 294, 336, 335, 335, 309, 335, 335, 335,
  2342. 335, 309, 335, 336, 335, 335, 335, 336, 336, 274,
  2343. 278, 309, 111, 215, 227, 531, 532, 533, 534, 324,
  2344. 261, 245, 573, 574, 315, 261, 120, 613, 616, 74,
  2345. 101, 257, 340, 340, 340, 309, 340, 309, 340, 309,
  2346. 340, 340, 309, 340, 340, 340, 340, 340, 340, 340,
  2347. 309, 271, 274, 274, 261, 159, 446, 451, 202, 457,
  2348. 275, 225, 506, 44, 63, 96, 120, 140, 144, 158,
  2349. 193, 194, 205, 206, 252, 462, 464, 465, 466, 467,
  2350. 468, 469, 470, 70, 479, 325, 278, 278, 278, 278,
  2351. 278, 278, 278, 278, 278, 278, 274, 274, 274, 274,
  2352. 278, 278, 278, 278, 263, 261, 361, 309, 309, 261,
  2353. 261, 224, 357, 412, 421, 276, 295, 413, 265, 279,
  2354. 387, 279, 387, 153, 424, 427, 428, 261, 261, 261,
  2355. 261, 261, 4, 38, 142, 143, 189, 236, 249, 276,
  2356. 397, 398, 399, 401, 402, 406, 287, 519, 325, 278,
  2357. 271, 520, 305, 312, 316, 326, 261, 261, 261, 98,
  2358. 203, 275, 535, 536, 537, 540, 541, 325, 18, 31,
  2359. 67, 68, 152, 261, 246, 575, 576, 287, 614, 615,
  2360. 261, 256, 617, 231, 301, 315, 321, 292, 306, 289,
  2361. 198, 200, 235, 276, 445, 447, 448, 261, 462, 292,
  2362. 477, 478, 275, 505, 261, 261, 275, 261, 261, 275,
  2363. 261, 261, 261, 275, 446, 464, 261, 275, 475, 278,
  2364. 309, 309, 309, 309, 309, 306, 218, 365, 366, 309,
  2365. 309, 124, 358, 276, 421, 413, 414, 414, 264, 270,
  2366. 429, 430, 431, 309, 239, 309, 438, 309, 309, 309,
  2367. 387, 275, 275, 261, 231, 261, 400, 271, 278, 221,
  2368. 249, 276, 402, 521, 522, 523, 306, 309, 306, 261,
  2369. 261, 538, 276, 536, 278, 18, 25, 261, 84, 131,
  2370. 145, 570, 577, 578, 579, 580, 597, 264, 292, 261,
  2371. 254, 618, 309, 278, 274, 444, 261, 261, 261, 48,
  2372. 71, 119, 188, 208, 210, 277, 289, 291, 458, 446,
  2373. 276, 477, 306, 507, 508, 446, 309, 309, 126, 292,
  2374. 387, 387, 471, 472, 309, 287, 436, 309, 125, 445,
  2375. 287, 307, 312, 463, 306, 480, 481, 482, 278, 278,
  2376. 278, 278, 263, 270, 202, 366, 369, 261, 276, 428,
  2377. 43, 279, 280, 305, 312, 316, 432, 433, 263, 420,
  2378. 261, 287, 386, 403, 405, 404, 405, 309, 14, 387,
  2379. 517, 261, 261, 152, 294, 315, 539, 294, 47, 81,
  2380. 220, 237, 265, 277, 310, 542, 543, 544, 545, 18,
  2381. 25, 261, 275, 275, 276, 577, 614, 287, 292, 293,
  2382. 312, 261, 111, 215, 227, 619, 215, 292, 453, 292,
  2383. 293, 292, 458, 264, 265, 266, 445, 276, 507, 445,
  2384. 261, 292, 276, 472, 261, 276, 481, 60, 196, 446,
  2385. 483, 484, 499, 309, 309, 367, 368, 275, 219, 373,
  2386. 309, 287, 388, 433, 433, 271, 274, 287, 309, 295,
  2387. 261, 276, 405, 276, 405, 295, 275, 395, 309, 546,
  2388. 270, 277, 547, 544, 544, 274, 276, 263, 264, 265,
  2389. 266, 267, 567, 315, 112, 147, 228, 598, 599, 600,
  2390. 603, 606, 112, 147, 228, 581, 582, 583, 589, 593,
  2391. 293, 261, 261, 261, 276, 309, 20, 512, 446, 274,
  2392. 278, 458, 458, 458, 309, 309, 275, 275, 276, 263,
  2393. 271, 274, 218, 370, 372, 275, 362, 287, 432, 309,
  2394. 76, 77, 78, 102, 104, 105, 488, 489, 490, 491,
  2395. 495, 496, 497, 498, 270, 309, 544, 270, 278, 543,
  2396. 261, 264, 279, 548, 315, 544, 544, 544, 544, 275,
  2397. 275, 275, 276, 599, 275, 275, 275, 276, 582, 306,
  2398. 309, 306, 271, 261, 510, 445, 309, 214, 276, 214,
  2399. 500, 501, 519, 485, 309, 261, 368, 270, 276, 372,
  2400. 374, 182, 376, 271, 261, 261, 489, 518, 261, 261,
  2401. 218, 286, 287, 550, 551, 552, 553, 554, 555, 556,
  2402. 558, 271, 278, 552, 279, 279, 279, 288, 549, 8,
  2403. 97, 190, 607, 608, 609, 601, 604, 605, 609, 8,
  2404. 162, 172, 594, 595, 596, 585, 590, 591, 596, 309,
  2405. 482, 261, 261, 276, 501, 275, 9, 22, 26, 93,
  2406. 116, 197, 232, 309, 486, 487, 488, 492, 493, 494,
  2407. 387, 309, 371, 276, 287, 375, 275, 276, 270, 270,
  2408. 520, 287, 292, 275, 274, 299, 274, 274, 271, 271,
  2409. 279, 276, 608, 281, 13, 276, 286, 289, 290, 291,
  2410. 602, 276, 605, 281, 276, 595, 281, 14, 276, 286,
  2411. 287, 586, 587, 276, 591, 281, 511, 309, 309, 502,
  2412. 231, 276, 274, 271, 274, 261, 377, 493, 493, 276,
  2413. 274, 388, 259, 289, 291, 564, 564, 564, 12, 306,
  2414. 592, 261, 584, 584, 584, 16, 306, 588, 592, 584,
  2415. 584, 588, 446, 276, 44, 488, 309, 494, 261, 309,
  2416. 306, 276, 287, 378, 271, 271, 292, 559, 274, 565,
  2417. 565, 565, 309, 445, 261, 503, 292, 275, 295, 7,
  2418. 10, 11, 23, 24, 75, 94, 95, 566, 309, 520,
  2419. 52, 287, 379, 380, 381, 382, 383, 263, 276, 276,
  2420. 73, 154, 384, 276, 380, 263, 262, 387, 557, 387,
  2421. 309, 383, 270, 560, 287, 561, 562, 563, 276, 262,
  2422. 271, 384, 274, 562, 557, 564
  2423. };
  2424. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  2425. static const yytype_uint16 yyr1[] =
  2426. {
  2427. 0, 282, 283, 284, 284, 285, 285, 285, 285, 285,
  2428. 285, 285, 285, 285, 285, 285, 285, 285, 285, 285,
  2429. 285, 285, 285, 285, 285, 286, 287, 288, 289, 290,
  2430. 290, 291, 292, 293, 293, 294, 294, 294, 294, 294,
  2431. 294, 295, 295, 295, 295, 296, 296, 296, 296, 297,
  2432. 298, 299, 300, 300, 301, 301, 302, 303, 303, 303,
  2433. 303, 304, 305, 306, 306, 307, 308, 309, 309, 310,
  2434. 310, 311, 311, 312, 312, 313, 314, 314, 314, 314,
  2435. 314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
  2436. 314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
  2437. 314, 314, 314, 314, 314, 314, 315, 315, 316, 316,
  2438. 316, 316, 317, 318, 318, 318, 318, 318, 318, 318,
  2439. 319, 320, 321, 322, 323, 324, 325, 325, 326, 326,
  2440. 326, 327, 328, 329, 330, 331, 332, 333, 333, 334,
  2441. 334, 334, 334, 334, 334, 334, 334, 334, 334, 334,
  2442. 334, 334, 334, 334, 334, 334, 334, 334, 335, 336,
  2443. 336, 337, 338, 338, 339, 339, 339, 339, 339, 339,
  2444. 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
  2445. 339, 339, 340, 340, 340, 341, 341, 341, 341, 341,
  2446. 342, 342, 342, 343, 343, 343, 343, 344, 344, 344,
  2447. 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
  2448. 344, 344, 344, 345, 345, 345, 345, 346, 347, 347,
  2449. 347, 348, 348, 348, 349, 350, 351, 351, 352, 353,
  2450. 354, 355, 355, 356, 356, 356, 357, 357, 358, 358,
  2451. 360, 361, 362, 359, 363, 364, 365, 365, 366, 367,
  2452. 367, 368, 368, 369, 370, 370, 371, 371, 372, 373,
  2453. 374, 374, 375, 376, 377, 377, 378, 379, 379, 380,
  2454. 381, 381, 382, 382, 383, 384, 384, 385, 386, 387,
  2455. 388, 389, 389, 390, 391, 392, 392, 394, 393, 395,
  2456. 396, 396, 397, 397, 397, 398, 398, 398, 399, 399,
  2457. 399, 400, 400, 401, 402, 402, 403, 403, 404, 404,
  2458. 405, 406, 407, 408, 408, 409, 409, 410, 411, 412,
  2459. 412, 413, 413, 414, 415, 416, 417, 418, 419, 419,
  2460. 419, 419, 420, 420, 421, 422, 422, 423, 424, 424,
  2461. 425, 425, 426, 427, 427, 428, 428, 429, 429, 430,
  2462. 431, 432, 432, 432, 433, 433, 433, 433, 434, 435,
  2463. 436, 437, 437, 437, 437, 437, 437, 438, 438, 440,
  2464. 439, 441, 442, 442, 442, 442, 442, 443, 444, 445,
  2465. 446, 446, 447, 448, 448, 448, 449, 450, 450, 451,
  2466. 451, 453, 452, 454, 454, 456, 455, 457, 457, 457,
  2467. 457, 457, 457, 457, 457, 458, 458, 458, 458, 458,
  2468. 460, 459, 461, 461, 461, 461, 461, 462, 462, 463,
  2469. 464, 464, 464, 464, 464, 464, 464, 464, 464, 465,
  2470. 465, 466, 466, 466, 466, 467, 467, 468, 469, 470,
  2471. 470, 471, 471, 472, 473, 475, 474, 476, 477, 478,
  2472. 478, 479, 480, 480, 481, 482, 482, 483, 483, 485,
  2473. 484, 486, 486, 487, 487, 487, 487, 487, 487, 487,
  2474. 488, 488, 489, 489, 489, 489, 490, 491, 492, 493,
  2475. 493, 494, 494, 494, 495, 496, 496, 497, 498, 498,
  2476. 499, 500, 500, 502, 503, 501, 505, 504, 506, 507,
  2477. 508, 508, 510, 511, 509, 512, 512, 513, 514, 514,
  2478. 516, 517, 518, 515, 519, 520, 520, 521, 521, 521,
  2479. 522, 523, 524, 525, 525, 527, 526, 529, 528, 530,
  2480. 530, 531, 531, 531, 532, 533, 534, 535, 535, 536,
  2481. 536, 536, 538, 537, 539, 539, 539, 540, 541, 542,
  2482. 542, 543, 544, 544, 544, 544, 544, 544, 544, 544,
  2483. 544, 546, 545, 545, 547, 545, 548, 548, 548, 548,
  2484. 548, 549, 550, 551, 552, 552, 552, 552, 553, 554,
  2485. 555, 556, 557, 559, 558, 560, 560, 561, 561, 562,
  2486. 563, 564, 564, 564, 565, 565, 566, 566, 566, 566,
  2487. 566, 566, 566, 566, 567, 567, 569, 568, 570, 570,
  2488. 571, 571, 572, 572, 572, 572, 572, 573, 573, 574,
  2489. 574, 575, 575, 576, 576, 577, 577, 578, 578, 579,
  2490. 580, 581, 581, 582, 582, 582, 583, 584, 584, 585,
  2491. 585, 586, 586, 587, 587, 588, 588, 589, 590, 590,
  2492. 591, 592, 592, 593, 594, 594, 595, 596, 596, 596,
  2493. 597, 598, 598, 599, 599, 599, 600, 601, 601, 602,
  2494. 602, 602, 603, 604, 604, 605, 606, 607, 607, 608,
  2495. 609, 609, 609, 610, 611, 612, 612, 613, 614, 615,
  2496. 615, 616, 617, 618, 619, 619, 619, 619
  2497. };
  2498. /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
  2499. static const yytype_uint8 yyr2[] =
  2500. {
  2501. 0, 2, 1, 1, 2, 1, 1, 1, 1, 1,
  2502. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2503. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2504. 1, 4, 1, 1, 1, 1, 1, 1, 1, 1,
  2505. 1, 0, 1, 1, 1, 1, 1, 2, 2, 1,
  2506. 1, 3, 1, 3, 1, 7, 3, 3, 3, 3,
  2507. 3, 1, 1, 1, 1, 3, 1, 1, 1, 1,
  2508. 1, 1, 1, 1, 1, 1, 3, 4, 4, 4,
  2509. 6, 6, 6, 4, 4, 4, 4, 4, 4, 4,
  2510. 4, 4, 4, 6, 1, 1, 1, 1, 4, 3,
  2511. 3, 3, 3, 3, 2, 2, 1, 1, 1, 1,
  2512. 3, 5, 1, 1, 1, 1, 1, 1, 1, 1,
  2513. 7, 1, 1, 4, 1, 1, 0, 3, 1, 1,
  2514. 1, 5, 7, 7, 4, 6, 4, 1, 2, 3,
  2515. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  2516. 3, 3, 3, 3, 3, 3, 3, 3, 1, 1,
  2517. 1, 4, 1, 2, 3, 3, 3, 3, 3, 3,
  2518. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  2519. 3, 3, 1, 1, 1, 3, 3, 4, 3, 4,
  2520. 0, 1, 1, 1, 3, 5, 7, 3, 3, 3,
  2521. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  2522. 3, 3, 3, 3, 3, 3, 3, 3, 1, 1,
  2523. 1, 1, 1, 1, 2, 4, 1, 2, 7, 1,
  2524. 1, 3, 3, 0, 3, 3, 0, 1, 0, 3,
  2525. 0, 0, 0, 12, 1, 3, 1, 2, 6, 1,
  2526. 3, 1, 3, 4, 1, 2, 1, 3, 6, 4,
  2527. 0, 2, 3, 4, 0, 2, 4, 1, 2, 3,
  2528. 1, 1, 1, 3, 3, 1, 1, 1, 2, 2,
  2529. 1, 1, 1, 2, 4, 1, 2, 0, 5, 1,
  2530. 0, 2, 1, 1, 1, 3, 4, 4, 1, 1,
  2531. 1, 1, 1, 1, 4, 4, 1, 2, 1, 2,
  2532. 3, 3, 4, 1, 2, 1, 1, 5, 1, 1,
  2533. 2, 1, 2, 2, 2, 2, 3, 3, 1, 1,
  2534. 1, 1, 0, 2, 6, 1, 3, 1, 1, 3,
  2535. 0, 2, 2, 1, 3, 1, 1, 1, 1, 3,
  2536. 5, 1, 2, 2, 1, 1, 1, 3, 5, 1,
  2537. 1, 0, 4, 4, 4, 4, 4, 1, 1, 0,
  2538. 3, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2539. 0, 2, 1, 3, 3, 5, 6, 1, 2, 1,
  2540. 1, 0, 7, 1, 1, 0, 8, 3, 3, 3,
  2541. 3, 3, 3, 3, 3, 1, 3, 3, 3, 3,
  2542. 0, 7, 1, 1, 1, 1, 1, 1, 2, 1,
  2543. 3, 3, 1, 3, 3, 3, 3, 3, 4, 1,
  2544. 1, 1, 1, 1, 1, 3, 6, 9, 12, 3,
  2545. 3, 1, 2, 2, 1, 0, 9, 4, 1, 1,
  2546. 2, 4, 1, 2, 1, 0, 2, 1, 1, 0,
  2547. 5, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2548. 1, 2, 1, 1, 1, 1, 5, 5, 1, 1,
  2549. 3, 1, 3, 1, 3, 1, 1, 5, 1, 1,
  2550. 4, 1, 2, 0, 0, 7, 0, 8, 4, 1,
  2551. 1, 2, 0, 0, 14, 0, 3, 4, 1, 2,
  2552. 0, 0, 0, 11, 1, 0, 2, 1, 1, 1,
  2553. 3, 3, 4, 1, 2, 0, 5, 0, 7, 0,
  2554. 3, 1, 1, 1, 3, 3, 3, 1, 2, 1,
  2555. 1, 1, 0, 6, 1, 1, 1, 3, 3, 1,
  2556. 3, 2, 1, 1, 3, 3, 3, 3, 3, 2,
  2557. 4, 0, 5, 4, 0, 5, 1, 2, 2, 3,
  2558. 2, 1, 1, 2, 1, 1, 1, 1, 4, 4,
  2559. 4, 1, 1, 0, 11, 0, 3, 1, 3, 3,
  2560. 1, 1, 1, 1, 0, 2, 1, 1, 1, 1,
  2561. 1, 1, 1, 1, 0, 2, 0, 8, 1, 2,
  2562. 0, 1, 3, 3, 3, 3, 3, 0, 1, 3,
  2563. 3, 0, 1, 3, 3, 1, 1, 1, 1, 3,
  2564. 4, 1, 2, 1, 1, 1, 4, 2, 0, 2,
  2565. 0, 2, 2, 1, 1, 1, 1, 4, 1, 2,
  2566. 3, 1, 1, 4, 1, 2, 3, 1, 1, 1,
  2567. 4, 1, 2, 1, 1, 1, 4, 2, 0, 2,
  2568. 2, 2, 4, 1, 2, 3, 4, 1, 2, 3,
  2569. 1, 1, 1, 9, 3, 1, 2, 3, 1, 1,
  2570. 3, 3, 3, 3, 0, 3, 3, 3
  2571. };
  2572. #define yyerrok (yyerrstatus = 0)
  2573. #define yyclearin (yychar = YYEMPTY)
  2574. #define YYEMPTY (-2)
  2575. #define YYEOF 0
  2576. #define YYACCEPT goto yyacceptlab
  2577. #define YYABORT goto yyabortlab
  2578. #define YYERROR goto yyerrorlab
  2579. #define YYRECOVERING() (!!yyerrstatus)
  2580. #define YYBACKUP(Token, Value) \
  2581. do \
  2582. if (yychar == YYEMPTY) \
  2583. { \
  2584. yychar = (Token); \
  2585. yylval = (Value); \
  2586. YYPOPSTACK (yylen); \
  2587. yystate = *yyssp; \
  2588. goto yybackup; \
  2589. } \
  2590. else \
  2591. { \
  2592. yyerror (parse_state, scanner, YY_("syntax error: cannot back up")); \
  2593. YYERROR; \
  2594. } \
  2595. while (0)
  2596. /* Error token number */
  2597. #define YYTERROR 1
  2598. #define YYERRCODE 256
  2599. /* Enable debugging if requested. */
  2600. #if YYDEBUG
  2601. # ifndef YYFPRINTF
  2602. # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  2603. # define YYFPRINTF fprintf
  2604. # endif
  2605. # define YYDPRINTF(Args) \
  2606. do { \
  2607. if (yydebug) \
  2608. YYFPRINTF Args; \
  2609. } while (0)
  2610. /* This macro is provided for backward compatibility. */
  2611. #ifndef YY_LOCATION_PRINT
  2612. # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  2613. #endif
  2614. # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  2615. do { \
  2616. if (yydebug) \
  2617. { \
  2618. YYFPRINTF (stderr, "%s ", Title); \
  2619. yy_symbol_print (stderr, \
  2620. Type, Value, parse_state, scanner); \
  2621. YYFPRINTF (stderr, "\n"); \
  2622. } \
  2623. } while (0)
  2624. /*----------------------------------------.
  2625. | Print this symbol's value on YYOUTPUT. |
  2626. `----------------------------------------*/
  2627. static void
  2628. yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, struct mdlparse_vars *parse_state, yyscan_t scanner)
  2629. {
  2630. FILE *yyo = yyoutput;
  2631. YYUSE (yyo);
  2632. YYUSE (parse_state);
  2633. YYUSE (scanner);
  2634. if (!yyvaluep)
  2635. return;
  2636. # ifdef YYPRINT
  2637. if (yytype < YYNTOKENS)
  2638. YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  2639. # endif
  2640. YYUSE (yytype);
  2641. }
  2642. /*--------------------------------.
  2643. | Print this symbol on YYOUTPUT. |
  2644. `--------------------------------*/
  2645. static void
  2646. yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, struct mdlparse_vars *parse_state, yyscan_t scanner)
  2647. {
  2648. YYFPRINTF (yyoutput, "%s %s (",
  2649. yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
  2650. yy_symbol_value_print (yyoutput, yytype, yyvaluep, parse_state, scanner);
  2651. YYFPRINTF (yyoutput, ")");
  2652. }
  2653. /*------------------------------------------------------------------.
  2654. | yy_stack_print -- Print the state stack from its BOTTOM up to its |
  2655. | TOP (included). |
  2656. `------------------------------------------------------------------*/
  2657. static void
  2658. yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
  2659. {
  2660. YYFPRINTF (stderr, "Stack now");
  2661. for (; yybottom <= yytop; yybottom++)
  2662. {
  2663. int yybot = *yybottom;
  2664. YYFPRINTF (stderr, " %d", yybot);
  2665. }
  2666. YYFPRINTF (stderr, "\n");
  2667. }
  2668. # define YY_STACK_PRINT(Bottom, Top) \
  2669. do { \
  2670. if (yydebug) \
  2671. yy_stack_print ((Bottom), (Top)); \
  2672. } while (0)
  2673. /*------------------------------------------------.
  2674. | Report that the YYRULE is going to be reduced. |
  2675. `------------------------------------------------*/
  2676. static void
  2677. yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, struct mdlparse_vars *parse_state, yyscan_t scanner)
  2678. {
  2679. unsigned long int yylno = yyrline[yyrule];
  2680. int yynrhs = yyr2[yyrule];
  2681. int yyi;
  2682. YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
  2683. yyrule - 1, yylno);
  2684. /* The symbols being reduced. */
  2685. for (yyi = 0; yyi < yynrhs; yyi++)
  2686. {
  2687. YYFPRINTF (stderr, " $%d = ", yyi + 1);
  2688. yy_symbol_print (stderr,
  2689. yystos[yyssp[yyi + 1 - yynrhs]],
  2690. &(yyvsp[(yyi + 1) - (yynrhs)])
  2691. , parse_state, scanner);
  2692. YYFPRINTF (stderr, "\n");
  2693. }
  2694. }
  2695. # define YY_REDUCE_PRINT(Rule) \
  2696. do { \
  2697. if (yydebug) \
  2698. yy_reduce_print (yyssp, yyvsp, Rule, parse_state, scanner); \
  2699. } while (0)
  2700. /* Nonzero means print parse trace. It is left uninitialized so that
  2701. multiple parsers can coexist. */
  2702. int yydebug;
  2703. #else /* !YYDEBUG */
  2704. # define YYDPRINTF(Args)
  2705. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  2706. # define YY_STACK_PRINT(Bottom, Top)
  2707. # define YY_REDUCE_PRINT(Rule)
  2708. #endif /* !YYDEBUG */
  2709. /* YYINITDEPTH -- initial size of the parser's stacks. */
  2710. #ifndef YYINITDEPTH
  2711. # define YYINITDEPTH 200
  2712. #endif
  2713. /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  2714. if the built-in stack extension method is used).
  2715. Do not make this value too large; the results are undefined if
  2716. YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
  2717. evaluated with infinite-precision integer arithmetic. */
  2718. #ifndef YYMAXDEPTH
  2719. # define YYMAXDEPTH 10000
  2720. #endif
  2721. #if YYERROR_VERBOSE
  2722. # ifndef yystrlen
  2723. # if defined __GLIBC__ && defined _STRING_H
  2724. # define yystrlen strlen
  2725. # else
  2726. /* Return the length of YYSTR. */
  2727. static YYSIZE_T
  2728. yystrlen (const char *yystr)
  2729. {
  2730. YYSIZE_T yylen;
  2731. for (yylen = 0; yystr[yylen]; yylen++)
  2732. continue;
  2733. return yylen;
  2734. }
  2735. # endif
  2736. # endif
  2737. # ifndef yystpcpy
  2738. # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
  2739. # define yystpcpy stpcpy
  2740. # else
  2741. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  2742. YYDEST. */
  2743. static char *
  2744. yystpcpy (char *yydest, const char *yysrc)
  2745. {
  2746. char *yyd = yydest;
  2747. const char *yys = yysrc;
  2748. while ((*yyd++ = *yys++) != '\0')
  2749. continue;
  2750. return yyd - 1;
  2751. }
  2752. # endif
  2753. # endif
  2754. # ifndef yytnamerr
  2755. /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
  2756. quotes and backslashes, so that it's suitable for yyerror. The
  2757. heuristic is that double-quoting is unnecessary unless the string
  2758. contains an apostrophe, a comma, or backslash (other than
  2759. backslash-backslash). YYSTR is taken from yytname. If YYRES is
  2760. null, do not copy; instead, return the length of what the result
  2761. would have been. */
  2762. static YYSIZE_T
  2763. yytnamerr (char *yyres, const char *yystr)
  2764. {
  2765. if (*yystr == '"')
  2766. {
  2767. YYSIZE_T yyn = 0;
  2768. char const *yyp = yystr;
  2769. for (;;)
  2770. switch (*++yyp)
  2771. {
  2772. case '\'':
  2773. case ',':
  2774. goto do_not_strip_quotes;
  2775. case '\\':
  2776. if (*++yyp != '\\')
  2777. goto do_not_strip_quotes;
  2778. /* Fall through. */
  2779. default:
  2780. if (yyres)
  2781. yyres[yyn] = *yyp;
  2782. yyn++;
  2783. break;
  2784. case '"':
  2785. if (yyres)
  2786. yyres[yyn] = '\0';
  2787. return yyn;
  2788. }
  2789. do_not_strip_quotes: ;
  2790. }
  2791. if (! yyres)
  2792. return yystrlen (yystr);
  2793. return yystpcpy (yyres, yystr) - yyres;
  2794. }
  2795. # endif
  2796. /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
  2797. about the unexpected token YYTOKEN for the state stack whose top is
  2798. YYSSP.
  2799. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
  2800. not large enough to hold the message. In that case, also set
  2801. *YYMSG_ALLOC to the required number of bytes. Return 2 if the
  2802. required number of bytes is too large to store. */
  2803. static int
  2804. yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
  2805. yytype_int16 *yyssp, int yytoken)
  2806. {
  2807. YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
  2808. YYSIZE_T yysize = yysize0;
  2809. enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  2810. /* Internationalized format string. */
  2811. const char *yyformat = YY_NULLPTR;
  2812. /* Arguments of yyformat. */
  2813. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  2814. /* Number of reported tokens (one for the "unexpected", one per
  2815. "expected"). */
  2816. int yycount = 0;
  2817. /* There are many possibilities here to consider:
  2818. - If this state is a consistent state with a default action, then
  2819. the only way this function was invoked is if the default action
  2820. is an error action. In that case, don't check for expected
  2821. tokens because there are none.
  2822. - The only way there can be no lookahead present (in yychar) is if
  2823. this state is a consistent state with a default action. Thus,
  2824. detecting the absence of a lookahead is sufficient to determine
  2825. that there is no unexpected or expected token to report. In that
  2826. case, just report a simple "syntax error".
  2827. - Don't assume there isn't a lookahead just because this state is a
  2828. consistent state with a default action. There might have been a
  2829. previous inconsistent state, consistent state with a non-default
  2830. action, or user semantic action that manipulated yychar.
  2831. - Of course, the expected token list depends on states to have
  2832. correct lookahead information, and it depends on the parser not
  2833. to perform extra reductions after fetching a lookahead from the
  2834. scanner and before detecting a syntax error. Thus, state merging
  2835. (from LALR or IELR) and default reductions corrupt the expected
  2836. token list. However, the list is correct for canonical LR with
  2837. one exception: it will still contain any token that will not be
  2838. accepted due to an error action in a later state.
  2839. */
  2840. if (yytoken != YYEMPTY)
  2841. {
  2842. int yyn = yypact[*yyssp];
  2843. yyarg[yycount++] = yytname[yytoken];
  2844. if (!yypact_value_is_default (yyn))
  2845. {
  2846. /* Start YYX at -YYN if negative to avoid negative indexes in
  2847. YYCHECK. In other words, skip the first -YYN actions for
  2848. this state because they are default actions. */
  2849. int yyxbegin = yyn < 0 ? -yyn : 0;
  2850. /* Stay within bounds of both yycheck and yytname. */
  2851. int yychecklim = YYLAST - yyn + 1;
  2852. int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  2853. int yyx;
  2854. for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  2855. if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
  2856. && !yytable_value_is_error (yytable[yyx + yyn]))
  2857. {
  2858. if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
  2859. {
  2860. yycount = 1;
  2861. yysize = yysize0;
  2862. break;
  2863. }
  2864. yyarg[yycount++] = yytname[yyx];
  2865. {
  2866. YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
  2867. if (! (yysize <= yysize1
  2868. && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  2869. return 2;
  2870. yysize = yysize1;
  2871. }
  2872. }
  2873. }
  2874. }
  2875. switch (yycount)
  2876. {
  2877. # define YYCASE_(N, S) \
  2878. case N: \
  2879. yyformat = S; \
  2880. break
  2881. YYCASE_(0, YY_("syntax error"));
  2882. YYCASE_(1, YY_("syntax error, unexpected %s"));
  2883. YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
  2884. YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
  2885. YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
  2886. YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
  2887. # undef YYCASE_
  2888. }
  2889. {
  2890. YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
  2891. if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  2892. return 2;
  2893. yysize = yysize1;
  2894. }
  2895. if (*yymsg_alloc < yysize)
  2896. {
  2897. *yymsg_alloc = 2 * yysize;
  2898. if (! (yysize <= *yymsg_alloc
  2899. && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
  2900. *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
  2901. return 1;
  2902. }
  2903. /* Avoid sprintf, as that infringes on the user's name space.
  2904. Don't have undefined behavior even if the translation
  2905. produced a string with the wrong number of "%s"s. */
  2906. {
  2907. char *yyp = *yymsg;
  2908. int yyi = 0;
  2909. while ((*yyp = *yyformat) != '\0')
  2910. if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
  2911. {
  2912. yyp += yytnamerr (yyp, yyarg[yyi++]);
  2913. yyformat += 2;
  2914. }
  2915. else
  2916. {
  2917. yyp++;
  2918. yyformat++;
  2919. }
  2920. }
  2921. return 0;
  2922. }
  2923. #endif /* YYERROR_VERBOSE */
  2924. /*-----------------------------------------------.
  2925. | Release the memory associated to this symbol. |
  2926. `-----------------------------------------------*/
  2927. static void
  2928. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, struct mdlparse_vars *parse_state, yyscan_t scanner)
  2929. {
  2930. YYUSE (yyvaluep);
  2931. YYUSE (parse_state);
  2932. YYUSE (scanner);
  2933. if (!yymsg)
  2934. yymsg = "Deleting";
  2935. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  2936. YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  2937. YYUSE (yytype);
  2938. YY_IGNORE_MAYBE_UNINITIALIZED_END
  2939. }
  2940. /*----------.
  2941. | yyparse. |
  2942. `----------*/
  2943. int
  2944. yyparse (struct mdlparse_vars *parse_state, yyscan_t scanner)
  2945. {
  2946. /* The lookahead symbol. */
  2947. int yychar;
  2948. /* The semantic value of the lookahead symbol. */
  2949. /* Default value used for initialization, for pacifying older GCCs
  2950. or non-GCC compilers. */
  2951. YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
  2952. YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
  2953. /* Number of syntax errors so far. */
  2954. int yynerrs;
  2955. int yystate;
  2956. /* Number of tokens to shift before error messages enabled. */
  2957. int yyerrstatus;
  2958. /* The stacks and their tools:
  2959. 'yyss': related to states.
  2960. 'yyvs': related to semantic values.
  2961. Refer to the stacks through separate pointers, to allow yyoverflow
  2962. to reallocate them elsewhere. */
  2963. /* The state stack. */
  2964. yytype_int16 yyssa[YYINITDEPTH];
  2965. yytype_int16 *yyss;
  2966. yytype_int16 *yyssp;
  2967. /* The semantic value stack. */
  2968. YYSTYPE yyvsa[YYINITDEPTH];
  2969. YYSTYPE *yyvs;
  2970. YYSTYPE *yyvsp;
  2971. YYSIZE_T yystacksize;
  2972. int yyn;
  2973. int yyresult;
  2974. /* Lookahead token as an internal (translated) token number. */
  2975. int yytoken = 0;
  2976. /* The variables used to return semantic value and location from the
  2977. action routines. */
  2978. YYSTYPE yyval;
  2979. #if YYERROR_VERBOSE
  2980. /* Buffer for error messages, and its allocated size. */
  2981. char yymsgbuf[128];
  2982. char *yymsg = yymsgbuf;
  2983. YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
  2984. #endif
  2985. #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
  2986. /* The number of symbols on the RHS of the reduced rule.
  2987. Keep to zero when no symbol should be popped. */
  2988. int yylen = 0;
  2989. yyssp = yyss = yyssa;
  2990. yyvsp = yyvs = yyvsa;
  2991. yystacksize = YYINITDEPTH;
  2992. YYDPRINTF ((stderr, "Starting parse\n"));
  2993. yystate = 0;
  2994. yyerrstatus = 0;
  2995. yynerrs = 0;
  2996. yychar = YYEMPTY; /* Cause a token to be read. */
  2997. goto yysetstate;
  2998. /*------------------------------------------------------------.
  2999. | yynewstate -- Push a new state, which is found in yystate. |
  3000. `------------------------------------------------------------*/
  3001. yynewstate:
  3002. /* In all cases, when you get here, the value and location stacks
  3003. have just been pushed. So pushing a state here evens the stacks. */
  3004. yyssp++;
  3005. yysetstate:
  3006. *yyssp = yystate;
  3007. if (yyss + yystacksize - 1 <= yyssp)
  3008. {
  3009. /* Get the current used size of the three stacks, in elements. */
  3010. YYSIZE_T yysize = yyssp - yyss + 1;
  3011. #ifdef yyoverflow
  3012. {
  3013. /* Give user a chance to reallocate the stack. Use copies of
  3014. these so that the &'s don't force the real ones into
  3015. memory. */
  3016. YYSTYPE *yyvs1 = yyvs;
  3017. yytype_int16 *yyss1 = yyss;
  3018. /* Each stack pointer address is followed by the size of the
  3019. data in use in that stack, in bytes. This used to be a
  3020. conditional around just the two extra args, but that might
  3021. be undefined if yyoverflow is a macro. */
  3022. yyoverflow (YY_("memory exhausted"),
  3023. &yyss1, yysize * sizeof (*yyssp),
  3024. &yyvs1, yysize * sizeof (*yyvsp),
  3025. &yystacksize);
  3026. yyss = yyss1;
  3027. yyvs = yyvs1;
  3028. }
  3029. #else /* no yyoverflow */
  3030. # ifndef YYSTACK_RELOCATE
  3031. goto yyexhaustedlab;
  3032. # else
  3033. /* Extend the stack our own way. */
  3034. if (YYMAXDEPTH <= yystacksize)
  3035. goto yyexhaustedlab;
  3036. yystacksize *= 2;
  3037. if (YYMAXDEPTH < yystacksize)
  3038. yystacksize = YYMAXDEPTH;
  3039. {
  3040. yytype_int16 *yyss1 = yyss;
  3041. union yyalloc *yyptr =
  3042. (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  3043. if (! yyptr)
  3044. goto yyexhaustedlab;
  3045. YYSTACK_RELOCATE (yyss_alloc, yyss);
  3046. YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  3047. # undef YYSTACK_RELOCATE
  3048. if (yyss1 != yyssa)
  3049. YYSTACK_FREE (yyss1);
  3050. }
  3051. # endif
  3052. #endif /* no yyoverflow */
  3053. yyssp = yyss + yysize - 1;
  3054. yyvsp = yyvs + yysize - 1;
  3055. YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  3056. (unsigned long int) yystacksize));
  3057. if (yyss + yystacksize - 1 <= yyssp)
  3058. YYABORT;
  3059. }
  3060. YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  3061. if (yystate == YYFINAL)
  3062. YYACCEPT;
  3063. goto yybackup;
  3064. /*-----------.
  3065. | yybackup. |
  3066. `-----------*/
  3067. yybackup:
  3068. /* Do appropriate processing given the current state. Read a
  3069. lookahead token if we need one and don't already have one. */
  3070. /* First try to decide what to do without reference to lookahead token. */
  3071. yyn = yypact[yystate];
  3072. if (yypact_value_is_default (yyn))
  3073. goto yydefault;
  3074. /* Not known => get a lookahead token if don't already have one. */
  3075. /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  3076. if (yychar == YYEMPTY)
  3077. {
  3078. YYDPRINTF ((stderr, "Reading a token: "));
  3079. yychar = yylex (&yylval, parse_state, scanner);
  3080. }
  3081. if (yychar <= YYEOF)
  3082. {
  3083. yychar = yytoken = YYEOF;
  3084. YYDPRINTF ((stderr, "Now at end of input.\n"));
  3085. }
  3086. else
  3087. {
  3088. yytoken = YYTRANSLATE (yychar);
  3089. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  3090. }
  3091. /* If the proper action on seeing token YYTOKEN is to reduce or to
  3092. detect an error, take that action. */
  3093. yyn += yytoken;
  3094. if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  3095. goto yydefault;
  3096. yyn = yytable[yyn];
  3097. if (yyn <= 0)
  3098. {
  3099. if (yytable_value_is_error (yyn))
  3100. goto yyerrlab;
  3101. yyn = -yyn;
  3102. goto yyreduce;
  3103. }
  3104. /* Count tokens shifted since error; after three, turn off error
  3105. status. */
  3106. if (yyerrstatus)
  3107. yyerrstatus--;
  3108. /* Shift the lookahead token. */
  3109. YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  3110. /* Discard the shifted token. */
  3111. yychar = YYEMPTY;
  3112. yystate = yyn;
  3113. YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  3114. *++yyvsp = yylval;
  3115. YY_IGNORE_MAYBE_UNINITIALIZED_END
  3116. goto yynewstate;
  3117. /*-----------------------------------------------------------.
  3118. | yydefault -- do the default action for the current state. |
  3119. `-----------------------------------------------------------*/
  3120. yydefault:
  3121. yyn = yydefact[yystate];
  3122. if (yyn == 0)
  3123. goto yyerrlab;
  3124. goto yyreduce;
  3125. /*-----------------------------.
  3126. | yyreduce -- Do a reduction. |
  3127. `-----------------------------*/
  3128. yyreduce:
  3129. /* yyn is the number of a rule to reduce with. */
  3130. yylen = yyr2[yyn];
  3131. /* If YYLEN is nonzero, implement the default value of the action:
  3132. '$$ = $1'.
  3133. Otherwise, the following line sets YYVAL to garbage.
  3134. This behavior is undocumented and Bison
  3135. users should not rely upon it. Assigning to YYVAL
  3136. unconditionally makes the parser a bit smaller, and it avoids a
  3137. GCC warning that YYVAL may be used uninitialized. */
  3138. yyval = yyvsp[1-yylen];
  3139. YY_REDUCE_PRINT (yyn);
  3140. switch (yyn)
  3141. {
  3142. case 28:
  3143. #line 693 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3144. { CHECKN((yyval.sym) = mdl_existing_object(parse_state, (yyvsp[0].str))); }
  3145. #line 3362 "mdlparse.c" /* yacc.c:1646 */
  3146. break;
  3147. case 29:
  3148. #line 696 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3149. { CHECKN((yyval.symlist) = mdl_singleton_symbol_list(parse_state, (yyvsp[0].sym))); }
  3150. #line 3368 "mdlparse.c" /* yacc.c:1646 */
  3151. break;
  3152. case 30:
  3153. #line 697 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3154. { CHECKN((yyval.symlist) = mdl_existing_objects_wildcard(parse_state, (yyvsp[0].str))); }
  3155. #line 3374 "mdlparse.c" /* yacc.c:1646 */
  3156. break;
  3157. case 31:
  3158. #line 700 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3159. { CHECKN((yyval.sym) = mdl_existing_region(parse_state, (yyvsp[-3].sym), (yyvsp[-1].str))); }
  3160. #line 3380 "mdlparse.c" /* yacc.c:1646 */
  3161. break;
  3162. case 32:
  3163. #line 703 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3164. { CHECKN((yyval.vec3) = mdl_point(parse_state, &(yyvsp[0].nlist))); }
  3165. #line 3386 "mdlparse.c" /* yacc.c:1646 */
  3166. break;
  3167. case 34:
  3168. #line 707 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3169. { CHECKN((yyval.vec3) = mdl_point_scalar((yyvsp[0].dbl))); }
  3170. #line 3392 "mdlparse.c" /* yacc.c:1646 */
  3171. break;
  3172. case 35:
  3173. #line 710 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3174. { (yyval.tok) = 1; }
  3175. #line 3398 "mdlparse.c" /* yacc.c:1646 */
  3176. break;
  3177. case 36:
  3178. #line 711 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3179. { (yyval.tok) = 0; }
  3180. #line 3404 "mdlparse.c" /* yacc.c:1646 */
  3181. break;
  3182. case 37:
  3183. #line 712 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3184. { (yyval.tok) = 1; }
  3185. #line 3410 "mdlparse.c" /* yacc.c:1646 */
  3186. break;
  3187. case 38:
  3188. #line 713 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3189. { (yyval.tok) = 0; }
  3190. #line 3416 "mdlparse.c" /* yacc.c:1646 */
  3191. break;
  3192. case 39:
  3193. #line 714 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3194. { (yyval.tok) = 1; }
  3195. #line 3422 "mdlparse.c" /* yacc.c:1646 */
  3196. break;
  3197. case 40:
  3198. #line 715 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3199. { (yyval.tok) = 0; }
  3200. #line 3428 "mdlparse.c" /* yacc.c:1646 */
  3201. break;
  3202. case 41:
  3203. #line 718 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3204. { (yyval.mol_type).orient_set = 0; }
  3205. #line 3434 "mdlparse.c" /* yacc.c:1646 */
  3206. break;
  3207. case 44:
  3208. #line 721 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3209. { (yyval.mol_type).orient_set = 1; (yyval.mol_type).orient = 0; }
  3210. #line 3440 "mdlparse.c" /* yacc.c:1646 */
  3211. break;
  3212. case 45:
  3213. #line 725 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3214. { (yyval.mol_type).orient = 1; (yyval.mol_type).orient_set = 1; }
  3215. #line 3446 "mdlparse.c" /* yacc.c:1646 */
  3216. break;
  3217. case 46:
  3218. #line 726 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3219. { (yyval.mol_type).orient = -1; (yyval.mol_type).orient_set = 1; }
  3220. #line 3452 "mdlparse.c" /* yacc.c:1646 */
  3221. break;
  3222. case 47:
  3223. #line 727 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3224. {
  3225. (yyval.mol_type) = (yyvsp[-1].mol_type);
  3226. if ((yyval.mol_type).orient >= 32767)
  3227. {
  3228. /* Seriously? Wow. */
  3229. mdlerror(parse_state, "Error: Molecule orientation must not be greater than 32767");
  3230. return 1;
  3231. }
  3232. ++ (yyval.mol_type).orient;
  3233. }
  3234. #line 3467 "mdlparse.c" /* yacc.c:1646 */
  3235. break;
  3236. case 48:
  3237. #line 737 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3238. {
  3239. (yyval.mol_type) = (yyvsp[-1].mol_type);
  3240. if ((yyval.mol_type).orient <= -32768)
  3241. {
  3242. /* Seriously? Wow. */
  3243. mdlerror(parse_state, "Error: Molecule orientation must not be less than -32768");
  3244. return 1;
  3245. }
  3246. -- (yyval.mol_type).orient;
  3247. }
  3248. #line 3482 "mdlparse.c" /* yacc.c:1646 */
  3249. break;
  3250. case 51:
  3251. #line 755 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3252. {
  3253. (yyval.mol_type).orient = (int) (yyvsp[-1].dbl);
  3254. (yyval.mol_type).orient_set = 1;
  3255. if ((yyval.mol_type).orient != (yyvsp[-1].dbl))
  3256. {
  3257. mdlerror(parse_state, "Molecule orientation specified inside braces must be an integer between -32768 and 32767.");
  3258. return 1;
  3259. }
  3260. }
  3261. #line 3496 "mdlparse.c" /* yacc.c:1646 */
  3262. break;
  3263. case 53:
  3264. #line 768 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3265. {
  3266. if ((yyvsp[-2].nlist).value_tail)
  3267. {
  3268. (yyval.nlist) = (yyvsp[-2].nlist);
  3269. (yyval.nlist).value_count += (yyvsp[0].nlist).value_count;
  3270. (yyval.nlist).value_tail->next = (yyvsp[0].nlist).value_head;
  3271. (yyval.nlist).value_tail = (yyvsp[0].nlist).value_tail;
  3272. }
  3273. else
  3274. (yyval.nlist) = (yyvsp[0].nlist);
  3275. }
  3276. #line 3512 "mdlparse.c" /* yacc.c:1646 */
  3277. break;
  3278. case 54:
  3279. #line 781 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3280. { CHECK(mcell_generate_range_singleton(&(yyval.nlist), (yyvsp[0].dbl))); }
  3281. #line 3518 "mdlparse.c" /* yacc.c:1646 */
  3282. break;
  3283. case 55:
  3284. #line 782 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3285. { CHECK(mdl_generate_range(parse_state, &(yyval.nlist), (yyvsp[-5].dbl), (yyvsp[-3].dbl), (yyvsp[-1].dbl))); }
  3286. #line 3524 "mdlparse.c" /* yacc.c:1646 */
  3287. break;
  3288. case 56:
  3289. #line 788 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3290. {
  3291. char *include_path = mdl_find_include_file((yyvsp[0].str), parse_state->vol->curr_file);
  3292. if (include_path == NULL)
  3293. {
  3294. mdlerror_fmt(parse_state, "Out of memory while trying to open include file '%s'", (yyvsp[0].str));
  3295. free((yyvsp[0].str));
  3296. return 1;
  3297. }
  3298. if (mdlparse_file(parse_state, include_path))
  3299. {
  3300. free(include_path);
  3301. free((yyvsp[0].str));
  3302. return 1;
  3303. }
  3304. free(include_path);
  3305. free((yyvsp[0].str));
  3306. }
  3307. #line 3546 "mdlparse.c" /* yacc.c:1646 */
  3308. break;
  3309. case 57:
  3310. #line 811 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3311. { CHECK(mdl_assign_variable_double(parse_state, (yyvsp[-2].sym), (yyvsp[0].dbl))); }
  3312. #line 3552 "mdlparse.c" /* yacc.c:1646 */
  3313. break;
  3314. case 58:
  3315. #line 812 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3316. { CHECK(mdl_assign_variable_string(parse_state, (yyvsp[-2].sym), (yyvsp[0].str))); }
  3317. #line 3558 "mdlparse.c" /* yacc.c:1646 */
  3318. break;
  3319. case 59:
  3320. #line 813 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3321. { CHECK(mdl_assign_variable(parse_state, (yyvsp[-2].sym), (yyvsp[0].sym))); }
  3322. #line 3564 "mdlparse.c" /* yacc.c:1646 */
  3323. break;
  3324. case 60:
  3325. #line 814 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3326. { CHECK(mdl_assign_variable_array(parse_state, (yyvsp[-2].sym), (yyvsp[0].nlist).value_head)); }
  3327. #line 3570 "mdlparse.c" /* yacc.c:1646 */
  3328. break;
  3329. case 61:
  3330. #line 817 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3331. { CHECKN((yyval.sym) = mdl_get_or_create_variable(parse_state, (yyvsp[0].str))); }
  3332. #line 3576 "mdlparse.c" /* yacc.c:1646 */
  3333. break;
  3334. case 62:
  3335. #line 820 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3336. { CHECKN((yyval.sym) = mdl_existing_variable(parse_state, (yyvsp[0].str))); }
  3337. #line 3582 "mdlparse.c" /* yacc.c:1646 */
  3338. break;
  3339. case 64:
  3340. #line 824 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3341. {
  3342. struct num_expr_list *elp;
  3343. (yyval.nlist).value_head = (struct num_expr_list *) (yyvsp[0].sym)->value;
  3344. (yyval.nlist).value_count = 1;
  3345. for (elp = (yyval.nlist).value_head; elp->next != NULL; elp = elp->next)
  3346. ++ (yyval.nlist).value_count;
  3347. (yyval.nlist).value_tail = elp;
  3348. (yyval.nlist).shared = 1;
  3349. }
  3350. #line 3596 "mdlparse.c" /* yacc.c:1646 */
  3351. break;
  3352. case 65:
  3353. #line 835 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3354. { mdl_debug_dump_array((yyvsp[-1].nlist).value_head); (yyval.nlist) = (yyvsp[-1].nlist); }
  3355. #line 3602 "mdlparse.c" /* yacc.c:1646 */
  3356. break;
  3357. case 66:
  3358. #line 838 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3359. { CHECKN((yyval.sym) = mdl_existing_array(parse_state, (yyvsp[0].str))); }
  3360. #line 3608 "mdlparse.c" /* yacc.c:1646 */
  3361. break;
  3362. case 70:
  3363. #line 846 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3364. { (yyval.dbl) = *(double *) (yyvsp[0].sym)->value; }
  3365. #line 3614 "mdlparse.c" /* yacc.c:1646 */
  3366. break;
  3367. case 71:
  3368. #line 849 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3369. { (yyval.dbl) = (yyvsp[0].llival); }
  3370. #line 3620 "mdlparse.c" /* yacc.c:1646 */
  3371. break;
  3372. case 75:
  3373. #line 857 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3374. { CHECKN((yyval.sym) = mdl_existing_double(parse_state, (yyvsp[0].str))); }
  3375. #line 3626 "mdlparse.c" /* yacc.c:1646 */
  3376. break;
  3377. case 76:
  3378. #line 861 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3379. { (yyval.dbl) = (yyvsp[-1].dbl); }
  3380. #line 3632 "mdlparse.c" /* yacc.c:1646 */
  3381. break;
  3382. case 77:
  3383. #line 862 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3384. { CHECKF((yyval.dbl) = exp((yyvsp[-1].dbl))); }
  3385. #line 3638 "mdlparse.c" /* yacc.c:1646 */
  3386. break;
  3387. case 78:
  3388. #line 863 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3389. { CHECK(mdl_expr_log(parse_state, (yyvsp[-1].dbl), &(yyval.dbl))); }
  3390. #line 3644 "mdlparse.c" /* yacc.c:1646 */
  3391. break;
  3392. case 79:
  3393. #line 864 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3394. { CHECK(mdl_expr_log10(parse_state, (yyvsp[-1].dbl), &(yyval.dbl))); }
  3395. #line 3650 "mdlparse.c" /* yacc.c:1646 */
  3396. break;
  3397. case 80:
  3398. #line 865 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3399. { (yyval.dbl) = max2d((yyvsp[-3].dbl), (yyvsp[-1].dbl)); }
  3400. #line 3656 "mdlparse.c" /* yacc.c:1646 */
  3401. break;
  3402. case 81:
  3403. #line 866 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3404. { (yyval.dbl) = min2d((yyvsp[-3].dbl), (yyvsp[-1].dbl)); }
  3405. #line 3662 "mdlparse.c" /* yacc.c:1646 */
  3406. break;
  3407. case 82:
  3408. #line 867 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3409. { (yyval.dbl) = mdl_expr_roundoff((yyvsp[-1].dbl), (int) (yyvsp[-3].dbl)); }
  3410. #line 3668 "mdlparse.c" /* yacc.c:1646 */
  3411. break;
  3412. case 83:
  3413. #line 868 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3414. { (yyval.dbl) = floor((yyvsp[-1].dbl)); }
  3415. #line 3674 "mdlparse.c" /* yacc.c:1646 */
  3416. break;
  3417. case 84:
  3418. #line 869 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3419. { (yyval.dbl) = ceil((yyvsp[-1].dbl)); }
  3420. #line 3680 "mdlparse.c" /* yacc.c:1646 */
  3421. break;
  3422. case 85:
  3423. #line 870 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3424. { (yyval.dbl) = sin((yyvsp[-1].dbl)); }
  3425. #line 3686 "mdlparse.c" /* yacc.c:1646 */
  3426. break;
  3427. case 86:
  3428. #line 871 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3429. { (yyval.dbl) = cos((yyvsp[-1].dbl)); }
  3430. #line 3692 "mdlparse.c" /* yacc.c:1646 */
  3431. break;
  3432. case 87:
  3433. #line 872 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3434. { CHECKF((yyval.dbl) = tan((yyvsp[-1].dbl))); }
  3435. #line 3698 "mdlparse.c" /* yacc.c:1646 */
  3436. break;
  3437. case 88:
  3438. #line 873 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3439. { CHECKF((yyval.dbl) = asin((yyvsp[-1].dbl))); }
  3440. #line 3704 "mdlparse.c" /* yacc.c:1646 */
  3441. break;
  3442. case 89:
  3443. #line 874 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3444. { CHECKF((yyval.dbl) = acos((yyvsp[-1].dbl))); }
  3445. #line 3710 "mdlparse.c" /* yacc.c:1646 */
  3446. break;
  3447. case 90:
  3448. #line 875 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3449. { (yyval.dbl) = atan((yyvsp[-1].dbl)); }
  3450. #line 3716 "mdlparse.c" /* yacc.c:1646 */
  3451. break;
  3452. case 91:
  3453. #line 876 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3454. { CHECKF((yyval.dbl) = sqrt((yyvsp[-1].dbl))); }
  3455. #line 3722 "mdlparse.c" /* yacc.c:1646 */
  3456. break;
  3457. case 92:
  3458. #line 877 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3459. { (yyval.dbl) = fabs((yyvsp[-1].dbl)); }
  3460. #line 3728 "mdlparse.c" /* yacc.c:1646 */
  3461. break;
  3462. case 93:
  3463. #line 878 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3464. { CHECK(mdl_expr_mod(parse_state, (yyvsp[-3].dbl), (yyvsp[-1].dbl), &(yyval.dbl))); }
  3465. #line 3734 "mdlparse.c" /* yacc.c:1646 */
  3466. break;
  3467. case 94:
  3468. #line 879 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3469. { (yyval.dbl) = MY_PI; }
  3470. #line 3740 "mdlparse.c" /* yacc.c:1646 */
  3471. break;
  3472. case 95:
  3473. #line 880 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3474. { (yyval.dbl) = mdl_expr_rng_uniform(parse_state); }
  3475. #line 3746 "mdlparse.c" /* yacc.c:1646 */
  3476. break;
  3477. case 96:
  3478. #line 881 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3479. { (yyval.dbl) = rng_gauss(parse_state->vol->rng); }
  3480. #line 3752 "mdlparse.c" /* yacc.c:1646 */
  3481. break;
  3482. case 97:
  3483. #line 882 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3484. { (yyval.dbl) = parse_state->vol->seed_seq; }
  3485. #line 3758 "mdlparse.c" /* yacc.c:1646 */
  3486. break;
  3487. case 98:
  3488. #line 883 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3489. { CHECK(mdl_expr_string_to_double(parse_state, (yyvsp[-1].str), &(yyval.dbl))); }
  3490. #line 3764 "mdlparse.c" /* yacc.c:1646 */
  3491. break;
  3492. case 99:
  3493. #line 884 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3494. { CHECKF((yyval.dbl) = (yyvsp[-2].dbl) + (yyvsp[0].dbl)); }
  3495. #line 3770 "mdlparse.c" /* yacc.c:1646 */
  3496. break;
  3497. case 100:
  3498. #line 885 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3499. { CHECKF((yyval.dbl) = (yyvsp[-2].dbl) - (yyvsp[0].dbl)); }
  3500. #line 3776 "mdlparse.c" /* yacc.c:1646 */
  3501. break;
  3502. case 101:
  3503. #line 886 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3504. { CHECKF((yyval.dbl) = (yyvsp[-2].dbl) * (yyvsp[0].dbl)); }
  3505. #line 3782 "mdlparse.c" /* yacc.c:1646 */
  3506. break;
  3507. case 102:
  3508. #line 887 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3509. { CHECK(mdl_expr_div(parse_state, (yyvsp[-2].dbl), (yyvsp[0].dbl), &(yyval.dbl))); }
  3510. #line 3788 "mdlparse.c" /* yacc.c:1646 */
  3511. break;
  3512. case 103:
  3513. #line 888 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3514. { CHECK(mdl_expr_pow(parse_state, (yyvsp[-2].dbl), (yyvsp[0].dbl), &(yyval.dbl))); }
  3515. #line 3794 "mdlparse.c" /* yacc.c:1646 */
  3516. break;
  3517. case 104:
  3518. #line 889 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3519. { (yyval.dbl) = -(yyvsp[0].dbl); }
  3520. #line 3800 "mdlparse.c" /* yacc.c:1646 */
  3521. break;
  3522. case 105:
  3523. #line 890 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3524. { (yyval.dbl) = (yyvsp[0].dbl); }
  3525. #line 3806 "mdlparse.c" /* yacc.c:1646 */
  3526. break;
  3527. case 107:
  3528. #line 895 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3529. { CHECKN((yyval.str) = mdl_strdup((char const *) (yyvsp[0].sym)->value)); }
  3530. #line 3812 "mdlparse.c" /* yacc.c:1646 */
  3531. break;
  3532. case 108:
  3533. #line 899 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3534. { CHECKN((yyval.str) = mdl_strip_quotes((yyvsp[0].str))); }
  3535. #line 3818 "mdlparse.c" /* yacc.c:1646 */
  3536. break;
  3537. case 109:
  3538. #line 900 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3539. { CHECKN((yyval.str) = mdl_strdup(parse_state->vol->mdl_infile_name)); }
  3540. #line 3824 "mdlparse.c" /* yacc.c:1646 */
  3541. break;
  3542. case 110:
  3543. #line 901 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3544. { CHECKN((yyval.str) = mdl_strcat((yyvsp[-2].str), (yyvsp[0].str))); }
  3545. #line 3830 "mdlparse.c" /* yacc.c:1646 */
  3546. break;
  3547. case 111:
  3548. #line 902 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3549. { CHECKN((yyval.str) = mdl_string_format(parse_state, (yyvsp[-2].str), (yyvsp[-1].printfargs).arg_head)); }
  3550. #line 3836 "mdlparse.c" /* yacc.c:1646 */
  3551. break;
  3552. case 112:
  3553. #line 905 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3554. { CHECKN((yyval.sym) = mdl_existing_string(parse_state, (yyvsp[0].str))); }
  3555. #line 3842 "mdlparse.c" /* yacc.c:1646 */
  3556. break;
  3557. case 120:
  3558. #line 921 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3559. { CHECK(mdl_fopen(parse_state, (yyvsp[-6].sym), (yyvsp[-3].str), (yyvsp[-1].str))); }
  3560. #line 3848 "mdlparse.c" /* yacc.c:1646 */
  3561. break;
  3562. case 121:
  3563. #line 924 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3564. { CHECKN((yyval.sym) = mdl_new_filehandle(parse_state, (yyvsp[0].str))); }
  3565. #line 3854 "mdlparse.c" /* yacc.c:1646 */
  3566. break;
  3567. case 122:
  3568. #line 927 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3569. { (yyval.str) = (yyvsp[0].str); CHECK(mdl_valid_file_mode(parse_state, (yyvsp[0].str))); }
  3570. #line 3860 "mdlparse.c" /* yacc.c:1646 */
  3571. break;
  3572. case 123:
  3573. #line 930 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3574. { CHECK(mdl_fclose(parse_state, (yyvsp[-1].sym))); }
  3575. #line 3866 "mdlparse.c" /* yacc.c:1646 */
  3576. break;
  3577. case 124:
  3578. #line 933 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3579. { CHECKN((yyval.sym) = mdl_existing_file_stream(parse_state, (yyvsp[0].str))); }
  3580. #line 3872 "mdlparse.c" /* yacc.c:1646 */
  3581. break;
  3582. case 125:
  3583. #line 936 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3584. { CHECKN((yyval.str) = mdl_expand_string_escapes((yyvsp[0].str))); }
  3585. #line 3878 "mdlparse.c" /* yacc.c:1646 */
  3586. break;
  3587. case 126:
  3588. #line 939 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3589. { (yyval.printfargs).arg_head = (yyval.printfargs).arg_tail = NULL; }
  3590. #line 3884 "mdlparse.c" /* yacc.c:1646 */
  3591. break;
  3592. case 127:
  3593. #line 940 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3594. {
  3595. (yyval.printfargs) = (yyvsp[-2].printfargs);
  3596. if ((yyval.printfargs).arg_tail)
  3597. (yyval.printfargs).arg_tail = (yyval.printfargs).arg_tail->next = (yyvsp[0].printfarg);
  3598. else
  3599. (yyval.printfargs).arg_tail = (yyval.printfargs).arg_head = (yyvsp[0].printfarg);
  3600. (yyvsp[0].printfarg)->next = NULL;
  3601. }
  3602. #line 3897 "mdlparse.c" /* yacc.c:1646 */
  3603. break;
  3604. case 128:
  3605. #line 950 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3606. { CHECKN((yyval.printfarg) = mdl_new_printf_arg_double((yyvsp[0].dbl))); }
  3607. #line 3903 "mdlparse.c" /* yacc.c:1646 */
  3608. break;
  3609. case 129:
  3610. #line 951 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3611. { CHECKN((yyval.printfarg) = mdl_new_printf_arg_string((yyvsp[0].str))); }
  3612. #line 3909 "mdlparse.c" /* yacc.c:1646 */
  3613. break;
  3614. case 130:
  3615. #line 952 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3616. {
  3617. switch ((yyvsp[0].sym)->sym_type)
  3618. {
  3619. case DBL: CHECKN((yyval.printfarg) = mdl_new_printf_arg_double(*(double *) (yyvsp[0].sym)->value)); break;
  3620. case STR: CHECKN((yyval.printfarg) = mdl_new_printf_arg_string((char *) (yyvsp[0].sym)->value)); break;
  3621. default:
  3622. mdlerror(parse_state, "Invalid variable type referenced");
  3623. return 1;
  3624. }
  3625. }
  3626. #line 3924 "mdlparse.c" /* yacc.c:1646 */
  3627. break;
  3628. case 131:
  3629. #line 964 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3630. { CHECK(mdl_printf(parse_state, (yyvsp[-2].str), (yyvsp[-1].printfargs).arg_head)); }
  3631. #line 3930 "mdlparse.c" /* yacc.c:1646 */
  3632. break;
  3633. case 132:
  3634. #line 970 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3635. { CHECK(mdl_fprintf(parse_state, (struct file_stream *) (yyvsp[-4].sym)->value, (yyvsp[-2].str), (yyvsp[-1].printfargs).arg_head)); }
  3636. #line 3936 "mdlparse.c" /* yacc.c:1646 */
  3637. break;
  3638. case 133:
  3639. #line 976 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3640. { CHECK(mdl_sprintf(parse_state, (yyvsp[-4].sym), (yyvsp[-2].str), (yyvsp[-1].printfargs).arg_head)); }
  3641. #line 3942 "mdlparse.c" /* yacc.c:1646 */
  3642. break;
  3643. case 134:
  3644. #line 979 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3645. { mdl_print_time(parse_state, (yyvsp[-1].str)); }
  3646. #line 3948 "mdlparse.c" /* yacc.c:1646 */
  3647. break;
  3648. case 135:
  3649. #line 985 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3650. { CHECK(mdl_fprint_time(parse_state, (yyvsp[-3].sym), (yyvsp[-1].str))); }
  3651. #line 3954 "mdlparse.c" /* yacc.c:1646 */
  3652. break;
  3653. case 139:
  3654. #line 1001 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3655. { if (!parse_state->vol->quiet_flag) mdl_set_all_notifications(parse_state->vol, (yyvsp[0].tok)); }
  3656. #line 3960 "mdlparse.c" /* yacc.c:1646 */
  3657. break;
  3658. case 140:
  3659. #line 1002 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3660. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->progress_report = (yyvsp[0].tok); }
  3661. #line 3966 "mdlparse.c" /* yacc.c:1646 */
  3662. break;
  3663. case 141:
  3664. #line 1003 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3665. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->diffusion_constants = (yyvsp[0].tok); }
  3666. #line 3972 "mdlparse.c" /* yacc.c:1646 */
  3667. break;
  3668. case 142:
  3669. #line 1004 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3670. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->reaction_probabilities = (yyvsp[0].tok); }
  3671. #line 3978 "mdlparse.c" /* yacc.c:1646 */
  3672. break;
  3673. case 143:
  3674. #line 1005 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3675. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->time_varying_reactions = (yyvsp[0].tok); }
  3676. #line 3984 "mdlparse.c" /* yacc.c:1646 */
  3677. break;
  3678. case 144:
  3679. #line 1006 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3680. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->reaction_prob_notify = (yyvsp[0].dbl); }
  3681. #line 3990 "mdlparse.c" /* yacc.c:1646 */
  3682. break;
  3683. case 145:
  3684. #line 1007 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3685. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->partition_location = (yyvsp[0].tok); }
  3686. #line 3996 "mdlparse.c" /* yacc.c:1646 */
  3687. break;
  3688. case 146:
  3689. #line 1008 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3690. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->box_triangulation = (yyvsp[0].tok); }
  3691. #line 4002 "mdlparse.c" /* yacc.c:1646 */
  3692. break;
  3693. case 147:
  3694. #line 1009 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3695. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->release_events = (yyvsp[0].tok); }
  3696. #line 4008 "mdlparse.c" /* yacc.c:1646 */
  3697. break;
  3698. case 148:
  3699. #line 1010 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3700. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->file_writes = (yyvsp[0].tok); }
  3701. #line 4014 "mdlparse.c" /* yacc.c:1646 */
  3702. break;
  3703. case 149:
  3704. #line 1011 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3705. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->final_summary = (yyvsp[0].tok); }
  3706. #line 4020 "mdlparse.c" /* yacc.c:1646 */
  3707. break;
  3708. case 150:
  3709. #line 1012 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3710. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->throughput_report = (yyvsp[0].tok); }
  3711. #line 4026 "mdlparse.c" /* yacc.c:1646 */
  3712. break;
  3713. case 151:
  3714. #line 1013 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3715. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->reaction_output_report = (yyvsp[0].tok); }
  3716. #line 4032 "mdlparse.c" /* yacc.c:1646 */
  3717. break;
  3718. case 152:
  3719. #line 1014 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3720. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->volume_output_report = (yyvsp[0].tok); }
  3721. #line 4038 "mdlparse.c" /* yacc.c:1646 */
  3722. break;
  3723. case 153:
  3724. #line 1015 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3725. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->viz_output_report = (yyvsp[0].tok); }
  3726. #line 4044 "mdlparse.c" /* yacc.c:1646 */
  3727. break;
  3728. case 154:
  3729. #line 1016 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3730. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->checkpoint_report = (yyvsp[0].tok); }
  3731. #line 4050 "mdlparse.c" /* yacc.c:1646 */
  3732. break;
  3733. case 155:
  3734. #line 1017 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3735. {
  3736. if (!parse_state->vol->quiet_flag && parse_state->vol->log_freq == ULONG_MAX)
  3737. parse_state->vol->notify->iteration_report = (yyvsp[0].tok);
  3738. }
  3739. #line 4059 "mdlparse.c" /* yacc.c:1646 */
  3740. break;
  3741. case 156:
  3742. #line 1021 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3743. { if (!parse_state->vol->quiet_flag) CHECK(mdl_set_iteration_report_freq(parse_state, (long long) (yyvsp[0].dbl))); }
  3744. #line 4065 "mdlparse.c" /* yacc.c:1646 */
  3745. break;
  3746. case 157:
  3747. #line 1022 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3748. { if (!parse_state->vol->quiet_flag) parse_state->vol->notify->molecule_collision_report = (yyvsp[0].tok); }
  3749. #line 4071 "mdlparse.c" /* yacc.c:1646 */
  3750. break;
  3751. case 158:
  3752. #line 1026 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3753. { (yyval.tok) = ((yyvsp[0].tok) ? NOTIFY_FULL : NOTIFY_NONE); }
  3754. #line 4077 "mdlparse.c" /* yacc.c:1646 */
  3755. break;
  3756. case 159:
  3757. #line 1030 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3758. { (yyval.tok) = ((yyvsp[0].tok) ? NOTIFY_FULL : NOTIFY_NONE); }
  3759. #line 4083 "mdlparse.c" /* yacc.c:1646 */
  3760. break;
  3761. case 160:
  3762. #line 1031 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3763. { (yyval.tok) = NOTIFY_BRIEF; }
  3764. #line 4089 "mdlparse.c" /* yacc.c:1646 */
  3765. break;
  3766. case 164:
  3767. #line 1047 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3768. { mdl_set_all_warnings(parse_state->vol, (byte) (yyvsp[0].tok)); }
  3769. #line 4095 "mdlparse.c" /* yacc.c:1646 */
  3770. break;
  3771. case 165:
  3772. #line 1048 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3773. { parse_state->vol->notify->neg_diffusion = (byte)(yyvsp[0].tok); }
  3774. #line 4101 "mdlparse.c" /* yacc.c:1646 */
  3775. break;
  3776. case 166:
  3777. #line 1049 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3778. { parse_state->vol->notify->neg_reaction = (byte)(yyvsp[0].tok); }
  3779. #line 4107 "mdlparse.c" /* yacc.c:1646 */
  3780. break;
  3781. case 167:
  3782. #line 1050 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3783. { parse_state->vol->notify->high_reaction_prob = (byte)(yyvsp[0].tok); }
  3784. #line 4113 "mdlparse.c" /* yacc.c:1646 */
  3785. break;
  3786. case 168:
  3787. #line 1051 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3788. { parse_state->vol->notify->reaction_prob_warn = (yyvsp[0].dbl); }
  3789. #line 4119 "mdlparse.c" /* yacc.c:1646 */
  3790. break;
  3791. case 169:
  3792. #line 1052 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3793. { parse_state->vol->notify->close_partitions = (byte)(yyvsp[0].tok); }
  3794. #line 4125 "mdlparse.c" /* yacc.c:1646 */
  3795. break;
  3796. case 170:
  3797. #line 1053 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3798. { parse_state->vol->notify->degenerate_polys = (byte)(yyvsp[0].tok); }
  3799. #line 4131 "mdlparse.c" /* yacc.c:1646 */
  3800. break;
  3801. case 171:
  3802. #line 1054 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3803. { parse_state->vol->notify->overwritten_file = (byte)(yyvsp[0].tok); }
  3804. #line 4137 "mdlparse.c" /* yacc.c:1646 */
  3805. break;
  3806. case 172:
  3807. #line 1055 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3808. { parse_state->vol->notify->short_lifetime = (byte)(yyvsp[0].tok); }
  3809. #line 4143 "mdlparse.c" /* yacc.c:1646 */
  3810. break;
  3811. case 173:
  3812. #line 1056 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3813. { CHECK(mdl_set_lifetime_warning_threshold(parse_state, (long long) (yyvsp[0].dbl))); }
  3814. #line 4149 "mdlparse.c" /* yacc.c:1646 */
  3815. break;
  3816. case 174:
  3817. #line 1057 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3818. { parse_state->vol->notify->missed_reactions = (byte)(yyvsp[0].tok); }
  3819. #line 4155 "mdlparse.c" /* yacc.c:1646 */
  3820. break;
  3821. case 175:
  3822. #line 1058 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3823. { CHECK(mdl_set_missed_reaction_warning_threshold(parse_state, (yyvsp[0].dbl))); }
  3824. #line 4161 "mdlparse.c" /* yacc.c:1646 */
  3825. break;
  3826. case 176:
  3827. #line 1059 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3828. { parse_state->vol->notify->missed_surf_orient = (byte)(yyvsp[0].tok); }
  3829. #line 4167 "mdlparse.c" /* yacc.c:1646 */
  3830. break;
  3831. case 177:
  3832. #line 1060 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3833. { parse_state->vol->notify->useless_vol_orient = (byte)(yyvsp[0].tok); }
  3834. #line 4173 "mdlparse.c" /* yacc.c:1646 */
  3835. break;
  3836. case 178:
  3837. #line 1061 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3838. { parse_state->vol->notify->complex_placement_failure = (byte) (yyvsp[0].tok); }
  3839. #line 4179 "mdlparse.c" /* yacc.c:1646 */
  3840. break;
  3841. case 179:
  3842. #line 1062 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3843. { parse_state->vol->notify->complex_placement_failure_threshold = (long long) (yyvsp[0].dbl); }
  3844. #line 4185 "mdlparse.c" /* yacc.c:1646 */
  3845. break;
  3846. case 180:
  3847. #line 1063 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3848. { parse_state->vol->notify->mol_placement_failure = (byte) (yyvsp[0].tok); }
  3849. #line 4191 "mdlparse.c" /* yacc.c:1646 */
  3850. break;
  3851. case 181:
  3852. #line 1064 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3853. { parse_state->vol->notify->invalid_output_step_time = (byte) (yyvsp[0].tok); }
  3854. #line 4197 "mdlparse.c" /* yacc.c:1646 */
  3855. break;
  3856. case 182:
  3857. #line 1068 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3858. { (yyval.tok) = WARN_COPE; }
  3859. #line 4203 "mdlparse.c" /* yacc.c:1646 */
  3860. break;
  3861. case 183:
  3862. #line 1069 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3863. { (yyval.tok) = WARN_WARN; }
  3864. #line 4209 "mdlparse.c" /* yacc.c:1646 */
  3865. break;
  3866. case 184:
  3867. #line 1070 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3868. { (yyval.tok) = WARN_ERROR; }
  3869. #line 4215 "mdlparse.c" /* yacc.c:1646 */
  3870. break;
  3871. case 185:
  3872. #line 1076 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3873. { CHECK(mdl_set_checkpoint_infile(parse_state, (yyvsp[0].str))); }
  3874. #line 4221 "mdlparse.c" /* yacc.c:1646 */
  3875. break;
  3876. case 186:
  3877. #line 1077 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3878. { CHECK(mdl_set_checkpoint_outfile(parse_state, (yyvsp[0].str))); }
  3879. #line 4227 "mdlparse.c" /* yacc.c:1646 */
  3880. break;
  3881. case 187:
  3882. #line 1078 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3883. { CHECK(mdl_set_checkpoint_interval(parse_state, (yyvsp[-1].dbl), (yyvsp[0].tok))); }
  3884. #line 4233 "mdlparse.c" /* yacc.c:1646 */
  3885. break;
  3886. case 188:
  3887. #line 1079 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3888. { CHECK(mdl_keep_checkpoint_files(parse_state, (yyvsp[0].tok))); }
  3889. #line 4239 "mdlparse.c" /* yacc.c:1646 */
  3890. break;
  3891. case 189:
  3892. #line 1081 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3893. { CHECK(mdl_set_realtime_checkpoint(parse_state, (long) (yyvsp[-1].dbl), (yyvsp[0].tok))); }
  3894. #line 4245 "mdlparse.c" /* yacc.c:1646 */
  3895. break;
  3896. case 190:
  3897. #line 1084 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3898. { (yyval.tok) = 0; }
  3899. #line 4251 "mdlparse.c" /* yacc.c:1646 */
  3900. break;
  3901. case 191:
  3902. #line 1085 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3903. { (yyval.tok) = 1; }
  3904. #line 4257 "mdlparse.c" /* yacc.c:1646 */
  3905. break;
  3906. case 192:
  3907. #line 1086 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3908. { (yyval.tok) = 0; }
  3909. #line 4263 "mdlparse.c" /* yacc.c:1646 */
  3910. break;
  3911. case 193:
  3912. #line 1090 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3913. { /* seconds */ (yyval.dbl) = (yyvsp[0].dbl); }
  3914. #line 4269 "mdlparse.c" /* yacc.c:1646 */
  3915. break;
  3916. case 194:
  3917. #line 1091 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3918. { /* mm:ss */ (yyval.dbl) = (yyvsp[-2].dbl) * 60 + (yyvsp[0].dbl); }
  3919. #line 4275 "mdlparse.c" /* yacc.c:1646 */
  3920. break;
  3921. case 195:
  3922. #line 1092 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3923. { /* hh:mm:ss */ (yyval.dbl) = (yyvsp[-4].dbl) * 3600 + (yyvsp[-2].dbl) * 60 + (yyvsp[0].dbl); }
  3924. #line 4281 "mdlparse.c" /* yacc.c:1646 */
  3925. break;
  3926. case 196:
  3927. #line 1094 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3928. { /* dd:hh:mm:ss */ (yyval.dbl) = (yyvsp[-6].dbl) * 86400 + (yyvsp[-4].dbl) * 3600 + (yyvsp[-2].dbl) * 60 + (yyvsp[0].dbl); }
  3929. #line 4287 "mdlparse.c" /* yacc.c:1646 */
  3930. break;
  3931. case 197:
  3932. #line 1101 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3933. { CHECK(mdl_set_time_step(parse_state, (yyvsp[0].dbl))); }
  3934. #line 4293 "mdlparse.c" /* yacc.c:1646 */
  3935. break;
  3936. case 198:
  3937. #line 1102 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3938. { CHECK(mdl_set_space_step(parse_state, (yyvsp[0].dbl))); }
  3939. #line 4299 "mdlparse.c" /* yacc.c:1646 */
  3940. break;
  3941. case 199:
  3942. #line 1103 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3943. { CHECK(mdl_set_max_time_step(parse_state, (yyvsp[0].dbl))); }
  3944. #line 4305 "mdlparse.c" /* yacc.c:1646 */
  3945. break;
  3946. case 200:
  3947. #line 1104 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3948. { CHECK(mdl_set_num_iterations(parse_state, (long long) (yyvsp[0].dbl))); }
  3949. #line 4311 "mdlparse.c" /* yacc.c:1646 */
  3950. break;
  3951. case 201:
  3952. #line 1105 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3953. { parse_state->vol->randomize_smol_pos = !((yyvsp[0].tok)); }
  3954. #line 4317 "mdlparse.c" /* yacc.c:1646 */
  3955. break;
  3956. case 202:
  3957. #line 1106 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3958. { parse_state->vol->use_expanded_list = (yyvsp[0].tok); }
  3959. #line 4323 "mdlparse.c" /* yacc.c:1646 */
  3960. break;
  3961. case 203:
  3962. #line 1107 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3963. { parse_state->vol->vacancy_search_dist2 = max2d((yyvsp[0].dbl), 0.0); }
  3964. #line 4329 "mdlparse.c" /* yacc.c:1646 */
  3965. break;
  3966. case 204:
  3967. #line 1108 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3968. { CHECK(mdl_set_num_radial_directions(parse_state, (int) (yyvsp[0].dbl))); }
  3969. #line 4335 "mdlparse.c" /* yacc.c:1646 */
  3970. break;
  3971. case 205:
  3972. #line 1109 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3973. { parse_state->vol->fully_random = 1; }
  3974. #line 4341 "mdlparse.c" /* yacc.c:1646 */
  3975. break;
  3976. case 206:
  3977. #line 1110 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3978. { CHECK(mdl_set_num_radial_subdivisions(parse_state, (int) (yyvsp[0].dbl))); }
  3979. #line 4347 "mdlparse.c" /* yacc.c:1646 */
  3980. break;
  3981. case 207:
  3982. #line 1111 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3983. { CHECK(mdl_set_grid_density(parse_state, (yyvsp[0].dbl))); }
  3984. #line 4353 "mdlparse.c" /* yacc.c:1646 */
  3985. break;
  3986. case 208:
  3987. #line 1112 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3988. { CHECK(mdl_set_interaction_radius(parse_state, (yyvsp[0].dbl))); }
  3989. #line 4359 "mdlparse.c" /* yacc.c:1646 */
  3990. break;
  3991. case 209:
  3992. #line 1113 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3993. { parse_state->vol->surface_reversibility=(yyvsp[0].tok); parse_state->vol->volume_reversibility=(yyvsp[0].tok); }
  3994. #line 4365 "mdlparse.c" /* yacc.c:1646 */
  3995. break;
  3996. case 210:
  3997. #line 1114 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  3998. { parse_state->vol->surface_reversibility=1; parse_state->vol->volume_reversibility=0; }
  3999. #line 4371 "mdlparse.c" /* yacc.c:1646 */
  4000. break;
  4001. case 211:
  4002. #line 1115 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4003. { parse_state->vol->surface_reversibility=0; parse_state->vol->volume_reversibility=1; }
  4004. #line 4377 "mdlparse.c" /* yacc.c:1646 */
  4005. break;
  4006. case 212:
  4007. #line 1116 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4008. { CHECK(mdl_set_complex_placement_attempts(parse_state, (yyvsp[0].dbl))); }
  4009. #line 4383 "mdlparse.c" /* yacc.c:1646 */
  4010. break;
  4011. case 213:
  4012. #line 1123 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4013. { parse_state->vol->mem_part_x = (int) (yyvsp[0].dbl); }
  4014. #line 4389 "mdlparse.c" /* yacc.c:1646 */
  4015. break;
  4016. case 214:
  4017. #line 1124 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4018. { parse_state->vol->mem_part_y = (int) (yyvsp[0].dbl); }
  4019. #line 4395 "mdlparse.c" /* yacc.c:1646 */
  4020. break;
  4021. case 215:
  4022. #line 1125 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4023. { parse_state->vol->mem_part_z = (int) (yyvsp[0].dbl); }
  4024. #line 4401 "mdlparse.c" /* yacc.c:1646 */
  4025. break;
  4026. case 216:
  4027. #line 1126 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4028. { parse_state->vol->mem_part_pool = (int) (yyvsp[0].dbl); }
  4029. #line 4407 "mdlparse.c" /* yacc.c:1646 */
  4030. break;
  4031. case 217:
  4032. #line 1130 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4033. { CHECK(mcell_set_partition(parse_state->vol, (yyvsp[-2].tok), & (yyvsp[0].nlist))); }
  4034. #line 4413 "mdlparse.c" /* yacc.c:1646 */
  4035. break;
  4036. case 218:
  4037. #line 1134 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4038. { (yyval.tok) = X_PARTS; }
  4039. #line 4419 "mdlparse.c" /* yacc.c:1646 */
  4040. break;
  4041. case 219:
  4042. #line 1135 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4043. { (yyval.tok) = Y_PARTS; }
  4044. #line 4425 "mdlparse.c" /* yacc.c:1646 */
  4045. break;
  4046. case 220:
  4047. #line 1136 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4048. { (yyval.tok) = Z_PARTS; }
  4049. #line 4431 "mdlparse.c" /* yacc.c:1646 */
  4050. break;
  4051. case 224:
  4052. #line 1148 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4053. { mdl_print_species_summary(parse_state->vol, (yyvsp[0].mcell_mol_spec)); }
  4054. #line 4437 "mdlparse.c" /* yacc.c:1646 */
  4055. break;
  4056. case 225:
  4057. #line 1152 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4058. { mdl_print_species_summaries(parse_state->vol, (yyvsp[-1].mcell_species_lst).species_head); }
  4059. #line 4443 "mdlparse.c" /* yacc.c:1646 */
  4060. break;
  4061. case 226:
  4062. #line 1156 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4063. { (yyval.mcell_species_lst).species_count = 0; CHECK(mdl_add_to_species_list(&(yyval.mcell_species_lst), (yyvsp[0].mcell_mol_spec))); }
  4064. #line 4449 "mdlparse.c" /* yacc.c:1646 */
  4065. break;
  4066. case 227:
  4067. #line 1157 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4068. { (yyval.mcell_species_lst) = (yyvsp[-1].mcell_species_lst); CHECK(mdl_add_to_species_list(&(yyval.mcell_species_lst), (yyvsp[0].mcell_mol_spec))); }
  4069. #line 4455 "mdlparse.c" /* yacc.c:1646 */
  4070. break;
  4071. case 228:
  4072. #line 1166 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4073. { CHECKN((yyval.mcell_mol_spec) = mdl_create_species(parse_state, (yyvsp[-6].str), (yyvsp[-4].diff_const).D, (yyvsp[-4].diff_const).is_2d, (yyvsp[-3].dbl), (yyvsp[-1].dbl), (yyvsp[-1].dbl) )); }
  4074. #line 4461 "mdlparse.c" /* yacc.c:1646 */
  4075. break;
  4076. case 230:
  4077. #line 1172 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4078. { CHECKN((yyval.sym) = mdl_new_mol_species(parse_state, (yyvsp[0].str))); }
  4079. #line 4467 "mdlparse.c" /* yacc.c:1646 */
  4080. break;
  4081. case 231:
  4082. #line 1176 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4083. { (yyval.diff_const).is_2d = 0; (yyval.diff_const).D = (yyvsp[0].dbl); CHECK(mdl_check_diffusion_constant(parse_state, & (yyval.diff_const).D)); }
  4084. #line 4473 "mdlparse.c" /* yacc.c:1646 */
  4085. break;
  4086. case 232:
  4087. #line 1177 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4088. { (yyval.diff_const).is_2d = 1; (yyval.diff_const).D = (yyvsp[0].dbl); CHECK(mdl_check_diffusion_constant(parse_state, & (yyval.diff_const).D)); }
  4089. #line 4479 "mdlparse.c" /* yacc.c:1646 */
  4090. break;
  4091. case 233:
  4092. #line 1181 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4093. { (yyval.dbl) = 0.0; }
  4094. #line 4485 "mdlparse.c" /* yacc.c:1646 */
  4095. break;
  4096. case 234:
  4097. #line 1182 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4098. {
  4099. if ((yyvsp[0].dbl) <= 0)
  4100. {
  4101. mdlerror_fmt(parse_state, "Requested custom time step of %.15g; custom time step must be positive.", (yyvsp[0].dbl));
  4102. return 1;
  4103. }
  4104. (yyval.dbl) = (yyvsp[0].dbl);
  4105. }
  4106. #line 4499 "mdlparse.c" /* yacc.c:1646 */
  4107. break;
  4108. case 235:
  4109. #line 1191 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4110. {
  4111. if ((yyvsp[0].dbl) <= 0)
  4112. {
  4113. mdlerror_fmt(parse_state, "Requested custom space step of %.15g; custom space step must be positive.", (yyvsp[0].dbl));
  4114. return 1;
  4115. }
  4116. (yyval.dbl) = -(yyvsp[0].dbl);
  4117. }
  4118. #line 4513 "mdlparse.c" /* yacc.c:1646 */
  4119. break;
  4120. case 236:
  4121. #line 1202 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4122. { (yyval.ival) = 0; }
  4123. #line 4519 "mdlparse.c" /* yacc.c:1646 */
  4124. break;
  4125. case 237:
  4126. #line 1203 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4127. { (yyval.ival) = 1; }
  4128. #line 4525 "mdlparse.c" /* yacc.c:1646 */
  4129. break;
  4130. case 238:
  4131. #line 1207 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4132. { (yyval.dbl) = 0; }
  4133. #line 4531 "mdlparse.c" /* yacc.c:1646 */
  4134. break;
  4135. case 239:
  4136. #line 1208 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4137. {
  4138. if ((yyvsp[0].dbl) <= 0)
  4139. {
  4140. mdlerror_fmt(parse_state, "Requested maximum step length of %.15g; maximum step length must be positive.", (yyvsp[0].dbl));
  4141. return 1;
  4142. }
  4143. (yyval.dbl) = (yyvsp[0].dbl);
  4144. }
  4145. #line 4544 "mdlparse.c" /* yacc.c:1646 */
  4146. break;
  4147. case 240:
  4148. #line 1219 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4149. { parse_state->complex_name = (yyvsp[0].str); parse_state->complex_type = 0; }
  4150. #line 4550 "mdlparse.c" /* yacc.c:1646 */
  4151. break;
  4152. case 241:
  4153. #line 1221 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4154. { parse_state->complex_topo = (yyvsp[0].mmol_topo); }
  4155. #line 4556 "mdlparse.c" /* yacc.c:1646 */
  4156. break;
  4157. case 242:
  4158. #line 1224 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4159. { parse_state->complex_relations = (yyvsp[0].mmol_su_rel); }
  4160. #line 4562 "mdlparse.c" /* yacc.c:1646 */
  4161. break;
  4162. case 243:
  4163. #line 1226 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4164. { CHECK(mdl_assemble_complex_species(parse_state, (yyvsp[-10].str), (yyvsp[-7].mmol_topo), (yyvsp[-5].mmol_subunits).assign_head, (yyvsp[-4].mmol_geom), (yyvsp[-3].mmol_su_rel), (yyvsp[-1].mmol_rate_ruleset))); }
  4165. #line 4568 "mdlparse.c" /* yacc.c:1646 */
  4166. break;
  4167. case 244:
  4168. #line 1229 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4169. { (yyval.str) = (yyvsp[0].str); CHECK(mdl_valid_complex_name(parse_state, (yyvsp[0].str))); }
  4170. #line 4574 "mdlparse.c" /* yacc.c:1646 */
  4171. break;
  4172. case 245:
  4173. #line 1233 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4174. { CHECKN((yyval.mmol_topo) = mdl_assemble_topology(parse_state, &(yyvsp[0].nlist))); }
  4175. #line 4580 "mdlparse.c" /* yacc.c:1646 */
  4176. break;
  4177. case 246:
  4178. #line 1237 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4179. { (yyval.mmol_subunits).assign_tail = (yyval.mmol_subunits).assign_head = (yyvsp[0].mmol_su_assign); }
  4180. #line 4586 "mdlparse.c" /* yacc.c:1646 */
  4181. break;
  4182. case 247:
  4183. #line 1239 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4184. { (yyval.mmol_subunits) = (yyvsp[-1].mmol_subunits); (yyval.mmol_subunits).assign_tail = (yyval.mmol_subunits).assign_tail->next = (yyvsp[0].mmol_su_assign); }
  4185. #line 4592 "mdlparse.c" /* yacc.c:1646 */
  4186. break;
  4187. case 248:
  4188. #line 1244 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4189. { CHECKN((yyval.mmol_su_assign) = mdl_assemble_complex_subunit_assignment(parse_state, (yyvsp[-3].mmol_su_comp), & (yyvsp[0].mol_type))); }
  4190. #line 4598 "mdlparse.c" /* yacc.c:1646 */
  4191. break;
  4192. case 250:
  4193. #line 1250 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4194. { if ((yyvsp[0].mmol_su_comp)) (yyvsp[0].mmol_su_comp)->next = (yyvsp[-2].mmol_su_comp); (yyval.mmol_su_comp) = (yyvsp[0].mmol_su_comp); }
  4195. #line 4604 "mdlparse.c" /* yacc.c:1646 */
  4196. break;
  4197. case 251:
  4198. #line 1253 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4199. { CHECKN((yyval.mmol_su_comp) = mdl_assemble_subunit_spec_component((yyvsp[0].dbl), (yyvsp[0].dbl))); }
  4200. #line 4610 "mdlparse.c" /* yacc.c:1646 */
  4201. break;
  4202. case 252:
  4203. #line 1254 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4204. { CHECKN((yyval.mmol_su_comp) = mdl_assemble_subunit_spec_component((yyvsp[-2].dbl), (yyvsp[0].dbl))); }
  4205. #line 4616 "mdlparse.c" /* yacc.c:1646 */
  4206. break;
  4207. case 253:
  4208. #line 1258 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4209. { (yyval.mmol_geom) = (yyvsp[-1].mmol_geom); CHECK(mdl_validate_complex_geometry(parse_state, parse_state->complex_topo, (yyvsp[-1].mmol_geom))); }
  4210. #line 4622 "mdlparse.c" /* yacc.c:1646 */
  4211. break;
  4212. case 255:
  4213. #line 1264 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4214. { if ((yyvsp[0].mmol_geom)) (yyvsp[0].mmol_geom)->next = (yyvsp[-1].mmol_geom); (yyval.mmol_geom) = (yyvsp[0].mmol_geom); }
  4215. #line 4628 "mdlparse.c" /* yacc.c:1646 */
  4216. break;
  4217. case 256:
  4218. #line 1268 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4219. { CHECK(mcell_generate_range_singleton(&(yyval.nlist), (yyvsp[0].dbl))); }
  4220. #line 4634 "mdlparse.c" /* yacc.c:1646 */
  4221. break;
  4222. case 257:
  4223. #line 1269 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4224. { (yyval.nlist) = (yyvsp[-2].nlist); CHECK(mdl_add_range_value(&(yyval.nlist), (yyvsp[0].dbl))); }
  4225. #line 4640 "mdlparse.c" /* yacc.c:1646 */
  4226. break;
  4227. case 258:
  4228. #line 1273 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4229. { CHECKN((yyval.mmol_geom) = mdl_assemble_complex_geometry(parse_state, parse_state->complex_topo, &(yyvsp[-3].nlist), (yyvsp[0].vec3))); }
  4230. #line 4646 "mdlparse.c" /* yacc.c:1646 */
  4231. break;
  4232. case 259:
  4233. #line 1278 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4234. { (yyval.mmol_su_rel) = (yyvsp[-1].mmol_su_rel); CHECK(mdl_validate_complex_relationships(parse_state, parse_state->complex_topo, (yyvsp[-1].mmol_su_rel))); }
  4235. #line 4652 "mdlparse.c" /* yacc.c:1646 */
  4236. break;
  4237. case 260:
  4238. #line 1282 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4239. { (yyval.mmol_su_rel) = NULL; }
  4240. #line 4658 "mdlparse.c" /* yacc.c:1646 */
  4241. break;
  4242. case 261:
  4243. #line 1284 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4244. { if ((yyvsp[0].mmol_su_rel)) (yyvsp[0].mmol_su_rel)->next = (yyvsp[-1].mmol_su_rel); (yyval.mmol_su_rel) = (yyvsp[0].mmol_su_rel); }
  4245. #line 4664 "mdlparse.c" /* yacc.c:1646 */
  4246. break;
  4247. case 262:
  4248. #line 1287 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4249. { CHECKN((yyval.mmol_su_rel) = mdl_assemble_complex_relationship(parse_state, parse_state->complex_topo, (yyvsp[-2].str), &(yyvsp[0].nlist))); }
  4250. #line 4670 "mdlparse.c" /* yacc.c:1646 */
  4251. break;
  4252. case 263:
  4253. #line 1291 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4254. { (yyval.mmol_rate_ruleset) = (yyvsp[-1].mmol_rate_ruleset); CHECK(mdl_validate_complex_rates(parse_state, (yyvsp[-1].mmol_rate_ruleset))); }
  4255. #line 4676 "mdlparse.c" /* yacc.c:1646 */
  4256. break;
  4257. case 264:
  4258. #line 1295 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4259. { (yyval.mmol_rate_ruleset) = NULL; }
  4260. #line 4682 "mdlparse.c" /* yacc.c:1646 */
  4261. break;
  4262. case 265:
  4263. #line 1296 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4264. { if ((yyvsp[0].mmol_rate_ruleset)) (yyvsp[0].mmol_rate_ruleset)->next = (yyvsp[-1].mmol_rate_ruleset); (yyval.mmol_rate_ruleset) = (yyvsp[0].mmol_rate_ruleset); }
  4265. #line 4688 "mdlparse.c" /* yacc.c:1646 */
  4266. break;
  4267. case 266:
  4268. #line 1299 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4269. { CHECKN((yyval.mmol_rate_ruleset) = mdl_assemble_complex_ruleset((yyvsp[-3].str), (yyvsp[-1].mmol_rate_rule))); }
  4270. #line 4694 "mdlparse.c" /* yacc.c:1646 */
  4271. break;
  4272. case 268:
  4273. #line 1305 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4274. { if ((yyvsp[0].mmol_rate_rule)) (yyvsp[0].mmol_rate_rule)->next = (yyvsp[-1].mmol_rate_rule); (yyval.mmol_rate_rule) = (yyvsp[0].mmol_rate_rule); }
  4275. #line 4700 "mdlparse.c" /* yacc.c:1646 */
  4276. break;
  4277. case 269:
  4278. #line 1309 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4279. { CHECKN((yyval.mmol_rate_rule) = mdl_assemble_complex_rate_rule((yyvsp[-2].mmol_rate_clause), (yyvsp[0].dbl))); }
  4280. #line 4706 "mdlparse.c" /* yacc.c:1646 */
  4281. break;
  4282. case 271:
  4283. #line 1314 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4284. { (yyval.mmol_rate_clause) = NULL; }
  4285. #line 4712 "mdlparse.c" /* yacc.c:1646 */
  4286. break;
  4287. case 273:
  4288. #line 1320 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4289. { if ((yyvsp[0].mmol_rate_clause)) (yyvsp[0].mmol_rate_clause)->next = (yyvsp[-2].mmol_rate_clause); (yyval.mmol_rate_clause) = (yyvsp[0].mmol_rate_clause); }
  4290. #line 4718 "mdlparse.c" /* yacc.c:1646 */
  4291. break;
  4292. case 274:
  4293. #line 1324 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4294. { CHECKN((yyval.mmol_rate_clause) = mdl_assemble_complex_rate_rule_clause(parse_state, parse_state->complex_relations, (yyvsp[-2].str), (yyvsp[-1].ival), &(yyvsp[0].mol_type))); }
  4295. #line 4724 "mdlparse.c" /* yacc.c:1646 */
  4296. break;
  4297. case 275:
  4298. #line 1327 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4299. { (yyval.ival) = 0; }
  4300. #line 4730 "mdlparse.c" /* yacc.c:1646 */
  4301. break;
  4302. case 276:
  4303. #line 1328 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4304. { (yyval.ival) = 1; }
  4305. #line 4736 "mdlparse.c" /* yacc.c:1646 */
  4306. break;
  4307. case 277:
  4308. #line 1331 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4309. { CHECKN((yyval.sym) = mdl_existing_molecule(parse_state, (yyvsp[0].str))); }
  4310. #line 4742 "mdlparse.c" /* yacc.c:1646 */
  4311. break;
  4312. case 278:
  4313. #line 1335 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4314. { (yyval.mol_type) = (yyvsp[0].mol_type); CHECKN((yyval.mol_type).mol_type = mdl_existing_surface_molecule(parse_state, (yyvsp[-1].str))); }
  4315. #line 4748 "mdlparse.c" /* yacc.c:1646 */
  4316. break;
  4317. case 279:
  4318. #line 1339 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4319. {
  4320. (yyval.mol_type) = (yyvsp[0].mol_type);
  4321. if (! (yyval.mol_type).orient_set)
  4322. (yyval.mol_type).orient = 0;
  4323. (yyval.mol_type).mol_type = (yyvsp[-1].sym);
  4324. }
  4325. #line 4759 "mdlparse.c" /* yacc.c:1646 */
  4326. break;
  4327. case 280:
  4328. #line 1347 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4329. { CHECKN((yyval.sym) = mdl_existing_macromolecule(parse_state, (yyvsp[0].str))); }
  4330. #line 4765 "mdlparse.c" /* yacc.c:1646 */
  4331. break;
  4332. case 287:
  4333. #line 1376 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4334. { mdl_start_surface_class(parse_state, (yyvsp[-1].sym)); }
  4335. #line 4771 "mdlparse.c" /* yacc.c:1646 */
  4336. break;
  4337. case 288:
  4338. #line 1378 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4339. { mdl_finish_surface_class(parse_state); }
  4340. #line 4777 "mdlparse.c" /* yacc.c:1646 */
  4341. break;
  4342. case 289:
  4343. #line 1381 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4344. { CHECKN((yyval.sym) = mdl_existing_surface_class(parse_state, (yyvsp[0].str))); }
  4345. #line 4783 "mdlparse.c" /* yacc.c:1646 */
  4346. break;
  4347. case 295:
  4348. #line 1399 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4349. { CHECKN(mdl_assemble_surface_reaction(parse_state, (yyvsp[-2].tok), parse_state->current_surface_class, (yyvsp[0].mol_type).mol_type, (yyvsp[0].mol_type).orient)); }
  4350. #line 4789 "mdlparse.c" /* yacc.c:1646 */
  4351. break;
  4352. case 296:
  4353. #line 1402 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4354. {
  4355. struct sym_table *mol_sym = retrieve_sym("ALL_MOLECULES", parse_state->vol->mol_sym_table);
  4356. if(!(yyvsp[0].mol_type).orient_set) (yyvsp[0].mol_type).orient = 0;
  4357. CHECKN(mdl_assemble_surface_reaction(parse_state, (yyvsp[-3].tok), parse_state->current_surface_class, mol_sym, (yyvsp[0].mol_type).orient));}
  4358. #line 4798 "mdlparse.c" /* yacc.c:1646 */
  4359. break;
  4360. case 297:
  4361. #line 1408 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4362. { CHECKN(mdl_assemble_concentration_clamp_reaction(parse_state, parse_state->current_surface_class, (yyvsp[-2].mol_type).mol_type, (yyvsp[-2].mol_type).orient, (yyvsp[0].dbl))); }
  4363. #line 4804 "mdlparse.c" /* yacc.c:1646 */
  4364. break;
  4365. case 298:
  4366. #line 1411 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4367. { (yyval.tok) = RFLCT; }
  4368. #line 4810 "mdlparse.c" /* yacc.c:1646 */
  4369. break;
  4370. case 299:
  4371. #line 1412 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4372. { (yyval.tok) = TRANSP; }
  4373. #line 4816 "mdlparse.c" /* yacc.c:1646 */
  4374. break;
  4375. case 300:
  4376. #line 1413 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4377. { (yyval.tok) = SINK; }
  4378. #line 4822 "mdlparse.c" /* yacc.c:1646 */
  4379. break;
  4380. case 303:
  4381. #line 1420 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4382. { parse_state->current_surface_class->sm_dat_head = (yyvsp[0].surf_mol_dat_list).sm_head; }
  4383. #line 4828 "mdlparse.c" /* yacc.c:1646 */
  4384. break;
  4385. case 304:
  4386. #line 1427 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4387. { (yyval.surf_mol_dat_list) = (yyvsp[-1].surf_mol_dat_list); }
  4388. #line 4834 "mdlparse.c" /* yacc.c:1646 */
  4389. break;
  4390. case 305:
  4391. #line 1431 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4392. { (yyval.surf_mol_dat_list) = (yyvsp[-1].surf_mol_dat_list); }
  4393. #line 4840 "mdlparse.c" /* yacc.c:1646 */
  4394. break;
  4395. case 306:
  4396. #line 1435 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4397. {
  4398. (yyvsp[0].surf_mol_dat)->quantity_type = SURFMOLDENS;
  4399. (yyval.surf_mol_dat_list).sm_tail = (yyval.surf_mol_dat_list).sm_head = (yyvsp[0].surf_mol_dat);
  4400. }
  4401. #line 4849 "mdlparse.c" /* yacc.c:1646 */
  4402. break;
  4403. case 307:
  4404. #line 1440 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4405. {
  4406. (yyval.surf_mol_dat_list) = (yyvsp[-1].surf_mol_dat_list);
  4407. (yyvsp[0].surf_mol_dat)->quantity_type = SURFMOLDENS;
  4408. (yyval.surf_mol_dat_list).sm_tail = (yyval.surf_mol_dat_list).sm_tail->next = (yyvsp[0].surf_mol_dat);
  4409. }
  4410. #line 4859 "mdlparse.c" /* yacc.c:1646 */
  4411. break;
  4412. case 308:
  4413. #line 1448 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4414. {
  4415. (yyvsp[0].surf_mol_dat)->quantity_type = SURFMOLNUM;
  4416. (yyval.surf_mol_dat_list).sm_tail = (yyval.surf_mol_dat_list).sm_head = (yyvsp[0].surf_mol_dat);
  4417. }
  4418. #line 4868 "mdlparse.c" /* yacc.c:1646 */
  4419. break;
  4420. case 309:
  4421. #line 1453 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4422. {
  4423. (yyval.surf_mol_dat_list) = (yyvsp[-1].surf_mol_dat_list);
  4424. (yyvsp[0].surf_mol_dat)->quantity_type = SURFMOLNUM;
  4425. (yyval.surf_mol_dat_list).sm_tail = (yyval.surf_mol_dat_list).sm_tail->next = (yyvsp[0].surf_mol_dat);
  4426. }
  4427. #line 4878 "mdlparse.c" /* yacc.c:1646 */
  4428. break;
  4429. case 310:
  4430. #line 1461 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4431. { CHECKN((yyval.surf_mol_dat) = mdl_new_surf_mol_data(parse_state, &(yyvsp[-2].mol_type), (yyvsp[0].dbl))); }
  4432. #line 4884 "mdlparse.c" /* yacc.c:1646 */
  4433. break;
  4434. case 311:
  4435. #line 1465 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4436. { parse_state->current_surface_class->region_viz_value = (int) (yyvsp[0].dbl); }
  4437. #line 4890 "mdlparse.c" /* yacc.c:1646 */
  4438. break;
  4439. case 318:
  4440. #line 1490 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4441. { free((yyvsp[0].str)); }
  4442. #line 4896 "mdlparse.c" /* yacc.c:1646 */
  4443. break;
  4444. case 326:
  4445. #line 1507 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4446. { (yyval.react_arrow).catalyst = (yyvsp[-1].mol_type); (yyval.react_arrow).flags = ARROW_CATALYTIC; }
  4447. #line 4902 "mdlparse.c" /* yacc.c:1646 */
  4448. break;
  4449. case 327:
  4450. #line 1512 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4451. { (yyval.react_arrow).catalyst = (yyvsp[-1].mol_type); (yyval.react_arrow).flags = ARROW_CATALYTIC | ARROW_BIDIRECTIONAL; }
  4452. #line 4908 "mdlparse.c" /* yacc.c:1646 */
  4453. break;
  4454. case 328:
  4455. #line 1517 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4456. { (yyval.react_arrow).catalyst.mol_type = NULL; (yyval.react_arrow).flags = 0; }
  4457. #line 4914 "mdlparse.c" /* yacc.c:1646 */
  4458. break;
  4459. case 330:
  4460. #line 1519 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4461. { (yyval.react_arrow).catalyst.mol_type = NULL; (yyval.react_arrow).flags = ARROW_BIDIRECTIONAL; }
  4462. #line 4920 "mdlparse.c" /* yacc.c:1646 */
  4463. break;
  4464. case 332:
  4465. #line 1523 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4466. { (yyval.sym) = NULL; }
  4467. #line 4926 "mdlparse.c" /* yacc.c:1646 */
  4468. break;
  4469. case 333:
  4470. #line 1524 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4471. { CHECKN((yyval.sym) = mdl_new_rxn_pathname(parse_state, (yyvsp[0].str))); }
  4472. #line 4932 "mdlparse.c" /* yacc.c:1646 */
  4473. break;
  4474. case 334:
  4475. #line 1530 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4476. { CHECKN(mdl_assemble_reaction(parse_state, (yyvsp[-5].mol_type_list).mol_type_head, &(yyvsp[-4].mol_type), &(yyvsp[-3].react_arrow), (yyvsp[-2].mol_type_list).mol_type_head, &(yyvsp[-1].react_rates), (yyvsp[0].sym))); }
  4477. #line 4938 "mdlparse.c" /* yacc.c:1646 */
  4478. break;
  4479. case 335:
  4480. #line 1533 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4481. { CHECK(mdl_reaction_player_singleton(parse_state, & (yyval.mol_type_list), & (yyvsp[0].mol_type))); }
  4482. #line 4944 "mdlparse.c" /* yacc.c:1646 */
  4483. break;
  4484. case 336:
  4485. #line 1534 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4486. { (yyval.mol_type_list) = (yyvsp[-2].mol_type_list); CHECK(mdl_add_reaction_player(parse_state, & (yyval.mol_type_list), & (yyvsp[0].mol_type))); }
  4487. #line 4950 "mdlparse.c" /* yacc.c:1646 */
  4488. break;
  4489. case 338:
  4490. #line 1541 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4491. { (yyval.mol_type) = (yyvsp[0].mol_type); (yyval.mol_type).is_subunit = 0; }
  4492. #line 4956 "mdlparse.c" /* yacc.c:1646 */
  4493. break;
  4494. case 339:
  4495. #line 1542 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4496. { (yyval.mol_type) = (yyvsp[-1].mol_type); (yyval.mol_type).is_subunit = 1; }
  4497. #line 4962 "mdlparse.c" /* yacc.c:1646 */
  4498. break;
  4499. case 340:
  4500. #line 1546 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4501. { (yyval.mol_type).mol_type = NULL; }
  4502. #line 4968 "mdlparse.c" /* yacc.c:1646 */
  4503. break;
  4504. case 341:
  4505. #line 1547 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4506. { (yyval.mol_type) = (yyvsp[0].mol_type); }
  4507. #line 4974 "mdlparse.c" /* yacc.c:1646 */
  4508. break;
  4509. case 342:
  4510. #line 1551 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4511. { (yyval.mol_type) = (yyvsp[0].mol_type); (yyval.mol_type).mol_type = (yyvsp[-1].sym); }
  4512. #line 4980 "mdlparse.c" /* yacc.c:1646 */
  4513. break;
  4514. case 343:
  4515. #line 1554 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4516. { CHECK(mdl_reaction_player_singleton(parse_state, & (yyval.mol_type_list), & (yyvsp[0].mol_type))); }
  4517. #line 4986 "mdlparse.c" /* yacc.c:1646 */
  4518. break;
  4519. case 344:
  4520. #line 1555 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4521. { (yyval.mol_type_list) = (yyvsp[-2].mol_type_list); CHECK(mdl_add_reaction_player(parse_state, & (yyval.mol_type_list), & (yyvsp[0].mol_type))); }
  4522. #line 4992 "mdlparse.c" /* yacc.c:1646 */
  4523. break;
  4524. case 345:
  4525. #line 1558 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4526. { (yyval.mol_type).mol_type = NULL; (yyval.mol_type).orient_set = 0; }
  4527. #line 4998 "mdlparse.c" /* yacc.c:1646 */
  4528. break;
  4529. case 349:
  4530. #line 1567 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4531. {
  4532. if ((yyvsp[-1].react_rates).forward_rate.rate_type == RATE_UNSET)
  4533. {
  4534. mdlerror(parse_state, "Invalid reaction rate specification: must specify a forward rate.");
  4535. return 1;
  4536. }
  4537. (yyval.react_rates) = (yyvsp[-1].react_rates);
  4538. }
  4539. #line 5012 "mdlparse.c" /* yacc.c:1646 */
  4540. break;
  4541. case 350:
  4542. #line 1578 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4543. {
  4544. if (((yyvsp[-3].react_rates).forward_rate.rate_type != RATE_UNSET && (yyvsp[-1].react_rates).forward_rate.rate_type != RATE_UNSET) ||
  4545. ((yyvsp[-3].react_rates).backward_rate.rate_type != RATE_UNSET && (yyvsp[-1].react_rates).backward_rate.rate_type != RATE_UNSET))
  4546. {
  4547. mdlerror_fmt(parse_state, "Error: When two reaction rates are specified, one must be a forward rate, and one must be a reverse rate");
  4548. return 1;
  4549. }
  4550. (yyval.react_rates) = (yyvsp[-3].react_rates);
  4551. if ((yyvsp[-1].react_rates).forward_rate.rate_type != RATE_UNSET)
  4552. (yyval.react_rates).forward_rate = (yyvsp[-1].react_rates).forward_rate;
  4553. else
  4554. (yyval.react_rates).backward_rate = (yyvsp[-1].react_rates).backward_rate;
  4555. }
  4556. #line 5031 "mdlparse.c" /* yacc.c:1646 */
  4557. break;
  4558. case 351:
  4559. #line 1595 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4560. { (yyval.react_rates).forward_rate = (yyvsp[0].react_rate); (yyval.react_rates).backward_rate.rate_type = RATE_UNSET; CHECK(mdl_valid_rate(parse_state, &(yyvsp[0].react_rate))); }
  4561. #line 5037 "mdlparse.c" /* yacc.c:1646 */
  4562. break;
  4563. case 352:
  4564. #line 1596 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4565. { (yyval.react_rates).forward_rate = (yyvsp[0].react_rate); (yyval.react_rates).backward_rate.rate_type = RATE_UNSET; CHECK(mdl_valid_rate(parse_state, &(yyvsp[0].react_rate))); }
  4566. #line 5043 "mdlparse.c" /* yacc.c:1646 */
  4567. break;
  4568. case 353:
  4569. #line 1597 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4570. { (yyval.react_rates).backward_rate = (yyvsp[0].react_rate); (yyval.react_rates).forward_rate.rate_type = RATE_UNSET; CHECK(mdl_valid_rate(parse_state, &(yyvsp[0].react_rate))); }
  4571. #line 5049 "mdlparse.c" /* yacc.c:1646 */
  4572. break;
  4573. case 354:
  4574. #line 1601 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4575. { (yyval.react_rate).rate_type = RATE_CONSTANT; (yyval.react_rate).v.rate_constant = (yyvsp[0].dbl); }
  4576. #line 5055 "mdlparse.c" /* yacc.c:1646 */
  4577. break;
  4578. case 355:
  4579. #line 1602 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4580. { (yyval.react_rate).rate_type = RATE_FILE; (yyval.react_rate).v.rate_file = (yyvsp[0].str); }
  4581. #line 5061 "mdlparse.c" /* yacc.c:1646 */
  4582. break;
  4583. case 356:
  4584. #line 1603 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4585. { CHECK(mdl_reaction_rate_from_var(parse_state, & (yyval.react_rate), (yyvsp[0].sym))); }
  4586. #line 5067 "mdlparse.c" /* yacc.c:1646 */
  4587. break;
  4588. case 357:
  4589. #line 1604 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4590. { CHECK(mdl_reaction_rate_complex(parse_state, & (yyval.react_rate), (yyvsp[-1].sym), (yyvsp[0].str))); }
  4591. #line 5073 "mdlparse.c" /* yacc.c:1646 */
  4592. break;
  4593. case 358:
  4594. #line 1615 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4595. { CHECK(mdl_set_release_pattern(parse_state, (yyvsp[-3].sym), &(yyvsp[-1].rpat))); }
  4596. #line 5079 "mdlparse.c" /* yacc.c:1646 */
  4597. break;
  4598. case 359:
  4599. #line 1618 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4600. { CHECKN((yyval.sym) = mdl_new_release_pattern(parse_state, (yyvsp[0].str))); }
  4601. #line 5085 "mdlparse.c" /* yacc.c:1646 */
  4602. break;
  4603. case 360:
  4604. #line 1621 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4605. { CHECKN((yyval.sym) = mdl_existing_release_pattern_or_rxn_pathname(parse_state, (yyvsp[0].str))); }
  4606. #line 5091 "mdlparse.c" /* yacc.c:1646 */
  4607. break;
  4608. case 361:
  4609. #line 1625 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4610. {
  4611. (yyval.rpat).delay = 0;
  4612. (yyval.rpat).release_interval = FOREVER;
  4613. (yyval.rpat).train_interval = FOREVER;
  4614. (yyval.rpat).train_duration = FOREVER;
  4615. (yyval.rpat).number_of_trains = 1;
  4616. }
  4617. #line 5103 "mdlparse.c" /* yacc.c:1646 */
  4618. break;
  4619. case 362:
  4620. #line 1633 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4621. { (yyval.rpat) = (yyvsp[-3].rpat); (yyval.rpat).delay = (yyvsp[0].dbl) / parse_state->vol->time_unit; }
  4622. #line 5109 "mdlparse.c" /* yacc.c:1646 */
  4623. break;
  4624. case 363:
  4625. #line 1635 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4626. { (yyval.rpat) = (yyvsp[-3].rpat); (yyval.rpat).release_interval = (yyvsp[0].dbl) / parse_state->vol->time_unit; }
  4627. #line 5115 "mdlparse.c" /* yacc.c:1646 */
  4628. break;
  4629. case 364:
  4630. #line 1637 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4631. { (yyval.rpat) = (yyvsp[-3].rpat); (yyval.rpat).train_interval = (yyvsp[0].dbl) / parse_state->vol->time_unit; }
  4632. #line 5121 "mdlparse.c" /* yacc.c:1646 */
  4633. break;
  4634. case 365:
  4635. #line 1639 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4636. { (yyval.rpat) = (yyvsp[-3].rpat); (yyval.rpat).train_duration = (yyvsp[0].dbl) / parse_state->vol->time_unit; }
  4637. #line 5127 "mdlparse.c" /* yacc.c:1646 */
  4638. break;
  4639. case 366:
  4640. #line 1641 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4641. { (yyval.rpat) = (yyvsp[-3].rpat); (yyval.rpat).number_of_trains = (yyvsp[0].ival); }
  4642. #line 5133 "mdlparse.c" /* yacc.c:1646 */
  4643. break;
  4644. case 367:
  4645. #line 1644 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4646. { (yyval.ival) = (int) (yyvsp[0].dbl); }
  4647. #line 5139 "mdlparse.c" /* yacc.c:1646 */
  4648. break;
  4649. case 368:
  4650. #line 1645 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4651. { (yyval.ival) = INT_MAX; }
  4652. #line 5145 "mdlparse.c" /* yacc.c:1646 */
  4653. break;
  4654. case 369:
  4655. #line 1652 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4656. { parse_state->current_object = parse_state->vol->root_instance; }
  4657. #line 5151 "mdlparse.c" /* yacc.c:1646 */
  4658. break;
  4659. case 370:
  4660. #line 1653 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4661. {
  4662. check_regions(parse_state->vol->root_instance, (yyvsp[0].obj));
  4663. add_child_objects(parse_state->vol->root_instance, (yyvsp[0].obj), (yyvsp[0].obj));
  4664. parse_state->current_object = parse_state->vol->root_object;
  4665. }
  4666. #line 5161 "mdlparse.c" /* yacc.c:1646 */
  4667. break;
  4668. case 371:
  4669. #line 1663 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4670. { add_child_objects(parse_state->vol->root_object, (yyvsp[0].obj), (yyvsp[0].obj)); }
  4671. #line 5167 "mdlparse.c" /* yacc.c:1646 */
  4672. break;
  4673. case 377:
  4674. #line 1679 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4675. { CHECKN((yyval.sym) = mdl_start_object(parse_state, (yyvsp[0].str))); }
  4676. #line 5173 "mdlparse.c" /* yacc.c:1646 */
  4677. break;
  4678. case 379:
  4679. #line 1685 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4680. { mdl_finish_object(parse_state); }
  4681. #line 5179 "mdlparse.c" /* yacc.c:1646 */
  4682. break;
  4683. case 383:
  4684. #line 1698 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4685. { transform_translate(parse_state->vol, parse_state->current_object->t_matrix, (yyvsp[0].vec3)); }
  4686. #line 5185 "mdlparse.c" /* yacc.c:1646 */
  4687. break;
  4688. case 384:
  4689. #line 1699 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4690. { transform_scale(parse_state->current_object->t_matrix, (yyvsp[0].vec3)); }
  4691. #line 5191 "mdlparse.c" /* yacc.c:1646 */
  4692. break;
  4693. case 385:
  4694. #line 1700 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4695. { CHECK(mdl_transform_rotate(parse_state, parse_state->current_object->t_matrix, (yyvsp[-2].vec3), (yyvsp[0].dbl))); }
  4696. #line 5197 "mdlparse.c" /* yacc.c:1646 */
  4697. break;
  4698. case 386:
  4699. #line 1709 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4700. {
  4701. struct object *the_object = (struct object *) (yyvsp[-5].sym)->value;
  4702. the_object->object_type = META_OBJ;
  4703. add_child_objects(the_object, (yyvsp[-2].obj_list).obj_head, (yyvsp[-2].obj_list).obj_tail);
  4704. (yyval.obj) = the_object;
  4705. }
  4706. #line 5208 "mdlparse.c" /* yacc.c:1646 */
  4707. break;
  4708. case 387:
  4709. #line 1718 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4710. { mdl_object_list_singleton(& (yyval.obj_list), (yyvsp[0].obj)); }
  4711. #line 5214 "mdlparse.c" /* yacc.c:1646 */
  4712. break;
  4713. case 388:
  4714. #line 1719 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4715. { (yyval.obj_list) = (yyvsp[-1].obj_list); mdl_add_object_to_list(& (yyval.obj_list), (yyvsp[0].obj)); }
  4716. #line 5220 "mdlparse.c" /* yacc.c:1646 */
  4717. break;
  4718. case 391:
  4719. #line 1728 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4720. { CHECK(mdl_deep_copy_object(parse_state, (struct object *) (yyvsp[-3].sym)->value, (struct object *) (yyvsp[-1].sym)->value)); }
  4721. #line 5226 "mdlparse.c" /* yacc.c:1646 */
  4722. break;
  4723. case 392:
  4724. #line 1730 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4725. { (yyval.obj) = (struct object *) (yyvsp[-6].sym)->value; }
  4726. #line 5232 "mdlparse.c" /* yacc.c:1646 */
  4727. break;
  4728. case 395:
  4729. #line 1740 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4730. { CHECK(mdl_start_release_site(parse_state, (yyvsp[-2].sym), SHAPE_UNDEFINED)); }
  4731. #line 5238 "mdlparse.c" /* yacc.c:1646 */
  4732. break;
  4733. case 396:
  4734. #line 1744 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4735. { CHECKN((yyval.obj) = mdl_finish_release_site(parse_state, (yyvsp[-7].sym))); }
  4736. #line 5244 "mdlparse.c" /* yacc.c:1646 */
  4737. break;
  4738. case 397:
  4739. #line 1747 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4740. { CHECK(mdl_set_release_site_geometry_region(parse_state, parse_state->current_release_site, parse_state->current_object, (yyvsp[0].rev))); }
  4741. #line 5250 "mdlparse.c" /* yacc.c:1646 */
  4742. break;
  4743. case 398:
  4744. #line 1748 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4745. { CHECK(mdl_set_release_site_geometry_object(parse_state, parse_state->current_release_site, (struct object *) (yyvsp[0].sym)->value)); }
  4746. #line 5256 "mdlparse.c" /* yacc.c:1646 */
  4747. break;
  4748. case 399:
  4749. #line 1749 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4750. { parse_state->current_release_site->release_shape = SHAPE_SPHERICAL; }
  4751. #line 5262 "mdlparse.c" /* yacc.c:1646 */
  4752. break;
  4753. case 400:
  4754. #line 1750 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4755. { parse_state->current_release_site->release_shape = SHAPE_CUBIC; }
  4756. #line 5268 "mdlparse.c" /* yacc.c:1646 */
  4757. break;
  4758. case 401:
  4759. #line 1751 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4760. { parse_state->current_release_site->release_shape = SHAPE_ELLIPTIC; }
  4761. #line 5274 "mdlparse.c" /* yacc.c:1646 */
  4762. break;
  4763. case 402:
  4764. #line 1752 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4765. { parse_state->current_release_site->release_shape = SHAPE_RECTANGULAR; }
  4766. #line 5280 "mdlparse.c" /* yacc.c:1646 */
  4767. break;
  4768. case 403:
  4769. #line 1753 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4770. { parse_state->current_release_site->release_shape = SHAPE_SPHERICAL_SHELL; }
  4771. #line 5286 "mdlparse.c" /* yacc.c:1646 */
  4772. break;
  4773. case 404:
  4774. #line 1754 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4775. {
  4776. parse_state->current_release_site->release_shape = SHAPE_LIST;
  4777. parse_state->current_release_site->release_number_method = CONSTNUM;
  4778. }
  4779. #line 5295 "mdlparse.c" /* yacc.c:1646 */
  4780. break;
  4781. case 405:
  4782. #line 1761 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4783. { CHECKN((yyval.rev) = new_release_region_expr_term((yyvsp[0].sym))); }
  4784. #line 5301 "mdlparse.c" /* yacc.c:1646 */
  4785. break;
  4786. case 406:
  4787. #line 1762 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4788. { (yyval.rev) = (yyvsp[-1].rev); }
  4789. #line 5307 "mdlparse.c" /* yacc.c:1646 */
  4790. break;
  4791. case 407:
  4792. #line 1763 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4793. { CHECKN((yyval.rev) = new_release_region_expr_binary((yyvsp[-2].rev), (yyvsp[0].rev), REXP_UNION)); }
  4794. #line 5313 "mdlparse.c" /* yacc.c:1646 */
  4795. break;
  4796. case 408:
  4797. #line 1764 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4798. { CHECKN((yyval.rev) = new_release_region_expr_binary((yyvsp[-2].rev), (yyvsp[0].rev), REXP_SUBTRACTION)); }
  4799. #line 5319 "mdlparse.c" /* yacc.c:1646 */
  4800. break;
  4801. case 409:
  4802. #line 1765 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4803. { CHECKN((yyval.rev) = new_release_region_expr_binary((yyvsp[-2].rev), (yyvsp[0].rev), REXP_INTERSECTION)); }
  4804. #line 5325 "mdlparse.c" /* yacc.c:1646 */
  4805. break;
  4806. case 410:
  4807. #line 1770 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4808. { CHECK(mdl_start_release_site(parse_state, (yyvsp[-2].sym), (yyvsp[-1].tok))); }
  4809. #line 5331 "mdlparse.c" /* yacc.c:1646 */
  4810. break;
  4811. case 411:
  4812. #line 1773 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4813. { CHECKN((yyval.obj) = mdl_finish_release_site(parse_state, (yyvsp[-6].sym))); }
  4814. #line 5337 "mdlparse.c" /* yacc.c:1646 */
  4815. break;
  4816. case 412:
  4817. #line 1776 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4818. { (yyval.tok) = SHAPE_SPHERICAL; }
  4819. #line 5343 "mdlparse.c" /* yacc.c:1646 */
  4820. break;
  4821. case 413:
  4822. #line 1777 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4823. { (yyval.tok) = SHAPE_CUBIC; }
  4824. #line 5349 "mdlparse.c" /* yacc.c:1646 */
  4825. break;
  4826. case 414:
  4827. #line 1778 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4828. { (yyval.tok) = SHAPE_ELLIPTIC; }
  4829. #line 5355 "mdlparse.c" /* yacc.c:1646 */
  4830. break;
  4831. case 415:
  4832. #line 1779 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4833. { (yyval.tok) = SHAPE_RECTANGULAR; }
  4834. #line 5361 "mdlparse.c" /* yacc.c:1646 */
  4835. break;
  4836. case 416:
  4837. #line 1780 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4838. { (yyval.tok) = SHAPE_SPHERICAL_SHELL; }
  4839. #line 5367 "mdlparse.c" /* yacc.c:1646 */
  4840. break;
  4841. case 419:
  4842. #line 1788 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4843. { CHECKN((yyval.sym) = mdl_existing_num_or_array(parse_state, (yyvsp[0].str))); }
  4844. #line 5373 "mdlparse.c" /* yacc.c:1646 */
  4845. break;
  4846. case 420:
  4847. #line 1792 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4848. { set_release_site_location(parse_state->vol, parse_state->current_release_site, (yyvsp[0].vec3)); }
  4849. #line 5379 "mdlparse.c" /* yacc.c:1646 */
  4850. break;
  4851. case 421:
  4852. #line 1793 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4853. { CHECK(mdl_set_release_site_molecule(parse_state, parse_state->current_release_site, & (yyvsp[0].mol_type))); }
  4854. #line 5385 "mdlparse.c" /* yacc.c:1646 */
  4855. break;
  4856. case 422:
  4857. #line 1794 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4858. {
  4859. if (parse_state->current_release_site->release_shape == SHAPE_LIST)
  4860. {
  4861. mdlerror(parse_state, "Molecules are already specified in a list--cannot set number or density.");
  4862. return 1;
  4863. }
  4864. }
  4865. #line 5397 "mdlparse.c" /* yacc.c:1646 */
  4866. break;
  4867. case 423:
  4868. #line 1801 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4869. { CHECK(mdl_set_release_site_diameter(parse_state, parse_state->current_release_site, (yyvsp[0].dbl) * (((yyvsp[-2].tok) == SITE_RADIUS) ? 2.0 : 1.0))); }
  4870. #line 5403 "mdlparse.c" /* yacc.c:1646 */
  4871. break;
  4872. case 424:
  4873. #line 1802 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4874. { CHECK(mdl_set_release_site_diameter_array(parse_state, parse_state->current_release_site, (yyvsp[0].nlist).value_count, (yyvsp[0].nlist).value_head, ((yyvsp[-2].tok) == SITE_RADIUS) ? 2.0 : 1.0)); }
  4875. #line 5409 "mdlparse.c" /* yacc.c:1646 */
  4876. break;
  4877. case 425:
  4878. #line 1803 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4879. { CHECK(mdl_set_release_site_diameter_var(parse_state, parse_state->current_release_site, ((yyvsp[-2].tok) == SITE_RADIUS) ? 2.0 : 1.0, (yyvsp[0].sym))); }
  4880. #line 5415 "mdlparse.c" /* yacc.c:1646 */
  4881. break;
  4882. case 426:
  4883. #line 1804 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4884. { CHECK(mdl_set_release_site_probability(parse_state, parse_state->current_release_site, (yyvsp[0].dbl))); }
  4885. #line 5421 "mdlparse.c" /* yacc.c:1646 */
  4886. break;
  4887. case 427:
  4888. #line 1806 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4889. { CHECK(mdl_set_release_site_pattern(parse_state, parse_state->current_release_site, (yyvsp[0].sym))); }
  4890. #line 5427 "mdlparse.c" /* yacc.c:1646 */
  4891. break;
  4892. case 428:
  4893. #line 1808 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4894. { CHECK(mdl_set_release_site_molecule_positions(parse_state, parse_state->current_release_site, & (yyvsp[-1].rsm_list))); }
  4895. #line 5433 "mdlparse.c" /* yacc.c:1646 */
  4896. break;
  4897. case 429:
  4898. #line 1812 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4899. { (yyval.tok) = SITE_DIAMETER; }
  4900. #line 5439 "mdlparse.c" /* yacc.c:1646 */
  4901. break;
  4902. case 430:
  4903. #line 1813 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4904. { (yyval.tok) = SITE_RADIUS; }
  4905. #line 5445 "mdlparse.c" /* yacc.c:1646 */
  4906. break;
  4907. case 435:
  4908. #line 1825 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4909. { set_release_site_constant_number(parse_state->current_release_site, (yyvsp[0].dbl)); }
  4910. #line 5451 "mdlparse.c" /* yacc.c:1646 */
  4911. break;
  4912. case 436:
  4913. #line 1828 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4914. { set_release_site_constant_number(parse_state->current_release_site, (yyvsp[-1].dbl)); }
  4915. #line 5457 "mdlparse.c" /* yacc.c:1646 */
  4916. break;
  4917. case 437:
  4918. #line 1835 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4919. { set_release_site_gaussian_number(parse_state->current_release_site, (yyvsp[-4].dbl), (yyvsp[-1].dbl)); }
  4920. #line 5463 "mdlparse.c" /* yacc.c:1646 */
  4921. break;
  4922. case 438:
  4923. #line 1843 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4924. { set_release_site_volume_dependent_number(parse_state->current_release_site, (yyvsp[-7].dbl), (yyvsp[-4].dbl), (yyvsp[-1].dbl)); }
  4925. #line 5469 "mdlparse.c" /* yacc.c:1646 */
  4926. break;
  4927. case 439:
  4928. #line 1847 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4929. { CHECK(mdl_set_release_site_concentration(parse_state, parse_state->current_release_site, (yyvsp[0].dbl))); }
  4930. #line 5475 "mdlparse.c" /* yacc.c:1646 */
  4931. break;
  4932. case 440:
  4933. #line 1848 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4934. { CHECK(set_release_site_density(parse_state->current_release_site, (yyvsp[0].dbl))); }
  4935. #line 5481 "mdlparse.c" /* yacc.c:1646 */
  4936. break;
  4937. case 441:
  4938. #line 1852 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4939. { release_single_molecule_singleton(& (yyval.rsm_list), (yyvsp[0].rsm)); }
  4940. #line 5487 "mdlparse.c" /* yacc.c:1646 */
  4941. break;
  4942. case 442:
  4943. #line 1854 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4944. { (yyval.rsm_list) = (yyvsp[-1].rsm_list); add_release_single_molecule_to_list(& (yyval.rsm_list), (yyvsp[0].rsm)); }
  4945. #line 5493 "mdlparse.c" /* yacc.c:1646 */
  4946. break;
  4947. case 443:
  4948. #line 1858 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4949. { CHECKN((yyval.rsm) = mdl_new_release_single_molecule(parse_state, &(yyvsp[-1].mol_type), (yyvsp[0].vec3))); }
  4950. #line 5499 "mdlparse.c" /* yacc.c:1646 */
  4951. break;
  4952. case 445:
  4953. #line 1869 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4954. {
  4955. CHECKN((yyval.obj) = mdl_new_polygon_list(
  4956. parse_state, (yyvsp[-4].str), (yyvsp[-1].vertlist).vertex_count, (yyvsp[-1].vertlist).vertex_head,
  4957. (yyvsp[0].ecl).connection_count, (yyvsp[0].ecl).connection_head));
  4958. }
  4959. #line 5509 "mdlparse.c" /* yacc.c:1646 */
  4960. break;
  4961. case 446:
  4962. #line 1878 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4963. {
  4964. (yyval.obj) = (struct object *) (yyvsp[-3].obj);
  4965. CHECK(mdl_finish_polygon_list(parse_state, (yyval.obj)));
  4966. }
  4967. #line 5518 "mdlparse.c" /* yacc.c:1646 */
  4968. break;
  4969. case 447:
  4970. #line 1884 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4971. { (yyval.vertlist) = (yyvsp[-1].vertlist); }
  4972. #line 5524 "mdlparse.c" /* yacc.c:1646 */
  4973. break;
  4974. case 448:
  4975. #line 1887 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4976. { CHECKN((yyval.vertlistitem) = mdl_new_vertex_list_item((yyvsp[0].vec3))); }
  4977. #line 5530 "mdlparse.c" /* yacc.c:1646 */
  4978. break;
  4979. case 449:
  4980. #line 1890 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4981. { mdl_vertex_list_singleton(& (yyval.vertlist), (yyvsp[0].vertlistitem)); }
  4982. #line 5536 "mdlparse.c" /* yacc.c:1646 */
  4983. break;
  4984. case 450:
  4985. #line 1891 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4986. { (yyval.vertlist) = (yyvsp[-1].vertlist); mdl_add_vertex_to_list(& (yyval.vertlist), (yyvsp[0].vertlistitem)); }
  4987. #line 5542 "mdlparse.c" /* yacc.c:1646 */
  4988. break;
  4989. case 451:
  4990. #line 1896 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4991. { (yyval.ecl) = (yyvsp[-1].ecl); }
  4992. #line 5548 "mdlparse.c" /* yacc.c:1646 */
  4993. break;
  4994. case 452:
  4995. #line 1900 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  4996. { mdl_element_connection_list_singleton(& (yyval.ecl), (yyvsp[0].elem_conn)); }
  4997. #line 5554 "mdlparse.c" /* yacc.c:1646 */
  4998. break;
  4999. case 453:
  5000. #line 1902 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5001. { (yyval.ecl) = (yyvsp[-1].ecl); mdl_add_element_connection_to_list(& (yyval.ecl), (yyvsp[0].elem_conn)); }
  5002. #line 5560 "mdlparse.c" /* yacc.c:1646 */
  5003. break;
  5004. case 454:
  5005. #line 1905 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5006. { CHECKN((yyval.elem_conn) = mdl_new_element_connection(parse_state, & (yyvsp[0].nlist))); }
  5007. #line 5566 "mdlparse.c" /* yacc.c:1646 */
  5008. break;
  5009. case 459:
  5010. #line 1921 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5011. { CHECKN(parse_state->current_region = mdl_get_region(parse_state, parse_state->current_object, "REMOVED")); }
  5012. #line 5572 "mdlparse.c" /* yacc.c:1646 */
  5013. break;
  5014. case 460:
  5015. #line 1923 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5016. {
  5017. parse_state->current_region->element_list_head = (yyvsp[-1].elem_list).elml_head;
  5018. if (parse_state->current_object->object_type == POLY_OBJ)
  5019. {
  5020. CHECK(mdl_normalize_elements(parse_state, parse_state->current_region,0));
  5021. }
  5022. }
  5023. #line 5584 "mdlparse.c" /* yacc.c:1646 */
  5024. break;
  5025. case 463:
  5026. #line 1937 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5027. { (yyval.tok) = Z_POS; }
  5028. #line 5590 "mdlparse.c" /* yacc.c:1646 */
  5029. break;
  5030. case 464:
  5031. #line 1938 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5032. { (yyval.tok) = Z_NEG; }
  5033. #line 5596 "mdlparse.c" /* yacc.c:1646 */
  5034. break;
  5035. case 465:
  5036. #line 1939 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5037. { (yyval.tok) = Y_NEG; }
  5038. #line 5602 "mdlparse.c" /* yacc.c:1646 */
  5039. break;
  5040. case 466:
  5041. #line 1940 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5042. { (yyval.tok) = Y_POS; }
  5043. #line 5608 "mdlparse.c" /* yacc.c:1646 */
  5044. break;
  5045. case 467:
  5046. #line 1941 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5047. { (yyval.tok) = X_NEG; }
  5048. #line 5614 "mdlparse.c" /* yacc.c:1646 */
  5049. break;
  5050. case 468:
  5051. #line 1942 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5052. { (yyval.tok) = X_POS; }
  5053. #line 5620 "mdlparse.c" /* yacc.c:1646 */
  5054. break;
  5055. case 469:
  5056. #line 1943 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5057. { (yyval.tok) = ALL_SIDES; }
  5058. #line 5626 "mdlparse.c" /* yacc.c:1646 */
  5059. break;
  5060. case 471:
  5061. #line 1949 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5062. { (yyval.elem_list) = (yyvsp[-1].elem_list); mdl_add_elements_to_list(& (yyval.elem_list), (yyvsp[0].elem_list).elml_head, (yyvsp[0].elem_list).elml_tail); }
  5063. #line 5632 "mdlparse.c" /* yacc.c:1646 */
  5064. break;
  5065. case 474:
  5066. #line 1955 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5067. { (yyval.elem_list).elml_tail = (yyval.elem_list).elml_head = (yyvsp[0].elem_list_item); }
  5068. #line 5638 "mdlparse.c" /* yacc.c:1646 */
  5069. break;
  5070. case 475:
  5071. #line 1956 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5072. { (yyval.elem_list).elml_tail = (yyval.elem_list).elml_head = (yyvsp[0].elem_list_item); }
  5073. #line 5644 "mdlparse.c" /* yacc.c:1646 */
  5074. break;
  5075. case 476:
  5076. #line 1961 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5077. { (yyval.elem_list) = (yyvsp[-1].elem_list); }
  5078. #line 5650 "mdlparse.c" /* yacc.c:1646 */
  5079. break;
  5080. case 477:
  5081. #line 1966 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5082. { (yyval.elem_list) = (yyvsp[-1].elem_list); mdl_set_elements_to_exclude((yyval.elem_list).elml_head); }
  5083. #line 5656 "mdlparse.c" /* yacc.c:1646 */
  5084. break;
  5085. case 479:
  5086. #line 1973 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5087. { (yyval.elem_list).elml_tail = (yyval.elem_list).elml_head = (yyvsp[0].elem_list_item); }
  5088. #line 5662 "mdlparse.c" /* yacc.c:1646 */
  5089. break;
  5090. case 480:
  5091. #line 1974 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5092. { (yyval.elem_list) = (yyvsp[-2].elem_list); mdl_add_elements_to_list(& (yyval.elem_list), (yyvsp[0].elem_list_item), (yyvsp[0].elem_list_item)); }
  5093. #line 5668 "mdlparse.c" /* yacc.c:1646 */
  5094. break;
  5095. case 481:
  5096. #line 1977 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5097. { CHECKN((yyval.elem_list_item) = new_element_list((unsigned int) (yyvsp[0].dbl), (unsigned int) (yyvsp[0].dbl))); }
  5098. #line 5674 "mdlparse.c" /* yacc.c:1646 */
  5099. break;
  5100. case 482:
  5101. #line 1978 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5102. { CHECKN((yyval.elem_list_item) = new_element_list((unsigned int) (yyvsp[-2].dbl), (unsigned int) (yyvsp[0].dbl))); }
  5103. #line 5680 "mdlparse.c" /* yacc.c:1646 */
  5104. break;
  5105. case 483:
  5106. #line 1979 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5107. { CHECKN((yyval.elem_list_item) = mdl_new_element_side(parse_state, (yyvsp[0].tok))); }
  5108. #line 5686 "mdlparse.c" /* yacc.c:1646 */
  5109. break;
  5110. case 484:
  5111. #line 1982 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5112. { CHECKN((yyval.elem_list_item) = mdl_new_element_previous_region(parse_state, parse_state->current_object, parse_state->current_region, (yyvsp[0].str), (yyvsp[-2].tok))); }
  5113. #line 5692 "mdlparse.c" /* yacc.c:1646 */
  5114. break;
  5115. case 485:
  5116. #line 1985 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5117. { (yyval.tok) = 0; }
  5118. #line 5698 "mdlparse.c" /* yacc.c:1646 */
  5119. break;
  5120. case 486:
  5121. #line 1986 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5122. { (yyval.tok) = 1; }
  5123. #line 5704 "mdlparse.c" /* yacc.c:1646 */
  5124. break;
  5125. case 487:
  5126. #line 1989 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5127. { CHECKN((yyval.elem_list_item) = mdl_new_element_patch(parse_state, parse_state->current_polygon, (yyvsp[-2].vec3), (yyvsp[0].vec3), (yyvsp[-4].tok))); }
  5128. #line 5710 "mdlparse.c" /* yacc.c:1646 */
  5129. break;
  5130. case 488:
  5131. #line 1992 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5132. { (yyval.tok) = 0; }
  5133. #line 5716 "mdlparse.c" /* yacc.c:1646 */
  5134. break;
  5135. case 489:
  5136. #line 1993 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5137. { (yyval.tok) = 1; }
  5138. #line 5722 "mdlparse.c" /* yacc.c:1646 */
  5139. break;
  5140. case 493:
  5141. #line 2009 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5142. { parse_state->current_region = (yyvsp[-1].reg); }
  5143. #line 5728 "mdlparse.c" /* yacc.c:1646 */
  5144. break;
  5145. case 494:
  5146. #line 2010 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5147. { CHECK(mdl_set_region_elements(parse_state, (yyvsp[-3].reg), (yyvsp[0].elem_list).elml_head, (yyvsp[-3].reg)->parent->object_type == POLY_OBJ)); }
  5148. #line 5734 "mdlparse.c" /* yacc.c:1646 */
  5149. break;
  5150. case 495:
  5151. #line 2012 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5152. { parse_state->current_region = NULL; }
  5153. #line 5740 "mdlparse.c" /* yacc.c:1646 */
  5154. break;
  5155. case 496:
  5156. #line 2020 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5157. {
  5158. CHECKN(mdl_new_voxel_list(parse_state, (yyvsp[-4].sym),
  5159. (yyvsp[-1].vertlist).vertex_count, (yyvsp[-1].vertlist).vertex_head,
  5160. (yyvsp[0].ecl).connection_count, (yyvsp[0].ecl).connection_head));
  5161. }
  5162. #line 5750 "mdlparse.c" /* yacc.c:1646 */
  5163. break;
  5164. case 497:
  5165. #line 2026 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5166. { (yyval.obj) = (struct object *) (yyvsp[-7].sym)->value; }
  5167. #line 5756 "mdlparse.c" /* yacc.c:1646 */
  5168. break;
  5169. case 498:
  5170. #line 2031 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5171. { (yyval.ecl) = (yyvsp[-1].ecl); }
  5172. #line 5762 "mdlparse.c" /* yacc.c:1646 */
  5173. break;
  5174. case 499:
  5175. #line 2034 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5176. { CHECKN((yyval.elem_conn) = mdl_new_tet_element_connection(parse_state, & (yyvsp[0].nlist))); }
  5177. #line 5768 "mdlparse.c" /* yacc.c:1646 */
  5178. break;
  5179. case 500:
  5180. #line 2038 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5181. {
  5182. (yyval.ecl).connection_head = (yyval.ecl).connection_tail = (yyvsp[0].elem_conn);
  5183. (yyval.ecl).connection_count = 1;
  5184. }
  5185. #line 5777 "mdlparse.c" /* yacc.c:1646 */
  5186. break;
  5187. case 501:
  5188. #line 2042 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5189. {
  5190. (yyval.ecl) = (yyvsp[-1].ecl);
  5191. (yyval.ecl).connection_tail = (yyval.ecl).connection_tail->next = (yyvsp[0].elem_conn);
  5192. ++ (yyval.ecl).connection_count;
  5193. }
  5194. #line 5787 "mdlparse.c" /* yacc.c:1646 */
  5195. break;
  5196. case 502:
  5197. #line 2053 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5198. { CHECKN(mdl_new_box_object(parse_state, (yyvsp[-8].sym), (yyvsp[-3].vec3), (yyvsp[-1].vec3))); }
  5199. #line 5793 "mdlparse.c" /* yacc.c:1646 */
  5200. break;
  5201. case 503:
  5202. #line 2054 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5203. { CHECK(mdl_triangulate_box_object(parse_state, (yyvsp[-10].sym), parse_state->current_polygon, (yyvsp[-2].dbl))); }
  5204. #line 5799 "mdlparse.c" /* yacc.c:1646 */
  5205. break;
  5206. case 504:
  5207. #line 2056 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5208. {
  5209. CHECK(mdl_finish_box_object(parse_state, (yyvsp[-13].sym)));
  5210. (yyval.obj) = (struct object *) (yyvsp[-13].sym)->value;
  5211. }
  5212. #line 5808 "mdlparse.c" /* yacc.c:1646 */
  5213. break;
  5214. case 505:
  5215. #line 2062 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5216. { (yyval.dbl) = 0.0; }
  5217. #line 5814 "mdlparse.c" /* yacc.c:1646 */
  5218. break;
  5219. case 506:
  5220. #line 2063 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5221. {
  5222. (yyval.dbl) = (yyvsp[0].dbl);
  5223. if ((yyval.dbl) < 2.0)
  5224. {
  5225. mdlerror(parse_state, "Invalid aspect ratio requested (must be greater than or equal to 2.0)");
  5226. return 1;
  5227. }
  5228. }
  5229. #line 5827 "mdlparse.c" /* yacc.c:1646 */
  5230. break;
  5231. case 510:
  5232. #line 2089 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5233. { CHECK(mdl_start_existing_obj_region_def(parse_state, (yyvsp[0].sym))); }
  5234. #line 5833 "mdlparse.c" /* yacc.c:1646 */
  5235. break;
  5236. case 511:
  5237. #line 2090 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5238. { parse_state->current_region = (yyvsp[-1].reg); }
  5239. #line 5839 "mdlparse.c" /* yacc.c:1646 */
  5240. break;
  5241. case 512:
  5242. #line 2092 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5243. { mdl_set_region_elements(parse_state, (yyvsp[-4].reg), (yyvsp[0].elem_list).elml_head, 1); }
  5244. #line 5845 "mdlparse.c" /* yacc.c:1646 */
  5245. break;
  5246. case 513:
  5247. #line 2094 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5248. {
  5249. parse_state->current_region = NULL;
  5250. parse_state->current_polygon = NULL;
  5251. parse_state->current_object = parse_state->vol->root_object;
  5252. }
  5253. #line 5855 "mdlparse.c" /* yacc.c:1646 */
  5254. break;
  5255. case 514:
  5256. #line 2101 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5257. { CHECKN((yyval.reg) = mdl_create_region(parse_state, parse_state->current_object, (yyvsp[0].str))); }
  5258. #line 5861 "mdlparse.c" /* yacc.c:1646 */
  5259. break;
  5260. case 518:
  5261. #line 2112 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5262. { mdl_add_surf_mol_to_region(parse_state->current_region, & (yyvsp[0].surf_mol_dat_list)); }
  5263. #line 5867 "mdlparse.c" /* yacc.c:1646 */
  5264. break;
  5265. case 520:
  5266. #line 2117 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5267. { mdl_set_region_surface_class(parse_state, parse_state->current_region, (yyvsp[0].sym)); }
  5268. #line 5873 "mdlparse.c" /* yacc.c:1646 */
  5269. break;
  5270. case 521:
  5271. #line 2121 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5272. { mdl_set_region_region_viz_value(parse_state, parse_state->current_region, (int) (yyvsp[0].dbl)); }
  5273. #line 5879 "mdlparse.c" /* yacc.c:1646 */
  5274. break;
  5275. case 525:
  5276. #line 2140 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5277. { parse_state->current_region = (struct region *) (yyvsp[-1].sym)->value; }
  5278. #line 5885 "mdlparse.c" /* yacc.c:1646 */
  5279. break;
  5280. case 526:
  5281. #line 2142 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5282. { parse_state->current_region = NULL; }
  5283. #line 5891 "mdlparse.c" /* yacc.c:1646 */
  5284. break;
  5285. case 527:
  5286. #line 2150 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5287. {
  5288. parse_state->header_comment = NULL; /* No header by default */
  5289. parse_state->exact_time_flag = 1; /* Print exact_time column in TRIGGER output by default */
  5290. }
  5291. #line 5900 "mdlparse.c" /* yacc.c:1646 */
  5292. break;
  5293. case 528:
  5294. #line 2156 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5295. { CHECK(mdl_add_reaction_output_block_to_world(parse_state, (int) (yyvsp[-4].dbl), & (yyvsp[-2].ro_otimes), & (yyvsp[-1].ro_sets))); }
  5296. #line 5906 "mdlparse.c" /* yacc.c:1646 */
  5297. break;
  5298. case 529:
  5299. #line 2160 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5300. { (yyval.dbl) = COUNTBUFFERSIZE; }
  5301. #line 5912 "mdlparse.c" /* yacc.c:1646 */
  5302. break;
  5303. case 530:
  5304. #line 2161 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5305. {
  5306. double temp_value = (yyvsp[0].dbl);
  5307. if (!(temp_value >= 1.0 && temp_value < UINT_MAX))
  5308. {
  5309. mdlerror_fmt(parse_state, "Requested buffer size of %.15g lines is invalid. Suggested range is 100-1000000.", temp_value);
  5310. return 1;
  5311. }
  5312. (yyval.dbl) = (yyvsp[0].dbl);
  5313. }
  5314. #line 5926 "mdlparse.c" /* yacc.c:1646 */
  5315. break;
  5316. case 534:
  5317. #line 2177 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5318. { (yyval.ro_otimes).type = OUTPUT_BY_STEP; (yyval.ro_otimes).step = (yyvsp[0].dbl); }
  5319. #line 5932 "mdlparse.c" /* yacc.c:1646 */
  5320. break;
  5321. case 535:
  5322. #line 2181 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5323. {
  5324. (yyval.ro_otimes).type = OUTPUT_BY_ITERATION_LIST;
  5325. (yyval.ro_otimes).values = (yyvsp[0].nlist);
  5326. }
  5327. #line 5941 "mdlparse.c" /* yacc.c:1646 */
  5328. break;
  5329. case 536:
  5330. #line 2189 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5331. {
  5332. (yyval.ro_otimes).type = OUTPUT_BY_TIME_LIST;
  5333. (yyval.ro_otimes).values = (yyvsp[0].nlist);
  5334. }
  5335. #line 5950 "mdlparse.c" /* yacc.c:1646 */
  5336. break;
  5337. case 537:
  5338. #line 2196 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5339. { (yyval.ro_sets).set_head = (yyval.ro_sets).set_tail = (yyvsp[0].ro_set); }
  5340. #line 5956 "mdlparse.c" /* yacc.c:1646 */
  5341. break;
  5342. case 538:
  5343. #line 2198 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5344. {
  5345. (yyval.ro_sets) = (yyvsp[-1].ro_sets);
  5346. if ((yyvsp[0].ro_set) != NULL)
  5347. {
  5348. if ((yyval.ro_sets).set_tail != NULL)
  5349. (yyval.ro_sets).set_tail = (yyval.ro_sets).set_tail->next = (yyvsp[0].ro_set);
  5350. else
  5351. (yyval.ro_sets).set_tail = (yyval.ro_sets).set_head = (yyvsp[0].ro_set);
  5352. }
  5353. }
  5354. #line 5971 "mdlparse.c" /* yacc.c:1646 */
  5355. break;
  5356. case 540:
  5357. #line 2212 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5358. { (yyval.ro_set) = NULL; }
  5359. #line 5977 "mdlparse.c" /* yacc.c:1646 */
  5360. break;
  5361. case 541:
  5362. #line 2213 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5363. { (yyval.ro_set) = NULL; }
  5364. #line 5983 "mdlparse.c" /* yacc.c:1646 */
  5365. break;
  5366. case 542:
  5367. #line 2217 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5368. { parse_state->count_flags = 0; }
  5369. #line 5989 "mdlparse.c" /* yacc.c:1646 */
  5370. break;
  5371. case 543:
  5372. #line 2219 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5373. { CHECKN((yyval.ro_set) = mdl_populate_output_set(parse_state, parse_state->header_comment, parse_state->exact_time_flag, (yyvsp[-3].ro_cols).column_head, (yyvsp[-1].tok), (yyvsp[0].str))); }
  5374. #line 5995 "mdlparse.c" /* yacc.c:1646 */
  5375. break;
  5376. case 544:
  5377. #line 2223 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5378. { (yyval.str) = NULL; }
  5379. #line 6001 "mdlparse.c" /* yacc.c:1646 */
  5380. break;
  5381. case 545:
  5382. #line 2224 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5383. { (yyval.str) = ((yyvsp[0].tok) ? "" : NULL); }
  5384. #line 6007 "mdlparse.c" /* yacc.c:1646 */
  5385. break;
  5386. case 546:
  5387. #line 2225 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5388. { (yyval.str) = (yyvsp[0].str); }
  5389. #line 6013 "mdlparse.c" /* yacc.c:1646 */
  5390. break;
  5391. case 547:
  5392. #line 2229 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5393. { parse_state->header_comment = (yyvsp[0].str); }
  5394. #line 6019 "mdlparse.c" /* yacc.c:1646 */
  5395. break;
  5396. case 548:
  5397. #line 2233 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5398. { parse_state->exact_time_flag = (yyvsp[0].tok); }
  5399. #line 6025 "mdlparse.c" /* yacc.c:1646 */
  5400. break;
  5401. case 550:
  5402. #line 2239 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5403. {
  5404. (yyval.ro_cols) = (yyvsp[-2].ro_cols);
  5405. (yyval.ro_cols).column_tail->next = (yyvsp[0].ro_cols).column_head;
  5406. (yyval.ro_cols).column_tail = (yyvsp[0].ro_cols).column_tail;
  5407. }
  5408. #line 6035 "mdlparse.c" /* yacc.c:1646 */
  5409. break;
  5410. case 551:
  5411. #line 2247 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5412. { CHECK(mdl_single_count_expr(parse_state, & (yyval.ro_cols), (yyvsp[-1].cnt), (yyvsp[0].str))); }
  5413. #line 6041 "mdlparse.c" /* yacc.c:1646 */
  5414. break;
  5415. case 552:
  5416. #line 2251 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5417. { CHECKN((yyval.cnt) = mdl_new_oexpr_constant(parse_state, (yyvsp[0].dbl))); }
  5418. #line 6047 "mdlparse.c" /* yacc.c:1646 */
  5419. break;
  5420. case 554:
  5421. #line 2253 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5422. { CHECKN((yyval.cnt) = mdl_join_oexpr_tree(parse_state, (yyvsp[-1].cnt), NULL, '(')); }
  5423. #line 6053 "mdlparse.c" /* yacc.c:1646 */
  5424. break;
  5425. case 555:
  5426. #line 2254 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5427. { CHECKN((yyval.cnt) = mdl_join_oexpr_tree(parse_state, (yyvsp[-2].cnt), (yyvsp[0].cnt), '+')); }
  5428. #line 6059 "mdlparse.c" /* yacc.c:1646 */
  5429. break;
  5430. case 556:
  5431. #line 2255 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5432. { CHECKN((yyval.cnt) = mdl_join_oexpr_tree(parse_state, (yyvsp[-2].cnt), (yyvsp[0].cnt), '-')); }
  5433. #line 6065 "mdlparse.c" /* yacc.c:1646 */
  5434. break;
  5435. case 557:
  5436. #line 2256 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5437. { CHECKN((yyval.cnt) = mdl_join_oexpr_tree(parse_state, (yyvsp[-2].cnt), (yyvsp[0].cnt), '*')); }
  5438. #line 6071 "mdlparse.c" /* yacc.c:1646 */
  5439. break;
  5440. case 558:
  5441. #line 2257 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5442. { CHECKN((yyval.cnt) = mdl_join_oexpr_tree(parse_state, (yyvsp[-2].cnt), (yyvsp[0].cnt), '/')); }
  5443. #line 6077 "mdlparse.c" /* yacc.c:1646 */
  5444. break;
  5445. case 559:
  5446. #line 2258 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5447. { CHECKN((yyval.cnt) = mdl_join_oexpr_tree(parse_state, (yyvsp[0].cnt), NULL, '_')); }
  5448. #line 6083 "mdlparse.c" /* yacc.c:1646 */
  5449. break;
  5450. case 560:
  5451. #line 2259 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5452. { CHECKN((yyval.cnt) = mdl_sum_oexpr((yyvsp[-1].cnt))); }
  5453. #line 6089 "mdlparse.c" /* yacc.c:1646 */
  5454. break;
  5455. case 561:
  5456. #line 2264 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5457. { parse_state->count_flags |= COUNT_PRESENT; }
  5458. #line 6095 "mdlparse.c" /* yacc.c:1646 */
  5459. break;
  5460. case 562:
  5461. #line 2265 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5462. { (yyval.cnt) = (yyvsp[-1].cnt); }
  5463. #line 6101 "mdlparse.c" /* yacc.c:1646 */
  5464. break;
  5465. case 563:
  5466. #line 2266 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5467. { CHECKN((yyval.cnt) = mdl_new_oexpr_constant(parse_state, (yyvsp[-1].dbl))); }
  5468. #line 6107 "mdlparse.c" /* yacc.c:1646 */
  5469. break;
  5470. case 564:
  5471. #line 2267 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5472. { parse_state->count_flags |= TRIGGER_PRESENT; }
  5473. #line 6113 "mdlparse.c" /* yacc.c:1646 */
  5474. break;
  5475. case 565:
  5476. #line 2268 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5477. { (yyval.cnt) = (yyvsp[-1].cnt); }
  5478. #line 6119 "mdlparse.c" /* yacc.c:1646 */
  5479. break;
  5480. case 566:
  5481. #line 2271 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5482. { (yyval.tok) = FILE_OVERWRITE; }
  5483. #line 6125 "mdlparse.c" /* yacc.c:1646 */
  5484. break;
  5485. case 567:
  5486. #line 2272 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5487. { (yyval.tok) = FILE_SUBSTITUTE; }
  5488. #line 6131 "mdlparse.c" /* yacc.c:1646 */
  5489. break;
  5490. case 568:
  5491. #line 2273 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5492. { (yyval.tok) = FILE_APPEND; }
  5493. #line 6137 "mdlparse.c" /* yacc.c:1646 */
  5494. break;
  5495. case 569:
  5496. #line 2274 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5497. { (yyval.tok) = FILE_APPEND_HEADER; }
  5498. #line 6143 "mdlparse.c" /* yacc.c:1646 */
  5499. break;
  5500. case 570:
  5501. #line 2275 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5502. { (yyval.tok) = FILE_CREATE; }
  5503. #line 6149 "mdlparse.c" /* yacc.c:1646 */
  5504. break;
  5505. case 572:
  5506. #line 2281 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5507. { CHECKN((yyval.sym) = mdl_existing_rxn_pathname_or_molecule(parse_state, (yyvsp[0].str))); }
  5508. #line 6155 "mdlparse.c" /* yacc.c:1646 */
  5509. break;
  5510. case 573:
  5511. #line 2285 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5512. {
  5513. (yyval.mol_type) = (yyvsp[0].mol_type);
  5514. if ((yyval.mol_type).orient > 0)
  5515. (yyval.mol_type).orient = 1;
  5516. else if ((yyval.mol_type).orient < 0)
  5517. (yyval.mol_type).orient = -1;
  5518. CHECKN((yyval.mol_type).mol_type = mdl_existing_molecule(parse_state, (yyvsp[-1].str)));
  5519. }
  5520. #line 6168 "mdlparse.c" /* yacc.c:1646 */
  5521. break;
  5522. case 578:
  5523. #line 2303 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5524. { CHECKN((yyval.cnt) = mdl_count_syntax_1(parse_state, (yyvsp[-3].sym), (yyvsp[-1].sym), (yyvsp[0].tok), parse_state->count_flags)); }
  5525. #line 6174 "mdlparse.c" /* yacc.c:1646 */
  5526. break;
  5527. case 579:
  5528. #line 2308 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5529. { CHECKN((yyval.cnt) = mdl_count_syntax_2(parse_state, (yyvsp[-3].mol_type).mol_type, (yyvsp[-3].mol_type).orient, (yyvsp[-1].sym), (yyvsp[0].tok), parse_state->count_flags)); }
  5530. #line 6180 "mdlparse.c" /* yacc.c:1646 */
  5531. break;
  5532. case 580:
  5533. #line 2313 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5534. { CHECKN((yyval.cnt) = mdl_count_syntax_3(parse_state, (yyvsp[-3].str), (yyvsp[-1].sym), (yyvsp[0].tok), parse_state->count_flags)); }
  5535. #line 6186 "mdlparse.c" /* yacc.c:1646 */
  5536. break;
  5537. case 582:
  5538. #line 2320 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5539. {
  5540. if (((struct species *) (yyvsp[0].mol_type).mol_type->value)->flags & IS_COMPLEX)
  5541. {
  5542. mdlerror_fmt(parse_state, "The molecule '%s' is a complex, and may not be used as a subunit type", (yyvsp[0].mol_type).mol_type->name);
  5543. return 1;
  5544. }
  5545. }
  5546. #line 6198 "mdlparse.c" /* yacc.c:1646 */
  5547. break;
  5548. case 583:
  5549. #line 2331 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5550. { parse_state->current_complex = (struct complex_species *) (yyvsp[0].sym)->value; }
  5551. #line 6204 "mdlparse.c" /* yacc.c:1646 */
  5552. break;
  5553. case 584:
  5554. #line 2335 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5555. {
  5556. parse_state->current_complex = NULL;
  5557. struct complex_species *macromol = (struct complex_species *) (yyvsp[-8].sym)->value;
  5558. struct mcell_species master_orientation = (yyvsp[-6].mol_type);
  5559. struct mcell_species subunit = (yyvsp[-4].mol_type);
  5560. struct macro_relation_state *relation_states = (yyvsp[-3].relation_state);
  5561. struct sym_table *location = (yyvsp[0].sym);
  5562. CHECKN((yyval.cnt) = mdl_count_syntax_macromol_subunit(parse_state, macromol, &master_orientation, & subunit, relation_states, location));
  5563. }
  5564. #line 6218 "mdlparse.c" /* yacc.c:1646 */
  5565. break;
  5566. case 585:
  5567. #line 2347 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5568. { (yyval.relation_state) = NULL; }
  5569. #line 6224 "mdlparse.c" /* yacc.c:1646 */
  5570. break;
  5571. case 586:
  5572. #line 2348 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5573. { (yyval.relation_state) = (yyvsp[-1].relation_state); }
  5574. #line 6230 "mdlparse.c" /* yacc.c:1646 */
  5575. break;
  5576. case 588:
  5577. #line 2354 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5578. { (yyvsp[0].relation_state)->next = (yyvsp[-2].relation_state); (yyval.relation_state) = (yyvsp[0].relation_state); }
  5579. #line 6236 "mdlparse.c" /* yacc.c:1646 */
  5580. break;
  5581. case 589:
  5582. #line 2360 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5583. { CHECKN((yyval.relation_state) = mdl_assemble_complex_relation_state(parse_state, (yyvsp[-2].ival), (yyvsp[-1].ival), & (yyvsp[0].mol_type))); }
  5584. #line 6242 "mdlparse.c" /* yacc.c:1646 */
  5585. break;
  5586. case 590:
  5587. #line 2363 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5588. {
  5589. int rel_idx = macro_lookup_relation(parse_state->current_complex, (yyvsp[0].str));
  5590. if (rel_idx == -1)
  5591. {
  5592. mdlerror_fmt(parse_state,
  5593. "In subunit specification for COUNT statement, relation '%s' does not exist within the complex '%s'",
  5594. (yyvsp[0].str),
  5595. parse_state->current_complex->base.sym->name);
  5596. return 1;
  5597. }
  5598. (yyval.ival) = rel_idx;
  5599. }
  5600. #line 6260 "mdlparse.c" /* yacc.c:1646 */
  5601. break;
  5602. case 591:
  5603. #line 2378 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5604. { (yyval.sym) = NULL; }
  5605. #line 6266 "mdlparse.c" /* yacc.c:1646 */
  5606. break;
  5607. case 592:
  5608. #line 2379 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5609. { (yyval.sym) = (yyvsp[0].sym); }
  5610. #line 6272 "mdlparse.c" /* yacc.c:1646 */
  5611. break;
  5612. case 593:
  5613. #line 2380 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5614. { (yyval.sym) = (yyvsp[0].sym); }
  5615. #line 6278 "mdlparse.c" /* yacc.c:1646 */
  5616. break;
  5617. case 594:
  5618. #line 2383 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5619. { (yyval.tok) = REPORT_NOTHING; }
  5620. #line 6284 "mdlparse.c" /* yacc.c:1646 */
  5621. break;
  5622. case 595:
  5623. #line 2384 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5624. { (yyval.tok) = (yyvsp[0].tok); }
  5625. #line 6290 "mdlparse.c" /* yacc.c:1646 */
  5626. break;
  5627. case 596:
  5628. #line 2387 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5629. { (yyval.tok) = REPORT_FRONT_HITS; }
  5630. #line 6296 "mdlparse.c" /* yacc.c:1646 */
  5631. break;
  5632. case 597:
  5633. #line 2388 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5634. { (yyval.tok) = REPORT_BACK_HITS; }
  5635. #line 6302 "mdlparse.c" /* yacc.c:1646 */
  5636. break;
  5637. case 598:
  5638. #line 2389 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5639. { (yyval.tok) = REPORT_ALL_HITS; }
  5640. #line 6308 "mdlparse.c" /* yacc.c:1646 */
  5641. break;
  5642. case 599:
  5643. #line 2390 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5644. { (yyval.tok) = REPORT_FRONT_CROSSINGS; }
  5645. #line 6314 "mdlparse.c" /* yacc.c:1646 */
  5646. break;
  5647. case 600:
  5648. #line 2391 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5649. { (yyval.tok) = REPORT_BACK_CROSSINGS; }
  5650. #line 6320 "mdlparse.c" /* yacc.c:1646 */
  5651. break;
  5652. case 601:
  5653. #line 2392 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5654. { (yyval.tok) = REPORT_ALL_CROSSINGS; }
  5655. #line 6326 "mdlparse.c" /* yacc.c:1646 */
  5656. break;
  5657. case 602:
  5658. #line 2393 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5659. { (yyval.tok) = REPORT_CONCENTRATION; }
  5660. #line 6332 "mdlparse.c" /* yacc.c:1646 */
  5661. break;
  5662. case 603:
  5663. #line 2394 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5664. { (yyval.tok) = REPORT_ENCLOSED; }
  5665. #line 6338 "mdlparse.c" /* yacc.c:1646 */
  5666. break;
  5667. case 604:
  5668. #line 2397 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5669. { (yyval.str) = NULL; }
  5670. #line 6344 "mdlparse.c" /* yacc.c:1646 */
  5671. break;
  5672. case 605:
  5673. #line 2398 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5674. { (yyval.str) = (yyvsp[0].str); }
  5675. #line 6350 "mdlparse.c" /* yacc.c:1646 */
  5676. break;
  5677. case 606:
  5678. #line 2405 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5679. { CHECK(mdl_new_viz_output_block(parse_state)); }
  5680. #line 6356 "mdlparse.c" /* yacc.c:1646 */
  5681. break;
  5682. case 607:
  5683. #line 2410 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5684. { CHECK(mdl_finish_viz_output_block(parse_state, parse_state->vol->viz_blocks)); }
  5685. #line 6362 "mdlparse.c" /* yacc.c:1646 */
  5686. break;
  5687. case 610:
  5688. #line 2419 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5689. { CHECK(mdl_set_viz_mode(parse_state->vol->viz_blocks, CELLBLENDER_MODE)); }
  5690. #line 6368 "mdlparse.c" /* yacc.c:1646 */
  5691. break;
  5692. case 611:
  5693. #line 2420 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5694. { CHECK(mdl_set_viz_mode(parse_state->vol->viz_blocks, (yyvsp[0].ival))); }
  5695. #line 6374 "mdlparse.c" /* yacc.c:1646 */
  5696. break;
  5697. case 612:
  5698. #line 2423 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5699. { (yyval.ival) = NO_VIZ_MODE; }
  5700. #line 6380 "mdlparse.c" /* yacc.c:1646 */
  5701. break;
  5702. case 613:
  5703. #line 2424 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5704. { (yyval.ival) = DREAMM_V3_MODE; }
  5705. #line 6386 "mdlparse.c" /* yacc.c:1646 */
  5706. break;
  5707. case 614:
  5708. #line 2425 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5709. { (yyval.ival) = DREAMM_V3_GROUPED_MODE; }
  5710. #line 6392 "mdlparse.c" /* yacc.c:1646 */
  5711. break;
  5712. case 615:
  5713. #line 2426 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5714. { (yyval.ival) = ASCII_MODE; }
  5715. #line 6398 "mdlparse.c" /* yacc.c:1646 */
  5716. break;
  5717. case 616:
  5718. #line 2427 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5719. { (yyval.ival) = CELLBLENDER_MODE; }
  5720. #line 6404 "mdlparse.c" /* yacc.c:1646 */
  5721. break;
  5722. case 617:
  5723. #line 2430 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5724. {
  5725. if (parse_state->vol->viz_blocks->viz_mode == DREAMM_V3_MODE)
  5726. CHECK(mdl_set_viz_mesh_format(parse_state, parse_state->vol->viz_blocks, VIZ_MESH_FORMAT_BINARY));
  5727. }
  5728. #line 6413 "mdlparse.c" /* yacc.c:1646 */
  5729. break;
  5730. case 618:
  5731. #line 2434 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5732. { CHECK(mdl_set_viz_mesh_format(parse_state, parse_state->vol->viz_blocks, (yyvsp[0].ival))); }
  5733. #line 6419 "mdlparse.c" /* yacc.c:1646 */
  5734. break;
  5735. case 619:
  5736. #line 2437 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5737. { (yyval.ival) = VIZ_MESH_FORMAT_BINARY; }
  5738. #line 6425 "mdlparse.c" /* yacc.c:1646 */
  5739. break;
  5740. case 620:
  5741. #line 2438 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5742. { (yyval.ival) = VIZ_MESH_FORMAT_ASCII; }
  5743. #line 6431 "mdlparse.c" /* yacc.c:1646 */
  5744. break;
  5745. case 621:
  5746. #line 2442 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5747. {
  5748. if (parse_state->vol->viz_blocks->viz_mode == DREAMM_V3_MODE)
  5749. CHECK(mdl_set_viz_molecule_format(parse_state, parse_state->vol->viz_blocks, VIZ_MOLECULE_FORMAT_BINARY));
  5750. }
  5751. #line 6440 "mdlparse.c" /* yacc.c:1646 */
  5752. break;
  5753. case 622:
  5754. #line 2446 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5755. { CHECK(mdl_set_viz_molecule_format(parse_state, parse_state->vol->viz_blocks, (yyvsp[0].ival))); }
  5756. #line 6446 "mdlparse.c" /* yacc.c:1646 */
  5757. break;
  5758. case 623:
  5759. #line 2450 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5760. { (yyval.ival) = VIZ_MOLECULE_FORMAT_BINARY; }
  5761. #line 6452 "mdlparse.c" /* yacc.c:1646 */
  5762. break;
  5763. case 624:
  5764. #line 2451 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5765. { (yyval.ival) = VIZ_MOLECULE_FORMAT_ASCII; }
  5766. #line 6458 "mdlparse.c" /* yacc.c:1646 */
  5767. break;
  5768. case 626:
  5769. #line 2456 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5770. {
  5771. if ((yyvsp[0].frame_list).frame_head)
  5772. {
  5773. (yyvsp[0].frame_list).frame_tail->next = parse_state->vol->viz_blocks->frame_data_head;
  5774. parse_state->vol->viz_blocks->frame_data_head = (yyvsp[0].frame_list).frame_head;
  5775. }
  5776. }
  5777. #line 6470 "mdlparse.c" /* yacc.c:1646 */
  5778. break;
  5779. case 629:
  5780. #line 2470 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5781. { CHECK(mdl_set_viz_filename_prefix(parse_state, parse_state->vol->viz_blocks, (yyvsp[0].str))); }
  5782. #line 6476 "mdlparse.c" /* yacc.c:1646 */
  5783. break;
  5784. case 630:
  5785. #line 2476 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5786. { (yyval.frame_list) = (yyvsp[-1].frame_list); }
  5787. #line 6482 "mdlparse.c" /* yacc.c:1646 */
  5788. break;
  5789. case 632:
  5790. #line 2482 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5791. {
  5792. (yyval.frame_list) = (yyvsp[-1].frame_list);
  5793. if ((yyval.frame_list).frame_tail)
  5794. {
  5795. (yyval.frame_list).frame_tail->next = (yyvsp[0].frame_list).frame_head;
  5796. if ((yyvsp[0].frame_list).frame_tail)
  5797. (yyval.frame_list).frame_tail = (yyvsp[0].frame_list).frame_tail;
  5798. }
  5799. else
  5800. (yyval.frame_list) = (yyvsp[0].frame_list);
  5801. }
  5802. #line 6498 "mdlparse.c" /* yacc.c:1646 */
  5803. break;
  5804. case 633:
  5805. #line 2496 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5806. { (yyval.frame_list).frame_head = (yyval.frame_list).frame_tail = NULL; }
  5807. #line 6504 "mdlparse.c" /* yacc.c:1646 */
  5808. break;
  5809. case 637:
  5810. #line 2508 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5811. { CHECK(mdl_viz_state(parse_state, & (yyval.ival), (yyvsp[0].dbl))); }
  5812. #line 6510 "mdlparse.c" /* yacc.c:1646 */
  5813. break;
  5814. case 638:
  5815. #line 2509 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5816. { (yyval.ival) = INCLUDE_OBJ; }
  5817. #line 6516 "mdlparse.c" /* yacc.c:1646 */
  5818. break;
  5819. case 641:
  5820. #line 2519 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5821. { CHECK(mdl_set_viz_include_molecules(parse_state, parse_state->vol->viz_blocks, (yyvsp[-1].symlist), (yyvsp[0].ival))); }
  5822. #line 6522 "mdlparse.c" /* yacc.c:1646 */
  5823. break;
  5824. case 642:
  5825. #line 2520 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5826. { CHECK(mdl_set_viz_include_all_molecules(parse_state->vol->viz_blocks, (yyvsp[0].ival))); }
  5827. #line 6528 "mdlparse.c" /* yacc.c:1646 */
  5828. break;
  5829. case 643:
  5830. #line 2524 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5831. { CHECKN((yyval.symlist) = mdl_existing_molecule_list(parse_state, (yyvsp[0].str))); }
  5832. #line 6534 "mdlparse.c" /* yacc.c:1646 */
  5833. break;
  5834. case 644:
  5835. #line 2525 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5836. { CHECKN((yyval.symlist) = mdl_existing_molecules_wildcard(parse_state, (yyvsp[0].str))); }
  5837. #line 6540 "mdlparse.c" /* yacc.c:1646 */
  5838. break;
  5839. case 645:
  5840. #line 2529 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5841. { CHECK(mdl_new_viz_all_times(parse_state, & (yyval.nlist))); }
  5842. #line 6546 "mdlparse.c" /* yacc.c:1646 */
  5843. break;
  5844. case 647:
  5845. #line 2535 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5846. { (yyval.frame_list) = (yyvsp[-1].frame_list); }
  5847. #line 6552 "mdlparse.c" /* yacc.c:1646 */
  5848. break;
  5849. case 649:
  5850. #line 2541 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5851. {
  5852. if ((yyvsp[-1].frame_list).frame_head != NULL)
  5853. {
  5854. (yyval.frame_list) = (yyvsp[-1].frame_list);
  5855. if ((yyvsp[0].frame_list).frame_head != NULL)
  5856. {
  5857. (yyval.frame_list).frame_tail->next = (yyvsp[0].frame_list).frame_head;
  5858. (yyval.frame_list).frame_tail = (yyvsp[0].frame_list).frame_tail;
  5859. }
  5860. }
  5861. else if ((yyvsp[0].frame_list).frame_head != NULL)
  5862. (yyval.frame_list) = (yyvsp[0].frame_list);
  5863. }
  5864. #line 6570 "mdlparse.c" /* yacc.c:1646 */
  5865. break;
  5866. case 650:
  5867. #line 2558 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5868. { CHECK(mdl_new_viz_mol_frames(parse_state, parse_state->vol->viz_blocks, & (yyval.frame_list), OUTPUT_BY_TIME_LIST, (yyvsp[-2].tok), & (yyvsp[0].nlist))); }
  5869. #line 6576 "mdlparse.c" /* yacc.c:1646 */
  5870. break;
  5871. case 651:
  5872. #line 2562 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5873. { CHECK(mdl_new_viz_all_iterations(parse_state, & (yyval.nlist))); }
  5874. #line 6582 "mdlparse.c" /* yacc.c:1646 */
  5875. break;
  5876. case 653:
  5877. #line 2569 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5878. { (yyval.frame_list) = (yyvsp[-1].frame_list); }
  5879. #line 6588 "mdlparse.c" /* yacc.c:1646 */
  5880. break;
  5881. case 655:
  5882. #line 2575 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5883. {
  5884. if ((yyvsp[-1].frame_list).frame_head != NULL)
  5885. {
  5886. (yyval.frame_list) = (yyvsp[-1].frame_list);
  5887. if ((yyvsp[0].frame_list).frame_head != NULL)
  5888. {
  5889. (yyval.frame_list).frame_tail->next = (yyvsp[0].frame_list).frame_head;
  5890. (yyval.frame_list).frame_tail = (yyvsp[0].frame_list).frame_tail;
  5891. }
  5892. }
  5893. else if ((yyvsp[0].frame_list).frame_head != NULL)
  5894. (yyval.frame_list) = (yyvsp[0].frame_list);
  5895. }
  5896. #line 6606 "mdlparse.c" /* yacc.c:1646 */
  5897. break;
  5898. case 656:
  5899. #line 2592 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5900. { CHECK(mdl_new_viz_mol_frames(parse_state, parse_state->vol->viz_blocks, & (yyval.frame_list), OUTPUT_BY_ITERATION_LIST, (yyvsp[-2].tok), & (yyvsp[0].nlist))); }
  5901. #line 6612 "mdlparse.c" /* yacc.c:1646 */
  5902. break;
  5903. case 657:
  5904. #line 2595 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5905. { (yyval.tok) = ALL_MOL_DATA; }
  5906. #line 6618 "mdlparse.c" /* yacc.c:1646 */
  5907. break;
  5908. case 658:
  5909. #line 2596 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5910. { (yyval.tok) = MOL_POS; }
  5911. #line 6624 "mdlparse.c" /* yacc.c:1646 */
  5912. break;
  5913. case 659:
  5914. #line 2597 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5915. { (yyval.tok) = MOL_ORIENT; }
  5916. #line 6630 "mdlparse.c" /* yacc.c:1646 */
  5917. break;
  5918. case 660:
  5919. #line 2603 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5920. { (yyval.frame_list) = (yyvsp[-1].frame_list); }
  5921. #line 6636 "mdlparse.c" /* yacc.c:1646 */
  5922. break;
  5923. case 662:
  5924. #line 2609 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5925. {
  5926. (yyval.frame_list) = (yyvsp[-1].frame_list);
  5927. if ((yyval.frame_list).frame_tail)
  5928. {
  5929. (yyval.frame_list).frame_tail->next = (yyvsp[0].frame_list).frame_head;
  5930. if ((yyvsp[0].frame_list).frame_tail)
  5931. (yyval.frame_list).frame_tail = (yyvsp[0].frame_list).frame_tail;
  5932. }
  5933. else
  5934. (yyval.frame_list) = (yyvsp[0].frame_list);
  5935. }
  5936. #line 6652 "mdlparse.c" /* yacc.c:1646 */
  5937. break;
  5938. case 663:
  5939. #line 2623 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5940. { (yyval.frame_list).frame_head = (yyval.frame_list).frame_tail = NULL; }
  5941. #line 6658 "mdlparse.c" /* yacc.c:1646 */
  5942. break;
  5943. case 669:
  5944. #line 2640 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5945. { CHECK(mdl_set_region_viz_state(parse_state, parse_state->vol->viz_blocks, (struct region *) (yyvsp[-1].sym)->value, (int) (yyvsp[0].ival))); }
  5946. #line 6664 "mdlparse.c" /* yacc.c:1646 */
  5947. break;
  5948. case 670:
  5949. #line 2641 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5950. { CHECK(mdl_set_viz_include_meshes(parse_state, parse_state->vol->viz_blocks, (yyvsp[-1].symlist), (yyvsp[0].ival))); }
  5951. #line 6670 "mdlparse.c" /* yacc.c:1646 */
  5952. break;
  5953. case 671:
  5954. #line 2642 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5955. { CHECK(mdl_set_viz_include_all_meshes(parse_state->vol->viz_blocks, (yyvsp[0].ival))); }
  5956. #line 6676 "mdlparse.c" /* yacc.c:1646 */
  5957. break;
  5958. case 672:
  5959. #line 2648 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5960. { (yyval.frame_list) = (yyvsp[-1].frame_list); }
  5961. #line 6682 "mdlparse.c" /* yacc.c:1646 */
  5962. break;
  5963. case 674:
  5964. #line 2654 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5965. {
  5966. if ((yyvsp[-1].frame_list).frame_head != NULL)
  5967. {
  5968. (yyval.frame_list) = (yyvsp[-1].frame_list);
  5969. if ((yyvsp[0].frame_list).frame_head != NULL)
  5970. {
  5971. (yyval.frame_list).frame_tail->next = (yyvsp[0].frame_list).frame_head;
  5972. (yyval.frame_list).frame_tail = (yyvsp[0].frame_list).frame_tail;
  5973. }
  5974. }
  5975. else if ((yyvsp[0].frame_list).frame_head != NULL)
  5976. (yyval.frame_list) = (yyvsp[0].frame_list);
  5977. }
  5978. #line 6700 "mdlparse.c" /* yacc.c:1646 */
  5979. break;
  5980. case 675:
  5981. #line 2671 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5982. { CHECK(mdl_new_viz_mesh_frames(parse_state, parse_state->vol->viz_blocks, & (yyval.frame_list), OUTPUT_BY_TIME_LIST, (yyvsp[-2].tok), & (yyvsp[0].nlist))); }
  5983. #line 6706 "mdlparse.c" /* yacc.c:1646 */
  5984. break;
  5985. case 676:
  5986. #line 2677 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5987. { (yyval.frame_list) = (yyvsp[-1].frame_list); }
  5988. #line 6712 "mdlparse.c" /* yacc.c:1646 */
  5989. break;
  5990. case 678:
  5991. #line 2683 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  5992. {
  5993. if ((yyvsp[-1].frame_list).frame_head != NULL)
  5994. {
  5995. (yyval.frame_list) = (yyvsp[-1].frame_list);
  5996. if ((yyvsp[0].frame_list).frame_head != NULL)
  5997. {
  5998. (yyval.frame_list).frame_tail->next = (yyvsp[0].frame_list).frame_head;
  5999. (yyval.frame_list).frame_tail = (yyvsp[0].frame_list).frame_tail;
  6000. }
  6001. }
  6002. else if ((yyvsp[0].frame_list).frame_head != NULL)
  6003. (yyval.frame_list) = (yyvsp[0].frame_list);
  6004. }
  6005. #line 6730 "mdlparse.c" /* yacc.c:1646 */
  6006. break;
  6007. case 679:
  6008. #line 2700 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6009. { CHECK(mdl_new_viz_mesh_frames(parse_state, parse_state->vol->viz_blocks, & (yyval.frame_list), OUTPUT_BY_ITERATION_LIST, (yyvsp[-2].tok), & (yyvsp[0].nlist))); }
  6010. #line 6736 "mdlparse.c" /* yacc.c:1646 */
  6011. break;
  6012. case 680:
  6013. #line 2703 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6014. { (yyval.tok) = ALL_MESH_DATA; }
  6015. #line 6742 "mdlparse.c" /* yacc.c:1646 */
  6016. break;
  6017. case 681:
  6018. #line 2704 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6019. { (yyval.tok) = MESH_GEOMETRY; }
  6020. #line 6748 "mdlparse.c" /* yacc.c:1646 */
  6021. break;
  6022. case 682:
  6023. #line 2705 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6024. { (yyval.tok) = REG_DATA; }
  6025. #line 6754 "mdlparse.c" /* yacc.c:1646 */
  6026. break;
  6027. case 683:
  6028. #line 2719 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6029. {
  6030. struct volume_output_item *vo;
  6031. CHECKN(vo = mdl_new_volume_output_item(parse_state, (yyvsp[-6].str), & (yyvsp[-5].species_lst), (yyvsp[-4].vec3), (yyvsp[-3].vec3), (yyvsp[-2].vec3), (yyvsp[-1].otimes)));
  6032. vo->next = parse_state->vol->volume_output_head;
  6033. parse_state->vol->volume_output_head = vo;
  6034. }
  6035. #line 6765 "mdlparse.c" /* yacc.c:1646 */
  6036. break;
  6037. case 684:
  6038. #line 2728 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6039. { (yyval.str) = (yyvsp[0].str); }
  6040. #line 6771 "mdlparse.c" /* yacc.c:1646 */
  6041. break;
  6042. case 686:
  6043. #line 2734 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6044. {
  6045. (yyval.species_lst) = (yyvsp[-1].species_lst);
  6046. (yyval.species_lst).species_count += (yyvsp[0].species_lst).species_count;
  6047. (yyval.species_lst).species_tail->next = (yyvsp[0].species_lst).species_head;
  6048. (yyval.species_lst).species_tail = (yyvsp[0].species_lst).species_tail;
  6049. }
  6050. #line 6782 "mdlparse.c" /* yacc.c:1646 */
  6051. break;
  6052. case 687:
  6053. #line 2743 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6054. { (yyval.species_lst) = (yyvsp[0].species_lst); }
  6055. #line 6788 "mdlparse.c" /* yacc.c:1646 */
  6056. break;
  6057. case 688:
  6058. #line 2746 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6059. {
  6060. struct sym_table *sp;
  6061. struct species_list_item *ptrl;
  6062. CHECKN(sp = mdl_existing_molecule(parse_state, (yyvsp[0].str)));
  6063. ptrl = (struct species_list_item *) mem_get(parse_state->species_list_mem);
  6064. if (ptrl == NULL)
  6065. {
  6066. mdlerror_fmt(parse_state, "Out of memory while parsing molecule list");
  6067. return 1;
  6068. }
  6069. ptrl->spec = (struct species *) sp->value;
  6070. ptrl->next = NULL;
  6071. (yyval.species_lst_item) = ptrl;
  6072. }
  6073. #line 6808 "mdlparse.c" /* yacc.c:1646 */
  6074. break;
  6075. case 689:
  6076. #line 2764 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6077. { (yyval.species_lst).species_tail = (yyval.species_lst).species_head = (yyvsp[0].species_lst_item); (yyval.species_lst).species_count = 1; }
  6078. #line 6814 "mdlparse.c" /* yacc.c:1646 */
  6079. break;
  6080. case 690:
  6081. #line 2766 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6082. {
  6083. (yyval.species_lst) = (yyvsp[-2].species_lst);
  6084. (yyval.species_lst).species_tail = (yyval.species_lst).species_tail->next = (yyvsp[0].species_lst_item);
  6085. ++ (yyval.species_lst).species_count;
  6086. }
  6087. #line 6824 "mdlparse.c" /* yacc.c:1646 */
  6088. break;
  6089. case 691:
  6090. #line 2774 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6091. { (yyval.vec3) = (yyvsp[0].vec3); }
  6092. #line 6830 "mdlparse.c" /* yacc.c:1646 */
  6093. break;
  6094. case 692:
  6095. #line 2778 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6096. { (yyval.vec3) = (yyvsp[0].vec3); }
  6097. #line 6836 "mdlparse.c" /* yacc.c:1646 */
  6098. break;
  6099. case 693:
  6100. #line 2782 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6101. {
  6102. if ((yyvsp[0].vec3)->x < 1.0)
  6103. {
  6104. mdl_warning(parse_state, "Voxel count (x dimension) too small. Setting x count to 1.");
  6105. (yyvsp[0].vec3)->x = 1.0;
  6106. }
  6107. if ((yyvsp[0].vec3)->y < 1.0)
  6108. {
  6109. mdl_warning(parse_state, "Voxel count (y dimension) too small. Setting y count to 1.");
  6110. (yyvsp[0].vec3)->y = 1.0;
  6111. }
  6112. if ((yyvsp[0].vec3)->z < 1.0)
  6113. {
  6114. mdl_warning(parse_state, "Voxel count (z dimension) too small. Setting z count to 1.");
  6115. (yyvsp[0].vec3)->z = 1.0;
  6116. }
  6117. (yyval.vec3) = (yyvsp[0].vec3);
  6118. }
  6119. #line 6859 "mdlparse.c" /* yacc.c:1646 */
  6120. break;
  6121. case 694:
  6122. #line 2803 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6123. { CHECKN((yyval.otimes) = mdl_new_output_times_default(parse_state)); }
  6124. #line 6865 "mdlparse.c" /* yacc.c:1646 */
  6125. break;
  6126. case 695:
  6127. #line 2804 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6128. { CHECKN((yyval.otimes) = mdl_new_output_times_step(parse_state, (yyvsp[0].dbl))); }
  6129. #line 6871 "mdlparse.c" /* yacc.c:1646 */
  6130. break;
  6131. case 696:
  6132. #line 2805 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6133. { CHECKN((yyval.otimes) = mdl_new_output_times_iterations(parse_state, & (yyvsp[0].nlist))); }
  6134. #line 6877 "mdlparse.c" /* yacc.c:1646 */
  6135. break;
  6136. case 697:
  6137. #line 2806 "../src/../src/mdlparse.y" /* yacc.c:1646 */
  6138. { CHECKN((yyval.otimes) = mdl_new_output_times_time(parse_state, & (yyvsp[0].nlist))); }
  6139. #line 6883 "mdlparse.c" /* yacc.c:1646 */
  6140. break;
  6141. #line 6887 "mdlparse.c" /* yacc.c:1646 */
  6142. default: break;
  6143. }
  6144. /* User semantic actions sometimes alter yychar, and that requires
  6145. that yytoken be updated with the new translation. We take the
  6146. approach of translating immediately before every use of yytoken.
  6147. One alternative is translating here after every semantic action,
  6148. but that translation would be missed if the semantic action invokes
  6149. YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
  6150. if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
  6151. incorrect destructor might then be invoked immediately. In the
  6152. case of YYERROR or YYBACKUP, subsequent parser actions might lead
  6153. to an incorrect destructor call or verbose syntax error message
  6154. before the lookahead is translated. */
  6155. YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
  6156. YYPOPSTACK (yylen);
  6157. yylen = 0;
  6158. YY_STACK_PRINT (yyss, yyssp);
  6159. *++yyvsp = yyval;
  6160. /* Now 'shift' the result of the reduction. Determine what state
  6161. that goes to, based on the state we popped back to and the rule
  6162. number reduced by. */
  6163. yyn = yyr1[yyn];
  6164. yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  6165. if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  6166. yystate = yytable[yystate];
  6167. else
  6168. yystate = yydefgoto[yyn - YYNTOKENS];
  6169. goto yynewstate;
  6170. /*--------------------------------------.
  6171. | yyerrlab -- here on detecting error. |
  6172. `--------------------------------------*/
  6173. yyerrlab:
  6174. /* Make sure we have latest lookahead translation. See comments at
  6175. user semantic actions for why this is necessary. */
  6176. yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
  6177. /* If not already recovering from an error, report this error. */
  6178. if (!yyerrstatus)
  6179. {
  6180. ++yynerrs;
  6181. #if ! YYERROR_VERBOSE
  6182. yyerror (parse_state, scanner, YY_("syntax error"));
  6183. #else
  6184. # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
  6185. yyssp, yytoken)
  6186. {
  6187. char const *yymsgp = YY_("syntax error");
  6188. int yysyntax_error_status;
  6189. yysyntax_error_status = YYSYNTAX_ERROR;
  6190. if (yysyntax_error_status == 0)
  6191. yymsgp = yymsg;
  6192. else if (yysyntax_error_status == 1)
  6193. {
  6194. if (yymsg != yymsgbuf)
  6195. YYSTACK_FREE (yymsg);
  6196. yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
  6197. if (!yymsg)
  6198. {
  6199. yymsg = yymsgbuf;
  6200. yymsg_alloc = sizeof yymsgbuf;
  6201. yysyntax_error_status = 2;
  6202. }
  6203. else
  6204. {
  6205. yysyntax_error_status = YYSYNTAX_ERROR;
  6206. yymsgp = yymsg;
  6207. }
  6208. }
  6209. yyerror (parse_state, scanner, yymsgp);
  6210. if (yysyntax_error_status == 2)
  6211. goto yyexhaustedlab;
  6212. }
  6213. # undef YYSYNTAX_ERROR
  6214. #endif
  6215. }
  6216. if (yyerrstatus == 3)
  6217. {
  6218. /* If just tried and failed to reuse lookahead token after an
  6219. error, discard it. */
  6220. if (yychar <= YYEOF)
  6221. {
  6222. /* Return failure if at end of input. */
  6223. if (yychar == YYEOF)
  6224. YYABORT;
  6225. }
  6226. else
  6227. {
  6228. yydestruct ("Error: discarding",
  6229. yytoken, &yylval, parse_state, scanner);
  6230. yychar = YYEMPTY;
  6231. }
  6232. }
  6233. /* Else will try to reuse lookahead token after shifting the error
  6234. token. */
  6235. goto yyerrlab1;
  6236. /*---------------------------------------------------.
  6237. | yyerrorlab -- error raised explicitly by YYERROR. |
  6238. `---------------------------------------------------*/
  6239. yyerrorlab:
  6240. /* Pacify compilers like GCC when the user code never invokes
  6241. YYERROR and the label yyerrorlab therefore never appears in user
  6242. code. */
  6243. if (/*CONSTCOND*/ 0)
  6244. goto yyerrorlab;
  6245. /* Do not reclaim the symbols of the rule whose action triggered
  6246. this YYERROR. */
  6247. YYPOPSTACK (yylen);
  6248. yylen = 0;
  6249. YY_STACK_PRINT (yyss, yyssp);
  6250. yystate = *yyssp;
  6251. goto yyerrlab1;
  6252. /*-------------------------------------------------------------.
  6253. | yyerrlab1 -- common code for both syntax error and YYERROR. |
  6254. `-------------------------------------------------------------*/
  6255. yyerrlab1:
  6256. yyerrstatus = 3; /* Each real token shifted decrements this. */
  6257. for (;;)
  6258. {
  6259. yyn = yypact[yystate];
  6260. if (!yypact_value_is_default (yyn))
  6261. {
  6262. yyn += YYTERROR;
  6263. if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  6264. {
  6265. yyn = yytable[yyn];
  6266. if (0 < yyn)
  6267. break;
  6268. }
  6269. }
  6270. /* Pop the current state because it cannot handle the error token. */
  6271. if (yyssp == yyss)
  6272. YYABORT;
  6273. yydestruct ("Error: popping",
  6274. yystos[yystate], yyvsp, parse_state, scanner);
  6275. YYPOPSTACK (1);
  6276. yystate = *yyssp;
  6277. YY_STACK_PRINT (yyss, yyssp);
  6278. }
  6279. YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  6280. *++yyvsp = yylval;
  6281. YY_IGNORE_MAYBE_UNINITIALIZED_END
  6282. /* Shift the error token. */
  6283. YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
  6284. yystate = yyn;
  6285. goto yynewstate;
  6286. /*-------------------------------------.
  6287. | yyacceptlab -- YYACCEPT comes here. |
  6288. `-------------------------------------*/
  6289. yyacceptlab:
  6290. yyresult = 0;
  6291. goto yyreturn;
  6292. /*-----------------------------------.
  6293. | yyabortlab -- YYABORT comes here. |
  6294. `-----------------------------------*/
  6295. yyabortlab:
  6296. yyresult = 1;
  6297. goto yyreturn;
  6298. #if !defined yyoverflow || YYERROR_VERBOSE
  6299. /*-------------------------------------------------.
  6300. | yyexhaustedlab -- memory exhaustion comes here. |
  6301. `-------------------------------------------------*/
  6302. yyexhaustedlab:
  6303. yyerror (parse_state, scanner, YY_("memory exhausted"));
  6304. yyresult = 2;
  6305. /* Fall through. */
  6306. #endif
  6307. yyreturn:
  6308. if (yychar != YYEMPTY)
  6309. {
  6310. /* Make sure we have latest lookahead translation. See comments at
  6311. user semantic actions for why this is necessary. */
  6312. yytoken = YYTRANSLATE (yychar);
  6313. yydestruct ("Cleanup: discarding lookahead",
  6314. yytoken, &yylval, parse_state, scanner);
  6315. }
  6316. /* Do not reclaim the symbols of the rule whose action triggered
  6317. this YYABORT or YYACCEPT. */
  6318. YYPOPSTACK (yylen);
  6319. YY_STACK_PRINT (yyss, yyssp);
  6320. while (yyssp != yyss)
  6321. {
  6322. yydestruct ("Cleanup: popping",
  6323. yystos[*yyssp], yyvsp, parse_state, scanner);
  6324. YYPOPSTACK (1);
  6325. }
  6326. #ifndef yyoverflow
  6327. if (yyss != yyssa)
  6328. YYSTACK_FREE (yyss);
  6329. #endif
  6330. #if YYERROR_VERBOSE
  6331. if (yymsg != yymsgbuf)
  6332. YYSTACK_FREE (yymsg);
  6333. #endif
  6334. return yyresult;
  6335. }
  6336. #line 2809 "../src/../src/mdlparse.y" /* yacc.c:1906 */
  6337. /* Begin Bison Epilogue: */
  6338. /* mdlerror: Standard error callback from parser.
  6339. *
  6340. * parse_state: the parser state variables
  6341. * str: the error message to display
  6342. */
  6343. void mdlerror(struct mdlparse_vars *parse_state, char const *str)
  6344. {
  6345. mdlerror_fmt(parse_state, "%s", str);
  6346. }
  6347. /* mdlerror_fmt: Print a formatted error message regarding an error in the MDL
  6348. * file.
  6349. *
  6350. * parse_state: the parser state variables
  6351. * fmt: the printf-style format string
  6352. */
  6353. void mdlerror_fmt(struct mdlparse_vars *parse_state, char const *fmt, ...)
  6354. {
  6355. va_list arglist;
  6356. if (parse_state->vol->procnum != 0)
  6357. return;
  6358. /* print error location */
  6359. if (parse_state->include_stack_ptr == 0)
  6360. mcell_error_raw("Fatal error: After parsing file %s\n",
  6361. parse_state->vol->curr_file);
  6362. else
  6363. mcell_error_raw("Fatal error: On line: %d of file %s\n",
  6364. parse_state->line_num[parse_state->include_stack_ptr - 1],
  6365. parse_state->vol->curr_file);
  6366. /* format error message */
  6367. va_start(arglist, fmt);
  6368. mcell_errorv_raw(fmt, arglist);
  6369. va_end(arglist);
  6370. /* terminate error message and flush */
  6371. mcell_error_raw("\n");
  6372. mcell_die();
  6373. }
  6374. /* mdlerror_file: Open and parse an MDL file.
  6375. *
  6376. * parse_state: the parser state variables
  6377. * name: the path to the MDL file
  6378. */
  6379. static int mdlparse_file(struct mdlparse_vars *parse_state, char const *name)
  6380. {
  6381. int failure;
  6382. int cur_stack = parse_state->include_stack_ptr ++;
  6383. FILE *infile;
  6384. yyscan_t scanner;
  6385. char const *prev_file;
  6386. /* Put filename and line number on stack */
  6387. if (cur_stack >= MAX_INCLUDE_DEPTH)
  6388. {
  6389. -- parse_state->include_stack_ptr;
  6390. mdlerror_fmt(parse_state, "Includes nested too deeply at file %s\n included from %s:%d",
  6391. name,
  6392. parse_state->include_filename[cur_stack-1],
  6393. parse_state->line_num[cur_stack-1]);
  6394. return 1;
  6395. }
  6396. parse_state->line_num[cur_stack] = 1;
  6397. parse_state->include_filename[cur_stack] = name;
  6398. /* Open file, or know the reason why */
  6399. no_printf("Opening file %s\n", name);
  6400. if ((infile = fopen(name,"r")) == NULL)
  6401. {
  6402. char *err = mcell_strerror(errno);
  6403. -- parse_state->include_stack_ptr;
  6404. if (cur_stack > 0)
  6405. mdlerror_fmt(parse_state, "Couldn't open file %s\n included from %s:%d: %s",
  6406. name,
  6407. parse_state->include_filename[cur_stack-1],
  6408. parse_state->line_num[cur_stack-1],
  6409. err);
  6410. else
  6411. mdlerror_fmt(parse_state, "Couldn't open file %s: %s", name, err);
  6412. return 1;
  6413. }
  6414. /* Create and initialize a lexer */
  6415. if (mdllex_init(&scanner))
  6416. {
  6417. int err = errno;
  6418. if (err == ENOMEM)
  6419. mdlerror_fmt(parse_state, "Couldn't initialize lexer for file %s\n included from %s:%d: out of memory",
  6420. name, parse_state->include_filename[cur_stack-1], parse_state->line_num[cur_stack-1]);
  6421. else if (err == EINVAL)
  6422. mdlerror_fmt(parse_state, "Couldn't initialize lexer for file %s\n included from %s:%d: internal error (invalid argument)",
  6423. name,
  6424. parse_state->include_filename[cur_stack-1],
  6425. parse_state->line_num[cur_stack-1]);
  6426. else
  6427. mdlerror_fmt(parse_state, "Couldn't initialize lexer for file %s\n included from %s:%d: internal error",
  6428. name,
  6429. parse_state->include_filename[cur_stack-1],
  6430. parse_state->line_num[cur_stack-1]);
  6431. fclose(infile);
  6432. -- parse_state->include_stack_ptr;
  6433. return 1;
  6434. }
  6435. mdlrestart(infile, scanner);
  6436. /* Parse this file */
  6437. prev_file = parse_state->vol->curr_file;
  6438. parse_state->vol->curr_file = name;
  6439. failure = mdlparse(parse_state, scanner);
  6440. parse_state->vol->curr_file = prev_file;
  6441. -- parse_state->include_stack_ptr;
  6442. /* Clean up! */
  6443. fclose(infile);
  6444. mdllex_destroy(scanner);
  6445. return failure;
  6446. }
  6447. /* mdlerror_init: Set up and parse the top-level MDL file.
  6448. *
  6449. * vol: the world to populate
  6450. */
  6451. int mdlparse_init(struct volume *vol)
  6452. {
  6453. int failure;
  6454. struct mdlparse_vars mpv;
  6455. vol->initialization_state = "parsing";
  6456. memset(&mpv, 0, sizeof(struct mdlparse_vars));
  6457. mpv.vol=vol;
  6458. mpv.include_stack_ptr=0;
  6459. mpv.current_object = vol->root_object;
  6460. mpv.vol->macro_count_request_head = NULL;
  6461. /* Create memory pools for parsing */
  6462. if ((mpv.path_mem = create_mem(sizeof(struct pathway), 4096)) == NULL)
  6463. mcell_allocfailed("Failed to allocate temporary memory pool for reaction pathways.");
  6464. if ((mpv.prod_mem = create_mem(sizeof(struct product), 4096)) == NULL)
  6465. mcell_allocfailed("Failed to allocate temporary memory pool for reaction products.");
  6466. if ((mpv.sym_list_mem = create_mem(sizeof(struct sym_table_list),4096)) == NULL)
  6467. mcell_allocfailed("Failed to allocate temporary memory pool for symbol lists.");
  6468. if ((mpv.species_list_mem = create_mem(sizeof(struct species_list_item), 1024)) == NULL)
  6469. mcell_allocfailed("Failed to allocate temporary memory pool for species lists.");
  6470. if ((mpv.mol_data_list_mem = create_mem(sizeof(struct mcell_species), 1024)) == NULL)
  6471. mcell_allocfailed("Failed to allocate temporary memory pool for oriented species lists.");
  6472. if ((mpv.output_times_mem = create_mem(sizeof(struct output_times), 1024)) == NULL)
  6473. mcell_allocfailed("Failed to allocate temporary memory pool for output times.");
  6474. /* Start parsing at the top-level file */
  6475. vol->curr_file = vol->mdl_infile_name;
  6476. failure = mdlparse_file(&mpv, vol->mdl_infile_name);
  6477. /* Close any open file streams */
  6478. for (int i=0; i<vol->fstream_sym_table->n_bins; ++ i)
  6479. {
  6480. if (vol->fstream_sym_table->entries[i] != NULL)
  6481. {
  6482. for (struct sym_table *symp = vol->fstream_sym_table->entries[i];
  6483. symp != NULL;
  6484. symp = symp->next)
  6485. {
  6486. if (((struct file_stream *) symp->value)->stream == NULL)
  6487. continue;
  6488. mdl_fclose(&mpv, symp);
  6489. }
  6490. }
  6491. }
  6492. /* Check for required settings */
  6493. if (! failure)
  6494. {
  6495. if (vol->time_unit == 0.0)
  6496. {
  6497. mdlerror(&mpv, "A valid model requires a time step to be specified using the TIME_STEP declaration");
  6498. failure = 1;
  6499. }
  6500. }
  6501. /* If we succeeded, prepare the reactions */
  6502. if (failure)
  6503. {
  6504. mdlerror(&mpv, "Failed to parse input file");
  6505. failure = 1;
  6506. }
  6507. /* Free leftover object names */
  6508. while (mpv.object_name_list)
  6509. {
  6510. struct name_list *l = mpv.object_name_list->next;
  6511. free(mpv.object_name_list);
  6512. mpv.object_name_list = l;
  6513. }
  6514. /* Destroy memory pools */
  6515. delete_mem(mpv.species_list_mem);
  6516. delete_mem(mpv.mol_data_list_mem);
  6517. delete_mem(mpv.output_times_mem);
  6518. delete_mem(mpv.sym_list_mem);
  6519. delete_mem(mpv.prod_mem);
  6520. delete_mem(mpv.path_mem);
  6521. vol->initialization_state = "initializing";
  6522. return failure;
  6523. }