pmh_parser.c 318 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555
  1. /* A recursive-descent parser generated by greg 0.4.3 */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. struct _GREG;
  6. #define YYRULECOUNT 225
  7. /* PEG Markdown Highlight
  8. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  9. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  10. *
  11. * pmh_grammar.leg
  12. *
  13. * This is a slightly adapted version of the PEG grammar from John MacFarlane's
  14. * peg-markdown compiler.
  15. */
  16. /* PEG Markdown Highlight
  17. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  18. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  19. *
  20. * pmh_parser_head.c
  21. *
  22. * Code to be inserted into the beginning of the parser code generated
  23. * from the PEG grammar.
  24. */
  25. #include "pmh_parser.h"
  26. #ifndef pmh_DEBUG_OUTPUT
  27. #define pmh_DEBUG_OUTPUT 0
  28. #endif
  29. #if pmh_DEBUG_OUTPUT
  30. #define pmh_IF(x) if (x)
  31. #define pmh_PRINTF(x, ...) fprintf(stderr, x, ##__VA_ARGS__)
  32. #define pmh_PUTCHAR(x) putchar(x)
  33. #else
  34. #define pmh_IF(x)
  35. #define pmh_PRINTF(x, ...)
  36. #define pmh_PUTCHAR(x)
  37. #endif
  38. // Alias strdup to _strdup on MSVC:
  39. #ifdef _MSC_VER
  40. #define strdup _strdup
  41. #endif
  42. char *strdup_or_null(char *s)
  43. {
  44. return (s == NULL) ? NULL : strdup(s);
  45. }
  46. // Internal language element occurrence structure, containing
  47. // both public and private members:
  48. struct pmh_RealElement
  49. {
  50. // "Public" members:
  51. // (these must match what's defined in pmh_definitions.h)
  52. // -----------------------------------------------
  53. pmh_element_type type;
  54. unsigned long pos;
  55. unsigned long end;
  56. struct pmh_RealElement *next;
  57. char *label;
  58. char *address;
  59. // "Private" members for use by the parser itself:
  60. // -----------------------------------------------
  61. // next element in list of all elements:
  62. struct pmh_RealElement *all_elems_next;
  63. // offset to text (for elements of type pmh_EXTRA_TEXT, used when the
  64. // parser reads the value of 'text'):
  65. int text_offset;
  66. // text content (for elements of type pmh_EXTRA_TEXT):
  67. char *text;
  68. // children of element (for elements of type pmh_RAW_LIST)
  69. struct pmh_RealElement *children;
  70. };
  71. typedef struct pmh_RealElement pmh_realelement;
  72. // Parser state data:
  73. typedef struct
  74. {
  75. /* The original, unmodified UTF-8 input: */
  76. char *original_input;
  77. /* The offsets of the bytes we have stripped from original_input: */
  78. unsigned long *strip_positions;
  79. size_t strip_positions_len;
  80. /* Buffer of characters to be parsed: */
  81. char *charbuf;
  82. /* Linked list of {start, end} offset pairs determining which parts */
  83. /* of charbuf to actually parse: */
  84. pmh_realelement *current_elem;
  85. pmh_realelement *elem_head;
  86. /* Current parsing offset within charbuf: */
  87. unsigned long offset;
  88. /* The extensions to use for parsing (bitfield */
  89. /* of enum pmh_extensions): */
  90. int extensions;
  91. /* Array of parsing result elements, indexed by type: */
  92. pmh_realelement **head_elems;
  93. /* Whether we are parsing only references: */
  94. bool parsing_only_references;
  95. /* List of reference elements: */
  96. pmh_realelement *references;
  97. } parser_data;
  98. static parser_data *mk_parser_data(char *original_input,
  99. unsigned long *strip_positions,
  100. size_t strip_positions_len,
  101. char *charbuf,
  102. pmh_realelement *parsing_elems,
  103. unsigned long offset,
  104. int extensions,
  105. pmh_realelement **head_elems,
  106. pmh_realelement *references)
  107. {
  108. parser_data *p_data = (parser_data *)malloc(sizeof(parser_data));
  109. p_data->extensions = extensions;
  110. p_data->original_input = original_input;
  111. p_data->strip_positions = strip_positions;
  112. p_data->strip_positions_len = strip_positions_len;
  113. p_data->charbuf = charbuf;
  114. p_data->offset = offset;
  115. p_data->elem_head = p_data->current_elem = parsing_elems;
  116. p_data->references = references;
  117. p_data->parsing_only_references = false;
  118. if (head_elems != NULL)
  119. p_data->head_elems = head_elems;
  120. else {
  121. p_data->head_elems = (pmh_realelement **)
  122. malloc(sizeof(pmh_realelement *) * pmh_NUM_TYPES);
  123. int i;
  124. for (i = 0; i < pmh_NUM_TYPES; i++)
  125. p_data->head_elems[i] = NULL;
  126. }
  127. return p_data;
  128. }
  129. // Forward declarations
  130. static void parse_markdown(parser_data *p_data);
  131. static void parse_references(parser_data *p_data);
  132. static char **get_element_type_names()
  133. {
  134. static char **elem_type_names = NULL;
  135. if (elem_type_names == NULL)
  136. {
  137. elem_type_names = (char **)malloc(sizeof(char*) * pmh_NUM_LANG_TYPES);
  138. int i;
  139. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  140. elem_type_names[i] = NULL;
  141. elem_type_names[pmh_LINK] = "LINK";
  142. elem_type_names[pmh_AUTO_LINK_URL] = "AUTO_LINK_URL";
  143. elem_type_names[pmh_AUTO_LINK_EMAIL] = "AUTO_LINK_EMAIL";
  144. elem_type_names[pmh_IMAGE] = "IMAGE";
  145. elem_type_names[pmh_CODE] = "CODE";
  146. elem_type_names[pmh_HTML] = "HTML";
  147. elem_type_names[pmh_HTML_ENTITY] = "HTML_ENTITY";
  148. elem_type_names[pmh_EMPH] = "EMPH";
  149. elem_type_names[pmh_STRONG] = "STRONG";
  150. elem_type_names[pmh_LIST_BULLET] = "LIST_BULLET";
  151. elem_type_names[pmh_LIST_ENUMERATOR] = "LIST_ENUMERATOR";
  152. elem_type_names[pmh_COMMENT] = "COMMENT";
  153. elem_type_names[pmh_H1] = "H1";
  154. elem_type_names[pmh_H2] = "H2";
  155. elem_type_names[pmh_H3] = "H3";
  156. elem_type_names[pmh_H4] = "H4";
  157. elem_type_names[pmh_H5] = "H5";
  158. elem_type_names[pmh_H6] = "H6";
  159. elem_type_names[pmh_BLOCKQUOTE] = "BLOCKQUOTE";
  160. elem_type_names[pmh_VERBATIM] = "VERBATIM";
  161. elem_type_names[pmh_HTMLBLOCK] = "HTMLBLOCK";
  162. elem_type_names[pmh_HRULE] = "HRULE";
  163. elem_type_names[pmh_REFERENCE] = "REFERENCE";
  164. elem_type_names[pmh_NOTE] = "NOTE";
  165. elem_type_names[pmh_STRIKE] = "STRIKE";
  166. }
  167. return elem_type_names;
  168. }
  169. pmh_element_type pmh_element_type_from_name(char *name)
  170. {
  171. char **elem_type_names = get_element_type_names();
  172. int i;
  173. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  174. {
  175. char *i_name = elem_type_names[i];
  176. if (i_name == NULL)
  177. continue;
  178. if (strcmp(i_name, name) == 0)
  179. return i;
  180. }
  181. return pmh_NO_TYPE;
  182. }
  183. char *pmh_element_name_from_type(pmh_element_type type)
  184. {
  185. char **elem_type_names = get_element_type_names();
  186. char* ret = elem_type_names[type];
  187. if (ret == NULL)
  188. return "unknown type";
  189. return ret;
  190. }
  191. /*
  192. Remove pmh_RAW elements with zero length; return pointer
  193. to new head.
  194. */
  195. static pmh_realelement *remove_zero_length_raw_spans(pmh_realelement *elem)
  196. {
  197. pmh_realelement *head = elem;
  198. pmh_realelement *parent = NULL;
  199. pmh_realelement *c = head;
  200. while (c != NULL)
  201. {
  202. if (c->type == pmh_RAW && c->pos >= c->end)
  203. {
  204. if (parent != NULL)
  205. parent->next = c->next;
  206. else
  207. head = c->next;
  208. parent = c;
  209. c = c->next;
  210. continue;
  211. }
  212. parent = c;
  213. c = c->next;
  214. }
  215. return head;
  216. }
  217. #if pmh_DEBUG_OUTPUT
  218. /*
  219. Print null-terminated string s.t. some characters are
  220. represented by their corresponding espace sequences
  221. */
  222. static void print_str_literal_escapes(char *str)
  223. {
  224. char *c = str;
  225. pmh_PRINTF("'");
  226. while (*c != '\0')
  227. {
  228. if (*c == '\n') pmh_PRINTF("\\n");
  229. else if (*c == '\t') pmh_PRINTF("\\t");
  230. else putchar(*c);
  231. c++;
  232. }
  233. pmh_PRINTF("'");
  234. }
  235. #endif
  236. #if pmh_DEBUG_OUTPUT
  237. /*
  238. Print elements in a linked list of
  239. pmh_RAW, pmh_SEPARATOR, pmh_EXTRA_TEXT elements
  240. */
  241. static void print_raw_spans_inline(pmh_realelement *elem)
  242. {
  243. pmh_realelement *cur = elem;
  244. while (cur != NULL)
  245. {
  246. if (cur->type == pmh_SEPARATOR)
  247. pmh_PRINTF("<pmh_SEP %ld> ", cur->pos);
  248. else if (cur->type == pmh_EXTRA_TEXT) {
  249. pmh_PRINTF("{pmh_ETEXT ");
  250. print_str_literal_escapes(cur->text);
  251. pmh_PRINTF("}");
  252. }
  253. else
  254. pmh_PRINTF("(%ld-%ld) ", cur->pos, cur->end);
  255. cur = cur->next;
  256. }
  257. }
  258. #endif
  259. /*
  260. Perform postprocessing parsing runs for pmh_RAW_LIST elements in `elem`,
  261. iteratively until no such elements exist.
  262. */
  263. static void process_raw_blocks(parser_data *p_data)
  264. {
  265. pmh_PRINTF("--------process_raw_blocks---------\n");
  266. while (p_data->head_elems[pmh_RAW_LIST] != NULL)
  267. {
  268. pmh_PRINTF("new iteration.\n");
  269. pmh_realelement *cursor = p_data->head_elems[pmh_RAW_LIST];
  270. p_data->head_elems[pmh_RAW_LIST] = NULL;
  271. while (cursor != NULL)
  272. {
  273. pmh_realelement *span_list = (pmh_realelement*)cursor->children;
  274. span_list = remove_zero_length_raw_spans(span_list);
  275. #if pmh_DEBUG_OUTPUT
  276. pmh_PRINTF(" process: ");
  277. print_raw_spans_inline(span_list);
  278. pmh_PRINTF("\n");
  279. #endif
  280. while (span_list != NULL)
  281. {
  282. pmh_PRINTF("next: span_list: %ld-%ld\n",
  283. span_list->pos, span_list->end);
  284. // Skip separators in the beginning, as well as
  285. // separators after another separator:
  286. if (span_list->type == pmh_SEPARATOR) {
  287. span_list = span_list->next;
  288. continue;
  289. }
  290. // Store list of spans until next separator in subspan_list:
  291. pmh_realelement *subspan_list = span_list;
  292. pmh_realelement *previous = NULL;
  293. while (span_list != NULL && span_list->type != pmh_SEPARATOR) {
  294. previous = span_list;
  295. span_list = span_list->next;
  296. }
  297. if (span_list != NULL && span_list->type == pmh_SEPARATOR) {
  298. span_list = span_list->next;
  299. previous->next = NULL;
  300. }
  301. #if pmh_DEBUG_OUTPUT
  302. pmh_PRINTF(" subspan process: ");
  303. print_raw_spans_inline(subspan_list);
  304. pmh_PRINTF("\n");
  305. #endif
  306. // Process subspan_list:
  307. parser_data *raw_p_data = mk_parser_data(
  308. p_data->original_input,
  309. p_data->strip_positions,
  310. p_data->strip_positions_len,
  311. p_data->charbuf,
  312. subspan_list,
  313. subspan_list->pos,
  314. p_data->extensions,
  315. p_data->head_elems,
  316. p_data->references
  317. );
  318. parse_markdown(raw_p_data);
  319. free(raw_p_data);
  320. pmh_PRINTF("parse over\n");
  321. }
  322. cursor = cursor->next;
  323. }
  324. }
  325. }
  326. #if pmh_DEBUG_OUTPUT
  327. static void print_raw_blocks(char *text, pmh_realelement *elem[])
  328. {
  329. pmh_PRINTF("--------print_raw_blocks---------\n");
  330. pmh_PRINTF("block:\n");
  331. pmh_realelement *cursor = elem[pmh_RAW_LIST];
  332. while (cursor != NULL)
  333. {
  334. print_raw_spans_inline(cursor->children);
  335. cursor = cursor->next;
  336. }
  337. }
  338. #endif
  339. /* Free all elements created while parsing */
  340. void pmh_free_elements(pmh_element **elems)
  341. {
  342. pmh_realelement *cursor = (pmh_realelement*)elems[pmh_ALL];
  343. while (cursor != NULL) {
  344. pmh_realelement *tofree = cursor;
  345. cursor = cursor->all_elems_next;
  346. if (tofree->text != NULL)
  347. free(tofree->text);
  348. if (tofree->label != NULL)
  349. free(tofree->label);
  350. if (tofree->address != NULL)
  351. free(tofree->address);
  352. free(tofree);
  353. }
  354. elems[pmh_ALL] = NULL;
  355. free(elems);
  356. }
  357. #define IS_CONTINUATION_BYTE(x) ((x & 0xC0) == 0x80)
  358. #define HAS_UTF8_BOM(x) ( ((*x & 0xFF) == 0xEF)\
  359. && ((*(x+1) & 0xFF) == 0xBB)\
  360. && ((*(x+2) & 0xFF) == 0xBF) )
  361. #define ADD_STRIP_POS(x) \
  362. /* reallocate more space for the array, if needed: */ \
  363. if (strip_positions_size <= strip_positions_pos) { \
  364. size_t new_size = strip_positions_size * 2; \
  365. unsigned long *new_arr = (unsigned long *) \
  366. calloc(new_size, \
  367. sizeof(unsigned long)); \
  368. memcpy(new_arr, strip_positions, \
  369. (sizeof(unsigned long) * strip_positions_size)); \
  370. strip_positions_size = new_size; \
  371. free(strip_positions); \
  372. strip_positions = new_arr; \
  373. } \
  374. strip_positions[strip_positions_pos] = x; \
  375. strip_positions_pos++;
  376. /*
  377. Copy `str` to `out`, while doing the following:
  378. - remove UTF-8 continuation bytes
  379. - remove possible UTF-8 BOM (byte order mark)
  380. - append two newlines to the end (like peg-markdown does)
  381. - keep track of which bytes we have stripped (in strip_positions)
  382. */
  383. static int strcpy_preformat(char *str, char **out,
  384. unsigned long **out_strip_positions,
  385. size_t *out_strip_positions_len)
  386. {
  387. size_t strip_positions_size = 1024;
  388. size_t strip_positions_pos = 0;
  389. unsigned long *strip_positions = (unsigned long *)
  390. calloc(strip_positions_size,
  391. sizeof(unsigned long));
  392. // +2 in the following is due to the "\n\n" suffix:
  393. char *new_str = (char *)malloc(sizeof(char) * strlen(str) + 1 + 2);
  394. char *c = str;
  395. int i = 0;
  396. if (HAS_UTF8_BOM(c)) {
  397. c += 3;
  398. ADD_STRIP_POS(0);
  399. ADD_STRIP_POS(1);
  400. ADD_STRIP_POS(2);
  401. }
  402. while (*c != '\0')
  403. {
  404. if (!IS_CONTINUATION_BYTE(*c)) {
  405. *(new_str+i) = *c, i++;
  406. } else {
  407. ADD_STRIP_POS((int)(c-str));
  408. }
  409. c++;
  410. }
  411. *(new_str+(i++)) = '\n';
  412. *(new_str+(i++)) = '\n';
  413. *(new_str+i) = '\0';
  414. *out = new_str;
  415. *out_strip_positions = strip_positions;
  416. *out_strip_positions_len = strip_positions_pos;
  417. return i;
  418. }
  419. void pmh_markdown_to_elements(char *text, int extensions,
  420. pmh_element **out_result[])
  421. {
  422. char *text_copy = NULL;
  423. unsigned long *strip_positions = NULL;
  424. size_t strip_positions_len = 0;
  425. int text_copy_len = strcpy_preformat(text, &text_copy, &strip_positions,
  426. &strip_positions_len);
  427. pmh_realelement *parsing_elem = (pmh_realelement *)
  428. malloc(sizeof(pmh_realelement));
  429. parsing_elem->type = pmh_RAW;
  430. parsing_elem->pos = 0;
  431. parsing_elem->end = text_copy_len;
  432. parsing_elem->next = NULL;
  433. parser_data *p_data = mk_parser_data(
  434. text,
  435. strip_positions,
  436. strip_positions_len,
  437. text_copy,
  438. parsing_elem,
  439. 0,
  440. extensions,
  441. NULL,
  442. NULL
  443. );
  444. pmh_realelement **result = p_data->head_elems;
  445. if (*text_copy != '\0')
  446. {
  447. // Get reference definitions into p_data->references
  448. parse_references(p_data);
  449. // Reset parser state to beginning of input
  450. p_data->offset = 0;
  451. p_data->current_elem = p_data->elem_head;
  452. // Parse whole document
  453. parse_markdown(p_data);
  454. #if pmh_DEBUG_OUTPUT
  455. print_raw_blocks(text_copy, result);
  456. #endif
  457. process_raw_blocks(p_data);
  458. }
  459. free(strip_positions);
  460. free(p_data);
  461. free(parsing_elem);
  462. free(text_copy);
  463. *out_result = (pmh_element**)result;
  464. }
  465. /*
  466. Mergesort linked list of elements (using comparison function `compare`),
  467. return new head. (Adapted slightly from Simon Tatham's algorithm.)
  468. */
  469. static pmh_element *ll_mergesort(pmh_element *list,
  470. int (*compare)(const pmh_element*,
  471. const pmh_element*))
  472. {
  473. pmh_element *out_head = NULL;
  474. if (!list)
  475. return NULL;
  476. out_head = list;
  477. /* Merge widths of doubling size until done */
  478. int merge_width = 1;
  479. while (1)
  480. {
  481. pmh_element *l, *r; /* left & right segment pointers */
  482. pmh_element *tail = NULL; /* tail of sorted section */
  483. l = out_head;
  484. out_head = NULL;
  485. int merge_count = 0;
  486. while (l)
  487. {
  488. merge_count++;
  489. /* Position r, determine lsize & rsize */
  490. r = l;
  491. int lsize = 0;
  492. int i;
  493. for (i = 0; i < merge_width; i++) {
  494. lsize++;
  495. r = r->next;
  496. if (!r)
  497. break;
  498. }
  499. int rsize = merge_width;
  500. /* Merge l & r */
  501. while (lsize > 0 || (rsize > 0 && r))
  502. {
  503. pmh_element *e = NULL;
  504. bool get_from_left = false;
  505. if (lsize == 0) get_from_left = false;
  506. else if (rsize == 0 || !r) get_from_left = true;
  507. else if (compare(l,r) <= 0) get_from_left = true;
  508. if (get_from_left) {
  509. e = l; l = l->next; lsize--;
  510. } else {
  511. e = r; r = r->next; rsize--;
  512. }
  513. /* add the next pmh_element to the merged list */
  514. if (tail)
  515. tail->next = e;
  516. else
  517. out_head = e;
  518. tail = e;
  519. }
  520. l = r;
  521. }
  522. tail->next = NULL;
  523. if (merge_count <= 1)
  524. return out_head;
  525. merge_width *= 2;
  526. }
  527. }
  528. static int elem_compare_by_pos(const pmh_element *a, const pmh_element *b)
  529. {
  530. return a->pos - b->pos;
  531. }
  532. void pmh_sort_elements_by_pos(pmh_element *element_lists[])
  533. {
  534. int i;
  535. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  536. element_lists[i] = ll_mergesort(element_lists[i], &elem_compare_by_pos);
  537. }
  538. /* return true if extension is selected */
  539. static bool extension(parser_data *p_data, int ext)
  540. {
  541. return ((p_data->extensions & ext) != 0);
  542. }
  543. /* return reference pmh_realelement for a given label */
  544. static pmh_realelement *get_reference(parser_data *p_data, char *label)
  545. {
  546. pmh_realelement *cursor = NULL;
  547. if (!label)
  548. return NULL;
  549. cursor = p_data->references;
  550. while (cursor != NULL)
  551. {
  552. if (cursor->label && strcmp(label, cursor->label) == 0)
  553. return cursor;
  554. cursor = cursor->next;
  555. }
  556. return NULL;
  557. }
  558. /* cons an element/list onto a list, returning pointer to new head */
  559. static pmh_realelement *cons(pmh_realelement *elem, pmh_realelement *list)
  560. {
  561. assert(elem != NULL);
  562. pmh_realelement *cur = elem;
  563. while (cur->next != NULL) {
  564. cur = cur->next;
  565. }
  566. cur->next = list;
  567. return elem;
  568. }
  569. /* reverse a list, returning pointer to new list */
  570. static pmh_realelement *reverse(pmh_realelement *list)
  571. {
  572. pmh_realelement *new_head = NULL;
  573. pmh_realelement *next = NULL;
  574. while (list != NULL) {
  575. next = list->next;
  576. list->next = new_head;
  577. new_head = list;
  578. list = next;
  579. }
  580. return new_head;
  581. }
  582. /* construct pmh_realelement */
  583. static pmh_realelement *mk_element(parser_data *p_data, pmh_element_type type,
  584. long pos, long end)
  585. {
  586. pmh_realelement *result = (pmh_realelement *)malloc(sizeof(pmh_realelement));
  587. memset(result, 0, sizeof(*result));
  588. result->type = type;
  589. result->pos = pos;
  590. result->end = end;
  591. pmh_realelement *old_all_elements_head = p_data->head_elems[pmh_ALL];
  592. p_data->head_elems[pmh_ALL] = result;
  593. result->all_elems_next = old_all_elements_head;
  594. //pmh_PRINTF(" mk_element: %s [%ld - %ld]\n", pmh_element_name_from_type(type), pos, end);
  595. return result;
  596. }
  597. static pmh_realelement *copy_element(parser_data *p_data, pmh_realelement *elem)
  598. {
  599. pmh_realelement *result = mk_element(p_data, elem->type, elem->pos, elem->end);
  600. result->label = strdup_or_null(elem->label);
  601. result->text = strdup_or_null(elem->text);
  602. result->address = strdup_or_null(elem->address);
  603. return result;
  604. }
  605. /* construct pmh_EXTRA_TEXT pmh_realelement */
  606. static pmh_realelement *mk_etext(parser_data *p_data, char *string)
  607. {
  608. pmh_realelement *result;
  609. assert(string != NULL);
  610. result = mk_element(p_data, pmh_EXTRA_TEXT, 0,0);
  611. result->text = strdup_or_null(string);
  612. return result;
  613. }
  614. /*
  615. Given an element where the offsets {pos, end} represent
  616. locations in the *parsed text* (defined by the linked list of pmh_RAW and
  617. pmh_EXTRA_TEXT elements in p_data->current_elem), fix these offsets to represent
  618. corresponding offsets in the parse buffer (p_data->charbuf). Also split
  619. the given pmh_realelement into multiple parts if its offsets span multiple
  620. p_data->current_elem elements. Return the (list of) elements with real offsets.
  621. */
  622. static pmh_realelement *fix_offsets(parser_data *p_data, pmh_realelement *elem)
  623. {
  624. pmh_realelement *new_head = NULL;
  625. if (elem->type == pmh_EXTRA_TEXT)
  626. return mk_etext(p_data, elem->text);
  627. new_head = copy_element(p_data, elem);
  628. pmh_realelement *tail = new_head;
  629. pmh_realelement *prev = NULL;
  630. bool found_start = false;
  631. bool found_end = false;
  632. bool tail_needs_pos = false;
  633. unsigned long previous_end = 0;
  634. unsigned long c = 0;
  635. pmh_realelement *cursor = p_data->elem_head;
  636. while (cursor != NULL)
  637. {
  638. int thislen = (cursor->type == pmh_EXTRA_TEXT)
  639. ? strlen(cursor->text)
  640. : cursor->end - cursor->pos;
  641. if (tail_needs_pos && cursor->type != pmh_EXTRA_TEXT) {
  642. tail->pos = cursor->pos;
  643. tail_needs_pos = false;
  644. }
  645. unsigned int this_pos = cursor->pos;
  646. if (!found_start && (c <= elem->pos && elem->pos <= c+thislen)) {
  647. tail->pos = (cursor->type == pmh_EXTRA_TEXT)
  648. ? previous_end
  649. : cursor->pos + (elem->pos - c);
  650. this_pos = tail->pos;
  651. found_start = true;
  652. }
  653. if (!found_end && (c <= elem->end && elem->end <= c+thislen)) {
  654. tail->end = (cursor->type == pmh_EXTRA_TEXT)
  655. ? previous_end
  656. : cursor->pos + (elem->end - c);
  657. found_end = true;
  658. }
  659. if (found_start && found_end)
  660. break;
  661. if (cursor->type != pmh_EXTRA_TEXT)
  662. previous_end = cursor->end;
  663. if (found_start) {
  664. pmh_realelement *new_elem = copy_element(p_data, tail);
  665. new_elem->pos = this_pos;
  666. new_elem->end = cursor->end;
  667. new_elem->next = tail;
  668. if (prev != NULL)
  669. prev->next = new_elem;
  670. if (new_head == tail)
  671. new_head = new_elem;
  672. prev = new_elem;
  673. tail_needs_pos = true;
  674. }
  675. c += thislen;
  676. cursor = cursor->next;
  677. }
  678. return new_head;
  679. }
  680. /* Add an element to p_data->head_elems. */
  681. static void add(parser_data *p_data, pmh_realelement *elem)
  682. {
  683. if (elem->type != pmh_RAW_LIST)
  684. {
  685. pmh_PRINTF(" add: %s [%ld - %ld]\n",
  686. pmh_element_name_from_type(elem->type), elem->pos, elem->end);
  687. elem = fix_offsets(p_data, elem);
  688. pmh_PRINTF(" > %s [%ld - %ld]\n",
  689. pmh_element_name_from_type(elem->type), elem->pos, elem->end);
  690. }
  691. else
  692. {
  693. pmh_PRINTF(" add: pmh_RAW_LIST ");
  694. pmh_realelement *cursor = elem->children;
  695. pmh_realelement *previous = NULL;
  696. while (cursor != NULL)
  697. {
  698. pmh_realelement *next = cursor->next;
  699. pmh_PRINTF("(%ld-%ld)>", cursor->pos, cursor->end);
  700. pmh_realelement *new_cursor = fix_offsets(p_data, cursor);
  701. if (previous != NULL)
  702. previous->next = new_cursor;
  703. else
  704. elem->children = new_cursor;
  705. pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
  706. while (new_cursor->next != NULL) {
  707. new_cursor = new_cursor->next;
  708. pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
  709. }
  710. pmh_PRINTF(" ");
  711. if (next != NULL)
  712. new_cursor->next = next;
  713. previous = new_cursor;
  714. cursor = next;
  715. }
  716. pmh_PRINTF("\n");
  717. }
  718. if (p_data->head_elems[elem->type] == NULL)
  719. p_data->head_elems[elem->type] = elem;
  720. else
  721. {
  722. pmh_realelement *last = elem;
  723. while (last->next != NULL)
  724. last = last->next;
  725. last->next = p_data->head_elems[elem->type];
  726. p_data->head_elems[elem->type] = elem;
  727. }
  728. }
  729. // Given a range in the list of spans we use for parsing (pos, end), return
  730. // a copy of the corresponding section in the original input, with all of
  731. // the UTF-8 bytes intact:
  732. static char *copy_input_span(parser_data *p_data,
  733. unsigned long pos, unsigned long end)
  734. {
  735. if (end <= pos)
  736. return NULL;
  737. char *ret = NULL;
  738. // Adjust (pos,end) to match actual indexes in charbuf:
  739. pmh_realelement *dummy = mk_element(p_data, pmh_NO_TYPE, pos, end);
  740. pmh_realelement *fixed_dummies = fix_offsets(p_data, dummy);
  741. pmh_realelement *cursor = fixed_dummies;
  742. while (cursor != NULL)
  743. {
  744. if (cursor->end <= cursor->pos)
  745. {
  746. cursor = cursor->next;
  747. continue;
  748. }
  749. // Adjust cursor's span to take bytes stripped from the original
  750. // input into account (i.e. match the corresponding span in
  751. // p_data->original_input):
  752. unsigned long adjusted_pos = cursor->pos;
  753. unsigned long adjusted_end = cursor->end;
  754. size_t i;
  755. for (i = 0; i < p_data->strip_positions_len; i++)
  756. {
  757. unsigned long strip_position = p_data->strip_positions[i];
  758. if (strip_position <= adjusted_pos)
  759. adjusted_pos++;
  760. if (strip_position <= adjusted_end)
  761. adjusted_end++;
  762. else
  763. break;
  764. }
  765. // Copy span from original input:
  766. size_t adjusted_len = adjusted_end - adjusted_pos;
  767. char *str = (char *)malloc(sizeof(char)*adjusted_len + 1);
  768. *str = '\0';
  769. strncat(str, (p_data->original_input + adjusted_pos), adjusted_len);
  770. if (ret == NULL)
  771. ret = str;
  772. else
  773. {
  774. // append str to ret:
  775. char *new_ret = (char *)malloc(sizeof(char)
  776. *(strlen(str) + strlen(ret)) + 1);
  777. *new_ret = '\0';
  778. strcat(new_ret, ret);
  779. strcat(new_ret, str);
  780. free(ret);
  781. free(str);
  782. ret = new_ret;
  783. }
  784. cursor = cursor->next;
  785. }
  786. return ret;
  787. }
  788. # define YYSTYPE pmh_realelement *
  789. #ifdef __DEBUG__
  790. # define YY_DEBUG 1
  791. #endif
  792. #define YY_INPUT(buf, result, max_size)\
  793. yy_input_func(buf, &result, max_size, (parser_data *)G->data)
  794. static void yy_input_func(char *buf, int *result, int max_size,
  795. parser_data *p_data)
  796. {
  797. if (p_data->current_elem == NULL)
  798. {
  799. (*result) = 0;
  800. return;
  801. }
  802. if (p_data->current_elem->type == pmh_EXTRA_TEXT)
  803. {
  804. int yyc;
  805. bool moreToRead = (p_data->current_elem->text
  806. && *(p_data->current_elem->text
  807. + p_data->current_elem->text_offset) != '\0');
  808. if (moreToRead)
  809. {
  810. yyc = *(p_data->current_elem->text + p_data->current_elem->text_offset++);
  811. pmh_PRINTF("\e[47;30m"); pmh_PUTCHAR(yyc); pmh_PRINTF("\e[0m");
  812. pmh_IF(yyc == '\n') pmh_PRINTF("\e[47m \e[0m");
  813. }
  814. else
  815. {
  816. yyc = EOF;
  817. p_data->current_elem = p_data->current_elem->next;
  818. pmh_PRINTF("\e[41m \e[0m");
  819. if (p_data->current_elem != NULL)
  820. p_data->offset = p_data->current_elem->pos;
  821. }
  822. (*result) = (EOF == yyc) ? 0 : (*(buf) = yyc, 1);
  823. return;
  824. }
  825. *(buf) = *(p_data->charbuf + p_data->offset);
  826. (*result) = (*buf != '\0');
  827. p_data->offset++;
  828. pmh_PRINTF("\e[43;30m"); pmh_PUTCHAR(*buf); pmh_PRINTF("\e[0m");
  829. pmh_IF(*buf == '\n') pmh_PRINTF("\e[42m \e[0m");
  830. if (p_data->offset >= p_data->current_elem->end)
  831. {
  832. p_data->current_elem = p_data->current_elem->next;
  833. pmh_PRINTF("\e[41m \e[0m");
  834. if (p_data->current_elem != NULL)
  835. p_data->offset = p_data->current_elem->pos;
  836. }
  837. }
  838. #define elem(x) mk_element((parser_data *)G->data, x, thunk->begin, thunk->end)
  839. #define elem_s(x) mk_element((parser_data *)G->data, x, s->pos, thunk->end)
  840. #define mk_sep mk_element((parser_data *)G->data, pmh_SEPARATOR, 0,0)
  841. #define mk_notype mk_element((parser_data *)G->data, pmh_NO_TYPE, 0,0)
  842. #define etext(x) mk_etext((parser_data *)G->data, x)
  843. #define ADD(x) add((parser_data *)G->data, x)
  844. #define EXT(x) extension((parser_data *)G->data, x)
  845. #define REF_EXISTS(x) reference_exists((parser_data *)G->data, x)
  846. #define GET_REF(x) get_reference((parser_data *)G->data, x)
  847. #define PARSING_REFERENCES ((parser_data *)G->data)->parsing_only_references
  848. #define FREE_LABEL(l) { free(l->label); l->label = NULL; }
  849. #define FREE_ADDRESS(l) { free(l->address); l->address = NULL; }
  850. // This gives us the text matched with < > as it appears in the original input:
  851. #define COPY_YYTEXT_ORIG() copy_input_span((parser_data *)G->data, thunk->begin, thunk->end)
  852. #ifndef YY_ALLOC
  853. #define YY_ALLOC(N, D) malloc(N)
  854. #endif
  855. #ifndef YY_CALLOC
  856. #define YY_CALLOC(N, S, D) calloc(N, S)
  857. #endif
  858. #ifndef YY_REALLOC
  859. #define YY_REALLOC(B, N, D) realloc(B, N)
  860. #endif
  861. #ifndef YY_FREE
  862. #define YY_FREE free
  863. #endif
  864. #ifndef YY_LOCAL
  865. #define YY_LOCAL(T) static T
  866. #endif
  867. #ifndef YY_ACTION
  868. #define YY_ACTION(T) static T
  869. #endif
  870. #ifndef YY_RULE
  871. #define YY_RULE(T) static T
  872. #endif
  873. #ifndef YY_PARSE
  874. #define YY_PARSE(T) T
  875. #endif
  876. #ifndef YY_NAME
  877. #define YY_NAME(N) yy##N
  878. #endif
  879. #ifndef YY_INPUT
  880. #define YY_INPUT(buf, result, max_size) \
  881. { \
  882. int yyc= getchar(); \
  883. result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \
  884. yyprintf((stderr, "<%c>", yyc)); \
  885. }
  886. #endif
  887. #ifndef YY_BEGIN
  888. #define YY_BEGIN ( G->begin= G->pos, 1)
  889. #endif
  890. #ifndef YY_END
  891. #define YY_END ( G->end= G->pos, 1)
  892. #endif
  893. #ifdef YY_DEBUG
  894. # define yyprintf(args) fprintf args
  895. #else
  896. # define yyprintf(args)
  897. #endif
  898. #ifndef YYSTYPE
  899. #define YYSTYPE int
  900. #endif
  901. #ifndef YY_XTYPE
  902. #define YY_XTYPE void *
  903. #endif
  904. #ifndef YY_XVAR
  905. #define YY_XVAR yyxvar
  906. #endif
  907. #ifndef YY_STACK_SIZE
  908. #define YY_STACK_SIZE 128
  909. #endif
  910. #ifndef YY_BUFFER_START_SIZE
  911. #define YY_BUFFER_START_SIZE 1024
  912. #endif
  913. #ifndef YY_PART
  914. #define yydata G->data
  915. #define yy G->ss
  916. struct _yythunk; // forward declaration
  917. typedef void (*yyaction)(struct _GREG *G, char *yytext, int yyleng, struct _yythunk *thunkpos, YY_XTYPE YY_XVAR);
  918. typedef struct _yythunk { int begin, end; yyaction action; struct _yythunk *next; } yythunk;
  919. typedef struct _GREG {
  920. char *buf;
  921. int buflen;
  922. int offset;
  923. int pos;
  924. int limit;
  925. char *text;
  926. int textlen;
  927. int begin;
  928. int end;
  929. yythunk *thunks;
  930. int thunkslen;
  931. int thunkpos;
  932. YYSTYPE ss;
  933. YYSTYPE *val;
  934. YYSTYPE *vals;
  935. int valslen;
  936. YY_XTYPE data;
  937. } GREG;
  938. YY_LOCAL(int) yyrefill(GREG *G)
  939. {
  940. int yyn;
  941. while (G->buflen - G->pos < 512)
  942. {
  943. G->buflen *= 2;
  944. G->buf= (char *)YY_REALLOC(G->buf, G->buflen, G->data);
  945. }
  946. YY_INPUT((G->buf + G->pos), yyn, (G->buflen - G->pos));
  947. if (!yyn) return 0;
  948. G->limit += yyn;
  949. return 1;
  950. }
  951. YY_LOCAL(int) yymatchDot(GREG *G)
  952. {
  953. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  954. ++G->pos;
  955. return 1;
  956. }
  957. YY_LOCAL(int) yymatchChar(GREG *G, int c)
  958. {
  959. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  960. if ((unsigned char)G->buf[G->pos] == c)
  961. {
  962. ++G->pos;
  963. yyprintf((stderr, " ok yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
  964. return 1;
  965. }
  966. yyprintf((stderr, " fail yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
  967. return 0;
  968. }
  969. YY_LOCAL(int) yymatchString(GREG *G, char *s)
  970. {
  971. int yysav= G->pos;
  972. while (*s)
  973. {
  974. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  975. if (G->buf[G->pos] != *s)
  976. {
  977. G->pos= yysav;
  978. return 0;
  979. }
  980. ++s;
  981. ++G->pos;
  982. }
  983. return 1;
  984. }
  985. YY_LOCAL(int) yymatchClass(GREG *G, unsigned char *bits)
  986. {
  987. int c;
  988. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  989. c= (unsigned char)G->buf[G->pos];
  990. if (bits[c >> 3] & (1 << (c & 7)))
  991. {
  992. ++G->pos;
  993. yyprintf((stderr, " ok yymatchClass @ %s\n", G->buf+G->pos));
  994. return 1;
  995. }
  996. yyprintf((stderr, " fail yymatchClass @ %s\n", G->buf+G->pos));
  997. return 0;
  998. }
  999. YY_LOCAL(void) yyDo(GREG *G, yyaction action, int begin, int end)
  1000. {
  1001. while (G->thunkpos >= G->thunkslen)
  1002. {
  1003. G->thunkslen *= 2;
  1004. G->thunks= (yythunk *)YY_REALLOC(G->thunks, sizeof(yythunk) * G->thunkslen, G->data);
  1005. }
  1006. G->thunks[G->thunkpos].begin= begin;
  1007. G->thunks[G->thunkpos].end= end;
  1008. G->thunks[G->thunkpos].action= action;
  1009. ++G->thunkpos;
  1010. }
  1011. YY_LOCAL(int) yyText(GREG *G, int begin, int end)
  1012. {
  1013. int yyleng= end - begin;
  1014. if (yyleng <= 0)
  1015. yyleng= 0;
  1016. else
  1017. {
  1018. while (G->textlen < (yyleng + 1))
  1019. {
  1020. G->textlen *= 2;
  1021. G->text= (char *)YY_REALLOC(G->text, G->textlen, G->data);
  1022. }
  1023. memcpy(G->text, G->buf + begin, yyleng);
  1024. }
  1025. G->text[yyleng]= '\0';
  1026. return yyleng;
  1027. }
  1028. YY_LOCAL(void) yyDone(GREG *G)
  1029. {
  1030. int pos;
  1031. for (pos= 0; pos < G->thunkpos; ++pos)
  1032. {
  1033. yythunk *thunk= &G->thunks[pos];
  1034. int yyleng= thunk->end ? yyText(G, thunk->begin, thunk->end) : thunk->begin;
  1035. yyprintf((stderr, "DO [%d] %p %s\n", pos, thunk->action, G->text));
  1036. thunk->action(G, G->text, yyleng, thunk, G->data);
  1037. }
  1038. G->thunkpos= 0;
  1039. }
  1040. YY_LOCAL(void) yyCommit(GREG *G)
  1041. {
  1042. if ((G->limit -= G->pos))
  1043. {
  1044. memmove(G->buf, G->buf + G->pos, G->limit);
  1045. }
  1046. G->offset += G->pos;
  1047. G->begin -= G->pos;
  1048. G->end -= G->pos;
  1049. G->pos= G->thunkpos= 0;
  1050. }
  1051. YY_LOCAL(int) yyAccept(GREG *G, int tp0)
  1052. {
  1053. if (tp0)
  1054. {
  1055. fprintf(stderr, "accept denied at %d\n", tp0);
  1056. return 0;
  1057. }
  1058. else
  1059. {
  1060. yyDone(G);
  1061. yyCommit(G);
  1062. }
  1063. return 1;
  1064. }
  1065. YY_LOCAL(void) yyPush(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val += count; }
  1066. YY_LOCAL(void) yyPop(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val -= count; }
  1067. YY_LOCAL(void) yySet(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val[count]= G->ss; }
  1068. #endif /* YY_PART */
  1069. #define YYACCEPT yyAccept(G, yythunkpos0)
  1070. YY_RULE(int) yy_RawNoteBlock(GREG *G); /* 225 */
  1071. YY_RULE(int) yy_RawNoteReference(GREG *G); /* 224 */
  1072. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G); /* 223 */
  1073. YY_RULE(int) yy_AlphanumericAscii(GREG *G); /* 222 */
  1074. YY_RULE(int) yy_Quoted(GREG *G); /* 221 */
  1075. YY_RULE(int) yy_HtmlTag(GREG *G); /* 220 */
  1076. YY_RULE(int) yy_Ticks5(GREG *G); /* 219 */
  1077. YY_RULE(int) yy_Ticks4(GREG *G); /* 218 */
  1078. YY_RULE(int) yy_Ticks3(GREG *G); /* 217 */
  1079. YY_RULE(int) yy_Ticks2(GREG *G); /* 216 */
  1080. YY_RULE(int) yy_Ticks1(GREG *G); /* 215 */
  1081. YY_RULE(int) yy_SkipBlock(GREG *G); /* 214 */
  1082. YY_RULE(int) yy_References(GREG *G); /* 213 */
  1083. YY_RULE(int) yy_EmptyTitle(GREG *G); /* 212 */
  1084. YY_RULE(int) yy_RefTitleParens(GREG *G); /* 211 */
  1085. YY_RULE(int) yy_RefTitleDouble(GREG *G); /* 210 */
  1086. YY_RULE(int) yy_RefTitleSingle(GREG *G); /* 209 */
  1087. YY_RULE(int) yy_RefTitle(GREG *G); /* 208 */
  1088. YY_RULE(int) yy_RefSrc(GREG *G); /* 207 */
  1089. YY_RULE(int) yy_AutoLinkEmail(GREG *G); /* 206 */
  1090. YY_RULE(int) yy_AutoLinkUrl(GREG *G); /* 205 */
  1091. YY_RULE(int) yy_TitleDouble(GREG *G); /* 204 */
  1092. YY_RULE(int) yy_TitleSingle(GREG *G); /* 203 */
  1093. YY_RULE(int) yy_Nonspacechar(GREG *G); /* 202 */
  1094. YY_RULE(int) yy_SourceContents(GREG *G); /* 201 */
  1095. YY_RULE(int) yy_Title(GREG *G); /* 200 */
  1096. YY_RULE(int) yy_Source(GREG *G); /* 199 */
  1097. YY_RULE(int) yy_Label(GREG *G); /* 198 */
  1098. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G); /* 197 */
  1099. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G); /* 196 */
  1100. YY_RULE(int) yy_AutoLink(GREG *G); /* 195 */
  1101. YY_RULE(int) yy_ReferenceLink(GREG *G); /* 194 */
  1102. YY_RULE(int) yy_ExplicitLink(GREG *G); /* 193 */
  1103. YY_RULE(int) yy_StrongUl(GREG *G); /* 192 */
  1104. YY_RULE(int) yy_StrongStar(GREG *G); /* 191 */
  1105. YY_RULE(int) yy_Whitespace(GREG *G); /* 190 */
  1106. YY_RULE(int) yy_EmphUl(GREG *G); /* 189 */
  1107. YY_RULE(int) yy_EmphStar(GREG *G); /* 188 */
  1108. YY_RULE(int) yy_StarLine(GREG *G); /* 187 */
  1109. YY_RULE(int) yy_UlLine(GREG *G); /* 186 */
  1110. YY_RULE(int) yy_SpecialChar(GREG *G); /* 185 */
  1111. YY_RULE(int) yy_Eof(GREG *G); /* 184 */
  1112. YY_RULE(int) yy_NormalEndline(GREG *G); /* 183 */
  1113. YY_RULE(int) yy_TerminalEndline(GREG *G); /* 182 */
  1114. YY_RULE(int) yy_LineBreak(GREG *G); /* 181 */
  1115. YY_RULE(int) yy_CharEntity(GREG *G); /* 180 */
  1116. YY_RULE(int) yy_DecEntity(GREG *G); /* 179 */
  1117. YY_RULE(int) yy_HexEntity(GREG *G); /* 178 */
  1118. YY_RULE(int) yy_Alphanumeric(GREG *G); /* 177 */
  1119. YY_RULE(int) yy_NormalChar(GREG *G); /* 176 */
  1120. YY_RULE(int) yy_Symbol(GREG *G); /* 175 */
  1121. YY_RULE(int) yy_EscapedChar(GREG *G); /* 174 */
  1122. YY_RULE(int) yy_Entity(GREG *G); /* 173 */
  1123. YY_RULE(int) yy_RawHtml(GREG *G); /* 172 */
  1124. YY_RULE(int) yy_Code(GREG *G); /* 171 */
  1125. YY_RULE(int) yy_InlineNote(GREG *G); /* 170 */
  1126. YY_RULE(int) yy_NoteReference(GREG *G); /* 169 */
  1127. YY_RULE(int) yy_Link(GREG *G); /* 168 */
  1128. YY_RULE(int) yy_Image(GREG *G); /* 167 */
  1129. YY_RULE(int) yy_Strike(GREG *G); /* 166 */
  1130. YY_RULE(int) yy_Emph(GREG *G); /* 165 */
  1131. YY_RULE(int) yy_Strong(GREG *G); /* 164 */
  1132. YY_RULE(int) yy_Space(GREG *G); /* 163 */
  1133. YY_RULE(int) yy_UlOrStarLine(GREG *G); /* 162 */
  1134. YY_RULE(int) yy_Str(GREG *G); /* 161 */
  1135. YY_RULE(int) yy_InStyleTags(GREG *G); /* 160 */
  1136. YY_RULE(int) yy_StyleClose(GREG *G); /* 159 */
  1137. YY_RULE(int) yy_StyleOpen(GREG *G); /* 158 */
  1138. YY_RULE(int) yy_HtmlBlockType(GREG *G); /* 157 */
  1139. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G); /* 156 */
  1140. YY_RULE(int) yy_HtmlComment(GREG *G); /* 155 */
  1141. YY_RULE(int) yy_HtmlBlockInTags(GREG *G); /* 154 */
  1142. YY_RULE(int) yy_HtmlBlockHead(GREG *G); /* 153 */
  1143. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G); /* 152 */
  1144. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G); /* 151 */
  1145. YY_RULE(int) yy_HtmlBlockScript(GREG *G); /* 150 */
  1146. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G); /* 149 */
  1147. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G); /* 148 */
  1148. YY_RULE(int) yy_HtmlBlockTr(GREG *G); /* 147 */
  1149. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G); /* 146 */
  1150. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G); /* 145 */
  1151. YY_RULE(int) yy_HtmlBlockThead(GREG *G); /* 144 */
  1152. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G); /* 143 */
  1153. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G); /* 142 */
  1154. YY_RULE(int) yy_HtmlBlockTh(GREG *G); /* 141 */
  1155. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G); /* 140 */
  1156. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G); /* 139 */
  1157. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G); /* 138 */
  1158. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G); /* 137 */
  1159. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G); /* 136 */
  1160. YY_RULE(int) yy_HtmlBlockTd(GREG *G); /* 135 */
  1161. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G); /* 134 */
  1162. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G); /* 133 */
  1163. YY_RULE(int) yy_HtmlBlockTbody(GREG *G); /* 132 */
  1164. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G); /* 131 */
  1165. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G); /* 130 */
  1166. YY_RULE(int) yy_HtmlBlockLi(GREG *G); /* 129 */
  1167. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G); /* 128 */
  1168. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G); /* 127 */
  1169. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G); /* 126 */
  1170. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G); /* 125 */
  1171. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G); /* 124 */
  1172. YY_RULE(int) yy_HtmlBlockDt(GREG *G); /* 123 */
  1173. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G); /* 122 */
  1174. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G); /* 121 */
  1175. YY_RULE(int) yy_HtmlBlockDd(GREG *G); /* 120 */
  1176. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G); /* 119 */
  1177. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G); /* 118 */
  1178. YY_RULE(int) yy_HtmlBlockUl(GREG *G); /* 117 */
  1179. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G); /* 116 */
  1180. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G); /* 115 */
  1181. YY_RULE(int) yy_HtmlBlockTable(GREG *G); /* 114 */
  1182. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G); /* 113 */
  1183. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G); /* 112 */
  1184. YY_RULE(int) yy_HtmlBlockPre(GREG *G); /* 111 */
  1185. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G); /* 110 */
  1186. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G); /* 109 */
  1187. YY_RULE(int) yy_HtmlBlockP(GREG *G); /* 108 */
  1188. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G); /* 107 */
  1189. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G); /* 106 */
  1190. YY_RULE(int) yy_HtmlBlockOl(GREG *G); /* 105 */
  1191. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G); /* 104 */
  1192. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G); /* 103 */
  1193. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G); /* 102 */
  1194. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G); /* 101 */
  1195. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G); /* 100 */
  1196. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G); /* 99 */
  1197. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G); /* 98 */
  1198. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G); /* 97 */
  1199. YY_RULE(int) yy_HtmlBlockMenu(GREG *G); /* 96 */
  1200. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G); /* 95 */
  1201. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G); /* 94 */
  1202. YY_RULE(int) yy_HtmlBlockH6(GREG *G); /* 93 */
  1203. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G); /* 92 */
  1204. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G); /* 91 */
  1205. YY_RULE(int) yy_HtmlBlockH5(GREG *G); /* 90 */
  1206. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G); /* 89 */
  1207. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G); /* 88 */
  1208. YY_RULE(int) yy_HtmlBlockH4(GREG *G); /* 87 */
  1209. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G); /* 86 */
  1210. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G); /* 85 */
  1211. YY_RULE(int) yy_HtmlBlockH3(GREG *G); /* 84 */
  1212. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G); /* 83 */
  1213. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G); /* 82 */
  1214. YY_RULE(int) yy_HtmlBlockH2(GREG *G); /* 81 */
  1215. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G); /* 80 */
  1216. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G); /* 79 */
  1217. YY_RULE(int) yy_HtmlBlockH1(GREG *G); /* 78 */
  1218. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G); /* 77 */
  1219. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G); /* 76 */
  1220. YY_RULE(int) yy_HtmlBlockForm(GREG *G); /* 75 */
  1221. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G); /* 74 */
  1222. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G); /* 73 */
  1223. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G); /* 72 */
  1224. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G); /* 71 */
  1225. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G); /* 70 */
  1226. YY_RULE(int) yy_HtmlBlockDl(GREG *G); /* 69 */
  1227. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G); /* 68 */
  1228. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G); /* 67 */
  1229. YY_RULE(int) yy_HtmlBlockDiv(GREG *G); /* 66 */
  1230. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G); /* 65 */
  1231. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G); /* 64 */
  1232. YY_RULE(int) yy_HtmlBlockDir(GREG *G); /* 63 */
  1233. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G); /* 62 */
  1234. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G); /* 61 */
  1235. YY_RULE(int) yy_HtmlBlockCenter(GREG *G); /* 60 */
  1236. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G); /* 59 */
  1237. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G); /* 58 */
  1238. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G); /* 57 */
  1239. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G); /* 56 */
  1240. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G); /* 55 */
  1241. YY_RULE(int) yy_HtmlBlockAddress(GREG *G); /* 54 */
  1242. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G); /* 53 */
  1243. YY_RULE(int) yy_HtmlAttribute(GREG *G); /* 52 */
  1244. YY_RULE(int) yy_Spnl(GREG *G); /* 51 */
  1245. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G); /* 50 */
  1246. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G); /* 49 */
  1247. YY_RULE(int) yy_Indent(GREG *G); /* 48 */
  1248. YY_RULE(int) yy_ListBlockLine(GREG *G); /* 47 */
  1249. YY_RULE(int) yy_ListContinuationBlock(GREG *G); /* 46 */
  1250. YY_RULE(int) yy_ListBlock(GREG *G); /* 45 */
  1251. YY_RULE(int) yy_ListItem(GREG *G); /* 44 */
  1252. YY_RULE(int) yy_Enumerator(GREG *G); /* 43 */
  1253. YY_RULE(int) yy_ListItemTight(GREG *G); /* 42 */
  1254. YY_RULE(int) yy_ListLoose(GREG *G); /* 41 */
  1255. YY_RULE(int) yy_ListTight(GREG *G); /* 40 */
  1256. YY_RULE(int) yy_Spacechar(GREG *G); /* 39 */
  1257. YY_RULE(int) yy_Bullet(GREG *G); /* 38 */
  1258. YY_RULE(int) yy_VerbatimChunk(GREG *G); /* 37 */
  1259. YY_RULE(int) yy_IndentedLine(GREG *G); /* 36 */
  1260. YY_RULE(int) yy_NonblankIndentedLine(GREG *G); /* 35 */
  1261. YY_RULE(int) yy_Line(GREG *G); /* 34 */
  1262. YY_RULE(int) yy_StartList(GREG *G); /* 33 */
  1263. YY_RULE(int) yy_BlockQuoteRaw(GREG *G); /* 32 */
  1264. YY_RULE(int) yy_Endline(GREG *G); /* 31 */
  1265. YY_RULE(int) yy_RawLine(GREG *G); /* 30 */
  1266. YY_RULE(int) yy_SetextBottom2(GREG *G); /* 29 */
  1267. YY_RULE(int) yy_SetextBottom1(GREG *G); /* 28 */
  1268. YY_RULE(int) yy_SetextHeading2(GREG *G); /* 27 */
  1269. YY_RULE(int) yy_SetextHeading1(GREG *G); /* 26 */
  1270. YY_RULE(int) yy_SetextHeading(GREG *G); /* 25 */
  1271. YY_RULE(int) yy_AtxHeading(GREG *G); /* 24 */
  1272. YY_RULE(int) yy_AtxStart(GREG *G); /* 23 */
  1273. YY_RULE(int) yy_Inline(GREG *G); /* 22 */
  1274. YY_RULE(int) yy_Sp(GREG *G); /* 21 */
  1275. YY_RULE(int) yy_Newline(GREG *G); /* 20 */
  1276. YY_RULE(int) yy_AtxInline(GREG *G); /* 19 */
  1277. YY_RULE(int) yy_Inlines(GREG *G); /* 18 */
  1278. YY_RULE(int) yy_NonindentSpace(GREG *G); /* 17 */
  1279. YY_RULE(int) yy_Plain(GREG *G); /* 16 */
  1280. YY_RULE(int) yy_Para(GREG *G); /* 15 */
  1281. YY_RULE(int) yy_StyleBlock(GREG *G); /* 14 */
  1282. YY_RULE(int) yy_HtmlBlock(GREG *G); /* 13 */
  1283. YY_RULE(int) yy_BulletList(GREG *G); /* 12 */
  1284. YY_RULE(int) yy_OrderedList(GREG *G); /* 11 */
  1285. YY_RULE(int) yy_Heading(GREG *G); /* 10 */
  1286. YY_RULE(int) yy_HorizontalRule(GREG *G); /* 9 */
  1287. YY_RULE(int) yy_Reference(GREG *G); /* 8 */
  1288. YY_RULE(int) yy_Note(GREG *G); /* 7 */
  1289. YY_RULE(int) yy_Verbatim(GREG *G); /* 6 */
  1290. YY_RULE(int) yy_BlockQuote(GREG *G); /* 5 */
  1291. YY_RULE(int) yy_BlankLine(GREG *G); /* 4 */
  1292. YY_RULE(int) yy_LocMarker(GREG *G); /* 3 */
  1293. YY_RULE(int) yy_Block(GREG *G); /* 2 */
  1294. YY_RULE(int) yy_Doc(GREG *G); /* 1 */
  1295. YY_ACTION(void) yy_1_RawLine(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1296. {
  1297. yyprintf((stderr, "do yy_1_RawLine\n"));
  1298. yy = elem(pmh_RAW); ;
  1299. }
  1300. YY_ACTION(void) yy_1_Line(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1301. {
  1302. yyprintf((stderr, "do yy_1_Line\n"));
  1303. yy = mk_element((parser_data *)G->data, pmh_RAW, yy->pos, yy->end); ;
  1304. }
  1305. YY_ACTION(void) yy_1_StartList(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1306. {
  1307. yyprintf((stderr, "do yy_1_StartList\n"));
  1308. yy = NULL; ;
  1309. }
  1310. YY_ACTION(void) yy_1_HtmlComment(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1311. {
  1312. #define s G->val[-1]
  1313. yyprintf((stderr, "do yy_1_HtmlComment\n"));
  1314. ADD(elem_s(pmh_COMMENT)); ;
  1315. #undef s
  1316. }
  1317. YY_ACTION(void) yy_1_RawHtml(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1318. {
  1319. #define s G->val[-1]
  1320. yyprintf((stderr, "do yy_1_RawHtml\n"));
  1321. ADD(elem_s(pmh_HTML)); ;
  1322. #undef s
  1323. }
  1324. YY_ACTION(void) yy_1_Code(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1325. {
  1326. #define s G->val[-1]
  1327. yyprintf((stderr, "do yy_1_Code\n"));
  1328. ADD(elem_s(pmh_CODE)); ;
  1329. #undef s
  1330. }
  1331. YY_ACTION(void) yy_1_Ticks5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1332. {
  1333. yyprintf((stderr, "do yy_1_Ticks5\n"));
  1334. yy = elem(pmh_NO_TYPE); ;
  1335. }
  1336. YY_ACTION(void) yy_1_Ticks4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1337. {
  1338. yyprintf((stderr, "do yy_1_Ticks4\n"));
  1339. yy = elem(pmh_NO_TYPE); ;
  1340. }
  1341. YY_ACTION(void) yy_1_Ticks3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1342. {
  1343. yyprintf((stderr, "do yy_1_Ticks3\n"));
  1344. yy = elem(pmh_NO_TYPE); ;
  1345. }
  1346. YY_ACTION(void) yy_1_Ticks2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1347. {
  1348. yyprintf((stderr, "do yy_1_Ticks2\n"));
  1349. yy = elem(pmh_NO_TYPE); ;
  1350. }
  1351. YY_ACTION(void) yy_1_Ticks1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1352. {
  1353. yyprintf((stderr, "do yy_1_Ticks1\n"));
  1354. yy = elem(pmh_NO_TYPE); ;
  1355. }
  1356. YY_ACTION(void) yy_1_RefSrc(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1357. {
  1358. yyprintf((stderr, "do yy_1_RefSrc\n"));
  1359. yy = mk_notype; yy->address = COPY_YYTEXT_ORIG(); ;
  1360. }
  1361. YY_ACTION(void) yy_2_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1362. {
  1363. #define s G->val[-1]
  1364. yyprintf((stderr, "do yy_2_Label\n"));
  1365. s->pos = s->pos;
  1366. s->end = thunk->end;
  1367. yy = s;
  1368. ;
  1369. #undef s
  1370. }
  1371. YY_ACTION(void) yy_1_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1372. {
  1373. #define s G->val[-1]
  1374. yyprintf((stderr, "do yy_1_Label\n"));
  1375. s->label = COPY_YYTEXT_ORIG(); ;
  1376. #undef s
  1377. }
  1378. YY_ACTION(void) yy_1_Reference(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1379. {
  1380. #define r G->val[-1]
  1381. #define l G->val[-2]
  1382. #define s G->val[-3]
  1383. yyprintf((stderr, "do yy_1_Reference\n"));
  1384. pmh_realelement *el = elem_s(pmh_REFERENCE);
  1385. el->label = strdup_or_null(l->label);
  1386. el->address = strdup_or_null(r->address);
  1387. ADD(el);
  1388. FREE_LABEL(l);
  1389. FREE_ADDRESS(r);
  1390. ;
  1391. #undef r
  1392. #undef l
  1393. #undef s
  1394. }
  1395. YY_ACTION(void) yy_3_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1396. {
  1397. #define s G->val[-1]
  1398. yyprintf((stderr, "do yy_3_AutoLinkEmail\n"));
  1399. s->end = thunk->end;
  1400. ADD(s);
  1401. ;
  1402. #undef s
  1403. }
  1404. YY_ACTION(void) yy_2_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1405. {
  1406. #define s G->val[-1]
  1407. yyprintf((stderr, "do yy_2_AutoLinkEmail\n"));
  1408. s->address = COPY_YYTEXT_ORIG(); ;
  1409. #undef s
  1410. }
  1411. YY_ACTION(void) yy_1_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1412. {
  1413. #define s G->val[-1]
  1414. yyprintf((stderr, "do yy_1_AutoLinkEmail\n"));
  1415. s->type = pmh_AUTO_LINK_EMAIL; ;
  1416. #undef s
  1417. }
  1418. YY_ACTION(void) yy_3_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1419. {
  1420. #define s G->val[-1]
  1421. yyprintf((stderr, "do yy_3_AutoLinkUrl\n"));
  1422. s->end = thunk->end;
  1423. ADD(s);
  1424. ;
  1425. #undef s
  1426. }
  1427. YY_ACTION(void) yy_2_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1428. {
  1429. #define s G->val[-1]
  1430. yyprintf((stderr, "do yy_2_AutoLinkUrl\n"));
  1431. s->address = COPY_YYTEXT_ORIG(); ;
  1432. #undef s
  1433. }
  1434. YY_ACTION(void) yy_1_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1435. {
  1436. #define s G->val[-1]
  1437. yyprintf((stderr, "do yy_1_AutoLinkUrl\n"));
  1438. s->type = pmh_AUTO_LINK_URL; ;
  1439. #undef s
  1440. }
  1441. YY_ACTION(void) yy_3_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1442. {
  1443. yyprintf((stderr, "do yy_3_Source\n"));
  1444. yy->address = COPY_YYTEXT_ORIG(); ;
  1445. }
  1446. YY_ACTION(void) yy_2_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1447. {
  1448. yyprintf((stderr, "do yy_2_Source\n"));
  1449. yy->address = COPY_YYTEXT_ORIG(); ;
  1450. }
  1451. YY_ACTION(void) yy_1_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1452. {
  1453. yyprintf((stderr, "do yy_1_Source\n"));
  1454. yy = mk_notype; ;
  1455. }
  1456. YY_ACTION(void) yy_1_ExplicitLink(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1457. {
  1458. #define l G->val[-1]
  1459. #define s G->val[-2]
  1460. yyprintf((stderr, "do yy_1_ExplicitLink\n"));
  1461. yy = elem_s(pmh_LINK);
  1462. if (l->address != NULL)
  1463. yy->address = strdup_or_null(l->address);
  1464. FREE_LABEL(s);
  1465. FREE_ADDRESS(l);
  1466. ;
  1467. #undef l
  1468. #undef s
  1469. }
  1470. YY_ACTION(void) yy_1_ReferenceLinkSingle(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1471. {
  1472. #define s G->val[-1]
  1473. yyprintf((stderr, "do yy_1_ReferenceLinkSingle\n"));
  1474. pmh_realelement *reference = GET_REF(s->label);
  1475. if (reference) {
  1476. yy = elem_s(pmh_LINK);
  1477. yy->label = strdup_or_null(s->label);
  1478. yy->address = strdup_or_null(reference->address);
  1479. } else
  1480. yy = NULL;
  1481. FREE_LABEL(s);
  1482. ;
  1483. #undef s
  1484. }
  1485. YY_ACTION(void) yy_1_ReferenceLinkDouble(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1486. {
  1487. #define l G->val[-1]
  1488. #define s G->val[-2]
  1489. yyprintf((stderr, "do yy_1_ReferenceLinkDouble\n"));
  1490. pmh_realelement *reference = GET_REF(l->label);
  1491. if (reference) {
  1492. yy = elem_s(pmh_LINK);
  1493. yy->label = strdup_or_null(l->label);
  1494. yy->address = strdup_or_null(reference->address);
  1495. } else
  1496. yy = NULL;
  1497. FREE_LABEL(s);
  1498. FREE_LABEL(l);
  1499. ;
  1500. #undef l
  1501. #undef s
  1502. }
  1503. YY_ACTION(void) yy_1_Link(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1504. {
  1505. yyprintf((stderr, "do yy_1_Link\n"));
  1506. if (yy) ADD(yy); ;
  1507. }
  1508. YY_ACTION(void) yy_1_Image(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1509. {
  1510. yyprintf((stderr, "do yy_1_Image\n"));
  1511. if (yy != NULL) {
  1512. yy->type = pmh_IMAGE;
  1513. yy->pos -= 1;
  1514. ADD(yy);
  1515. }
  1516. ;
  1517. }
  1518. YY_ACTION(void) yy_1_Strike(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1519. {
  1520. #define s G->val[-1]
  1521. yyprintf((stderr, "do yy_1_Strike\n"));
  1522. ADD(elem_s(pmh_STRIKE)); ;
  1523. #undef s
  1524. }
  1525. YY_ACTION(void) yy_1_StrongUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1526. {
  1527. #define s G->val[-1]
  1528. yyprintf((stderr, "do yy_1_StrongUl\n"));
  1529. ADD(elem_s(pmh_STRONG)); ;
  1530. #undef s
  1531. }
  1532. YY_ACTION(void) yy_1_StrongStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1533. {
  1534. #define s G->val[-1]
  1535. yyprintf((stderr, "do yy_1_StrongStar\n"));
  1536. ADD(elem_s(pmh_STRONG)); ;
  1537. #undef s
  1538. }
  1539. YY_ACTION(void) yy_1_EmphUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1540. {
  1541. #define s G->val[-1]
  1542. yyprintf((stderr, "do yy_1_EmphUl\n"));
  1543. ADD(elem_s(pmh_EMPH)); ;
  1544. #undef s
  1545. }
  1546. YY_ACTION(void) yy_1_EmphStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1547. {
  1548. #define s G->val[-1]
  1549. yyprintf((stderr, "do yy_1_EmphStar\n"));
  1550. ADD(elem_s(pmh_EMPH)); ;
  1551. #undef s
  1552. }
  1553. YY_ACTION(void) yy_1_Entity(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1554. {
  1555. #define s G->val[-1]
  1556. yyprintf((stderr, "do yy_1_Entity\n"));
  1557. ADD(elem_s(pmh_HTML_ENTITY)); ;
  1558. #undef s
  1559. }
  1560. YY_ACTION(void) yy_1_StyleBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1561. {
  1562. #define s G->val[-1]
  1563. yyprintf((stderr, "do yy_1_StyleBlock\n"));
  1564. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1565. #undef s
  1566. }
  1567. YY_ACTION(void) yy_1_HtmlBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1568. {
  1569. #define s G->val[-1]
  1570. yyprintf((stderr, "do yy_1_HtmlBlock\n"));
  1571. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1572. #undef s
  1573. }
  1574. YY_ACTION(void) yy_1_HtmlBlockH6(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1575. {
  1576. #define s G->val[-1]
  1577. yyprintf((stderr, "do yy_1_HtmlBlockH6\n"));
  1578. ADD(elem_s(pmh_H6)); ;
  1579. #undef s
  1580. }
  1581. YY_ACTION(void) yy_1_HtmlBlockH5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1582. {
  1583. #define s G->val[-1]
  1584. yyprintf((stderr, "do yy_1_HtmlBlockH5\n"));
  1585. ADD(elem_s(pmh_H5)); ;
  1586. #undef s
  1587. }
  1588. YY_ACTION(void) yy_1_HtmlBlockH4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1589. {
  1590. #define s G->val[-1]
  1591. yyprintf((stderr, "do yy_1_HtmlBlockH4\n"));
  1592. ADD(elem_s(pmh_H4)); ;
  1593. #undef s
  1594. }
  1595. YY_ACTION(void) yy_1_HtmlBlockH3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1596. {
  1597. #define s G->val[-1]
  1598. yyprintf((stderr, "do yy_1_HtmlBlockH3\n"));
  1599. ADD(elem_s(pmh_H3)); ;
  1600. #undef s
  1601. }
  1602. YY_ACTION(void) yy_1_HtmlBlockH2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1603. {
  1604. #define s G->val[-1]
  1605. yyprintf((stderr, "do yy_1_HtmlBlockH2\n"));
  1606. ADD(elem_s(pmh_H2)); ;
  1607. #undef s
  1608. }
  1609. YY_ACTION(void) yy_1_HtmlBlockH1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1610. {
  1611. #define s G->val[-1]
  1612. yyprintf((stderr, "do yy_1_HtmlBlockH1\n"));
  1613. ADD(elem_s(pmh_H1)); ;
  1614. #undef s
  1615. }
  1616. YY_ACTION(void) yy_1_Enumerator(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1617. {
  1618. yyprintf((stderr, "do yy_1_Enumerator\n"));
  1619. ADD(elem(pmh_LIST_ENUMERATOR)); ;
  1620. }
  1621. YY_ACTION(void) yy_3_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1622. {
  1623. #define a G->val[-1]
  1624. yyprintf((stderr, "do yy_3_ListContinuationBlock\n"));
  1625. yy = a; ;
  1626. #undef a
  1627. }
  1628. YY_ACTION(void) yy_2_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1629. {
  1630. #define a G->val[-1]
  1631. yyprintf((stderr, "do yy_2_ListContinuationBlock\n"));
  1632. a = cons(yy, a); ;
  1633. #undef a
  1634. }
  1635. YY_ACTION(void) yy_1_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1636. {
  1637. #define a G->val[-1]
  1638. yyprintf((stderr, "do yy_1_ListContinuationBlock\n"));
  1639. if (*yytext == '\0') /* if strlen(yytext) == 0 */
  1640. a = cons(elem(pmh_SEPARATOR), a);
  1641. else
  1642. a = cons(elem(pmh_RAW), a);
  1643. ;
  1644. #undef a
  1645. }
  1646. YY_ACTION(void) yy_3_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1647. {
  1648. #define a G->val[-1]
  1649. yyprintf((stderr, "do yy_3_ListBlock\n"));
  1650. yy = a; ;
  1651. #undef a
  1652. }
  1653. YY_ACTION(void) yy_2_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1654. {
  1655. #define a G->val[-1]
  1656. yyprintf((stderr, "do yy_2_ListBlock\n"));
  1657. a = cons(elem(pmh_RAW), a); ;
  1658. #undef a
  1659. }
  1660. YY_ACTION(void) yy_1_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1661. {
  1662. #define a G->val[-1]
  1663. yyprintf((stderr, "do yy_1_ListBlock\n"));
  1664. a = cons(yy, a); ;
  1665. #undef a
  1666. }
  1667. YY_ACTION(void) yy_3_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1668. {
  1669. #define a G->val[-1]
  1670. yyprintf((stderr, "do yy_3_ListItemTight\n"));
  1671. yy = a; ;
  1672. #undef a
  1673. }
  1674. YY_ACTION(void) yy_2_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1675. {
  1676. #define a G->val[-1]
  1677. yyprintf((stderr, "do yy_2_ListItemTight\n"));
  1678. a = cons(yy, a); ;
  1679. #undef a
  1680. }
  1681. YY_ACTION(void) yy_1_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1682. {
  1683. #define a G->val[-1]
  1684. yyprintf((stderr, "do yy_1_ListItemTight\n"));
  1685. a = cons(yy, a); ;
  1686. #undef a
  1687. }
  1688. YY_ACTION(void) yy_3_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1689. {
  1690. #define a G->val[-1]
  1691. yyprintf((stderr, "do yy_3_ListItem\n"));
  1692. yy = a; ;
  1693. #undef a
  1694. }
  1695. YY_ACTION(void) yy_2_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1696. {
  1697. #define a G->val[-1]
  1698. yyprintf((stderr, "do yy_2_ListItem\n"));
  1699. a = cons(yy, a); ;
  1700. #undef a
  1701. }
  1702. YY_ACTION(void) yy_1_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1703. {
  1704. #define a G->val[-1]
  1705. yyprintf((stderr, "do yy_1_ListItem\n"));
  1706. a = cons(yy, a); ;
  1707. #undef a
  1708. }
  1709. YY_ACTION(void) yy_2_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1710. {
  1711. #define b G->val[-1]
  1712. #define a G->val[-2]
  1713. yyprintf((stderr, "do yy_2_ListLoose\n"));
  1714. pmh_realelement *cur = a;
  1715. while (cur != NULL) {
  1716. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1717. rawlist->children = reverse(cur->children);
  1718. ADD(rawlist);
  1719. cur = cur->next;
  1720. }
  1721. ;
  1722. #undef b
  1723. #undef a
  1724. }
  1725. YY_ACTION(void) yy_1_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1726. {
  1727. #define b G->val[-1]
  1728. #define a G->val[-2]
  1729. yyprintf((stderr, "do yy_1_ListLoose\n"));
  1730. b = cons(etext("\n\n"), b); /* In loose list, \n\n added to end of each element */
  1731. pmh_realelement *el = mk_notype;
  1732. el->children = b;
  1733. a = cons(el, a);
  1734. ;
  1735. #undef b
  1736. #undef a
  1737. }
  1738. YY_ACTION(void) yy_2_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1739. {
  1740. #define a G->val[-1]
  1741. yyprintf((stderr, "do yy_2_ListTight\n"));
  1742. pmh_realelement *cur = a;
  1743. while (cur != NULL) {
  1744. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1745. rawlist->children = reverse(cur->children);
  1746. ADD(rawlist);
  1747. cur = cur->next;
  1748. }
  1749. ;
  1750. #undef a
  1751. }
  1752. YY_ACTION(void) yy_1_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1753. {
  1754. #define a G->val[-1]
  1755. yyprintf((stderr, "do yy_1_ListTight\n"));
  1756. pmh_realelement *el = mk_notype;
  1757. el->children = yy;
  1758. a = cons(el, a);
  1759. ;
  1760. #undef a
  1761. }
  1762. YY_ACTION(void) yy_1_Bullet(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1763. {
  1764. yyprintf((stderr, "do yy_1_Bullet\n"));
  1765. ADD(elem(pmh_LIST_BULLET)); ;
  1766. }
  1767. YY_ACTION(void) yy_1_HorizontalRule(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1768. {
  1769. yyprintf((stderr, "do yy_1_HorizontalRule\n"));
  1770. ADD(elem(pmh_HRULE)); ;
  1771. }
  1772. YY_ACTION(void) yy_1_Verbatim(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1773. {
  1774. #define s G->val[-1]
  1775. yyprintf((stderr, "do yy_1_Verbatim\n"));
  1776. ADD(elem_s(pmh_VERBATIM)); ;
  1777. #undef s
  1778. }
  1779. YY_ACTION(void) yy_5_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1780. {
  1781. #define a G->val[-1]
  1782. yyprintf((stderr, "do yy_5_BlockQuoteRaw\n"));
  1783. yy = a; ;
  1784. #undef a
  1785. }
  1786. YY_ACTION(void) yy_4_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1787. {
  1788. #define a G->val[-1]
  1789. yyprintf((stderr, "do yy_4_BlockQuoteRaw\n"));
  1790. a = cons(etext("\n"), a); ;
  1791. #undef a
  1792. }
  1793. YY_ACTION(void) yy_3_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1794. {
  1795. #define a G->val[-1]
  1796. yyprintf((stderr, "do yy_3_BlockQuoteRaw\n"));
  1797. a = cons(yy, a); ;
  1798. #undef a
  1799. }
  1800. YY_ACTION(void) yy_2_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1801. {
  1802. #define a G->val[-1]
  1803. yyprintf((stderr, "do yy_2_BlockQuoteRaw\n"));
  1804. a = cons(yy, a); ;
  1805. #undef a
  1806. }
  1807. YY_ACTION(void) yy_1_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1808. {
  1809. #define a G->val[-1]
  1810. yyprintf((stderr, "do yy_1_BlockQuoteRaw\n"));
  1811. ADD(elem(pmh_BLOCKQUOTE)); ;
  1812. #undef a
  1813. }
  1814. YY_ACTION(void) yy_1_BlockQuote(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1815. {
  1816. #define a G->val[-1]
  1817. yyprintf((stderr, "do yy_1_BlockQuote\n"));
  1818. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1819. rawlist->children = reverse(a);
  1820. ADD(rawlist);
  1821. ;
  1822. #undef a
  1823. }
  1824. YY_ACTION(void) yy_1_SetextHeading2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1825. {
  1826. #define s G->val[-1]
  1827. yyprintf((stderr, "do yy_1_SetextHeading2\n"));
  1828. ADD(elem_s(pmh_H2)); ;
  1829. #undef s
  1830. }
  1831. YY_ACTION(void) yy_1_SetextHeading1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1832. {
  1833. #define s G->val[-1]
  1834. yyprintf((stderr, "do yy_1_SetextHeading1\n"));
  1835. ADD(elem_s(pmh_H1)); ;
  1836. #undef s
  1837. }
  1838. YY_ACTION(void) yy_1_AtxHeading(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1839. {
  1840. #define s G->val[-1]
  1841. yyprintf((stderr, "do yy_1_AtxHeading\n"));
  1842. ADD(elem_s(s->type)); ;
  1843. #undef s
  1844. }
  1845. YY_ACTION(void) yy_1_AtxStart(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1846. {
  1847. yyprintf((stderr, "do yy_1_AtxStart\n"));
  1848. yy = elem((pmh_element_type)(pmh_H1 + (strlen(yytext) - 1))); ;
  1849. }
  1850. YY_ACTION(void) yy_1_LocMarker(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1851. {
  1852. yyprintf((stderr, "do yy_1_LocMarker\n"));
  1853. yy = elem(pmh_NO_TYPE); ;
  1854. }
  1855. YY_RULE(int) yy_RawNoteBlock(GREG *G)
  1856. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1857. yyprintf((stderr, "%s\n", "RawNoteBlock"));
  1858. { int yypos4= G->pos, yythunkpos4= G->thunkpos; if (!yy_BlankLine(G)) { goto l4; } goto l1;
  1859. l4:; G->pos= yypos4; G->thunkpos= yythunkpos4;
  1860. } if (!yy_OptionallyIndentedLine(G)) { goto l1; }
  1861. l2:;
  1862. { int yypos3= G->pos, yythunkpos3= G->thunkpos;
  1863. { int yypos5= G->pos, yythunkpos5= G->thunkpos; if (!yy_BlankLine(G)) { goto l5; } goto l3;
  1864. l5:; G->pos= yypos5; G->thunkpos= yythunkpos5;
  1865. } if (!yy_OptionallyIndentedLine(G)) { goto l3; } goto l2;
  1866. l3:; G->pos= yypos3; G->thunkpos= yythunkpos3;
  1867. }
  1868. l6:;
  1869. { int yypos7= G->pos, yythunkpos7= G->thunkpos; if (!yy_BlankLine(G)) { goto l7; } goto l6;
  1870. l7:; G->pos= yypos7; G->thunkpos= yythunkpos7;
  1871. }
  1872. yyprintf((stderr, " ok %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  1873. return 1;
  1874. l1:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1875. yyprintf((stderr, " fail %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  1876. return 0;
  1877. }
  1878. YY_RULE(int) yy_RawNoteReference(GREG *G)
  1879. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1880. yyprintf((stderr, "%s\n", "RawNoteReference")); if (!yymatchString(G, "[^")) goto l8;
  1881. { int yypos11= G->pos, yythunkpos11= G->thunkpos; if (!yy_Newline(G)) { goto l11; } goto l8;
  1882. l11:; G->pos= yypos11; G->thunkpos= yythunkpos11;
  1883. }
  1884. { int yypos12= G->pos, yythunkpos12= G->thunkpos; if (!yymatchChar(G, ']')) goto l12; goto l8;
  1885. l12:; G->pos= yypos12; G->thunkpos= yythunkpos12;
  1886. } if (!yymatchDot(G)) goto l8;
  1887. l9:;
  1888. { int yypos10= G->pos, yythunkpos10= G->thunkpos;
  1889. { int yypos13= G->pos, yythunkpos13= G->thunkpos; if (!yy_Newline(G)) { goto l13; } goto l10;
  1890. l13:; G->pos= yypos13; G->thunkpos= yythunkpos13;
  1891. }
  1892. { int yypos14= G->pos, yythunkpos14= G->thunkpos; if (!yymatchChar(G, ']')) goto l14; goto l10;
  1893. l14:; G->pos= yypos14; G->thunkpos= yythunkpos14;
  1894. } if (!yymatchDot(G)) goto l10; goto l9;
  1895. l10:; G->pos= yypos10; G->thunkpos= yythunkpos10;
  1896. } if (!yymatchChar(G, ']')) goto l8;
  1897. yyprintf((stderr, " ok %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  1898. return 1;
  1899. l8:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1900. yyprintf((stderr, " fail %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  1901. return 0;
  1902. }
  1903. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G)
  1904. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1905. yyprintf((stderr, "%s\n", "ExtendedSpecialChar")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l15; if (!yymatchChar(G, '^')) goto l15;
  1906. yyprintf((stderr, " ok %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  1907. return 1;
  1908. l15:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1909. yyprintf((stderr, " fail %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  1910. return 0;
  1911. }
  1912. YY_RULE(int) yy_AlphanumericAscii(GREG *G)
  1913. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1914. yyprintf((stderr, "%s\n", "AlphanumericAscii")); if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l16;
  1915. yyprintf((stderr, " ok %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  1916. return 1;
  1917. l16:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1918. yyprintf((stderr, " fail %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  1919. return 0;
  1920. }
  1921. YY_RULE(int) yy_Quoted(GREG *G)
  1922. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1923. yyprintf((stderr, "%s\n", "Quoted"));
  1924. { int yypos18= G->pos, yythunkpos18= G->thunkpos; if (!yymatchChar(G, '"')) goto l19;
  1925. l20:;
  1926. { int yypos21= G->pos, yythunkpos21= G->thunkpos;
  1927. { int yypos22= G->pos, yythunkpos22= G->thunkpos; if (!yymatchChar(G, '"')) goto l22; goto l21;
  1928. l22:; G->pos= yypos22; G->thunkpos= yythunkpos22;
  1929. } if (!yymatchDot(G)) goto l21; goto l20;
  1930. l21:; G->pos= yypos21; G->thunkpos= yythunkpos21;
  1931. } if (!yymatchChar(G, '"')) goto l19; goto l18;
  1932. l19:; G->pos= yypos18; G->thunkpos= yythunkpos18; if (!yymatchChar(G, '\'')) goto l17;
  1933. l23:;
  1934. { int yypos24= G->pos, yythunkpos24= G->thunkpos;
  1935. { int yypos25= G->pos, yythunkpos25= G->thunkpos; if (!yymatchChar(G, '\'')) goto l25; goto l24;
  1936. l25:; G->pos= yypos25; G->thunkpos= yythunkpos25;
  1937. } if (!yymatchDot(G)) goto l24; goto l23;
  1938. l24:; G->pos= yypos24; G->thunkpos= yythunkpos24;
  1939. } if (!yymatchChar(G, '\'')) goto l17;
  1940. }
  1941. l18:;
  1942. yyprintf((stderr, " ok %s @ %s\n", "Quoted", G->buf+G->pos));
  1943. return 1;
  1944. l17:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1945. yyprintf((stderr, " fail %s @ %s\n", "Quoted", G->buf+G->pos));
  1946. return 0;
  1947. }
  1948. YY_RULE(int) yy_HtmlTag(GREG *G)
  1949. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1950. yyprintf((stderr, "%s\n", "HtmlTag")); if (!yymatchChar(G, '<')) goto l26; if (!yy_Spnl(G)) { goto l26; }
  1951. { int yypos27= G->pos, yythunkpos27= G->thunkpos; if (!yymatchChar(G, '/')) goto l27; goto l28;
  1952. l27:; G->pos= yypos27; G->thunkpos= yythunkpos27;
  1953. }
  1954. l28:; if (!yy_AlphanumericAscii(G)) { goto l26; }
  1955. l29:;
  1956. { int yypos30= G->pos, yythunkpos30= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l30; } goto l29;
  1957. l30:; G->pos= yypos30; G->thunkpos= yythunkpos30;
  1958. } if (!yy_Spnl(G)) { goto l26; }
  1959. l31:;
  1960. { int yypos32= G->pos, yythunkpos32= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l32; } goto l31;
  1961. l32:; G->pos= yypos32; G->thunkpos= yythunkpos32;
  1962. }
  1963. { int yypos33= G->pos, yythunkpos33= G->thunkpos; if (!yymatchChar(G, '/')) goto l33; goto l34;
  1964. l33:; G->pos= yypos33; G->thunkpos= yythunkpos33;
  1965. }
  1966. l34:; if (!yy_Spnl(G)) { goto l26; } if (!yymatchChar(G, '>')) goto l26;
  1967. yyprintf((stderr, " ok %s @ %s\n", "HtmlTag", G->buf+G->pos));
  1968. return 1;
  1969. l26:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1970. yyprintf((stderr, " fail %s @ %s\n", "HtmlTag", G->buf+G->pos));
  1971. return 0;
  1972. }
  1973. YY_RULE(int) yy_Ticks5(GREG *G)
  1974. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1975. yyprintf((stderr, "%s\n", "Ticks5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l35; if (!yymatchString(G, "`````")) goto l35; yyText(G, G->begin, G->end); if (!(YY_END)) goto l35;
  1976. { int yypos36= G->pos, yythunkpos36= G->thunkpos; if (!yymatchChar(G, '`')) goto l36; goto l35;
  1977. l36:; G->pos= yypos36; G->thunkpos= yythunkpos36;
  1978. } yyDo(G, yy_1_Ticks5, G->begin, G->end);
  1979. yyprintf((stderr, " ok %s @ %s\n", "Ticks5", G->buf+G->pos));
  1980. return 1;
  1981. l35:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1982. yyprintf((stderr, " fail %s @ %s\n", "Ticks5", G->buf+G->pos));
  1983. return 0;
  1984. }
  1985. YY_RULE(int) yy_Ticks4(GREG *G)
  1986. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1987. yyprintf((stderr, "%s\n", "Ticks4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l37; if (!yymatchString(G, "````")) goto l37; yyText(G, G->begin, G->end); if (!(YY_END)) goto l37;
  1988. { int yypos38= G->pos, yythunkpos38= G->thunkpos; if (!yymatchChar(G, '`')) goto l38; goto l37;
  1989. l38:; G->pos= yypos38; G->thunkpos= yythunkpos38;
  1990. } yyDo(G, yy_1_Ticks4, G->begin, G->end);
  1991. yyprintf((stderr, " ok %s @ %s\n", "Ticks4", G->buf+G->pos));
  1992. return 1;
  1993. l37:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1994. yyprintf((stderr, " fail %s @ %s\n", "Ticks4", G->buf+G->pos));
  1995. return 0;
  1996. }
  1997. YY_RULE(int) yy_Ticks3(GREG *G)
  1998. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1999. yyprintf((stderr, "%s\n", "Ticks3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l39; if (!yymatchString(G, "```")) goto l39; yyText(G, G->begin, G->end); if (!(YY_END)) goto l39;
  2000. { int yypos40= G->pos, yythunkpos40= G->thunkpos; if (!yymatchChar(G, '`')) goto l40; goto l39;
  2001. l40:; G->pos= yypos40; G->thunkpos= yythunkpos40;
  2002. } yyDo(G, yy_1_Ticks3, G->begin, G->end);
  2003. yyprintf((stderr, " ok %s @ %s\n", "Ticks3", G->buf+G->pos));
  2004. return 1;
  2005. l39:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2006. yyprintf((stderr, " fail %s @ %s\n", "Ticks3", G->buf+G->pos));
  2007. return 0;
  2008. }
  2009. YY_RULE(int) yy_Ticks2(GREG *G)
  2010. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2011. yyprintf((stderr, "%s\n", "Ticks2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l41; if (!yymatchString(G, "``")) goto l41; yyText(G, G->begin, G->end); if (!(YY_END)) goto l41;
  2012. { int yypos42= G->pos, yythunkpos42= G->thunkpos; if (!yymatchChar(G, '`')) goto l42; goto l41;
  2013. l42:; G->pos= yypos42; G->thunkpos= yythunkpos42;
  2014. } yyDo(G, yy_1_Ticks2, G->begin, G->end);
  2015. yyprintf((stderr, " ok %s @ %s\n", "Ticks2", G->buf+G->pos));
  2016. return 1;
  2017. l41:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2018. yyprintf((stderr, " fail %s @ %s\n", "Ticks2", G->buf+G->pos));
  2019. return 0;
  2020. }
  2021. YY_RULE(int) yy_Ticks1(GREG *G)
  2022. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2023. yyprintf((stderr, "%s\n", "Ticks1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l43; if (!yymatchChar(G, '`')) goto l43; yyText(G, G->begin, G->end); if (!(YY_END)) goto l43;
  2024. { int yypos44= G->pos, yythunkpos44= G->thunkpos; if (!yymatchChar(G, '`')) goto l44; goto l43;
  2025. l44:; G->pos= yypos44; G->thunkpos= yythunkpos44;
  2026. } yyDo(G, yy_1_Ticks1, G->begin, G->end);
  2027. yyprintf((stderr, " ok %s @ %s\n", "Ticks1", G->buf+G->pos));
  2028. return 1;
  2029. l43:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2030. yyprintf((stderr, " fail %s @ %s\n", "Ticks1", G->buf+G->pos));
  2031. return 0;
  2032. }
  2033. YY_RULE(int) yy_SkipBlock(GREG *G)
  2034. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2035. yyprintf((stderr, "%s\n", "SkipBlock"));
  2036. { int yypos46= G->pos, yythunkpos46= G->thunkpos;
  2037. { int yypos50= G->pos, yythunkpos50= G->thunkpos; if (!yy_BlankLine(G)) { goto l50; } goto l47;
  2038. l50:; G->pos= yypos50; G->thunkpos= yythunkpos50;
  2039. } if (!yy_RawLine(G)) { goto l47; }
  2040. l48:;
  2041. { int yypos49= G->pos, yythunkpos49= G->thunkpos;
  2042. { int yypos51= G->pos, yythunkpos51= G->thunkpos; if (!yy_BlankLine(G)) { goto l51; } goto l49;
  2043. l51:; G->pos= yypos51; G->thunkpos= yythunkpos51;
  2044. } if (!yy_RawLine(G)) { goto l49; } goto l48;
  2045. l49:; G->pos= yypos49; G->thunkpos= yythunkpos49;
  2046. }
  2047. l52:;
  2048. { int yypos53= G->pos, yythunkpos53= G->thunkpos; if (!yy_BlankLine(G)) { goto l53; } goto l52;
  2049. l53:; G->pos= yypos53; G->thunkpos= yythunkpos53;
  2050. } goto l46;
  2051. l47:; G->pos= yypos46; G->thunkpos= yythunkpos46; if (!yy_BlankLine(G)) { goto l45; }
  2052. l54:;
  2053. { int yypos55= G->pos, yythunkpos55= G->thunkpos; if (!yy_BlankLine(G)) { goto l55; } goto l54;
  2054. l55:; G->pos= yypos55; G->thunkpos= yythunkpos55;
  2055. }
  2056. }
  2057. l46:;
  2058. yyprintf((stderr, " ok %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2059. return 1;
  2060. l45:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2061. yyprintf((stderr, " fail %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2062. return 0;
  2063. }
  2064. YY_RULE(int) yy_References(GREG *G)
  2065. {
  2066. yyprintf((stderr, "%s\n", "References"));
  2067. l57:;
  2068. { int yypos58= G->pos, yythunkpos58= G->thunkpos;
  2069. { int yypos59= G->pos, yythunkpos59= G->thunkpos; if (!yy_Reference(G)) { goto l60; } goto l59;
  2070. l60:; G->pos= yypos59; G->thunkpos= yythunkpos59; if (!yy_SkipBlock(G)) { goto l58; }
  2071. }
  2072. l59:; goto l57;
  2073. l58:; G->pos= yypos58; G->thunkpos= yythunkpos58;
  2074. }
  2075. yyprintf((stderr, " ok %s @ %s\n", "References", G->buf+G->pos));
  2076. return 1;
  2077. }
  2078. YY_RULE(int) yy_EmptyTitle(GREG *G)
  2079. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2080. yyprintf((stderr, "%s\n", "EmptyTitle")); if (!yymatchString(G, "")) goto l61;
  2081. yyprintf((stderr, " ok %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2082. return 1;
  2083. l61:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2084. yyprintf((stderr, " fail %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2085. return 0;
  2086. }
  2087. YY_RULE(int) yy_RefTitleParens(GREG *G)
  2088. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2089. yyprintf((stderr, "%s\n", "RefTitleParens")); if (!yy_Spnl(G)) { goto l62; } if (!yymatchChar(G, '(')) goto l62;
  2090. l63:;
  2091. { int yypos64= G->pos, yythunkpos64= G->thunkpos;
  2092. { int yypos65= G->pos, yythunkpos65= G->thunkpos;
  2093. { int yypos66= G->pos, yythunkpos66= G->thunkpos; if (!yymatchChar(G, ')')) goto l67; if (!yy_Sp(G)) { goto l67; } if (!yy_Newline(G)) { goto l67; } goto l66;
  2094. l67:; G->pos= yypos66; G->thunkpos= yythunkpos66; if (!yy_Newline(G)) { goto l65; }
  2095. }
  2096. l66:; goto l64;
  2097. l65:; G->pos= yypos65; G->thunkpos= yythunkpos65;
  2098. } if (!yymatchDot(G)) goto l64; goto l63;
  2099. l64:; G->pos= yypos64; G->thunkpos= yythunkpos64;
  2100. } if (!yymatchChar(G, ')')) goto l62;
  2101. yyprintf((stderr, " ok %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2102. return 1;
  2103. l62:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2104. yyprintf((stderr, " fail %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2105. return 0;
  2106. }
  2107. YY_RULE(int) yy_RefTitleDouble(GREG *G)
  2108. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2109. yyprintf((stderr, "%s\n", "RefTitleDouble")); if (!yy_Spnl(G)) { goto l68; } if (!yymatchChar(G, '"')) goto l68;
  2110. l69:;
  2111. { int yypos70= G->pos, yythunkpos70= G->thunkpos;
  2112. { int yypos71= G->pos, yythunkpos71= G->thunkpos;
  2113. { int yypos72= G->pos, yythunkpos72= G->thunkpos; if (!yymatchChar(G, '"')) goto l73; if (!yy_Sp(G)) { goto l73; } if (!yy_Newline(G)) { goto l73; } goto l72;
  2114. l73:; G->pos= yypos72; G->thunkpos= yythunkpos72; if (!yy_Newline(G)) { goto l71; }
  2115. }
  2116. l72:; goto l70;
  2117. l71:; G->pos= yypos71; G->thunkpos= yythunkpos71;
  2118. } if (!yymatchDot(G)) goto l70; goto l69;
  2119. l70:; G->pos= yypos70; G->thunkpos= yythunkpos70;
  2120. } if (!yymatchChar(G, '"')) goto l68;
  2121. yyprintf((stderr, " ok %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2122. return 1;
  2123. l68:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2124. yyprintf((stderr, " fail %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2125. return 0;
  2126. }
  2127. YY_RULE(int) yy_RefTitleSingle(GREG *G)
  2128. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2129. yyprintf((stderr, "%s\n", "RefTitleSingle")); if (!yy_Spnl(G)) { goto l74; } if (!yymatchChar(G, '\'')) goto l74;
  2130. l75:;
  2131. { int yypos76= G->pos, yythunkpos76= G->thunkpos;
  2132. { int yypos77= G->pos, yythunkpos77= G->thunkpos;
  2133. { int yypos78= G->pos, yythunkpos78= G->thunkpos; if (!yymatchChar(G, '\'')) goto l79; if (!yy_Sp(G)) { goto l79; } if (!yy_Newline(G)) { goto l79; } goto l78;
  2134. l79:; G->pos= yypos78; G->thunkpos= yythunkpos78; if (!yy_Newline(G)) { goto l77; }
  2135. }
  2136. l78:; goto l76;
  2137. l77:; G->pos= yypos77; G->thunkpos= yythunkpos77;
  2138. } if (!yymatchDot(G)) goto l76; goto l75;
  2139. l76:; G->pos= yypos76; G->thunkpos= yythunkpos76;
  2140. } if (!yymatchChar(G, '\'')) goto l74;
  2141. yyprintf((stderr, " ok %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2142. return 1;
  2143. l74:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2144. yyprintf((stderr, " fail %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2145. return 0;
  2146. }
  2147. YY_RULE(int) yy_RefTitle(GREG *G)
  2148. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2149. yyprintf((stderr, "%s\n", "RefTitle"));
  2150. { int yypos81= G->pos, yythunkpos81= G->thunkpos; if (!yy_RefTitleSingle(G)) { goto l82; } goto l81;
  2151. l82:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_RefTitleDouble(G)) { goto l83; } goto l81;
  2152. l83:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_RefTitleParens(G)) { goto l84; } goto l81;
  2153. l84:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_EmptyTitle(G)) { goto l80; }
  2154. }
  2155. l81:;
  2156. yyprintf((stderr, " ok %s @ %s\n", "RefTitle", G->buf+G->pos));
  2157. return 1;
  2158. l80:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2159. yyprintf((stderr, " fail %s @ %s\n", "RefTitle", G->buf+G->pos));
  2160. return 0;
  2161. }
  2162. YY_RULE(int) yy_RefSrc(GREG *G)
  2163. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2164. yyprintf((stderr, "%s\n", "RefSrc")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l85; if (!yy_Nonspacechar(G)) { goto l85; }
  2165. l86:;
  2166. { int yypos87= G->pos, yythunkpos87= G->thunkpos; if (!yy_Nonspacechar(G)) { goto l87; } goto l86;
  2167. l87:; G->pos= yypos87; G->thunkpos= yythunkpos87;
  2168. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l85; yyDo(G, yy_1_RefSrc, G->begin, G->end);
  2169. yyprintf((stderr, " ok %s @ %s\n", "RefSrc", G->buf+G->pos));
  2170. return 1;
  2171. l85:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2172. yyprintf((stderr, " fail %s @ %s\n", "RefSrc", G->buf+G->pos));
  2173. return 0;
  2174. }
  2175. YY_RULE(int) yy_AutoLinkEmail(GREG *G)
  2176. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2177. yyprintf((stderr, "%s\n", "AutoLinkEmail")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l88; if (!yy_LocMarker(G)) { goto l88; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '<')) goto l88;
  2178. { int yypos89= G->pos, yythunkpos89= G->thunkpos; if (!yymatchString(G, "mailto:")) goto l89; goto l90;
  2179. l89:; G->pos= yypos89; G->thunkpos= yythunkpos89;
  2180. }
  2181. l90:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l88; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\062\350\377\003\376\377\377\207\376\377\377\107\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l88;
  2182. l91:;
  2183. { int yypos92= G->pos, yythunkpos92= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\062\350\377\003\376\377\377\207\376\377\377\107\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l92; goto l91;
  2184. l92:; G->pos= yypos92; G->thunkpos= yythunkpos92;
  2185. } if (!yymatchChar(G, '@')) goto l88;
  2186. { int yypos95= G->pos, yythunkpos95= G->thunkpos; if (!yy_Newline(G)) { goto l95; } goto l88;
  2187. l95:; G->pos= yypos95; G->thunkpos= yythunkpos95;
  2188. }
  2189. { int yypos96= G->pos, yythunkpos96= G->thunkpos; if (!yymatchChar(G, '>')) goto l96; goto l88;
  2190. l96:; G->pos= yypos96; G->thunkpos= yythunkpos96;
  2191. } if (!yymatchDot(G)) goto l88;
  2192. l93:;
  2193. { int yypos94= G->pos, yythunkpos94= G->thunkpos;
  2194. { int yypos97= G->pos, yythunkpos97= G->thunkpos; if (!yy_Newline(G)) { goto l97; } goto l94;
  2195. l97:; G->pos= yypos97; G->thunkpos= yythunkpos97;
  2196. }
  2197. { int yypos98= G->pos, yythunkpos98= G->thunkpos; if (!yymatchChar(G, '>')) goto l98; goto l94;
  2198. l98:; G->pos= yypos98; G->thunkpos= yythunkpos98;
  2199. } if (!yymatchDot(G)) goto l94; goto l93;
  2200. l94:; G->pos= yypos94; G->thunkpos= yythunkpos94;
  2201. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l88; yyDo(G, yy_2_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '>')) goto l88; yyText(G, G->begin, G->end); if (!(YY_END)) goto l88; yyDo(G, yy_3_AutoLinkEmail, G->begin, G->end);
  2202. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkEmail", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2203. return 1;
  2204. l88:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2205. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkEmail", G->buf+G->pos));
  2206. return 0;
  2207. }
  2208. YY_RULE(int) yy_AutoLinkUrl(GREG *G)
  2209. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2210. yyprintf((stderr, "%s\n", "AutoLinkUrl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l99; if (!yy_LocMarker(G)) { goto l99; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '<')) goto l99; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l99; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l99;
  2211. l100:;
  2212. { int yypos101= G->pos, yythunkpos101= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l101; goto l100;
  2213. l101:; G->pos= yypos101; G->thunkpos= yythunkpos101;
  2214. } if (!yymatchString(G, "://")) goto l99;
  2215. { int yypos104= G->pos, yythunkpos104= G->thunkpos; if (!yy_Newline(G)) { goto l104; } goto l99;
  2216. l104:; G->pos= yypos104; G->thunkpos= yythunkpos104;
  2217. }
  2218. { int yypos105= G->pos, yythunkpos105= G->thunkpos; if (!yymatchChar(G, '>')) goto l105; goto l99;
  2219. l105:; G->pos= yypos105; G->thunkpos= yythunkpos105;
  2220. } if (!yymatchDot(G)) goto l99;
  2221. l102:;
  2222. { int yypos103= G->pos, yythunkpos103= G->thunkpos;
  2223. { int yypos106= G->pos, yythunkpos106= G->thunkpos; if (!yy_Newline(G)) { goto l106; } goto l103;
  2224. l106:; G->pos= yypos106; G->thunkpos= yythunkpos106;
  2225. }
  2226. { int yypos107= G->pos, yythunkpos107= G->thunkpos; if (!yymatchChar(G, '>')) goto l107; goto l103;
  2227. l107:; G->pos= yypos107; G->thunkpos= yythunkpos107;
  2228. } if (!yymatchDot(G)) goto l103; goto l102;
  2229. l103:; G->pos= yypos103; G->thunkpos= yythunkpos103;
  2230. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l99; yyDo(G, yy_2_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '>')) goto l99; yyText(G, G->begin, G->end); if (!(YY_END)) goto l99; yyDo(G, yy_3_AutoLinkUrl, G->begin, G->end);
  2231. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkUrl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2232. return 1;
  2233. l99:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2234. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkUrl", G->buf+G->pos));
  2235. return 0;
  2236. }
  2237. YY_RULE(int) yy_TitleDouble(GREG *G)
  2238. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2239. yyprintf((stderr, "%s\n", "TitleDouble")); if (!yymatchChar(G, '"')) goto l108;
  2240. l109:;
  2241. { int yypos110= G->pos, yythunkpos110= G->thunkpos;
  2242. { int yypos111= G->pos, yythunkpos111= G->thunkpos; if (!yymatchChar(G, '"')) goto l111; if (!yy_Sp(G)) { goto l111; }
  2243. { int yypos112= G->pos, yythunkpos112= G->thunkpos; if (!yymatchChar(G, ')')) goto l113; goto l112;
  2244. l113:; G->pos= yypos112; G->thunkpos= yythunkpos112; if (!yy_Newline(G)) { goto l111; }
  2245. }
  2246. l112:; goto l110;
  2247. l111:; G->pos= yypos111; G->thunkpos= yythunkpos111;
  2248. } if (!yymatchDot(G)) goto l110; goto l109;
  2249. l110:; G->pos= yypos110; G->thunkpos= yythunkpos110;
  2250. } if (!yymatchChar(G, '"')) goto l108;
  2251. yyprintf((stderr, " ok %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2252. return 1;
  2253. l108:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2254. yyprintf((stderr, " fail %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2255. return 0;
  2256. }
  2257. YY_RULE(int) yy_TitleSingle(GREG *G)
  2258. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2259. yyprintf((stderr, "%s\n", "TitleSingle")); if (!yymatchChar(G, '\'')) goto l114;
  2260. l115:;
  2261. { int yypos116= G->pos, yythunkpos116= G->thunkpos;
  2262. { int yypos117= G->pos, yythunkpos117= G->thunkpos; if (!yymatchChar(G, '\'')) goto l117; if (!yy_Sp(G)) { goto l117; }
  2263. { int yypos118= G->pos, yythunkpos118= G->thunkpos; if (!yymatchChar(G, ')')) goto l119; goto l118;
  2264. l119:; G->pos= yypos118; G->thunkpos= yythunkpos118; if (!yy_Newline(G)) { goto l117; }
  2265. }
  2266. l118:; goto l116;
  2267. l117:; G->pos= yypos117; G->thunkpos= yythunkpos117;
  2268. } if (!yymatchDot(G)) goto l116; goto l115;
  2269. l116:; G->pos= yypos116; G->thunkpos= yythunkpos116;
  2270. } if (!yymatchChar(G, '\'')) goto l114;
  2271. yyprintf((stderr, " ok %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2272. return 1;
  2273. l114:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2274. yyprintf((stderr, " fail %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2275. return 0;
  2276. }
  2277. YY_RULE(int) yy_Nonspacechar(GREG *G)
  2278. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2279. yyprintf((stderr, "%s\n", "Nonspacechar"));
  2280. { int yypos121= G->pos, yythunkpos121= G->thunkpos; if (!yy_Spacechar(G)) { goto l121; } goto l120;
  2281. l121:; G->pos= yypos121; G->thunkpos= yythunkpos121;
  2282. }
  2283. { int yypos122= G->pos, yythunkpos122= G->thunkpos; if (!yy_Newline(G)) { goto l122; } goto l120;
  2284. l122:; G->pos= yypos122; G->thunkpos= yythunkpos122;
  2285. } if (!yymatchDot(G)) goto l120;
  2286. yyprintf((stderr, " ok %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  2287. return 1;
  2288. l120:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2289. yyprintf((stderr, " fail %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  2290. return 0;
  2291. }
  2292. YY_RULE(int) yy_SourceContents(GREG *G)
  2293. {
  2294. yyprintf((stderr, "%s\n", "SourceContents"));
  2295. l124:;
  2296. { int yypos125= G->pos, yythunkpos125= G->thunkpos;
  2297. { int yypos126= G->pos, yythunkpos126= G->thunkpos;
  2298. { int yypos130= G->pos, yythunkpos130= G->thunkpos; if (!yymatchChar(G, '(')) goto l130; goto l127;
  2299. l130:; G->pos= yypos130; G->thunkpos= yythunkpos130;
  2300. }
  2301. { int yypos131= G->pos, yythunkpos131= G->thunkpos; if (!yymatchChar(G, ')')) goto l131; goto l127;
  2302. l131:; G->pos= yypos131; G->thunkpos= yythunkpos131;
  2303. }
  2304. { int yypos132= G->pos, yythunkpos132= G->thunkpos; if (!yymatchChar(G, '>')) goto l132; goto l127;
  2305. l132:; G->pos= yypos132; G->thunkpos= yythunkpos132;
  2306. } if (!yy_Nonspacechar(G)) { goto l127; }
  2307. l128:;
  2308. { int yypos129= G->pos, yythunkpos129= G->thunkpos;
  2309. { int yypos133= G->pos, yythunkpos133= G->thunkpos; if (!yymatchChar(G, '(')) goto l133; goto l129;
  2310. l133:; G->pos= yypos133; G->thunkpos= yythunkpos133;
  2311. }
  2312. { int yypos134= G->pos, yythunkpos134= G->thunkpos; if (!yymatchChar(G, ')')) goto l134; goto l129;
  2313. l134:; G->pos= yypos134; G->thunkpos= yythunkpos134;
  2314. }
  2315. { int yypos135= G->pos, yythunkpos135= G->thunkpos; if (!yymatchChar(G, '>')) goto l135; goto l129;
  2316. l135:; G->pos= yypos135; G->thunkpos= yythunkpos135;
  2317. } if (!yy_Nonspacechar(G)) { goto l129; } goto l128;
  2318. l129:; G->pos= yypos129; G->thunkpos= yythunkpos129;
  2319. } goto l126;
  2320. l127:; G->pos= yypos126; G->thunkpos= yythunkpos126; if (!yymatchChar(G, '(')) goto l125; if (!yy_SourceContents(G)) { goto l125; } if (!yymatchChar(G, ')')) goto l125;
  2321. }
  2322. l126:; goto l124;
  2323. l125:; G->pos= yypos125; G->thunkpos= yythunkpos125;
  2324. }
  2325. yyprintf((stderr, " ok %s @ %s\n", "SourceContents", G->buf+G->pos));
  2326. return 1;
  2327. }
  2328. YY_RULE(int) yy_Title(GREG *G)
  2329. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2330. yyprintf((stderr, "%s\n", "Title"));
  2331. { int yypos137= G->pos, yythunkpos137= G->thunkpos; if (!yy_TitleSingle(G)) { goto l138; } goto l137;
  2332. l138:; G->pos= yypos137; G->thunkpos= yythunkpos137; if (!yy_TitleDouble(G)) { goto l139; } goto l137;
  2333. l139:; G->pos= yypos137; G->thunkpos= yythunkpos137; if (!yymatchString(G, "")) goto l136;
  2334. }
  2335. l137:;
  2336. yyprintf((stderr, " ok %s @ %s\n", "Title", G->buf+G->pos));
  2337. return 1;
  2338. l136:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2339. yyprintf((stderr, " fail %s @ %s\n", "Title", G->buf+G->pos));
  2340. return 0;
  2341. }
  2342. YY_RULE(int) yy_Source(GREG *G)
  2343. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2344. yyprintf((stderr, "%s\n", "Source")); yyDo(G, yy_1_Source, G->begin, G->end);
  2345. { int yypos141= G->pos, yythunkpos141= G->thunkpos; if (!yymatchChar(G, '<')) goto l142; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l142; if (!yy_SourceContents(G)) { goto l142; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l142; yyDo(G, yy_2_Source, G->begin, G->end); if (!yymatchChar(G, '>')) goto l142; goto l141;
  2346. l142:; G->pos= yypos141; G->thunkpos= yythunkpos141; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l140; if (!yy_SourceContents(G)) { goto l140; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l140; yyDo(G, yy_3_Source, G->begin, G->end);
  2347. }
  2348. l141:;
  2349. yyprintf((stderr, " ok %s @ %s\n", "Source", G->buf+G->pos));
  2350. return 1;
  2351. l140:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2352. yyprintf((stderr, " fail %s @ %s\n", "Source", G->buf+G->pos));
  2353. return 0;
  2354. }
  2355. YY_RULE(int) yy_Label(GREG *G)
  2356. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2357. yyprintf((stderr, "%s\n", "Label")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l143; if (!yy_LocMarker(G)) { goto l143; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '[')) goto l143;
  2358. { int yypos144= G->pos, yythunkpos144= G->thunkpos;
  2359. { int yypos146= G->pos, yythunkpos146= G->thunkpos; if (!yymatchChar(G, '^')) goto l146; goto l145;
  2360. l146:; G->pos= yypos146; G->thunkpos= yythunkpos146;
  2361. } yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l145; goto l144;
  2362. l145:; G->pos= yypos144; G->thunkpos= yythunkpos144;
  2363. { int yypos147= G->pos, yythunkpos147= G->thunkpos; if (!yymatchDot(G)) goto l143; G->pos= yypos147; G->thunkpos= yythunkpos147;
  2364. } yyText(G, G->begin, G->end); if (!( !EXT(pmh_EXT_NOTES) )) goto l143;
  2365. }
  2366. l144:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l143;
  2367. l148:;
  2368. { int yypos149= G->pos, yythunkpos149= G->thunkpos;
  2369. { int yypos150= G->pos, yythunkpos150= G->thunkpos; if (!yymatchChar(G, ']')) goto l150; goto l149;
  2370. l150:; G->pos= yypos150; G->thunkpos= yythunkpos150;
  2371. } if (!yy_Inline(G)) { goto l149; } goto l148;
  2372. l149:; G->pos= yypos149; G->thunkpos= yythunkpos149;
  2373. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l143; yyDo(G, yy_1_Label, G->begin, G->end); if (!yymatchChar(G, ']')) goto l143; yyText(G, G->begin, G->end); if (!(YY_END)) goto l143; yyDo(G, yy_2_Label, G->begin, G->end);
  2374. yyprintf((stderr, " ok %s @ %s\n", "Label", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2375. return 1;
  2376. l143:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2377. yyprintf((stderr, " fail %s @ %s\n", "Label", G->buf+G->pos));
  2378. return 0;
  2379. }
  2380. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G)
  2381. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2382. yyprintf((stderr, "%s\n", "ReferenceLinkSingle")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l151; if (!yy_Label(G)) { goto l151; } yyDo(G, yySet, -1, 0);
  2383. { int yypos152= G->pos, yythunkpos152= G->thunkpos; if (!yy_Spnl(G)) { goto l152; } if (!yymatchString(G, "[]")) goto l152; goto l153;
  2384. l152:; G->pos= yypos152; G->thunkpos= yythunkpos152;
  2385. }
  2386. l153:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l151; yyDo(G, yy_1_ReferenceLinkSingle, G->begin, G->end);
  2387. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2388. return 1;
  2389. l151:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2390. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos));
  2391. return 0;
  2392. }
  2393. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G)
  2394. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2395. yyprintf((stderr, "%s\n", "ReferenceLinkDouble")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l154; if (!yy_Label(G)) { goto l154; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l154; }
  2396. { int yypos155= G->pos, yythunkpos155= G->thunkpos; if (!yymatchString(G, "[]")) goto l155; goto l154;
  2397. l155:; G->pos= yypos155; G->thunkpos= yythunkpos155;
  2398. } if (!yy_Label(G)) { goto l154; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_END)) goto l154; yyDo(G, yy_1_ReferenceLinkDouble, G->begin, G->end);
  2399. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2400. return 1;
  2401. l154:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2402. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos));
  2403. return 0;
  2404. }
  2405. YY_RULE(int) yy_AutoLink(GREG *G)
  2406. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2407. yyprintf((stderr, "%s\n", "AutoLink"));
  2408. { int yypos157= G->pos, yythunkpos157= G->thunkpos; if (!yy_AutoLinkUrl(G)) { goto l158; } goto l157;
  2409. l158:; G->pos= yypos157; G->thunkpos= yythunkpos157; if (!yy_AutoLinkEmail(G)) { goto l156; }
  2410. }
  2411. l157:;
  2412. yyprintf((stderr, " ok %s @ %s\n", "AutoLink", G->buf+G->pos));
  2413. return 1;
  2414. l156:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2415. yyprintf((stderr, " fail %s @ %s\n", "AutoLink", G->buf+G->pos));
  2416. return 0;
  2417. }
  2418. YY_RULE(int) yy_ReferenceLink(GREG *G)
  2419. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2420. yyprintf((stderr, "%s\n", "ReferenceLink"));
  2421. { int yypos160= G->pos, yythunkpos160= G->thunkpos; if (!yy_ReferenceLinkDouble(G)) { goto l161; } goto l160;
  2422. l161:; G->pos= yypos160; G->thunkpos= yythunkpos160; if (!yy_ReferenceLinkSingle(G)) { goto l159; }
  2423. }
  2424. l160:;
  2425. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2426. return 1;
  2427. l159:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2428. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2429. return 0;
  2430. }
  2431. YY_RULE(int) yy_ExplicitLink(GREG *G)
  2432. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2433. yyprintf((stderr, "%s\n", "ExplicitLink")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l162; if (!yy_Label(G)) { goto l162; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l162; } if (!yymatchChar(G, '(')) goto l162; if (!yy_Sp(G)) { goto l162; } if (!yy_Source(G)) { goto l162; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l162; } if (!yy_Title(G)) { goto l162; } if (!yy_Sp(G)) { goto l162; } if (!yymatchChar(G, ')')) goto l162; yyText(G, G->begin, G->end); if (!(YY_END)) goto l162; yyDo(G, yy_1_ExplicitLink, G->begin, G->end);
  2434. yyprintf((stderr, " ok %s @ %s\n", "ExplicitLink", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2435. return 1;
  2436. l162:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2437. yyprintf((stderr, " fail %s @ %s\n", "ExplicitLink", G->buf+G->pos));
  2438. return 0;
  2439. }
  2440. YY_RULE(int) yy_StrongUl(GREG *G)
  2441. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2442. yyprintf((stderr, "%s\n", "StrongUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l163; if (!yy_LocMarker(G)) { goto l163; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "__")) goto l163;
  2443. { int yypos164= G->pos, yythunkpos164= G->thunkpos; if (!yy_Whitespace(G)) { goto l164; } goto l163;
  2444. l164:; G->pos= yypos164; G->thunkpos= yythunkpos164;
  2445. }
  2446. { int yypos167= G->pos, yythunkpos167= G->thunkpos; if (!yymatchString(G, "__")) goto l167; goto l163;
  2447. l167:; G->pos= yypos167; G->thunkpos= yythunkpos167;
  2448. } if (!yy_Inline(G)) { goto l163; }
  2449. l165:;
  2450. { int yypos166= G->pos, yythunkpos166= G->thunkpos;
  2451. { int yypos168= G->pos, yythunkpos168= G->thunkpos; if (!yymatchString(G, "__")) goto l168; goto l166;
  2452. l168:; G->pos= yypos168; G->thunkpos= yythunkpos168;
  2453. } if (!yy_Inline(G)) { goto l166; } goto l165;
  2454. l166:; G->pos= yypos166; G->thunkpos= yythunkpos166;
  2455. } if (!yymatchString(G, "__")) goto l163; yyText(G, G->begin, G->end); if (!(YY_END)) goto l163; yyDo(G, yy_1_StrongUl, G->begin, G->end);
  2456. yyprintf((stderr, " ok %s @ %s\n", "StrongUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2457. return 1;
  2458. l163:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2459. yyprintf((stderr, " fail %s @ %s\n", "StrongUl", G->buf+G->pos));
  2460. return 0;
  2461. }
  2462. YY_RULE(int) yy_StrongStar(GREG *G)
  2463. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2464. yyprintf((stderr, "%s\n", "StrongStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l169; if (!yy_LocMarker(G)) { goto l169; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "**")) goto l169;
  2465. { int yypos170= G->pos, yythunkpos170= G->thunkpos; if (!yy_Whitespace(G)) { goto l170; } goto l169;
  2466. l170:; G->pos= yypos170; G->thunkpos= yythunkpos170;
  2467. }
  2468. { int yypos173= G->pos, yythunkpos173= G->thunkpos; if (!yymatchString(G, "**")) goto l173; goto l169;
  2469. l173:; G->pos= yypos173; G->thunkpos= yythunkpos173;
  2470. } if (!yy_Inline(G)) { goto l169; }
  2471. l171:;
  2472. { int yypos172= G->pos, yythunkpos172= G->thunkpos;
  2473. { int yypos174= G->pos, yythunkpos174= G->thunkpos; if (!yymatchString(G, "**")) goto l174; goto l172;
  2474. l174:; G->pos= yypos174; G->thunkpos= yythunkpos174;
  2475. } if (!yy_Inline(G)) { goto l172; } goto l171;
  2476. l172:; G->pos= yypos172; G->thunkpos= yythunkpos172;
  2477. } if (!yymatchString(G, "**")) goto l169; yyText(G, G->begin, G->end); if (!(YY_END)) goto l169; yyDo(G, yy_1_StrongStar, G->begin, G->end);
  2478. yyprintf((stderr, " ok %s @ %s\n", "StrongStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2479. return 1;
  2480. l169:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2481. yyprintf((stderr, " fail %s @ %s\n", "StrongStar", G->buf+G->pos));
  2482. return 0;
  2483. }
  2484. YY_RULE(int) yy_Whitespace(GREG *G)
  2485. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2486. yyprintf((stderr, "%s\n", "Whitespace"));
  2487. { int yypos176= G->pos, yythunkpos176= G->thunkpos; if (!yy_Spacechar(G)) { goto l177; } goto l176;
  2488. l177:; G->pos= yypos176; G->thunkpos= yythunkpos176; if (!yy_Newline(G)) { goto l175; }
  2489. }
  2490. l176:;
  2491. yyprintf((stderr, " ok %s @ %s\n", "Whitespace", G->buf+G->pos));
  2492. return 1;
  2493. l175:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2494. yyprintf((stderr, " fail %s @ %s\n", "Whitespace", G->buf+G->pos));
  2495. return 0;
  2496. }
  2497. YY_RULE(int) yy_EmphUl(GREG *G)
  2498. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2499. yyprintf((stderr, "%s\n", "EmphUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l178; if (!yy_LocMarker(G)) { goto l178; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '_')) goto l178;
  2500. { int yypos179= G->pos, yythunkpos179= G->thunkpos; if (!yy_Whitespace(G)) { goto l179; } goto l178;
  2501. l179:; G->pos= yypos179; G->thunkpos= yythunkpos179;
  2502. }
  2503. { int yypos182= G->pos, yythunkpos182= G->thunkpos;
  2504. { int yypos184= G->pos, yythunkpos184= G->thunkpos; if (!yymatchChar(G, '_')) goto l184; goto l183;
  2505. l184:; G->pos= yypos184; G->thunkpos= yythunkpos184;
  2506. } if (!yy_Inline(G)) { goto l183; } goto l182;
  2507. l183:; G->pos= yypos182; G->thunkpos= yythunkpos182; if (!yy_StrongUl(G)) { goto l178; }
  2508. }
  2509. l182:;
  2510. l180:;
  2511. { int yypos181= G->pos, yythunkpos181= G->thunkpos;
  2512. { int yypos185= G->pos, yythunkpos185= G->thunkpos;
  2513. { int yypos187= G->pos, yythunkpos187= G->thunkpos; if (!yymatchChar(G, '_')) goto l187; goto l186;
  2514. l187:; G->pos= yypos187; G->thunkpos= yythunkpos187;
  2515. } if (!yy_Inline(G)) { goto l186; } goto l185;
  2516. l186:; G->pos= yypos185; G->thunkpos= yythunkpos185; if (!yy_StrongUl(G)) { goto l181; }
  2517. }
  2518. l185:; goto l180;
  2519. l181:; G->pos= yypos181; G->thunkpos= yythunkpos181;
  2520. } if (!yymatchChar(G, '_')) goto l178; yyText(G, G->begin, G->end); if (!(YY_END)) goto l178; yyDo(G, yy_1_EmphUl, G->begin, G->end);
  2521. yyprintf((stderr, " ok %s @ %s\n", "EmphUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2522. return 1;
  2523. l178:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2524. yyprintf((stderr, " fail %s @ %s\n", "EmphUl", G->buf+G->pos));
  2525. return 0;
  2526. }
  2527. YY_RULE(int) yy_EmphStar(GREG *G)
  2528. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2529. yyprintf((stderr, "%s\n", "EmphStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l188; if (!yy_LocMarker(G)) { goto l188; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '*')) goto l188;
  2530. { int yypos189= G->pos, yythunkpos189= G->thunkpos; if (!yy_Whitespace(G)) { goto l189; } goto l188;
  2531. l189:; G->pos= yypos189; G->thunkpos= yythunkpos189;
  2532. }
  2533. { int yypos192= G->pos, yythunkpos192= G->thunkpos;
  2534. { int yypos194= G->pos, yythunkpos194= G->thunkpos; if (!yymatchChar(G, '*')) goto l194; goto l193;
  2535. l194:; G->pos= yypos194; G->thunkpos= yythunkpos194;
  2536. } if (!yy_Inline(G)) { goto l193; } goto l192;
  2537. l193:; G->pos= yypos192; G->thunkpos= yythunkpos192; if (!yy_StrongStar(G)) { goto l188; }
  2538. }
  2539. l192:;
  2540. l190:;
  2541. { int yypos191= G->pos, yythunkpos191= G->thunkpos;
  2542. { int yypos195= G->pos, yythunkpos195= G->thunkpos;
  2543. { int yypos197= G->pos, yythunkpos197= G->thunkpos; if (!yymatchChar(G, '*')) goto l197; goto l196;
  2544. l197:; G->pos= yypos197; G->thunkpos= yythunkpos197;
  2545. } if (!yy_Inline(G)) { goto l196; } goto l195;
  2546. l196:; G->pos= yypos195; G->thunkpos= yythunkpos195; if (!yy_StrongStar(G)) { goto l191; }
  2547. }
  2548. l195:; goto l190;
  2549. l191:; G->pos= yypos191; G->thunkpos= yythunkpos191;
  2550. } if (!yymatchChar(G, '*')) goto l188; yyText(G, G->begin, G->end); if (!(YY_END)) goto l188; yyDo(G, yy_1_EmphStar, G->begin, G->end);
  2551. yyprintf((stderr, " ok %s @ %s\n", "EmphStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2552. return 1;
  2553. l188:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2554. yyprintf((stderr, " fail %s @ %s\n", "EmphStar", G->buf+G->pos));
  2555. return 0;
  2556. }
  2557. YY_RULE(int) yy_StarLine(GREG *G)
  2558. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2559. yyprintf((stderr, "%s\n", "StarLine"));
  2560. { int yypos199= G->pos, yythunkpos199= G->thunkpos; if (!yymatchString(G, "****")) goto l200;
  2561. l201:;
  2562. { int yypos202= G->pos, yythunkpos202= G->thunkpos; if (!yymatchChar(G, '*')) goto l202; goto l201;
  2563. l202:; G->pos= yypos202; G->thunkpos= yythunkpos202;
  2564. } goto l199;
  2565. l200:; G->pos= yypos199; G->thunkpos= yythunkpos199; if (!yy_Spacechar(G)) { goto l198; } if (!yymatchChar(G, '*')) goto l198;
  2566. l203:;
  2567. { int yypos204= G->pos, yythunkpos204= G->thunkpos; if (!yymatchChar(G, '*')) goto l204; goto l203;
  2568. l204:; G->pos= yypos204; G->thunkpos= yythunkpos204;
  2569. }
  2570. { int yypos205= G->pos, yythunkpos205= G->thunkpos; if (!yy_Spacechar(G)) { goto l198; } G->pos= yypos205; G->thunkpos= yythunkpos205;
  2571. }
  2572. }
  2573. l199:;
  2574. yyprintf((stderr, " ok %s @ %s\n", "StarLine", G->buf+G->pos));
  2575. return 1;
  2576. l198:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2577. yyprintf((stderr, " fail %s @ %s\n", "StarLine", G->buf+G->pos));
  2578. return 0;
  2579. }
  2580. YY_RULE(int) yy_UlLine(GREG *G)
  2581. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2582. yyprintf((stderr, "%s\n", "UlLine"));
  2583. { int yypos207= G->pos, yythunkpos207= G->thunkpos; if (!yymatchString(G, "____")) goto l208;
  2584. l209:;
  2585. { int yypos210= G->pos, yythunkpos210= G->thunkpos; if (!yymatchChar(G, '_')) goto l210; goto l209;
  2586. l210:; G->pos= yypos210; G->thunkpos= yythunkpos210;
  2587. } goto l207;
  2588. l208:; G->pos= yypos207; G->thunkpos= yythunkpos207; if (!yy_Spacechar(G)) { goto l206; } if (!yymatchChar(G, '_')) goto l206;
  2589. l211:;
  2590. { int yypos212= G->pos, yythunkpos212= G->thunkpos; if (!yymatchChar(G, '_')) goto l212; goto l211;
  2591. l212:; G->pos= yypos212; G->thunkpos= yythunkpos212;
  2592. }
  2593. { int yypos213= G->pos, yythunkpos213= G->thunkpos; if (!yy_Spacechar(G)) { goto l206; } G->pos= yypos213; G->thunkpos= yythunkpos213;
  2594. }
  2595. }
  2596. l207:;
  2597. yyprintf((stderr, " ok %s @ %s\n", "UlLine", G->buf+G->pos));
  2598. return 1;
  2599. l206:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2600. yyprintf((stderr, " fail %s @ %s\n", "UlLine", G->buf+G->pos));
  2601. return 0;
  2602. }
  2603. YY_RULE(int) yy_SpecialChar(GREG *G)
  2604. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2605. yyprintf((stderr, "%s\n", "SpecialChar"));
  2606. { int yypos215= G->pos, yythunkpos215= G->thunkpos; if (!yymatchChar(G, '~')) goto l216; goto l215;
  2607. l216:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '*')) goto l217; goto l215;
  2608. l217:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '_')) goto l218; goto l215;
  2609. l218:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '`')) goto l219; goto l215;
  2610. l219:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '&')) goto l220; goto l215;
  2611. l220:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '[')) goto l221; goto l215;
  2612. l221:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, ']')) goto l222; goto l215;
  2613. l222:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '(')) goto l223; goto l215;
  2614. l223:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, ')')) goto l224; goto l215;
  2615. l224:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '<')) goto l225; goto l215;
  2616. l225:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '!')) goto l226; goto l215;
  2617. l226:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '#')) goto l227; goto l215;
  2618. l227:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '\\')) goto l228; goto l215;
  2619. l228:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '\'')) goto l229; goto l215;
  2620. l229:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '"')) goto l230; goto l215;
  2621. l230:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yy_ExtendedSpecialChar(G)) { goto l214; }
  2622. }
  2623. l215:;
  2624. yyprintf((stderr, " ok %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2625. return 1;
  2626. l214:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2627. yyprintf((stderr, " fail %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2628. return 0;
  2629. }
  2630. YY_RULE(int) yy_Eof(GREG *G)
  2631. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2632. yyprintf((stderr, "%s\n", "Eof"));
  2633. { int yypos232= G->pos, yythunkpos232= G->thunkpos; if (!yymatchDot(G)) goto l232; goto l231;
  2634. l232:; G->pos= yypos232; G->thunkpos= yythunkpos232;
  2635. }
  2636. yyprintf((stderr, " ok %s @ %s\n", "Eof", G->buf+G->pos));
  2637. return 1;
  2638. l231:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2639. yyprintf((stderr, " fail %s @ %s\n", "Eof", G->buf+G->pos));
  2640. return 0;
  2641. }
  2642. YY_RULE(int) yy_NormalEndline(GREG *G)
  2643. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2644. yyprintf((stderr, "%s\n", "NormalEndline")); if (!yy_Sp(G)) { goto l233; } if (!yy_Newline(G)) { goto l233; }
  2645. { int yypos234= G->pos, yythunkpos234= G->thunkpos; if (!yy_BlankLine(G)) { goto l234; } goto l233;
  2646. l234:; G->pos= yypos234; G->thunkpos= yythunkpos234;
  2647. }
  2648. { int yypos235= G->pos, yythunkpos235= G->thunkpos; if (!yymatchChar(G, '>')) goto l235; goto l233;
  2649. l235:; G->pos= yypos235; G->thunkpos= yythunkpos235;
  2650. }
  2651. { int yypos236= G->pos, yythunkpos236= G->thunkpos; if (!yy_AtxStart(G)) { goto l236; } goto l233;
  2652. l236:; G->pos= yypos236; G->thunkpos= yythunkpos236;
  2653. }
  2654. { int yypos237= G->pos, yythunkpos237= G->thunkpos; if (!yy_Line(G)) { goto l237; }
  2655. { int yypos238= G->pos, yythunkpos238= G->thunkpos; if (!yymatchChar(G, '=')) goto l239;
  2656. l240:;
  2657. { int yypos241= G->pos, yythunkpos241= G->thunkpos; if (!yymatchChar(G, '=')) goto l241; goto l240;
  2658. l241:; G->pos= yypos241; G->thunkpos= yythunkpos241;
  2659. } goto l238;
  2660. l239:; G->pos= yypos238; G->thunkpos= yythunkpos238; if (!yymatchChar(G, '-')) goto l237;
  2661. l242:;
  2662. { int yypos243= G->pos, yythunkpos243= G->thunkpos; if (!yymatchChar(G, '-')) goto l243; goto l242;
  2663. l243:; G->pos= yypos243; G->thunkpos= yythunkpos243;
  2664. }
  2665. }
  2666. l238:; if (!yy_Newline(G)) { goto l237; } goto l233;
  2667. l237:; G->pos= yypos237; G->thunkpos= yythunkpos237;
  2668. }
  2669. yyprintf((stderr, " ok %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2670. return 1;
  2671. l233:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2672. yyprintf((stderr, " fail %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2673. return 0;
  2674. }
  2675. YY_RULE(int) yy_TerminalEndline(GREG *G)
  2676. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2677. yyprintf((stderr, "%s\n", "TerminalEndline")); if (!yy_Sp(G)) { goto l244; } if (!yy_Newline(G)) { goto l244; } if (!yy_Eof(G)) { goto l244; }
  2678. yyprintf((stderr, " ok %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2679. return 1;
  2680. l244:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2681. yyprintf((stderr, " fail %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2682. return 0;
  2683. }
  2684. YY_RULE(int) yy_LineBreak(GREG *G)
  2685. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2686. yyprintf((stderr, "%s\n", "LineBreak")); if (!yymatchString(G, " ")) goto l245; if (!yy_NormalEndline(G)) { goto l245; }
  2687. yyprintf((stderr, " ok %s @ %s\n", "LineBreak", G->buf+G->pos));
  2688. return 1;
  2689. l245:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2690. yyprintf((stderr, " fail %s @ %s\n", "LineBreak", G->buf+G->pos));
  2691. return 0;
  2692. }
  2693. YY_RULE(int) yy_CharEntity(GREG *G)
  2694. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2695. yyprintf((stderr, "%s\n", "CharEntity")); if (!yymatchChar(G, '&')) goto l246; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l246;
  2696. l247:;
  2697. { int yypos248= G->pos, yythunkpos248= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l248; goto l247;
  2698. l248:; G->pos= yypos248; G->thunkpos= yythunkpos248;
  2699. } if (!yymatchChar(G, ';')) goto l246;
  2700. yyprintf((stderr, " ok %s @ %s\n", "CharEntity", G->buf+G->pos));
  2701. return 1;
  2702. l246:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2703. yyprintf((stderr, " fail %s @ %s\n", "CharEntity", G->buf+G->pos));
  2704. return 0;
  2705. }
  2706. YY_RULE(int) yy_DecEntity(GREG *G)
  2707. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2708. yyprintf((stderr, "%s\n", "DecEntity")); if (!yymatchChar(G, '&')) goto l249; if (!yymatchChar(G, '#')) goto l249; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l249;
  2709. l250:;
  2710. { int yypos251= G->pos, yythunkpos251= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l251; goto l250;
  2711. l251:; G->pos= yypos251; G->thunkpos= yythunkpos251;
  2712. } if (!yymatchChar(G, ';')) goto l249;
  2713. yyprintf((stderr, " ok %s @ %s\n", "DecEntity", G->buf+G->pos));
  2714. return 1;
  2715. l249:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2716. yyprintf((stderr, " fail %s @ %s\n", "DecEntity", G->buf+G->pos));
  2717. return 0;
  2718. }
  2719. YY_RULE(int) yy_HexEntity(GREG *G)
  2720. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2721. yyprintf((stderr, "%s\n", "HexEntity")); if (!yymatchChar(G, '&')) goto l252; if (!yymatchChar(G, '#')) goto l252; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l252; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\176\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l252;
  2722. l253:;
  2723. { int yypos254= G->pos, yythunkpos254= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\176\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l254; goto l253;
  2724. l254:; G->pos= yypos254; G->thunkpos= yythunkpos254;
  2725. } if (!yymatchChar(G, ';')) goto l252;
  2726. yyprintf((stderr, " ok %s @ %s\n", "HexEntity", G->buf+G->pos));
  2727. return 1;
  2728. l252:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2729. yyprintf((stderr, " fail %s @ %s\n", "HexEntity", G->buf+G->pos));
  2730. return 0;
  2731. }
  2732. YY_RULE(int) yy_Alphanumeric(GREG *G)
  2733. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2734. yyprintf((stderr, "%s\n", "Alphanumeric"));
  2735. { int yypos256= G->pos, yythunkpos256= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l257; goto l256;
  2736. l257:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\200")) goto l258; goto l256;
  2737. l258:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\201")) goto l259; goto l256;
  2738. l259:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\202")) goto l260; goto l256;
  2739. l260:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\203")) goto l261; goto l256;
  2740. l261:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\204")) goto l262; goto l256;
  2741. l262:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\205")) goto l263; goto l256;
  2742. l263:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\206")) goto l264; goto l256;
  2743. l264:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\207")) goto l265; goto l256;
  2744. l265:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\210")) goto l266; goto l256;
  2745. l266:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\211")) goto l267; goto l256;
  2746. l267:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\212")) goto l268; goto l256;
  2747. l268:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\213")) goto l269; goto l256;
  2748. l269:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\214")) goto l270; goto l256;
  2749. l270:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\215")) goto l271; goto l256;
  2750. l271:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\216")) goto l272; goto l256;
  2751. l272:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\217")) goto l273; goto l256;
  2752. l273:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\220")) goto l274; goto l256;
  2753. l274:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\221")) goto l275; goto l256;
  2754. l275:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\222")) goto l276; goto l256;
  2755. l276:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\223")) goto l277; goto l256;
  2756. l277:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\224")) goto l278; goto l256;
  2757. l278:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\225")) goto l279; goto l256;
  2758. l279:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\226")) goto l280; goto l256;
  2759. l280:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\227")) goto l281; goto l256;
  2760. l281:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\230")) goto l282; goto l256;
  2761. l282:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\231")) goto l283; goto l256;
  2762. l283:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\232")) goto l284; goto l256;
  2763. l284:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\233")) goto l285; goto l256;
  2764. l285:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\234")) goto l286; goto l256;
  2765. l286:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\235")) goto l287; goto l256;
  2766. l287:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\236")) goto l288; goto l256;
  2767. l288:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\237")) goto l289; goto l256;
  2768. l289:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\240")) goto l290; goto l256;
  2769. l290:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\241")) goto l291; goto l256;
  2770. l291:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\242")) goto l292; goto l256;
  2771. l292:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\243")) goto l293; goto l256;
  2772. l293:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\244")) goto l294; goto l256;
  2773. l294:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\245")) goto l295; goto l256;
  2774. l295:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\246")) goto l296; goto l256;
  2775. l296:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\247")) goto l297; goto l256;
  2776. l297:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\250")) goto l298; goto l256;
  2777. l298:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\251")) goto l299; goto l256;
  2778. l299:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\252")) goto l300; goto l256;
  2779. l300:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\253")) goto l301; goto l256;
  2780. l301:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\254")) goto l302; goto l256;
  2781. l302:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\255")) goto l303; goto l256;
  2782. l303:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\256")) goto l304; goto l256;
  2783. l304:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\257")) goto l305; goto l256;
  2784. l305:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\260")) goto l306; goto l256;
  2785. l306:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\261")) goto l307; goto l256;
  2786. l307:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\262")) goto l308; goto l256;
  2787. l308:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\263")) goto l309; goto l256;
  2788. l309:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\264")) goto l310; goto l256;
  2789. l310:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\265")) goto l311; goto l256;
  2790. l311:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\266")) goto l312; goto l256;
  2791. l312:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\267")) goto l313; goto l256;
  2792. l313:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\270")) goto l314; goto l256;
  2793. l314:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\271")) goto l315; goto l256;
  2794. l315:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\272")) goto l316; goto l256;
  2795. l316:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\273")) goto l317; goto l256;
  2796. l317:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\274")) goto l318; goto l256;
  2797. l318:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\275")) goto l319; goto l256;
  2798. l319:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\276")) goto l320; goto l256;
  2799. l320:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\277")) goto l321; goto l256;
  2800. l321:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\300")) goto l322; goto l256;
  2801. l322:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\301")) goto l323; goto l256;
  2802. l323:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\302")) goto l324; goto l256;
  2803. l324:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\303")) goto l325; goto l256;
  2804. l325:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\304")) goto l326; goto l256;
  2805. l326:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\305")) goto l327; goto l256;
  2806. l327:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\306")) goto l328; goto l256;
  2807. l328:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\307")) goto l329; goto l256;
  2808. l329:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\310")) goto l330; goto l256;
  2809. l330:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\311")) goto l331; goto l256;
  2810. l331:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\312")) goto l332; goto l256;
  2811. l332:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\313")) goto l333; goto l256;
  2812. l333:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\314")) goto l334; goto l256;
  2813. l334:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\315")) goto l335; goto l256;
  2814. l335:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\316")) goto l336; goto l256;
  2815. l336:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\317")) goto l337; goto l256;
  2816. l337:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\320")) goto l338; goto l256;
  2817. l338:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\321")) goto l339; goto l256;
  2818. l339:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\322")) goto l340; goto l256;
  2819. l340:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\323")) goto l341; goto l256;
  2820. l341:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\324")) goto l342; goto l256;
  2821. l342:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\325")) goto l343; goto l256;
  2822. l343:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\326")) goto l344; goto l256;
  2823. l344:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\327")) goto l345; goto l256;
  2824. l345:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\330")) goto l346; goto l256;
  2825. l346:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\331")) goto l347; goto l256;
  2826. l347:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\332")) goto l348; goto l256;
  2827. l348:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\333")) goto l349; goto l256;
  2828. l349:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\334")) goto l350; goto l256;
  2829. l350:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\335")) goto l351; goto l256;
  2830. l351:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\336")) goto l352; goto l256;
  2831. l352:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\337")) goto l353; goto l256;
  2832. l353:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\340")) goto l354; goto l256;
  2833. l354:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\341")) goto l355; goto l256;
  2834. l355:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\342")) goto l356; goto l256;
  2835. l356:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\343")) goto l357; goto l256;
  2836. l357:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\344")) goto l358; goto l256;
  2837. l358:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\345")) goto l359; goto l256;
  2838. l359:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\346")) goto l360; goto l256;
  2839. l360:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\347")) goto l361; goto l256;
  2840. l361:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\350")) goto l362; goto l256;
  2841. l362:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\351")) goto l363; goto l256;
  2842. l363:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\352")) goto l364; goto l256;
  2843. l364:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\353")) goto l365; goto l256;
  2844. l365:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\354")) goto l366; goto l256;
  2845. l366:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\355")) goto l367; goto l256;
  2846. l367:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\356")) goto l368; goto l256;
  2847. l368:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\357")) goto l369; goto l256;
  2848. l369:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\360")) goto l370; goto l256;
  2849. l370:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\361")) goto l371; goto l256;
  2850. l371:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\362")) goto l372; goto l256;
  2851. l372:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\363")) goto l373; goto l256;
  2852. l373:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\364")) goto l374; goto l256;
  2853. l374:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\365")) goto l375; goto l256;
  2854. l375:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\366")) goto l376; goto l256;
  2855. l376:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\367")) goto l377; goto l256;
  2856. l377:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\370")) goto l378; goto l256;
  2857. l378:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\371")) goto l379; goto l256;
  2858. l379:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\372")) goto l380; goto l256;
  2859. l380:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\373")) goto l381; goto l256;
  2860. l381:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\374")) goto l382; goto l256;
  2861. l382:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\375")) goto l383; goto l256;
  2862. l383:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\376")) goto l384; goto l256;
  2863. l384:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\377")) goto l255;
  2864. }
  2865. l256:;
  2866. yyprintf((stderr, " ok %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  2867. return 1;
  2868. l255:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2869. yyprintf((stderr, " fail %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  2870. return 0;
  2871. }
  2872. YY_RULE(int) yy_NormalChar(GREG *G)
  2873. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2874. yyprintf((stderr, "%s\n", "NormalChar"));
  2875. { int yypos386= G->pos, yythunkpos386= G->thunkpos;
  2876. { int yypos387= G->pos, yythunkpos387= G->thunkpos; if (!yy_SpecialChar(G)) { goto l388; } goto l387;
  2877. l388:; G->pos= yypos387; G->thunkpos= yythunkpos387; if (!yy_Spacechar(G)) { goto l389; } goto l387;
  2878. l389:; G->pos= yypos387; G->thunkpos= yythunkpos387; if (!yy_Newline(G)) { goto l386; }
  2879. }
  2880. l387:; goto l385;
  2881. l386:; G->pos= yypos386; G->thunkpos= yythunkpos386;
  2882. } if (!yymatchDot(G)) goto l385;
  2883. yyprintf((stderr, " ok %s @ %s\n", "NormalChar", G->buf+G->pos));
  2884. return 1;
  2885. l385:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2886. yyprintf((stderr, " fail %s @ %s\n", "NormalChar", G->buf+G->pos));
  2887. return 0;
  2888. }
  2889. YY_RULE(int) yy_Symbol(GREG *G)
  2890. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2891. yyprintf((stderr, "%s\n", "Symbol")); if (!yy_SpecialChar(G)) { goto l390; }
  2892. yyprintf((stderr, " ok %s @ %s\n", "Symbol", G->buf+G->pos));
  2893. return 1;
  2894. l390:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2895. yyprintf((stderr, " fail %s @ %s\n", "Symbol", G->buf+G->pos));
  2896. return 0;
  2897. }
  2898. YY_RULE(int) yy_EscapedChar(GREG *G)
  2899. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2900. yyprintf((stderr, "%s\n", "EscapedChar")); if (!yymatchChar(G, '\\')) goto l391;
  2901. { int yypos392= G->pos, yythunkpos392= G->thunkpos; if (!yy_Newline(G)) { goto l392; } goto l391;
  2902. l392:; G->pos= yypos392; G->thunkpos= yythunkpos392;
  2903. } if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\012\157\000\120\000\000\000\270\001\000\000\070\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l391;
  2904. yyprintf((stderr, " ok %s @ %s\n", "EscapedChar", G->buf+G->pos));
  2905. return 1;
  2906. l391:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2907. yyprintf((stderr, " fail %s @ %s\n", "EscapedChar", G->buf+G->pos));
  2908. return 0;
  2909. }
  2910. YY_RULE(int) yy_Entity(GREG *G)
  2911. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2912. yyprintf((stderr, "%s\n", "Entity")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l393; if (!yy_LocMarker(G)) { goto l393; } yyDo(G, yySet, -1, 0);
  2913. { int yypos394= G->pos, yythunkpos394= G->thunkpos; if (!yy_HexEntity(G)) { goto l395; } goto l394;
  2914. l395:; G->pos= yypos394; G->thunkpos= yythunkpos394; if (!yy_DecEntity(G)) { goto l396; } goto l394;
  2915. l396:; G->pos= yypos394; G->thunkpos= yythunkpos394; if (!yy_CharEntity(G)) { goto l393; }
  2916. }
  2917. l394:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l393; yyDo(G, yy_1_Entity, G->begin, G->end);
  2918. yyprintf((stderr, " ok %s @ %s\n", "Entity", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2919. return 1;
  2920. l393:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2921. yyprintf((stderr, " fail %s @ %s\n", "Entity", G->buf+G->pos));
  2922. return 0;
  2923. }
  2924. YY_RULE(int) yy_RawHtml(GREG *G)
  2925. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2926. yyprintf((stderr, "%s\n", "RawHtml")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l397; if (!yy_LocMarker(G)) { goto l397; } yyDo(G, yySet, -1, 0);
  2927. { int yypos398= G->pos, yythunkpos398= G->thunkpos; if (!yy_HtmlComment(G)) { goto l399; } goto l398;
  2928. l399:; G->pos= yypos398; G->thunkpos= yythunkpos398; if (!yy_HtmlBlockScript(G)) { goto l400; } goto l398;
  2929. l400:; G->pos= yypos398; G->thunkpos= yythunkpos398; if (!yy_HtmlTag(G)) { goto l397; }
  2930. }
  2931. l398:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l397; yyDo(G, yy_1_RawHtml, G->begin, G->end);
  2932. yyprintf((stderr, " ok %s @ %s\n", "RawHtml", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2933. return 1;
  2934. l397:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2935. yyprintf((stderr, " fail %s @ %s\n", "RawHtml", G->buf+G->pos));
  2936. return 0;
  2937. }
  2938. YY_RULE(int) yy_Code(GREG *G)
  2939. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2940. yyprintf((stderr, "%s\n", "Code")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l401;
  2941. { int yypos402= G->pos, yythunkpos402= G->thunkpos; if (!yy_Ticks1(G)) { goto l403; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l403; }
  2942. { int yypos406= G->pos, yythunkpos406= G->thunkpos;
  2943. { int yypos410= G->pos, yythunkpos410= G->thunkpos; if (!yymatchChar(G, '`')) goto l410; goto l407;
  2944. l410:; G->pos= yypos410; G->thunkpos= yythunkpos410;
  2945. } if (!yy_Nonspacechar(G)) { goto l407; }
  2946. l408:;
  2947. { int yypos409= G->pos, yythunkpos409= G->thunkpos;
  2948. { int yypos411= G->pos, yythunkpos411= G->thunkpos; if (!yymatchChar(G, '`')) goto l411; goto l409;
  2949. l411:; G->pos= yypos411; G->thunkpos= yythunkpos411;
  2950. } if (!yy_Nonspacechar(G)) { goto l409; } goto l408;
  2951. l409:; G->pos= yypos409; G->thunkpos= yythunkpos409;
  2952. } goto l406;
  2953. l407:; G->pos= yypos406; G->thunkpos= yythunkpos406;
  2954. { int yypos413= G->pos, yythunkpos413= G->thunkpos; if (!yy_Ticks1(G)) { goto l413; } goto l412;
  2955. l413:; G->pos= yypos413; G->thunkpos= yythunkpos413;
  2956. } if (!yymatchChar(G, '`')) goto l412;
  2957. l414:;
  2958. { int yypos415= G->pos, yythunkpos415= G->thunkpos; if (!yymatchChar(G, '`')) goto l415; goto l414;
  2959. l415:; G->pos= yypos415; G->thunkpos= yythunkpos415;
  2960. } goto l406;
  2961. l412:; G->pos= yypos406; G->thunkpos= yythunkpos406;
  2962. { int yypos416= G->pos, yythunkpos416= G->thunkpos; if (!yy_Sp(G)) { goto l416; } if (!yy_Ticks1(G)) { goto l416; } goto l403;
  2963. l416:; G->pos= yypos416; G->thunkpos= yythunkpos416;
  2964. }
  2965. { int yypos417= G->pos, yythunkpos417= G->thunkpos; if (!yy_Spacechar(G)) { goto l418; } goto l417;
  2966. l418:; G->pos= yypos417; G->thunkpos= yythunkpos417; if (!yy_Newline(G)) { goto l403; }
  2967. { int yypos419= G->pos, yythunkpos419= G->thunkpos; if (!yy_BlankLine(G)) { goto l419; } goto l403;
  2968. l419:; G->pos= yypos419; G->thunkpos= yythunkpos419;
  2969. }
  2970. }
  2971. l417:;
  2972. }
  2973. l406:;
  2974. l404:;
  2975. { int yypos405= G->pos, yythunkpos405= G->thunkpos;
  2976. { int yypos420= G->pos, yythunkpos420= G->thunkpos;
  2977. { int yypos424= G->pos, yythunkpos424= G->thunkpos; if (!yymatchChar(G, '`')) goto l424; goto l421;
  2978. l424:; G->pos= yypos424; G->thunkpos= yythunkpos424;
  2979. } if (!yy_Nonspacechar(G)) { goto l421; }
  2980. l422:;
  2981. { int yypos423= G->pos, yythunkpos423= G->thunkpos;
  2982. { int yypos425= G->pos, yythunkpos425= G->thunkpos; if (!yymatchChar(G, '`')) goto l425; goto l423;
  2983. l425:; G->pos= yypos425; G->thunkpos= yythunkpos425;
  2984. } if (!yy_Nonspacechar(G)) { goto l423; } goto l422;
  2985. l423:; G->pos= yypos423; G->thunkpos= yythunkpos423;
  2986. } goto l420;
  2987. l421:; G->pos= yypos420; G->thunkpos= yythunkpos420;
  2988. { int yypos427= G->pos, yythunkpos427= G->thunkpos; if (!yy_Ticks1(G)) { goto l427; } goto l426;
  2989. l427:; G->pos= yypos427; G->thunkpos= yythunkpos427;
  2990. } if (!yymatchChar(G, '`')) goto l426;
  2991. l428:;
  2992. { int yypos429= G->pos, yythunkpos429= G->thunkpos; if (!yymatchChar(G, '`')) goto l429; goto l428;
  2993. l429:; G->pos= yypos429; G->thunkpos= yythunkpos429;
  2994. } goto l420;
  2995. l426:; G->pos= yypos420; G->thunkpos= yythunkpos420;
  2996. { int yypos430= G->pos, yythunkpos430= G->thunkpos; if (!yy_Sp(G)) { goto l430; } if (!yy_Ticks1(G)) { goto l430; } goto l405;
  2997. l430:; G->pos= yypos430; G->thunkpos= yythunkpos430;
  2998. }
  2999. { int yypos431= G->pos, yythunkpos431= G->thunkpos; if (!yy_Spacechar(G)) { goto l432; } goto l431;
  3000. l432:; G->pos= yypos431; G->thunkpos= yythunkpos431; if (!yy_Newline(G)) { goto l405; }
  3001. { int yypos433= G->pos, yythunkpos433= G->thunkpos; if (!yy_BlankLine(G)) { goto l433; } goto l405;
  3002. l433:; G->pos= yypos433; G->thunkpos= yythunkpos433;
  3003. }
  3004. }
  3005. l431:;
  3006. }
  3007. l420:; goto l404;
  3008. l405:; G->pos= yypos405; G->thunkpos= yythunkpos405;
  3009. } if (!yy_Sp(G)) { goto l403; } if (!yy_Ticks1(G)) { goto l403; } goto l402;
  3010. l403:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks2(G)) { goto l434; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l434; }
  3011. { int yypos437= G->pos, yythunkpos437= G->thunkpos;
  3012. { int yypos441= G->pos, yythunkpos441= G->thunkpos; if (!yymatchChar(G, '`')) goto l441; goto l438;
  3013. l441:; G->pos= yypos441; G->thunkpos= yythunkpos441;
  3014. } if (!yy_Nonspacechar(G)) { goto l438; }
  3015. l439:;
  3016. { int yypos440= G->pos, yythunkpos440= G->thunkpos;
  3017. { int yypos442= G->pos, yythunkpos442= G->thunkpos; if (!yymatchChar(G, '`')) goto l442; goto l440;
  3018. l442:; G->pos= yypos442; G->thunkpos= yythunkpos442;
  3019. } if (!yy_Nonspacechar(G)) { goto l440; } goto l439;
  3020. l440:; G->pos= yypos440; G->thunkpos= yythunkpos440;
  3021. } goto l437;
  3022. l438:; G->pos= yypos437; G->thunkpos= yythunkpos437;
  3023. { int yypos444= G->pos, yythunkpos444= G->thunkpos; if (!yy_Ticks2(G)) { goto l444; } goto l443;
  3024. l444:; G->pos= yypos444; G->thunkpos= yythunkpos444;
  3025. } if (!yymatchChar(G, '`')) goto l443;
  3026. l445:;
  3027. { int yypos446= G->pos, yythunkpos446= G->thunkpos; if (!yymatchChar(G, '`')) goto l446; goto l445;
  3028. l446:; G->pos= yypos446; G->thunkpos= yythunkpos446;
  3029. } goto l437;
  3030. l443:; G->pos= yypos437; G->thunkpos= yythunkpos437;
  3031. { int yypos447= G->pos, yythunkpos447= G->thunkpos; if (!yy_Sp(G)) { goto l447; } if (!yy_Ticks2(G)) { goto l447; } goto l434;
  3032. l447:; G->pos= yypos447; G->thunkpos= yythunkpos447;
  3033. }
  3034. { int yypos448= G->pos, yythunkpos448= G->thunkpos; if (!yy_Spacechar(G)) { goto l449; } goto l448;
  3035. l449:; G->pos= yypos448; G->thunkpos= yythunkpos448; if (!yy_Newline(G)) { goto l434; }
  3036. { int yypos450= G->pos, yythunkpos450= G->thunkpos; if (!yy_BlankLine(G)) { goto l450; } goto l434;
  3037. l450:; G->pos= yypos450; G->thunkpos= yythunkpos450;
  3038. }
  3039. }
  3040. l448:;
  3041. }
  3042. l437:;
  3043. l435:;
  3044. { int yypos436= G->pos, yythunkpos436= G->thunkpos;
  3045. { int yypos451= G->pos, yythunkpos451= G->thunkpos;
  3046. { int yypos455= G->pos, yythunkpos455= G->thunkpos; if (!yymatchChar(G, '`')) goto l455; goto l452;
  3047. l455:; G->pos= yypos455; G->thunkpos= yythunkpos455;
  3048. } if (!yy_Nonspacechar(G)) { goto l452; }
  3049. l453:;
  3050. { int yypos454= G->pos, yythunkpos454= G->thunkpos;
  3051. { int yypos456= G->pos, yythunkpos456= G->thunkpos; if (!yymatchChar(G, '`')) goto l456; goto l454;
  3052. l456:; G->pos= yypos456; G->thunkpos= yythunkpos456;
  3053. } if (!yy_Nonspacechar(G)) { goto l454; } goto l453;
  3054. l454:; G->pos= yypos454; G->thunkpos= yythunkpos454;
  3055. } goto l451;
  3056. l452:; G->pos= yypos451; G->thunkpos= yythunkpos451;
  3057. { int yypos458= G->pos, yythunkpos458= G->thunkpos; if (!yy_Ticks2(G)) { goto l458; } goto l457;
  3058. l458:; G->pos= yypos458; G->thunkpos= yythunkpos458;
  3059. } if (!yymatchChar(G, '`')) goto l457;
  3060. l459:;
  3061. { int yypos460= G->pos, yythunkpos460= G->thunkpos; if (!yymatchChar(G, '`')) goto l460; goto l459;
  3062. l460:; G->pos= yypos460; G->thunkpos= yythunkpos460;
  3063. } goto l451;
  3064. l457:; G->pos= yypos451; G->thunkpos= yythunkpos451;
  3065. { int yypos461= G->pos, yythunkpos461= G->thunkpos; if (!yy_Sp(G)) { goto l461; } if (!yy_Ticks2(G)) { goto l461; } goto l436;
  3066. l461:; G->pos= yypos461; G->thunkpos= yythunkpos461;
  3067. }
  3068. { int yypos462= G->pos, yythunkpos462= G->thunkpos; if (!yy_Spacechar(G)) { goto l463; } goto l462;
  3069. l463:; G->pos= yypos462; G->thunkpos= yythunkpos462; if (!yy_Newline(G)) { goto l436; }
  3070. { int yypos464= G->pos, yythunkpos464= G->thunkpos; if (!yy_BlankLine(G)) { goto l464; } goto l436;
  3071. l464:; G->pos= yypos464; G->thunkpos= yythunkpos464;
  3072. }
  3073. }
  3074. l462:;
  3075. }
  3076. l451:; goto l435;
  3077. l436:; G->pos= yypos436; G->thunkpos= yythunkpos436;
  3078. } if (!yy_Sp(G)) { goto l434; } if (!yy_Ticks2(G)) { goto l434; } goto l402;
  3079. l434:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks3(G)) { goto l465; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l465; }
  3080. { int yypos468= G->pos, yythunkpos468= G->thunkpos;
  3081. { int yypos472= G->pos, yythunkpos472= G->thunkpos; if (!yymatchChar(G, '`')) goto l472; goto l469;
  3082. l472:; G->pos= yypos472; G->thunkpos= yythunkpos472;
  3083. } if (!yy_Nonspacechar(G)) { goto l469; }
  3084. l470:;
  3085. { int yypos471= G->pos, yythunkpos471= G->thunkpos;
  3086. { int yypos473= G->pos, yythunkpos473= G->thunkpos; if (!yymatchChar(G, '`')) goto l473; goto l471;
  3087. l473:; G->pos= yypos473; G->thunkpos= yythunkpos473;
  3088. } if (!yy_Nonspacechar(G)) { goto l471; } goto l470;
  3089. l471:; G->pos= yypos471; G->thunkpos= yythunkpos471;
  3090. } goto l468;
  3091. l469:; G->pos= yypos468; G->thunkpos= yythunkpos468;
  3092. { int yypos475= G->pos, yythunkpos475= G->thunkpos; if (!yy_Ticks3(G)) { goto l475; } goto l474;
  3093. l475:; G->pos= yypos475; G->thunkpos= yythunkpos475;
  3094. } if (!yymatchChar(G, '`')) goto l474;
  3095. l476:;
  3096. { int yypos477= G->pos, yythunkpos477= G->thunkpos; if (!yymatchChar(G, '`')) goto l477; goto l476;
  3097. l477:; G->pos= yypos477; G->thunkpos= yythunkpos477;
  3098. } goto l468;
  3099. l474:; G->pos= yypos468; G->thunkpos= yythunkpos468;
  3100. { int yypos478= G->pos, yythunkpos478= G->thunkpos; if (!yy_Sp(G)) { goto l478; } if (!yy_Ticks3(G)) { goto l478; } goto l465;
  3101. l478:; G->pos= yypos478; G->thunkpos= yythunkpos478;
  3102. }
  3103. { int yypos479= G->pos, yythunkpos479= G->thunkpos; if (!yy_Spacechar(G)) { goto l480; } goto l479;
  3104. l480:; G->pos= yypos479; G->thunkpos= yythunkpos479; if (!yy_Newline(G)) { goto l465; }
  3105. { int yypos481= G->pos, yythunkpos481= G->thunkpos; if (!yy_BlankLine(G)) { goto l481; } goto l465;
  3106. l481:; G->pos= yypos481; G->thunkpos= yythunkpos481;
  3107. }
  3108. }
  3109. l479:;
  3110. }
  3111. l468:;
  3112. l466:;
  3113. { int yypos467= G->pos, yythunkpos467= G->thunkpos;
  3114. { int yypos482= G->pos, yythunkpos482= G->thunkpos;
  3115. { int yypos486= G->pos, yythunkpos486= G->thunkpos; if (!yymatchChar(G, '`')) goto l486; goto l483;
  3116. l486:; G->pos= yypos486; G->thunkpos= yythunkpos486;
  3117. } if (!yy_Nonspacechar(G)) { goto l483; }
  3118. l484:;
  3119. { int yypos485= G->pos, yythunkpos485= G->thunkpos;
  3120. { int yypos487= G->pos, yythunkpos487= G->thunkpos; if (!yymatchChar(G, '`')) goto l487; goto l485;
  3121. l487:; G->pos= yypos487; G->thunkpos= yythunkpos487;
  3122. } if (!yy_Nonspacechar(G)) { goto l485; } goto l484;
  3123. l485:; G->pos= yypos485; G->thunkpos= yythunkpos485;
  3124. } goto l482;
  3125. l483:; G->pos= yypos482; G->thunkpos= yythunkpos482;
  3126. { int yypos489= G->pos, yythunkpos489= G->thunkpos; if (!yy_Ticks3(G)) { goto l489; } goto l488;
  3127. l489:; G->pos= yypos489; G->thunkpos= yythunkpos489;
  3128. } if (!yymatchChar(G, '`')) goto l488;
  3129. l490:;
  3130. { int yypos491= G->pos, yythunkpos491= G->thunkpos; if (!yymatchChar(G, '`')) goto l491; goto l490;
  3131. l491:; G->pos= yypos491; G->thunkpos= yythunkpos491;
  3132. } goto l482;
  3133. l488:; G->pos= yypos482; G->thunkpos= yythunkpos482;
  3134. { int yypos492= G->pos, yythunkpos492= G->thunkpos; if (!yy_Sp(G)) { goto l492; } if (!yy_Ticks3(G)) { goto l492; } goto l467;
  3135. l492:; G->pos= yypos492; G->thunkpos= yythunkpos492;
  3136. }
  3137. { int yypos493= G->pos, yythunkpos493= G->thunkpos; if (!yy_Spacechar(G)) { goto l494; } goto l493;
  3138. l494:; G->pos= yypos493; G->thunkpos= yythunkpos493; if (!yy_Newline(G)) { goto l467; }
  3139. { int yypos495= G->pos, yythunkpos495= G->thunkpos; if (!yy_BlankLine(G)) { goto l495; } goto l467;
  3140. l495:; G->pos= yypos495; G->thunkpos= yythunkpos495;
  3141. }
  3142. }
  3143. l493:;
  3144. }
  3145. l482:; goto l466;
  3146. l467:; G->pos= yypos467; G->thunkpos= yythunkpos467;
  3147. } if (!yy_Sp(G)) { goto l465; } if (!yy_Ticks3(G)) { goto l465; } goto l402;
  3148. l465:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks4(G)) { goto l496; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l496; }
  3149. { int yypos499= G->pos, yythunkpos499= G->thunkpos;
  3150. { int yypos503= G->pos, yythunkpos503= G->thunkpos; if (!yymatchChar(G, '`')) goto l503; goto l500;
  3151. l503:; G->pos= yypos503; G->thunkpos= yythunkpos503;
  3152. } if (!yy_Nonspacechar(G)) { goto l500; }
  3153. l501:;
  3154. { int yypos502= G->pos, yythunkpos502= G->thunkpos;
  3155. { int yypos504= G->pos, yythunkpos504= G->thunkpos; if (!yymatchChar(G, '`')) goto l504; goto l502;
  3156. l504:; G->pos= yypos504; G->thunkpos= yythunkpos504;
  3157. } if (!yy_Nonspacechar(G)) { goto l502; } goto l501;
  3158. l502:; G->pos= yypos502; G->thunkpos= yythunkpos502;
  3159. } goto l499;
  3160. l500:; G->pos= yypos499; G->thunkpos= yythunkpos499;
  3161. { int yypos506= G->pos, yythunkpos506= G->thunkpos; if (!yy_Ticks4(G)) { goto l506; } goto l505;
  3162. l506:; G->pos= yypos506; G->thunkpos= yythunkpos506;
  3163. } if (!yymatchChar(G, '`')) goto l505;
  3164. l507:;
  3165. { int yypos508= G->pos, yythunkpos508= G->thunkpos; if (!yymatchChar(G, '`')) goto l508; goto l507;
  3166. l508:; G->pos= yypos508; G->thunkpos= yythunkpos508;
  3167. } goto l499;
  3168. l505:; G->pos= yypos499; G->thunkpos= yythunkpos499;
  3169. { int yypos509= G->pos, yythunkpos509= G->thunkpos; if (!yy_Sp(G)) { goto l509; } if (!yy_Ticks4(G)) { goto l509; } goto l496;
  3170. l509:; G->pos= yypos509; G->thunkpos= yythunkpos509;
  3171. }
  3172. { int yypos510= G->pos, yythunkpos510= G->thunkpos; if (!yy_Spacechar(G)) { goto l511; } goto l510;
  3173. l511:; G->pos= yypos510; G->thunkpos= yythunkpos510; if (!yy_Newline(G)) { goto l496; }
  3174. { int yypos512= G->pos, yythunkpos512= G->thunkpos; if (!yy_BlankLine(G)) { goto l512; } goto l496;
  3175. l512:; G->pos= yypos512; G->thunkpos= yythunkpos512;
  3176. }
  3177. }
  3178. l510:;
  3179. }
  3180. l499:;
  3181. l497:;
  3182. { int yypos498= G->pos, yythunkpos498= G->thunkpos;
  3183. { int yypos513= G->pos, yythunkpos513= G->thunkpos;
  3184. { int yypos517= G->pos, yythunkpos517= G->thunkpos; if (!yymatchChar(G, '`')) goto l517; goto l514;
  3185. l517:; G->pos= yypos517; G->thunkpos= yythunkpos517;
  3186. } if (!yy_Nonspacechar(G)) { goto l514; }
  3187. l515:;
  3188. { int yypos516= G->pos, yythunkpos516= G->thunkpos;
  3189. { int yypos518= G->pos, yythunkpos518= G->thunkpos; if (!yymatchChar(G, '`')) goto l518; goto l516;
  3190. l518:; G->pos= yypos518; G->thunkpos= yythunkpos518;
  3191. } if (!yy_Nonspacechar(G)) { goto l516; } goto l515;
  3192. l516:; G->pos= yypos516; G->thunkpos= yythunkpos516;
  3193. } goto l513;
  3194. l514:; G->pos= yypos513; G->thunkpos= yythunkpos513;
  3195. { int yypos520= G->pos, yythunkpos520= G->thunkpos; if (!yy_Ticks4(G)) { goto l520; } goto l519;
  3196. l520:; G->pos= yypos520; G->thunkpos= yythunkpos520;
  3197. } if (!yymatchChar(G, '`')) goto l519;
  3198. l521:;
  3199. { int yypos522= G->pos, yythunkpos522= G->thunkpos; if (!yymatchChar(G, '`')) goto l522; goto l521;
  3200. l522:; G->pos= yypos522; G->thunkpos= yythunkpos522;
  3201. } goto l513;
  3202. l519:; G->pos= yypos513; G->thunkpos= yythunkpos513;
  3203. { int yypos523= G->pos, yythunkpos523= G->thunkpos; if (!yy_Sp(G)) { goto l523; } if (!yy_Ticks4(G)) { goto l523; } goto l498;
  3204. l523:; G->pos= yypos523; G->thunkpos= yythunkpos523;
  3205. }
  3206. { int yypos524= G->pos, yythunkpos524= G->thunkpos; if (!yy_Spacechar(G)) { goto l525; } goto l524;
  3207. l525:; G->pos= yypos524; G->thunkpos= yythunkpos524; if (!yy_Newline(G)) { goto l498; }
  3208. { int yypos526= G->pos, yythunkpos526= G->thunkpos; if (!yy_BlankLine(G)) { goto l526; } goto l498;
  3209. l526:; G->pos= yypos526; G->thunkpos= yythunkpos526;
  3210. }
  3211. }
  3212. l524:;
  3213. }
  3214. l513:; goto l497;
  3215. l498:; G->pos= yypos498; G->thunkpos= yythunkpos498;
  3216. } if (!yy_Sp(G)) { goto l496; } if (!yy_Ticks4(G)) { goto l496; } goto l402;
  3217. l496:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks5(G)) { goto l401; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l401; }
  3218. { int yypos529= G->pos, yythunkpos529= G->thunkpos;
  3219. { int yypos533= G->pos, yythunkpos533= G->thunkpos; if (!yymatchChar(G, '`')) goto l533; goto l530;
  3220. l533:; G->pos= yypos533; G->thunkpos= yythunkpos533;
  3221. } if (!yy_Nonspacechar(G)) { goto l530; }
  3222. l531:;
  3223. { int yypos532= G->pos, yythunkpos532= G->thunkpos;
  3224. { int yypos534= G->pos, yythunkpos534= G->thunkpos; if (!yymatchChar(G, '`')) goto l534; goto l532;
  3225. l534:; G->pos= yypos534; G->thunkpos= yythunkpos534;
  3226. } if (!yy_Nonspacechar(G)) { goto l532; } goto l531;
  3227. l532:; G->pos= yypos532; G->thunkpos= yythunkpos532;
  3228. } goto l529;
  3229. l530:; G->pos= yypos529; G->thunkpos= yythunkpos529;
  3230. { int yypos536= G->pos, yythunkpos536= G->thunkpos; if (!yy_Ticks5(G)) { goto l536; } goto l535;
  3231. l536:; G->pos= yypos536; G->thunkpos= yythunkpos536;
  3232. } if (!yymatchChar(G, '`')) goto l535;
  3233. l537:;
  3234. { int yypos538= G->pos, yythunkpos538= G->thunkpos; if (!yymatchChar(G, '`')) goto l538; goto l537;
  3235. l538:; G->pos= yypos538; G->thunkpos= yythunkpos538;
  3236. } goto l529;
  3237. l535:; G->pos= yypos529; G->thunkpos= yythunkpos529;
  3238. { int yypos539= G->pos, yythunkpos539= G->thunkpos; if (!yy_Sp(G)) { goto l539; } if (!yy_Ticks5(G)) { goto l539; } goto l401;
  3239. l539:; G->pos= yypos539; G->thunkpos= yythunkpos539;
  3240. }
  3241. { int yypos540= G->pos, yythunkpos540= G->thunkpos; if (!yy_Spacechar(G)) { goto l541; } goto l540;
  3242. l541:; G->pos= yypos540; G->thunkpos= yythunkpos540; if (!yy_Newline(G)) { goto l401; }
  3243. { int yypos542= G->pos, yythunkpos542= G->thunkpos; if (!yy_BlankLine(G)) { goto l542; } goto l401;
  3244. l542:; G->pos= yypos542; G->thunkpos= yythunkpos542;
  3245. }
  3246. }
  3247. l540:;
  3248. }
  3249. l529:;
  3250. l527:;
  3251. { int yypos528= G->pos, yythunkpos528= G->thunkpos;
  3252. { int yypos543= G->pos, yythunkpos543= G->thunkpos;
  3253. { int yypos547= G->pos, yythunkpos547= G->thunkpos; if (!yymatchChar(G, '`')) goto l547; goto l544;
  3254. l547:; G->pos= yypos547; G->thunkpos= yythunkpos547;
  3255. } if (!yy_Nonspacechar(G)) { goto l544; }
  3256. l545:;
  3257. { int yypos546= G->pos, yythunkpos546= G->thunkpos;
  3258. { int yypos548= G->pos, yythunkpos548= G->thunkpos; if (!yymatchChar(G, '`')) goto l548; goto l546;
  3259. l548:; G->pos= yypos548; G->thunkpos= yythunkpos548;
  3260. } if (!yy_Nonspacechar(G)) { goto l546; } goto l545;
  3261. l546:; G->pos= yypos546; G->thunkpos= yythunkpos546;
  3262. } goto l543;
  3263. l544:; G->pos= yypos543; G->thunkpos= yythunkpos543;
  3264. { int yypos550= G->pos, yythunkpos550= G->thunkpos; if (!yy_Ticks5(G)) { goto l550; } goto l549;
  3265. l550:; G->pos= yypos550; G->thunkpos= yythunkpos550;
  3266. } if (!yymatchChar(G, '`')) goto l549;
  3267. l551:;
  3268. { int yypos552= G->pos, yythunkpos552= G->thunkpos; if (!yymatchChar(G, '`')) goto l552; goto l551;
  3269. l552:; G->pos= yypos552; G->thunkpos= yythunkpos552;
  3270. } goto l543;
  3271. l549:; G->pos= yypos543; G->thunkpos= yythunkpos543;
  3272. { int yypos553= G->pos, yythunkpos553= G->thunkpos; if (!yy_Sp(G)) { goto l553; } if (!yy_Ticks5(G)) { goto l553; } goto l528;
  3273. l553:; G->pos= yypos553; G->thunkpos= yythunkpos553;
  3274. }
  3275. { int yypos554= G->pos, yythunkpos554= G->thunkpos; if (!yy_Spacechar(G)) { goto l555; } goto l554;
  3276. l555:; G->pos= yypos554; G->thunkpos= yythunkpos554; if (!yy_Newline(G)) { goto l528; }
  3277. { int yypos556= G->pos, yythunkpos556= G->thunkpos; if (!yy_BlankLine(G)) { goto l556; } goto l528;
  3278. l556:; G->pos= yypos556; G->thunkpos= yythunkpos556;
  3279. }
  3280. }
  3281. l554:;
  3282. }
  3283. l543:; goto l527;
  3284. l528:; G->pos= yypos528; G->thunkpos= yythunkpos528;
  3285. } if (!yy_Sp(G)) { goto l401; } if (!yy_Ticks5(G)) { goto l401; }
  3286. }
  3287. l402:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l401; yyDo(G, yy_1_Code, G->begin, G->end);
  3288. yyprintf((stderr, " ok %s @ %s\n", "Code", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3289. return 1;
  3290. l401:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3291. yyprintf((stderr, " fail %s @ %s\n", "Code", G->buf+G->pos));
  3292. return 0;
  3293. }
  3294. YY_RULE(int) yy_InlineNote(GREG *G)
  3295. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3296. yyprintf((stderr, "%s\n", "InlineNote")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l557; if (!yymatchString(G, "^[")) goto l557;
  3297. { int yypos560= G->pos, yythunkpos560= G->thunkpos; if (!yymatchChar(G, ']')) goto l560; goto l557;
  3298. l560:; G->pos= yypos560; G->thunkpos= yythunkpos560;
  3299. } if (!yy_Inline(G)) { goto l557; }
  3300. l558:;
  3301. { int yypos559= G->pos, yythunkpos559= G->thunkpos;
  3302. { int yypos561= G->pos, yythunkpos561= G->thunkpos; if (!yymatchChar(G, ']')) goto l561; goto l559;
  3303. l561:; G->pos= yypos561; G->thunkpos= yythunkpos561;
  3304. } if (!yy_Inline(G)) { goto l559; } goto l558;
  3305. l559:; G->pos= yypos559; G->thunkpos= yythunkpos559;
  3306. } if (!yymatchChar(G, ']')) goto l557;
  3307. yyprintf((stderr, " ok %s @ %s\n", "InlineNote", G->buf+G->pos));
  3308. return 1;
  3309. l557:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3310. yyprintf((stderr, " fail %s @ %s\n", "InlineNote", G->buf+G->pos));
  3311. return 0;
  3312. }
  3313. YY_RULE(int) yy_NoteReference(GREG *G)
  3314. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3315. yyprintf((stderr, "%s\n", "NoteReference")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l562; if (!yy_RawNoteReference(G)) { goto l562; }
  3316. yyprintf((stderr, " ok %s @ %s\n", "NoteReference", G->buf+G->pos));
  3317. return 1;
  3318. l562:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3319. yyprintf((stderr, " fail %s @ %s\n", "NoteReference", G->buf+G->pos));
  3320. return 0;
  3321. }
  3322. YY_RULE(int) yy_Link(GREG *G)
  3323. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3324. yyprintf((stderr, "%s\n", "Link"));
  3325. { int yypos564= G->pos, yythunkpos564= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l565; } goto l564;
  3326. l565:; G->pos= yypos564; G->thunkpos= yythunkpos564; if (!yy_ReferenceLink(G)) { goto l566; } goto l564;
  3327. l566:; G->pos= yypos564; G->thunkpos= yythunkpos564; if (!yy_AutoLink(G)) { goto l563; }
  3328. }
  3329. l564:; yyDo(G, yy_1_Link, G->begin, G->end);
  3330. yyprintf((stderr, " ok %s @ %s\n", "Link", G->buf+G->pos));
  3331. return 1;
  3332. l563:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3333. yyprintf((stderr, " fail %s @ %s\n", "Link", G->buf+G->pos));
  3334. return 0;
  3335. }
  3336. YY_RULE(int) yy_Image(GREG *G)
  3337. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3338. yyprintf((stderr, "%s\n", "Image")); if (!yymatchChar(G, '!')) goto l567;
  3339. { int yypos568= G->pos, yythunkpos568= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l569; } goto l568;
  3340. l569:; G->pos= yypos568; G->thunkpos= yythunkpos568; if (!yy_ReferenceLink(G)) { goto l567; }
  3341. }
  3342. l568:; yyDo(G, yy_1_Image, G->begin, G->end);
  3343. yyprintf((stderr, " ok %s @ %s\n", "Image", G->buf+G->pos));
  3344. return 1;
  3345. l567:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3346. yyprintf((stderr, " fail %s @ %s\n", "Image", G->buf+G->pos));
  3347. return 0;
  3348. }
  3349. YY_RULE(int) yy_Strike(GREG *G)
  3350. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3351. yyprintf((stderr, "%s\n", "Strike")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_STRIKE) )) goto l570; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l570; if (!yy_LocMarker(G)) { goto l570; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "~~")) goto l570;
  3352. { int yypos571= G->pos, yythunkpos571= G->thunkpos; if (!yy_Whitespace(G)) { goto l571; } goto l570;
  3353. l571:; G->pos= yypos571; G->thunkpos= yythunkpos571;
  3354. }
  3355. { int yypos574= G->pos, yythunkpos574= G->thunkpos; if (!yymatchString(G, "~~")) goto l574; goto l570;
  3356. l574:; G->pos= yypos574; G->thunkpos= yythunkpos574;
  3357. } if (!yy_Inline(G)) { goto l570; }
  3358. l572:;
  3359. { int yypos573= G->pos, yythunkpos573= G->thunkpos;
  3360. { int yypos575= G->pos, yythunkpos575= G->thunkpos; if (!yymatchString(G, "~~")) goto l575; goto l573;
  3361. l575:; G->pos= yypos575; G->thunkpos= yythunkpos575;
  3362. } if (!yy_Inline(G)) { goto l573; } goto l572;
  3363. l573:; G->pos= yypos573; G->thunkpos= yythunkpos573;
  3364. } if (!yymatchString(G, "~~")) goto l570; yyText(G, G->begin, G->end); if (!(YY_END)) goto l570; yyDo(G, yy_1_Strike, G->begin, G->end);
  3365. yyprintf((stderr, " ok %s @ %s\n", "Strike", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3366. return 1;
  3367. l570:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3368. yyprintf((stderr, " fail %s @ %s\n", "Strike", G->buf+G->pos));
  3369. return 0;
  3370. }
  3371. YY_RULE(int) yy_Emph(GREG *G)
  3372. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3373. yyprintf((stderr, "%s\n", "Emph"));
  3374. { int yypos577= G->pos, yythunkpos577= G->thunkpos; if (!yy_EmphStar(G)) { goto l578; } goto l577;
  3375. l578:; G->pos= yypos577; G->thunkpos= yythunkpos577; if (!yy_EmphUl(G)) { goto l576; }
  3376. }
  3377. l577:;
  3378. yyprintf((stderr, " ok %s @ %s\n", "Emph", G->buf+G->pos));
  3379. return 1;
  3380. l576:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3381. yyprintf((stderr, " fail %s @ %s\n", "Emph", G->buf+G->pos));
  3382. return 0;
  3383. }
  3384. YY_RULE(int) yy_Strong(GREG *G)
  3385. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3386. yyprintf((stderr, "%s\n", "Strong"));
  3387. { int yypos580= G->pos, yythunkpos580= G->thunkpos; if (!yy_StrongStar(G)) { goto l581; } goto l580;
  3388. l581:; G->pos= yypos580; G->thunkpos= yythunkpos580; if (!yy_StrongUl(G)) { goto l579; }
  3389. }
  3390. l580:;
  3391. yyprintf((stderr, " ok %s @ %s\n", "Strong", G->buf+G->pos));
  3392. return 1;
  3393. l579:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3394. yyprintf((stderr, " fail %s @ %s\n", "Strong", G->buf+G->pos));
  3395. return 0;
  3396. }
  3397. YY_RULE(int) yy_Space(GREG *G)
  3398. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3399. yyprintf((stderr, "%s\n", "Space")); if (!yy_Spacechar(G)) { goto l582; }
  3400. l583:;
  3401. { int yypos584= G->pos, yythunkpos584= G->thunkpos; if (!yy_Spacechar(G)) { goto l584; } goto l583;
  3402. l584:; G->pos= yypos584; G->thunkpos= yythunkpos584;
  3403. }
  3404. yyprintf((stderr, " ok %s @ %s\n", "Space", G->buf+G->pos));
  3405. return 1;
  3406. l582:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3407. yyprintf((stderr, " fail %s @ %s\n", "Space", G->buf+G->pos));
  3408. return 0;
  3409. }
  3410. YY_RULE(int) yy_UlOrStarLine(GREG *G)
  3411. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3412. yyprintf((stderr, "%s\n", "UlOrStarLine"));
  3413. { int yypos586= G->pos, yythunkpos586= G->thunkpos; if (!yy_UlLine(G)) { goto l587; } goto l586;
  3414. l587:; G->pos= yypos586; G->thunkpos= yythunkpos586; if (!yy_StarLine(G)) { goto l585; }
  3415. }
  3416. l586:;
  3417. yyprintf((stderr, " ok %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3418. return 1;
  3419. l585:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3420. yyprintf((stderr, " fail %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3421. return 0;
  3422. }
  3423. YY_RULE(int) yy_Str(GREG *G)
  3424. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3425. yyprintf((stderr, "%s\n", "Str")); if (!yy_NormalChar(G)) { goto l588; }
  3426. l589:;
  3427. { int yypos590= G->pos, yythunkpos590= G->thunkpos;
  3428. { int yypos591= G->pos, yythunkpos591= G->thunkpos; if (!yy_NormalChar(G)) { goto l592; } goto l591;
  3429. l592:; G->pos= yypos591; G->thunkpos= yythunkpos591; if (!yymatchChar(G, '_')) goto l590;
  3430. l593:;
  3431. { int yypos594= G->pos, yythunkpos594= G->thunkpos; if (!yymatchChar(G, '_')) goto l594; goto l593;
  3432. l594:; G->pos= yypos594; G->thunkpos= yythunkpos594;
  3433. }
  3434. { int yypos595= G->pos, yythunkpos595= G->thunkpos; if (!yy_Alphanumeric(G)) { goto l590; } G->pos= yypos595; G->thunkpos= yythunkpos595;
  3435. }
  3436. }
  3437. l591:; goto l589;
  3438. l590:; G->pos= yypos590; G->thunkpos= yythunkpos590;
  3439. }
  3440. yyprintf((stderr, " ok %s @ %s\n", "Str", G->buf+G->pos));
  3441. return 1;
  3442. l588:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3443. yyprintf((stderr, " fail %s @ %s\n", "Str", G->buf+G->pos));
  3444. return 0;
  3445. }
  3446. YY_RULE(int) yy_InStyleTags(GREG *G)
  3447. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3448. yyprintf((stderr, "%s\n", "InStyleTags")); if (!yy_StyleOpen(G)) { goto l596; }
  3449. l597:;
  3450. { int yypos598= G->pos, yythunkpos598= G->thunkpos;
  3451. { int yypos599= G->pos, yythunkpos599= G->thunkpos; if (!yy_StyleClose(G)) { goto l599; } goto l598;
  3452. l599:; G->pos= yypos599; G->thunkpos= yythunkpos599;
  3453. } if (!yymatchDot(G)) goto l598; goto l597;
  3454. l598:; G->pos= yypos598; G->thunkpos= yythunkpos598;
  3455. } if (!yy_StyleClose(G)) { goto l596; }
  3456. yyprintf((stderr, " ok %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3457. return 1;
  3458. l596:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3459. yyprintf((stderr, " fail %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3460. return 0;
  3461. }
  3462. YY_RULE(int) yy_StyleClose(GREG *G)
  3463. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3464. yyprintf((stderr, "%s\n", "StyleClose")); if (!yymatchChar(G, '<')) goto l600; if (!yy_Spnl(G)) { goto l600; } if (!yymatchChar(G, '/')) goto l600;
  3465. { int yypos601= G->pos, yythunkpos601= G->thunkpos; if (!yymatchString(G, "style")) goto l602; goto l601;
  3466. l602:; G->pos= yypos601; G->thunkpos= yythunkpos601; if (!yymatchString(G, "STYLE")) goto l600;
  3467. }
  3468. l601:; if (!yy_Spnl(G)) { goto l600; } if (!yymatchChar(G, '>')) goto l600;
  3469. yyprintf((stderr, " ok %s @ %s\n", "StyleClose", G->buf+G->pos));
  3470. return 1;
  3471. l600:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3472. yyprintf((stderr, " fail %s @ %s\n", "StyleClose", G->buf+G->pos));
  3473. return 0;
  3474. }
  3475. YY_RULE(int) yy_StyleOpen(GREG *G)
  3476. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3477. yyprintf((stderr, "%s\n", "StyleOpen")); if (!yymatchChar(G, '<')) goto l603; if (!yy_Spnl(G)) { goto l603; }
  3478. { int yypos604= G->pos, yythunkpos604= G->thunkpos; if (!yymatchString(G, "style")) goto l605; goto l604;
  3479. l605:; G->pos= yypos604; G->thunkpos= yythunkpos604; if (!yymatchString(G, "STYLE")) goto l603;
  3480. }
  3481. l604:; if (!yy_Spnl(G)) { goto l603; }
  3482. l606:;
  3483. { int yypos607= G->pos, yythunkpos607= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l607; } goto l606;
  3484. l607:; G->pos= yypos607; G->thunkpos= yythunkpos607;
  3485. } if (!yymatchChar(G, '>')) goto l603;
  3486. yyprintf((stderr, " ok %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3487. return 1;
  3488. l603:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3489. yyprintf((stderr, " fail %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3490. return 0;
  3491. }
  3492. YY_RULE(int) yy_HtmlBlockType(GREG *G)
  3493. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3494. yyprintf((stderr, "%s\n", "HtmlBlockType"));
  3495. { int yypos609= G->pos, yythunkpos609= G->thunkpos; if (!yymatchString(G, "address")) goto l610; goto l609;
  3496. l610:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "blockquote")) goto l611; goto l609;
  3497. l611:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "center")) goto l612; goto l609;
  3498. l612:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "dir")) goto l613; goto l609;
  3499. l613:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "div")) goto l614; goto l609;
  3500. l614:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "dl")) goto l615; goto l609;
  3501. l615:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "fieldset")) goto l616; goto l609;
  3502. l616:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "form")) goto l617; goto l609;
  3503. l617:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "h1")) goto l618; goto l609;
  3504. l618:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "h2")) goto l619; goto l609;
  3505. l619:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "h3")) goto l620; goto l609;
  3506. l620:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "h4")) goto l621; goto l609;
  3507. l621:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "h5")) goto l622; goto l609;
  3508. l622:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "h6")) goto l623; goto l609;
  3509. l623:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "hr")) goto l624; goto l609;
  3510. l624:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "isindex")) goto l625; goto l609;
  3511. l625:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "menu")) goto l626; goto l609;
  3512. l626:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "noframes")) goto l627; goto l609;
  3513. l627:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "noscript")) goto l628; goto l609;
  3514. l628:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "ol")) goto l629; goto l609;
  3515. l629:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchChar(G, 'p')) goto l630; goto l609;
  3516. l630:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "pre")) goto l631; goto l609;
  3517. l631:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "table")) goto l632; goto l609;
  3518. l632:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "ul")) goto l633; goto l609;
  3519. l633:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "dd")) goto l634; goto l609;
  3520. l634:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "dt")) goto l635; goto l609;
  3521. l635:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "frameset")) goto l636; goto l609;
  3522. l636:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "li")) goto l637; goto l609;
  3523. l637:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "tbody")) goto l638; goto l609;
  3524. l638:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "td")) goto l639; goto l609;
  3525. l639:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "tfoot")) goto l640; goto l609;
  3526. l640:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "th")) goto l641; goto l609;
  3527. l641:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "thead")) goto l642; goto l609;
  3528. l642:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "tr")) goto l643; goto l609;
  3529. l643:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "script")) goto l644; goto l609;
  3530. l644:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "ADDRESS")) goto l645; goto l609;
  3531. l645:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "BLOCKQUOTE")) goto l646; goto l609;
  3532. l646:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "CENTER")) goto l647; goto l609;
  3533. l647:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "DIR")) goto l648; goto l609;
  3534. l648:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "DIV")) goto l649; goto l609;
  3535. l649:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "DL")) goto l650; goto l609;
  3536. l650:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "FIELDSET")) goto l651; goto l609;
  3537. l651:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "FORM")) goto l652; goto l609;
  3538. l652:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "H1")) goto l653; goto l609;
  3539. l653:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "H2")) goto l654; goto l609;
  3540. l654:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "H3")) goto l655; goto l609;
  3541. l655:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "H4")) goto l656; goto l609;
  3542. l656:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "H5")) goto l657; goto l609;
  3543. l657:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "H6")) goto l658; goto l609;
  3544. l658:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "HR")) goto l659; goto l609;
  3545. l659:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "ISINDEX")) goto l660; goto l609;
  3546. l660:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "MENU")) goto l661; goto l609;
  3547. l661:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "NOFRAMES")) goto l662; goto l609;
  3548. l662:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "NOSCRIPT")) goto l663; goto l609;
  3549. l663:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "OL")) goto l664; goto l609;
  3550. l664:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchChar(G, 'P')) goto l665; goto l609;
  3551. l665:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "PRE")) goto l666; goto l609;
  3552. l666:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "TABLE")) goto l667; goto l609;
  3553. l667:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "UL")) goto l668; goto l609;
  3554. l668:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "DD")) goto l669; goto l609;
  3555. l669:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "DT")) goto l670; goto l609;
  3556. l670:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "FRAMESET")) goto l671; goto l609;
  3557. l671:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "LI")) goto l672; goto l609;
  3558. l672:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "TBODY")) goto l673; goto l609;
  3559. l673:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "TD")) goto l674; goto l609;
  3560. l674:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "TFOOT")) goto l675; goto l609;
  3561. l675:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "TH")) goto l676; goto l609;
  3562. l676:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "THEAD")) goto l677; goto l609;
  3563. l677:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "TR")) goto l678; goto l609;
  3564. l678:; G->pos= yypos609; G->thunkpos= yythunkpos609; if (!yymatchString(G, "SCRIPT")) goto l608;
  3565. }
  3566. l609:;
  3567. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3568. return 1;
  3569. l608:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3570. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3571. return 0;
  3572. }
  3573. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G)
  3574. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3575. yyprintf((stderr, "%s\n", "HtmlBlockSelfClosing")); if (!yymatchChar(G, '<')) goto l679; if (!yy_Spnl(G)) { goto l679; } if (!yy_HtmlBlockType(G)) { goto l679; } if (!yy_Spnl(G)) { goto l679; }
  3576. l680:;
  3577. { int yypos681= G->pos, yythunkpos681= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l681; } goto l680;
  3578. l681:; G->pos= yypos681; G->thunkpos= yythunkpos681;
  3579. } if (!yymatchChar(G, '/')) goto l679; if (!yy_Spnl(G)) { goto l679; } if (!yymatchChar(G, '>')) goto l679;
  3580. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3581. return 1;
  3582. l679:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3583. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3584. return 0;
  3585. }
  3586. YY_RULE(int) yy_HtmlComment(GREG *G)
  3587. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3588. yyprintf((stderr, "%s\n", "HtmlComment")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l682; if (!yy_LocMarker(G)) { goto l682; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "<!--")) goto l682;
  3589. l683:;
  3590. { int yypos684= G->pos, yythunkpos684= G->thunkpos;
  3591. { int yypos685= G->pos, yythunkpos685= G->thunkpos; if (!yymatchString(G, "-->")) goto l685; goto l684;
  3592. l685:; G->pos= yypos685; G->thunkpos= yythunkpos685;
  3593. } if (!yymatchDot(G)) goto l684; goto l683;
  3594. l684:; G->pos= yypos684; G->thunkpos= yythunkpos684;
  3595. } if (!yymatchString(G, "-->")) goto l682; yyText(G, G->begin, G->end); if (!(YY_END)) goto l682; yyDo(G, yy_1_HtmlComment, G->begin, G->end);
  3596. yyprintf((stderr, " ok %s @ %s\n", "HtmlComment", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3597. return 1;
  3598. l682:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3599. yyprintf((stderr, " fail %s @ %s\n", "HtmlComment", G->buf+G->pos));
  3600. return 0;
  3601. }
  3602. YY_RULE(int) yy_HtmlBlockInTags(GREG *G)
  3603. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3604. yyprintf((stderr, "%s\n", "HtmlBlockInTags"));
  3605. { int yypos687= G->pos, yythunkpos687= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l688; } goto l687;
  3606. l688:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockBlockquote(G)) { goto l689; } goto l687;
  3607. l689:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockCenter(G)) { goto l690; } goto l687;
  3608. l690:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockDir(G)) { goto l691; } goto l687;
  3609. l691:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockDiv(G)) { goto l692; } goto l687;
  3610. l692:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockDl(G)) { goto l693; } goto l687;
  3611. l693:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockFieldset(G)) { goto l694; } goto l687;
  3612. l694:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockForm(G)) { goto l695; } goto l687;
  3613. l695:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockH1(G)) { goto l696; } goto l687;
  3614. l696:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockH2(G)) { goto l697; } goto l687;
  3615. l697:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockH3(G)) { goto l698; } goto l687;
  3616. l698:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockH4(G)) { goto l699; } goto l687;
  3617. l699:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockH5(G)) { goto l700; } goto l687;
  3618. l700:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockH6(G)) { goto l701; } goto l687;
  3619. l701:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockMenu(G)) { goto l702; } goto l687;
  3620. l702:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockNoframes(G)) { goto l703; } goto l687;
  3621. l703:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockNoscript(G)) { goto l704; } goto l687;
  3622. l704:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockOl(G)) { goto l705; } goto l687;
  3623. l705:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockP(G)) { goto l706; } goto l687;
  3624. l706:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockPre(G)) { goto l707; } goto l687;
  3625. l707:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockTable(G)) { goto l708; } goto l687;
  3626. l708:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockUl(G)) { goto l709; } goto l687;
  3627. l709:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockDd(G)) { goto l710; } goto l687;
  3628. l710:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockDt(G)) { goto l711; } goto l687;
  3629. l711:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockFrameset(G)) { goto l712; } goto l687;
  3630. l712:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockLi(G)) { goto l713; } goto l687;
  3631. l713:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockTbody(G)) { goto l714; } goto l687;
  3632. l714:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockTd(G)) { goto l715; } goto l687;
  3633. l715:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockTfoot(G)) { goto l716; } goto l687;
  3634. l716:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockTh(G)) { goto l717; } goto l687;
  3635. l717:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockThead(G)) { goto l718; } goto l687;
  3636. l718:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockTr(G)) { goto l719; } goto l687;
  3637. l719:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockScript(G)) { goto l720; } goto l687;
  3638. l720:; G->pos= yypos687; G->thunkpos= yythunkpos687; if (!yy_HtmlBlockHead(G)) { goto l686; }
  3639. }
  3640. l687:;
  3641. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3642. return 1;
  3643. l686:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3644. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3645. return 0;
  3646. }
  3647. YY_RULE(int) yy_HtmlBlockHead(GREG *G)
  3648. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3649. yyprintf((stderr, "%s\n", "HtmlBlockHead")); if (!yy_HtmlBlockOpenHead(G)) { goto l721; }
  3650. l722:;
  3651. { int yypos723= G->pos, yythunkpos723= G->thunkpos;
  3652. { int yypos724= G->pos, yythunkpos724= G->thunkpos; if (!yy_HtmlBlockCloseHead(G)) { goto l724; } goto l723;
  3653. l724:; G->pos= yypos724; G->thunkpos= yythunkpos724;
  3654. } if (!yymatchDot(G)) goto l723; goto l722;
  3655. l723:; G->pos= yypos723; G->thunkpos= yythunkpos723;
  3656. } if (!yy_HtmlBlockCloseHead(G)) { goto l721; }
  3657. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3658. return 1;
  3659. l721:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3660. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3661. return 0;
  3662. }
  3663. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G)
  3664. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3665. yyprintf((stderr, "%s\n", "HtmlBlockCloseHead")); if (!yymatchChar(G, '<')) goto l725; if (!yy_Spnl(G)) { goto l725; } if (!yymatchChar(G, '/')) goto l725;
  3666. { int yypos726= G->pos, yythunkpos726= G->thunkpos; if (!yymatchString(G, "head")) goto l727; goto l726;
  3667. l727:; G->pos= yypos726; G->thunkpos= yythunkpos726; if (!yymatchString(G, "HEAD")) goto l725;
  3668. }
  3669. l726:; if (!yy_Spnl(G)) { goto l725; } if (!yymatchChar(G, '>')) goto l725;
  3670. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3671. return 1;
  3672. l725:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3673. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3674. return 0;
  3675. }
  3676. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G)
  3677. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3678. yyprintf((stderr, "%s\n", "HtmlBlockOpenHead")); if (!yymatchChar(G, '<')) goto l728; if (!yy_Spnl(G)) { goto l728; }
  3679. { int yypos729= G->pos, yythunkpos729= G->thunkpos; if (!yymatchString(G, "head")) goto l730; goto l729;
  3680. l730:; G->pos= yypos729; G->thunkpos= yythunkpos729; if (!yymatchString(G, "HEAD")) goto l728;
  3681. }
  3682. l729:; if (!yy_Spnl(G)) { goto l728; }
  3683. l731:;
  3684. { int yypos732= G->pos, yythunkpos732= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l732; } goto l731;
  3685. l732:; G->pos= yypos732; G->thunkpos= yythunkpos732;
  3686. } if (!yymatchChar(G, '>')) goto l728;
  3687. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3688. return 1;
  3689. l728:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3690. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3691. return 0;
  3692. }
  3693. YY_RULE(int) yy_HtmlBlockScript(GREG *G)
  3694. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3695. yyprintf((stderr, "%s\n", "HtmlBlockScript")); if (!yy_HtmlBlockOpenScript(G)) { goto l733; }
  3696. l734:;
  3697. { int yypos735= G->pos, yythunkpos735= G->thunkpos;
  3698. { int yypos736= G->pos, yythunkpos736= G->thunkpos; if (!yy_HtmlBlockCloseScript(G)) { goto l736; } goto l735;
  3699. l736:; G->pos= yypos736; G->thunkpos= yythunkpos736;
  3700. } if (!yymatchDot(G)) goto l735; goto l734;
  3701. l735:; G->pos= yypos735; G->thunkpos= yythunkpos735;
  3702. } if (!yy_HtmlBlockCloseScript(G)) { goto l733; }
  3703. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  3704. return 1;
  3705. l733:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3706. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  3707. return 0;
  3708. }
  3709. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G)
  3710. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3711. yyprintf((stderr, "%s\n", "HtmlBlockCloseScript")); if (!yymatchChar(G, '<')) goto l737; if (!yy_Spnl(G)) { goto l737; } if (!yymatchChar(G, '/')) goto l737;
  3712. { int yypos738= G->pos, yythunkpos738= G->thunkpos; if (!yymatchString(G, "script")) goto l739; goto l738;
  3713. l739:; G->pos= yypos738; G->thunkpos= yythunkpos738; if (!yymatchString(G, "SCRIPT")) goto l737;
  3714. }
  3715. l738:; if (!yy_Spnl(G)) { goto l737; } if (!yymatchChar(G, '>')) goto l737;
  3716. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  3717. return 1;
  3718. l737:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3719. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  3720. return 0;
  3721. }
  3722. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G)
  3723. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3724. yyprintf((stderr, "%s\n", "HtmlBlockOpenScript")); if (!yymatchChar(G, '<')) goto l740; if (!yy_Spnl(G)) { goto l740; }
  3725. { int yypos741= G->pos, yythunkpos741= G->thunkpos; if (!yymatchString(G, "script")) goto l742; goto l741;
  3726. l742:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yymatchString(G, "SCRIPT")) goto l740;
  3727. }
  3728. l741:; if (!yy_Spnl(G)) { goto l740; }
  3729. l743:;
  3730. { int yypos744= G->pos, yythunkpos744= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l744; } goto l743;
  3731. l744:; G->pos= yypos744; G->thunkpos= yythunkpos744;
  3732. } if (!yymatchChar(G, '>')) goto l740;
  3733. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  3734. return 1;
  3735. l740:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3736. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  3737. return 0;
  3738. }
  3739. YY_RULE(int) yy_HtmlBlockTr(GREG *G)
  3740. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3741. yyprintf((stderr, "%s\n", "HtmlBlockTr")); if (!yy_HtmlBlockOpenTr(G)) { goto l745; }
  3742. l746:;
  3743. { int yypos747= G->pos, yythunkpos747= G->thunkpos;
  3744. { int yypos748= G->pos, yythunkpos748= G->thunkpos; if (!yy_HtmlBlockTr(G)) { goto l749; } goto l748;
  3745. l749:; G->pos= yypos748; G->thunkpos= yythunkpos748;
  3746. { int yypos750= G->pos, yythunkpos750= G->thunkpos; if (!yy_HtmlBlockCloseTr(G)) { goto l750; } goto l747;
  3747. l750:; G->pos= yypos750; G->thunkpos= yythunkpos750;
  3748. } if (!yymatchDot(G)) goto l747;
  3749. }
  3750. l748:; goto l746;
  3751. l747:; G->pos= yypos747; G->thunkpos= yythunkpos747;
  3752. } if (!yy_HtmlBlockCloseTr(G)) { goto l745; }
  3753. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  3754. return 1;
  3755. l745:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3756. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  3757. return 0;
  3758. }
  3759. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G)
  3760. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3761. yyprintf((stderr, "%s\n", "HtmlBlockCloseTr")); if (!yymatchChar(G, '<')) goto l751; if (!yy_Spnl(G)) { goto l751; } if (!yymatchChar(G, '/')) goto l751;
  3762. { int yypos752= G->pos, yythunkpos752= G->thunkpos; if (!yymatchString(G, "tr")) goto l753; goto l752;
  3763. l753:; G->pos= yypos752; G->thunkpos= yythunkpos752; if (!yymatchString(G, "TR")) goto l751;
  3764. }
  3765. l752:; if (!yy_Spnl(G)) { goto l751; } if (!yymatchChar(G, '>')) goto l751;
  3766. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  3767. return 1;
  3768. l751:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3769. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  3770. return 0;
  3771. }
  3772. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G)
  3773. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3774. yyprintf((stderr, "%s\n", "HtmlBlockOpenTr")); if (!yymatchChar(G, '<')) goto l754; if (!yy_Spnl(G)) { goto l754; }
  3775. { int yypos755= G->pos, yythunkpos755= G->thunkpos; if (!yymatchString(G, "tr")) goto l756; goto l755;
  3776. l756:; G->pos= yypos755; G->thunkpos= yythunkpos755; if (!yymatchString(G, "TR")) goto l754;
  3777. }
  3778. l755:; if (!yy_Spnl(G)) { goto l754; }
  3779. l757:;
  3780. { int yypos758= G->pos, yythunkpos758= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l758; } goto l757;
  3781. l758:; G->pos= yypos758; G->thunkpos= yythunkpos758;
  3782. } if (!yymatchChar(G, '>')) goto l754;
  3783. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  3784. return 1;
  3785. l754:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3786. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  3787. return 0;
  3788. }
  3789. YY_RULE(int) yy_HtmlBlockThead(GREG *G)
  3790. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3791. yyprintf((stderr, "%s\n", "HtmlBlockThead")); if (!yy_HtmlBlockOpenThead(G)) { goto l759; }
  3792. l760:;
  3793. { int yypos761= G->pos, yythunkpos761= G->thunkpos;
  3794. { int yypos762= G->pos, yythunkpos762= G->thunkpos; if (!yy_HtmlBlockThead(G)) { goto l763; } goto l762;
  3795. l763:; G->pos= yypos762; G->thunkpos= yythunkpos762;
  3796. { int yypos764= G->pos, yythunkpos764= G->thunkpos; if (!yy_HtmlBlockCloseThead(G)) { goto l764; } goto l761;
  3797. l764:; G->pos= yypos764; G->thunkpos= yythunkpos764;
  3798. } if (!yymatchDot(G)) goto l761;
  3799. }
  3800. l762:; goto l760;
  3801. l761:; G->pos= yypos761; G->thunkpos= yythunkpos761;
  3802. } if (!yy_HtmlBlockCloseThead(G)) { goto l759; }
  3803. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  3804. return 1;
  3805. l759:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3806. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  3807. return 0;
  3808. }
  3809. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G)
  3810. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3811. yyprintf((stderr, "%s\n", "HtmlBlockCloseThead")); if (!yymatchChar(G, '<')) goto l765; if (!yy_Spnl(G)) { goto l765; } if (!yymatchChar(G, '/')) goto l765;
  3812. { int yypos766= G->pos, yythunkpos766= G->thunkpos; if (!yymatchString(G, "thead")) goto l767; goto l766;
  3813. l767:; G->pos= yypos766; G->thunkpos= yythunkpos766; if (!yymatchString(G, "THEAD")) goto l765;
  3814. }
  3815. l766:; if (!yy_Spnl(G)) { goto l765; } if (!yymatchChar(G, '>')) goto l765;
  3816. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  3817. return 1;
  3818. l765:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3819. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  3820. return 0;
  3821. }
  3822. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G)
  3823. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3824. yyprintf((stderr, "%s\n", "HtmlBlockOpenThead")); if (!yymatchChar(G, '<')) goto l768; if (!yy_Spnl(G)) { goto l768; }
  3825. { int yypos769= G->pos, yythunkpos769= G->thunkpos; if (!yymatchString(G, "thead")) goto l770; goto l769;
  3826. l770:; G->pos= yypos769; G->thunkpos= yythunkpos769; if (!yymatchString(G, "THEAD")) goto l768;
  3827. }
  3828. l769:; if (!yy_Spnl(G)) { goto l768; }
  3829. l771:;
  3830. { int yypos772= G->pos, yythunkpos772= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l772; } goto l771;
  3831. l772:; G->pos= yypos772; G->thunkpos= yythunkpos772;
  3832. } if (!yymatchChar(G, '>')) goto l768;
  3833. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  3834. return 1;
  3835. l768:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3836. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  3837. return 0;
  3838. }
  3839. YY_RULE(int) yy_HtmlBlockTh(GREG *G)
  3840. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3841. yyprintf((stderr, "%s\n", "HtmlBlockTh")); if (!yy_HtmlBlockOpenTh(G)) { goto l773; }
  3842. l774:;
  3843. { int yypos775= G->pos, yythunkpos775= G->thunkpos;
  3844. { int yypos776= G->pos, yythunkpos776= G->thunkpos; if (!yy_HtmlBlockTh(G)) { goto l777; } goto l776;
  3845. l777:; G->pos= yypos776; G->thunkpos= yythunkpos776;
  3846. { int yypos778= G->pos, yythunkpos778= G->thunkpos; if (!yy_HtmlBlockCloseTh(G)) { goto l778; } goto l775;
  3847. l778:; G->pos= yypos778; G->thunkpos= yythunkpos778;
  3848. } if (!yymatchDot(G)) goto l775;
  3849. }
  3850. l776:; goto l774;
  3851. l775:; G->pos= yypos775; G->thunkpos= yythunkpos775;
  3852. } if (!yy_HtmlBlockCloseTh(G)) { goto l773; }
  3853. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  3854. return 1;
  3855. l773:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3856. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  3857. return 0;
  3858. }
  3859. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G)
  3860. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3861. yyprintf((stderr, "%s\n", "HtmlBlockCloseTh")); if (!yymatchChar(G, '<')) goto l779; if (!yy_Spnl(G)) { goto l779; } if (!yymatchChar(G, '/')) goto l779;
  3862. { int yypos780= G->pos, yythunkpos780= G->thunkpos; if (!yymatchString(G, "th")) goto l781; goto l780;
  3863. l781:; G->pos= yypos780; G->thunkpos= yythunkpos780; if (!yymatchString(G, "TH")) goto l779;
  3864. }
  3865. l780:; if (!yy_Spnl(G)) { goto l779; } if (!yymatchChar(G, '>')) goto l779;
  3866. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  3867. return 1;
  3868. l779:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3869. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  3870. return 0;
  3871. }
  3872. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G)
  3873. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3874. yyprintf((stderr, "%s\n", "HtmlBlockOpenTh")); if (!yymatchChar(G, '<')) goto l782; if (!yy_Spnl(G)) { goto l782; }
  3875. { int yypos783= G->pos, yythunkpos783= G->thunkpos; if (!yymatchString(G, "th")) goto l784; goto l783;
  3876. l784:; G->pos= yypos783; G->thunkpos= yythunkpos783; if (!yymatchString(G, "TH")) goto l782;
  3877. }
  3878. l783:; if (!yy_Spnl(G)) { goto l782; }
  3879. l785:;
  3880. { int yypos786= G->pos, yythunkpos786= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l786; } goto l785;
  3881. l786:; G->pos= yypos786; G->thunkpos= yythunkpos786;
  3882. } if (!yymatchChar(G, '>')) goto l782;
  3883. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  3884. return 1;
  3885. l782:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3886. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  3887. return 0;
  3888. }
  3889. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G)
  3890. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3891. yyprintf((stderr, "%s\n", "HtmlBlockTfoot")); if (!yy_HtmlBlockOpenTfoot(G)) { goto l787; }
  3892. l788:;
  3893. { int yypos789= G->pos, yythunkpos789= G->thunkpos;
  3894. { int yypos790= G->pos, yythunkpos790= G->thunkpos; if (!yy_HtmlBlockTfoot(G)) { goto l791; } goto l790;
  3895. l791:; G->pos= yypos790; G->thunkpos= yythunkpos790;
  3896. { int yypos792= G->pos, yythunkpos792= G->thunkpos; if (!yy_HtmlBlockCloseTfoot(G)) { goto l792; } goto l789;
  3897. l792:; G->pos= yypos792; G->thunkpos= yythunkpos792;
  3898. } if (!yymatchDot(G)) goto l789;
  3899. }
  3900. l790:; goto l788;
  3901. l789:; G->pos= yypos789; G->thunkpos= yythunkpos789;
  3902. } if (!yy_HtmlBlockCloseTfoot(G)) { goto l787; }
  3903. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  3904. return 1;
  3905. l787:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3906. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  3907. return 0;
  3908. }
  3909. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G)
  3910. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3911. yyprintf((stderr, "%s\n", "HtmlBlockCloseTfoot")); if (!yymatchChar(G, '<')) goto l793; if (!yy_Spnl(G)) { goto l793; } if (!yymatchChar(G, '/')) goto l793;
  3912. { int yypos794= G->pos, yythunkpos794= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l795; goto l794;
  3913. l795:; G->pos= yypos794; G->thunkpos= yythunkpos794; if (!yymatchString(G, "TFOOT")) goto l793;
  3914. }
  3915. l794:; if (!yy_Spnl(G)) { goto l793; } if (!yymatchChar(G, '>')) goto l793;
  3916. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  3917. return 1;
  3918. l793:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3919. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  3920. return 0;
  3921. }
  3922. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G)
  3923. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3924. yyprintf((stderr, "%s\n", "HtmlBlockOpenTfoot")); if (!yymatchChar(G, '<')) goto l796; if (!yy_Spnl(G)) { goto l796; }
  3925. { int yypos797= G->pos, yythunkpos797= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l798; goto l797;
  3926. l798:; G->pos= yypos797; G->thunkpos= yythunkpos797; if (!yymatchString(G, "TFOOT")) goto l796;
  3927. }
  3928. l797:; if (!yy_Spnl(G)) { goto l796; }
  3929. l799:;
  3930. { int yypos800= G->pos, yythunkpos800= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l800; } goto l799;
  3931. l800:; G->pos= yypos800; G->thunkpos= yythunkpos800;
  3932. } if (!yymatchChar(G, '>')) goto l796;
  3933. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  3934. return 1;
  3935. l796:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3936. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  3937. return 0;
  3938. }
  3939. YY_RULE(int) yy_HtmlBlockTd(GREG *G)
  3940. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3941. yyprintf((stderr, "%s\n", "HtmlBlockTd")); if (!yy_HtmlBlockOpenTd(G)) { goto l801; }
  3942. l802:;
  3943. { int yypos803= G->pos, yythunkpos803= G->thunkpos;
  3944. { int yypos804= G->pos, yythunkpos804= G->thunkpos; if (!yy_HtmlBlockTd(G)) { goto l805; } goto l804;
  3945. l805:; G->pos= yypos804; G->thunkpos= yythunkpos804;
  3946. { int yypos806= G->pos, yythunkpos806= G->thunkpos; if (!yy_HtmlBlockCloseTd(G)) { goto l806; } goto l803;
  3947. l806:; G->pos= yypos806; G->thunkpos= yythunkpos806;
  3948. } if (!yymatchDot(G)) goto l803;
  3949. }
  3950. l804:; goto l802;
  3951. l803:; G->pos= yypos803; G->thunkpos= yythunkpos803;
  3952. } if (!yy_HtmlBlockCloseTd(G)) { goto l801; }
  3953. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  3954. return 1;
  3955. l801:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3956. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  3957. return 0;
  3958. }
  3959. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G)
  3960. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3961. yyprintf((stderr, "%s\n", "HtmlBlockCloseTd")); if (!yymatchChar(G, '<')) goto l807; if (!yy_Spnl(G)) { goto l807; } if (!yymatchChar(G, '/')) goto l807;
  3962. { int yypos808= G->pos, yythunkpos808= G->thunkpos; if (!yymatchString(G, "td")) goto l809; goto l808;
  3963. l809:; G->pos= yypos808; G->thunkpos= yythunkpos808; if (!yymatchString(G, "TD")) goto l807;
  3964. }
  3965. l808:; if (!yy_Spnl(G)) { goto l807; } if (!yymatchChar(G, '>')) goto l807;
  3966. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  3967. return 1;
  3968. l807:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3969. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  3970. return 0;
  3971. }
  3972. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G)
  3973. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3974. yyprintf((stderr, "%s\n", "HtmlBlockOpenTd")); if (!yymatchChar(G, '<')) goto l810; if (!yy_Spnl(G)) { goto l810; }
  3975. { int yypos811= G->pos, yythunkpos811= G->thunkpos; if (!yymatchString(G, "td")) goto l812; goto l811;
  3976. l812:; G->pos= yypos811; G->thunkpos= yythunkpos811; if (!yymatchString(G, "TD")) goto l810;
  3977. }
  3978. l811:; if (!yy_Spnl(G)) { goto l810; }
  3979. l813:;
  3980. { int yypos814= G->pos, yythunkpos814= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l814; } goto l813;
  3981. l814:; G->pos= yypos814; G->thunkpos= yythunkpos814;
  3982. } if (!yymatchChar(G, '>')) goto l810;
  3983. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  3984. return 1;
  3985. l810:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3986. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  3987. return 0;
  3988. }
  3989. YY_RULE(int) yy_HtmlBlockTbody(GREG *G)
  3990. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3991. yyprintf((stderr, "%s\n", "HtmlBlockTbody")); if (!yy_HtmlBlockOpenTbody(G)) { goto l815; }
  3992. l816:;
  3993. { int yypos817= G->pos, yythunkpos817= G->thunkpos;
  3994. { int yypos818= G->pos, yythunkpos818= G->thunkpos; if (!yy_HtmlBlockTbody(G)) { goto l819; } goto l818;
  3995. l819:; G->pos= yypos818; G->thunkpos= yythunkpos818;
  3996. { int yypos820= G->pos, yythunkpos820= G->thunkpos; if (!yy_HtmlBlockCloseTbody(G)) { goto l820; } goto l817;
  3997. l820:; G->pos= yypos820; G->thunkpos= yythunkpos820;
  3998. } if (!yymatchDot(G)) goto l817;
  3999. }
  4000. l818:; goto l816;
  4001. l817:; G->pos= yypos817; G->thunkpos= yythunkpos817;
  4002. } if (!yy_HtmlBlockCloseTbody(G)) { goto l815; }
  4003. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  4004. return 1;
  4005. l815:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4006. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  4007. return 0;
  4008. }
  4009. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G)
  4010. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4011. yyprintf((stderr, "%s\n", "HtmlBlockCloseTbody")); if (!yymatchChar(G, '<')) goto l821; if (!yy_Spnl(G)) { goto l821; } if (!yymatchChar(G, '/')) goto l821;
  4012. { int yypos822= G->pos, yythunkpos822= G->thunkpos; if (!yymatchString(G, "tbody")) goto l823; goto l822;
  4013. l823:; G->pos= yypos822; G->thunkpos= yythunkpos822; if (!yymatchString(G, "TBODY")) goto l821;
  4014. }
  4015. l822:; if (!yy_Spnl(G)) { goto l821; } if (!yymatchChar(G, '>')) goto l821;
  4016. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4017. return 1;
  4018. l821:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4019. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4020. return 0;
  4021. }
  4022. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G)
  4023. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4024. yyprintf((stderr, "%s\n", "HtmlBlockOpenTbody")); if (!yymatchChar(G, '<')) goto l824; if (!yy_Spnl(G)) { goto l824; }
  4025. { int yypos825= G->pos, yythunkpos825= G->thunkpos; if (!yymatchString(G, "tbody")) goto l826; goto l825;
  4026. l826:; G->pos= yypos825; G->thunkpos= yythunkpos825; if (!yymatchString(G, "TBODY")) goto l824;
  4027. }
  4028. l825:; if (!yy_Spnl(G)) { goto l824; }
  4029. l827:;
  4030. { int yypos828= G->pos, yythunkpos828= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l828; } goto l827;
  4031. l828:; G->pos= yypos828; G->thunkpos= yythunkpos828;
  4032. } if (!yymatchChar(G, '>')) goto l824;
  4033. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4034. return 1;
  4035. l824:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4036. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4037. return 0;
  4038. }
  4039. YY_RULE(int) yy_HtmlBlockLi(GREG *G)
  4040. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4041. yyprintf((stderr, "%s\n", "HtmlBlockLi")); if (!yy_HtmlBlockOpenLi(G)) { goto l829; }
  4042. l830:;
  4043. { int yypos831= G->pos, yythunkpos831= G->thunkpos;
  4044. { int yypos832= G->pos, yythunkpos832= G->thunkpos; if (!yy_HtmlBlockLi(G)) { goto l833; } goto l832;
  4045. l833:; G->pos= yypos832; G->thunkpos= yythunkpos832;
  4046. { int yypos834= G->pos, yythunkpos834= G->thunkpos; if (!yy_HtmlBlockCloseLi(G)) { goto l834; } goto l831;
  4047. l834:; G->pos= yypos834; G->thunkpos= yythunkpos834;
  4048. } if (!yymatchDot(G)) goto l831;
  4049. }
  4050. l832:; goto l830;
  4051. l831:; G->pos= yypos831; G->thunkpos= yythunkpos831;
  4052. } if (!yy_HtmlBlockCloseLi(G)) { goto l829; }
  4053. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4054. return 1;
  4055. l829:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4056. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4057. return 0;
  4058. }
  4059. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G)
  4060. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4061. yyprintf((stderr, "%s\n", "HtmlBlockCloseLi")); if (!yymatchChar(G, '<')) goto l835; if (!yy_Spnl(G)) { goto l835; } if (!yymatchChar(G, '/')) goto l835;
  4062. { int yypos836= G->pos, yythunkpos836= G->thunkpos; if (!yymatchString(G, "li")) goto l837; goto l836;
  4063. l837:; G->pos= yypos836; G->thunkpos= yythunkpos836; if (!yymatchString(G, "LI")) goto l835;
  4064. }
  4065. l836:; if (!yy_Spnl(G)) { goto l835; } if (!yymatchChar(G, '>')) goto l835;
  4066. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4067. return 1;
  4068. l835:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4069. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4070. return 0;
  4071. }
  4072. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G)
  4073. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4074. yyprintf((stderr, "%s\n", "HtmlBlockOpenLi")); if (!yymatchChar(G, '<')) goto l838; if (!yy_Spnl(G)) { goto l838; }
  4075. { int yypos839= G->pos, yythunkpos839= G->thunkpos; if (!yymatchString(G, "li")) goto l840; goto l839;
  4076. l840:; G->pos= yypos839; G->thunkpos= yythunkpos839; if (!yymatchString(G, "LI")) goto l838;
  4077. }
  4078. l839:; if (!yy_Spnl(G)) { goto l838; }
  4079. l841:;
  4080. { int yypos842= G->pos, yythunkpos842= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l842; } goto l841;
  4081. l842:; G->pos= yypos842; G->thunkpos= yythunkpos842;
  4082. } if (!yymatchChar(G, '>')) goto l838;
  4083. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4084. return 1;
  4085. l838:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4086. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4087. return 0;
  4088. }
  4089. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G)
  4090. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4091. yyprintf((stderr, "%s\n", "HtmlBlockFrameset")); if (!yy_HtmlBlockOpenFrameset(G)) { goto l843; }
  4092. l844:;
  4093. { int yypos845= G->pos, yythunkpos845= G->thunkpos;
  4094. { int yypos846= G->pos, yythunkpos846= G->thunkpos; if (!yy_HtmlBlockFrameset(G)) { goto l847; } goto l846;
  4095. l847:; G->pos= yypos846; G->thunkpos= yythunkpos846;
  4096. { int yypos848= G->pos, yythunkpos848= G->thunkpos; if (!yy_HtmlBlockCloseFrameset(G)) { goto l848; } goto l845;
  4097. l848:; G->pos= yypos848; G->thunkpos= yythunkpos848;
  4098. } if (!yymatchDot(G)) goto l845;
  4099. }
  4100. l846:; goto l844;
  4101. l845:; G->pos= yypos845; G->thunkpos= yythunkpos845;
  4102. } if (!yy_HtmlBlockCloseFrameset(G)) { goto l843; }
  4103. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4104. return 1;
  4105. l843:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4106. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4107. return 0;
  4108. }
  4109. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G)
  4110. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4111. yyprintf((stderr, "%s\n", "HtmlBlockCloseFrameset")); if (!yymatchChar(G, '<')) goto l849; if (!yy_Spnl(G)) { goto l849; } if (!yymatchChar(G, '/')) goto l849;
  4112. { int yypos850= G->pos, yythunkpos850= G->thunkpos; if (!yymatchString(G, "frameset")) goto l851; goto l850;
  4113. l851:; G->pos= yypos850; G->thunkpos= yythunkpos850; if (!yymatchString(G, "FRAMESET")) goto l849;
  4114. }
  4115. l850:; if (!yy_Spnl(G)) { goto l849; } if (!yymatchChar(G, '>')) goto l849;
  4116. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4117. return 1;
  4118. l849:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4119. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4120. return 0;
  4121. }
  4122. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G)
  4123. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4124. yyprintf((stderr, "%s\n", "HtmlBlockOpenFrameset")); if (!yymatchChar(G, '<')) goto l852; if (!yy_Spnl(G)) { goto l852; }
  4125. { int yypos853= G->pos, yythunkpos853= G->thunkpos; if (!yymatchString(G, "frameset")) goto l854; goto l853;
  4126. l854:; G->pos= yypos853; G->thunkpos= yythunkpos853; if (!yymatchString(G, "FRAMESET")) goto l852;
  4127. }
  4128. l853:; if (!yy_Spnl(G)) { goto l852; }
  4129. l855:;
  4130. { int yypos856= G->pos, yythunkpos856= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l856; } goto l855;
  4131. l856:; G->pos= yypos856; G->thunkpos= yythunkpos856;
  4132. } if (!yymatchChar(G, '>')) goto l852;
  4133. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4134. return 1;
  4135. l852:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4136. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4137. return 0;
  4138. }
  4139. YY_RULE(int) yy_HtmlBlockDt(GREG *G)
  4140. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4141. yyprintf((stderr, "%s\n", "HtmlBlockDt")); if (!yy_HtmlBlockOpenDt(G)) { goto l857; }
  4142. l858:;
  4143. { int yypos859= G->pos, yythunkpos859= G->thunkpos;
  4144. { int yypos860= G->pos, yythunkpos860= G->thunkpos; if (!yy_HtmlBlockDt(G)) { goto l861; } goto l860;
  4145. l861:; G->pos= yypos860; G->thunkpos= yythunkpos860;
  4146. { int yypos862= G->pos, yythunkpos862= G->thunkpos; if (!yy_HtmlBlockCloseDt(G)) { goto l862; } goto l859;
  4147. l862:; G->pos= yypos862; G->thunkpos= yythunkpos862;
  4148. } if (!yymatchDot(G)) goto l859;
  4149. }
  4150. l860:; goto l858;
  4151. l859:; G->pos= yypos859; G->thunkpos= yythunkpos859;
  4152. } if (!yy_HtmlBlockCloseDt(G)) { goto l857; }
  4153. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4154. return 1;
  4155. l857:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4156. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4157. return 0;
  4158. }
  4159. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G)
  4160. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4161. yyprintf((stderr, "%s\n", "HtmlBlockCloseDt")); if (!yymatchChar(G, '<')) goto l863; if (!yy_Spnl(G)) { goto l863; } if (!yymatchChar(G, '/')) goto l863;
  4162. { int yypos864= G->pos, yythunkpos864= G->thunkpos; if (!yymatchString(G, "dt")) goto l865; goto l864;
  4163. l865:; G->pos= yypos864; G->thunkpos= yythunkpos864; if (!yymatchString(G, "DT")) goto l863;
  4164. }
  4165. l864:; if (!yy_Spnl(G)) { goto l863; } if (!yymatchChar(G, '>')) goto l863;
  4166. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4167. return 1;
  4168. l863:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4169. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4170. return 0;
  4171. }
  4172. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G)
  4173. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4174. yyprintf((stderr, "%s\n", "HtmlBlockOpenDt")); if (!yymatchChar(G, '<')) goto l866; if (!yy_Spnl(G)) { goto l866; }
  4175. { int yypos867= G->pos, yythunkpos867= G->thunkpos; if (!yymatchString(G, "dt")) goto l868; goto l867;
  4176. l868:; G->pos= yypos867; G->thunkpos= yythunkpos867; if (!yymatchString(G, "DT")) goto l866;
  4177. }
  4178. l867:; if (!yy_Spnl(G)) { goto l866; }
  4179. l869:;
  4180. { int yypos870= G->pos, yythunkpos870= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l870; } goto l869;
  4181. l870:; G->pos= yypos870; G->thunkpos= yythunkpos870;
  4182. } if (!yymatchChar(G, '>')) goto l866;
  4183. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4184. return 1;
  4185. l866:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4186. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4187. return 0;
  4188. }
  4189. YY_RULE(int) yy_HtmlBlockDd(GREG *G)
  4190. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4191. yyprintf((stderr, "%s\n", "HtmlBlockDd")); if (!yy_HtmlBlockOpenDd(G)) { goto l871; }
  4192. l872:;
  4193. { int yypos873= G->pos, yythunkpos873= G->thunkpos;
  4194. { int yypos874= G->pos, yythunkpos874= G->thunkpos; if (!yy_HtmlBlockDd(G)) { goto l875; } goto l874;
  4195. l875:; G->pos= yypos874; G->thunkpos= yythunkpos874;
  4196. { int yypos876= G->pos, yythunkpos876= G->thunkpos; if (!yy_HtmlBlockCloseDd(G)) { goto l876; } goto l873;
  4197. l876:; G->pos= yypos876; G->thunkpos= yythunkpos876;
  4198. } if (!yymatchDot(G)) goto l873;
  4199. }
  4200. l874:; goto l872;
  4201. l873:; G->pos= yypos873; G->thunkpos= yythunkpos873;
  4202. } if (!yy_HtmlBlockCloseDd(G)) { goto l871; }
  4203. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4204. return 1;
  4205. l871:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4206. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4207. return 0;
  4208. }
  4209. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G)
  4210. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4211. yyprintf((stderr, "%s\n", "HtmlBlockCloseDd")); if (!yymatchChar(G, '<')) goto l877; if (!yy_Spnl(G)) { goto l877; } if (!yymatchChar(G, '/')) goto l877;
  4212. { int yypos878= G->pos, yythunkpos878= G->thunkpos; if (!yymatchString(G, "dd")) goto l879; goto l878;
  4213. l879:; G->pos= yypos878; G->thunkpos= yythunkpos878; if (!yymatchString(G, "DD")) goto l877;
  4214. }
  4215. l878:; if (!yy_Spnl(G)) { goto l877; } if (!yymatchChar(G, '>')) goto l877;
  4216. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4217. return 1;
  4218. l877:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4219. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4220. return 0;
  4221. }
  4222. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G)
  4223. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4224. yyprintf((stderr, "%s\n", "HtmlBlockOpenDd")); if (!yymatchChar(G, '<')) goto l880; if (!yy_Spnl(G)) { goto l880; }
  4225. { int yypos881= G->pos, yythunkpos881= G->thunkpos; if (!yymatchString(G, "dd")) goto l882; goto l881;
  4226. l882:; G->pos= yypos881; G->thunkpos= yythunkpos881; if (!yymatchString(G, "DD")) goto l880;
  4227. }
  4228. l881:; if (!yy_Spnl(G)) { goto l880; }
  4229. l883:;
  4230. { int yypos884= G->pos, yythunkpos884= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l884; } goto l883;
  4231. l884:; G->pos= yypos884; G->thunkpos= yythunkpos884;
  4232. } if (!yymatchChar(G, '>')) goto l880;
  4233. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4234. return 1;
  4235. l880:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4236. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4237. return 0;
  4238. }
  4239. YY_RULE(int) yy_HtmlBlockUl(GREG *G)
  4240. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4241. yyprintf((stderr, "%s\n", "HtmlBlockUl")); if (!yy_HtmlBlockOpenUl(G)) { goto l885; }
  4242. l886:;
  4243. { int yypos887= G->pos, yythunkpos887= G->thunkpos;
  4244. { int yypos888= G->pos, yythunkpos888= G->thunkpos; if (!yy_HtmlBlockUl(G)) { goto l889; } goto l888;
  4245. l889:; G->pos= yypos888; G->thunkpos= yythunkpos888;
  4246. { int yypos890= G->pos, yythunkpos890= G->thunkpos; if (!yy_HtmlBlockCloseUl(G)) { goto l890; } goto l887;
  4247. l890:; G->pos= yypos890; G->thunkpos= yythunkpos890;
  4248. } if (!yymatchDot(G)) goto l887;
  4249. }
  4250. l888:; goto l886;
  4251. l887:; G->pos= yypos887; G->thunkpos= yythunkpos887;
  4252. } if (!yy_HtmlBlockCloseUl(G)) { goto l885; }
  4253. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4254. return 1;
  4255. l885:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4256. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4257. return 0;
  4258. }
  4259. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G)
  4260. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4261. yyprintf((stderr, "%s\n", "HtmlBlockCloseUl")); if (!yymatchChar(G, '<')) goto l891; if (!yy_Spnl(G)) { goto l891; } if (!yymatchChar(G, '/')) goto l891;
  4262. { int yypos892= G->pos, yythunkpos892= G->thunkpos; if (!yymatchString(G, "ul")) goto l893; goto l892;
  4263. l893:; G->pos= yypos892; G->thunkpos= yythunkpos892; if (!yymatchString(G, "UL")) goto l891;
  4264. }
  4265. l892:; if (!yy_Spnl(G)) { goto l891; } if (!yymatchChar(G, '>')) goto l891;
  4266. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4267. return 1;
  4268. l891:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4269. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4270. return 0;
  4271. }
  4272. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G)
  4273. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4274. yyprintf((stderr, "%s\n", "HtmlBlockOpenUl")); if (!yymatchChar(G, '<')) goto l894; if (!yy_Spnl(G)) { goto l894; }
  4275. { int yypos895= G->pos, yythunkpos895= G->thunkpos; if (!yymatchString(G, "ul")) goto l896; goto l895;
  4276. l896:; G->pos= yypos895; G->thunkpos= yythunkpos895; if (!yymatchString(G, "UL")) goto l894;
  4277. }
  4278. l895:; if (!yy_Spnl(G)) { goto l894; }
  4279. l897:;
  4280. { int yypos898= G->pos, yythunkpos898= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l898; } goto l897;
  4281. l898:; G->pos= yypos898; G->thunkpos= yythunkpos898;
  4282. } if (!yymatchChar(G, '>')) goto l894;
  4283. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4284. return 1;
  4285. l894:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4286. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4287. return 0;
  4288. }
  4289. YY_RULE(int) yy_HtmlBlockTable(GREG *G)
  4290. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4291. yyprintf((stderr, "%s\n", "HtmlBlockTable")); if (!yy_HtmlBlockOpenTable(G)) { goto l899; }
  4292. l900:;
  4293. { int yypos901= G->pos, yythunkpos901= G->thunkpos;
  4294. { int yypos902= G->pos, yythunkpos902= G->thunkpos; if (!yy_HtmlBlockTable(G)) { goto l903; } goto l902;
  4295. l903:; G->pos= yypos902; G->thunkpos= yythunkpos902;
  4296. { int yypos904= G->pos, yythunkpos904= G->thunkpos; if (!yy_HtmlBlockCloseTable(G)) { goto l904; } goto l901;
  4297. l904:; G->pos= yypos904; G->thunkpos= yythunkpos904;
  4298. } if (!yymatchDot(G)) goto l901;
  4299. }
  4300. l902:; goto l900;
  4301. l901:; G->pos= yypos901; G->thunkpos= yythunkpos901;
  4302. } if (!yy_HtmlBlockCloseTable(G)) { goto l899; }
  4303. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4304. return 1;
  4305. l899:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4306. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4307. return 0;
  4308. }
  4309. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G)
  4310. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4311. yyprintf((stderr, "%s\n", "HtmlBlockCloseTable")); if (!yymatchChar(G, '<')) goto l905; if (!yy_Spnl(G)) { goto l905; } if (!yymatchChar(G, '/')) goto l905;
  4312. { int yypos906= G->pos, yythunkpos906= G->thunkpos; if (!yymatchString(G, "table")) goto l907; goto l906;
  4313. l907:; G->pos= yypos906; G->thunkpos= yythunkpos906; if (!yymatchString(G, "TABLE")) goto l905;
  4314. }
  4315. l906:; if (!yy_Spnl(G)) { goto l905; } if (!yymatchChar(G, '>')) goto l905;
  4316. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4317. return 1;
  4318. l905:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4319. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4320. return 0;
  4321. }
  4322. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G)
  4323. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4324. yyprintf((stderr, "%s\n", "HtmlBlockOpenTable")); if (!yymatchChar(G, '<')) goto l908; if (!yy_Spnl(G)) { goto l908; }
  4325. { int yypos909= G->pos, yythunkpos909= G->thunkpos; if (!yymatchString(G, "table")) goto l910; goto l909;
  4326. l910:; G->pos= yypos909; G->thunkpos= yythunkpos909; if (!yymatchString(G, "TABLE")) goto l908;
  4327. }
  4328. l909:; if (!yy_Spnl(G)) { goto l908; }
  4329. l911:;
  4330. { int yypos912= G->pos, yythunkpos912= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l912; } goto l911;
  4331. l912:; G->pos= yypos912; G->thunkpos= yythunkpos912;
  4332. } if (!yymatchChar(G, '>')) goto l908;
  4333. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4334. return 1;
  4335. l908:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4336. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4337. return 0;
  4338. }
  4339. YY_RULE(int) yy_HtmlBlockPre(GREG *G)
  4340. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4341. yyprintf((stderr, "%s\n", "HtmlBlockPre")); if (!yy_HtmlBlockOpenPre(G)) { goto l913; }
  4342. l914:;
  4343. { int yypos915= G->pos, yythunkpos915= G->thunkpos;
  4344. { int yypos916= G->pos, yythunkpos916= G->thunkpos; if (!yy_HtmlBlockPre(G)) { goto l917; } goto l916;
  4345. l917:; G->pos= yypos916; G->thunkpos= yythunkpos916;
  4346. { int yypos918= G->pos, yythunkpos918= G->thunkpos; if (!yy_HtmlBlockClosePre(G)) { goto l918; } goto l915;
  4347. l918:; G->pos= yypos918; G->thunkpos= yythunkpos918;
  4348. } if (!yymatchDot(G)) goto l915;
  4349. }
  4350. l916:; goto l914;
  4351. l915:; G->pos= yypos915; G->thunkpos= yythunkpos915;
  4352. } if (!yy_HtmlBlockClosePre(G)) { goto l913; }
  4353. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4354. return 1;
  4355. l913:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4356. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4357. return 0;
  4358. }
  4359. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G)
  4360. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4361. yyprintf((stderr, "%s\n", "HtmlBlockClosePre")); if (!yymatchChar(G, '<')) goto l919; if (!yy_Spnl(G)) { goto l919; } if (!yymatchChar(G, '/')) goto l919;
  4362. { int yypos920= G->pos, yythunkpos920= G->thunkpos; if (!yymatchString(G, "pre")) goto l921; goto l920;
  4363. l921:; G->pos= yypos920; G->thunkpos= yythunkpos920; if (!yymatchString(G, "PRE")) goto l919;
  4364. }
  4365. l920:; if (!yy_Spnl(G)) { goto l919; } if (!yymatchChar(G, '>')) goto l919;
  4366. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4367. return 1;
  4368. l919:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4369. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4370. return 0;
  4371. }
  4372. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G)
  4373. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4374. yyprintf((stderr, "%s\n", "HtmlBlockOpenPre")); if (!yymatchChar(G, '<')) goto l922; if (!yy_Spnl(G)) { goto l922; }
  4375. { int yypos923= G->pos, yythunkpos923= G->thunkpos; if (!yymatchString(G, "pre")) goto l924; goto l923;
  4376. l924:; G->pos= yypos923; G->thunkpos= yythunkpos923; if (!yymatchString(G, "PRE")) goto l922;
  4377. }
  4378. l923:; if (!yy_Spnl(G)) { goto l922; }
  4379. l925:;
  4380. { int yypos926= G->pos, yythunkpos926= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l926; } goto l925;
  4381. l926:; G->pos= yypos926; G->thunkpos= yythunkpos926;
  4382. } if (!yymatchChar(G, '>')) goto l922;
  4383. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4384. return 1;
  4385. l922:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4386. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4387. return 0;
  4388. }
  4389. YY_RULE(int) yy_HtmlBlockP(GREG *G)
  4390. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4391. yyprintf((stderr, "%s\n", "HtmlBlockP")); if (!yy_HtmlBlockOpenP(G)) { goto l927; }
  4392. l928:;
  4393. { int yypos929= G->pos, yythunkpos929= G->thunkpos;
  4394. { int yypos930= G->pos, yythunkpos930= G->thunkpos; if (!yy_HtmlBlockP(G)) { goto l931; } goto l930;
  4395. l931:; G->pos= yypos930; G->thunkpos= yythunkpos930;
  4396. { int yypos932= G->pos, yythunkpos932= G->thunkpos; if (!yy_HtmlBlockCloseP(G)) { goto l932; } goto l929;
  4397. l932:; G->pos= yypos932; G->thunkpos= yythunkpos932;
  4398. } if (!yymatchDot(G)) goto l929;
  4399. }
  4400. l930:; goto l928;
  4401. l929:; G->pos= yypos929; G->thunkpos= yythunkpos929;
  4402. } if (!yy_HtmlBlockCloseP(G)) { goto l927; }
  4403. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4404. return 1;
  4405. l927:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4406. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4407. return 0;
  4408. }
  4409. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G)
  4410. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4411. yyprintf((stderr, "%s\n", "HtmlBlockCloseP")); if (!yymatchChar(G, '<')) goto l933; if (!yy_Spnl(G)) { goto l933; } if (!yymatchChar(G, '/')) goto l933;
  4412. { int yypos934= G->pos, yythunkpos934= G->thunkpos; if (!yymatchChar(G, 'p')) goto l935; goto l934;
  4413. l935:; G->pos= yypos934; G->thunkpos= yythunkpos934; if (!yymatchChar(G, 'P')) goto l933;
  4414. }
  4415. l934:; if (!yy_Spnl(G)) { goto l933; } if (!yymatchChar(G, '>')) goto l933;
  4416. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4417. return 1;
  4418. l933:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4419. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4420. return 0;
  4421. }
  4422. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G)
  4423. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4424. yyprintf((stderr, "%s\n", "HtmlBlockOpenP")); if (!yymatchChar(G, '<')) goto l936; if (!yy_Spnl(G)) { goto l936; }
  4425. { int yypos937= G->pos, yythunkpos937= G->thunkpos; if (!yymatchChar(G, 'p')) goto l938; goto l937;
  4426. l938:; G->pos= yypos937; G->thunkpos= yythunkpos937; if (!yymatchChar(G, 'P')) goto l936;
  4427. }
  4428. l937:; if (!yy_Spnl(G)) { goto l936; }
  4429. l939:;
  4430. { int yypos940= G->pos, yythunkpos940= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l940; } goto l939;
  4431. l940:; G->pos= yypos940; G->thunkpos= yythunkpos940;
  4432. } if (!yymatchChar(G, '>')) goto l936;
  4433. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4434. return 1;
  4435. l936:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4436. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4437. return 0;
  4438. }
  4439. YY_RULE(int) yy_HtmlBlockOl(GREG *G)
  4440. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4441. yyprintf((stderr, "%s\n", "HtmlBlockOl")); if (!yy_HtmlBlockOpenOl(G)) { goto l941; }
  4442. l942:;
  4443. { int yypos943= G->pos, yythunkpos943= G->thunkpos;
  4444. { int yypos944= G->pos, yythunkpos944= G->thunkpos; if (!yy_HtmlBlockOl(G)) { goto l945; } goto l944;
  4445. l945:; G->pos= yypos944; G->thunkpos= yythunkpos944;
  4446. { int yypos946= G->pos, yythunkpos946= G->thunkpos; if (!yy_HtmlBlockCloseOl(G)) { goto l946; } goto l943;
  4447. l946:; G->pos= yypos946; G->thunkpos= yythunkpos946;
  4448. } if (!yymatchDot(G)) goto l943;
  4449. }
  4450. l944:; goto l942;
  4451. l943:; G->pos= yypos943; G->thunkpos= yythunkpos943;
  4452. } if (!yy_HtmlBlockCloseOl(G)) { goto l941; }
  4453. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4454. return 1;
  4455. l941:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4456. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4457. return 0;
  4458. }
  4459. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G)
  4460. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4461. yyprintf((stderr, "%s\n", "HtmlBlockCloseOl")); if (!yymatchChar(G, '<')) goto l947; if (!yy_Spnl(G)) { goto l947; } if (!yymatchChar(G, '/')) goto l947;
  4462. { int yypos948= G->pos, yythunkpos948= G->thunkpos; if (!yymatchString(G, "ol")) goto l949; goto l948;
  4463. l949:; G->pos= yypos948; G->thunkpos= yythunkpos948; if (!yymatchString(G, "OL")) goto l947;
  4464. }
  4465. l948:; if (!yy_Spnl(G)) { goto l947; } if (!yymatchChar(G, '>')) goto l947;
  4466. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4467. return 1;
  4468. l947:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4469. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4470. return 0;
  4471. }
  4472. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G)
  4473. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4474. yyprintf((stderr, "%s\n", "HtmlBlockOpenOl")); if (!yymatchChar(G, '<')) goto l950; if (!yy_Spnl(G)) { goto l950; }
  4475. { int yypos951= G->pos, yythunkpos951= G->thunkpos; if (!yymatchString(G, "ol")) goto l952; goto l951;
  4476. l952:; G->pos= yypos951; G->thunkpos= yythunkpos951; if (!yymatchString(G, "OL")) goto l950;
  4477. }
  4478. l951:; if (!yy_Spnl(G)) { goto l950; }
  4479. l953:;
  4480. { int yypos954= G->pos, yythunkpos954= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l954; } goto l953;
  4481. l954:; G->pos= yypos954; G->thunkpos= yythunkpos954;
  4482. } if (!yymatchChar(G, '>')) goto l950;
  4483. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4484. return 1;
  4485. l950:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4486. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4487. return 0;
  4488. }
  4489. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G)
  4490. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4491. yyprintf((stderr, "%s\n", "HtmlBlockNoscript")); if (!yy_HtmlBlockOpenNoscript(G)) { goto l955; }
  4492. l956:;
  4493. { int yypos957= G->pos, yythunkpos957= G->thunkpos;
  4494. { int yypos958= G->pos, yythunkpos958= G->thunkpos; if (!yy_HtmlBlockNoscript(G)) { goto l959; } goto l958;
  4495. l959:; G->pos= yypos958; G->thunkpos= yythunkpos958;
  4496. { int yypos960= G->pos, yythunkpos960= G->thunkpos; if (!yy_HtmlBlockCloseNoscript(G)) { goto l960; } goto l957;
  4497. l960:; G->pos= yypos960; G->thunkpos= yythunkpos960;
  4498. } if (!yymatchDot(G)) goto l957;
  4499. }
  4500. l958:; goto l956;
  4501. l957:; G->pos= yypos957; G->thunkpos= yythunkpos957;
  4502. } if (!yy_HtmlBlockCloseNoscript(G)) { goto l955; }
  4503. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4504. return 1;
  4505. l955:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4506. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4507. return 0;
  4508. }
  4509. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G)
  4510. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4511. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoscript")); if (!yymatchChar(G, '<')) goto l961; if (!yy_Spnl(G)) { goto l961; } if (!yymatchChar(G, '/')) goto l961;
  4512. { int yypos962= G->pos, yythunkpos962= G->thunkpos; if (!yymatchString(G, "noscript")) goto l963; goto l962;
  4513. l963:; G->pos= yypos962; G->thunkpos= yythunkpos962; if (!yymatchString(G, "NOSCRIPT")) goto l961;
  4514. }
  4515. l962:; if (!yy_Spnl(G)) { goto l961; } if (!yymatchChar(G, '>')) goto l961;
  4516. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4517. return 1;
  4518. l961:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4519. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4520. return 0;
  4521. }
  4522. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G)
  4523. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4524. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoscript")); if (!yymatchChar(G, '<')) goto l964; if (!yy_Spnl(G)) { goto l964; }
  4525. { int yypos965= G->pos, yythunkpos965= G->thunkpos; if (!yymatchString(G, "noscript")) goto l966; goto l965;
  4526. l966:; G->pos= yypos965; G->thunkpos= yythunkpos965; if (!yymatchString(G, "NOSCRIPT")) goto l964;
  4527. }
  4528. l965:; if (!yy_Spnl(G)) { goto l964; }
  4529. l967:;
  4530. { int yypos968= G->pos, yythunkpos968= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l968; } goto l967;
  4531. l968:; G->pos= yypos968; G->thunkpos= yythunkpos968;
  4532. } if (!yymatchChar(G, '>')) goto l964;
  4533. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4534. return 1;
  4535. l964:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4536. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4537. return 0;
  4538. }
  4539. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G)
  4540. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4541. yyprintf((stderr, "%s\n", "HtmlBlockNoframes")); if (!yy_HtmlBlockOpenNoframes(G)) { goto l969; }
  4542. l970:;
  4543. { int yypos971= G->pos, yythunkpos971= G->thunkpos;
  4544. { int yypos972= G->pos, yythunkpos972= G->thunkpos; if (!yy_HtmlBlockNoframes(G)) { goto l973; } goto l972;
  4545. l973:; G->pos= yypos972; G->thunkpos= yythunkpos972;
  4546. { int yypos974= G->pos, yythunkpos974= G->thunkpos; if (!yy_HtmlBlockCloseNoframes(G)) { goto l974; } goto l971;
  4547. l974:; G->pos= yypos974; G->thunkpos= yythunkpos974;
  4548. } if (!yymatchDot(G)) goto l971;
  4549. }
  4550. l972:; goto l970;
  4551. l971:; G->pos= yypos971; G->thunkpos= yythunkpos971;
  4552. } if (!yy_HtmlBlockCloseNoframes(G)) { goto l969; }
  4553. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4554. return 1;
  4555. l969:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4556. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4557. return 0;
  4558. }
  4559. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G)
  4560. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4561. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoframes")); if (!yymatchChar(G, '<')) goto l975; if (!yy_Spnl(G)) { goto l975; } if (!yymatchChar(G, '/')) goto l975;
  4562. { int yypos976= G->pos, yythunkpos976= G->thunkpos; if (!yymatchString(G, "noframes")) goto l977; goto l976;
  4563. l977:; G->pos= yypos976; G->thunkpos= yythunkpos976; if (!yymatchString(G, "NOFRAMES")) goto l975;
  4564. }
  4565. l976:; if (!yy_Spnl(G)) { goto l975; } if (!yymatchChar(G, '>')) goto l975;
  4566. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4567. return 1;
  4568. l975:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4569. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4570. return 0;
  4571. }
  4572. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G)
  4573. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4574. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoframes")); if (!yymatchChar(G, '<')) goto l978; if (!yy_Spnl(G)) { goto l978; }
  4575. { int yypos979= G->pos, yythunkpos979= G->thunkpos; if (!yymatchString(G, "noframes")) goto l980; goto l979;
  4576. l980:; G->pos= yypos979; G->thunkpos= yythunkpos979; if (!yymatchString(G, "NOFRAMES")) goto l978;
  4577. }
  4578. l979:; if (!yy_Spnl(G)) { goto l978; }
  4579. l981:;
  4580. { int yypos982= G->pos, yythunkpos982= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l982; } goto l981;
  4581. l982:; G->pos= yypos982; G->thunkpos= yythunkpos982;
  4582. } if (!yymatchChar(G, '>')) goto l978;
  4583. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4584. return 1;
  4585. l978:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4586. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4587. return 0;
  4588. }
  4589. YY_RULE(int) yy_HtmlBlockMenu(GREG *G)
  4590. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4591. yyprintf((stderr, "%s\n", "HtmlBlockMenu")); if (!yy_HtmlBlockOpenMenu(G)) { goto l983; }
  4592. l984:;
  4593. { int yypos985= G->pos, yythunkpos985= G->thunkpos;
  4594. { int yypos986= G->pos, yythunkpos986= G->thunkpos; if (!yy_HtmlBlockMenu(G)) { goto l987; } goto l986;
  4595. l987:; G->pos= yypos986; G->thunkpos= yythunkpos986;
  4596. { int yypos988= G->pos, yythunkpos988= G->thunkpos; if (!yy_HtmlBlockCloseMenu(G)) { goto l988; } goto l985;
  4597. l988:; G->pos= yypos988; G->thunkpos= yythunkpos988;
  4598. } if (!yymatchDot(G)) goto l985;
  4599. }
  4600. l986:; goto l984;
  4601. l985:; G->pos= yypos985; G->thunkpos= yythunkpos985;
  4602. } if (!yy_HtmlBlockCloseMenu(G)) { goto l983; }
  4603. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4604. return 1;
  4605. l983:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4606. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4607. return 0;
  4608. }
  4609. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G)
  4610. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4611. yyprintf((stderr, "%s\n", "HtmlBlockCloseMenu")); if (!yymatchChar(G, '<')) goto l989; if (!yy_Spnl(G)) { goto l989; } if (!yymatchChar(G, '/')) goto l989;
  4612. { int yypos990= G->pos, yythunkpos990= G->thunkpos; if (!yymatchString(G, "menu")) goto l991; goto l990;
  4613. l991:; G->pos= yypos990; G->thunkpos= yythunkpos990; if (!yymatchString(G, "MENU")) goto l989;
  4614. }
  4615. l990:; if (!yy_Spnl(G)) { goto l989; } if (!yymatchChar(G, '>')) goto l989;
  4616. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4617. return 1;
  4618. l989:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4619. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4620. return 0;
  4621. }
  4622. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G)
  4623. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4624. yyprintf((stderr, "%s\n", "HtmlBlockOpenMenu")); if (!yymatchChar(G, '<')) goto l992; if (!yy_Spnl(G)) { goto l992; }
  4625. { int yypos993= G->pos, yythunkpos993= G->thunkpos; if (!yymatchString(G, "menu")) goto l994; goto l993;
  4626. l994:; G->pos= yypos993; G->thunkpos= yythunkpos993; if (!yymatchString(G, "MENU")) goto l992;
  4627. }
  4628. l993:; if (!yy_Spnl(G)) { goto l992; }
  4629. l995:;
  4630. { int yypos996= G->pos, yythunkpos996= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l996; } goto l995;
  4631. l996:; G->pos= yypos996; G->thunkpos= yythunkpos996;
  4632. } if (!yymatchChar(G, '>')) goto l992;
  4633. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4634. return 1;
  4635. l992:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4636. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4637. return 0;
  4638. }
  4639. YY_RULE(int) yy_HtmlBlockH6(GREG *G)
  4640. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4641. yyprintf((stderr, "%s\n", "HtmlBlockH6")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l997; if (!yy_LocMarker(G)) { goto l997; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH6(G)) { goto l997; }
  4642. l998:;
  4643. { int yypos999= G->pos, yythunkpos999= G->thunkpos;
  4644. { int yypos1000= G->pos, yythunkpos1000= G->thunkpos; if (!yy_HtmlBlockH6(G)) { goto l1001; } goto l1000;
  4645. l1001:; G->pos= yypos1000; G->thunkpos= yythunkpos1000;
  4646. { int yypos1002= G->pos, yythunkpos1002= G->thunkpos; if (!yy_HtmlBlockCloseH6(G)) { goto l1002; } goto l999;
  4647. l1002:; G->pos= yypos1002; G->thunkpos= yythunkpos1002;
  4648. } if (!yymatchDot(G)) goto l999;
  4649. }
  4650. l1000:; goto l998;
  4651. l999:; G->pos= yypos999; G->thunkpos= yythunkpos999;
  4652. } if (!yy_HtmlBlockCloseH6(G)) { goto l997; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l997; yyDo(G, yy_1_HtmlBlockH6, G->begin, G->end);
  4653. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH6", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4654. return 1;
  4655. l997:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4656. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH6", G->buf+G->pos));
  4657. return 0;
  4658. }
  4659. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G)
  4660. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4661. yyprintf((stderr, "%s\n", "HtmlBlockCloseH6")); if (!yymatchChar(G, '<')) goto l1003; if (!yy_Spnl(G)) { goto l1003; } if (!yymatchChar(G, '/')) goto l1003;
  4662. { int yypos1004= G->pos, yythunkpos1004= G->thunkpos; if (!yymatchString(G, "h6")) goto l1005; goto l1004;
  4663. l1005:; G->pos= yypos1004; G->thunkpos= yythunkpos1004; if (!yymatchString(G, "H6")) goto l1003;
  4664. }
  4665. l1004:; if (!yy_Spnl(G)) { goto l1003; } if (!yymatchChar(G, '>')) goto l1003;
  4666. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4667. return 1;
  4668. l1003:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4669. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4670. return 0;
  4671. }
  4672. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G)
  4673. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4674. yyprintf((stderr, "%s\n", "HtmlBlockOpenH6")); if (!yymatchChar(G, '<')) goto l1006; if (!yy_Spnl(G)) { goto l1006; }
  4675. { int yypos1007= G->pos, yythunkpos1007= G->thunkpos; if (!yymatchString(G, "h6")) goto l1008; goto l1007;
  4676. l1008:; G->pos= yypos1007; G->thunkpos= yythunkpos1007; if (!yymatchString(G, "H6")) goto l1006;
  4677. }
  4678. l1007:; if (!yy_Spnl(G)) { goto l1006; }
  4679. l1009:;
  4680. { int yypos1010= G->pos, yythunkpos1010= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1010; } goto l1009;
  4681. l1010:; G->pos= yypos1010; G->thunkpos= yythunkpos1010;
  4682. } if (!yymatchChar(G, '>')) goto l1006;
  4683. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4684. return 1;
  4685. l1006:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4686. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4687. return 0;
  4688. }
  4689. YY_RULE(int) yy_HtmlBlockH5(GREG *G)
  4690. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4691. yyprintf((stderr, "%s\n", "HtmlBlockH5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1011; if (!yy_LocMarker(G)) { goto l1011; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH5(G)) { goto l1011; }
  4692. l1012:;
  4693. { int yypos1013= G->pos, yythunkpos1013= G->thunkpos;
  4694. { int yypos1014= G->pos, yythunkpos1014= G->thunkpos; if (!yy_HtmlBlockH5(G)) { goto l1015; } goto l1014;
  4695. l1015:; G->pos= yypos1014; G->thunkpos= yythunkpos1014;
  4696. { int yypos1016= G->pos, yythunkpos1016= G->thunkpos; if (!yy_HtmlBlockCloseH5(G)) { goto l1016; } goto l1013;
  4697. l1016:; G->pos= yypos1016; G->thunkpos= yythunkpos1016;
  4698. } if (!yymatchDot(G)) goto l1013;
  4699. }
  4700. l1014:; goto l1012;
  4701. l1013:; G->pos= yypos1013; G->thunkpos= yythunkpos1013;
  4702. } if (!yy_HtmlBlockCloseH5(G)) { goto l1011; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1011; yyDo(G, yy_1_HtmlBlockH5, G->begin, G->end);
  4703. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH5", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4704. return 1;
  4705. l1011:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4706. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH5", G->buf+G->pos));
  4707. return 0;
  4708. }
  4709. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G)
  4710. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4711. yyprintf((stderr, "%s\n", "HtmlBlockCloseH5")); if (!yymatchChar(G, '<')) goto l1017; if (!yy_Spnl(G)) { goto l1017; } if (!yymatchChar(G, '/')) goto l1017;
  4712. { int yypos1018= G->pos, yythunkpos1018= G->thunkpos; if (!yymatchString(G, "h5")) goto l1019; goto l1018;
  4713. l1019:; G->pos= yypos1018; G->thunkpos= yythunkpos1018; if (!yymatchString(G, "H5")) goto l1017;
  4714. }
  4715. l1018:; if (!yy_Spnl(G)) { goto l1017; } if (!yymatchChar(G, '>')) goto l1017;
  4716. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  4717. return 1;
  4718. l1017:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4719. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  4720. return 0;
  4721. }
  4722. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G)
  4723. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4724. yyprintf((stderr, "%s\n", "HtmlBlockOpenH5")); if (!yymatchChar(G, '<')) goto l1020; if (!yy_Spnl(G)) { goto l1020; }
  4725. { int yypos1021= G->pos, yythunkpos1021= G->thunkpos; if (!yymatchString(G, "h5")) goto l1022; goto l1021;
  4726. l1022:; G->pos= yypos1021; G->thunkpos= yythunkpos1021; if (!yymatchString(G, "H5")) goto l1020;
  4727. }
  4728. l1021:; if (!yy_Spnl(G)) { goto l1020; }
  4729. l1023:;
  4730. { int yypos1024= G->pos, yythunkpos1024= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1024; } goto l1023;
  4731. l1024:; G->pos= yypos1024; G->thunkpos= yythunkpos1024;
  4732. } if (!yymatchChar(G, '>')) goto l1020;
  4733. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  4734. return 1;
  4735. l1020:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4736. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  4737. return 0;
  4738. }
  4739. YY_RULE(int) yy_HtmlBlockH4(GREG *G)
  4740. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4741. yyprintf((stderr, "%s\n", "HtmlBlockH4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1025; if (!yy_LocMarker(G)) { goto l1025; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH4(G)) { goto l1025; }
  4742. l1026:;
  4743. { int yypos1027= G->pos, yythunkpos1027= G->thunkpos;
  4744. { int yypos1028= G->pos, yythunkpos1028= G->thunkpos; if (!yy_HtmlBlockH4(G)) { goto l1029; } goto l1028;
  4745. l1029:; G->pos= yypos1028; G->thunkpos= yythunkpos1028;
  4746. { int yypos1030= G->pos, yythunkpos1030= G->thunkpos; if (!yy_HtmlBlockCloseH4(G)) { goto l1030; } goto l1027;
  4747. l1030:; G->pos= yypos1030; G->thunkpos= yythunkpos1030;
  4748. } if (!yymatchDot(G)) goto l1027;
  4749. }
  4750. l1028:; goto l1026;
  4751. l1027:; G->pos= yypos1027; G->thunkpos= yythunkpos1027;
  4752. } if (!yy_HtmlBlockCloseH4(G)) { goto l1025; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1025; yyDo(G, yy_1_HtmlBlockH4, G->begin, G->end);
  4753. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH4", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4754. return 1;
  4755. l1025:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4756. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH4", G->buf+G->pos));
  4757. return 0;
  4758. }
  4759. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G)
  4760. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4761. yyprintf((stderr, "%s\n", "HtmlBlockCloseH4")); if (!yymatchChar(G, '<')) goto l1031; if (!yy_Spnl(G)) { goto l1031; } if (!yymatchChar(G, '/')) goto l1031;
  4762. { int yypos1032= G->pos, yythunkpos1032= G->thunkpos; if (!yymatchString(G, "h4")) goto l1033; goto l1032;
  4763. l1033:; G->pos= yypos1032; G->thunkpos= yythunkpos1032; if (!yymatchString(G, "H4")) goto l1031;
  4764. }
  4765. l1032:; if (!yy_Spnl(G)) { goto l1031; } if (!yymatchChar(G, '>')) goto l1031;
  4766. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  4767. return 1;
  4768. l1031:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4769. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  4770. return 0;
  4771. }
  4772. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G)
  4773. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4774. yyprintf((stderr, "%s\n", "HtmlBlockOpenH4")); if (!yymatchChar(G, '<')) goto l1034; if (!yy_Spnl(G)) { goto l1034; }
  4775. { int yypos1035= G->pos, yythunkpos1035= G->thunkpos; if (!yymatchString(G, "h4")) goto l1036; goto l1035;
  4776. l1036:; G->pos= yypos1035; G->thunkpos= yythunkpos1035; if (!yymatchString(G, "H4")) goto l1034;
  4777. }
  4778. l1035:; if (!yy_Spnl(G)) { goto l1034; }
  4779. l1037:;
  4780. { int yypos1038= G->pos, yythunkpos1038= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1038; } goto l1037;
  4781. l1038:; G->pos= yypos1038; G->thunkpos= yythunkpos1038;
  4782. } if (!yymatchChar(G, '>')) goto l1034;
  4783. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  4784. return 1;
  4785. l1034:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4786. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  4787. return 0;
  4788. }
  4789. YY_RULE(int) yy_HtmlBlockH3(GREG *G)
  4790. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4791. yyprintf((stderr, "%s\n", "HtmlBlockH3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1039; if (!yy_LocMarker(G)) { goto l1039; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH3(G)) { goto l1039; }
  4792. l1040:;
  4793. { int yypos1041= G->pos, yythunkpos1041= G->thunkpos;
  4794. { int yypos1042= G->pos, yythunkpos1042= G->thunkpos; if (!yy_HtmlBlockH3(G)) { goto l1043; } goto l1042;
  4795. l1043:; G->pos= yypos1042; G->thunkpos= yythunkpos1042;
  4796. { int yypos1044= G->pos, yythunkpos1044= G->thunkpos; if (!yy_HtmlBlockCloseH3(G)) { goto l1044; } goto l1041;
  4797. l1044:; G->pos= yypos1044; G->thunkpos= yythunkpos1044;
  4798. } if (!yymatchDot(G)) goto l1041;
  4799. }
  4800. l1042:; goto l1040;
  4801. l1041:; G->pos= yypos1041; G->thunkpos= yythunkpos1041;
  4802. } if (!yy_HtmlBlockCloseH3(G)) { goto l1039; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1039; yyDo(G, yy_1_HtmlBlockH3, G->begin, G->end);
  4803. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH3", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4804. return 1;
  4805. l1039:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4806. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH3", G->buf+G->pos));
  4807. return 0;
  4808. }
  4809. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G)
  4810. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4811. yyprintf((stderr, "%s\n", "HtmlBlockCloseH3")); if (!yymatchChar(G, '<')) goto l1045; if (!yy_Spnl(G)) { goto l1045; } if (!yymatchChar(G, '/')) goto l1045;
  4812. { int yypos1046= G->pos, yythunkpos1046= G->thunkpos; if (!yymatchString(G, "h3")) goto l1047; goto l1046;
  4813. l1047:; G->pos= yypos1046; G->thunkpos= yythunkpos1046; if (!yymatchString(G, "H3")) goto l1045;
  4814. }
  4815. l1046:; if (!yy_Spnl(G)) { goto l1045; } if (!yymatchChar(G, '>')) goto l1045;
  4816. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  4817. return 1;
  4818. l1045:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4819. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  4820. return 0;
  4821. }
  4822. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G)
  4823. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4824. yyprintf((stderr, "%s\n", "HtmlBlockOpenH3")); if (!yymatchChar(G, '<')) goto l1048; if (!yy_Spnl(G)) { goto l1048; }
  4825. { int yypos1049= G->pos, yythunkpos1049= G->thunkpos; if (!yymatchString(G, "h3")) goto l1050; goto l1049;
  4826. l1050:; G->pos= yypos1049; G->thunkpos= yythunkpos1049; if (!yymatchString(G, "H3")) goto l1048;
  4827. }
  4828. l1049:; if (!yy_Spnl(G)) { goto l1048; }
  4829. l1051:;
  4830. { int yypos1052= G->pos, yythunkpos1052= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1052; } goto l1051;
  4831. l1052:; G->pos= yypos1052; G->thunkpos= yythunkpos1052;
  4832. } if (!yymatchChar(G, '>')) goto l1048;
  4833. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  4834. return 1;
  4835. l1048:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4836. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  4837. return 0;
  4838. }
  4839. YY_RULE(int) yy_HtmlBlockH2(GREG *G)
  4840. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4841. yyprintf((stderr, "%s\n", "HtmlBlockH2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1053; if (!yy_LocMarker(G)) { goto l1053; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH2(G)) { goto l1053; }
  4842. l1054:;
  4843. { int yypos1055= G->pos, yythunkpos1055= G->thunkpos;
  4844. { int yypos1056= G->pos, yythunkpos1056= G->thunkpos; if (!yy_HtmlBlockH2(G)) { goto l1057; } goto l1056;
  4845. l1057:; G->pos= yypos1056; G->thunkpos= yythunkpos1056;
  4846. { int yypos1058= G->pos, yythunkpos1058= G->thunkpos; if (!yy_HtmlBlockCloseH2(G)) { goto l1058; } goto l1055;
  4847. l1058:; G->pos= yypos1058; G->thunkpos= yythunkpos1058;
  4848. } if (!yymatchDot(G)) goto l1055;
  4849. }
  4850. l1056:; goto l1054;
  4851. l1055:; G->pos= yypos1055; G->thunkpos= yythunkpos1055;
  4852. } if (!yy_HtmlBlockCloseH2(G)) { goto l1053; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1053; yyDo(G, yy_1_HtmlBlockH2, G->begin, G->end);
  4853. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4854. return 1;
  4855. l1053:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4856. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH2", G->buf+G->pos));
  4857. return 0;
  4858. }
  4859. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G)
  4860. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4861. yyprintf((stderr, "%s\n", "HtmlBlockCloseH2")); if (!yymatchChar(G, '<')) goto l1059; if (!yy_Spnl(G)) { goto l1059; } if (!yymatchChar(G, '/')) goto l1059;
  4862. { int yypos1060= G->pos, yythunkpos1060= G->thunkpos; if (!yymatchString(G, "h2")) goto l1061; goto l1060;
  4863. l1061:; G->pos= yypos1060; G->thunkpos= yythunkpos1060; if (!yymatchString(G, "H2")) goto l1059;
  4864. }
  4865. l1060:; if (!yy_Spnl(G)) { goto l1059; } if (!yymatchChar(G, '>')) goto l1059;
  4866. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  4867. return 1;
  4868. l1059:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4869. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  4870. return 0;
  4871. }
  4872. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G)
  4873. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4874. yyprintf((stderr, "%s\n", "HtmlBlockOpenH2")); if (!yymatchChar(G, '<')) goto l1062; if (!yy_Spnl(G)) { goto l1062; }
  4875. { int yypos1063= G->pos, yythunkpos1063= G->thunkpos; if (!yymatchString(G, "h2")) goto l1064; goto l1063;
  4876. l1064:; G->pos= yypos1063; G->thunkpos= yythunkpos1063; if (!yymatchString(G, "H2")) goto l1062;
  4877. }
  4878. l1063:; if (!yy_Spnl(G)) { goto l1062; }
  4879. l1065:;
  4880. { int yypos1066= G->pos, yythunkpos1066= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1066; } goto l1065;
  4881. l1066:; G->pos= yypos1066; G->thunkpos= yythunkpos1066;
  4882. } if (!yymatchChar(G, '>')) goto l1062;
  4883. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  4884. return 1;
  4885. l1062:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4886. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  4887. return 0;
  4888. }
  4889. YY_RULE(int) yy_HtmlBlockH1(GREG *G)
  4890. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4891. yyprintf((stderr, "%s\n", "HtmlBlockH1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1067; if (!yy_LocMarker(G)) { goto l1067; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH1(G)) { goto l1067; }
  4892. l1068:;
  4893. { int yypos1069= G->pos, yythunkpos1069= G->thunkpos;
  4894. { int yypos1070= G->pos, yythunkpos1070= G->thunkpos; if (!yy_HtmlBlockH1(G)) { goto l1071; } goto l1070;
  4895. l1071:; G->pos= yypos1070; G->thunkpos= yythunkpos1070;
  4896. { int yypos1072= G->pos, yythunkpos1072= G->thunkpos; if (!yy_HtmlBlockCloseH1(G)) { goto l1072; } goto l1069;
  4897. l1072:; G->pos= yypos1072; G->thunkpos= yythunkpos1072;
  4898. } if (!yymatchDot(G)) goto l1069;
  4899. }
  4900. l1070:; goto l1068;
  4901. l1069:; G->pos= yypos1069; G->thunkpos= yythunkpos1069;
  4902. } if (!yy_HtmlBlockCloseH1(G)) { goto l1067; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1067; yyDo(G, yy_1_HtmlBlockH1, G->begin, G->end);
  4903. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4904. return 1;
  4905. l1067:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4906. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH1", G->buf+G->pos));
  4907. return 0;
  4908. }
  4909. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G)
  4910. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4911. yyprintf((stderr, "%s\n", "HtmlBlockCloseH1")); if (!yymatchChar(G, '<')) goto l1073; if (!yy_Spnl(G)) { goto l1073; } if (!yymatchChar(G, '/')) goto l1073;
  4912. { int yypos1074= G->pos, yythunkpos1074= G->thunkpos; if (!yymatchString(G, "h1")) goto l1075; goto l1074;
  4913. l1075:; G->pos= yypos1074; G->thunkpos= yythunkpos1074; if (!yymatchString(G, "H1")) goto l1073;
  4914. }
  4915. l1074:; if (!yy_Spnl(G)) { goto l1073; } if (!yymatchChar(G, '>')) goto l1073;
  4916. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  4917. return 1;
  4918. l1073:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4919. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  4920. return 0;
  4921. }
  4922. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G)
  4923. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4924. yyprintf((stderr, "%s\n", "HtmlBlockOpenH1")); if (!yymatchChar(G, '<')) goto l1076; if (!yy_Spnl(G)) { goto l1076; }
  4925. { int yypos1077= G->pos, yythunkpos1077= G->thunkpos; if (!yymatchString(G, "h1")) goto l1078; goto l1077;
  4926. l1078:; G->pos= yypos1077; G->thunkpos= yythunkpos1077; if (!yymatchString(G, "H1")) goto l1076;
  4927. }
  4928. l1077:; if (!yy_Spnl(G)) { goto l1076; }
  4929. l1079:;
  4930. { int yypos1080= G->pos, yythunkpos1080= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1080; } goto l1079;
  4931. l1080:; G->pos= yypos1080; G->thunkpos= yythunkpos1080;
  4932. } if (!yymatchChar(G, '>')) goto l1076;
  4933. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  4934. return 1;
  4935. l1076:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4936. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  4937. return 0;
  4938. }
  4939. YY_RULE(int) yy_HtmlBlockForm(GREG *G)
  4940. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4941. yyprintf((stderr, "%s\n", "HtmlBlockForm")); if (!yy_HtmlBlockOpenForm(G)) { goto l1081; }
  4942. l1082:;
  4943. { int yypos1083= G->pos, yythunkpos1083= G->thunkpos;
  4944. { int yypos1084= G->pos, yythunkpos1084= G->thunkpos; if (!yy_HtmlBlockForm(G)) { goto l1085; } goto l1084;
  4945. l1085:; G->pos= yypos1084; G->thunkpos= yythunkpos1084;
  4946. { int yypos1086= G->pos, yythunkpos1086= G->thunkpos; if (!yy_HtmlBlockCloseForm(G)) { goto l1086; } goto l1083;
  4947. l1086:; G->pos= yypos1086; G->thunkpos= yythunkpos1086;
  4948. } if (!yymatchDot(G)) goto l1083;
  4949. }
  4950. l1084:; goto l1082;
  4951. l1083:; G->pos= yypos1083; G->thunkpos= yythunkpos1083;
  4952. } if (!yy_HtmlBlockCloseForm(G)) { goto l1081; }
  4953. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  4954. return 1;
  4955. l1081:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4956. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  4957. return 0;
  4958. }
  4959. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G)
  4960. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4961. yyprintf((stderr, "%s\n", "HtmlBlockCloseForm")); if (!yymatchChar(G, '<')) goto l1087; if (!yy_Spnl(G)) { goto l1087; } if (!yymatchChar(G, '/')) goto l1087;
  4962. { int yypos1088= G->pos, yythunkpos1088= G->thunkpos; if (!yymatchString(G, "form")) goto l1089; goto l1088;
  4963. l1089:; G->pos= yypos1088; G->thunkpos= yythunkpos1088; if (!yymatchString(G, "FORM")) goto l1087;
  4964. }
  4965. l1088:; if (!yy_Spnl(G)) { goto l1087; } if (!yymatchChar(G, '>')) goto l1087;
  4966. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  4967. return 1;
  4968. l1087:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4969. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  4970. return 0;
  4971. }
  4972. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G)
  4973. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4974. yyprintf((stderr, "%s\n", "HtmlBlockOpenForm")); if (!yymatchChar(G, '<')) goto l1090; if (!yy_Spnl(G)) { goto l1090; }
  4975. { int yypos1091= G->pos, yythunkpos1091= G->thunkpos; if (!yymatchString(G, "form")) goto l1092; goto l1091;
  4976. l1092:; G->pos= yypos1091; G->thunkpos= yythunkpos1091; if (!yymatchString(G, "FORM")) goto l1090;
  4977. }
  4978. l1091:; if (!yy_Spnl(G)) { goto l1090; }
  4979. l1093:;
  4980. { int yypos1094= G->pos, yythunkpos1094= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1094; } goto l1093;
  4981. l1094:; G->pos= yypos1094; G->thunkpos= yythunkpos1094;
  4982. } if (!yymatchChar(G, '>')) goto l1090;
  4983. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  4984. return 1;
  4985. l1090:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4986. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  4987. return 0;
  4988. }
  4989. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G)
  4990. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4991. yyprintf((stderr, "%s\n", "HtmlBlockFieldset")); if (!yy_HtmlBlockOpenFieldset(G)) { goto l1095; }
  4992. l1096:;
  4993. { int yypos1097= G->pos, yythunkpos1097= G->thunkpos;
  4994. { int yypos1098= G->pos, yythunkpos1098= G->thunkpos; if (!yy_HtmlBlockFieldset(G)) { goto l1099; } goto l1098;
  4995. l1099:; G->pos= yypos1098; G->thunkpos= yythunkpos1098;
  4996. { int yypos1100= G->pos, yythunkpos1100= G->thunkpos; if (!yy_HtmlBlockCloseFieldset(G)) { goto l1100; } goto l1097;
  4997. l1100:; G->pos= yypos1100; G->thunkpos= yythunkpos1100;
  4998. } if (!yymatchDot(G)) goto l1097;
  4999. }
  5000. l1098:; goto l1096;
  5001. l1097:; G->pos= yypos1097; G->thunkpos= yythunkpos1097;
  5002. } if (!yy_HtmlBlockCloseFieldset(G)) { goto l1095; }
  5003. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  5004. return 1;
  5005. l1095:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5006. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  5007. return 0;
  5008. }
  5009. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G)
  5010. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5011. yyprintf((stderr, "%s\n", "HtmlBlockCloseFieldset")); if (!yymatchChar(G, '<')) goto l1101; if (!yy_Spnl(G)) { goto l1101; } if (!yymatchChar(G, '/')) goto l1101;
  5012. { int yypos1102= G->pos, yythunkpos1102= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1103; goto l1102;
  5013. l1103:; G->pos= yypos1102; G->thunkpos= yythunkpos1102; if (!yymatchString(G, "FIELDSET")) goto l1101;
  5014. }
  5015. l1102:; if (!yy_Spnl(G)) { goto l1101; } if (!yymatchChar(G, '>')) goto l1101;
  5016. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5017. return 1;
  5018. l1101:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5019. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5020. return 0;
  5021. }
  5022. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G)
  5023. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5024. yyprintf((stderr, "%s\n", "HtmlBlockOpenFieldset")); if (!yymatchChar(G, '<')) goto l1104; if (!yy_Spnl(G)) { goto l1104; }
  5025. { int yypos1105= G->pos, yythunkpos1105= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1106; goto l1105;
  5026. l1106:; G->pos= yypos1105; G->thunkpos= yythunkpos1105; if (!yymatchString(G, "FIELDSET")) goto l1104;
  5027. }
  5028. l1105:; if (!yy_Spnl(G)) { goto l1104; }
  5029. l1107:;
  5030. { int yypos1108= G->pos, yythunkpos1108= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1108; } goto l1107;
  5031. l1108:; G->pos= yypos1108; G->thunkpos= yythunkpos1108;
  5032. } if (!yymatchChar(G, '>')) goto l1104;
  5033. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5034. return 1;
  5035. l1104:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5036. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5037. return 0;
  5038. }
  5039. YY_RULE(int) yy_HtmlBlockDl(GREG *G)
  5040. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5041. yyprintf((stderr, "%s\n", "HtmlBlockDl")); if (!yy_HtmlBlockOpenDl(G)) { goto l1109; }
  5042. l1110:;
  5043. { int yypos1111= G->pos, yythunkpos1111= G->thunkpos;
  5044. { int yypos1112= G->pos, yythunkpos1112= G->thunkpos; if (!yy_HtmlBlockDl(G)) { goto l1113; } goto l1112;
  5045. l1113:; G->pos= yypos1112; G->thunkpos= yythunkpos1112;
  5046. { int yypos1114= G->pos, yythunkpos1114= G->thunkpos; if (!yy_HtmlBlockCloseDl(G)) { goto l1114; } goto l1111;
  5047. l1114:; G->pos= yypos1114; G->thunkpos= yythunkpos1114;
  5048. } if (!yymatchDot(G)) goto l1111;
  5049. }
  5050. l1112:; goto l1110;
  5051. l1111:; G->pos= yypos1111; G->thunkpos= yythunkpos1111;
  5052. } if (!yy_HtmlBlockCloseDl(G)) { goto l1109; }
  5053. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5054. return 1;
  5055. l1109:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5056. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5057. return 0;
  5058. }
  5059. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G)
  5060. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5061. yyprintf((stderr, "%s\n", "HtmlBlockCloseDl")); if (!yymatchChar(G, '<')) goto l1115; if (!yy_Spnl(G)) { goto l1115; } if (!yymatchChar(G, '/')) goto l1115;
  5062. { int yypos1116= G->pos, yythunkpos1116= G->thunkpos; if (!yymatchString(G, "dl")) goto l1117; goto l1116;
  5063. l1117:; G->pos= yypos1116; G->thunkpos= yythunkpos1116; if (!yymatchString(G, "DL")) goto l1115;
  5064. }
  5065. l1116:; if (!yy_Spnl(G)) { goto l1115; } if (!yymatchChar(G, '>')) goto l1115;
  5066. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5067. return 1;
  5068. l1115:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5069. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5070. return 0;
  5071. }
  5072. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G)
  5073. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5074. yyprintf((stderr, "%s\n", "HtmlBlockOpenDl")); if (!yymatchChar(G, '<')) goto l1118; if (!yy_Spnl(G)) { goto l1118; }
  5075. { int yypos1119= G->pos, yythunkpos1119= G->thunkpos; if (!yymatchString(G, "dl")) goto l1120; goto l1119;
  5076. l1120:; G->pos= yypos1119; G->thunkpos= yythunkpos1119; if (!yymatchString(G, "DL")) goto l1118;
  5077. }
  5078. l1119:; if (!yy_Spnl(G)) { goto l1118; }
  5079. l1121:;
  5080. { int yypos1122= G->pos, yythunkpos1122= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1122; } goto l1121;
  5081. l1122:; G->pos= yypos1122; G->thunkpos= yythunkpos1122;
  5082. } if (!yymatchChar(G, '>')) goto l1118;
  5083. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5084. return 1;
  5085. l1118:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5086. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5087. return 0;
  5088. }
  5089. YY_RULE(int) yy_HtmlBlockDiv(GREG *G)
  5090. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5091. yyprintf((stderr, "%s\n", "HtmlBlockDiv")); if (!yy_HtmlBlockOpenDiv(G)) { goto l1123; }
  5092. l1124:;
  5093. { int yypos1125= G->pos, yythunkpos1125= G->thunkpos;
  5094. { int yypos1126= G->pos, yythunkpos1126= G->thunkpos; if (!yy_HtmlBlockDiv(G)) { goto l1127; } goto l1126;
  5095. l1127:; G->pos= yypos1126; G->thunkpos= yythunkpos1126;
  5096. { int yypos1128= G->pos, yythunkpos1128= G->thunkpos; if (!yy_HtmlBlockCloseDiv(G)) { goto l1128; } goto l1125;
  5097. l1128:; G->pos= yypos1128; G->thunkpos= yythunkpos1128;
  5098. } if (!yymatchDot(G)) goto l1125;
  5099. }
  5100. l1126:; goto l1124;
  5101. l1125:; G->pos= yypos1125; G->thunkpos= yythunkpos1125;
  5102. } if (!yy_HtmlBlockCloseDiv(G)) { goto l1123; }
  5103. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5104. return 1;
  5105. l1123:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5106. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5107. return 0;
  5108. }
  5109. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G)
  5110. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5111. yyprintf((stderr, "%s\n", "HtmlBlockCloseDiv")); if (!yymatchChar(G, '<')) goto l1129; if (!yy_Spnl(G)) { goto l1129; } if (!yymatchChar(G, '/')) goto l1129;
  5112. { int yypos1130= G->pos, yythunkpos1130= G->thunkpos; if (!yymatchString(G, "div")) goto l1131; goto l1130;
  5113. l1131:; G->pos= yypos1130; G->thunkpos= yythunkpos1130; if (!yymatchString(G, "DIV")) goto l1129;
  5114. }
  5115. l1130:; if (!yy_Spnl(G)) { goto l1129; } if (!yymatchChar(G, '>')) goto l1129;
  5116. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5117. return 1;
  5118. l1129:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5119. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5120. return 0;
  5121. }
  5122. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G)
  5123. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5124. yyprintf((stderr, "%s\n", "HtmlBlockOpenDiv")); if (!yymatchChar(G, '<')) goto l1132; if (!yy_Spnl(G)) { goto l1132; }
  5125. { int yypos1133= G->pos, yythunkpos1133= G->thunkpos; if (!yymatchString(G, "div")) goto l1134; goto l1133;
  5126. l1134:; G->pos= yypos1133; G->thunkpos= yythunkpos1133; if (!yymatchString(G, "DIV")) goto l1132;
  5127. }
  5128. l1133:; if (!yy_Spnl(G)) { goto l1132; }
  5129. l1135:;
  5130. { int yypos1136= G->pos, yythunkpos1136= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1136; } goto l1135;
  5131. l1136:; G->pos= yypos1136; G->thunkpos= yythunkpos1136;
  5132. } if (!yymatchChar(G, '>')) goto l1132;
  5133. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5134. return 1;
  5135. l1132:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5136. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5137. return 0;
  5138. }
  5139. YY_RULE(int) yy_HtmlBlockDir(GREG *G)
  5140. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5141. yyprintf((stderr, "%s\n", "HtmlBlockDir")); if (!yy_HtmlBlockOpenDir(G)) { goto l1137; }
  5142. l1138:;
  5143. { int yypos1139= G->pos, yythunkpos1139= G->thunkpos;
  5144. { int yypos1140= G->pos, yythunkpos1140= G->thunkpos; if (!yy_HtmlBlockDir(G)) { goto l1141; } goto l1140;
  5145. l1141:; G->pos= yypos1140; G->thunkpos= yythunkpos1140;
  5146. { int yypos1142= G->pos, yythunkpos1142= G->thunkpos; if (!yy_HtmlBlockCloseDir(G)) { goto l1142; } goto l1139;
  5147. l1142:; G->pos= yypos1142; G->thunkpos= yythunkpos1142;
  5148. } if (!yymatchDot(G)) goto l1139;
  5149. }
  5150. l1140:; goto l1138;
  5151. l1139:; G->pos= yypos1139; G->thunkpos= yythunkpos1139;
  5152. } if (!yy_HtmlBlockCloseDir(G)) { goto l1137; }
  5153. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5154. return 1;
  5155. l1137:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5156. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5157. return 0;
  5158. }
  5159. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G)
  5160. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5161. yyprintf((stderr, "%s\n", "HtmlBlockCloseDir")); if (!yymatchChar(G, '<')) goto l1143; if (!yy_Spnl(G)) { goto l1143; } if (!yymatchChar(G, '/')) goto l1143;
  5162. { int yypos1144= G->pos, yythunkpos1144= G->thunkpos; if (!yymatchString(G, "dir")) goto l1145; goto l1144;
  5163. l1145:; G->pos= yypos1144; G->thunkpos= yythunkpos1144; if (!yymatchString(G, "DIR")) goto l1143;
  5164. }
  5165. l1144:; if (!yy_Spnl(G)) { goto l1143; } if (!yymatchChar(G, '>')) goto l1143;
  5166. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5167. return 1;
  5168. l1143:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5169. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5170. return 0;
  5171. }
  5172. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G)
  5173. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5174. yyprintf((stderr, "%s\n", "HtmlBlockOpenDir")); if (!yymatchChar(G, '<')) goto l1146; if (!yy_Spnl(G)) { goto l1146; }
  5175. { int yypos1147= G->pos, yythunkpos1147= G->thunkpos; if (!yymatchString(G, "dir")) goto l1148; goto l1147;
  5176. l1148:; G->pos= yypos1147; G->thunkpos= yythunkpos1147; if (!yymatchString(G, "DIR")) goto l1146;
  5177. }
  5178. l1147:; if (!yy_Spnl(G)) { goto l1146; }
  5179. l1149:;
  5180. { int yypos1150= G->pos, yythunkpos1150= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1150; } goto l1149;
  5181. l1150:; G->pos= yypos1150; G->thunkpos= yythunkpos1150;
  5182. } if (!yymatchChar(G, '>')) goto l1146;
  5183. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5184. return 1;
  5185. l1146:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5186. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5187. return 0;
  5188. }
  5189. YY_RULE(int) yy_HtmlBlockCenter(GREG *G)
  5190. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5191. yyprintf((stderr, "%s\n", "HtmlBlockCenter")); if (!yy_HtmlBlockOpenCenter(G)) { goto l1151; }
  5192. l1152:;
  5193. { int yypos1153= G->pos, yythunkpos1153= G->thunkpos;
  5194. { int yypos1154= G->pos, yythunkpos1154= G->thunkpos; if (!yy_HtmlBlockCenter(G)) { goto l1155; } goto l1154;
  5195. l1155:; G->pos= yypos1154; G->thunkpos= yythunkpos1154;
  5196. { int yypos1156= G->pos, yythunkpos1156= G->thunkpos; if (!yy_HtmlBlockCloseCenter(G)) { goto l1156; } goto l1153;
  5197. l1156:; G->pos= yypos1156; G->thunkpos= yythunkpos1156;
  5198. } if (!yymatchDot(G)) goto l1153;
  5199. }
  5200. l1154:; goto l1152;
  5201. l1153:; G->pos= yypos1153; G->thunkpos= yythunkpos1153;
  5202. } if (!yy_HtmlBlockCloseCenter(G)) { goto l1151; }
  5203. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5204. return 1;
  5205. l1151:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5206. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5207. return 0;
  5208. }
  5209. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G)
  5210. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5211. yyprintf((stderr, "%s\n", "HtmlBlockCloseCenter")); if (!yymatchChar(G, '<')) goto l1157; if (!yy_Spnl(G)) { goto l1157; } if (!yymatchChar(G, '/')) goto l1157;
  5212. { int yypos1158= G->pos, yythunkpos1158= G->thunkpos; if (!yymatchString(G, "center")) goto l1159; goto l1158;
  5213. l1159:; G->pos= yypos1158; G->thunkpos= yythunkpos1158; if (!yymatchString(G, "CENTER")) goto l1157;
  5214. }
  5215. l1158:; if (!yy_Spnl(G)) { goto l1157; } if (!yymatchChar(G, '>')) goto l1157;
  5216. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5217. return 1;
  5218. l1157:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5219. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5220. return 0;
  5221. }
  5222. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G)
  5223. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5224. yyprintf((stderr, "%s\n", "HtmlBlockOpenCenter")); if (!yymatchChar(G, '<')) goto l1160; if (!yy_Spnl(G)) { goto l1160; }
  5225. { int yypos1161= G->pos, yythunkpos1161= G->thunkpos; if (!yymatchString(G, "center")) goto l1162; goto l1161;
  5226. l1162:; G->pos= yypos1161; G->thunkpos= yythunkpos1161; if (!yymatchString(G, "CENTER")) goto l1160;
  5227. }
  5228. l1161:; if (!yy_Spnl(G)) { goto l1160; }
  5229. l1163:;
  5230. { int yypos1164= G->pos, yythunkpos1164= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1164; } goto l1163;
  5231. l1164:; G->pos= yypos1164; G->thunkpos= yythunkpos1164;
  5232. } if (!yymatchChar(G, '>')) goto l1160;
  5233. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5234. return 1;
  5235. l1160:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5236. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5237. return 0;
  5238. }
  5239. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G)
  5240. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5241. yyprintf((stderr, "%s\n", "HtmlBlockBlockquote")); if (!yy_HtmlBlockOpenBlockquote(G)) { goto l1165; }
  5242. l1166:;
  5243. { int yypos1167= G->pos, yythunkpos1167= G->thunkpos;
  5244. { int yypos1168= G->pos, yythunkpos1168= G->thunkpos; if (!yy_HtmlBlockBlockquote(G)) { goto l1169; } goto l1168;
  5245. l1169:; G->pos= yypos1168; G->thunkpos= yythunkpos1168;
  5246. { int yypos1170= G->pos, yythunkpos1170= G->thunkpos; if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1170; } goto l1167;
  5247. l1170:; G->pos= yypos1170; G->thunkpos= yythunkpos1170;
  5248. } if (!yymatchDot(G)) goto l1167;
  5249. }
  5250. l1168:; goto l1166;
  5251. l1167:; G->pos= yypos1167; G->thunkpos= yythunkpos1167;
  5252. } if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1165; }
  5253. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5254. return 1;
  5255. l1165:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5256. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5257. return 0;
  5258. }
  5259. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G)
  5260. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5261. yyprintf((stderr, "%s\n", "HtmlBlockCloseBlockquote")); if (!yymatchChar(G, '<')) goto l1171; if (!yy_Spnl(G)) { goto l1171; } if (!yymatchChar(G, '/')) goto l1171;
  5262. { int yypos1172= G->pos, yythunkpos1172= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1173; goto l1172;
  5263. l1173:; G->pos= yypos1172; G->thunkpos= yythunkpos1172; if (!yymatchString(G, "BLOCKQUOTE")) goto l1171;
  5264. }
  5265. l1172:; if (!yy_Spnl(G)) { goto l1171; } if (!yymatchChar(G, '>')) goto l1171;
  5266. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5267. return 1;
  5268. l1171:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5269. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5270. return 0;
  5271. }
  5272. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G)
  5273. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5274. yyprintf((stderr, "%s\n", "HtmlBlockOpenBlockquote")); if (!yymatchChar(G, '<')) goto l1174; if (!yy_Spnl(G)) { goto l1174; }
  5275. { int yypos1175= G->pos, yythunkpos1175= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1176; goto l1175;
  5276. l1176:; G->pos= yypos1175; G->thunkpos= yythunkpos1175; if (!yymatchString(G, "BLOCKQUOTE")) goto l1174;
  5277. }
  5278. l1175:; if (!yy_Spnl(G)) { goto l1174; }
  5279. l1177:;
  5280. { int yypos1178= G->pos, yythunkpos1178= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1178; } goto l1177;
  5281. l1178:; G->pos= yypos1178; G->thunkpos= yythunkpos1178;
  5282. } if (!yymatchChar(G, '>')) goto l1174;
  5283. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5284. return 1;
  5285. l1174:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5286. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5287. return 0;
  5288. }
  5289. YY_RULE(int) yy_HtmlBlockAddress(GREG *G)
  5290. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5291. yyprintf((stderr, "%s\n", "HtmlBlockAddress")); if (!yy_HtmlBlockOpenAddress(G)) { goto l1179; }
  5292. l1180:;
  5293. { int yypos1181= G->pos, yythunkpos1181= G->thunkpos;
  5294. { int yypos1182= G->pos, yythunkpos1182= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l1183; } goto l1182;
  5295. l1183:; G->pos= yypos1182; G->thunkpos= yythunkpos1182;
  5296. { int yypos1184= G->pos, yythunkpos1184= G->thunkpos; if (!yy_HtmlBlockCloseAddress(G)) { goto l1184; } goto l1181;
  5297. l1184:; G->pos= yypos1184; G->thunkpos= yythunkpos1184;
  5298. } if (!yymatchDot(G)) goto l1181;
  5299. }
  5300. l1182:; goto l1180;
  5301. l1181:; G->pos= yypos1181; G->thunkpos= yythunkpos1181;
  5302. } if (!yy_HtmlBlockCloseAddress(G)) { goto l1179; }
  5303. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5304. return 1;
  5305. l1179:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5306. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5307. return 0;
  5308. }
  5309. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G)
  5310. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5311. yyprintf((stderr, "%s\n", "HtmlBlockCloseAddress")); if (!yymatchChar(G, '<')) goto l1185; if (!yy_Spnl(G)) { goto l1185; } if (!yymatchChar(G, '/')) goto l1185;
  5312. { int yypos1186= G->pos, yythunkpos1186= G->thunkpos; if (!yymatchString(G, "address")) goto l1187; goto l1186;
  5313. l1187:; G->pos= yypos1186; G->thunkpos= yythunkpos1186; if (!yymatchString(G, "ADDRESS")) goto l1185;
  5314. }
  5315. l1186:; if (!yy_Spnl(G)) { goto l1185; } if (!yymatchChar(G, '>')) goto l1185;
  5316. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5317. return 1;
  5318. l1185:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5319. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5320. return 0;
  5321. }
  5322. YY_RULE(int) yy_HtmlAttribute(GREG *G)
  5323. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5324. yyprintf((stderr, "%s\n", "HtmlAttribute"));
  5325. { int yypos1191= G->pos, yythunkpos1191= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1192; } goto l1191;
  5326. l1192:; G->pos= yypos1191; G->thunkpos= yythunkpos1191; if (!yymatchChar(G, '-')) goto l1188;
  5327. }
  5328. l1191:;
  5329. l1189:;
  5330. { int yypos1190= G->pos, yythunkpos1190= G->thunkpos;
  5331. { int yypos1193= G->pos, yythunkpos1193= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1194; } goto l1193;
  5332. l1194:; G->pos= yypos1193; G->thunkpos= yythunkpos1193; if (!yymatchChar(G, '-')) goto l1190;
  5333. }
  5334. l1193:; goto l1189;
  5335. l1190:; G->pos= yypos1190; G->thunkpos= yythunkpos1190;
  5336. } if (!yy_Spnl(G)) { goto l1188; }
  5337. { int yypos1195= G->pos, yythunkpos1195= G->thunkpos; if (!yymatchChar(G, '=')) goto l1195; if (!yy_Spnl(G)) { goto l1195; }
  5338. { int yypos1197= G->pos, yythunkpos1197= G->thunkpos; if (!yy_Quoted(G)) { goto l1198; } goto l1197;
  5339. l1198:; G->pos= yypos1197; G->thunkpos= yythunkpos1197;
  5340. { int yypos1201= G->pos, yythunkpos1201= G->thunkpos; if (!yymatchChar(G, '>')) goto l1201; goto l1195;
  5341. l1201:; G->pos= yypos1201; G->thunkpos= yythunkpos1201;
  5342. } if (!yy_Nonspacechar(G)) { goto l1195; }
  5343. l1199:;
  5344. { int yypos1200= G->pos, yythunkpos1200= G->thunkpos;
  5345. { int yypos1202= G->pos, yythunkpos1202= G->thunkpos; if (!yymatchChar(G, '>')) goto l1202; goto l1200;
  5346. l1202:; G->pos= yypos1202; G->thunkpos= yythunkpos1202;
  5347. } if (!yy_Nonspacechar(G)) { goto l1200; } goto l1199;
  5348. l1200:; G->pos= yypos1200; G->thunkpos= yythunkpos1200;
  5349. }
  5350. }
  5351. l1197:; goto l1196;
  5352. l1195:; G->pos= yypos1195; G->thunkpos= yythunkpos1195;
  5353. }
  5354. l1196:; if (!yy_Spnl(G)) { goto l1188; }
  5355. yyprintf((stderr, " ok %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5356. return 1;
  5357. l1188:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5358. yyprintf((stderr, " fail %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5359. return 0;
  5360. }
  5361. YY_RULE(int) yy_Spnl(GREG *G)
  5362. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5363. yyprintf((stderr, "%s\n", "Spnl")); if (!yy_Sp(G)) { goto l1203; }
  5364. { int yypos1204= G->pos, yythunkpos1204= G->thunkpos; if (!yy_Newline(G)) { goto l1204; } if (!yy_Sp(G)) { goto l1204; } goto l1205;
  5365. l1204:; G->pos= yypos1204; G->thunkpos= yythunkpos1204;
  5366. }
  5367. l1205:;
  5368. yyprintf((stderr, " ok %s @ %s\n", "Spnl", G->buf+G->pos));
  5369. return 1;
  5370. l1203:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5371. yyprintf((stderr, " fail %s @ %s\n", "Spnl", G->buf+G->pos));
  5372. return 0;
  5373. }
  5374. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G)
  5375. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5376. yyprintf((stderr, "%s\n", "HtmlBlockOpenAddress")); if (!yymatchChar(G, '<')) goto l1206; if (!yy_Spnl(G)) { goto l1206; }
  5377. { int yypos1207= G->pos, yythunkpos1207= G->thunkpos; if (!yymatchString(G, "address")) goto l1208; goto l1207;
  5378. l1208:; G->pos= yypos1207; G->thunkpos= yythunkpos1207; if (!yymatchString(G, "ADDRESS")) goto l1206;
  5379. }
  5380. l1207:; if (!yy_Spnl(G)) { goto l1206; }
  5381. l1209:;
  5382. { int yypos1210= G->pos, yythunkpos1210= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1210; } goto l1209;
  5383. l1210:; G->pos= yypos1210; G->thunkpos= yythunkpos1210;
  5384. } if (!yymatchChar(G, '>')) goto l1206;
  5385. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5386. return 1;
  5387. l1206:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5388. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5389. return 0;
  5390. }
  5391. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G)
  5392. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5393. yyprintf((stderr, "%s\n", "OptionallyIndentedLine"));
  5394. { int yypos1212= G->pos, yythunkpos1212= G->thunkpos; if (!yy_Indent(G)) { goto l1212; } goto l1213;
  5395. l1212:; G->pos= yypos1212; G->thunkpos= yythunkpos1212;
  5396. }
  5397. l1213:; if (!yy_Line(G)) { goto l1211; }
  5398. yyprintf((stderr, " ok %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5399. return 1;
  5400. l1211:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5401. yyprintf((stderr, " fail %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5402. return 0;
  5403. }
  5404. YY_RULE(int) yy_Indent(GREG *G)
  5405. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5406. yyprintf((stderr, "%s\n", "Indent"));
  5407. { int yypos1215= G->pos, yythunkpos1215= G->thunkpos; if (!yymatchChar(G, '\t')) goto l1216; goto l1215;
  5408. l1216:; G->pos= yypos1215; G->thunkpos= yythunkpos1215; if (!yymatchString(G, " ")) goto l1214;
  5409. }
  5410. l1215:;
  5411. yyprintf((stderr, " ok %s @ %s\n", "Indent", G->buf+G->pos));
  5412. return 1;
  5413. l1214:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5414. yyprintf((stderr, " fail %s @ %s\n", "Indent", G->buf+G->pos));
  5415. return 0;
  5416. }
  5417. YY_RULE(int) yy_ListBlockLine(GREG *G)
  5418. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5419. yyprintf((stderr, "%s\n", "ListBlockLine"));
  5420. { int yypos1218= G->pos, yythunkpos1218= G->thunkpos; if (!yy_BlankLine(G)) { goto l1218; } goto l1217;
  5421. l1218:; G->pos= yypos1218; G->thunkpos= yythunkpos1218;
  5422. }
  5423. { int yypos1219= G->pos, yythunkpos1219= G->thunkpos;
  5424. { int yypos1220= G->pos, yythunkpos1220= G->thunkpos; if (!yy_Indent(G)) { goto l1220; } goto l1221;
  5425. l1220:; G->pos= yypos1220; G->thunkpos= yythunkpos1220;
  5426. }
  5427. l1221:;
  5428. { int yypos1222= G->pos, yythunkpos1222= G->thunkpos; if (!yy_Bullet(G)) { goto l1223; } goto l1222;
  5429. l1223:; G->pos= yypos1222; G->thunkpos= yythunkpos1222; if (!yy_Enumerator(G)) { goto l1219; }
  5430. }
  5431. l1222:; goto l1217;
  5432. l1219:; G->pos= yypos1219; G->thunkpos= yythunkpos1219;
  5433. }
  5434. { int yypos1224= G->pos, yythunkpos1224= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1224; } goto l1217;
  5435. l1224:; G->pos= yypos1224; G->thunkpos= yythunkpos1224;
  5436. } if (!yy_OptionallyIndentedLine(G)) { goto l1217; }
  5437. yyprintf((stderr, " ok %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5438. return 1;
  5439. l1217:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5440. yyprintf((stderr, " fail %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5441. return 0;
  5442. }
  5443. YY_RULE(int) yy_ListContinuationBlock(GREG *G)
  5444. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5445. yyprintf((stderr, "%s\n", "ListContinuationBlock")); if (!yy_StartList(G)) { goto l1225; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1225;
  5446. l1226:;
  5447. { int yypos1227= G->pos, yythunkpos1227= G->thunkpos; if (!yy_BlankLine(G)) { goto l1227; } goto l1226;
  5448. l1227:; G->pos= yypos1227; G->thunkpos= yythunkpos1227;
  5449. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1225; yyDo(G, yy_1_ListContinuationBlock, G->begin, G->end); if (!yy_Indent(G)) { goto l1225; } if (!yy_ListBlock(G)) { goto l1225; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end);
  5450. l1228:;
  5451. { int yypos1229= G->pos, yythunkpos1229= G->thunkpos; if (!yy_Indent(G)) { goto l1229; } if (!yy_ListBlock(G)) { goto l1229; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end); goto l1228;
  5452. l1229:; G->pos= yypos1229; G->thunkpos= yythunkpos1229;
  5453. } yyDo(G, yy_3_ListContinuationBlock, G->begin, G->end);
  5454. yyprintf((stderr, " ok %s @ %s\n", "ListContinuationBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5455. return 1;
  5456. l1225:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5457. yyprintf((stderr, " fail %s @ %s\n", "ListContinuationBlock", G->buf+G->pos));
  5458. return 0;
  5459. }
  5460. YY_RULE(int) yy_ListBlock(GREG *G)
  5461. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5462. yyprintf((stderr, "%s\n", "ListBlock")); if (!yy_StartList(G)) { goto l1230; } yyDo(G, yySet, -1, 0);
  5463. { int yypos1231= G->pos, yythunkpos1231= G->thunkpos; if (!yy_BlankLine(G)) { goto l1231; } goto l1230;
  5464. l1231:; G->pos= yypos1231; G->thunkpos= yythunkpos1231;
  5465. } if (!yy_Line(G)) { goto l1230; } yyDo(G, yy_1_ListBlock, G->begin, G->end);
  5466. l1232:;
  5467. { int yypos1233= G->pos, yythunkpos1233= G->thunkpos; if (!yy_ListBlockLine(G)) { goto l1233; } yyDo(G, yy_2_ListBlock, G->begin, G->end); goto l1232;
  5468. l1233:; G->pos= yypos1233; G->thunkpos= yythunkpos1233;
  5469. } yyDo(G, yy_3_ListBlock, G->begin, G->end);
  5470. yyprintf((stderr, " ok %s @ %s\n", "ListBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5471. return 1;
  5472. l1230:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5473. yyprintf((stderr, " fail %s @ %s\n", "ListBlock", G->buf+G->pos));
  5474. return 0;
  5475. }
  5476. YY_RULE(int) yy_ListItem(GREG *G)
  5477. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5478. yyprintf((stderr, "%s\n", "ListItem"));
  5479. { int yypos1235= G->pos, yythunkpos1235= G->thunkpos; if (!yy_Bullet(G)) { goto l1236; } goto l1235;
  5480. l1236:; G->pos= yypos1235; G->thunkpos= yythunkpos1235; if (!yy_Enumerator(G)) { goto l1234; }
  5481. }
  5482. l1235:; if (!yy_StartList(G)) { goto l1234; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1234; } yyDo(G, yy_1_ListItem, G->begin, G->end);
  5483. l1237:;
  5484. { int yypos1238= G->pos, yythunkpos1238= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1238; } yyDo(G, yy_2_ListItem, G->begin, G->end); goto l1237;
  5485. l1238:; G->pos= yypos1238; G->thunkpos= yythunkpos1238;
  5486. } yyDo(G, yy_3_ListItem, G->begin, G->end);
  5487. yyprintf((stderr, " ok %s @ %s\n", "ListItem", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5488. return 1;
  5489. l1234:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5490. yyprintf((stderr, " fail %s @ %s\n", "ListItem", G->buf+G->pos));
  5491. return 0;
  5492. }
  5493. YY_RULE(int) yy_Enumerator(GREG *G)
  5494. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5495. yyprintf((stderr, "%s\n", "Enumerator")); if (!yy_NonindentSpace(G)) { goto l1239; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1239; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l1239;
  5496. l1240:;
  5497. { int yypos1241= G->pos, yythunkpos1241= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l1241; goto l1240;
  5498. l1241:; G->pos= yypos1241; G->thunkpos= yythunkpos1241;
  5499. } if (!yymatchChar(G, '.')) goto l1239; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1239; if (!yy_Spacechar(G)) { goto l1239; }
  5500. l1242:;
  5501. { int yypos1243= G->pos, yythunkpos1243= G->thunkpos; if (!yy_Spacechar(G)) { goto l1243; } goto l1242;
  5502. l1243:; G->pos= yypos1243; G->thunkpos= yythunkpos1243;
  5503. } yyDo(G, yy_1_Enumerator, G->begin, G->end);
  5504. yyprintf((stderr, " ok %s @ %s\n", "Enumerator", G->buf+G->pos));
  5505. return 1;
  5506. l1239:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5507. yyprintf((stderr, " fail %s @ %s\n", "Enumerator", G->buf+G->pos));
  5508. return 0;
  5509. }
  5510. YY_RULE(int) yy_ListItemTight(GREG *G)
  5511. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5512. yyprintf((stderr, "%s\n", "ListItemTight"));
  5513. { int yypos1245= G->pos, yythunkpos1245= G->thunkpos; if (!yy_Bullet(G)) { goto l1246; } goto l1245;
  5514. l1246:; G->pos= yypos1245; G->thunkpos= yythunkpos1245; if (!yy_Enumerator(G)) { goto l1244; }
  5515. }
  5516. l1245:; if (!yy_StartList(G)) { goto l1244; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1244; } yyDo(G, yy_1_ListItemTight, G->begin, G->end);
  5517. l1247:;
  5518. { int yypos1248= G->pos, yythunkpos1248= G->thunkpos;
  5519. { int yypos1249= G->pos, yythunkpos1249= G->thunkpos; if (!yy_BlankLine(G)) { goto l1249; } goto l1248;
  5520. l1249:; G->pos= yypos1249; G->thunkpos= yythunkpos1249;
  5521. } if (!yy_ListContinuationBlock(G)) { goto l1248; } yyDo(G, yy_2_ListItemTight, G->begin, G->end); goto l1247;
  5522. l1248:; G->pos= yypos1248; G->thunkpos= yythunkpos1248;
  5523. }
  5524. { int yypos1250= G->pos, yythunkpos1250= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1250; } goto l1244;
  5525. l1250:; G->pos= yypos1250; G->thunkpos= yythunkpos1250;
  5526. } yyDo(G, yy_3_ListItemTight, G->begin, G->end);
  5527. yyprintf((stderr, " ok %s @ %s\n", "ListItemTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5528. return 1;
  5529. l1244:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5530. yyprintf((stderr, " fail %s @ %s\n", "ListItemTight", G->buf+G->pos));
  5531. return 0;
  5532. }
  5533. YY_RULE(int) yy_ListLoose(GREG *G)
  5534. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  5535. yyprintf((stderr, "%s\n", "ListLoose")); if (!yy_StartList(G)) { goto l1251; } yyDo(G, yySet, -2, 0); if (!yy_ListItem(G)) { goto l1251; } yyDo(G, yySet, -1, 0);
  5536. l1254:;
  5537. { int yypos1255= G->pos, yythunkpos1255= G->thunkpos; if (!yy_BlankLine(G)) { goto l1255; } goto l1254;
  5538. l1255:; G->pos= yypos1255; G->thunkpos= yythunkpos1255;
  5539. } yyDo(G, yy_1_ListLoose, G->begin, G->end);
  5540. l1252:;
  5541. { int yypos1253= G->pos, yythunkpos1253= G->thunkpos; if (!yy_ListItem(G)) { goto l1253; } yyDo(G, yySet, -1, 0);
  5542. l1256:;
  5543. { int yypos1257= G->pos, yythunkpos1257= G->thunkpos; if (!yy_BlankLine(G)) { goto l1257; } goto l1256;
  5544. l1257:; G->pos= yypos1257; G->thunkpos= yythunkpos1257;
  5545. } yyDo(G, yy_1_ListLoose, G->begin, G->end); goto l1252;
  5546. l1253:; G->pos= yypos1253; G->thunkpos= yythunkpos1253;
  5547. } yyDo(G, yy_2_ListLoose, G->begin, G->end);
  5548. yyprintf((stderr, " ok %s @ %s\n", "ListLoose", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  5549. return 1;
  5550. l1251:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5551. yyprintf((stderr, " fail %s @ %s\n", "ListLoose", G->buf+G->pos));
  5552. return 0;
  5553. }
  5554. YY_RULE(int) yy_ListTight(GREG *G)
  5555. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5556. yyprintf((stderr, "%s\n", "ListTight")); if (!yy_StartList(G)) { goto l1258; } yyDo(G, yySet, -1, 0); if (!yy_ListItemTight(G)) { goto l1258; } yyDo(G, yy_1_ListTight, G->begin, G->end);
  5557. l1259:;
  5558. { int yypos1260= G->pos, yythunkpos1260= G->thunkpos; if (!yy_ListItemTight(G)) { goto l1260; } yyDo(G, yy_1_ListTight, G->begin, G->end); goto l1259;
  5559. l1260:; G->pos= yypos1260; G->thunkpos= yythunkpos1260;
  5560. }
  5561. l1261:;
  5562. { int yypos1262= G->pos, yythunkpos1262= G->thunkpos; if (!yy_BlankLine(G)) { goto l1262; } goto l1261;
  5563. l1262:; G->pos= yypos1262; G->thunkpos= yythunkpos1262;
  5564. }
  5565. { int yypos1263= G->pos, yythunkpos1263= G->thunkpos;
  5566. { int yypos1264= G->pos, yythunkpos1264= G->thunkpos; if (!yy_Bullet(G)) { goto l1265; } goto l1264;
  5567. l1265:; G->pos= yypos1264; G->thunkpos= yythunkpos1264; if (!yy_Enumerator(G)) { goto l1263; }
  5568. }
  5569. l1264:; goto l1258;
  5570. l1263:; G->pos= yypos1263; G->thunkpos= yythunkpos1263;
  5571. } yyDo(G, yy_2_ListTight, G->begin, G->end);
  5572. yyprintf((stderr, " ok %s @ %s\n", "ListTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5573. return 1;
  5574. l1258:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5575. yyprintf((stderr, " fail %s @ %s\n", "ListTight", G->buf+G->pos));
  5576. return 0;
  5577. }
  5578. YY_RULE(int) yy_Spacechar(GREG *G)
  5579. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5580. yyprintf((stderr, "%s\n", "Spacechar"));
  5581. { int yypos1267= G->pos, yythunkpos1267= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1268; goto l1267;
  5582. l1268:; G->pos= yypos1267; G->thunkpos= yythunkpos1267; if (!yymatchChar(G, '\t')) goto l1266;
  5583. }
  5584. l1267:;
  5585. yyprintf((stderr, " ok %s @ %s\n", "Spacechar", G->buf+G->pos));
  5586. return 1;
  5587. l1266:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5588. yyprintf((stderr, " fail %s @ %s\n", "Spacechar", G->buf+G->pos));
  5589. return 0;
  5590. }
  5591. YY_RULE(int) yy_Bullet(GREG *G)
  5592. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5593. yyprintf((stderr, "%s\n", "Bullet"));
  5594. { int yypos1270= G->pos, yythunkpos1270= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1270; } goto l1269;
  5595. l1270:; G->pos= yypos1270; G->thunkpos= yythunkpos1270;
  5596. } if (!yy_NonindentSpace(G)) { goto l1269; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1269;
  5597. { int yypos1271= G->pos, yythunkpos1271= G->thunkpos; if (!yymatchChar(G, '+')) goto l1272; goto l1271;
  5598. l1272:; G->pos= yypos1271; G->thunkpos= yythunkpos1271; if (!yymatchChar(G, '*')) goto l1273; goto l1271;
  5599. l1273:; G->pos= yypos1271; G->thunkpos= yythunkpos1271; if (!yymatchChar(G, '-')) goto l1269;
  5600. }
  5601. l1271:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1269; if (!yy_Spacechar(G)) { goto l1269; }
  5602. l1274:;
  5603. { int yypos1275= G->pos, yythunkpos1275= G->thunkpos; if (!yy_Spacechar(G)) { goto l1275; } goto l1274;
  5604. l1275:; G->pos= yypos1275; G->thunkpos= yythunkpos1275;
  5605. } yyDo(G, yy_1_Bullet, G->begin, G->end);
  5606. yyprintf((stderr, " ok %s @ %s\n", "Bullet", G->buf+G->pos));
  5607. return 1;
  5608. l1269:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5609. yyprintf((stderr, " fail %s @ %s\n", "Bullet", G->buf+G->pos));
  5610. return 0;
  5611. }
  5612. YY_RULE(int) yy_VerbatimChunk(GREG *G)
  5613. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5614. yyprintf((stderr, "%s\n", "VerbatimChunk"));
  5615. l1277:;
  5616. { int yypos1278= G->pos, yythunkpos1278= G->thunkpos; if (!yy_BlankLine(G)) { goto l1278; } goto l1277;
  5617. l1278:; G->pos= yypos1278; G->thunkpos= yythunkpos1278;
  5618. } if (!yy_NonblankIndentedLine(G)) { goto l1276; }
  5619. l1279:;
  5620. { int yypos1280= G->pos, yythunkpos1280= G->thunkpos; if (!yy_NonblankIndentedLine(G)) { goto l1280; } goto l1279;
  5621. l1280:; G->pos= yypos1280; G->thunkpos= yythunkpos1280;
  5622. }
  5623. yyprintf((stderr, " ok %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  5624. return 1;
  5625. l1276:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5626. yyprintf((stderr, " fail %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  5627. return 0;
  5628. }
  5629. YY_RULE(int) yy_IndentedLine(GREG *G)
  5630. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5631. yyprintf((stderr, "%s\n", "IndentedLine")); if (!yy_Indent(G)) { goto l1281; } if (!yy_Line(G)) { goto l1281; }
  5632. yyprintf((stderr, " ok %s @ %s\n", "IndentedLine", G->buf+G->pos));
  5633. return 1;
  5634. l1281:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5635. yyprintf((stderr, " fail %s @ %s\n", "IndentedLine", G->buf+G->pos));
  5636. return 0;
  5637. }
  5638. YY_RULE(int) yy_NonblankIndentedLine(GREG *G)
  5639. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5640. yyprintf((stderr, "%s\n", "NonblankIndentedLine"));
  5641. { int yypos1283= G->pos, yythunkpos1283= G->thunkpos; if (!yy_BlankLine(G)) { goto l1283; } goto l1282;
  5642. l1283:; G->pos= yypos1283; G->thunkpos= yythunkpos1283;
  5643. } if (!yy_IndentedLine(G)) { goto l1282; }
  5644. yyprintf((stderr, " ok %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  5645. return 1;
  5646. l1282:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5647. yyprintf((stderr, " fail %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  5648. return 0;
  5649. }
  5650. YY_RULE(int) yy_Line(GREG *G)
  5651. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5652. yyprintf((stderr, "%s\n", "Line")); if (!yy_RawLine(G)) { goto l1284; } yyDo(G, yy_1_Line, G->begin, G->end);
  5653. yyprintf((stderr, " ok %s @ %s\n", "Line", G->buf+G->pos));
  5654. return 1;
  5655. l1284:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5656. yyprintf((stderr, " fail %s @ %s\n", "Line", G->buf+G->pos));
  5657. return 0;
  5658. }
  5659. YY_RULE(int) yy_StartList(GREG *G)
  5660. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5661. yyprintf((stderr, "%s\n", "StartList"));
  5662. { int yypos1286= G->pos, yythunkpos1286= G->thunkpos; if (!yymatchDot(G)) goto l1285; G->pos= yypos1286; G->thunkpos= yythunkpos1286;
  5663. } yyDo(G, yy_1_StartList, G->begin, G->end);
  5664. yyprintf((stderr, " ok %s @ %s\n", "StartList", G->buf+G->pos));
  5665. return 1;
  5666. l1285:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5667. yyprintf((stderr, " fail %s @ %s\n", "StartList", G->buf+G->pos));
  5668. return 0;
  5669. }
  5670. YY_RULE(int) yy_BlockQuoteRaw(GREG *G)
  5671. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5672. yyprintf((stderr, "%s\n", "BlockQuoteRaw")); if (!yy_StartList(G)) { goto l1287; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1287; if (!yymatchChar(G, '>')) goto l1287;
  5673. { int yypos1290= G->pos, yythunkpos1290= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1290; goto l1291;
  5674. l1290:; G->pos= yypos1290; G->thunkpos= yythunkpos1290;
  5675. }
  5676. l1291:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1287; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1287; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  5677. l1292:;
  5678. { int yypos1293= G->pos, yythunkpos1293= G->thunkpos;
  5679. { int yypos1294= G->pos, yythunkpos1294= G->thunkpos; if (!yymatchChar(G, '>')) goto l1294; goto l1293;
  5680. l1294:; G->pos= yypos1294; G->thunkpos= yythunkpos1294;
  5681. }
  5682. { int yypos1295= G->pos, yythunkpos1295= G->thunkpos; if (!yy_BlankLine(G)) { goto l1295; } goto l1293;
  5683. l1295:; G->pos= yypos1295; G->thunkpos= yythunkpos1295;
  5684. } if (!yy_Line(G)) { goto l1293; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1292;
  5685. l1293:; G->pos= yypos1293; G->thunkpos= yythunkpos1293;
  5686. }
  5687. l1296:;
  5688. { int yypos1297= G->pos, yythunkpos1297= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1297; if (!yy_BlankLine(G)) { goto l1297; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1297; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1296;
  5689. l1297:; G->pos= yypos1297; G->thunkpos= yythunkpos1297;
  5690. }
  5691. l1288:;
  5692. { int yypos1289= G->pos, yythunkpos1289= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1289; if (!yymatchChar(G, '>')) goto l1289;
  5693. { int yypos1298= G->pos, yythunkpos1298= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1298; goto l1299;
  5694. l1298:; G->pos= yypos1298; G->thunkpos= yythunkpos1298;
  5695. }
  5696. l1299:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1289; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1289; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  5697. l1300:;
  5698. { int yypos1301= G->pos, yythunkpos1301= G->thunkpos;
  5699. { int yypos1302= G->pos, yythunkpos1302= G->thunkpos; if (!yymatchChar(G, '>')) goto l1302; goto l1301;
  5700. l1302:; G->pos= yypos1302; G->thunkpos= yythunkpos1302;
  5701. }
  5702. { int yypos1303= G->pos, yythunkpos1303= G->thunkpos; if (!yy_BlankLine(G)) { goto l1303; } goto l1301;
  5703. l1303:; G->pos= yypos1303; G->thunkpos= yythunkpos1303;
  5704. } if (!yy_Line(G)) { goto l1301; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1300;
  5705. l1301:; G->pos= yypos1301; G->thunkpos= yythunkpos1301;
  5706. }
  5707. l1304:;
  5708. { int yypos1305= G->pos, yythunkpos1305= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1305; if (!yy_BlankLine(G)) { goto l1305; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1305; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1304;
  5709. l1305:; G->pos= yypos1305; G->thunkpos= yythunkpos1305;
  5710. } goto l1288;
  5711. l1289:; G->pos= yypos1289; G->thunkpos= yythunkpos1289;
  5712. } yyDo(G, yy_5_BlockQuoteRaw, G->begin, G->end);
  5713. yyprintf((stderr, " ok %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5714. return 1;
  5715. l1287:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5716. yyprintf((stderr, " fail %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos));
  5717. return 0;
  5718. }
  5719. YY_RULE(int) yy_Endline(GREG *G)
  5720. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5721. yyprintf((stderr, "%s\n", "Endline"));
  5722. { int yypos1307= G->pos, yythunkpos1307= G->thunkpos; if (!yy_LineBreak(G)) { goto l1308; } goto l1307;
  5723. l1308:; G->pos= yypos1307; G->thunkpos= yythunkpos1307; if (!yy_TerminalEndline(G)) { goto l1309; } goto l1307;
  5724. l1309:; G->pos= yypos1307; G->thunkpos= yythunkpos1307; if (!yy_NormalEndline(G)) { goto l1306; }
  5725. }
  5726. l1307:;
  5727. yyprintf((stderr, " ok %s @ %s\n", "Endline", G->buf+G->pos));
  5728. return 1;
  5729. l1306:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5730. yyprintf((stderr, " fail %s @ %s\n", "Endline", G->buf+G->pos));
  5731. return 0;
  5732. }
  5733. YY_RULE(int) yy_RawLine(GREG *G)
  5734. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5735. yyprintf((stderr, "%s\n", "RawLine"));
  5736. { int yypos1311= G->pos, yythunkpos1311= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1312;
  5737. l1313:;
  5738. { int yypos1314= G->pos, yythunkpos1314= G->thunkpos;
  5739. { int yypos1315= G->pos, yythunkpos1315= G->thunkpos; if (!yymatchChar(G, '\r')) goto l1315; goto l1314;
  5740. l1315:; G->pos= yypos1315; G->thunkpos= yythunkpos1315;
  5741. }
  5742. { int yypos1316= G->pos, yythunkpos1316= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1316; goto l1314;
  5743. l1316:; G->pos= yypos1316; G->thunkpos= yythunkpos1316;
  5744. } if (!yymatchDot(G)) goto l1314; goto l1313;
  5745. l1314:; G->pos= yypos1314; G->thunkpos= yythunkpos1314;
  5746. } if (!yy_Newline(G)) { goto l1312; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1312; goto l1311;
  5747. l1312:; G->pos= yypos1311; G->thunkpos= yythunkpos1311; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1310; if (!yymatchDot(G)) goto l1310;
  5748. l1317:;
  5749. { int yypos1318= G->pos, yythunkpos1318= G->thunkpos; if (!yymatchDot(G)) goto l1318; goto l1317;
  5750. l1318:; G->pos= yypos1318; G->thunkpos= yythunkpos1318;
  5751. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1310; if (!yy_Eof(G)) { goto l1310; }
  5752. }
  5753. l1311:; yyDo(G, yy_1_RawLine, G->begin, G->end);
  5754. yyprintf((stderr, " ok %s @ %s\n", "RawLine", G->buf+G->pos));
  5755. return 1;
  5756. l1310:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5757. yyprintf((stderr, " fail %s @ %s\n", "RawLine", G->buf+G->pos));
  5758. return 0;
  5759. }
  5760. YY_RULE(int) yy_SetextBottom2(GREG *G)
  5761. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5762. yyprintf((stderr, "%s\n", "SetextBottom2")); if (!yymatchChar(G, '-')) goto l1319;
  5763. l1320:;
  5764. { int yypos1321= G->pos, yythunkpos1321= G->thunkpos; if (!yymatchChar(G, '-')) goto l1321; goto l1320;
  5765. l1321:; G->pos= yypos1321; G->thunkpos= yythunkpos1321;
  5766. } if (!yy_Newline(G)) { goto l1319; }
  5767. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  5768. return 1;
  5769. l1319:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5770. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  5771. return 0;
  5772. }
  5773. YY_RULE(int) yy_SetextBottom1(GREG *G)
  5774. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5775. yyprintf((stderr, "%s\n", "SetextBottom1")); if (!yymatchChar(G, '=')) goto l1322;
  5776. l1323:;
  5777. { int yypos1324= G->pos, yythunkpos1324= G->thunkpos; if (!yymatchChar(G, '=')) goto l1324; goto l1323;
  5778. l1324:; G->pos= yypos1324; G->thunkpos= yythunkpos1324;
  5779. } if (!yy_Newline(G)) { goto l1322; }
  5780. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  5781. return 1;
  5782. l1322:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5783. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  5784. return 0;
  5785. }
  5786. YY_RULE(int) yy_SetextHeading2(GREG *G)
  5787. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5788. yyprintf((stderr, "%s\n", "SetextHeading2"));
  5789. { int yypos1326= G->pos, yythunkpos1326= G->thunkpos; if (!yy_RawLine(G)) { goto l1325; } if (!yy_SetextBottom2(G)) { goto l1325; } G->pos= yypos1326; G->thunkpos= yythunkpos1326;
  5790. } if (!yy_LocMarker(G)) { goto l1325; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1325;
  5791. { int yypos1329= G->pos, yythunkpos1329= G->thunkpos; if (!yy_Endline(G)) { goto l1329; } goto l1325;
  5792. l1329:; G->pos= yypos1329; G->thunkpos= yythunkpos1329;
  5793. } if (!yy_Inline(G)) { goto l1325; }
  5794. l1327:;
  5795. { int yypos1328= G->pos, yythunkpos1328= G->thunkpos;
  5796. { int yypos1330= G->pos, yythunkpos1330= G->thunkpos; if (!yy_Endline(G)) { goto l1330; } goto l1328;
  5797. l1330:; G->pos= yypos1330; G->thunkpos= yythunkpos1330;
  5798. } if (!yy_Inline(G)) { goto l1328; } goto l1327;
  5799. l1328:; G->pos= yypos1328; G->thunkpos= yythunkpos1328;
  5800. } if (!yy_Sp(G)) { goto l1325; } if (!yy_Newline(G)) { goto l1325; } if (!yy_SetextBottom2(G)) { goto l1325; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1325; yyDo(G, yy_1_SetextHeading2, G->begin, G->end);
  5801. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5802. return 1;
  5803. l1325:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5804. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading2", G->buf+G->pos));
  5805. return 0;
  5806. }
  5807. YY_RULE(int) yy_SetextHeading1(GREG *G)
  5808. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5809. yyprintf((stderr, "%s\n", "SetextHeading1"));
  5810. { int yypos1332= G->pos, yythunkpos1332= G->thunkpos; if (!yy_RawLine(G)) { goto l1331; } if (!yy_SetextBottom1(G)) { goto l1331; } G->pos= yypos1332; G->thunkpos= yythunkpos1332;
  5811. } if (!yy_LocMarker(G)) { goto l1331; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1331;
  5812. { int yypos1335= G->pos, yythunkpos1335= G->thunkpos; if (!yy_Endline(G)) { goto l1335; } goto l1331;
  5813. l1335:; G->pos= yypos1335; G->thunkpos= yythunkpos1335;
  5814. } if (!yy_Inline(G)) { goto l1331; }
  5815. l1333:;
  5816. { int yypos1334= G->pos, yythunkpos1334= G->thunkpos;
  5817. { int yypos1336= G->pos, yythunkpos1336= G->thunkpos; if (!yy_Endline(G)) { goto l1336; } goto l1334;
  5818. l1336:; G->pos= yypos1336; G->thunkpos= yythunkpos1336;
  5819. } if (!yy_Inline(G)) { goto l1334; } goto l1333;
  5820. l1334:; G->pos= yypos1334; G->thunkpos= yythunkpos1334;
  5821. } if (!yy_Sp(G)) { goto l1331; } if (!yy_Newline(G)) { goto l1331; } if (!yy_SetextBottom1(G)) { goto l1331; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1331; yyDo(G, yy_1_SetextHeading1, G->begin, G->end);
  5822. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5823. return 1;
  5824. l1331:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5825. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading1", G->buf+G->pos));
  5826. return 0;
  5827. }
  5828. YY_RULE(int) yy_SetextHeading(GREG *G)
  5829. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5830. yyprintf((stderr, "%s\n", "SetextHeading"));
  5831. { int yypos1338= G->pos, yythunkpos1338= G->thunkpos; if (!yy_SetextHeading1(G)) { goto l1339; } goto l1338;
  5832. l1339:; G->pos= yypos1338; G->thunkpos= yythunkpos1338; if (!yy_SetextHeading2(G)) { goto l1337; }
  5833. }
  5834. l1338:;
  5835. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading", G->buf+G->pos));
  5836. return 1;
  5837. l1337:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5838. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading", G->buf+G->pos));
  5839. return 0;
  5840. }
  5841. YY_RULE(int) yy_AtxHeading(GREG *G)
  5842. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5843. yyprintf((stderr, "%s\n", "AtxHeading")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1340; if (!yy_AtxStart(G)) { goto l1340; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l1340; } if (!yy_AtxInline(G)) { goto l1340; }
  5844. l1341:;
  5845. { int yypos1342= G->pos, yythunkpos1342= G->thunkpos; if (!yy_AtxInline(G)) { goto l1342; } goto l1341;
  5846. l1342:; G->pos= yypos1342; G->thunkpos= yythunkpos1342;
  5847. }
  5848. { int yypos1343= G->pos, yythunkpos1343= G->thunkpos; if (!yy_Sp(G)) { goto l1343; }
  5849. l1345:;
  5850. { int yypos1346= G->pos, yythunkpos1346= G->thunkpos; if (!yymatchChar(G, '#')) goto l1346; goto l1345;
  5851. l1346:; G->pos= yypos1346; G->thunkpos= yythunkpos1346;
  5852. } if (!yy_Sp(G)) { goto l1343; } goto l1344;
  5853. l1343:; G->pos= yypos1343; G->thunkpos= yythunkpos1343;
  5854. }
  5855. l1344:; if (!yy_Newline(G)) { goto l1340; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1340; yyDo(G, yy_1_AtxHeading, G->begin, G->end);
  5856. yyprintf((stderr, " ok %s @ %s\n", "AtxHeading", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5857. return 1;
  5858. l1340:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5859. yyprintf((stderr, " fail %s @ %s\n", "AtxHeading", G->buf+G->pos));
  5860. return 0;
  5861. }
  5862. YY_RULE(int) yy_AtxStart(GREG *G)
  5863. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5864. yyprintf((stderr, "%s\n", "AtxStart")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1347;
  5865. { int yypos1348= G->pos, yythunkpos1348= G->thunkpos; if (!yymatchString(G, "######")) goto l1349; goto l1348;
  5866. l1349:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "#####")) goto l1350; goto l1348;
  5867. l1350:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "####")) goto l1351; goto l1348;
  5868. l1351:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "###")) goto l1352; goto l1348;
  5869. l1352:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "##")) goto l1353; goto l1348;
  5870. l1353:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchChar(G, '#')) goto l1347;
  5871. }
  5872. l1348:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1347; yyDo(G, yy_1_AtxStart, G->begin, G->end);
  5873. yyprintf((stderr, " ok %s @ %s\n", "AtxStart", G->buf+G->pos));
  5874. return 1;
  5875. l1347:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5876. yyprintf((stderr, " fail %s @ %s\n", "AtxStart", G->buf+G->pos));
  5877. return 0;
  5878. }
  5879. YY_RULE(int) yy_Inline(GREG *G)
  5880. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5881. yyprintf((stderr, "%s\n", "Inline"));
  5882. { int yypos1355= G->pos, yythunkpos1355= G->thunkpos; if (!yy_Str(G)) { goto l1356; } goto l1355;
  5883. l1356:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Endline(G)) { goto l1357; } goto l1355;
  5884. l1357:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_UlOrStarLine(G)) { goto l1358; } goto l1355;
  5885. l1358:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Space(G)) { goto l1359; } goto l1355;
  5886. l1359:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Strong(G)) { goto l1360; } goto l1355;
  5887. l1360:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Emph(G)) { goto l1361; } goto l1355;
  5888. l1361:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Strike(G)) { goto l1362; } goto l1355;
  5889. l1362:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Image(G)) { goto l1363; } goto l1355;
  5890. l1363:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Link(G)) { goto l1364; } goto l1355;
  5891. l1364:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_NoteReference(G)) { goto l1365; } goto l1355;
  5892. l1365:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_InlineNote(G)) { goto l1366; } goto l1355;
  5893. l1366:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Code(G)) { goto l1367; } goto l1355;
  5894. l1367:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_RawHtml(G)) { goto l1368; } goto l1355;
  5895. l1368:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Entity(G)) { goto l1369; } goto l1355;
  5896. l1369:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_EscapedChar(G)) { goto l1370; } goto l1355;
  5897. l1370:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Symbol(G)) { goto l1354; }
  5898. }
  5899. l1355:;
  5900. yyprintf((stderr, " ok %s @ %s\n", "Inline", G->buf+G->pos));
  5901. return 1;
  5902. l1354:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5903. yyprintf((stderr, " fail %s @ %s\n", "Inline", G->buf+G->pos));
  5904. return 0;
  5905. }
  5906. YY_RULE(int) yy_Sp(GREG *G)
  5907. {
  5908. yyprintf((stderr, "%s\n", "Sp"));
  5909. l1372:;
  5910. { int yypos1373= G->pos, yythunkpos1373= G->thunkpos; if (!yy_Spacechar(G)) { goto l1373; } goto l1372;
  5911. l1373:; G->pos= yypos1373; G->thunkpos= yythunkpos1373;
  5912. }
  5913. yyprintf((stderr, " ok %s @ %s\n", "Sp", G->buf+G->pos));
  5914. return 1;
  5915. }
  5916. YY_RULE(int) yy_Newline(GREG *G)
  5917. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5918. yyprintf((stderr, "%s\n", "Newline"));
  5919. { int yypos1375= G->pos, yythunkpos1375= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1376; goto l1375;
  5920. l1376:; G->pos= yypos1375; G->thunkpos= yythunkpos1375; if (!yymatchChar(G, '\r')) goto l1374;
  5921. { int yypos1377= G->pos, yythunkpos1377= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1377; goto l1378;
  5922. l1377:; G->pos= yypos1377; G->thunkpos= yythunkpos1377;
  5923. }
  5924. l1378:;
  5925. }
  5926. l1375:;
  5927. yyprintf((stderr, " ok %s @ %s\n", "Newline", G->buf+G->pos));
  5928. return 1;
  5929. l1374:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5930. yyprintf((stderr, " fail %s @ %s\n", "Newline", G->buf+G->pos));
  5931. return 0;
  5932. }
  5933. YY_RULE(int) yy_AtxInline(GREG *G)
  5934. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5935. yyprintf((stderr, "%s\n", "AtxInline"));
  5936. { int yypos1380= G->pos, yythunkpos1380= G->thunkpos; if (!yy_Newline(G)) { goto l1380; } goto l1379;
  5937. l1380:; G->pos= yypos1380; G->thunkpos= yythunkpos1380;
  5938. }
  5939. { int yypos1381= G->pos, yythunkpos1381= G->thunkpos; if (!yy_Sp(G)) { goto l1381; }
  5940. l1382:;
  5941. { int yypos1383= G->pos, yythunkpos1383= G->thunkpos; if (!yymatchChar(G, '#')) goto l1383; goto l1382;
  5942. l1383:; G->pos= yypos1383; G->thunkpos= yythunkpos1383;
  5943. } if (!yy_Sp(G)) { goto l1381; } if (!yy_Newline(G)) { goto l1381; } goto l1379;
  5944. l1381:; G->pos= yypos1381; G->thunkpos= yythunkpos1381;
  5945. } if (!yy_Inline(G)) { goto l1379; }
  5946. yyprintf((stderr, " ok %s @ %s\n", "AtxInline", G->buf+G->pos));
  5947. return 1;
  5948. l1379:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5949. yyprintf((stderr, " fail %s @ %s\n", "AtxInline", G->buf+G->pos));
  5950. return 0;
  5951. }
  5952. YY_RULE(int) yy_Inlines(GREG *G)
  5953. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5954. yyprintf((stderr, "%s\n", "Inlines"));
  5955. { int yypos1387= G->pos, yythunkpos1387= G->thunkpos;
  5956. { int yypos1389= G->pos, yythunkpos1389= G->thunkpos; if (!yy_Endline(G)) { goto l1389; } goto l1388;
  5957. l1389:; G->pos= yypos1389; G->thunkpos= yythunkpos1389;
  5958. } if (!yy_Inline(G)) { goto l1388; } goto l1387;
  5959. l1388:; G->pos= yypos1387; G->thunkpos= yythunkpos1387; if (!yy_Endline(G)) { goto l1384; }
  5960. { int yypos1390= G->pos, yythunkpos1390= G->thunkpos; if (!yy_Inline(G)) { goto l1384; } G->pos= yypos1390; G->thunkpos= yythunkpos1390;
  5961. }
  5962. }
  5963. l1387:;
  5964. l1385:;
  5965. { int yypos1386= G->pos, yythunkpos1386= G->thunkpos;
  5966. { int yypos1391= G->pos, yythunkpos1391= G->thunkpos;
  5967. { int yypos1393= G->pos, yythunkpos1393= G->thunkpos; if (!yy_Endline(G)) { goto l1393; } goto l1392;
  5968. l1393:; G->pos= yypos1393; G->thunkpos= yythunkpos1393;
  5969. } if (!yy_Inline(G)) { goto l1392; } goto l1391;
  5970. l1392:; G->pos= yypos1391; G->thunkpos= yythunkpos1391; if (!yy_Endline(G)) { goto l1386; }
  5971. { int yypos1394= G->pos, yythunkpos1394= G->thunkpos; if (!yy_Inline(G)) { goto l1386; } G->pos= yypos1394; G->thunkpos= yythunkpos1394;
  5972. }
  5973. }
  5974. l1391:; goto l1385;
  5975. l1386:; G->pos= yypos1386; G->thunkpos= yythunkpos1386;
  5976. }
  5977. { int yypos1395= G->pos, yythunkpos1395= G->thunkpos; if (!yy_Endline(G)) { goto l1395; } goto l1396;
  5978. l1395:; G->pos= yypos1395; G->thunkpos= yythunkpos1395;
  5979. }
  5980. l1396:;
  5981. yyprintf((stderr, " ok %s @ %s\n", "Inlines", G->buf+G->pos));
  5982. return 1;
  5983. l1384:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5984. yyprintf((stderr, " fail %s @ %s\n", "Inlines", G->buf+G->pos));
  5985. return 0;
  5986. }
  5987. YY_RULE(int) yy_NonindentSpace(GREG *G)
  5988. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5989. yyprintf((stderr, "%s\n", "NonindentSpace"));
  5990. { int yypos1398= G->pos, yythunkpos1398= G->thunkpos; if (!yymatchString(G, " ")) goto l1399; goto l1398;
  5991. l1399:; G->pos= yypos1398; G->thunkpos= yythunkpos1398; if (!yymatchString(G, " ")) goto l1400; goto l1398;
  5992. l1400:; G->pos= yypos1398; G->thunkpos= yythunkpos1398; if (!yymatchChar(G, ' ')) goto l1401; goto l1398;
  5993. l1401:; G->pos= yypos1398; G->thunkpos= yythunkpos1398; if (!yymatchString(G, "")) goto l1397;
  5994. }
  5995. l1398:;
  5996. yyprintf((stderr, " ok %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  5997. return 1;
  5998. l1397:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5999. yyprintf((stderr, " fail %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  6000. return 0;
  6001. }
  6002. YY_RULE(int) yy_Plain(GREG *G)
  6003. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6004. yyprintf((stderr, "%s\n", "Plain")); if (!yy_Inlines(G)) { goto l1402; }
  6005. yyprintf((stderr, " ok %s @ %s\n", "Plain", G->buf+G->pos));
  6006. return 1;
  6007. l1402:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6008. yyprintf((stderr, " fail %s @ %s\n", "Plain", G->buf+G->pos));
  6009. return 0;
  6010. }
  6011. YY_RULE(int) yy_Para(GREG *G)
  6012. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6013. yyprintf((stderr, "%s\n", "Para")); if (!yy_NonindentSpace(G)) { goto l1403; } if (!yy_Inlines(G)) { goto l1403; } if (!yy_BlankLine(G)) { goto l1403; }
  6014. l1404:;
  6015. { int yypos1405= G->pos, yythunkpos1405= G->thunkpos; if (!yy_BlankLine(G)) { goto l1405; } goto l1404;
  6016. l1405:; G->pos= yypos1405; G->thunkpos= yythunkpos1405;
  6017. }
  6018. yyprintf((stderr, " ok %s @ %s\n", "Para", G->buf+G->pos));
  6019. return 1;
  6020. l1403:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6021. yyprintf((stderr, " fail %s @ %s\n", "Para", G->buf+G->pos));
  6022. return 0;
  6023. }
  6024. YY_RULE(int) yy_StyleBlock(GREG *G)
  6025. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6026. yyprintf((stderr, "%s\n", "StyleBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1406; if (!yy_LocMarker(G)) { goto l1406; } yyDo(G, yySet, -1, 0); if (!yy_InStyleTags(G)) { goto l1406; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1406;
  6027. l1407:;
  6028. { int yypos1408= G->pos, yythunkpos1408= G->thunkpos; if (!yy_BlankLine(G)) { goto l1408; } goto l1407;
  6029. l1408:; G->pos= yypos1408; G->thunkpos= yythunkpos1408;
  6030. } yyDo(G, yy_1_StyleBlock, G->begin, G->end);
  6031. yyprintf((stderr, " ok %s @ %s\n", "StyleBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6032. return 1;
  6033. l1406:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6034. yyprintf((stderr, " fail %s @ %s\n", "StyleBlock", G->buf+G->pos));
  6035. return 0;
  6036. }
  6037. YY_RULE(int) yy_HtmlBlock(GREG *G)
  6038. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6039. yyprintf((stderr, "%s\n", "HtmlBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1409; if (!yy_LocMarker(G)) { goto l1409; } yyDo(G, yySet, -1, 0);
  6040. { int yypos1410= G->pos, yythunkpos1410= G->thunkpos; if (!yy_HtmlBlockInTags(G)) { goto l1411; } goto l1410;
  6041. l1411:; G->pos= yypos1410; G->thunkpos= yythunkpos1410; if (!yy_HtmlComment(G)) { goto l1412; } goto l1410;
  6042. l1412:; G->pos= yypos1410; G->thunkpos= yythunkpos1410; if (!yy_HtmlBlockSelfClosing(G)) { goto l1409; }
  6043. }
  6044. l1410:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1409; if (!yy_BlankLine(G)) { goto l1409; }
  6045. l1413:;
  6046. { int yypos1414= G->pos, yythunkpos1414= G->thunkpos; if (!yy_BlankLine(G)) { goto l1414; } goto l1413;
  6047. l1414:; G->pos= yypos1414; G->thunkpos= yythunkpos1414;
  6048. } yyDo(G, yy_1_HtmlBlock, G->begin, G->end);
  6049. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6050. return 1;
  6051. l1409:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6052. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlock", G->buf+G->pos));
  6053. return 0;
  6054. }
  6055. YY_RULE(int) yy_BulletList(GREG *G)
  6056. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6057. yyprintf((stderr, "%s\n", "BulletList"));
  6058. { int yypos1416= G->pos, yythunkpos1416= G->thunkpos; if (!yy_Bullet(G)) { goto l1415; } G->pos= yypos1416; G->thunkpos= yythunkpos1416;
  6059. }
  6060. { int yypos1417= G->pos, yythunkpos1417= G->thunkpos; if (!yy_ListTight(G)) { goto l1418; } goto l1417;
  6061. l1418:; G->pos= yypos1417; G->thunkpos= yythunkpos1417; if (!yy_ListLoose(G)) { goto l1415; }
  6062. }
  6063. l1417:;
  6064. yyprintf((stderr, " ok %s @ %s\n", "BulletList", G->buf+G->pos));
  6065. return 1;
  6066. l1415:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6067. yyprintf((stderr, " fail %s @ %s\n", "BulletList", G->buf+G->pos));
  6068. return 0;
  6069. }
  6070. YY_RULE(int) yy_OrderedList(GREG *G)
  6071. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6072. yyprintf((stderr, "%s\n", "OrderedList"));
  6073. { int yypos1420= G->pos, yythunkpos1420= G->thunkpos; if (!yy_Enumerator(G)) { goto l1419; } G->pos= yypos1420; G->thunkpos= yythunkpos1420;
  6074. }
  6075. { int yypos1421= G->pos, yythunkpos1421= G->thunkpos; if (!yy_ListTight(G)) { goto l1422; } goto l1421;
  6076. l1422:; G->pos= yypos1421; G->thunkpos= yythunkpos1421; if (!yy_ListLoose(G)) { goto l1419; }
  6077. }
  6078. l1421:;
  6079. yyprintf((stderr, " ok %s @ %s\n", "OrderedList", G->buf+G->pos));
  6080. return 1;
  6081. l1419:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6082. yyprintf((stderr, " fail %s @ %s\n", "OrderedList", G->buf+G->pos));
  6083. return 0;
  6084. }
  6085. YY_RULE(int) yy_Heading(GREG *G)
  6086. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6087. yyprintf((stderr, "%s\n", "Heading"));
  6088. { int yypos1424= G->pos, yythunkpos1424= G->thunkpos; if (!yy_SetextHeading(G)) { goto l1425; } goto l1424;
  6089. l1425:; G->pos= yypos1424; G->thunkpos= yythunkpos1424; if (!yy_AtxHeading(G)) { goto l1423; }
  6090. }
  6091. l1424:;
  6092. yyprintf((stderr, " ok %s @ %s\n", "Heading", G->buf+G->pos));
  6093. return 1;
  6094. l1423:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6095. yyprintf((stderr, " fail %s @ %s\n", "Heading", G->buf+G->pos));
  6096. return 0;
  6097. }
  6098. YY_RULE(int) yy_HorizontalRule(GREG *G)
  6099. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6100. yyprintf((stderr, "%s\n", "HorizontalRule")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1426; if (!yy_NonindentSpace(G)) { goto l1426; }
  6101. { int yypos1427= G->pos, yythunkpos1427= G->thunkpos; if (!yymatchChar(G, '*')) goto l1428; if (!yy_Sp(G)) { goto l1428; } if (!yymatchChar(G, '*')) goto l1428; if (!yy_Sp(G)) { goto l1428; } if (!yymatchChar(G, '*')) goto l1428;
  6102. l1429:;
  6103. { int yypos1430= G->pos, yythunkpos1430= G->thunkpos; if (!yy_Sp(G)) { goto l1430; } if (!yymatchChar(G, '*')) goto l1430; goto l1429;
  6104. l1430:; G->pos= yypos1430; G->thunkpos= yythunkpos1430;
  6105. } goto l1427;
  6106. l1428:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yymatchChar(G, '-')) goto l1431; if (!yy_Sp(G)) { goto l1431; } if (!yymatchChar(G, '-')) goto l1431; if (!yy_Sp(G)) { goto l1431; } if (!yymatchChar(G, '-')) goto l1431;
  6107. l1432:;
  6108. { int yypos1433= G->pos, yythunkpos1433= G->thunkpos; if (!yy_Sp(G)) { goto l1433; } if (!yymatchChar(G, '-')) goto l1433; goto l1432;
  6109. l1433:; G->pos= yypos1433; G->thunkpos= yythunkpos1433;
  6110. } goto l1427;
  6111. l1431:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yymatchChar(G, '_')) goto l1426; if (!yy_Sp(G)) { goto l1426; } if (!yymatchChar(G, '_')) goto l1426; if (!yy_Sp(G)) { goto l1426; } if (!yymatchChar(G, '_')) goto l1426;
  6112. l1434:;
  6113. { int yypos1435= G->pos, yythunkpos1435= G->thunkpos; if (!yy_Sp(G)) { goto l1435; } if (!yymatchChar(G, '_')) goto l1435; goto l1434;
  6114. l1435:; G->pos= yypos1435; G->thunkpos= yythunkpos1435;
  6115. }
  6116. }
  6117. l1427:; if (!yy_Sp(G)) { goto l1426; } if (!yy_Newline(G)) { goto l1426; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1426; if (!yy_BlankLine(G)) { goto l1426; }
  6118. l1436:;
  6119. { int yypos1437= G->pos, yythunkpos1437= G->thunkpos; if (!yy_BlankLine(G)) { goto l1437; } goto l1436;
  6120. l1437:; G->pos= yypos1437; G->thunkpos= yythunkpos1437;
  6121. } yyDo(G, yy_1_HorizontalRule, G->begin, G->end);
  6122. yyprintf((stderr, " ok %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6123. return 1;
  6124. l1426:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6125. yyprintf((stderr, " fail %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6126. return 0;
  6127. }
  6128. YY_RULE(int) yy_Reference(GREG *G)
  6129. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 3, 0);
  6130. yyprintf((stderr, "%s\n", "Reference")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1438; if (!yy_LocMarker(G)) { goto l1438; } yyDo(G, yySet, -3, 0); if (!yy_NonindentSpace(G)) { goto l1438; }
  6131. { int yypos1439= G->pos, yythunkpos1439= G->thunkpos; if (!yymatchString(G, "[]")) goto l1439; goto l1438;
  6132. l1439:; G->pos= yypos1439; G->thunkpos= yythunkpos1439;
  6133. } if (!yy_Label(G)) { goto l1438; } yyDo(G, yySet, -2, 0); if (!yymatchChar(G, ':')) goto l1438; if (!yy_Spnl(G)) { goto l1438; } if (!yy_RefSrc(G)) { goto l1438; } yyDo(G, yySet, -1, 0); if (!yy_RefTitle(G)) { goto l1438; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1438; if (!yy_BlankLine(G)) { goto l1438; }
  6134. l1440:;
  6135. { int yypos1441= G->pos, yythunkpos1441= G->thunkpos; if (!yy_BlankLine(G)) { goto l1441; } goto l1440;
  6136. l1441:; G->pos= yypos1441; G->thunkpos= yythunkpos1441;
  6137. } yyDo(G, yy_1_Reference, G->begin, G->end);
  6138. yyprintf((stderr, " ok %s @ %s\n", "Reference", G->buf+G->pos)); yyDo(G, yyPop, 3, 0);
  6139. return 1;
  6140. l1438:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6141. yyprintf((stderr, " fail %s @ %s\n", "Reference", G->buf+G->pos));
  6142. return 0;
  6143. }
  6144. YY_RULE(int) yy_Note(GREG *G)
  6145. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6146. yyprintf((stderr, "%s\n", "Note")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l1442; if (!yy_NonindentSpace(G)) { goto l1442; } if (!yy_RawNoteReference(G)) { goto l1442; } if (!yymatchChar(G, ':')) goto l1442; if (!yy_Sp(G)) { goto l1442; } if (!yy_RawNoteBlock(G)) { goto l1442; }
  6147. l1443:;
  6148. { int yypos1444= G->pos, yythunkpos1444= G->thunkpos;
  6149. { int yypos1445= G->pos, yythunkpos1445= G->thunkpos; if (!yy_Indent(G)) { goto l1444; } G->pos= yypos1445; G->thunkpos= yythunkpos1445;
  6150. } if (!yy_RawNoteBlock(G)) { goto l1444; } goto l1443;
  6151. l1444:; G->pos= yypos1444; G->thunkpos= yythunkpos1444;
  6152. }
  6153. yyprintf((stderr, " ok %s @ %s\n", "Note", G->buf+G->pos));
  6154. return 1;
  6155. l1442:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6156. yyprintf((stderr, " fail %s @ %s\n", "Note", G->buf+G->pos));
  6157. return 0;
  6158. }
  6159. YY_RULE(int) yy_Verbatim(GREG *G)
  6160. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6161. yyprintf((stderr, "%s\n", "Verbatim")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1446; if (!yy_LocMarker(G)) { goto l1446; } yyDo(G, yySet, -1, 0); if (!yy_VerbatimChunk(G)) { goto l1446; }
  6162. l1447:;
  6163. { int yypos1448= G->pos, yythunkpos1448= G->thunkpos; if (!yy_VerbatimChunk(G)) { goto l1448; } goto l1447;
  6164. l1448:; G->pos= yypos1448; G->thunkpos= yythunkpos1448;
  6165. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1446; yyDo(G, yy_1_Verbatim, G->begin, G->end);
  6166. yyprintf((stderr, " ok %s @ %s\n", "Verbatim", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6167. return 1;
  6168. l1446:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6169. yyprintf((stderr, " fail %s @ %s\n", "Verbatim", G->buf+G->pos));
  6170. return 0;
  6171. }
  6172. YY_RULE(int) yy_BlockQuote(GREG *G)
  6173. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6174. yyprintf((stderr, "%s\n", "BlockQuote")); if (!yy_BlockQuoteRaw(G)) { goto l1449; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_BlockQuote, G->begin, G->end);
  6175. yyprintf((stderr, " ok %s @ %s\n", "BlockQuote", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6176. return 1;
  6177. l1449:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6178. yyprintf((stderr, " fail %s @ %s\n", "BlockQuote", G->buf+G->pos));
  6179. return 0;
  6180. }
  6181. YY_RULE(int) yy_BlankLine(GREG *G)
  6182. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6183. yyprintf((stderr, "%s\n", "BlankLine")); if (!yy_Sp(G)) { goto l1450; } if (!yy_Newline(G)) { goto l1450; }
  6184. yyprintf((stderr, " ok %s @ %s\n", "BlankLine", G->buf+G->pos));
  6185. return 1;
  6186. l1450:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6187. yyprintf((stderr, " fail %s @ %s\n", "BlankLine", G->buf+G->pos));
  6188. return 0;
  6189. }
  6190. YY_RULE(int) yy_LocMarker(GREG *G)
  6191. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6192. yyprintf((stderr, "%s\n", "LocMarker"));
  6193. { int yypos1452= G->pos, yythunkpos1452= G->thunkpos; if (!yymatchDot(G)) goto l1451; G->pos= yypos1452; G->thunkpos= yythunkpos1452;
  6194. } yyDo(G, yy_1_LocMarker, G->begin, G->end);
  6195. yyprintf((stderr, " ok %s @ %s\n", "LocMarker", G->buf+G->pos));
  6196. return 1;
  6197. l1451:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6198. yyprintf((stderr, " fail %s @ %s\n", "LocMarker", G->buf+G->pos));
  6199. return 0;
  6200. }
  6201. YY_RULE(int) yy_Block(GREG *G)
  6202. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6203. yyprintf((stderr, "%s\n", "Block"));
  6204. l1454:;
  6205. { int yypos1455= G->pos, yythunkpos1455= G->thunkpos; if (!yy_BlankLine(G)) { goto l1455; } goto l1454;
  6206. l1455:; G->pos= yypos1455; G->thunkpos= yythunkpos1455;
  6207. }
  6208. { int yypos1456= G->pos, yythunkpos1456= G->thunkpos; if (!yy_BlockQuote(G)) { goto l1457; } goto l1456;
  6209. l1457:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Verbatim(G)) { goto l1458; } goto l1456;
  6210. l1458:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Note(G)) { goto l1459; } goto l1456;
  6211. l1459:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Reference(G)) { goto l1460; } goto l1456;
  6212. l1460:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_HorizontalRule(G)) { goto l1461; } goto l1456;
  6213. l1461:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Heading(G)) { goto l1462; } goto l1456;
  6214. l1462:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_OrderedList(G)) { goto l1463; } goto l1456;
  6215. l1463:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_BulletList(G)) { goto l1464; } goto l1456;
  6216. l1464:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_HtmlBlock(G)) { goto l1465; } goto l1456;
  6217. l1465:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_StyleBlock(G)) { goto l1466; } goto l1456;
  6218. l1466:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Para(G)) { goto l1467; } goto l1456;
  6219. l1467:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Plain(G)) { goto l1453; }
  6220. }
  6221. l1456:;
  6222. yyprintf((stderr, " ok %s @ %s\n", "Block", G->buf+G->pos));
  6223. return 1;
  6224. l1453:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6225. yyprintf((stderr, " fail %s @ %s\n", "Block", G->buf+G->pos));
  6226. return 0;
  6227. }
  6228. YY_RULE(int) yy_Doc(GREG *G)
  6229. {
  6230. yyprintf((stderr, "%s\n", "Doc"));
  6231. l1469:;
  6232. { int yypos1470= G->pos, yythunkpos1470= G->thunkpos; if (!yy_Block(G)) { goto l1470; } goto l1469;
  6233. l1470:; G->pos= yypos1470; G->thunkpos= yythunkpos1470;
  6234. }
  6235. yyprintf((stderr, " ok %s @ %s\n", "Doc", G->buf+G->pos));
  6236. return 1;
  6237. }
  6238. #ifndef YY_PART
  6239. typedef int (*yyrule)(GREG *G);
  6240. YY_PARSE(int) YY_NAME(parse_from)(GREG *G, yyrule yystart)
  6241. {
  6242. int yyok;
  6243. if (!G->buflen)
  6244. {
  6245. G->buflen= YY_BUFFER_START_SIZE;
  6246. G->buf= (char *)YY_ALLOC(G->buflen, G->data);
  6247. G->textlen= YY_BUFFER_START_SIZE;
  6248. G->text= (char *)YY_ALLOC(G->textlen, G->data);
  6249. G->thunkslen= YY_STACK_SIZE;
  6250. G->thunks= (yythunk *)YY_ALLOC(sizeof(yythunk) * G->thunkslen, G->data);
  6251. G->valslen= YY_STACK_SIZE;
  6252. G->vals= (YYSTYPE*)YY_ALLOC(sizeof(YYSTYPE) * G->valslen, G->data);
  6253. G->begin= G->end= G->pos= G->limit= G->thunkpos= 0;
  6254. }
  6255. G->pos = 0;
  6256. G->begin= G->end= G->pos;
  6257. G->thunkpos= 0;
  6258. G->val= G->vals;
  6259. yyok= yystart(G);
  6260. if (yyok) yyDone(G);
  6261. yyCommit(G);
  6262. return yyok;
  6263. (void)yyrefill(NULL);
  6264. (void)yymatchDot(NULL);
  6265. (void)yymatchChar(NULL, 0);
  6266. (void)yymatchString(NULL, NULL);
  6267. (void)yymatchClass(NULL, NULL);
  6268. (void)yyDo(NULL, NULL, 0, 0);
  6269. (void)yyText(NULL, 0, 0);
  6270. (void)yyDone(NULL);
  6271. (void)yyCommit(NULL);
  6272. (void)yyAccept(NULL, 0);
  6273. (void)yyPush(NULL, NULL, 0, NULL, NULL);
  6274. (void)yyPop(NULL, NULL, 0, NULL, NULL);
  6275. (void)yySet(NULL, NULL, 0, NULL, NULL);
  6276. }
  6277. YY_PARSE(int) YY_NAME(parse)(GREG *G)
  6278. {
  6279. return YY_NAME(parse_from)(G, yy_Doc);
  6280. }
  6281. YY_PARSE(GREG *) YY_NAME(parse_new)(YY_XTYPE data)
  6282. {
  6283. GREG *G = (GREG *)YY_CALLOC(1, sizeof(GREG), G->data);
  6284. G->data = data;
  6285. return G;
  6286. }
  6287. YY_PARSE(void) YY_NAME(parse_free)(GREG *G)
  6288. {
  6289. YY_FREE(G->buf);
  6290. YY_FREE(G->text);
  6291. YY_FREE(G->thunks);
  6292. YY_FREE(G->vals);
  6293. YY_FREE(G);
  6294. }
  6295. #endif
  6296. /* PEG Markdown Highlight
  6297. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  6298. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  6299. *
  6300. * pmh_parser_foot.c
  6301. *
  6302. * Code to be appended to the end of the parser code generated from the
  6303. * PEG grammar.
  6304. */
  6305. static void _parse(parser_data *p_data, yyrule start_rule)
  6306. {
  6307. GREG *g = YY_NAME(parse_new)(p_data);
  6308. if (start_rule == NULL)
  6309. YY_NAME(parse)(g);
  6310. else
  6311. YY_NAME(parse_from)(g, start_rule);
  6312. YY_NAME(parse_free)(g);
  6313. pmh_PRINTF("\n\n");
  6314. }
  6315. static void parse_markdown(parser_data *p_data)
  6316. {
  6317. pmh_PRINTF("\nPARSING DOCUMENT: ");
  6318. _parse(p_data, NULL);
  6319. }
  6320. static void parse_references(parser_data *p_data)
  6321. {
  6322. pmh_PRINTF("\nPARSING REFERENCES: ");
  6323. p_data->parsing_only_references = true;
  6324. _parse(p_data, yy_References);
  6325. p_data->parsing_only_references = false;
  6326. p_data->references = p_data->head_elems[pmh_REFERENCE];
  6327. p_data->head_elems[pmh_REFERENCE] = NULL;
  6328. }