pmh_parser.c 349 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118
  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 250
  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_FENCEDCODEBLOCK] = "FENCEDCODEBLOCK";
  165. elem_type_names[pmh_NOTE] = "NOTE";
  166. elem_type_names[pmh_STRIKE] = "STRIKE";
  167. elem_type_names[pmh_FRONTMATTER] = "FRONTMATTER";
  168. elem_type_names[pmh_DISPLAYFORMULA] = "DISPLAYFORMULA";
  169. elem_type_names[pmh_INLINEEQUATION] = "INLINEEQUATION";
  170. elem_type_names[pmh_MARK] = "MARK";
  171. }
  172. return elem_type_names;
  173. }
  174. pmh_element_type pmh_element_type_from_name(char *name)
  175. {
  176. char **elem_type_names = get_element_type_names();
  177. int i;
  178. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  179. {
  180. char *i_name = elem_type_names[i];
  181. if (i_name == NULL)
  182. continue;
  183. if (strcmp(i_name, name) == 0)
  184. return i;
  185. }
  186. return pmh_NO_TYPE;
  187. }
  188. char *pmh_element_name_from_type(pmh_element_type type)
  189. {
  190. char **elem_type_names = get_element_type_names();
  191. char* ret = elem_type_names[type];
  192. if (ret == NULL)
  193. return "unknown type";
  194. return ret;
  195. }
  196. /*
  197. Remove pmh_RAW elements with zero length; return pointer
  198. to new head.
  199. */
  200. static pmh_realelement *remove_zero_length_raw_spans(pmh_realelement *elem)
  201. {
  202. pmh_realelement *head = elem;
  203. pmh_realelement *parent = NULL;
  204. pmh_realelement *c = head;
  205. while (c != NULL)
  206. {
  207. if (c->type == pmh_RAW && c->pos >= c->end)
  208. {
  209. if (parent != NULL)
  210. parent->next = c->next;
  211. else
  212. head = c->next;
  213. parent = c;
  214. c = c->next;
  215. continue;
  216. }
  217. parent = c;
  218. c = c->next;
  219. }
  220. return head;
  221. }
  222. #if pmh_DEBUG_OUTPUT
  223. /*
  224. Print null-terminated string s.t. some characters are
  225. represented by their corresponding espace sequences
  226. */
  227. static void print_str_literal_escapes(char *str)
  228. {
  229. char *c = str;
  230. pmh_PRINTF("'");
  231. while (*c != '\0')
  232. {
  233. if (*c == '\n') pmh_PRINTF("\\n");
  234. else if (*c == '\t') pmh_PRINTF("\\t");
  235. else putchar(*c);
  236. c++;
  237. }
  238. pmh_PRINTF("'");
  239. }
  240. #endif
  241. #if pmh_DEBUG_OUTPUT
  242. /*
  243. Print elements in a linked list of
  244. pmh_RAW, pmh_SEPARATOR, pmh_EXTRA_TEXT elements
  245. */
  246. static void print_raw_spans_inline(pmh_realelement *elem)
  247. {
  248. pmh_realelement *cur = elem;
  249. while (cur != NULL)
  250. {
  251. if (cur->type == pmh_SEPARATOR)
  252. pmh_PRINTF("<pmh_SEP %ld> ", cur->pos);
  253. else if (cur->type == pmh_EXTRA_TEXT) {
  254. pmh_PRINTF("{pmh_ETEXT ");
  255. print_str_literal_escapes(cur->text);
  256. pmh_PRINTF("}");
  257. }
  258. else
  259. pmh_PRINTF("(%ld-%ld) ", cur->pos, cur->end);
  260. cur = cur->next;
  261. }
  262. }
  263. #endif
  264. /*
  265. Perform postprocessing parsing runs for pmh_RAW_LIST elements in `elem`,
  266. iteratively until no such elements exist.
  267. */
  268. static void process_raw_blocks(parser_data *p_data)
  269. {
  270. pmh_PRINTF("--------process_raw_blocks---------\n");
  271. while (p_data->head_elems[pmh_RAW_LIST] != NULL)
  272. {
  273. pmh_PRINTF("new iteration.\n");
  274. pmh_realelement *cursor = p_data->head_elems[pmh_RAW_LIST];
  275. p_data->head_elems[pmh_RAW_LIST] = NULL;
  276. while (cursor != NULL)
  277. {
  278. pmh_realelement *span_list = (pmh_realelement*)cursor->children;
  279. span_list = remove_zero_length_raw_spans(span_list);
  280. #if pmh_DEBUG_OUTPUT
  281. pmh_PRINTF(" process: ");
  282. print_raw_spans_inline(span_list);
  283. pmh_PRINTF("\n");
  284. #endif
  285. while (span_list != NULL)
  286. {
  287. pmh_PRINTF("next: span_list: %ld-%ld\n",
  288. span_list->pos, span_list->end);
  289. // Skip separators in the beginning, as well as
  290. // separators after another separator:
  291. if (span_list->type == pmh_SEPARATOR) {
  292. span_list = span_list->next;
  293. continue;
  294. }
  295. // Store list of spans until next separator in subspan_list:
  296. pmh_realelement *subspan_list = span_list;
  297. pmh_realelement *previous = NULL;
  298. while (span_list != NULL && span_list->type != pmh_SEPARATOR) {
  299. previous = span_list;
  300. span_list = span_list->next;
  301. }
  302. if (span_list != NULL && span_list->type == pmh_SEPARATOR) {
  303. span_list = span_list->next;
  304. previous->next = NULL;
  305. }
  306. #if pmh_DEBUG_OUTPUT
  307. pmh_PRINTF(" subspan process: ");
  308. print_raw_spans_inline(subspan_list);
  309. pmh_PRINTF("\n");
  310. #endif
  311. // Process subspan_list:
  312. parser_data *raw_p_data = mk_parser_data(
  313. p_data->original_input,
  314. p_data->strip_positions,
  315. p_data->strip_positions_len,
  316. p_data->charbuf,
  317. subspan_list,
  318. subspan_list->pos,
  319. p_data->extensions,
  320. p_data->head_elems,
  321. p_data->references
  322. );
  323. parse_markdown(raw_p_data);
  324. free(raw_p_data);
  325. pmh_PRINTF("parse over\n");
  326. }
  327. cursor = cursor->next;
  328. }
  329. }
  330. }
  331. #if pmh_DEBUG_OUTPUT
  332. static void print_raw_blocks(char *text, pmh_realelement *elem[])
  333. {
  334. pmh_PRINTF("--------print_raw_blocks---------\n");
  335. pmh_PRINTF("block:\n");
  336. pmh_realelement *cursor = elem[pmh_RAW_LIST];
  337. while (cursor != NULL)
  338. {
  339. print_raw_spans_inline(cursor->children);
  340. cursor = cursor->next;
  341. }
  342. }
  343. #endif
  344. /* Free all elements created while parsing */
  345. void pmh_free_elements(pmh_element **elems)
  346. {
  347. pmh_realelement *cursor = (pmh_realelement*)elems[pmh_ALL];
  348. while (cursor != NULL) {
  349. pmh_realelement *tofree = cursor;
  350. cursor = cursor->all_elems_next;
  351. if (tofree->text != NULL)
  352. free(tofree->text);
  353. if (tofree->label != NULL)
  354. free(tofree->label);
  355. if (tofree->address != NULL)
  356. free(tofree->address);
  357. free(tofree);
  358. }
  359. elems[pmh_ALL] = NULL;
  360. free(elems);
  361. }
  362. #define IS_CONTINUATION_BYTE(x) ((x & 0xC0) == 0x80)
  363. #define HAS_UTF8_BOM(x) ( ((*x & 0xFF) == 0xEF)\
  364. && ((*(x+1) & 0xFF) == 0xBB)\
  365. && ((*(x+2) & 0xFF) == 0xBF) )
  366. #define ADD_STRIP_POS(x) \
  367. /* reallocate more space for the array, if needed: */ \
  368. if (strip_positions_size <= strip_positions_pos) { \
  369. size_t new_size = strip_positions_size * 2; \
  370. unsigned long *new_arr = (unsigned long *) \
  371. calloc(new_size, \
  372. sizeof(unsigned long)); \
  373. memcpy(new_arr, strip_positions, \
  374. (sizeof(unsigned long) * strip_positions_size)); \
  375. strip_positions_size = new_size; \
  376. free(strip_positions); \
  377. strip_positions = new_arr; \
  378. } \
  379. strip_positions[strip_positions_pos] = x; \
  380. strip_positions_pos++;
  381. /*
  382. Copy `str` to `out`, while doing the following:
  383. - remove UTF-8 continuation bytes
  384. - remove possible UTF-8 BOM (byte order mark)
  385. - append two newlines to the end (like peg-markdown does)
  386. - keep track of which bytes we have stripped (in strip_positions)
  387. */
  388. static int strcpy_preformat(char *str, char **out,
  389. unsigned long **out_strip_positions,
  390. size_t *out_strip_positions_len)
  391. {
  392. size_t strip_positions_size = 1024;
  393. size_t strip_positions_pos = 0;
  394. unsigned long *strip_positions = (unsigned long *)
  395. calloc(strip_positions_size,
  396. sizeof(unsigned long));
  397. // +2 in the following is due to the "\n\n" suffix:
  398. char *new_str = (char *)malloc(sizeof(char) * strlen(str) + 1 + 2);
  399. char *c = str;
  400. int i = 0;
  401. if (HAS_UTF8_BOM(c)) {
  402. c += 3;
  403. ADD_STRIP_POS(0);
  404. ADD_STRIP_POS(1);
  405. ADD_STRIP_POS(2);
  406. }
  407. while (*c != '\0')
  408. {
  409. if (!IS_CONTINUATION_BYTE(*c)) {
  410. *(new_str+i) = *c, i++;
  411. } else {
  412. ADD_STRIP_POS((int)(c-str));
  413. }
  414. c++;
  415. }
  416. *(new_str+(i++)) = '\n';
  417. *(new_str+(i++)) = '\n';
  418. *(new_str+i) = '\0';
  419. *out = new_str;
  420. *out_strip_positions = strip_positions;
  421. *out_strip_positions_len = strip_positions_pos;
  422. return i;
  423. }
  424. void pmh_markdown_to_elements(char *text, int extensions,
  425. pmh_element **out_result[])
  426. {
  427. char *text_copy = NULL;
  428. unsigned long *strip_positions = NULL;
  429. size_t strip_positions_len = 0;
  430. int text_copy_len = strcpy_preformat(text, &text_copy, &strip_positions,
  431. &strip_positions_len);
  432. pmh_realelement *parsing_elem = (pmh_realelement *)
  433. malloc(sizeof(pmh_realelement));
  434. parsing_elem->type = pmh_RAW;
  435. parsing_elem->pos = 0;
  436. parsing_elem->end = text_copy_len;
  437. parsing_elem->next = NULL;
  438. parser_data *p_data = mk_parser_data(
  439. text,
  440. strip_positions,
  441. strip_positions_len,
  442. text_copy,
  443. parsing_elem,
  444. 0,
  445. extensions,
  446. NULL,
  447. NULL
  448. );
  449. pmh_realelement **result = p_data->head_elems;
  450. if (*text_copy != '\0')
  451. {
  452. // Get reference definitions into p_data->references
  453. parse_references(p_data);
  454. // Reset parser state to beginning of input
  455. p_data->offset = 0;
  456. p_data->current_elem = p_data->elem_head;
  457. // Parse whole document
  458. parse_markdown(p_data);
  459. #if pmh_DEBUG_OUTPUT
  460. print_raw_blocks(text_copy, result);
  461. #endif
  462. process_raw_blocks(p_data);
  463. }
  464. free(strip_positions);
  465. free(p_data);
  466. free(parsing_elem);
  467. free(text_copy);
  468. *out_result = (pmh_element**)result;
  469. }
  470. /*
  471. Mergesort linked list of elements (using comparison function `compare`),
  472. return new head. (Adapted slightly from Simon Tatham's algorithm.)
  473. */
  474. static pmh_element *ll_mergesort(pmh_element *list,
  475. int (*compare)(const pmh_element*,
  476. const pmh_element*))
  477. {
  478. if (!list)
  479. return NULL;
  480. pmh_element *out_head = list;
  481. /* Merge widths of doubling size until done */
  482. int merge_width = 1;
  483. while (1)
  484. {
  485. pmh_element *l, *r; /* left & right segment pointers */
  486. pmh_element *tail = NULL; /* tail of sorted section */
  487. l = out_head;
  488. out_head = NULL;
  489. int merge_count = 0;
  490. while (l)
  491. {
  492. merge_count++;
  493. /* Position r, determine lsize & rsize */
  494. r = l;
  495. int lsize = 0;
  496. int i;
  497. for (i = 0; i < merge_width; i++) {
  498. lsize++;
  499. r = r->next;
  500. if (!r)
  501. break;
  502. }
  503. int rsize = merge_width;
  504. /* Merge l & r */
  505. while (lsize > 0 || (rsize > 0 && r))
  506. {
  507. bool get_from_left = false;
  508. if (lsize == 0) get_from_left = false;
  509. else if (rsize == 0 || !r) get_from_left = true;
  510. else if (compare(l,r) <= 0) get_from_left = true;
  511. pmh_element *e;
  512. if (get_from_left) {
  513. e = l; l = l->next; lsize--;
  514. } else {
  515. e = r; r = r->next; rsize--;
  516. }
  517. /* add the next pmh_element to the merged list */
  518. if (tail)
  519. tail->next = e;
  520. else
  521. out_head = e;
  522. tail = e;
  523. }
  524. l = r;
  525. }
  526. tail->next = NULL;
  527. if (merge_count <= 1)
  528. return out_head;
  529. merge_width *= 2;
  530. }
  531. }
  532. static int elem_compare_by_pos(const pmh_element *a, const pmh_element *b)
  533. {
  534. return a->pos - b->pos;
  535. }
  536. void pmh_sort_elements_by_pos(pmh_element *element_lists[])
  537. {
  538. int i;
  539. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  540. element_lists[i] = ll_mergesort(element_lists[i], &elem_compare_by_pos);
  541. }
  542. /* return true if extension is selected */
  543. static bool extension(parser_data *p_data, int ext)
  544. {
  545. return ((p_data->extensions & ext) != 0);
  546. }
  547. /* return reference pmh_realelement for a given label */
  548. static pmh_realelement *get_reference(parser_data *p_data, char *label)
  549. {
  550. if (!label)
  551. return NULL;
  552. pmh_realelement *cursor = p_data->references;
  553. while (cursor != NULL)
  554. {
  555. if (cursor->label && strcmp(label, cursor->label) == 0)
  556. return cursor;
  557. cursor = cursor->next;
  558. }
  559. return NULL;
  560. }
  561. /* cons an element/list onto a list, returning pointer to new head */
  562. static pmh_realelement *cons(pmh_realelement *elem, pmh_realelement *list)
  563. {
  564. assert(elem != NULL);
  565. pmh_realelement *cur = elem;
  566. while (cur->next != NULL) {
  567. cur = cur->next;
  568. }
  569. cur->next = list;
  570. return elem;
  571. }
  572. /* reverse a list, returning pointer to new list */
  573. static pmh_realelement *reverse(pmh_realelement *list)
  574. {
  575. pmh_realelement *new_head = NULL;
  576. pmh_realelement *next = NULL;
  577. while (list != NULL) {
  578. next = list->next;
  579. list->next = new_head;
  580. new_head = list;
  581. list = next;
  582. }
  583. return new_head;
  584. }
  585. /* construct pmh_realelement */
  586. static pmh_realelement *mk_element(parser_data *p_data, pmh_element_type type,
  587. long pos, long end)
  588. {
  589. pmh_realelement *result = (pmh_realelement *)malloc(sizeof(pmh_realelement));
  590. memset(result, 0, sizeof(*result));
  591. result->type = type;
  592. result->pos = pos;
  593. result->end = end;
  594. pmh_realelement *old_all_elements_head = p_data->head_elems[pmh_ALL];
  595. p_data->head_elems[pmh_ALL] = result;
  596. result->all_elems_next = old_all_elements_head;
  597. //pmh_PRINTF(" mk_element: %s [%ld - %ld]\n", pmh_element_name_from_type(type), pos, end);
  598. return result;
  599. }
  600. static pmh_realelement *copy_element(parser_data *p_data, pmh_realelement *elem)
  601. {
  602. pmh_realelement *result = mk_element(p_data, elem->type, elem->pos, elem->end);
  603. result->label = strdup_or_null(elem->label);
  604. result->text = strdup_or_null(elem->text);
  605. result->address = strdup_or_null(elem->address);
  606. return result;
  607. }
  608. /* construct pmh_EXTRA_TEXT pmh_realelement */
  609. static pmh_realelement *mk_etext(parser_data *p_data, char *string)
  610. {
  611. pmh_realelement *result;
  612. assert(string != NULL);
  613. result = mk_element(p_data, pmh_EXTRA_TEXT, 0,0);
  614. result->text = strdup_or_null(string);
  615. return result;
  616. }
  617. /*
  618. Given an element where the offsets {pos, end} represent
  619. locations in the *parsed text* (defined by the linked list of pmh_RAW and
  620. pmh_EXTRA_TEXT elements in p_data->current_elem), fix these offsets to represent
  621. corresponding offsets in the parse buffer (p_data->charbuf). Also split
  622. the given pmh_realelement into multiple parts if its offsets span multiple
  623. p_data->current_elem elements. Return the (list of) elements with real offsets.
  624. */
  625. static pmh_realelement *fix_offsets(parser_data *p_data, pmh_realelement *elem)
  626. {
  627. if (elem->type == pmh_EXTRA_TEXT)
  628. return mk_etext(p_data, elem->text);
  629. pmh_realelement *new_head = copy_element(p_data, elem);
  630. pmh_realelement *tail = new_head;
  631. pmh_realelement *prev = NULL;
  632. bool found_start = false;
  633. bool found_end = false;
  634. bool tail_needs_pos = false;
  635. unsigned long previous_end = 0;
  636. unsigned long c = 0;
  637. pmh_realelement *cursor = p_data->elem_head;
  638. while (cursor != NULL)
  639. {
  640. int thislen = (cursor->type == pmh_EXTRA_TEXT)
  641. ? strlen(cursor->text)
  642. : cursor->end - cursor->pos;
  643. if (tail_needs_pos && cursor->type != pmh_EXTRA_TEXT) {
  644. tail->pos = cursor->pos;
  645. tail_needs_pos = false;
  646. }
  647. unsigned int this_pos = cursor->pos;
  648. if (!found_start && (c <= elem->pos && elem->pos <= c+thislen)) {
  649. tail->pos = (cursor->type == pmh_EXTRA_TEXT)
  650. ? previous_end
  651. : cursor->pos + (elem->pos - c);
  652. this_pos = tail->pos;
  653. found_start = true;
  654. }
  655. if (!found_end && (c <= elem->end && elem->end <= c+thislen)) {
  656. tail->end = (cursor->type == pmh_EXTRA_TEXT)
  657. ? previous_end
  658. : cursor->pos + (elem->end - c);
  659. found_end = true;
  660. }
  661. if (found_start && found_end)
  662. break;
  663. if (cursor->type != pmh_EXTRA_TEXT)
  664. previous_end = cursor->end;
  665. if (found_start) {
  666. pmh_realelement *new_elem = copy_element(p_data, tail);
  667. new_elem->pos = this_pos;
  668. new_elem->end = cursor->end;
  669. new_elem->next = tail;
  670. if (prev != NULL)
  671. prev->next = new_elem;
  672. if (new_head == tail)
  673. new_head = new_elem;
  674. prev = new_elem;
  675. tail_needs_pos = true;
  676. }
  677. c += thislen;
  678. cursor = cursor->next;
  679. }
  680. return new_head;
  681. }
  682. /* Add an element to p_data->head_elems. */
  683. static void add(parser_data *p_data, pmh_realelement *elem)
  684. {
  685. if (elem->type != pmh_RAW_LIST)
  686. {
  687. pmh_PRINTF(" add: %s [%ld - %ld]\n",
  688. pmh_element_name_from_type(elem->type), elem->pos, elem->end);
  689. elem = fix_offsets(p_data, elem);
  690. pmh_PRINTF(" > %s [%ld - %ld]\n",
  691. pmh_element_name_from_type(elem->type), elem->pos, elem->end);
  692. }
  693. else
  694. {
  695. pmh_PRINTF(" add: pmh_RAW_LIST ");
  696. pmh_realelement *cursor = elem->children;
  697. pmh_realelement *previous = NULL;
  698. while (cursor != NULL)
  699. {
  700. pmh_realelement *next = cursor->next;
  701. pmh_PRINTF("(%ld-%ld)>", cursor->pos, cursor->end);
  702. pmh_realelement *new_cursor = fix_offsets(p_data, cursor);
  703. if (previous != NULL)
  704. previous->next = new_cursor;
  705. else
  706. elem->children = new_cursor;
  707. pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
  708. while (new_cursor->next != NULL) {
  709. new_cursor = new_cursor->next;
  710. pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
  711. }
  712. pmh_PRINTF(" ");
  713. if (next != NULL)
  714. new_cursor->next = next;
  715. previous = new_cursor;
  716. cursor = next;
  717. }
  718. pmh_PRINTF("\n");
  719. }
  720. if (p_data->head_elems[elem->type] == NULL)
  721. p_data->head_elems[elem->type] = elem;
  722. else
  723. {
  724. pmh_realelement *last = elem;
  725. while (last->next != NULL)
  726. last = last->next;
  727. last->next = p_data->head_elems[elem->type];
  728. p_data->head_elems[elem->type] = elem;
  729. }
  730. }
  731. // Given a range in the list of spans we use for parsing (pos, end), return
  732. // a copy of the corresponding section in the original input, with all of
  733. // the UTF-8 bytes intact:
  734. static char *copy_input_span(parser_data *p_data,
  735. unsigned long pos, unsigned long end)
  736. {
  737. if (end <= pos)
  738. return NULL;
  739. char *ret = NULL;
  740. // Adjust (pos,end) to match actual indexes in charbuf:
  741. pmh_realelement *dummy = mk_element(p_data, pmh_NO_TYPE, pos, end);
  742. pmh_realelement *fixed_dummies = fix_offsets(p_data, dummy);
  743. pmh_realelement *cursor = fixed_dummies;
  744. while (cursor != NULL)
  745. {
  746. if (cursor->end <= cursor->pos)
  747. {
  748. cursor = cursor->next;
  749. continue;
  750. }
  751. // Adjust cursor's span to take bytes stripped from the original
  752. // input into account (i.e. match the corresponding span in
  753. // p_data->original_input):
  754. unsigned long adjusted_pos = cursor->pos;
  755. unsigned long adjusted_end = cursor->end;
  756. size_t i;
  757. for (i = 0; i < p_data->strip_positions_len; i++)
  758. {
  759. unsigned long strip_position = p_data->strip_positions[i];
  760. if (strip_position <= adjusted_pos)
  761. adjusted_pos++;
  762. if (strip_position <= adjusted_end)
  763. adjusted_end++;
  764. else
  765. break;
  766. }
  767. // Copy span from original input:
  768. size_t adjusted_len = adjusted_end - adjusted_pos;
  769. char *str = (char *)malloc(sizeof(char)*adjusted_len + 1);
  770. *str = '\0';
  771. strncat(str, (p_data->original_input + adjusted_pos), adjusted_len);
  772. if (ret == NULL)
  773. ret = str;
  774. else
  775. {
  776. // append str to ret:
  777. char *new_ret = (char *)malloc(sizeof(char)
  778. *(strlen(str) + strlen(ret)) + 1);
  779. *new_ret = '\0';
  780. strcat(new_ret, ret);
  781. strcat(new_ret, str);
  782. free(ret);
  783. free(str);
  784. ret = new_ret;
  785. }
  786. cursor = cursor->next;
  787. }
  788. return ret;
  789. }
  790. # define YYSTYPE pmh_realelement *
  791. #ifdef __DEBUG__
  792. # define YY_DEBUG 1
  793. #endif
  794. #define YY_INPUT(buf, result, max_size)\
  795. yy_input_func(buf, &result, max_size, (parser_data *)G->data)
  796. static void yy_input_func(char *buf, int *result, int max_size,
  797. parser_data *p_data)
  798. {
  799. if (p_data->current_elem == NULL)
  800. {
  801. (*result) = 0;
  802. return;
  803. }
  804. if (p_data->current_elem->type == pmh_EXTRA_TEXT)
  805. {
  806. int yyc;
  807. bool moreToRead = (p_data->current_elem->text
  808. && *(p_data->current_elem->text
  809. + p_data->current_elem->text_offset) != '\0');
  810. if (moreToRead)
  811. {
  812. yyc = *(p_data->current_elem->text + p_data->current_elem->text_offset++);
  813. pmh_PRINTF("\e[47;30m"); pmh_PUTCHAR(yyc); pmh_PRINTF("\e[0m");
  814. pmh_IF(yyc == '\n') pmh_PRINTF("\e[47m \e[0m");
  815. }
  816. else
  817. {
  818. yyc = EOF;
  819. p_data->current_elem = p_data->current_elem->next;
  820. pmh_PRINTF("\e[41m \e[0m");
  821. if (p_data->current_elem != NULL)
  822. p_data->offset = p_data->current_elem->pos;
  823. }
  824. (*result) = (EOF == yyc) ? 0 : (*(buf) = yyc, 1);
  825. return;
  826. }
  827. *(buf) = *(p_data->charbuf + p_data->offset);
  828. (*result) = (*buf != '\0');
  829. p_data->offset++;
  830. pmh_PRINTF("\e[43;30m"); pmh_PUTCHAR(*buf); pmh_PRINTF("\e[0m");
  831. pmh_IF(*buf == '\n') pmh_PRINTF("\e[42m \e[0m");
  832. if (p_data->offset >= p_data->current_elem->end)
  833. {
  834. p_data->current_elem = p_data->current_elem->next;
  835. pmh_PRINTF("\e[41m \e[0m");
  836. if (p_data->current_elem != NULL)
  837. p_data->offset = p_data->current_elem->pos;
  838. }
  839. }
  840. #define elem(x) mk_element((parser_data *)G->data, x, thunk->begin, thunk->end)
  841. #define elem_s(x) mk_element((parser_data *)G->data, x, s->pos, thunk->end)
  842. #define mk_sep mk_element((parser_data *)G->data, pmh_SEPARATOR, 0,0)
  843. #define mk_notype mk_element((parser_data *)G->data, pmh_NO_TYPE, 0,0)
  844. #define etext(x) mk_etext((parser_data *)G->data, x)
  845. #define ADD(x) add((parser_data *)G->data, x)
  846. #define EXT(x) extension((parser_data *)G->data, x)
  847. #define REF_EXISTS(x) reference_exists((parser_data *)G->data, x)
  848. #define GET_REF(x) get_reference((parser_data *)G->data, x)
  849. #define PARSING_REFERENCES ((parser_data *)G->data)->parsing_only_references
  850. #define FREE_LABEL(l) { free(l->label); l->label = NULL; }
  851. #define FREE_ADDRESS(l) { free(l->address); l->address = NULL; }
  852. // This gives us the text matched with < > as it appears in the original input:
  853. #define COPY_YYTEXT_ORIG() copy_input_span((parser_data *)G->data, thunk->begin, thunk->end)
  854. // pos is the postition of next char to parse after matching one $
  855. // Do not allow $, digit, and \ before opening $
  856. bool inline_equation_predict_pre(char *buf, int pos)
  857. {
  858. if (pos < 2) {
  859. return true;
  860. }
  861. unsigned char ch = buf[pos - 2];
  862. return ch != '$' && (ch < '0' || ch > '9') && ch != '\\';
  863. }
  864. // Do not allow \, space before ending $
  865. bool inline_equation_predict_post(char *buf, int pos)
  866. {
  867. unsigned char ch = buf[pos - 2];
  868. return ch != '\\' && ch != ' ' && ch != '\t';
  869. }
  870. #define IEP_PRE inline_equation_predict_pre(G->buf, G->pos)
  871. #define IEP_POST inline_equation_predict_post(G->buf, G->pos)
  872. #ifndef YY_ALLOC
  873. #define YY_ALLOC(N, D) malloc(N)
  874. #endif
  875. #ifndef YY_CALLOC
  876. #define YY_CALLOC(N, S, D) calloc(N, S)
  877. #endif
  878. #ifndef YY_REALLOC
  879. #define YY_REALLOC(B, N, D) realloc(B, N)
  880. #endif
  881. #ifndef YY_FREE
  882. #define YY_FREE free
  883. #endif
  884. #ifndef YY_LOCAL
  885. #define YY_LOCAL(T) static T
  886. #endif
  887. #ifndef YY_ACTION
  888. #define YY_ACTION(T) static T
  889. #endif
  890. #ifndef YY_RULE
  891. #define YY_RULE(T) static T
  892. #endif
  893. #ifndef YY_PARSE
  894. #define YY_PARSE(T) T
  895. #endif
  896. #ifndef YY_NAME
  897. #define YY_NAME(N) yy##N
  898. #endif
  899. #ifndef YY_INPUT
  900. #define YY_INPUT(buf, result, max_size) \
  901. { \
  902. int yyc= getchar(); \
  903. result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \
  904. yyprintf((stderr, "<%c>", yyc)); \
  905. }
  906. #endif
  907. #ifndef YY_BEGIN
  908. #define YY_BEGIN ( G->begin= G->pos, 1)
  909. #endif
  910. #ifndef YY_END
  911. #define YY_END ( G->end= G->pos, 1)
  912. #endif
  913. #ifdef YY_DEBUG
  914. # define yyprintf(args) fprintf args
  915. #else
  916. # define yyprintf(args)
  917. #endif
  918. #ifndef YYSTYPE
  919. #define YYSTYPE int
  920. #endif
  921. #ifndef YY_XTYPE
  922. #define YY_XTYPE void *
  923. #endif
  924. #ifndef YY_XVAR
  925. #define YY_XVAR yyxvar
  926. #endif
  927. #ifndef YY_STACK_SIZE
  928. #define YY_STACK_SIZE 128
  929. #endif
  930. #ifndef YY_BUFFER_START_SIZE
  931. #define YY_BUFFER_START_SIZE 1024
  932. #endif
  933. #ifndef YY_PART
  934. #define yydata G->data
  935. #define yy G->ss
  936. struct _yythunk; // forward declaration
  937. typedef void (*yyaction)(struct _GREG *G, char *yytext, int yyleng, struct _yythunk *thunkpos, YY_XTYPE YY_XVAR);
  938. typedef struct _yythunk { int begin, end; yyaction action; struct _yythunk *next; } yythunk;
  939. typedef struct _GREG {
  940. char *buf;
  941. int buflen;
  942. int offset;
  943. int pos;
  944. int limit;
  945. char *text;
  946. int textlen;
  947. int begin;
  948. int end;
  949. yythunk *thunks;
  950. int thunkslen;
  951. int thunkpos;
  952. YYSTYPE ss;
  953. YYSTYPE *val;
  954. YYSTYPE *vals;
  955. int valslen;
  956. YY_XTYPE data;
  957. } GREG;
  958. YY_LOCAL(int) yyrefill(GREG *G)
  959. {
  960. int yyn;
  961. while (G->buflen - G->pos < 512)
  962. {
  963. G->buflen *= 2;
  964. G->buf= (char *)YY_REALLOC(G->buf, G->buflen, G->data);
  965. }
  966. YY_INPUT((G->buf + G->pos), yyn, (G->buflen - G->pos));
  967. if (!yyn) return 0;
  968. G->limit += yyn;
  969. return 1;
  970. }
  971. YY_LOCAL(int) yymatchDot(GREG *G)
  972. {
  973. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  974. ++G->pos;
  975. return 1;
  976. }
  977. YY_LOCAL(int) yymatchChar(GREG *G, int c)
  978. {
  979. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  980. if ((unsigned char)G->buf[G->pos] == c)
  981. {
  982. ++G->pos;
  983. yyprintf((stderr, " ok yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
  984. return 1;
  985. }
  986. yyprintf((stderr, " fail yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
  987. return 0;
  988. }
  989. YY_LOCAL(int) yymatchString(GREG *G, char *s)
  990. {
  991. int yysav= G->pos;
  992. while (*s)
  993. {
  994. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  995. if (G->buf[G->pos] != *s)
  996. {
  997. G->pos= yysav;
  998. return 0;
  999. }
  1000. ++s;
  1001. ++G->pos;
  1002. }
  1003. return 1;
  1004. }
  1005. YY_LOCAL(int) yymatchClass(GREG *G, unsigned char *bits)
  1006. {
  1007. int c;
  1008. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  1009. c= (unsigned char)G->buf[G->pos];
  1010. if (bits[c >> 3] & (1 << (c & 7)))
  1011. {
  1012. ++G->pos;
  1013. yyprintf((stderr, " ok yymatchClass @ %s\n", G->buf+G->pos));
  1014. return 1;
  1015. }
  1016. yyprintf((stderr, " fail yymatchClass @ %s\n", G->buf+G->pos));
  1017. return 0;
  1018. }
  1019. YY_LOCAL(void) yyDo(GREG *G, yyaction action, int begin, int end)
  1020. {
  1021. while (G->thunkpos >= G->thunkslen)
  1022. {
  1023. G->thunkslen *= 2;
  1024. G->thunks= (yythunk *)YY_REALLOC(G->thunks, sizeof(yythunk) * G->thunkslen, G->data);
  1025. }
  1026. G->thunks[G->thunkpos].begin= begin;
  1027. G->thunks[G->thunkpos].end= end;
  1028. G->thunks[G->thunkpos].action= action;
  1029. ++G->thunkpos;
  1030. }
  1031. YY_LOCAL(int) yyText(GREG *G, int begin, int end)
  1032. {
  1033. int yyleng= end - begin;
  1034. if (yyleng <= 0)
  1035. yyleng= 0;
  1036. else
  1037. {
  1038. while (G->textlen < (yyleng + 1))
  1039. {
  1040. G->textlen *= 2;
  1041. G->text= (char *)YY_REALLOC(G->text, G->textlen, G->data);
  1042. }
  1043. memcpy(G->text, G->buf + begin, yyleng);
  1044. }
  1045. G->text[yyleng]= '\0';
  1046. return yyleng;
  1047. }
  1048. YY_LOCAL(void) yyDone(GREG *G)
  1049. {
  1050. int pos;
  1051. for (pos= 0; pos < G->thunkpos; ++pos)
  1052. {
  1053. yythunk *thunk= &G->thunks[pos];
  1054. int yyleng= thunk->end ? yyText(G, thunk->begin, thunk->end) : thunk->begin;
  1055. yyprintf((stderr, "DO [%d] %p %s\n", pos, thunk->action, G->text));
  1056. thunk->action(G, G->text, yyleng, thunk, G->data);
  1057. }
  1058. G->thunkpos= 0;
  1059. }
  1060. YY_LOCAL(void) yyCommit(GREG *G)
  1061. {
  1062. if ((G->limit -= G->pos))
  1063. {
  1064. memmove(G->buf, G->buf + G->pos, G->limit);
  1065. }
  1066. G->offset += G->pos;
  1067. G->begin -= G->pos;
  1068. G->end -= G->pos;
  1069. G->pos= G->thunkpos= 0;
  1070. }
  1071. YY_LOCAL(int) yyAccept(GREG *G, int tp0)
  1072. {
  1073. if (tp0)
  1074. {
  1075. fprintf(stderr, "accept denied at %d\n", tp0);
  1076. return 0;
  1077. }
  1078. else
  1079. {
  1080. yyDone(G);
  1081. yyCommit(G);
  1082. }
  1083. return 1;
  1084. }
  1085. YY_LOCAL(void) yyPush(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val += count; }
  1086. YY_LOCAL(void) yyPop(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val -= count; }
  1087. YY_LOCAL(void) yySet(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val[count]= G->ss; }
  1088. #endif /* YY_PART */
  1089. #define YYACCEPT yyAccept(G, yythunkpos0)
  1090. YY_RULE(int) yy_RawNoteBlock(GREG *G); /* 250 */
  1091. YY_RULE(int) yy_RawNoteReference(GREG *G); /* 249 */
  1092. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G); /* 248 */
  1093. YY_RULE(int) yy_AlphanumericAscii(GREG *G); /* 247 */
  1094. YY_RULE(int) yy_Quoted(GREG *G); /* 246 */
  1095. YY_RULE(int) yy_HtmlTag(GREG *G); /* 245 */
  1096. YY_RULE(int) yy_MarkTagClose(GREG *G); /* 244 */
  1097. YY_RULE(int) yy_MarkTagText(GREG *G); /* 243 */
  1098. YY_RULE(int) yy_MarkTagOpen(GREG *G); /* 242 */
  1099. YY_RULE(int) yy_Ticks5(GREG *G); /* 241 */
  1100. YY_RULE(int) yy_Ticks4(GREG *G); /* 240 */
  1101. YY_RULE(int) yy_Ticks3(GREG *G); /* 239 */
  1102. YY_RULE(int) yy_Ticks2(GREG *G); /* 238 */
  1103. YY_RULE(int) yy_Ticks1(GREG *G); /* 237 */
  1104. YY_RULE(int) yy_SkipBlock(GREG *G); /* 236 */
  1105. YY_RULE(int) yy_References(GREG *G); /* 235 */
  1106. YY_RULE(int) yy_EmptyTitle(GREG *G); /* 234 */
  1107. YY_RULE(int) yy_RefTitleParens(GREG *G); /* 233 */
  1108. YY_RULE(int) yy_RefTitleDouble(GREG *G); /* 232 */
  1109. YY_RULE(int) yy_RefTitleSingle(GREG *G); /* 231 */
  1110. YY_RULE(int) yy_LabelInline(GREG *G); /* 230 */
  1111. YY_RULE(int) yy_RefTitle(GREG *G); /* 229 */
  1112. YY_RULE(int) yy_RefSrc(GREG *G); /* 228 */
  1113. YY_RULE(int) yy_AutoLinkEmail(GREG *G); /* 227 */
  1114. YY_RULE(int) yy_AutoLinkUrl(GREG *G); /* 226 */
  1115. YY_RULE(int) yy_ImageSizeHeight(GREG *G); /* 225 */
  1116. YY_RULE(int) yy_ImageSizeWidth(GREG *G); /* 224 */
  1117. YY_RULE(int) yy_ImageSizeComplete(GREG *G); /* 223 */
  1118. YY_RULE(int) yy_TitleDoubleExt(GREG *G); /* 222 */
  1119. YY_RULE(int) yy_TitleSingleExt(GREG *G); /* 221 */
  1120. YY_RULE(int) yy_TitleDouble(GREG *G); /* 220 */
  1121. YY_RULE(int) yy_TitleSingle(GREG *G); /* 219 */
  1122. YY_RULE(int) yy_SourceContents(GREG *G); /* 218 */
  1123. YY_RULE(int) yy_ImageSize(GREG *G); /* 217 */
  1124. YY_RULE(int) yy_TitleExt(GREG *G); /* 216 */
  1125. YY_RULE(int) yy_Title(GREG *G); /* 215 */
  1126. YY_RULE(int) yy_Source(GREG *G); /* 214 */
  1127. YY_RULE(int) yy_Label(GREG *G); /* 213 */
  1128. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G); /* 212 */
  1129. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G); /* 211 */
  1130. YY_RULE(int) yy_AutoLink(GREG *G); /* 210 */
  1131. YY_RULE(int) yy_ReferenceLink(GREG *G); /* 209 */
  1132. YY_RULE(int) yy_ExplicitLinkSize(GREG *G); /* 208 */
  1133. YY_RULE(int) yy_ExplicitLink(GREG *G); /* 207 */
  1134. YY_RULE(int) yy_StrongUl(GREG *G); /* 206 */
  1135. YY_RULE(int) yy_StrongStar(GREG *G); /* 205 */
  1136. YY_RULE(int) yy_Whitespace(GREG *G); /* 204 */
  1137. YY_RULE(int) yy_EmphUl(GREG *G); /* 203 */
  1138. YY_RULE(int) yy_EmphStar(GREG *G); /* 202 */
  1139. YY_RULE(int) yy_StarLine(GREG *G); /* 201 */
  1140. YY_RULE(int) yy_UlLine(GREG *G); /* 200 */
  1141. YY_RULE(int) yy_SpecialChar(GREG *G); /* 199 */
  1142. YY_RULE(int) yy_Eof(GREG *G); /* 198 */
  1143. YY_RULE(int) yy_NormalEndline(GREG *G); /* 197 */
  1144. YY_RULE(int) yy_TerminalEndline(GREG *G); /* 196 */
  1145. YY_RULE(int) yy_LineBreak(GREG *G); /* 195 */
  1146. YY_RULE(int) yy_CharEntity(GREG *G); /* 194 */
  1147. YY_RULE(int) yy_DecEntity(GREG *G); /* 193 */
  1148. YY_RULE(int) yy_HexEntity(GREG *G); /* 192 */
  1149. YY_RULE(int) yy_Alphanumeric(GREG *G); /* 191 */
  1150. YY_RULE(int) yy_NormalChar(GREG *G); /* 190 */
  1151. YY_RULE(int) yy_Symbol(GREG *G); /* 189 */
  1152. YY_RULE(int) yy_EscapedChar(GREG *G); /* 188 */
  1153. YY_RULE(int) yy_Entity(GREG *G); /* 187 */
  1154. YY_RULE(int) yy_RawHtml(GREG *G); /* 186 */
  1155. YY_RULE(int) yy_Mark(GREG *G); /* 185 */
  1156. YY_RULE(int) yy_Code(GREG *G); /* 184 */
  1157. YY_RULE(int) yy_InlineNote(GREG *G); /* 183 */
  1158. YY_RULE(int) yy_NoteReference(GREG *G); /* 182 */
  1159. YY_RULE(int) yy_Link(GREG *G); /* 181 */
  1160. YY_RULE(int) yy_Image(GREG *G); /* 180 */
  1161. YY_RULE(int) yy_Strike(GREG *G); /* 179 */
  1162. YY_RULE(int) yy_Emph(GREG *G); /* 178 */
  1163. YY_RULE(int) yy_Strong(GREG *G); /* 177 */
  1164. YY_RULE(int) yy_UlOrStarLine(GREG *G); /* 176 */
  1165. YY_RULE(int) yy_Str(GREG *G); /* 175 */
  1166. YY_RULE(int) yy_InStyleTags(GREG *G); /* 174 */
  1167. YY_RULE(int) yy_StyleClose(GREG *G); /* 173 */
  1168. YY_RULE(int) yy_StyleOpen(GREG *G); /* 172 */
  1169. YY_RULE(int) yy_HtmlBlockType(GREG *G); /* 171 */
  1170. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G); /* 170 */
  1171. YY_RULE(int) yy_HtmlComment(GREG *G); /* 169 */
  1172. YY_RULE(int) yy_HtmlBlockInTags(GREG *G); /* 168 */
  1173. YY_RULE(int) yy_HtmlBlockHead(GREG *G); /* 167 */
  1174. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G); /* 166 */
  1175. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G); /* 165 */
  1176. YY_RULE(int) yy_HtmlBlockScript(GREG *G); /* 164 */
  1177. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G); /* 163 */
  1178. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G); /* 162 */
  1179. YY_RULE(int) yy_HtmlBlockTr(GREG *G); /* 161 */
  1180. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G); /* 160 */
  1181. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G); /* 159 */
  1182. YY_RULE(int) yy_HtmlBlockThead(GREG *G); /* 158 */
  1183. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G); /* 157 */
  1184. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G); /* 156 */
  1185. YY_RULE(int) yy_HtmlBlockTh(GREG *G); /* 155 */
  1186. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G); /* 154 */
  1187. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G); /* 153 */
  1188. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G); /* 152 */
  1189. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G); /* 151 */
  1190. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G); /* 150 */
  1191. YY_RULE(int) yy_HtmlBlockTd(GREG *G); /* 149 */
  1192. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G); /* 148 */
  1193. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G); /* 147 */
  1194. YY_RULE(int) yy_HtmlBlockTbody(GREG *G); /* 146 */
  1195. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G); /* 145 */
  1196. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G); /* 144 */
  1197. YY_RULE(int) yy_HtmlBlockLi(GREG *G); /* 143 */
  1198. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G); /* 142 */
  1199. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G); /* 141 */
  1200. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G); /* 140 */
  1201. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G); /* 139 */
  1202. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G); /* 138 */
  1203. YY_RULE(int) yy_HtmlBlockDt(GREG *G); /* 137 */
  1204. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G); /* 136 */
  1205. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G); /* 135 */
  1206. YY_RULE(int) yy_HtmlBlockDd(GREG *G); /* 134 */
  1207. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G); /* 133 */
  1208. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G); /* 132 */
  1209. YY_RULE(int) yy_HtmlBlockUl(GREG *G); /* 131 */
  1210. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G); /* 130 */
  1211. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G); /* 129 */
  1212. YY_RULE(int) yy_HtmlBlockTable(GREG *G); /* 128 */
  1213. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G); /* 127 */
  1214. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G); /* 126 */
  1215. YY_RULE(int) yy_HtmlBlockPre(GREG *G); /* 125 */
  1216. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G); /* 124 */
  1217. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G); /* 123 */
  1218. YY_RULE(int) yy_HtmlBlockP(GREG *G); /* 122 */
  1219. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G); /* 121 */
  1220. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G); /* 120 */
  1221. YY_RULE(int) yy_HtmlBlockOl(GREG *G); /* 119 */
  1222. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G); /* 118 */
  1223. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G); /* 117 */
  1224. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G); /* 116 */
  1225. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G); /* 115 */
  1226. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G); /* 114 */
  1227. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G); /* 113 */
  1228. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G); /* 112 */
  1229. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G); /* 111 */
  1230. YY_RULE(int) yy_HtmlBlockMenu(GREG *G); /* 110 */
  1231. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G); /* 109 */
  1232. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G); /* 108 */
  1233. YY_RULE(int) yy_HtmlBlockH6(GREG *G); /* 107 */
  1234. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G); /* 106 */
  1235. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G); /* 105 */
  1236. YY_RULE(int) yy_HtmlBlockH5(GREG *G); /* 104 */
  1237. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G); /* 103 */
  1238. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G); /* 102 */
  1239. YY_RULE(int) yy_HtmlBlockH4(GREG *G); /* 101 */
  1240. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G); /* 100 */
  1241. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G); /* 99 */
  1242. YY_RULE(int) yy_HtmlBlockH3(GREG *G); /* 98 */
  1243. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G); /* 97 */
  1244. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G); /* 96 */
  1245. YY_RULE(int) yy_HtmlBlockH2(GREG *G); /* 95 */
  1246. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G); /* 94 */
  1247. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G); /* 93 */
  1248. YY_RULE(int) yy_HtmlBlockH1(GREG *G); /* 92 */
  1249. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G); /* 91 */
  1250. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G); /* 90 */
  1251. YY_RULE(int) yy_HtmlBlockForm(GREG *G); /* 89 */
  1252. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G); /* 88 */
  1253. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G); /* 87 */
  1254. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G); /* 86 */
  1255. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G); /* 85 */
  1256. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G); /* 84 */
  1257. YY_RULE(int) yy_HtmlBlockDl(GREG *G); /* 83 */
  1258. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G); /* 82 */
  1259. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G); /* 81 */
  1260. YY_RULE(int) yy_HtmlBlockDiv(GREG *G); /* 80 */
  1261. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G); /* 79 */
  1262. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G); /* 78 */
  1263. YY_RULE(int) yy_HtmlBlockDir(GREG *G); /* 77 */
  1264. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G); /* 76 */
  1265. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G); /* 75 */
  1266. YY_RULE(int) yy_HtmlBlockCenter(GREG *G); /* 74 */
  1267. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G); /* 73 */
  1268. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G); /* 72 */
  1269. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G); /* 71 */
  1270. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G); /* 70 */
  1271. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G); /* 69 */
  1272. YY_RULE(int) yy_HtmlBlockAddress(GREG *G); /* 68 */
  1273. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G); /* 67 */
  1274. YY_RULE(int) yy_HtmlAttribute(GREG *G); /* 66 */
  1275. YY_RULE(int) yy_Spnl(GREG *G); /* 65 */
  1276. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G); /* 64 */
  1277. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G); /* 63 */
  1278. YY_RULE(int) yy_Indent(GREG *G); /* 62 */
  1279. YY_RULE(int) yy_ListBlockLine(GREG *G); /* 61 */
  1280. YY_RULE(int) yy_ListContinuationBlock(GREG *G); /* 60 */
  1281. YY_RULE(int) yy_ListBlock(GREG *G); /* 59 */
  1282. YY_RULE(int) yy_ListItem(GREG *G); /* 58 */
  1283. YY_RULE(int) yy_Enumerator(GREG *G); /* 57 */
  1284. YY_RULE(int) yy_ListItemTight(GREG *G); /* 56 */
  1285. YY_RULE(int) yy_ListLoose(GREG *G); /* 55 */
  1286. YY_RULE(int) yy_ListTight(GREG *G); /* 54 */
  1287. YY_RULE(int) yy_Bullet(GREG *G); /* 53 */
  1288. YY_RULE(int) yy_Nonspacechar(GREG *G); /* 52 */
  1289. YY_RULE(int) yy_InlineEquationMultiple(GREG *G); /* 51 */
  1290. YY_RULE(int) yy_InlineEquationSingle(GREG *G); /* 50 */
  1291. YY_RULE(int) yy_InlineEquation(GREG *G); /* 49 */
  1292. YY_RULE(int) yy_FormulaNumber(GREG *G); /* 48 */
  1293. YY_RULE(int) yy_Spacechar(GREG *G); /* 47 */
  1294. YY_RULE(int) yy_FencedCodeBlockEnd(GREG *G); /* 46 */
  1295. YY_RULE(int) yy_FencedCodeBlockChunk(GREG *G); /* 45 */
  1296. YY_RULE(int) yy_FencedCodeBlockStart(GREG *G); /* 44 */
  1297. YY_RULE(int) yy_VerbatimChunk(GREG *G); /* 43 */
  1298. YY_RULE(int) yy_IndentedLine(GREG *G); /* 42 */
  1299. YY_RULE(int) yy_NonblankIndentedLine(GREG *G); /* 41 */
  1300. YY_RULE(int) yy_Line(GREG *G); /* 40 */
  1301. YY_RULE(int) yy_StartList(GREG *G); /* 39 */
  1302. YY_RULE(int) yy_BlockQuoteRaw(GREG *G); /* 38 */
  1303. YY_RULE(int) yy_Endline(GREG *G); /* 37 */
  1304. YY_RULE(int) yy_RawLine(GREG *G); /* 36 */
  1305. YY_RULE(int) yy_SetextBottom2(GREG *G); /* 35 */
  1306. YY_RULE(int) yy_SetextBottom1(GREG *G); /* 34 */
  1307. YY_RULE(int) yy_SetextHeading2(GREG *G); /* 33 */
  1308. YY_RULE(int) yy_SetextHeading1(GREG *G); /* 32 */
  1309. YY_RULE(int) yy_SetextHeading(GREG *G); /* 31 */
  1310. YY_RULE(int) yy_Space(GREG *G); /* 30 */
  1311. YY_RULE(int) yy_AtxHeading(GREG *G); /* 29 */
  1312. YY_RULE(int) yy_AtxStart(GREG *G); /* 28 */
  1313. YY_RULE(int) yy_Inline(GREG *G); /* 27 */
  1314. YY_RULE(int) yy_Sp(GREG *G); /* 26 */
  1315. YY_RULE(int) yy_AtxInline(GREG *G); /* 25 */
  1316. YY_RULE(int) yy_Inlines(GREG *G); /* 24 */
  1317. YY_RULE(int) yy_NonindentSpace(GREG *G); /* 23 */
  1318. YY_RULE(int) yy_Plain(GREG *G); /* 22 */
  1319. YY_RULE(int) yy_Para(GREG *G); /* 21 */
  1320. YY_RULE(int) yy_StyleBlock(GREG *G); /* 20 */
  1321. YY_RULE(int) yy_HtmlBlock(GREG *G); /* 19 */
  1322. YY_RULE(int) yy_BulletList(GREG *G); /* 18 */
  1323. YY_RULE(int) yy_OrderedList(GREG *G); /* 17 */
  1324. YY_RULE(int) yy_Heading(GREG *G); /* 16 */
  1325. YY_RULE(int) yy_HorizontalRule(GREG *G); /* 15 */
  1326. YY_RULE(int) yy_Reference(GREG *G); /* 14 */
  1327. YY_RULE(int) yy_Note(GREG *G); /* 13 */
  1328. YY_RULE(int) yy_DisplayFormula(GREG *G); /* 12 */
  1329. YY_RULE(int) yy_FencedCodeBlock(GREG *G); /* 11 */
  1330. YY_RULE(int) yy_Verbatim(GREG *G); /* 10 */
  1331. YY_RULE(int) yy_BlockQuote(GREG *G); /* 9 */
  1332. YY_RULE(int) yy_BlankLine(GREG *G); /* 8 */
  1333. YY_RULE(int) yy_FrontMatterEndMark(GREG *G); /* 7 */
  1334. YY_RULE(int) yy_FrontMatterBlock(GREG *G); /* 6 */
  1335. YY_RULE(int) yy_Newline(GREG *G); /* 5 */
  1336. YY_RULE(int) yy_LocMarker(GREG *G); /* 4 */
  1337. YY_RULE(int) yy_Block(GREG *G); /* 3 */
  1338. YY_RULE(int) yy_FrontMatter(GREG *G); /* 2 */
  1339. YY_RULE(int) yy_Doc(GREG *G); /* 1 */
  1340. YY_ACTION(void) yy_1_InlineNote(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1341. {
  1342. #define s G->val[-1]
  1343. yyprintf((stderr, "do yy_1_InlineNote\n"));
  1344. ADD(elem_s(pmh_NOTE)); ;
  1345. #undef s
  1346. }
  1347. YY_ACTION(void) yy_1_Note(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1348. {
  1349. #define s G->val[-1]
  1350. yyprintf((stderr, "do yy_1_Note\n"));
  1351. ADD(elem_s(pmh_NOTE)); ;
  1352. #undef s
  1353. }
  1354. YY_ACTION(void) yy_1_NoteReference(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1355. {
  1356. yyprintf((stderr, "do yy_1_NoteReference\n"));
  1357. ADD(elem(pmh_NOTE)); ;
  1358. }
  1359. YY_ACTION(void) yy_1_RawLine(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1360. {
  1361. yyprintf((stderr, "do yy_1_RawLine\n"));
  1362. yy = elem(pmh_RAW); ;
  1363. }
  1364. YY_ACTION(void) yy_1_Line(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1365. {
  1366. yyprintf((stderr, "do yy_1_Line\n"));
  1367. yy = mk_element((parser_data *)G->data, pmh_RAW, yy->pos, yy->end); ;
  1368. }
  1369. YY_ACTION(void) yy_1_StartList(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1370. {
  1371. yyprintf((stderr, "do yy_1_StartList\n"));
  1372. yy = NULL; ;
  1373. }
  1374. YY_ACTION(void) yy_1_HtmlComment(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1375. {
  1376. #define s G->val[-1]
  1377. yyprintf((stderr, "do yy_1_HtmlComment\n"));
  1378. ADD(elem_s(pmh_COMMENT)); ;
  1379. #undef s
  1380. }
  1381. YY_ACTION(void) yy_1_RawHtml(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1382. {
  1383. #define s G->val[-1]
  1384. yyprintf((stderr, "do yy_1_RawHtml\n"));
  1385. ADD(elem_s(pmh_HTML)); ;
  1386. #undef s
  1387. }
  1388. YY_ACTION(void) yy_1_MarkTagClose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1389. {
  1390. #define s G->val[-1]
  1391. yyprintf((stderr, "do yy_1_MarkTagClose\n"));
  1392. yy = elem_s(pmh_HTML); ;
  1393. #undef s
  1394. }
  1395. YY_ACTION(void) yy_1_MarkTagOpen(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1396. {
  1397. #define s G->val[-1]
  1398. yyprintf((stderr, "do yy_1_MarkTagOpen\n"));
  1399. yy = elem_s(pmh_HTML); ;
  1400. #undef s
  1401. }
  1402. YY_ACTION(void) yy_1_Mark(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1403. {
  1404. #define c G->val[-1]
  1405. #define o G->val[-2]
  1406. yyprintf((stderr, "do yy_1_Mark\n"));
  1407. ADD(o);
  1408. ADD(mk_element((parser_data *)G->data, pmh_MARK, o->end, c->pos));
  1409. ADD(c);
  1410. ;
  1411. #undef c
  1412. #undef o
  1413. }
  1414. YY_ACTION(void) yy_1_Code(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1415. {
  1416. #define s G->val[-1]
  1417. yyprintf((stderr, "do yy_1_Code\n"));
  1418. ADD(elem_s(pmh_CODE)); ;
  1419. #undef s
  1420. }
  1421. YY_ACTION(void) yy_1_Ticks5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1422. {
  1423. yyprintf((stderr, "do yy_1_Ticks5\n"));
  1424. yy = elem(pmh_NO_TYPE); ;
  1425. }
  1426. YY_ACTION(void) yy_1_Ticks4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1427. {
  1428. yyprintf((stderr, "do yy_1_Ticks4\n"));
  1429. yy = elem(pmh_NO_TYPE); ;
  1430. }
  1431. YY_ACTION(void) yy_1_Ticks3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1432. {
  1433. yyprintf((stderr, "do yy_1_Ticks3\n"));
  1434. yy = elem(pmh_NO_TYPE); ;
  1435. }
  1436. YY_ACTION(void) yy_1_Ticks2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1437. {
  1438. yyprintf((stderr, "do yy_1_Ticks2\n"));
  1439. yy = elem(pmh_NO_TYPE); ;
  1440. }
  1441. YY_ACTION(void) yy_1_Ticks1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1442. {
  1443. yyprintf((stderr, "do yy_1_Ticks1\n"));
  1444. yy = elem(pmh_NO_TYPE); ;
  1445. }
  1446. YY_ACTION(void) yy_1_RefSrc(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1447. {
  1448. yyprintf((stderr, "do yy_1_RefSrc\n"));
  1449. yy = mk_notype; yy->address = COPY_YYTEXT_ORIG(); ;
  1450. }
  1451. YY_ACTION(void) yy_2_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1452. {
  1453. #define s G->val[-1]
  1454. yyprintf((stderr, "do yy_2_Label\n"));
  1455. s->pos = s->pos;
  1456. s->end = thunk->end;
  1457. yy = s;
  1458. ;
  1459. #undef s
  1460. }
  1461. YY_ACTION(void) yy_1_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1462. {
  1463. #define s G->val[-1]
  1464. yyprintf((stderr, "do yy_1_Label\n"));
  1465. s->label = COPY_YYTEXT_ORIG(); ;
  1466. #undef s
  1467. }
  1468. YY_ACTION(void) yy_1_Reference(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1469. {
  1470. #define r G->val[-1]
  1471. #define l G->val[-2]
  1472. #define s G->val[-3]
  1473. yyprintf((stderr, "do yy_1_Reference\n"));
  1474. pmh_realelement *el = elem_s(pmh_REFERENCE);
  1475. el->label = strdup_or_null(l->label);
  1476. el->address = strdup_or_null(r->address);
  1477. ADD(el);
  1478. FREE_LABEL(l);
  1479. FREE_ADDRESS(r);
  1480. ;
  1481. #undef r
  1482. #undef l
  1483. #undef s
  1484. }
  1485. YY_ACTION(void) yy_3_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1486. {
  1487. #define s G->val[-1]
  1488. yyprintf((stderr, "do yy_3_AutoLinkEmail\n"));
  1489. s->end = thunk->end;
  1490. ADD(s);
  1491. ;
  1492. #undef s
  1493. }
  1494. YY_ACTION(void) yy_2_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1495. {
  1496. #define s G->val[-1]
  1497. yyprintf((stderr, "do yy_2_AutoLinkEmail\n"));
  1498. s->address = COPY_YYTEXT_ORIG(); ;
  1499. #undef s
  1500. }
  1501. YY_ACTION(void) yy_1_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1502. {
  1503. #define s G->val[-1]
  1504. yyprintf((stderr, "do yy_1_AutoLinkEmail\n"));
  1505. s->type = pmh_AUTO_LINK_EMAIL; ;
  1506. #undef s
  1507. }
  1508. YY_ACTION(void) yy_3_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1509. {
  1510. #define s G->val[-1]
  1511. yyprintf((stderr, "do yy_3_AutoLinkUrl\n"));
  1512. s->end = thunk->end;
  1513. ADD(s);
  1514. ;
  1515. #undef s
  1516. }
  1517. YY_ACTION(void) yy_2_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1518. {
  1519. #define s G->val[-1]
  1520. yyprintf((stderr, "do yy_2_AutoLinkUrl\n"));
  1521. s->address = COPY_YYTEXT_ORIG(); ;
  1522. #undef s
  1523. }
  1524. YY_ACTION(void) yy_1_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1525. {
  1526. #define s G->val[-1]
  1527. yyprintf((stderr, "do yy_1_AutoLinkUrl\n"));
  1528. s->type = pmh_AUTO_LINK_URL; ;
  1529. #undef s
  1530. }
  1531. YY_ACTION(void) yy_3_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1532. {
  1533. yyprintf((stderr, "do yy_3_Source\n"));
  1534. yy->address = COPY_YYTEXT_ORIG(); ;
  1535. }
  1536. YY_ACTION(void) yy_2_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1537. {
  1538. yyprintf((stderr, "do yy_2_Source\n"));
  1539. yy->address = COPY_YYTEXT_ORIG(); ;
  1540. }
  1541. YY_ACTION(void) yy_1_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1542. {
  1543. yyprintf((stderr, "do yy_1_Source\n"));
  1544. yy = mk_notype; ;
  1545. }
  1546. YY_ACTION(void) yy_1_ExplicitLinkSize(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1547. {
  1548. #define l G->val[-1]
  1549. #define s G->val[-2]
  1550. yyprintf((stderr, "do yy_1_ExplicitLinkSize\n"));
  1551. yy = elem_s(pmh_LINK);
  1552. if (l->address != NULL)
  1553. yy->address = strdup_or_null(l->address);
  1554. FREE_LABEL(s);
  1555. FREE_ADDRESS(l);
  1556. ;
  1557. #undef l
  1558. #undef s
  1559. }
  1560. YY_ACTION(void) yy_1_ExplicitLink(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1561. {
  1562. #define l G->val[-1]
  1563. #define s G->val[-2]
  1564. yyprintf((stderr, "do yy_1_ExplicitLink\n"));
  1565. yy = elem_s(pmh_LINK);
  1566. if (l->address != NULL)
  1567. yy->address = strdup_or_null(l->address);
  1568. FREE_LABEL(s);
  1569. FREE_ADDRESS(l);
  1570. ;
  1571. #undef l
  1572. #undef s
  1573. }
  1574. YY_ACTION(void) yy_1_ReferenceLinkSingle(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_ReferenceLinkSingle\n"));
  1578. pmh_realelement *reference = GET_REF(s->label);
  1579. if (reference) {
  1580. yy = elem_s(pmh_LINK);
  1581. yy->label = strdup_or_null(s->label);
  1582. yy->address = strdup_or_null(reference->address);
  1583. } else
  1584. yy = NULL;
  1585. FREE_LABEL(s);
  1586. ;
  1587. #undef s
  1588. }
  1589. YY_ACTION(void) yy_1_ReferenceLinkDouble(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1590. {
  1591. #define l G->val[-1]
  1592. #define s G->val[-2]
  1593. yyprintf((stderr, "do yy_1_ReferenceLinkDouble\n"));
  1594. pmh_realelement *reference = GET_REF(l->label);
  1595. if (reference) {
  1596. yy = elem_s(pmh_LINK);
  1597. yy->label = strdup_or_null(l->label);
  1598. yy->address = strdup_or_null(reference->address);
  1599. } else
  1600. yy = NULL;
  1601. FREE_LABEL(s);
  1602. FREE_LABEL(l);
  1603. ;
  1604. #undef l
  1605. #undef s
  1606. }
  1607. YY_ACTION(void) yy_1_Link(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1608. {
  1609. yyprintf((stderr, "do yy_1_Link\n"));
  1610. if (yy) ADD(yy); ;
  1611. }
  1612. YY_ACTION(void) yy_1_Image(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1613. {
  1614. yyprintf((stderr, "do yy_1_Image\n"));
  1615. if (yy != NULL) {
  1616. yy->type = pmh_IMAGE;
  1617. yy->pos -= 1;
  1618. ADD(yy);
  1619. }
  1620. ;
  1621. }
  1622. YY_ACTION(void) yy_1_Strike(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1623. {
  1624. #define s G->val[-1]
  1625. yyprintf((stderr, "do yy_1_Strike\n"));
  1626. ADD(elem_s(pmh_STRIKE)); ;
  1627. #undef s
  1628. }
  1629. YY_ACTION(void) yy_1_StrongUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1630. {
  1631. #define s G->val[-1]
  1632. yyprintf((stderr, "do yy_1_StrongUl\n"));
  1633. ADD(elem_s(pmh_STRONG)); ;
  1634. #undef s
  1635. }
  1636. YY_ACTION(void) yy_1_StrongStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1637. {
  1638. #define s G->val[-1]
  1639. yyprintf((stderr, "do yy_1_StrongStar\n"));
  1640. ADD(elem_s(pmh_STRONG)); ;
  1641. #undef s
  1642. }
  1643. YY_ACTION(void) yy_1_EmphUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1644. {
  1645. #define s G->val[-1]
  1646. yyprintf((stderr, "do yy_1_EmphUl\n"));
  1647. ADD(elem_s(pmh_EMPH)); ;
  1648. #undef s
  1649. }
  1650. YY_ACTION(void) yy_1_EmphStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1651. {
  1652. #define s G->val[-1]
  1653. yyprintf((stderr, "do yy_1_EmphStar\n"));
  1654. ADD(elem_s(pmh_EMPH)); ;
  1655. #undef s
  1656. }
  1657. YY_ACTION(void) yy_1_Entity(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1658. {
  1659. #define s G->val[-1]
  1660. yyprintf((stderr, "do yy_1_Entity\n"));
  1661. ADD(elem_s(pmh_HTML_ENTITY)); ;
  1662. #undef s
  1663. }
  1664. YY_ACTION(void) yy_1_StyleBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1665. {
  1666. #define s G->val[-1]
  1667. yyprintf((stderr, "do yy_1_StyleBlock\n"));
  1668. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1669. #undef s
  1670. }
  1671. YY_ACTION(void) yy_1_HtmlBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1672. {
  1673. #define s G->val[-1]
  1674. yyprintf((stderr, "do yy_1_HtmlBlock\n"));
  1675. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1676. #undef s
  1677. }
  1678. YY_ACTION(void) yy_1_HtmlBlockH6(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1679. {
  1680. #define s G->val[-1]
  1681. yyprintf((stderr, "do yy_1_HtmlBlockH6\n"));
  1682. ADD(elem_s(pmh_H6)); ;
  1683. #undef s
  1684. }
  1685. YY_ACTION(void) yy_1_HtmlBlockH5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1686. {
  1687. #define s G->val[-1]
  1688. yyprintf((stderr, "do yy_1_HtmlBlockH5\n"));
  1689. ADD(elem_s(pmh_H5)); ;
  1690. #undef s
  1691. }
  1692. YY_ACTION(void) yy_1_HtmlBlockH4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1693. {
  1694. #define s G->val[-1]
  1695. yyprintf((stderr, "do yy_1_HtmlBlockH4\n"));
  1696. ADD(elem_s(pmh_H4)); ;
  1697. #undef s
  1698. }
  1699. YY_ACTION(void) yy_1_HtmlBlockH3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1700. {
  1701. #define s G->val[-1]
  1702. yyprintf((stderr, "do yy_1_HtmlBlockH3\n"));
  1703. ADD(elem_s(pmh_H3)); ;
  1704. #undef s
  1705. }
  1706. YY_ACTION(void) yy_1_HtmlBlockH2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1707. {
  1708. #define s G->val[-1]
  1709. yyprintf((stderr, "do yy_1_HtmlBlockH2\n"));
  1710. ADD(elem_s(pmh_H2)); ;
  1711. #undef s
  1712. }
  1713. YY_ACTION(void) yy_1_HtmlBlockH1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1714. {
  1715. #define s G->val[-1]
  1716. yyprintf((stderr, "do yy_1_HtmlBlockH1\n"));
  1717. ADD(elem_s(pmh_H1)); ;
  1718. #undef s
  1719. }
  1720. YY_ACTION(void) yy_1_Enumerator(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1721. {
  1722. yyprintf((stderr, "do yy_1_Enumerator\n"));
  1723. ADD(elem(pmh_LIST_ENUMERATOR)); ;
  1724. }
  1725. YY_ACTION(void) yy_3_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1726. {
  1727. #define a G->val[-1]
  1728. yyprintf((stderr, "do yy_3_ListContinuationBlock\n"));
  1729. yy = a; ;
  1730. #undef a
  1731. }
  1732. YY_ACTION(void) yy_2_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1733. {
  1734. #define a G->val[-1]
  1735. yyprintf((stderr, "do yy_2_ListContinuationBlock\n"));
  1736. a = cons(yy, a); ;
  1737. #undef a
  1738. }
  1739. YY_ACTION(void) yy_1_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1740. {
  1741. #define a G->val[-1]
  1742. yyprintf((stderr, "do yy_1_ListContinuationBlock\n"));
  1743. if (*yytext == '\0') /* if strlen(yytext) == 0 */
  1744. a = cons(elem(pmh_SEPARATOR), a);
  1745. else
  1746. a = cons(elem(pmh_RAW), a);
  1747. ;
  1748. #undef a
  1749. }
  1750. YY_ACTION(void) yy_3_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1751. {
  1752. #define a G->val[-1]
  1753. yyprintf((stderr, "do yy_3_ListBlock\n"));
  1754. yy = a; ;
  1755. #undef a
  1756. }
  1757. YY_ACTION(void) yy_2_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1758. {
  1759. #define a G->val[-1]
  1760. yyprintf((stderr, "do yy_2_ListBlock\n"));
  1761. a = cons(elem(pmh_RAW), a); ;
  1762. #undef a
  1763. }
  1764. YY_ACTION(void) yy_1_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1765. {
  1766. #define a G->val[-1]
  1767. yyprintf((stderr, "do yy_1_ListBlock\n"));
  1768. a = cons(yy, a); ;
  1769. #undef a
  1770. }
  1771. YY_ACTION(void) yy_3_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1772. {
  1773. #define a G->val[-1]
  1774. yyprintf((stderr, "do yy_3_ListItemTight\n"));
  1775. yy = a; ;
  1776. #undef a
  1777. }
  1778. YY_ACTION(void) yy_2_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1779. {
  1780. #define a G->val[-1]
  1781. yyprintf((stderr, "do yy_2_ListItemTight\n"));
  1782. a = cons(yy, a); ;
  1783. #undef a
  1784. }
  1785. YY_ACTION(void) yy_1_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1786. {
  1787. #define a G->val[-1]
  1788. yyprintf((stderr, "do yy_1_ListItemTight\n"));
  1789. a = cons(yy, a); ;
  1790. #undef a
  1791. }
  1792. YY_ACTION(void) yy_3_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1793. {
  1794. #define a G->val[-1]
  1795. yyprintf((stderr, "do yy_3_ListItem\n"));
  1796. yy = a; ;
  1797. #undef a
  1798. }
  1799. YY_ACTION(void) yy_2_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1800. {
  1801. #define a G->val[-1]
  1802. yyprintf((stderr, "do yy_2_ListItem\n"));
  1803. a = cons(yy, a); ;
  1804. #undef a
  1805. }
  1806. YY_ACTION(void) yy_1_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1807. {
  1808. #define a G->val[-1]
  1809. yyprintf((stderr, "do yy_1_ListItem\n"));
  1810. a = cons(yy, a); ;
  1811. #undef a
  1812. }
  1813. YY_ACTION(void) yy_2_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1814. {
  1815. #define b G->val[-1]
  1816. #define a G->val[-2]
  1817. yyprintf((stderr, "do yy_2_ListLoose\n"));
  1818. pmh_realelement *cur = a;
  1819. while (cur != NULL) {
  1820. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1821. rawlist->children = reverse(cur->children);
  1822. ADD(rawlist);
  1823. cur = cur->next;
  1824. }
  1825. ;
  1826. #undef b
  1827. #undef a
  1828. }
  1829. YY_ACTION(void) yy_1_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1830. {
  1831. #define b G->val[-1]
  1832. #define a G->val[-2]
  1833. yyprintf((stderr, "do yy_1_ListLoose\n"));
  1834. b = cons(etext("\n\n"), b); /* In loose list, \n\n added to end of each element */
  1835. pmh_realelement *el = mk_notype;
  1836. el->children = b;
  1837. a = cons(el, a);
  1838. ;
  1839. #undef b
  1840. #undef a
  1841. }
  1842. YY_ACTION(void) yy_2_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1843. {
  1844. #define a G->val[-1]
  1845. yyprintf((stderr, "do yy_2_ListTight\n"));
  1846. pmh_realelement *cur = a;
  1847. while (cur != NULL) {
  1848. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1849. rawlist->children = reverse(cur->children);
  1850. ADD(rawlist);
  1851. cur = cur->next;
  1852. }
  1853. ;
  1854. #undef a
  1855. }
  1856. YY_ACTION(void) yy_1_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1857. {
  1858. #define a G->val[-1]
  1859. yyprintf((stderr, "do yy_1_ListTight\n"));
  1860. pmh_realelement *el = mk_notype;
  1861. el->children = yy;
  1862. a = cons(el, a);
  1863. ;
  1864. #undef a
  1865. }
  1866. YY_ACTION(void) yy_1_Bullet(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1867. {
  1868. yyprintf((stderr, "do yy_1_Bullet\n"));
  1869. ADD(elem(pmh_LIST_BULLET)); ;
  1870. }
  1871. YY_ACTION(void) yy_1_HorizontalRule(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1872. {
  1873. yyprintf((stderr, "do yy_1_HorizontalRule\n"));
  1874. ADD(elem(pmh_HRULE)); ;
  1875. }
  1876. YY_ACTION(void) yy_1_InlineEquation(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1877. {
  1878. yyprintf((stderr, "do yy_1_InlineEquation\n"));
  1879. ADD(elem(pmh_INLINEEQUATION)); ;
  1880. }
  1881. YY_ACTION(void) yy_1_DisplayFormula(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1882. {
  1883. yyprintf((stderr, "do yy_1_DisplayFormula\n"));
  1884. ADD(elem(pmh_DISPLAYFORMULA)); ;
  1885. }
  1886. YY_ACTION(void) yy_1_FencedCodeBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1887. {
  1888. #define s G->val[-1]
  1889. yyprintf((stderr, "do yy_1_FencedCodeBlock\n"));
  1890. ADD(elem(pmh_FENCEDCODEBLOCK)); ;
  1891. #undef s
  1892. }
  1893. YY_ACTION(void) yy_1_Verbatim(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1894. {
  1895. #define s G->val[-1]
  1896. yyprintf((stderr, "do yy_1_Verbatim\n"));
  1897. ADD(elem_s(pmh_VERBATIM)); ;
  1898. #undef s
  1899. }
  1900. YY_ACTION(void) yy_5_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1901. {
  1902. #define a G->val[-1]
  1903. yyprintf((stderr, "do yy_5_BlockQuoteRaw\n"));
  1904. yy = a; ;
  1905. #undef a
  1906. }
  1907. YY_ACTION(void) yy_4_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1908. {
  1909. #define a G->val[-1]
  1910. yyprintf((stderr, "do yy_4_BlockQuoteRaw\n"));
  1911. a = cons(etext("\n"), a); ;
  1912. #undef a
  1913. }
  1914. YY_ACTION(void) yy_3_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1915. {
  1916. #define a G->val[-1]
  1917. yyprintf((stderr, "do yy_3_BlockQuoteRaw\n"));
  1918. a = cons(yy, a); ;
  1919. #undef a
  1920. }
  1921. YY_ACTION(void) yy_2_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1922. {
  1923. #define a G->val[-1]
  1924. yyprintf((stderr, "do yy_2_BlockQuoteRaw\n"));
  1925. a = cons(yy, a); ;
  1926. #undef a
  1927. }
  1928. YY_ACTION(void) yy_1_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1929. {
  1930. #define a G->val[-1]
  1931. yyprintf((stderr, "do yy_1_BlockQuoteRaw\n"));
  1932. ADD(elem(pmh_BLOCKQUOTE)); ;
  1933. #undef a
  1934. }
  1935. YY_ACTION(void) yy_1_BlockQuote(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1936. {
  1937. #define a G->val[-1]
  1938. yyprintf((stderr, "do yy_1_BlockQuote\n"));
  1939. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1940. rawlist->children = reverse(a);
  1941. ADD(rawlist);
  1942. ;
  1943. #undef a
  1944. }
  1945. YY_ACTION(void) yy_1_SetextHeading2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1946. {
  1947. #define s G->val[-1]
  1948. yyprintf((stderr, "do yy_1_SetextHeading2\n"));
  1949. ADD(elem_s(pmh_H2)); ;
  1950. #undef s
  1951. }
  1952. YY_ACTION(void) yy_1_SetextHeading1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1953. {
  1954. #define s G->val[-1]
  1955. yyprintf((stderr, "do yy_1_SetextHeading1\n"));
  1956. ADD(elem_s(pmh_H1)); ;
  1957. #undef s
  1958. }
  1959. YY_ACTION(void) yy_1_AtxHeading(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1960. {
  1961. #define s G->val[-1]
  1962. yyprintf((stderr, "do yy_1_AtxHeading\n"));
  1963. ADD(elem_s(s->type)); ;
  1964. #undef s
  1965. }
  1966. YY_ACTION(void) yy_1_AtxStart(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1967. {
  1968. yyprintf((stderr, "do yy_1_AtxStart\n"));
  1969. yy = elem((pmh_element_type)(pmh_H1 + (strlen(yytext) - 1))); ;
  1970. }
  1971. YY_ACTION(void) yy_1_FrontMatter(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1972. {
  1973. #define s G->val[-1]
  1974. yyprintf((stderr, "do yy_1_FrontMatter\n"));
  1975. ADD(elem(pmh_FRONTMATTER));
  1976. ;
  1977. #undef s
  1978. }
  1979. YY_ACTION(void) yy_1_LocMarker(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1980. {
  1981. yyprintf((stderr, "do yy_1_LocMarker\n"));
  1982. yy = elem(pmh_NO_TYPE); ;
  1983. }
  1984. YY_RULE(int) yy_RawNoteBlock(GREG *G)
  1985. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1986. yyprintf((stderr, "%s\n", "RawNoteBlock"));
  1987. { int yypos4= G->pos, yythunkpos4= G->thunkpos; if (!yy_BlankLine(G)) { goto l4; } goto l1;
  1988. l4:; G->pos= yypos4; G->thunkpos= yythunkpos4;
  1989. } if (!yy_OptionallyIndentedLine(G)) { goto l1; }
  1990. l2:;
  1991. { int yypos3= G->pos, yythunkpos3= G->thunkpos;
  1992. { int yypos5= G->pos, yythunkpos5= G->thunkpos; if (!yy_BlankLine(G)) { goto l5; } goto l3;
  1993. l5:; G->pos= yypos5; G->thunkpos= yythunkpos5;
  1994. } if (!yy_OptionallyIndentedLine(G)) { goto l3; } goto l2;
  1995. l3:; G->pos= yypos3; G->thunkpos= yythunkpos3;
  1996. }
  1997. l6:;
  1998. { int yypos7= G->pos, yythunkpos7= G->thunkpos; if (!yy_BlankLine(G)) { goto l7; } goto l6;
  1999. l7:; G->pos= yypos7; G->thunkpos= yythunkpos7;
  2000. }
  2001. yyprintf((stderr, " ok %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  2002. return 1;
  2003. l1:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2004. yyprintf((stderr, " fail %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  2005. return 0;
  2006. }
  2007. YY_RULE(int) yy_RawNoteReference(GREG *G)
  2008. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2009. yyprintf((stderr, "%s\n", "RawNoteReference")); if (!yymatchString(G, "[^")) goto l8;
  2010. { int yypos11= G->pos, yythunkpos11= G->thunkpos; if (!yy_Newline(G)) { goto l11; } goto l8;
  2011. l11:; G->pos= yypos11; G->thunkpos= yythunkpos11;
  2012. }
  2013. { int yypos12= G->pos, yythunkpos12= G->thunkpos; if (!yymatchChar(G, ']')) goto l12; goto l8;
  2014. l12:; G->pos= yypos12; G->thunkpos= yythunkpos12;
  2015. } if (!yymatchDot(G)) goto l8;
  2016. l9:;
  2017. { int yypos10= G->pos, yythunkpos10= G->thunkpos;
  2018. { int yypos13= G->pos, yythunkpos13= G->thunkpos; if (!yy_Newline(G)) { goto l13; } goto l10;
  2019. l13:; G->pos= yypos13; G->thunkpos= yythunkpos13;
  2020. }
  2021. { int yypos14= G->pos, yythunkpos14= G->thunkpos; if (!yymatchChar(G, ']')) goto l14; goto l10;
  2022. l14:; G->pos= yypos14; G->thunkpos= yythunkpos14;
  2023. } if (!yymatchDot(G)) goto l10; goto l9;
  2024. l10:; G->pos= yypos10; G->thunkpos= yythunkpos10;
  2025. } if (!yymatchChar(G, ']')) goto l8;
  2026. yyprintf((stderr, " ok %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  2027. return 1;
  2028. l8:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2029. yyprintf((stderr, " fail %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  2030. return 0;
  2031. }
  2032. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G)
  2033. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2034. yyprintf((stderr, "%s\n", "ExtendedSpecialChar"));
  2035. { int yypos16= G->pos, yythunkpos16= G->thunkpos; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l17; if (!yymatchChar(G, '^')) goto l17; goto l16;
  2036. l17:; G->pos= yypos16; G->thunkpos= yythunkpos16; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MATH) )) goto l15; if (!yymatchChar(G, '$')) goto l15;
  2037. }
  2038. l16:;
  2039. yyprintf((stderr, " ok %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  2040. return 1;
  2041. l15:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2042. yyprintf((stderr, " fail %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  2043. return 0;
  2044. }
  2045. YY_RULE(int) yy_AlphanumericAscii(GREG *G)
  2046. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2047. 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 l18;
  2048. yyprintf((stderr, " ok %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  2049. return 1;
  2050. l18:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2051. yyprintf((stderr, " fail %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  2052. return 0;
  2053. }
  2054. YY_RULE(int) yy_Quoted(GREG *G)
  2055. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2056. yyprintf((stderr, "%s\n", "Quoted"));
  2057. { int yypos20= G->pos, yythunkpos20= G->thunkpos; if (!yymatchChar(G, '"')) goto l21;
  2058. l22:;
  2059. { int yypos23= G->pos, yythunkpos23= G->thunkpos;
  2060. { int yypos24= G->pos, yythunkpos24= G->thunkpos; if (!yymatchChar(G, '"')) goto l24; goto l23;
  2061. l24:; G->pos= yypos24; G->thunkpos= yythunkpos24;
  2062. } if (!yymatchDot(G)) goto l23; goto l22;
  2063. l23:; G->pos= yypos23; G->thunkpos= yythunkpos23;
  2064. } if (!yymatchChar(G, '"')) goto l21; goto l20;
  2065. l21:; G->pos= yypos20; G->thunkpos= yythunkpos20; if (!yymatchChar(G, '\'')) goto l19;
  2066. l25:;
  2067. { int yypos26= G->pos, yythunkpos26= G->thunkpos;
  2068. { int yypos27= G->pos, yythunkpos27= G->thunkpos; if (!yymatchChar(G, '\'')) goto l27; goto l26;
  2069. l27:; G->pos= yypos27; G->thunkpos= yythunkpos27;
  2070. } if (!yymatchDot(G)) goto l26; goto l25;
  2071. l26:; G->pos= yypos26; G->thunkpos= yythunkpos26;
  2072. } if (!yymatchChar(G, '\'')) goto l19;
  2073. }
  2074. l20:;
  2075. yyprintf((stderr, " ok %s @ %s\n", "Quoted", G->buf+G->pos));
  2076. return 1;
  2077. l19:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2078. yyprintf((stderr, " fail %s @ %s\n", "Quoted", G->buf+G->pos));
  2079. return 0;
  2080. }
  2081. YY_RULE(int) yy_HtmlTag(GREG *G)
  2082. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2083. yyprintf((stderr, "%s\n", "HtmlTag")); if (!yymatchChar(G, '<')) goto l28; if (!yy_Spnl(G)) { goto l28; }
  2084. { int yypos29= G->pos, yythunkpos29= G->thunkpos; if (!yymatchChar(G, '/')) goto l29; goto l30;
  2085. l29:; G->pos= yypos29; G->thunkpos= yythunkpos29;
  2086. }
  2087. l30:; if (!yy_AlphanumericAscii(G)) { goto l28; }
  2088. l31:;
  2089. { int yypos32= G->pos, yythunkpos32= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l32; } goto l31;
  2090. l32:; G->pos= yypos32; G->thunkpos= yythunkpos32;
  2091. } if (!yy_Spnl(G)) { goto l28; }
  2092. l33:;
  2093. { int yypos34= G->pos, yythunkpos34= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l34; } goto l33;
  2094. l34:; G->pos= yypos34; G->thunkpos= yythunkpos34;
  2095. }
  2096. { int yypos35= G->pos, yythunkpos35= G->thunkpos; if (!yymatchChar(G, '/')) goto l35; goto l36;
  2097. l35:; G->pos= yypos35; G->thunkpos= yythunkpos35;
  2098. }
  2099. l36:; if (!yy_Spnl(G)) { goto l28; } if (!yymatchChar(G, '>')) goto l28;
  2100. yyprintf((stderr, " ok %s @ %s\n", "HtmlTag", G->buf+G->pos));
  2101. return 1;
  2102. l28:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2103. yyprintf((stderr, " fail %s @ %s\n", "HtmlTag", G->buf+G->pos));
  2104. return 0;
  2105. }
  2106. YY_RULE(int) yy_MarkTagClose(GREG *G)
  2107. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2108. yyprintf((stderr, "%s\n", "MarkTagClose")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l37; if (!yy_LocMarker(G)) { goto l37; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '<')) goto l37; if (!yy_Spnl(G)) { goto l37; } if (!yymatchChar(G, '/')) goto l37;
  2109. { int yypos38= G->pos, yythunkpos38= G->thunkpos; if (!yymatchString(G, "mark")) goto l39; goto l38;
  2110. l39:; G->pos= yypos38; G->thunkpos= yythunkpos38; if (!yymatchString(G, "MARK")) goto l37;
  2111. }
  2112. l38:; if (!yy_Spnl(G)) { goto l37; } if (!yymatchChar(G, '>')) goto l37; yyText(G, G->begin, G->end); if (!(YY_END)) goto l37; yyDo(G, yy_1_MarkTagClose, G->begin, G->end);
  2113. yyprintf((stderr, " ok %s @ %s\n", "MarkTagClose", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2114. return 1;
  2115. l37:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2116. yyprintf((stderr, " fail %s @ %s\n", "MarkTagClose", G->buf+G->pos));
  2117. return 0;
  2118. }
  2119. YY_RULE(int) yy_MarkTagText(GREG *G)
  2120. {
  2121. yyprintf((stderr, "%s\n", "MarkTagText"));
  2122. l41:;
  2123. { int yypos42= G->pos, yythunkpos42= G->thunkpos;
  2124. { int yypos43= G->pos, yythunkpos43= G->thunkpos; if (!yy_MarkTagClose(G)) { goto l43; } goto l42;
  2125. l43:; G->pos= yypos43; G->thunkpos= yythunkpos43;
  2126. }
  2127. { int yypos44= G->pos, yythunkpos44= G->thunkpos; if (!yy_RawHtml(G)) { goto l45; } goto l44;
  2128. l45:; G->pos= yypos44; G->thunkpos= yythunkpos44; if (!yymatchDot(G)) goto l42;
  2129. }
  2130. l44:; goto l41;
  2131. l42:; G->pos= yypos42; G->thunkpos= yythunkpos42;
  2132. }
  2133. yyprintf((stderr, " ok %s @ %s\n", "MarkTagText", G->buf+G->pos));
  2134. return 1;
  2135. }
  2136. YY_RULE(int) yy_MarkTagOpen(GREG *G)
  2137. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2138. yyprintf((stderr, "%s\n", "MarkTagOpen")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l46; if (!yy_LocMarker(G)) { goto l46; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '<')) goto l46; if (!yy_Spnl(G)) { goto l46; }
  2139. { int yypos47= G->pos, yythunkpos47= G->thunkpos; if (!yymatchString(G, "mark")) goto l48; goto l47;
  2140. l48:; G->pos= yypos47; G->thunkpos= yythunkpos47; if (!yymatchString(G, "MARK")) goto l46;
  2141. }
  2142. l47:; if (!yy_Spnl(G)) { goto l46; }
  2143. l49:;
  2144. { int yypos50= G->pos, yythunkpos50= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l50; } goto l49;
  2145. l50:; G->pos= yypos50; G->thunkpos= yythunkpos50;
  2146. } if (!yymatchChar(G, '>')) goto l46; yyText(G, G->begin, G->end); if (!(YY_END)) goto l46; yyDo(G, yy_1_MarkTagOpen, G->begin, G->end);
  2147. yyprintf((stderr, " ok %s @ %s\n", "MarkTagOpen", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2148. return 1;
  2149. l46:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2150. yyprintf((stderr, " fail %s @ %s\n", "MarkTagOpen", G->buf+G->pos));
  2151. return 0;
  2152. }
  2153. YY_RULE(int) yy_Ticks5(GREG *G)
  2154. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2155. yyprintf((stderr, "%s\n", "Ticks5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l51; if (!yymatchString(G, "`````")) goto l51; yyText(G, G->begin, G->end); if (!(YY_END)) goto l51;
  2156. { int yypos52= G->pos, yythunkpos52= G->thunkpos; if (!yymatchChar(G, '`')) goto l52; goto l51;
  2157. l52:; G->pos= yypos52; G->thunkpos= yythunkpos52;
  2158. } yyDo(G, yy_1_Ticks5, G->begin, G->end);
  2159. yyprintf((stderr, " ok %s @ %s\n", "Ticks5", G->buf+G->pos));
  2160. return 1;
  2161. l51:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2162. yyprintf((stderr, " fail %s @ %s\n", "Ticks5", G->buf+G->pos));
  2163. return 0;
  2164. }
  2165. YY_RULE(int) yy_Ticks4(GREG *G)
  2166. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2167. yyprintf((stderr, "%s\n", "Ticks4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l53; if (!yymatchString(G, "````")) goto l53; yyText(G, G->begin, G->end); if (!(YY_END)) goto l53;
  2168. { int yypos54= G->pos, yythunkpos54= G->thunkpos; if (!yymatchChar(G, '`')) goto l54; goto l53;
  2169. l54:; G->pos= yypos54; G->thunkpos= yythunkpos54;
  2170. } yyDo(G, yy_1_Ticks4, G->begin, G->end);
  2171. yyprintf((stderr, " ok %s @ %s\n", "Ticks4", G->buf+G->pos));
  2172. return 1;
  2173. l53:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2174. yyprintf((stderr, " fail %s @ %s\n", "Ticks4", G->buf+G->pos));
  2175. return 0;
  2176. }
  2177. YY_RULE(int) yy_Ticks3(GREG *G)
  2178. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2179. yyprintf((stderr, "%s\n", "Ticks3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l55; if (!yymatchString(G, "```")) goto l55; yyText(G, G->begin, G->end); if (!(YY_END)) goto l55;
  2180. { int yypos56= G->pos, yythunkpos56= G->thunkpos; if (!yymatchChar(G, '`')) goto l56; goto l55;
  2181. l56:; G->pos= yypos56; G->thunkpos= yythunkpos56;
  2182. } yyDo(G, yy_1_Ticks3, G->begin, G->end);
  2183. yyprintf((stderr, " ok %s @ %s\n", "Ticks3", G->buf+G->pos));
  2184. return 1;
  2185. l55:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2186. yyprintf((stderr, " fail %s @ %s\n", "Ticks3", G->buf+G->pos));
  2187. return 0;
  2188. }
  2189. YY_RULE(int) yy_Ticks2(GREG *G)
  2190. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2191. yyprintf((stderr, "%s\n", "Ticks2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l57; if (!yymatchString(G, "``")) goto l57; yyText(G, G->begin, G->end); if (!(YY_END)) goto l57;
  2192. { int yypos58= G->pos, yythunkpos58= G->thunkpos; if (!yymatchChar(G, '`')) goto l58; goto l57;
  2193. l58:; G->pos= yypos58; G->thunkpos= yythunkpos58;
  2194. } yyDo(G, yy_1_Ticks2, G->begin, G->end);
  2195. yyprintf((stderr, " ok %s @ %s\n", "Ticks2", G->buf+G->pos));
  2196. return 1;
  2197. l57:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2198. yyprintf((stderr, " fail %s @ %s\n", "Ticks2", G->buf+G->pos));
  2199. return 0;
  2200. }
  2201. YY_RULE(int) yy_Ticks1(GREG *G)
  2202. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2203. yyprintf((stderr, "%s\n", "Ticks1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l59; if (!yymatchChar(G, '`')) goto l59; yyText(G, G->begin, G->end); if (!(YY_END)) goto l59;
  2204. { int yypos60= G->pos, yythunkpos60= G->thunkpos; if (!yymatchChar(G, '`')) goto l60; goto l59;
  2205. l60:; G->pos= yypos60; G->thunkpos= yythunkpos60;
  2206. } yyDo(G, yy_1_Ticks1, G->begin, G->end);
  2207. yyprintf((stderr, " ok %s @ %s\n", "Ticks1", G->buf+G->pos));
  2208. return 1;
  2209. l59:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2210. yyprintf((stderr, " fail %s @ %s\n", "Ticks1", G->buf+G->pos));
  2211. return 0;
  2212. }
  2213. YY_RULE(int) yy_SkipBlock(GREG *G)
  2214. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2215. yyprintf((stderr, "%s\n", "SkipBlock"));
  2216. { int yypos62= G->pos, yythunkpos62= G->thunkpos;
  2217. { int yypos66= G->pos, yythunkpos66= G->thunkpos; if (!yy_BlankLine(G)) { goto l66; } goto l63;
  2218. l66:; G->pos= yypos66; G->thunkpos= yythunkpos66;
  2219. } if (!yy_RawLine(G)) { goto l63; }
  2220. l64:;
  2221. { int yypos65= G->pos, yythunkpos65= G->thunkpos;
  2222. { int yypos67= G->pos, yythunkpos67= G->thunkpos; if (!yy_BlankLine(G)) { goto l67; } goto l65;
  2223. l67:; G->pos= yypos67; G->thunkpos= yythunkpos67;
  2224. } if (!yy_RawLine(G)) { goto l65; } goto l64;
  2225. l65:; G->pos= yypos65; G->thunkpos= yythunkpos65;
  2226. }
  2227. l68:;
  2228. { int yypos69= G->pos, yythunkpos69= G->thunkpos; if (!yy_BlankLine(G)) { goto l69; } goto l68;
  2229. l69:; G->pos= yypos69; G->thunkpos= yythunkpos69;
  2230. } goto l62;
  2231. l63:; G->pos= yypos62; G->thunkpos= yythunkpos62; if (!yy_BlankLine(G)) { goto l61; }
  2232. l70:;
  2233. { int yypos71= G->pos, yythunkpos71= G->thunkpos; if (!yy_BlankLine(G)) { goto l71; } goto l70;
  2234. l71:; G->pos= yypos71; G->thunkpos= yythunkpos71;
  2235. }
  2236. }
  2237. l62:;
  2238. yyprintf((stderr, " ok %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2239. return 1;
  2240. l61:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2241. yyprintf((stderr, " fail %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2242. return 0;
  2243. }
  2244. YY_RULE(int) yy_References(GREG *G)
  2245. {
  2246. yyprintf((stderr, "%s\n", "References"));
  2247. l73:;
  2248. { int yypos74= G->pos, yythunkpos74= G->thunkpos;
  2249. { int yypos75= G->pos, yythunkpos75= G->thunkpos; if (!yy_Reference(G)) { goto l76; } goto l75;
  2250. l76:; G->pos= yypos75; G->thunkpos= yythunkpos75; if (!yy_SkipBlock(G)) { goto l74; }
  2251. }
  2252. l75:; goto l73;
  2253. l74:; G->pos= yypos74; G->thunkpos= yythunkpos74;
  2254. }
  2255. yyprintf((stderr, " ok %s @ %s\n", "References", G->buf+G->pos));
  2256. return 1;
  2257. }
  2258. YY_RULE(int) yy_EmptyTitle(GREG *G)
  2259. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2260. yyprintf((stderr, "%s\n", "EmptyTitle")); if (!yymatchString(G, "")) goto l77;
  2261. yyprintf((stderr, " ok %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2262. return 1;
  2263. l77:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2264. yyprintf((stderr, " fail %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2265. return 0;
  2266. }
  2267. YY_RULE(int) yy_RefTitleParens(GREG *G)
  2268. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2269. yyprintf((stderr, "%s\n", "RefTitleParens")); if (!yy_Spnl(G)) { goto l78; } if (!yymatchChar(G, '(')) goto l78;
  2270. l79:;
  2271. { int yypos80= G->pos, yythunkpos80= G->thunkpos;
  2272. { int yypos81= G->pos, yythunkpos81= G->thunkpos;
  2273. { int yypos82= G->pos, yythunkpos82= G->thunkpos; if (!yymatchChar(G, ')')) goto l83; if (!yy_Sp(G)) { goto l83; } if (!yy_Newline(G)) { goto l83; } goto l82;
  2274. l83:; G->pos= yypos82; G->thunkpos= yythunkpos82; if (!yy_Newline(G)) { goto l81; }
  2275. }
  2276. l82:; goto l80;
  2277. l81:; G->pos= yypos81; G->thunkpos= yythunkpos81;
  2278. } if (!yymatchDot(G)) goto l80; goto l79;
  2279. l80:; G->pos= yypos80; G->thunkpos= yythunkpos80;
  2280. } if (!yymatchChar(G, ')')) goto l78;
  2281. yyprintf((stderr, " ok %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2282. return 1;
  2283. l78:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2284. yyprintf((stderr, " fail %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2285. return 0;
  2286. }
  2287. YY_RULE(int) yy_RefTitleDouble(GREG *G)
  2288. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2289. yyprintf((stderr, "%s\n", "RefTitleDouble")); if (!yy_Spnl(G)) { goto l84; } if (!yymatchChar(G, '"')) goto l84;
  2290. l85:;
  2291. { int yypos86= G->pos, yythunkpos86= G->thunkpos;
  2292. { int yypos87= G->pos, yythunkpos87= G->thunkpos;
  2293. { int yypos88= G->pos, yythunkpos88= G->thunkpos; if (!yymatchChar(G, '"')) goto l89; if (!yy_Sp(G)) { goto l89; } if (!yy_Newline(G)) { goto l89; } goto l88;
  2294. l89:; G->pos= yypos88; G->thunkpos= yythunkpos88; if (!yy_Newline(G)) { goto l87; }
  2295. }
  2296. l88:; goto l86;
  2297. l87:; G->pos= yypos87; G->thunkpos= yythunkpos87;
  2298. } if (!yymatchDot(G)) goto l86; goto l85;
  2299. l86:; G->pos= yypos86; G->thunkpos= yythunkpos86;
  2300. } if (!yymatchChar(G, '"')) goto l84;
  2301. yyprintf((stderr, " ok %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2302. return 1;
  2303. l84:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2304. yyprintf((stderr, " fail %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2305. return 0;
  2306. }
  2307. YY_RULE(int) yy_RefTitleSingle(GREG *G)
  2308. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2309. yyprintf((stderr, "%s\n", "RefTitleSingle")); if (!yy_Spnl(G)) { goto l90; } if (!yymatchChar(G, '\'')) goto l90;
  2310. l91:;
  2311. { int yypos92= G->pos, yythunkpos92= G->thunkpos;
  2312. { int yypos93= G->pos, yythunkpos93= G->thunkpos;
  2313. { int yypos94= G->pos, yythunkpos94= G->thunkpos; if (!yymatchChar(G, '\'')) goto l95; if (!yy_Sp(G)) { goto l95; } if (!yy_Newline(G)) { goto l95; } goto l94;
  2314. l95:; G->pos= yypos94; G->thunkpos= yythunkpos94; if (!yy_Newline(G)) { goto l93; }
  2315. }
  2316. l94:; goto l92;
  2317. l93:; G->pos= yypos93; G->thunkpos= yythunkpos93;
  2318. } if (!yymatchDot(G)) goto l92; goto l91;
  2319. l92:; G->pos= yypos92; G->thunkpos= yythunkpos92;
  2320. } if (!yymatchChar(G, '\'')) goto l90;
  2321. yyprintf((stderr, " ok %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2322. return 1;
  2323. l90:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2324. yyprintf((stderr, " fail %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2325. return 0;
  2326. }
  2327. YY_RULE(int) yy_LabelInline(GREG *G)
  2328. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2329. yyprintf((stderr, "%s\n", "LabelInline"));
  2330. { int yypos97= G->pos, yythunkpos97= G->thunkpos; if (!yy_Str(G)) { goto l98; } goto l97;
  2331. l98:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Endline(G)) { goto l99; } goto l97;
  2332. l99:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Space(G)) { goto l100; } goto l97;
  2333. l100:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_RawHtml(G)) { goto l101; } goto l97;
  2334. l101:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Entity(G)) { goto l102; } goto l97;
  2335. l102:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_EscapedChar(G)) { goto l103; } goto l97;
  2336. l103:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Symbol(G)) { goto l96; }
  2337. }
  2338. l97:;
  2339. yyprintf((stderr, " ok %s @ %s\n", "LabelInline", G->buf+G->pos));
  2340. return 1;
  2341. l96:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2342. yyprintf((stderr, " fail %s @ %s\n", "LabelInline", G->buf+G->pos));
  2343. return 0;
  2344. }
  2345. YY_RULE(int) yy_RefTitle(GREG *G)
  2346. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2347. yyprintf((stderr, "%s\n", "RefTitle"));
  2348. { int yypos105= G->pos, yythunkpos105= G->thunkpos; if (!yy_RefTitleSingle(G)) { goto l106; } goto l105;
  2349. l106:; G->pos= yypos105; G->thunkpos= yythunkpos105; if (!yy_RefTitleDouble(G)) { goto l107; } goto l105;
  2350. l107:; G->pos= yypos105; G->thunkpos= yythunkpos105; if (!yy_RefTitleParens(G)) { goto l108; } goto l105;
  2351. l108:; G->pos= yypos105; G->thunkpos= yythunkpos105; if (!yy_EmptyTitle(G)) { goto l104; }
  2352. }
  2353. l105:;
  2354. yyprintf((stderr, " ok %s @ %s\n", "RefTitle", G->buf+G->pos));
  2355. return 1;
  2356. l104:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2357. yyprintf((stderr, " fail %s @ %s\n", "RefTitle", G->buf+G->pos));
  2358. return 0;
  2359. }
  2360. YY_RULE(int) yy_RefSrc(GREG *G)
  2361. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2362. yyprintf((stderr, "%s\n", "RefSrc")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l109; if (!yy_Nonspacechar(G)) { goto l109; }
  2363. l110:;
  2364. { int yypos111= G->pos, yythunkpos111= G->thunkpos; if (!yy_Nonspacechar(G)) { goto l111; } goto l110;
  2365. l111:; G->pos= yypos111; G->thunkpos= yythunkpos111;
  2366. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l109; yyDo(G, yy_1_RefSrc, G->begin, G->end);
  2367. yyprintf((stderr, " ok %s @ %s\n", "RefSrc", G->buf+G->pos));
  2368. return 1;
  2369. l109:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2370. yyprintf((stderr, " fail %s @ %s\n", "RefSrc", G->buf+G->pos));
  2371. return 0;
  2372. }
  2373. YY_RULE(int) yy_AutoLinkEmail(GREG *G)
  2374. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2375. yyprintf((stderr, "%s\n", "AutoLinkEmail")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l112; if (!yy_LocMarker(G)) { goto l112; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '<')) goto l112;
  2376. { int yypos113= G->pos, yythunkpos113= G->thunkpos; if (!yymatchString(G, "mailto:")) goto l113; goto l114;
  2377. l113:; G->pos= yypos113; G->thunkpos= yythunkpos113;
  2378. }
  2379. l114:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l112; 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 l112;
  2380. l115:;
  2381. { int yypos116= G->pos, yythunkpos116= 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 l116; goto l115;
  2382. l116:; G->pos= yypos116; G->thunkpos= yythunkpos116;
  2383. } if (!yymatchChar(G, '@')) goto l112;
  2384. { int yypos119= G->pos, yythunkpos119= G->thunkpos; if (!yy_Newline(G)) { goto l119; } goto l112;
  2385. l119:; G->pos= yypos119; G->thunkpos= yythunkpos119;
  2386. }
  2387. { int yypos120= G->pos, yythunkpos120= G->thunkpos; if (!yymatchChar(G, '>')) goto l120; goto l112;
  2388. l120:; G->pos= yypos120; G->thunkpos= yythunkpos120;
  2389. } if (!yymatchDot(G)) goto l112;
  2390. l117:;
  2391. { int yypos118= G->pos, yythunkpos118= G->thunkpos;
  2392. { int yypos121= G->pos, yythunkpos121= G->thunkpos; if (!yy_Newline(G)) { goto l121; } goto l118;
  2393. l121:; G->pos= yypos121; G->thunkpos= yythunkpos121;
  2394. }
  2395. { int yypos122= G->pos, yythunkpos122= G->thunkpos; if (!yymatchChar(G, '>')) goto l122; goto l118;
  2396. l122:; G->pos= yypos122; G->thunkpos= yythunkpos122;
  2397. } if (!yymatchDot(G)) goto l118; goto l117;
  2398. l118:; G->pos= yypos118; G->thunkpos= yythunkpos118;
  2399. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l112; yyDo(G, yy_2_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '>')) goto l112; yyText(G, G->begin, G->end); if (!(YY_END)) goto l112; yyDo(G, yy_3_AutoLinkEmail, G->begin, G->end);
  2400. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkEmail", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2401. return 1;
  2402. l112:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2403. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkEmail", G->buf+G->pos));
  2404. return 0;
  2405. }
  2406. YY_RULE(int) yy_AutoLinkUrl(GREG *G)
  2407. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2408. yyprintf((stderr, "%s\n", "AutoLinkUrl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l123; if (!yy_LocMarker(G)) { goto l123; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '<')) goto l123; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l123; 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 l123;
  2409. l124:;
  2410. { int yypos125= G->pos, yythunkpos125= 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 l125; goto l124;
  2411. l125:; G->pos= yypos125; G->thunkpos= yythunkpos125;
  2412. } if (!yymatchString(G, "://")) goto l123;
  2413. { int yypos128= G->pos, yythunkpos128= G->thunkpos; if (!yy_Newline(G)) { goto l128; } goto l123;
  2414. l128:; G->pos= yypos128; G->thunkpos= yythunkpos128;
  2415. }
  2416. { int yypos129= G->pos, yythunkpos129= G->thunkpos; if (!yymatchChar(G, '>')) goto l129; goto l123;
  2417. l129:; G->pos= yypos129; G->thunkpos= yythunkpos129;
  2418. } if (!yymatchDot(G)) goto l123;
  2419. l126:;
  2420. { int yypos127= G->pos, yythunkpos127= G->thunkpos;
  2421. { int yypos130= G->pos, yythunkpos130= G->thunkpos; if (!yy_Newline(G)) { goto l130; } goto l127;
  2422. l130:; G->pos= yypos130; G->thunkpos= yythunkpos130;
  2423. }
  2424. { int yypos131= G->pos, yythunkpos131= G->thunkpos; if (!yymatchChar(G, '>')) goto l131; goto l127;
  2425. l131:; G->pos= yypos131; G->thunkpos= yythunkpos131;
  2426. } if (!yymatchDot(G)) goto l127; goto l126;
  2427. l127:; G->pos= yypos127; G->thunkpos= yythunkpos127;
  2428. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l123; yyDo(G, yy_2_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '>')) goto l123; yyText(G, G->begin, G->end); if (!(YY_END)) goto l123; yyDo(G, yy_3_AutoLinkUrl, G->begin, G->end);
  2429. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkUrl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2430. return 1;
  2431. l123:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2432. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkUrl", G->buf+G->pos));
  2433. return 0;
  2434. }
  2435. YY_RULE(int) yy_ImageSizeHeight(GREG *G)
  2436. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2437. yyprintf((stderr, "%s\n", "ImageSizeHeight")); if (!yymatchString(G, "=x")) goto l132; 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 l132;
  2438. l133:;
  2439. { int yypos134= G->pos, yythunkpos134= 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 l134; goto l133;
  2440. l134:; G->pos= yypos134; G->thunkpos= yythunkpos134;
  2441. }
  2442. yyprintf((stderr, " ok %s @ %s\n", "ImageSizeHeight", G->buf+G->pos));
  2443. return 1;
  2444. l132:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2445. yyprintf((stderr, " fail %s @ %s\n", "ImageSizeHeight", G->buf+G->pos));
  2446. return 0;
  2447. }
  2448. YY_RULE(int) yy_ImageSizeWidth(GREG *G)
  2449. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2450. yyprintf((stderr, "%s\n", "ImageSizeWidth")); if (!yymatchChar(G, '=')) goto l135; 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 l135;
  2451. l136:;
  2452. { int yypos137= G->pos, yythunkpos137= 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 l137; goto l136;
  2453. l137:; G->pos= yypos137; G->thunkpos= yythunkpos137;
  2454. } if (!yymatchChar(G, 'x')) goto l135;
  2455. yyprintf((stderr, " ok %s @ %s\n", "ImageSizeWidth", G->buf+G->pos));
  2456. return 1;
  2457. l135:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2458. yyprintf((stderr, " fail %s @ %s\n", "ImageSizeWidth", G->buf+G->pos));
  2459. return 0;
  2460. }
  2461. YY_RULE(int) yy_ImageSizeComplete(GREG *G)
  2462. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2463. yyprintf((stderr, "%s\n", "ImageSizeComplete")); if (!yymatchChar(G, '=')) goto l138; 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 l138;
  2464. l139:;
  2465. { int yypos140= G->pos, yythunkpos140= 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 l140; goto l139;
  2466. l140:; G->pos= yypos140; G->thunkpos= yythunkpos140;
  2467. } if (!yymatchChar(G, 'x')) goto l138; 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 l138;
  2468. l141:;
  2469. { int yypos142= G->pos, yythunkpos142= 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 l142; goto l141;
  2470. l142:; G->pos= yypos142; G->thunkpos= yythunkpos142;
  2471. }
  2472. yyprintf((stderr, " ok %s @ %s\n", "ImageSizeComplete", G->buf+G->pos));
  2473. return 1;
  2474. l138:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2475. yyprintf((stderr, " fail %s @ %s\n", "ImageSizeComplete", G->buf+G->pos));
  2476. return 0;
  2477. }
  2478. YY_RULE(int) yy_TitleDoubleExt(GREG *G)
  2479. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2480. yyprintf((stderr, "%s\n", "TitleDoubleExt")); if (!yymatchChar(G, '"')) goto l143;
  2481. l144:;
  2482. { int yypos145= G->pos, yythunkpos145= G->thunkpos;
  2483. { int yypos146= G->pos, yythunkpos146= G->thunkpos;
  2484. { int yypos147= G->pos, yythunkpos147= G->thunkpos; if (!yymatchChar(G, '"')) goto l148; goto l147;
  2485. l148:; G->pos= yypos147; G->thunkpos= yythunkpos147; if (!yy_Newline(G)) { goto l146; }
  2486. }
  2487. l147:; goto l145;
  2488. l146:; G->pos= yypos146; G->thunkpos= yythunkpos146;
  2489. } if (!yymatchDot(G)) goto l145; goto l144;
  2490. l145:; G->pos= yypos145; G->thunkpos= yythunkpos145;
  2491. } if (!yymatchChar(G, '"')) goto l143;
  2492. yyprintf((stderr, " ok %s @ %s\n", "TitleDoubleExt", G->buf+G->pos));
  2493. return 1;
  2494. l143:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2495. yyprintf((stderr, " fail %s @ %s\n", "TitleDoubleExt", G->buf+G->pos));
  2496. return 0;
  2497. }
  2498. YY_RULE(int) yy_TitleSingleExt(GREG *G)
  2499. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2500. yyprintf((stderr, "%s\n", "TitleSingleExt")); if (!yymatchChar(G, '\'')) goto l149;
  2501. l150:;
  2502. { int yypos151= G->pos, yythunkpos151= G->thunkpos;
  2503. { int yypos152= G->pos, yythunkpos152= G->thunkpos;
  2504. { int yypos153= G->pos, yythunkpos153= G->thunkpos; if (!yymatchChar(G, '\'')) goto l154; goto l153;
  2505. l154:; G->pos= yypos153; G->thunkpos= yythunkpos153; if (!yy_Newline(G)) { goto l152; }
  2506. }
  2507. l153:; goto l151;
  2508. l152:; G->pos= yypos152; G->thunkpos= yythunkpos152;
  2509. } if (!yymatchDot(G)) goto l151; goto l150;
  2510. l151:; G->pos= yypos151; G->thunkpos= yythunkpos151;
  2511. } if (!yymatchChar(G, '\'')) goto l149;
  2512. yyprintf((stderr, " ok %s @ %s\n", "TitleSingleExt", G->buf+G->pos));
  2513. return 1;
  2514. l149:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2515. yyprintf((stderr, " fail %s @ %s\n", "TitleSingleExt", G->buf+G->pos));
  2516. return 0;
  2517. }
  2518. YY_RULE(int) yy_TitleDouble(GREG *G)
  2519. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2520. yyprintf((stderr, "%s\n", "TitleDouble")); if (!yymatchChar(G, '"')) goto l155;
  2521. l156:;
  2522. { int yypos157= G->pos, yythunkpos157= G->thunkpos;
  2523. { int yypos158= G->pos, yythunkpos158= G->thunkpos; if (!yymatchChar(G, '"')) goto l158; if (!yy_Sp(G)) { goto l158; }
  2524. { int yypos159= G->pos, yythunkpos159= G->thunkpos; if (!yymatchChar(G, ')')) goto l160; goto l159;
  2525. l160:; G->pos= yypos159; G->thunkpos= yythunkpos159; if (!yy_Newline(G)) { goto l158; }
  2526. }
  2527. l159:; goto l157;
  2528. l158:; G->pos= yypos158; G->thunkpos= yythunkpos158;
  2529. } if (!yymatchDot(G)) goto l157; goto l156;
  2530. l157:; G->pos= yypos157; G->thunkpos= yythunkpos157;
  2531. } if (!yymatchChar(G, '"')) goto l155;
  2532. yyprintf((stderr, " ok %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2533. return 1;
  2534. l155:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2535. yyprintf((stderr, " fail %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2536. return 0;
  2537. }
  2538. YY_RULE(int) yy_TitleSingle(GREG *G)
  2539. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2540. yyprintf((stderr, "%s\n", "TitleSingle")); if (!yymatchChar(G, '\'')) goto l161;
  2541. l162:;
  2542. { int yypos163= G->pos, yythunkpos163= G->thunkpos;
  2543. { int yypos164= G->pos, yythunkpos164= G->thunkpos; if (!yymatchChar(G, '\'')) goto l164; if (!yy_Sp(G)) { goto l164; }
  2544. { int yypos165= G->pos, yythunkpos165= G->thunkpos; if (!yymatchChar(G, ')')) goto l166; goto l165;
  2545. l166:; G->pos= yypos165; G->thunkpos= yythunkpos165; if (!yy_Newline(G)) { goto l164; }
  2546. }
  2547. l165:; goto l163;
  2548. l164:; G->pos= yypos164; G->thunkpos= yythunkpos164;
  2549. } if (!yymatchDot(G)) goto l163; goto l162;
  2550. l163:; G->pos= yypos163; G->thunkpos= yythunkpos163;
  2551. } if (!yymatchChar(G, '\'')) goto l161;
  2552. yyprintf((stderr, " ok %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2553. return 1;
  2554. l161:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2555. yyprintf((stderr, " fail %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2556. return 0;
  2557. }
  2558. YY_RULE(int) yy_SourceContents(GREG *G)
  2559. {
  2560. yyprintf((stderr, "%s\n", "SourceContents"));
  2561. l168:;
  2562. { int yypos169= G->pos, yythunkpos169= G->thunkpos;
  2563. { int yypos170= G->pos, yythunkpos170= G->thunkpos;
  2564. { int yypos174= G->pos, yythunkpos174= G->thunkpos; if (!yymatchChar(G, '(')) goto l174; goto l171;
  2565. l174:; G->pos= yypos174; G->thunkpos= yythunkpos174;
  2566. }
  2567. { int yypos175= G->pos, yythunkpos175= G->thunkpos; if (!yymatchChar(G, ')')) goto l175; goto l171;
  2568. l175:; G->pos= yypos175; G->thunkpos= yythunkpos175;
  2569. }
  2570. { int yypos176= G->pos, yythunkpos176= G->thunkpos; if (!yymatchChar(G, '>')) goto l176; goto l171;
  2571. l176:; G->pos= yypos176; G->thunkpos= yythunkpos176;
  2572. } if (!yy_Nonspacechar(G)) { goto l171; }
  2573. l172:;
  2574. { int yypos173= G->pos, yythunkpos173= G->thunkpos;
  2575. { int yypos177= G->pos, yythunkpos177= G->thunkpos; if (!yymatchChar(G, '(')) goto l177; goto l173;
  2576. l177:; G->pos= yypos177; G->thunkpos= yythunkpos177;
  2577. }
  2578. { int yypos178= G->pos, yythunkpos178= G->thunkpos; if (!yymatchChar(G, ')')) goto l178; goto l173;
  2579. l178:; G->pos= yypos178; G->thunkpos= yythunkpos178;
  2580. }
  2581. { int yypos179= G->pos, yythunkpos179= G->thunkpos; if (!yymatchChar(G, '>')) goto l179; goto l173;
  2582. l179:; G->pos= yypos179; G->thunkpos= yythunkpos179;
  2583. } if (!yy_Nonspacechar(G)) { goto l173; } goto l172;
  2584. l173:; G->pos= yypos173; G->thunkpos= yythunkpos173;
  2585. } goto l170;
  2586. l171:; G->pos= yypos170; G->thunkpos= yythunkpos170; if (!yymatchChar(G, '(')) goto l169; if (!yy_SourceContents(G)) { goto l169; } if (!yymatchChar(G, ')')) goto l169;
  2587. }
  2588. l170:; goto l168;
  2589. l169:; G->pos= yypos169; G->thunkpos= yythunkpos169;
  2590. }
  2591. yyprintf((stderr, " ok %s @ %s\n", "SourceContents", G->buf+G->pos));
  2592. return 1;
  2593. }
  2594. YY_RULE(int) yy_ImageSize(GREG *G)
  2595. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2596. yyprintf((stderr, "%s\n", "ImageSize"));
  2597. { int yypos181= G->pos, yythunkpos181= G->thunkpos; if (!yy_ImageSizeComplete(G)) { goto l182; } goto l181;
  2598. l182:; G->pos= yypos181; G->thunkpos= yythunkpos181; if (!yy_ImageSizeWidth(G)) { goto l183; } goto l181;
  2599. l183:; G->pos= yypos181; G->thunkpos= yythunkpos181; if (!yy_ImageSizeHeight(G)) { goto l184; } goto l181;
  2600. l184:; G->pos= yypos181; G->thunkpos= yythunkpos181; if (!yymatchString(G, "")) goto l180;
  2601. }
  2602. l181:;
  2603. yyprintf((stderr, " ok %s @ %s\n", "ImageSize", G->buf+G->pos));
  2604. return 1;
  2605. l180:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2606. yyprintf((stderr, " fail %s @ %s\n", "ImageSize", G->buf+G->pos));
  2607. return 0;
  2608. }
  2609. YY_RULE(int) yy_TitleExt(GREG *G)
  2610. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2611. yyprintf((stderr, "%s\n", "TitleExt"));
  2612. { int yypos186= G->pos, yythunkpos186= G->thunkpos; if (!yy_TitleSingleExt(G)) { goto l187; } goto l186;
  2613. l187:; G->pos= yypos186; G->thunkpos= yythunkpos186; if (!yy_TitleDoubleExt(G)) { goto l188; } goto l186;
  2614. l188:; G->pos= yypos186; G->thunkpos= yythunkpos186; if (!yymatchString(G, "")) goto l185;
  2615. }
  2616. l186:;
  2617. yyprintf((stderr, " ok %s @ %s\n", "TitleExt", G->buf+G->pos));
  2618. return 1;
  2619. l185:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2620. yyprintf((stderr, " fail %s @ %s\n", "TitleExt", G->buf+G->pos));
  2621. return 0;
  2622. }
  2623. YY_RULE(int) yy_Title(GREG *G)
  2624. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2625. yyprintf((stderr, "%s\n", "Title"));
  2626. { int yypos190= G->pos, yythunkpos190= G->thunkpos; if (!yy_TitleSingle(G)) { goto l191; } goto l190;
  2627. l191:; G->pos= yypos190; G->thunkpos= yythunkpos190; if (!yy_TitleDouble(G)) { goto l192; } goto l190;
  2628. l192:; G->pos= yypos190; G->thunkpos= yythunkpos190; if (!yymatchString(G, "")) goto l189;
  2629. }
  2630. l190:;
  2631. yyprintf((stderr, " ok %s @ %s\n", "Title", G->buf+G->pos));
  2632. return 1;
  2633. l189:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2634. yyprintf((stderr, " fail %s @ %s\n", "Title", G->buf+G->pos));
  2635. return 0;
  2636. }
  2637. YY_RULE(int) yy_Source(GREG *G)
  2638. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2639. yyprintf((stderr, "%s\n", "Source")); yyDo(G, yy_1_Source, G->begin, G->end);
  2640. { int yypos194= G->pos, yythunkpos194= G->thunkpos; if (!yymatchChar(G, '<')) goto l195; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l195; if (!yy_SourceContents(G)) { goto l195; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l195; yyDo(G, yy_2_Source, G->begin, G->end); if (!yymatchChar(G, '>')) goto l195; goto l194;
  2641. l195:; G->pos= yypos194; G->thunkpos= yythunkpos194; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l193; if (!yy_SourceContents(G)) { goto l193; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l193; yyDo(G, yy_3_Source, G->begin, G->end);
  2642. }
  2643. l194:;
  2644. yyprintf((stderr, " ok %s @ %s\n", "Source", G->buf+G->pos));
  2645. return 1;
  2646. l193:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2647. yyprintf((stderr, " fail %s @ %s\n", "Source", G->buf+G->pos));
  2648. return 0;
  2649. }
  2650. YY_RULE(int) yy_Label(GREG *G)
  2651. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2652. yyprintf((stderr, "%s\n", "Label")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l196; if (!yy_LocMarker(G)) { goto l196; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '[')) goto l196;
  2653. { int yypos197= G->pos, yythunkpos197= G->thunkpos;
  2654. { int yypos199= G->pos, yythunkpos199= G->thunkpos; if (!yymatchChar(G, '^')) goto l199; goto l198;
  2655. l199:; G->pos= yypos199; G->thunkpos= yythunkpos199;
  2656. } yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l198; goto l197;
  2657. l198:; G->pos= yypos197; G->thunkpos= yythunkpos197;
  2658. { int yypos200= G->pos, yythunkpos200= G->thunkpos; if (!yymatchDot(G)) goto l196; G->pos= yypos200; G->thunkpos= yythunkpos200;
  2659. } yyText(G, G->begin, G->end); if (!( !EXT(pmh_EXT_NOTES) )) goto l196;
  2660. }
  2661. l197:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l196;
  2662. l201:;
  2663. { int yypos202= G->pos, yythunkpos202= G->thunkpos;
  2664. { int yypos203= G->pos, yythunkpos203= G->thunkpos; if (!yymatchChar(G, ']')) goto l203; goto l202;
  2665. l203:; G->pos= yypos203; G->thunkpos= yythunkpos203;
  2666. }
  2667. { int yypos204= G->pos, yythunkpos204= G->thunkpos; if (!yymatchChar(G, '[')) goto l204; goto l202;
  2668. l204:; G->pos= yypos204; G->thunkpos= yythunkpos204;
  2669. } if (!yy_LabelInline(G)) { goto l202; } goto l201;
  2670. l202:; G->pos= yypos202; G->thunkpos= yythunkpos202;
  2671. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l196; yyDo(G, yy_1_Label, G->begin, G->end); if (!yymatchChar(G, ']')) goto l196; yyText(G, G->begin, G->end); if (!(YY_END)) goto l196; yyDo(G, yy_2_Label, G->begin, G->end);
  2672. yyprintf((stderr, " ok %s @ %s\n", "Label", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2673. return 1;
  2674. l196:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2675. yyprintf((stderr, " fail %s @ %s\n", "Label", G->buf+G->pos));
  2676. return 0;
  2677. }
  2678. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G)
  2679. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2680. yyprintf((stderr, "%s\n", "ReferenceLinkSingle")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l205; if (!yy_Label(G)) { goto l205; } yyDo(G, yySet, -1, 0);
  2681. { int yypos206= G->pos, yythunkpos206= G->thunkpos; if (!yy_Spnl(G)) { goto l206; } if (!yymatchString(G, "[]")) goto l206; goto l207;
  2682. l206:; G->pos= yypos206; G->thunkpos= yythunkpos206;
  2683. }
  2684. l207:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l205; yyDo(G, yy_1_ReferenceLinkSingle, G->begin, G->end);
  2685. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2686. return 1;
  2687. l205:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2688. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos));
  2689. return 0;
  2690. }
  2691. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G)
  2692. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2693. yyprintf((stderr, "%s\n", "ReferenceLinkDouble")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l208; if (!yy_Label(G)) { goto l208; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l208; }
  2694. { int yypos209= G->pos, yythunkpos209= G->thunkpos; if (!yymatchString(G, "[]")) goto l209; goto l208;
  2695. l209:; G->pos= yypos209; G->thunkpos= yythunkpos209;
  2696. } if (!yy_Label(G)) { goto l208; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_END)) goto l208; yyDo(G, yy_1_ReferenceLinkDouble, G->begin, G->end);
  2697. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2698. return 1;
  2699. l208:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2700. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos));
  2701. return 0;
  2702. }
  2703. YY_RULE(int) yy_AutoLink(GREG *G)
  2704. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2705. yyprintf((stderr, "%s\n", "AutoLink"));
  2706. { int yypos211= G->pos, yythunkpos211= G->thunkpos; if (!yy_AutoLinkUrl(G)) { goto l212; } goto l211;
  2707. l212:; G->pos= yypos211; G->thunkpos= yythunkpos211; if (!yy_AutoLinkEmail(G)) { goto l210; }
  2708. }
  2709. l211:;
  2710. yyprintf((stderr, " ok %s @ %s\n", "AutoLink", G->buf+G->pos));
  2711. return 1;
  2712. l210:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2713. yyprintf((stderr, " fail %s @ %s\n", "AutoLink", G->buf+G->pos));
  2714. return 0;
  2715. }
  2716. YY_RULE(int) yy_ReferenceLink(GREG *G)
  2717. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2718. yyprintf((stderr, "%s\n", "ReferenceLink"));
  2719. { int yypos214= G->pos, yythunkpos214= G->thunkpos; if (!yy_ReferenceLinkDouble(G)) { goto l215; } goto l214;
  2720. l215:; G->pos= yypos214; G->thunkpos= yythunkpos214; if (!yy_ReferenceLinkSingle(G)) { goto l213; }
  2721. }
  2722. l214:;
  2723. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2724. return 1;
  2725. l213:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2726. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2727. return 0;
  2728. }
  2729. YY_RULE(int) yy_ExplicitLinkSize(GREG *G)
  2730. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2731. yyprintf((stderr, "%s\n", "ExplicitLinkSize")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l216; if (!yy_Label(G)) { goto l216; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l216; } if (!yymatchChar(G, '(')) goto l216; if (!yy_Sp(G)) { goto l216; } if (!yy_Source(G)) { goto l216; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l216; } if (!yy_TitleExt(G)) { goto l216; } if (!yy_Sp(G)) { goto l216; } if (!yy_ImageSize(G)) { goto l216; } if (!yy_Sp(G)) { goto l216; } if (!yymatchChar(G, ')')) goto l216; yyText(G, G->begin, G->end); if (!(YY_END)) goto l216; yyDo(G, yy_1_ExplicitLinkSize, G->begin, G->end);
  2732. yyprintf((stderr, " ok %s @ %s\n", "ExplicitLinkSize", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2733. return 1;
  2734. l216:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2735. yyprintf((stderr, " fail %s @ %s\n", "ExplicitLinkSize", G->buf+G->pos));
  2736. return 0;
  2737. }
  2738. YY_RULE(int) yy_ExplicitLink(GREG *G)
  2739. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2740. yyprintf((stderr, "%s\n", "ExplicitLink")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l217; if (!yy_Label(G)) { goto l217; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l217; } if (!yymatchChar(G, '(')) goto l217; if (!yy_Sp(G)) { goto l217; } if (!yy_Source(G)) { goto l217; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l217; } if (!yy_Title(G)) { goto l217; } if (!yy_Sp(G)) { goto l217; } if (!yymatchChar(G, ')')) goto l217; yyText(G, G->begin, G->end); if (!(YY_END)) goto l217; yyDo(G, yy_1_ExplicitLink, G->begin, G->end);
  2741. yyprintf((stderr, " ok %s @ %s\n", "ExplicitLink", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2742. return 1;
  2743. l217:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2744. yyprintf((stderr, " fail %s @ %s\n", "ExplicitLink", G->buf+G->pos));
  2745. return 0;
  2746. }
  2747. YY_RULE(int) yy_StrongUl(GREG *G)
  2748. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2749. yyprintf((stderr, "%s\n", "StrongUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l218; if (!yy_LocMarker(G)) { goto l218; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "__")) goto l218;
  2750. { int yypos219= G->pos, yythunkpos219= G->thunkpos; if (!yy_Whitespace(G)) { goto l219; } goto l218;
  2751. l219:; G->pos= yypos219; G->thunkpos= yythunkpos219;
  2752. }
  2753. { int yypos222= G->pos, yythunkpos222= G->thunkpos; if (!yymatchString(G, "__")) goto l222; goto l218;
  2754. l222:; G->pos= yypos222; G->thunkpos= yythunkpos222;
  2755. } if (!yy_Inline(G)) { goto l218; }
  2756. l220:;
  2757. { int yypos221= G->pos, yythunkpos221= G->thunkpos;
  2758. { int yypos223= G->pos, yythunkpos223= G->thunkpos; if (!yymatchString(G, "__")) goto l223; goto l221;
  2759. l223:; G->pos= yypos223; G->thunkpos= yythunkpos223;
  2760. } if (!yy_Inline(G)) { goto l221; } goto l220;
  2761. l221:; G->pos= yypos221; G->thunkpos= yythunkpos221;
  2762. } if (!yymatchString(G, "__")) goto l218; yyText(G, G->begin, G->end); if (!(YY_END)) goto l218; yyDo(G, yy_1_StrongUl, G->begin, G->end);
  2763. yyprintf((stderr, " ok %s @ %s\n", "StrongUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2764. return 1;
  2765. l218:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2766. yyprintf((stderr, " fail %s @ %s\n", "StrongUl", G->buf+G->pos));
  2767. return 0;
  2768. }
  2769. YY_RULE(int) yy_StrongStar(GREG *G)
  2770. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2771. yyprintf((stderr, "%s\n", "StrongStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l224; if (!yy_LocMarker(G)) { goto l224; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "**")) goto l224;
  2772. { int yypos225= G->pos, yythunkpos225= G->thunkpos; if (!yy_Whitespace(G)) { goto l225; } goto l224;
  2773. l225:; G->pos= yypos225; G->thunkpos= yythunkpos225;
  2774. }
  2775. { int yypos228= G->pos, yythunkpos228= G->thunkpos; if (!yymatchString(G, "**")) goto l228; goto l224;
  2776. l228:; G->pos= yypos228; G->thunkpos= yythunkpos228;
  2777. } if (!yy_Inline(G)) { goto l224; }
  2778. l226:;
  2779. { int yypos227= G->pos, yythunkpos227= G->thunkpos;
  2780. { int yypos229= G->pos, yythunkpos229= G->thunkpos; if (!yymatchString(G, "**")) goto l229; goto l227;
  2781. l229:; G->pos= yypos229; G->thunkpos= yythunkpos229;
  2782. } if (!yy_Inline(G)) { goto l227; } goto l226;
  2783. l227:; G->pos= yypos227; G->thunkpos= yythunkpos227;
  2784. } if (!yymatchString(G, "**")) goto l224; yyText(G, G->begin, G->end); if (!(YY_END)) goto l224; yyDo(G, yy_1_StrongStar, G->begin, G->end);
  2785. yyprintf((stderr, " ok %s @ %s\n", "StrongStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2786. return 1;
  2787. l224:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2788. yyprintf((stderr, " fail %s @ %s\n", "StrongStar", G->buf+G->pos));
  2789. return 0;
  2790. }
  2791. YY_RULE(int) yy_Whitespace(GREG *G)
  2792. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2793. yyprintf((stderr, "%s\n", "Whitespace"));
  2794. { int yypos231= G->pos, yythunkpos231= G->thunkpos; if (!yy_Spacechar(G)) { goto l232; } goto l231;
  2795. l232:; G->pos= yypos231; G->thunkpos= yythunkpos231; if (!yy_Newline(G)) { goto l230; }
  2796. }
  2797. l231:;
  2798. yyprintf((stderr, " ok %s @ %s\n", "Whitespace", G->buf+G->pos));
  2799. return 1;
  2800. l230:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2801. yyprintf((stderr, " fail %s @ %s\n", "Whitespace", G->buf+G->pos));
  2802. return 0;
  2803. }
  2804. YY_RULE(int) yy_EmphUl(GREG *G)
  2805. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2806. yyprintf((stderr, "%s\n", "EmphUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l233; if (!yy_LocMarker(G)) { goto l233; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '_')) goto l233;
  2807. { int yypos234= G->pos, yythunkpos234= G->thunkpos; if (!yy_Whitespace(G)) { goto l234; } goto l233;
  2808. l234:; G->pos= yypos234; G->thunkpos= yythunkpos234;
  2809. }
  2810. { int yypos237= G->pos, yythunkpos237= G->thunkpos;
  2811. { int yypos239= G->pos, yythunkpos239= G->thunkpos; if (!yymatchChar(G, '_')) goto l239; goto l238;
  2812. l239:; G->pos= yypos239; G->thunkpos= yythunkpos239;
  2813. } if (!yy_Inline(G)) { goto l238; } goto l237;
  2814. l238:; G->pos= yypos237; G->thunkpos= yythunkpos237; if (!yy_StrongUl(G)) { goto l233; }
  2815. }
  2816. l237:;
  2817. l235:;
  2818. { int yypos236= G->pos, yythunkpos236= G->thunkpos;
  2819. { int yypos240= G->pos, yythunkpos240= G->thunkpos;
  2820. { int yypos242= G->pos, yythunkpos242= G->thunkpos; if (!yymatchChar(G, '_')) goto l242; goto l241;
  2821. l242:; G->pos= yypos242; G->thunkpos= yythunkpos242;
  2822. } if (!yy_Inline(G)) { goto l241; } goto l240;
  2823. l241:; G->pos= yypos240; G->thunkpos= yythunkpos240; if (!yy_StrongUl(G)) { goto l236; }
  2824. }
  2825. l240:; goto l235;
  2826. l236:; G->pos= yypos236; G->thunkpos= yythunkpos236;
  2827. } if (!yymatchChar(G, '_')) goto l233; yyText(G, G->begin, G->end); if (!(YY_END)) goto l233; yyDo(G, yy_1_EmphUl, G->begin, G->end);
  2828. yyprintf((stderr, " ok %s @ %s\n", "EmphUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2829. return 1;
  2830. l233:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2831. yyprintf((stderr, " fail %s @ %s\n", "EmphUl", G->buf+G->pos));
  2832. return 0;
  2833. }
  2834. YY_RULE(int) yy_EmphStar(GREG *G)
  2835. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2836. yyprintf((stderr, "%s\n", "EmphStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l243; if (!yy_LocMarker(G)) { goto l243; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '*')) goto l243;
  2837. { int yypos244= G->pos, yythunkpos244= G->thunkpos; if (!yy_Whitespace(G)) { goto l244; } goto l243;
  2838. l244:; G->pos= yypos244; G->thunkpos= yythunkpos244;
  2839. }
  2840. { int yypos247= G->pos, yythunkpos247= G->thunkpos;
  2841. { int yypos249= G->pos, yythunkpos249= G->thunkpos; if (!yymatchChar(G, '*')) goto l249; goto l248;
  2842. l249:; G->pos= yypos249; G->thunkpos= yythunkpos249;
  2843. } if (!yy_Inline(G)) { goto l248; } goto l247;
  2844. l248:; G->pos= yypos247; G->thunkpos= yythunkpos247; if (!yy_StrongStar(G)) { goto l243; }
  2845. }
  2846. l247:;
  2847. l245:;
  2848. { int yypos246= G->pos, yythunkpos246= G->thunkpos;
  2849. { int yypos250= G->pos, yythunkpos250= G->thunkpos;
  2850. { int yypos252= G->pos, yythunkpos252= G->thunkpos; if (!yymatchChar(G, '*')) goto l252; goto l251;
  2851. l252:; G->pos= yypos252; G->thunkpos= yythunkpos252;
  2852. } if (!yy_Inline(G)) { goto l251; } goto l250;
  2853. l251:; G->pos= yypos250; G->thunkpos= yythunkpos250; if (!yy_StrongStar(G)) { goto l246; }
  2854. }
  2855. l250:; goto l245;
  2856. l246:; G->pos= yypos246; G->thunkpos= yythunkpos246;
  2857. } if (!yymatchChar(G, '*')) goto l243; yyText(G, G->begin, G->end); if (!(YY_END)) goto l243; yyDo(G, yy_1_EmphStar, G->begin, G->end);
  2858. yyprintf((stderr, " ok %s @ %s\n", "EmphStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2859. return 1;
  2860. l243:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2861. yyprintf((stderr, " fail %s @ %s\n", "EmphStar", G->buf+G->pos));
  2862. return 0;
  2863. }
  2864. YY_RULE(int) yy_StarLine(GREG *G)
  2865. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2866. yyprintf((stderr, "%s\n", "StarLine"));
  2867. { int yypos254= G->pos, yythunkpos254= G->thunkpos; if (!yymatchString(G, "****")) goto l255;
  2868. l256:;
  2869. { int yypos257= G->pos, yythunkpos257= G->thunkpos; if (!yymatchChar(G, '*')) goto l257; goto l256;
  2870. l257:; G->pos= yypos257; G->thunkpos= yythunkpos257;
  2871. } goto l254;
  2872. l255:; G->pos= yypos254; G->thunkpos= yythunkpos254; if (!yy_Spacechar(G)) { goto l253; } if (!yymatchChar(G, '*')) goto l253;
  2873. l258:;
  2874. { int yypos259= G->pos, yythunkpos259= G->thunkpos; if (!yymatchChar(G, '*')) goto l259; goto l258;
  2875. l259:; G->pos= yypos259; G->thunkpos= yythunkpos259;
  2876. }
  2877. { int yypos260= G->pos, yythunkpos260= G->thunkpos; if (!yy_Spacechar(G)) { goto l253; } G->pos= yypos260; G->thunkpos= yythunkpos260;
  2878. }
  2879. }
  2880. l254:;
  2881. yyprintf((stderr, " ok %s @ %s\n", "StarLine", G->buf+G->pos));
  2882. return 1;
  2883. l253:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2884. yyprintf((stderr, " fail %s @ %s\n", "StarLine", G->buf+G->pos));
  2885. return 0;
  2886. }
  2887. YY_RULE(int) yy_UlLine(GREG *G)
  2888. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2889. yyprintf((stderr, "%s\n", "UlLine"));
  2890. { int yypos262= G->pos, yythunkpos262= G->thunkpos; if (!yymatchString(G, "____")) goto l263;
  2891. l264:;
  2892. { int yypos265= G->pos, yythunkpos265= G->thunkpos; if (!yymatchChar(G, '_')) goto l265; goto l264;
  2893. l265:; G->pos= yypos265; G->thunkpos= yythunkpos265;
  2894. } goto l262;
  2895. l263:; G->pos= yypos262; G->thunkpos= yythunkpos262; if (!yy_Spacechar(G)) { goto l261; } if (!yymatchChar(G, '_')) goto l261;
  2896. l266:;
  2897. { int yypos267= G->pos, yythunkpos267= G->thunkpos; if (!yymatchChar(G, '_')) goto l267; goto l266;
  2898. l267:; G->pos= yypos267; G->thunkpos= yythunkpos267;
  2899. }
  2900. { int yypos268= G->pos, yythunkpos268= G->thunkpos; if (!yy_Spacechar(G)) { goto l261; } G->pos= yypos268; G->thunkpos= yythunkpos268;
  2901. }
  2902. }
  2903. l262:;
  2904. yyprintf((stderr, " ok %s @ %s\n", "UlLine", G->buf+G->pos));
  2905. return 1;
  2906. l261:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2907. yyprintf((stderr, " fail %s @ %s\n", "UlLine", G->buf+G->pos));
  2908. return 0;
  2909. }
  2910. YY_RULE(int) yy_SpecialChar(GREG *G)
  2911. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2912. yyprintf((stderr, "%s\n", "SpecialChar"));
  2913. { int yypos270= G->pos, yythunkpos270= G->thunkpos; if (!yymatchChar(G, '~')) goto l271; goto l270;
  2914. l271:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '*')) goto l272; goto l270;
  2915. l272:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '_')) goto l273; goto l270;
  2916. l273:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '`')) goto l274; goto l270;
  2917. l274:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '&')) goto l275; goto l270;
  2918. l275:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '[')) goto l276; goto l270;
  2919. l276:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, ']')) goto l277; goto l270;
  2920. l277:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '(')) goto l278; goto l270;
  2921. l278:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, ')')) goto l279; goto l270;
  2922. l279:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '<')) goto l280; goto l270;
  2923. l280:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '!')) goto l281; goto l270;
  2924. l281:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '#')) goto l282; goto l270;
  2925. l282:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '\\')) goto l283; goto l270;
  2926. l283:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '\'')) goto l284; goto l270;
  2927. l284:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '"')) goto l285; goto l270;
  2928. l285:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yy_ExtendedSpecialChar(G)) { goto l269; }
  2929. }
  2930. l270:;
  2931. yyprintf((stderr, " ok %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2932. return 1;
  2933. l269:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2934. yyprintf((stderr, " fail %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2935. return 0;
  2936. }
  2937. YY_RULE(int) yy_Eof(GREG *G)
  2938. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2939. yyprintf((stderr, "%s\n", "Eof"));
  2940. { int yypos287= G->pos, yythunkpos287= G->thunkpos; if (!yymatchDot(G)) goto l287; goto l286;
  2941. l287:; G->pos= yypos287; G->thunkpos= yythunkpos287;
  2942. }
  2943. yyprintf((stderr, " ok %s @ %s\n", "Eof", G->buf+G->pos));
  2944. return 1;
  2945. l286:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2946. yyprintf((stderr, " fail %s @ %s\n", "Eof", G->buf+G->pos));
  2947. return 0;
  2948. }
  2949. YY_RULE(int) yy_NormalEndline(GREG *G)
  2950. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2951. yyprintf((stderr, "%s\n", "NormalEndline")); if (!yy_Sp(G)) { goto l288; } if (!yy_Newline(G)) { goto l288; }
  2952. { int yypos289= G->pos, yythunkpos289= G->thunkpos; if (!yy_BlankLine(G)) { goto l289; } goto l288;
  2953. l289:; G->pos= yypos289; G->thunkpos= yythunkpos289;
  2954. }
  2955. { int yypos290= G->pos, yythunkpos290= G->thunkpos; if (!yymatchChar(G, '>')) goto l290; goto l288;
  2956. l290:; G->pos= yypos290; G->thunkpos= yythunkpos290;
  2957. }
  2958. { int yypos291= G->pos, yythunkpos291= G->thunkpos; if (!yy_AtxStart(G)) { goto l291; } goto l288;
  2959. l291:; G->pos= yypos291; G->thunkpos= yythunkpos291;
  2960. }
  2961. { int yypos292= G->pos, yythunkpos292= G->thunkpos; if (!yy_Line(G)) { goto l292; }
  2962. { int yypos293= G->pos, yythunkpos293= G->thunkpos; if (!yymatchChar(G, '=')) goto l294;
  2963. l295:;
  2964. { int yypos296= G->pos, yythunkpos296= G->thunkpos; if (!yymatchChar(G, '=')) goto l296; goto l295;
  2965. l296:; G->pos= yypos296; G->thunkpos= yythunkpos296;
  2966. } goto l293;
  2967. l294:; G->pos= yypos293; G->thunkpos= yythunkpos293; if (!yymatchChar(G, '-')) goto l292;
  2968. l297:;
  2969. { int yypos298= G->pos, yythunkpos298= G->thunkpos; if (!yymatchChar(G, '-')) goto l298; goto l297;
  2970. l298:; G->pos= yypos298; G->thunkpos= yythunkpos298;
  2971. }
  2972. }
  2973. l293:; if (!yy_Newline(G)) { goto l292; } goto l288;
  2974. l292:; G->pos= yypos292; G->thunkpos= yythunkpos292;
  2975. }
  2976. yyprintf((stderr, " ok %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2977. return 1;
  2978. l288:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2979. yyprintf((stderr, " fail %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2980. return 0;
  2981. }
  2982. YY_RULE(int) yy_TerminalEndline(GREG *G)
  2983. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2984. yyprintf((stderr, "%s\n", "TerminalEndline")); if (!yy_Sp(G)) { goto l299; } if (!yy_Newline(G)) { goto l299; } if (!yy_Eof(G)) { goto l299; }
  2985. yyprintf((stderr, " ok %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2986. return 1;
  2987. l299:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2988. yyprintf((stderr, " fail %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2989. return 0;
  2990. }
  2991. YY_RULE(int) yy_LineBreak(GREG *G)
  2992. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2993. yyprintf((stderr, "%s\n", "LineBreak")); if (!yymatchString(G, " ")) goto l300; if (!yy_NormalEndline(G)) { goto l300; }
  2994. yyprintf((stderr, " ok %s @ %s\n", "LineBreak", G->buf+G->pos));
  2995. return 1;
  2996. l300:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2997. yyprintf((stderr, " fail %s @ %s\n", "LineBreak", G->buf+G->pos));
  2998. return 0;
  2999. }
  3000. YY_RULE(int) yy_CharEntity(GREG *G)
  3001. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3002. yyprintf((stderr, "%s\n", "CharEntity")); if (!yymatchChar(G, '&')) goto l301; 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 l301;
  3003. l302:;
  3004. { int yypos303= G->pos, yythunkpos303= 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 l303; goto l302;
  3005. l303:; G->pos= yypos303; G->thunkpos= yythunkpos303;
  3006. } if (!yymatchChar(G, ';')) goto l301;
  3007. yyprintf((stderr, " ok %s @ %s\n", "CharEntity", G->buf+G->pos));
  3008. return 1;
  3009. l301:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3010. yyprintf((stderr, " fail %s @ %s\n", "CharEntity", G->buf+G->pos));
  3011. return 0;
  3012. }
  3013. YY_RULE(int) yy_DecEntity(GREG *G)
  3014. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3015. yyprintf((stderr, "%s\n", "DecEntity")); if (!yymatchChar(G, '&')) goto l304; if (!yymatchChar(G, '#')) goto l304; 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 l304;
  3016. l305:;
  3017. { int yypos306= G->pos, yythunkpos306= 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 l306; goto l305;
  3018. l306:; G->pos= yypos306; G->thunkpos= yythunkpos306;
  3019. } if (!yymatchChar(G, ';')) goto l304;
  3020. yyprintf((stderr, " ok %s @ %s\n", "DecEntity", G->buf+G->pos));
  3021. return 1;
  3022. l304:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3023. yyprintf((stderr, " fail %s @ %s\n", "DecEntity", G->buf+G->pos));
  3024. return 0;
  3025. }
  3026. YY_RULE(int) yy_HexEntity(GREG *G)
  3027. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3028. yyprintf((stderr, "%s\n", "HexEntity")); if (!yymatchChar(G, '&')) goto l307; if (!yymatchChar(G, '#')) goto l307; 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 l307; 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 l307;
  3029. l308:;
  3030. { int yypos309= G->pos, yythunkpos309= 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 l309; goto l308;
  3031. l309:; G->pos= yypos309; G->thunkpos= yythunkpos309;
  3032. } if (!yymatchChar(G, ';')) goto l307;
  3033. yyprintf((stderr, " ok %s @ %s\n", "HexEntity", G->buf+G->pos));
  3034. return 1;
  3035. l307:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3036. yyprintf((stderr, " fail %s @ %s\n", "HexEntity", G->buf+G->pos));
  3037. return 0;
  3038. }
  3039. YY_RULE(int) yy_Alphanumeric(GREG *G)
  3040. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3041. yyprintf((stderr, "%s\n", "Alphanumeric"));
  3042. { int yypos311= G->pos, yythunkpos311= 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 l312; goto l311;
  3043. l312:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\200")) goto l313; goto l311;
  3044. l313:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\201")) goto l314; goto l311;
  3045. l314:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\202")) goto l315; goto l311;
  3046. l315:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\203")) goto l316; goto l311;
  3047. l316:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\204")) goto l317; goto l311;
  3048. l317:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\205")) goto l318; goto l311;
  3049. l318:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\206")) goto l319; goto l311;
  3050. l319:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\207")) goto l320; goto l311;
  3051. l320:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\210")) goto l321; goto l311;
  3052. l321:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\211")) goto l322; goto l311;
  3053. l322:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\212")) goto l323; goto l311;
  3054. l323:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\213")) goto l324; goto l311;
  3055. l324:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\214")) goto l325; goto l311;
  3056. l325:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\215")) goto l326; goto l311;
  3057. l326:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\216")) goto l327; goto l311;
  3058. l327:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\217")) goto l328; goto l311;
  3059. l328:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\220")) goto l329; goto l311;
  3060. l329:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\221")) goto l330; goto l311;
  3061. l330:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\222")) goto l331; goto l311;
  3062. l331:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\223")) goto l332; goto l311;
  3063. l332:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\224")) goto l333; goto l311;
  3064. l333:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\225")) goto l334; goto l311;
  3065. l334:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\226")) goto l335; goto l311;
  3066. l335:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\227")) goto l336; goto l311;
  3067. l336:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\230")) goto l337; goto l311;
  3068. l337:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\231")) goto l338; goto l311;
  3069. l338:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\232")) goto l339; goto l311;
  3070. l339:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\233")) goto l340; goto l311;
  3071. l340:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\234")) goto l341; goto l311;
  3072. l341:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\235")) goto l342; goto l311;
  3073. l342:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\236")) goto l343; goto l311;
  3074. l343:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\237")) goto l344; goto l311;
  3075. l344:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\240")) goto l345; goto l311;
  3076. l345:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\241")) goto l346; goto l311;
  3077. l346:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\242")) goto l347; goto l311;
  3078. l347:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\243")) goto l348; goto l311;
  3079. l348:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\244")) goto l349; goto l311;
  3080. l349:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\245")) goto l350; goto l311;
  3081. l350:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\246")) goto l351; goto l311;
  3082. l351:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\247")) goto l352; goto l311;
  3083. l352:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\250")) goto l353; goto l311;
  3084. l353:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\251")) goto l354; goto l311;
  3085. l354:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\252")) goto l355; goto l311;
  3086. l355:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\253")) goto l356; goto l311;
  3087. l356:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\254")) goto l357; goto l311;
  3088. l357:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\255")) goto l358; goto l311;
  3089. l358:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\256")) goto l359; goto l311;
  3090. l359:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\257")) goto l360; goto l311;
  3091. l360:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\260")) goto l361; goto l311;
  3092. l361:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\261")) goto l362; goto l311;
  3093. l362:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\262")) goto l363; goto l311;
  3094. l363:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\263")) goto l364; goto l311;
  3095. l364:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\264")) goto l365; goto l311;
  3096. l365:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\265")) goto l366; goto l311;
  3097. l366:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\266")) goto l367; goto l311;
  3098. l367:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\267")) goto l368; goto l311;
  3099. l368:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\270")) goto l369; goto l311;
  3100. l369:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\271")) goto l370; goto l311;
  3101. l370:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\272")) goto l371; goto l311;
  3102. l371:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\273")) goto l372; goto l311;
  3103. l372:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\274")) goto l373; goto l311;
  3104. l373:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\275")) goto l374; goto l311;
  3105. l374:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\276")) goto l375; goto l311;
  3106. l375:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\277")) goto l376; goto l311;
  3107. l376:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\300")) goto l377; goto l311;
  3108. l377:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\301")) goto l378; goto l311;
  3109. l378:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\302")) goto l379; goto l311;
  3110. l379:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\303")) goto l380; goto l311;
  3111. l380:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\304")) goto l381; goto l311;
  3112. l381:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\305")) goto l382; goto l311;
  3113. l382:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\306")) goto l383; goto l311;
  3114. l383:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\307")) goto l384; goto l311;
  3115. l384:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\310")) goto l385; goto l311;
  3116. l385:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\311")) goto l386; goto l311;
  3117. l386:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\312")) goto l387; goto l311;
  3118. l387:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\313")) goto l388; goto l311;
  3119. l388:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\314")) goto l389; goto l311;
  3120. l389:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\315")) goto l390; goto l311;
  3121. l390:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\316")) goto l391; goto l311;
  3122. l391:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\317")) goto l392; goto l311;
  3123. l392:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\320")) goto l393; goto l311;
  3124. l393:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\321")) goto l394; goto l311;
  3125. l394:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\322")) goto l395; goto l311;
  3126. l395:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\323")) goto l396; goto l311;
  3127. l396:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\324")) goto l397; goto l311;
  3128. l397:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\325")) goto l398; goto l311;
  3129. l398:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\326")) goto l399; goto l311;
  3130. l399:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\327")) goto l400; goto l311;
  3131. l400:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\330")) goto l401; goto l311;
  3132. l401:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\331")) goto l402; goto l311;
  3133. l402:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\332")) goto l403; goto l311;
  3134. l403:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\333")) goto l404; goto l311;
  3135. l404:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\334")) goto l405; goto l311;
  3136. l405:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\335")) goto l406; goto l311;
  3137. l406:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\336")) goto l407; goto l311;
  3138. l407:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\337")) goto l408; goto l311;
  3139. l408:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\340")) goto l409; goto l311;
  3140. l409:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\341")) goto l410; goto l311;
  3141. l410:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\342")) goto l411; goto l311;
  3142. l411:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\343")) goto l412; goto l311;
  3143. l412:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\344")) goto l413; goto l311;
  3144. l413:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\345")) goto l414; goto l311;
  3145. l414:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\346")) goto l415; goto l311;
  3146. l415:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\347")) goto l416; goto l311;
  3147. l416:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\350")) goto l417; goto l311;
  3148. l417:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\351")) goto l418; goto l311;
  3149. l418:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\352")) goto l419; goto l311;
  3150. l419:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\353")) goto l420; goto l311;
  3151. l420:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\354")) goto l421; goto l311;
  3152. l421:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\355")) goto l422; goto l311;
  3153. l422:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\356")) goto l423; goto l311;
  3154. l423:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\357")) goto l424; goto l311;
  3155. l424:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\360")) goto l425; goto l311;
  3156. l425:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\361")) goto l426; goto l311;
  3157. l426:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\362")) goto l427; goto l311;
  3158. l427:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\363")) goto l428; goto l311;
  3159. l428:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\364")) goto l429; goto l311;
  3160. l429:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\365")) goto l430; goto l311;
  3161. l430:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\366")) goto l431; goto l311;
  3162. l431:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\367")) goto l432; goto l311;
  3163. l432:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\370")) goto l433; goto l311;
  3164. l433:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\371")) goto l434; goto l311;
  3165. l434:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\372")) goto l435; goto l311;
  3166. l435:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\373")) goto l436; goto l311;
  3167. l436:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\374")) goto l437; goto l311;
  3168. l437:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\375")) goto l438; goto l311;
  3169. l438:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\376")) goto l439; goto l311;
  3170. l439:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\377")) goto l310;
  3171. }
  3172. l311:;
  3173. yyprintf((stderr, " ok %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  3174. return 1;
  3175. l310:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3176. yyprintf((stderr, " fail %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  3177. return 0;
  3178. }
  3179. YY_RULE(int) yy_NormalChar(GREG *G)
  3180. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3181. yyprintf((stderr, "%s\n", "NormalChar"));
  3182. { int yypos441= G->pos, yythunkpos441= G->thunkpos;
  3183. { int yypos442= G->pos, yythunkpos442= G->thunkpos; if (!yy_SpecialChar(G)) { goto l443; } goto l442;
  3184. l443:; G->pos= yypos442; G->thunkpos= yythunkpos442; if (!yy_Spacechar(G)) { goto l444; } goto l442;
  3185. l444:; G->pos= yypos442; G->thunkpos= yythunkpos442; if (!yy_Newline(G)) { goto l441; }
  3186. }
  3187. l442:; goto l440;
  3188. l441:; G->pos= yypos441; G->thunkpos= yythunkpos441;
  3189. } if (!yymatchDot(G)) goto l440;
  3190. yyprintf((stderr, " ok %s @ %s\n", "NormalChar", G->buf+G->pos));
  3191. return 1;
  3192. l440:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3193. yyprintf((stderr, " fail %s @ %s\n", "NormalChar", G->buf+G->pos));
  3194. return 0;
  3195. }
  3196. YY_RULE(int) yy_Symbol(GREG *G)
  3197. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3198. yyprintf((stderr, "%s\n", "Symbol")); if (!yy_SpecialChar(G)) { goto l445; }
  3199. yyprintf((stderr, " ok %s @ %s\n", "Symbol", G->buf+G->pos));
  3200. return 1;
  3201. l445:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3202. yyprintf((stderr, " fail %s @ %s\n", "Symbol", G->buf+G->pos));
  3203. return 0;
  3204. }
  3205. YY_RULE(int) yy_EscapedChar(GREG *G)
  3206. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3207. yyprintf((stderr, "%s\n", "EscapedChar")); if (!yymatchChar(G, '\\')) goto l446;
  3208. { int yypos447= G->pos, yythunkpos447= G->thunkpos; if (!yy_Newline(G)) { goto l447; } goto l446;
  3209. l447:; G->pos= yypos447; G->thunkpos= yythunkpos447;
  3210. } 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 l446;
  3211. yyprintf((stderr, " ok %s @ %s\n", "EscapedChar", G->buf+G->pos));
  3212. return 1;
  3213. l446:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3214. yyprintf((stderr, " fail %s @ %s\n", "EscapedChar", G->buf+G->pos));
  3215. return 0;
  3216. }
  3217. YY_RULE(int) yy_Entity(GREG *G)
  3218. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3219. yyprintf((stderr, "%s\n", "Entity")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l448; if (!yy_LocMarker(G)) { goto l448; } yyDo(G, yySet, -1, 0);
  3220. { int yypos449= G->pos, yythunkpos449= G->thunkpos; if (!yy_HexEntity(G)) { goto l450; } goto l449;
  3221. l450:; G->pos= yypos449; G->thunkpos= yythunkpos449; if (!yy_DecEntity(G)) { goto l451; } goto l449;
  3222. l451:; G->pos= yypos449; G->thunkpos= yythunkpos449; if (!yy_CharEntity(G)) { goto l448; }
  3223. }
  3224. l449:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l448; yyDo(G, yy_1_Entity, G->begin, G->end);
  3225. yyprintf((stderr, " ok %s @ %s\n", "Entity", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3226. return 1;
  3227. l448:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3228. yyprintf((stderr, " fail %s @ %s\n", "Entity", G->buf+G->pos));
  3229. return 0;
  3230. }
  3231. YY_RULE(int) yy_RawHtml(GREG *G)
  3232. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3233. yyprintf((stderr, "%s\n", "RawHtml")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l452; if (!yy_LocMarker(G)) { goto l452; } yyDo(G, yySet, -1, 0);
  3234. { int yypos453= G->pos, yythunkpos453= G->thunkpos; if (!yy_HtmlComment(G)) { goto l454; } goto l453;
  3235. l454:; G->pos= yypos453; G->thunkpos= yythunkpos453; if (!yy_HtmlBlockScript(G)) { goto l455; } goto l453;
  3236. l455:; G->pos= yypos453; G->thunkpos= yythunkpos453; if (!yy_HtmlTag(G)) { goto l452; }
  3237. }
  3238. l453:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l452; yyDo(G, yy_1_RawHtml, G->begin, G->end);
  3239. yyprintf((stderr, " ok %s @ %s\n", "RawHtml", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3240. return 1;
  3241. l452:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3242. yyprintf((stderr, " fail %s @ %s\n", "RawHtml", G->buf+G->pos));
  3243. return 0;
  3244. }
  3245. YY_RULE(int) yy_Mark(GREG *G)
  3246. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  3247. yyprintf((stderr, "%s\n", "Mark")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MARK) )) goto l456; if (!yy_MarkTagOpen(G)) { goto l456; } yyDo(G, yySet, -2, 0); if (!yy_MarkTagText(G)) { goto l456; } if (!yy_MarkTagClose(G)) { goto l456; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_Mark, G->begin, G->end);
  3248. yyprintf((stderr, " ok %s @ %s\n", "Mark", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  3249. return 1;
  3250. l456:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3251. yyprintf((stderr, " fail %s @ %s\n", "Mark", G->buf+G->pos));
  3252. return 0;
  3253. }
  3254. YY_RULE(int) yy_Code(GREG *G)
  3255. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3256. yyprintf((stderr, "%s\n", "Code")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l457;
  3257. { int yypos458= G->pos, yythunkpos458= G->thunkpos; if (!yy_Ticks1(G)) { goto l459; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l459; }
  3258. { int yypos462= G->pos, yythunkpos462= G->thunkpos;
  3259. { int yypos466= G->pos, yythunkpos466= G->thunkpos; if (!yymatchChar(G, '`')) goto l466; goto l463;
  3260. l466:; G->pos= yypos466; G->thunkpos= yythunkpos466;
  3261. } if (!yy_Nonspacechar(G)) { goto l463; }
  3262. l464:;
  3263. { int yypos465= G->pos, yythunkpos465= G->thunkpos;
  3264. { int yypos467= G->pos, yythunkpos467= G->thunkpos; if (!yymatchChar(G, '`')) goto l467; goto l465;
  3265. l467:; G->pos= yypos467; G->thunkpos= yythunkpos467;
  3266. } if (!yy_Nonspacechar(G)) { goto l465; } goto l464;
  3267. l465:; G->pos= yypos465; G->thunkpos= yythunkpos465;
  3268. } goto l462;
  3269. l463:; G->pos= yypos462; G->thunkpos= yythunkpos462;
  3270. { int yypos469= G->pos, yythunkpos469= G->thunkpos; if (!yy_Ticks1(G)) { goto l469; } goto l468;
  3271. l469:; G->pos= yypos469; G->thunkpos= yythunkpos469;
  3272. } if (!yymatchChar(G, '`')) goto l468;
  3273. l470:;
  3274. { int yypos471= G->pos, yythunkpos471= G->thunkpos; if (!yymatchChar(G, '`')) goto l471; goto l470;
  3275. l471:; G->pos= yypos471; G->thunkpos= yythunkpos471;
  3276. } goto l462;
  3277. l468:; G->pos= yypos462; G->thunkpos= yythunkpos462;
  3278. { int yypos472= G->pos, yythunkpos472= G->thunkpos; if (!yy_Sp(G)) { goto l472; } if (!yy_Ticks1(G)) { goto l472; } goto l459;
  3279. l472:; G->pos= yypos472; G->thunkpos= yythunkpos472;
  3280. }
  3281. { int yypos473= G->pos, yythunkpos473= G->thunkpos; if (!yy_Spacechar(G)) { goto l474; } goto l473;
  3282. l474:; G->pos= yypos473; G->thunkpos= yythunkpos473; if (!yy_Newline(G)) { goto l459; }
  3283. { int yypos475= G->pos, yythunkpos475= G->thunkpos; if (!yy_BlankLine(G)) { goto l475; } goto l459;
  3284. l475:; G->pos= yypos475; G->thunkpos= yythunkpos475;
  3285. }
  3286. }
  3287. l473:;
  3288. }
  3289. l462:;
  3290. l460:;
  3291. { int yypos461= G->pos, yythunkpos461= G->thunkpos;
  3292. { int yypos476= G->pos, yythunkpos476= G->thunkpos;
  3293. { int yypos480= G->pos, yythunkpos480= G->thunkpos; if (!yymatchChar(G, '`')) goto l480; goto l477;
  3294. l480:; G->pos= yypos480; G->thunkpos= yythunkpos480;
  3295. } if (!yy_Nonspacechar(G)) { goto l477; }
  3296. l478:;
  3297. { int yypos479= G->pos, yythunkpos479= G->thunkpos;
  3298. { int yypos481= G->pos, yythunkpos481= G->thunkpos; if (!yymatchChar(G, '`')) goto l481; goto l479;
  3299. l481:; G->pos= yypos481; G->thunkpos= yythunkpos481;
  3300. } if (!yy_Nonspacechar(G)) { goto l479; } goto l478;
  3301. l479:; G->pos= yypos479; G->thunkpos= yythunkpos479;
  3302. } goto l476;
  3303. l477:; G->pos= yypos476; G->thunkpos= yythunkpos476;
  3304. { int yypos483= G->pos, yythunkpos483= G->thunkpos; if (!yy_Ticks1(G)) { goto l483; } goto l482;
  3305. l483:; G->pos= yypos483; G->thunkpos= yythunkpos483;
  3306. } if (!yymatchChar(G, '`')) goto l482;
  3307. l484:;
  3308. { int yypos485= G->pos, yythunkpos485= G->thunkpos; if (!yymatchChar(G, '`')) goto l485; goto l484;
  3309. l485:; G->pos= yypos485; G->thunkpos= yythunkpos485;
  3310. } goto l476;
  3311. l482:; G->pos= yypos476; G->thunkpos= yythunkpos476;
  3312. { int yypos486= G->pos, yythunkpos486= G->thunkpos; if (!yy_Sp(G)) { goto l486; } if (!yy_Ticks1(G)) { goto l486; } goto l461;
  3313. l486:; G->pos= yypos486; G->thunkpos= yythunkpos486;
  3314. }
  3315. { int yypos487= G->pos, yythunkpos487= G->thunkpos; if (!yy_Spacechar(G)) { goto l488; } goto l487;
  3316. l488:; G->pos= yypos487; G->thunkpos= yythunkpos487; if (!yy_Newline(G)) { goto l461; }
  3317. { int yypos489= G->pos, yythunkpos489= G->thunkpos; if (!yy_BlankLine(G)) { goto l489; } goto l461;
  3318. l489:; G->pos= yypos489; G->thunkpos= yythunkpos489;
  3319. }
  3320. }
  3321. l487:;
  3322. }
  3323. l476:; goto l460;
  3324. l461:; G->pos= yypos461; G->thunkpos= yythunkpos461;
  3325. } if (!yy_Sp(G)) { goto l459; } if (!yy_Ticks1(G)) { goto l459; } goto l458;
  3326. l459:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks2(G)) { goto l490; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l490; }
  3327. { int yypos493= G->pos, yythunkpos493= G->thunkpos;
  3328. { int yypos497= G->pos, yythunkpos497= G->thunkpos; if (!yymatchChar(G, '`')) goto l497; goto l494;
  3329. l497:; G->pos= yypos497; G->thunkpos= yythunkpos497;
  3330. } if (!yy_Nonspacechar(G)) { goto l494; }
  3331. l495:;
  3332. { int yypos496= G->pos, yythunkpos496= G->thunkpos;
  3333. { int yypos498= G->pos, yythunkpos498= G->thunkpos; if (!yymatchChar(G, '`')) goto l498; goto l496;
  3334. l498:; G->pos= yypos498; G->thunkpos= yythunkpos498;
  3335. } if (!yy_Nonspacechar(G)) { goto l496; } goto l495;
  3336. l496:; G->pos= yypos496; G->thunkpos= yythunkpos496;
  3337. } goto l493;
  3338. l494:; G->pos= yypos493; G->thunkpos= yythunkpos493;
  3339. { int yypos500= G->pos, yythunkpos500= G->thunkpos; if (!yy_Ticks2(G)) { goto l500; } goto l499;
  3340. l500:; G->pos= yypos500; G->thunkpos= yythunkpos500;
  3341. } if (!yymatchChar(G, '`')) goto l499;
  3342. l501:;
  3343. { int yypos502= G->pos, yythunkpos502= G->thunkpos; if (!yymatchChar(G, '`')) goto l502; goto l501;
  3344. l502:; G->pos= yypos502; G->thunkpos= yythunkpos502;
  3345. } goto l493;
  3346. l499:; G->pos= yypos493; G->thunkpos= yythunkpos493;
  3347. { int yypos503= G->pos, yythunkpos503= G->thunkpos; if (!yy_Sp(G)) { goto l503; } if (!yy_Ticks2(G)) { goto l503; } goto l490;
  3348. l503:; G->pos= yypos503; G->thunkpos= yythunkpos503;
  3349. }
  3350. { int yypos504= G->pos, yythunkpos504= G->thunkpos; if (!yy_Spacechar(G)) { goto l505; } goto l504;
  3351. l505:; G->pos= yypos504; G->thunkpos= yythunkpos504; if (!yy_Newline(G)) { goto l490; }
  3352. { int yypos506= G->pos, yythunkpos506= G->thunkpos; if (!yy_BlankLine(G)) { goto l506; } goto l490;
  3353. l506:; G->pos= yypos506; G->thunkpos= yythunkpos506;
  3354. }
  3355. }
  3356. l504:;
  3357. }
  3358. l493:;
  3359. l491:;
  3360. { int yypos492= G->pos, yythunkpos492= G->thunkpos;
  3361. { int yypos507= G->pos, yythunkpos507= G->thunkpos;
  3362. { int yypos511= G->pos, yythunkpos511= G->thunkpos; if (!yymatchChar(G, '`')) goto l511; goto l508;
  3363. l511:; G->pos= yypos511; G->thunkpos= yythunkpos511;
  3364. } if (!yy_Nonspacechar(G)) { goto l508; }
  3365. l509:;
  3366. { int yypos510= G->pos, yythunkpos510= G->thunkpos;
  3367. { int yypos512= G->pos, yythunkpos512= G->thunkpos; if (!yymatchChar(G, '`')) goto l512; goto l510;
  3368. l512:; G->pos= yypos512; G->thunkpos= yythunkpos512;
  3369. } if (!yy_Nonspacechar(G)) { goto l510; } goto l509;
  3370. l510:; G->pos= yypos510; G->thunkpos= yythunkpos510;
  3371. } goto l507;
  3372. l508:; G->pos= yypos507; G->thunkpos= yythunkpos507;
  3373. { int yypos514= G->pos, yythunkpos514= G->thunkpos; if (!yy_Ticks2(G)) { goto l514; } goto l513;
  3374. l514:; G->pos= yypos514; G->thunkpos= yythunkpos514;
  3375. } if (!yymatchChar(G, '`')) goto l513;
  3376. l515:;
  3377. { int yypos516= G->pos, yythunkpos516= G->thunkpos; if (!yymatchChar(G, '`')) goto l516; goto l515;
  3378. l516:; G->pos= yypos516; G->thunkpos= yythunkpos516;
  3379. } goto l507;
  3380. l513:; G->pos= yypos507; G->thunkpos= yythunkpos507;
  3381. { int yypos517= G->pos, yythunkpos517= G->thunkpos; if (!yy_Sp(G)) { goto l517; } if (!yy_Ticks2(G)) { goto l517; } goto l492;
  3382. l517:; G->pos= yypos517; G->thunkpos= yythunkpos517;
  3383. }
  3384. { int yypos518= G->pos, yythunkpos518= G->thunkpos; if (!yy_Spacechar(G)) { goto l519; } goto l518;
  3385. l519:; G->pos= yypos518; G->thunkpos= yythunkpos518; if (!yy_Newline(G)) { goto l492; }
  3386. { int yypos520= G->pos, yythunkpos520= G->thunkpos; if (!yy_BlankLine(G)) { goto l520; } goto l492;
  3387. l520:; G->pos= yypos520; G->thunkpos= yythunkpos520;
  3388. }
  3389. }
  3390. l518:;
  3391. }
  3392. l507:; goto l491;
  3393. l492:; G->pos= yypos492; G->thunkpos= yythunkpos492;
  3394. } if (!yy_Sp(G)) { goto l490; } if (!yy_Ticks2(G)) { goto l490; } goto l458;
  3395. l490:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks3(G)) { goto l521; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l521; }
  3396. { int yypos524= G->pos, yythunkpos524= G->thunkpos;
  3397. { int yypos528= G->pos, yythunkpos528= G->thunkpos; if (!yymatchChar(G, '`')) goto l528; goto l525;
  3398. l528:; G->pos= yypos528; G->thunkpos= yythunkpos528;
  3399. } if (!yy_Nonspacechar(G)) { goto l525; }
  3400. l526:;
  3401. { int yypos527= G->pos, yythunkpos527= G->thunkpos;
  3402. { int yypos529= G->pos, yythunkpos529= G->thunkpos; if (!yymatchChar(G, '`')) goto l529; goto l527;
  3403. l529:; G->pos= yypos529; G->thunkpos= yythunkpos529;
  3404. } if (!yy_Nonspacechar(G)) { goto l527; } goto l526;
  3405. l527:; G->pos= yypos527; G->thunkpos= yythunkpos527;
  3406. } goto l524;
  3407. l525:; G->pos= yypos524; G->thunkpos= yythunkpos524;
  3408. { int yypos531= G->pos, yythunkpos531= G->thunkpos; if (!yy_Ticks3(G)) { goto l531; } goto l530;
  3409. l531:; G->pos= yypos531; G->thunkpos= yythunkpos531;
  3410. } if (!yymatchChar(G, '`')) goto l530;
  3411. l532:;
  3412. { int yypos533= G->pos, yythunkpos533= G->thunkpos; if (!yymatchChar(G, '`')) goto l533; goto l532;
  3413. l533:; G->pos= yypos533; G->thunkpos= yythunkpos533;
  3414. } goto l524;
  3415. l530:; G->pos= yypos524; G->thunkpos= yythunkpos524;
  3416. { int yypos534= G->pos, yythunkpos534= G->thunkpos; if (!yy_Sp(G)) { goto l534; } if (!yy_Ticks3(G)) { goto l534; } goto l521;
  3417. l534:; G->pos= yypos534; G->thunkpos= yythunkpos534;
  3418. }
  3419. { int yypos535= G->pos, yythunkpos535= G->thunkpos; if (!yy_Spacechar(G)) { goto l536; } goto l535;
  3420. l536:; G->pos= yypos535; G->thunkpos= yythunkpos535; if (!yy_Newline(G)) { goto l521; }
  3421. { int yypos537= G->pos, yythunkpos537= G->thunkpos; if (!yy_BlankLine(G)) { goto l537; } goto l521;
  3422. l537:; G->pos= yypos537; G->thunkpos= yythunkpos537;
  3423. }
  3424. }
  3425. l535:;
  3426. }
  3427. l524:;
  3428. l522:;
  3429. { int yypos523= G->pos, yythunkpos523= G->thunkpos;
  3430. { int yypos538= G->pos, yythunkpos538= G->thunkpos;
  3431. { int yypos542= G->pos, yythunkpos542= G->thunkpos; if (!yymatchChar(G, '`')) goto l542; goto l539;
  3432. l542:; G->pos= yypos542; G->thunkpos= yythunkpos542;
  3433. } if (!yy_Nonspacechar(G)) { goto l539; }
  3434. l540:;
  3435. { int yypos541= G->pos, yythunkpos541= G->thunkpos;
  3436. { int yypos543= G->pos, yythunkpos543= G->thunkpos; if (!yymatchChar(G, '`')) goto l543; goto l541;
  3437. l543:; G->pos= yypos543; G->thunkpos= yythunkpos543;
  3438. } if (!yy_Nonspacechar(G)) { goto l541; } goto l540;
  3439. l541:; G->pos= yypos541; G->thunkpos= yythunkpos541;
  3440. } goto l538;
  3441. l539:; G->pos= yypos538; G->thunkpos= yythunkpos538;
  3442. { int yypos545= G->pos, yythunkpos545= G->thunkpos; if (!yy_Ticks3(G)) { goto l545; } goto l544;
  3443. l545:; G->pos= yypos545; G->thunkpos= yythunkpos545;
  3444. } if (!yymatchChar(G, '`')) goto l544;
  3445. l546:;
  3446. { int yypos547= G->pos, yythunkpos547= G->thunkpos; if (!yymatchChar(G, '`')) goto l547; goto l546;
  3447. l547:; G->pos= yypos547; G->thunkpos= yythunkpos547;
  3448. } goto l538;
  3449. l544:; G->pos= yypos538; G->thunkpos= yythunkpos538;
  3450. { int yypos548= G->pos, yythunkpos548= G->thunkpos; if (!yy_Sp(G)) { goto l548; } if (!yy_Ticks3(G)) { goto l548; } goto l523;
  3451. l548:; G->pos= yypos548; G->thunkpos= yythunkpos548;
  3452. }
  3453. { int yypos549= G->pos, yythunkpos549= G->thunkpos; if (!yy_Spacechar(G)) { goto l550; } goto l549;
  3454. l550:; G->pos= yypos549; G->thunkpos= yythunkpos549; if (!yy_Newline(G)) { goto l523; }
  3455. { int yypos551= G->pos, yythunkpos551= G->thunkpos; if (!yy_BlankLine(G)) { goto l551; } goto l523;
  3456. l551:; G->pos= yypos551; G->thunkpos= yythunkpos551;
  3457. }
  3458. }
  3459. l549:;
  3460. }
  3461. l538:; goto l522;
  3462. l523:; G->pos= yypos523; G->thunkpos= yythunkpos523;
  3463. } if (!yy_Sp(G)) { goto l521; } if (!yy_Ticks3(G)) { goto l521; } goto l458;
  3464. l521:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks4(G)) { goto l552; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l552; }
  3465. { int yypos555= G->pos, yythunkpos555= G->thunkpos;
  3466. { int yypos559= G->pos, yythunkpos559= G->thunkpos; if (!yymatchChar(G, '`')) goto l559; goto l556;
  3467. l559:; G->pos= yypos559; G->thunkpos= yythunkpos559;
  3468. } if (!yy_Nonspacechar(G)) { goto l556; }
  3469. l557:;
  3470. { int yypos558= G->pos, yythunkpos558= G->thunkpos;
  3471. { int yypos560= G->pos, yythunkpos560= G->thunkpos; if (!yymatchChar(G, '`')) goto l560; goto l558;
  3472. l560:; G->pos= yypos560; G->thunkpos= yythunkpos560;
  3473. } if (!yy_Nonspacechar(G)) { goto l558; } goto l557;
  3474. l558:; G->pos= yypos558; G->thunkpos= yythunkpos558;
  3475. } goto l555;
  3476. l556:; G->pos= yypos555; G->thunkpos= yythunkpos555;
  3477. { int yypos562= G->pos, yythunkpos562= G->thunkpos; if (!yy_Ticks4(G)) { goto l562; } goto l561;
  3478. l562:; G->pos= yypos562; G->thunkpos= yythunkpos562;
  3479. } if (!yymatchChar(G, '`')) goto l561;
  3480. l563:;
  3481. { int yypos564= G->pos, yythunkpos564= G->thunkpos; if (!yymatchChar(G, '`')) goto l564; goto l563;
  3482. l564:; G->pos= yypos564; G->thunkpos= yythunkpos564;
  3483. } goto l555;
  3484. l561:; G->pos= yypos555; G->thunkpos= yythunkpos555;
  3485. { int yypos565= G->pos, yythunkpos565= G->thunkpos; if (!yy_Sp(G)) { goto l565; } if (!yy_Ticks4(G)) { goto l565; } goto l552;
  3486. l565:; G->pos= yypos565; G->thunkpos= yythunkpos565;
  3487. }
  3488. { int yypos566= G->pos, yythunkpos566= G->thunkpos; if (!yy_Spacechar(G)) { goto l567; } goto l566;
  3489. l567:; G->pos= yypos566; G->thunkpos= yythunkpos566; if (!yy_Newline(G)) { goto l552; }
  3490. { int yypos568= G->pos, yythunkpos568= G->thunkpos; if (!yy_BlankLine(G)) { goto l568; } goto l552;
  3491. l568:; G->pos= yypos568; G->thunkpos= yythunkpos568;
  3492. }
  3493. }
  3494. l566:;
  3495. }
  3496. l555:;
  3497. l553:;
  3498. { int yypos554= G->pos, yythunkpos554= G->thunkpos;
  3499. { int yypos569= G->pos, yythunkpos569= G->thunkpos;
  3500. { int yypos573= G->pos, yythunkpos573= G->thunkpos; if (!yymatchChar(G, '`')) goto l573; goto l570;
  3501. l573:; G->pos= yypos573; G->thunkpos= yythunkpos573;
  3502. } if (!yy_Nonspacechar(G)) { goto l570; }
  3503. l571:;
  3504. { int yypos572= G->pos, yythunkpos572= G->thunkpos;
  3505. { int yypos574= G->pos, yythunkpos574= G->thunkpos; if (!yymatchChar(G, '`')) goto l574; goto l572;
  3506. l574:; G->pos= yypos574; G->thunkpos= yythunkpos574;
  3507. } if (!yy_Nonspacechar(G)) { goto l572; } goto l571;
  3508. l572:; G->pos= yypos572; G->thunkpos= yythunkpos572;
  3509. } goto l569;
  3510. l570:; G->pos= yypos569; G->thunkpos= yythunkpos569;
  3511. { int yypos576= G->pos, yythunkpos576= G->thunkpos; if (!yy_Ticks4(G)) { goto l576; } goto l575;
  3512. l576:; G->pos= yypos576; G->thunkpos= yythunkpos576;
  3513. } if (!yymatchChar(G, '`')) goto l575;
  3514. l577:;
  3515. { int yypos578= G->pos, yythunkpos578= G->thunkpos; if (!yymatchChar(G, '`')) goto l578; goto l577;
  3516. l578:; G->pos= yypos578; G->thunkpos= yythunkpos578;
  3517. } goto l569;
  3518. l575:; G->pos= yypos569; G->thunkpos= yythunkpos569;
  3519. { int yypos579= G->pos, yythunkpos579= G->thunkpos; if (!yy_Sp(G)) { goto l579; } if (!yy_Ticks4(G)) { goto l579; } goto l554;
  3520. l579:; G->pos= yypos579; G->thunkpos= yythunkpos579;
  3521. }
  3522. { int yypos580= G->pos, yythunkpos580= G->thunkpos; if (!yy_Spacechar(G)) { goto l581; } goto l580;
  3523. l581:; G->pos= yypos580; G->thunkpos= yythunkpos580; if (!yy_Newline(G)) { goto l554; }
  3524. { int yypos582= G->pos, yythunkpos582= G->thunkpos; if (!yy_BlankLine(G)) { goto l582; } goto l554;
  3525. l582:; G->pos= yypos582; G->thunkpos= yythunkpos582;
  3526. }
  3527. }
  3528. l580:;
  3529. }
  3530. l569:; goto l553;
  3531. l554:; G->pos= yypos554; G->thunkpos= yythunkpos554;
  3532. } if (!yy_Sp(G)) { goto l552; } if (!yy_Ticks4(G)) { goto l552; } goto l458;
  3533. l552:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks5(G)) { goto l457; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l457; }
  3534. { int yypos585= G->pos, yythunkpos585= G->thunkpos;
  3535. { int yypos589= G->pos, yythunkpos589= G->thunkpos; if (!yymatchChar(G, '`')) goto l589; goto l586;
  3536. l589:; G->pos= yypos589; G->thunkpos= yythunkpos589;
  3537. } if (!yy_Nonspacechar(G)) { goto l586; }
  3538. l587:;
  3539. { int yypos588= G->pos, yythunkpos588= G->thunkpos;
  3540. { int yypos590= G->pos, yythunkpos590= G->thunkpos; if (!yymatchChar(G, '`')) goto l590; goto l588;
  3541. l590:; G->pos= yypos590; G->thunkpos= yythunkpos590;
  3542. } if (!yy_Nonspacechar(G)) { goto l588; } goto l587;
  3543. l588:; G->pos= yypos588; G->thunkpos= yythunkpos588;
  3544. } goto l585;
  3545. l586:; G->pos= yypos585; G->thunkpos= yythunkpos585;
  3546. { int yypos592= G->pos, yythunkpos592= G->thunkpos; if (!yy_Ticks5(G)) { goto l592; } goto l591;
  3547. l592:; G->pos= yypos592; G->thunkpos= yythunkpos592;
  3548. } if (!yymatchChar(G, '`')) goto l591;
  3549. l593:;
  3550. { int yypos594= G->pos, yythunkpos594= G->thunkpos; if (!yymatchChar(G, '`')) goto l594; goto l593;
  3551. l594:; G->pos= yypos594; G->thunkpos= yythunkpos594;
  3552. } goto l585;
  3553. l591:; G->pos= yypos585; G->thunkpos= yythunkpos585;
  3554. { int yypos595= G->pos, yythunkpos595= G->thunkpos; if (!yy_Sp(G)) { goto l595; } if (!yy_Ticks5(G)) { goto l595; } goto l457;
  3555. l595:; G->pos= yypos595; G->thunkpos= yythunkpos595;
  3556. }
  3557. { int yypos596= G->pos, yythunkpos596= G->thunkpos; if (!yy_Spacechar(G)) { goto l597; } goto l596;
  3558. l597:; G->pos= yypos596; G->thunkpos= yythunkpos596; if (!yy_Newline(G)) { goto l457; }
  3559. { int yypos598= G->pos, yythunkpos598= G->thunkpos; if (!yy_BlankLine(G)) { goto l598; } goto l457;
  3560. l598:; G->pos= yypos598; G->thunkpos= yythunkpos598;
  3561. }
  3562. }
  3563. l596:;
  3564. }
  3565. l585:;
  3566. l583:;
  3567. { int yypos584= G->pos, yythunkpos584= G->thunkpos;
  3568. { int yypos599= G->pos, yythunkpos599= G->thunkpos;
  3569. { int yypos603= G->pos, yythunkpos603= G->thunkpos; if (!yymatchChar(G, '`')) goto l603; goto l600;
  3570. l603:; G->pos= yypos603; G->thunkpos= yythunkpos603;
  3571. } if (!yy_Nonspacechar(G)) { goto l600; }
  3572. l601:;
  3573. { int yypos602= G->pos, yythunkpos602= G->thunkpos;
  3574. { int yypos604= G->pos, yythunkpos604= G->thunkpos; if (!yymatchChar(G, '`')) goto l604; goto l602;
  3575. l604:; G->pos= yypos604; G->thunkpos= yythunkpos604;
  3576. } if (!yy_Nonspacechar(G)) { goto l602; } goto l601;
  3577. l602:; G->pos= yypos602; G->thunkpos= yythunkpos602;
  3578. } goto l599;
  3579. l600:; G->pos= yypos599; G->thunkpos= yythunkpos599;
  3580. { int yypos606= G->pos, yythunkpos606= G->thunkpos; if (!yy_Ticks5(G)) { goto l606; } goto l605;
  3581. l606:; G->pos= yypos606; G->thunkpos= yythunkpos606;
  3582. } if (!yymatchChar(G, '`')) goto l605;
  3583. l607:;
  3584. { int yypos608= G->pos, yythunkpos608= G->thunkpos; if (!yymatchChar(G, '`')) goto l608; goto l607;
  3585. l608:; G->pos= yypos608; G->thunkpos= yythunkpos608;
  3586. } goto l599;
  3587. l605:; G->pos= yypos599; G->thunkpos= yythunkpos599;
  3588. { int yypos609= G->pos, yythunkpos609= G->thunkpos; if (!yy_Sp(G)) { goto l609; } if (!yy_Ticks5(G)) { goto l609; } goto l584;
  3589. l609:; G->pos= yypos609; G->thunkpos= yythunkpos609;
  3590. }
  3591. { int yypos610= G->pos, yythunkpos610= G->thunkpos; if (!yy_Spacechar(G)) { goto l611; } goto l610;
  3592. l611:; G->pos= yypos610; G->thunkpos= yythunkpos610; if (!yy_Newline(G)) { goto l584; }
  3593. { int yypos612= G->pos, yythunkpos612= G->thunkpos; if (!yy_BlankLine(G)) { goto l612; } goto l584;
  3594. l612:; G->pos= yypos612; G->thunkpos= yythunkpos612;
  3595. }
  3596. }
  3597. l610:;
  3598. }
  3599. l599:; goto l583;
  3600. l584:; G->pos= yypos584; G->thunkpos= yythunkpos584;
  3601. } if (!yy_Sp(G)) { goto l457; } if (!yy_Ticks5(G)) { goto l457; }
  3602. }
  3603. l458:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l457; yyDo(G, yy_1_Code, G->begin, G->end);
  3604. yyprintf((stderr, " ok %s @ %s\n", "Code", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3605. return 1;
  3606. l457:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3607. yyprintf((stderr, " fail %s @ %s\n", "Code", G->buf+G->pos));
  3608. return 0;
  3609. }
  3610. YY_RULE(int) yy_InlineNote(GREG *G)
  3611. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3612. yyprintf((stderr, "%s\n", "InlineNote")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l613; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l613; if (!yy_LocMarker(G)) { goto l613; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "^[")) goto l613;
  3613. { int yypos616= G->pos, yythunkpos616= G->thunkpos; if (!yymatchChar(G, ']')) goto l616; goto l613;
  3614. l616:; G->pos= yypos616; G->thunkpos= yythunkpos616;
  3615. } if (!yy_Inline(G)) { goto l613; }
  3616. l614:;
  3617. { int yypos615= G->pos, yythunkpos615= G->thunkpos;
  3618. { int yypos617= G->pos, yythunkpos617= G->thunkpos; if (!yymatchChar(G, ']')) goto l617; goto l615;
  3619. l617:; G->pos= yypos617; G->thunkpos= yythunkpos617;
  3620. } if (!yy_Inline(G)) { goto l615; } goto l614;
  3621. l615:; G->pos= yypos615; G->thunkpos= yythunkpos615;
  3622. } if (!yymatchChar(G, ']')) goto l613; yyText(G, G->begin, G->end); if (!(YY_END)) goto l613; yyDo(G, yy_1_InlineNote, G->begin, G->end);
  3623. yyprintf((stderr, " ok %s @ %s\n", "InlineNote", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3624. return 1;
  3625. l613:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3626. yyprintf((stderr, " fail %s @ %s\n", "InlineNote", G->buf+G->pos));
  3627. return 0;
  3628. }
  3629. YY_RULE(int) yy_NoteReference(GREG *G)
  3630. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3631. yyprintf((stderr, "%s\n", "NoteReference")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l618; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l618; if (!yy_RawNoteReference(G)) { goto l618; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l618; yyDo(G, yy_1_NoteReference, G->begin, G->end);
  3632. yyprintf((stderr, " ok %s @ %s\n", "NoteReference", G->buf+G->pos));
  3633. return 1;
  3634. l618:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3635. yyprintf((stderr, " fail %s @ %s\n", "NoteReference", G->buf+G->pos));
  3636. return 0;
  3637. }
  3638. YY_RULE(int) yy_Link(GREG *G)
  3639. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3640. yyprintf((stderr, "%s\n", "Link"));
  3641. { int yypos620= G->pos, yythunkpos620= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l621; } goto l620;
  3642. l621:; G->pos= yypos620; G->thunkpos= yythunkpos620; if (!yy_ReferenceLink(G)) { goto l622; } goto l620;
  3643. l622:; G->pos= yypos620; G->thunkpos= yythunkpos620; if (!yy_AutoLink(G)) { goto l619; }
  3644. }
  3645. l620:; yyDo(G, yy_1_Link, G->begin, G->end);
  3646. yyprintf((stderr, " ok %s @ %s\n", "Link", G->buf+G->pos));
  3647. return 1;
  3648. l619:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3649. yyprintf((stderr, " fail %s @ %s\n", "Link", G->buf+G->pos));
  3650. return 0;
  3651. }
  3652. YY_RULE(int) yy_Image(GREG *G)
  3653. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3654. yyprintf((stderr, "%s\n", "Image")); if (!yymatchChar(G, '!')) goto l623;
  3655. { int yypos624= G->pos, yythunkpos624= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l625; } goto l624;
  3656. l625:; G->pos= yypos624; G->thunkpos= yythunkpos624; if (!yy_ExplicitLinkSize(G)) { goto l626; } goto l624;
  3657. l626:; G->pos= yypos624; G->thunkpos= yythunkpos624; if (!yy_ReferenceLink(G)) { goto l623; }
  3658. }
  3659. l624:; yyDo(G, yy_1_Image, G->begin, G->end);
  3660. yyprintf((stderr, " ok %s @ %s\n", "Image", G->buf+G->pos));
  3661. return 1;
  3662. l623:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3663. yyprintf((stderr, " fail %s @ %s\n", "Image", G->buf+G->pos));
  3664. return 0;
  3665. }
  3666. YY_RULE(int) yy_Strike(GREG *G)
  3667. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3668. yyprintf((stderr, "%s\n", "Strike")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_STRIKE) )) goto l627; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l627; if (!yy_LocMarker(G)) { goto l627; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "~~")) goto l627;
  3669. { int yypos628= G->pos, yythunkpos628= G->thunkpos; if (!yy_Whitespace(G)) { goto l628; } goto l627;
  3670. l628:; G->pos= yypos628; G->thunkpos= yythunkpos628;
  3671. }
  3672. { int yypos631= G->pos, yythunkpos631= G->thunkpos; if (!yymatchString(G, "~~")) goto l631; goto l627;
  3673. l631:; G->pos= yypos631; G->thunkpos= yythunkpos631;
  3674. } if (!yy_Inline(G)) { goto l627; }
  3675. l629:;
  3676. { int yypos630= G->pos, yythunkpos630= G->thunkpos;
  3677. { int yypos632= G->pos, yythunkpos632= G->thunkpos; if (!yymatchString(G, "~~")) goto l632; goto l630;
  3678. l632:; G->pos= yypos632; G->thunkpos= yythunkpos632;
  3679. } if (!yy_Inline(G)) { goto l630; } goto l629;
  3680. l630:; G->pos= yypos630; G->thunkpos= yythunkpos630;
  3681. } if (!yymatchString(G, "~~")) goto l627; yyText(G, G->begin, G->end); if (!(YY_END)) goto l627; yyDo(G, yy_1_Strike, G->begin, G->end);
  3682. yyprintf((stderr, " ok %s @ %s\n", "Strike", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3683. return 1;
  3684. l627:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3685. yyprintf((stderr, " fail %s @ %s\n", "Strike", G->buf+G->pos));
  3686. return 0;
  3687. }
  3688. YY_RULE(int) yy_Emph(GREG *G)
  3689. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3690. yyprintf((stderr, "%s\n", "Emph"));
  3691. { int yypos634= G->pos, yythunkpos634= G->thunkpos; if (!yy_EmphStar(G)) { goto l635; } goto l634;
  3692. l635:; G->pos= yypos634; G->thunkpos= yythunkpos634; if (!yy_EmphUl(G)) { goto l633; }
  3693. }
  3694. l634:;
  3695. yyprintf((stderr, " ok %s @ %s\n", "Emph", G->buf+G->pos));
  3696. return 1;
  3697. l633:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3698. yyprintf((stderr, " fail %s @ %s\n", "Emph", G->buf+G->pos));
  3699. return 0;
  3700. }
  3701. YY_RULE(int) yy_Strong(GREG *G)
  3702. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3703. yyprintf((stderr, "%s\n", "Strong"));
  3704. { int yypos637= G->pos, yythunkpos637= G->thunkpos; if (!yy_StrongStar(G)) { goto l638; } goto l637;
  3705. l638:; G->pos= yypos637; G->thunkpos= yythunkpos637; if (!yy_StrongUl(G)) { goto l636; }
  3706. }
  3707. l637:;
  3708. yyprintf((stderr, " ok %s @ %s\n", "Strong", G->buf+G->pos));
  3709. return 1;
  3710. l636:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3711. yyprintf((stderr, " fail %s @ %s\n", "Strong", G->buf+G->pos));
  3712. return 0;
  3713. }
  3714. YY_RULE(int) yy_UlOrStarLine(GREG *G)
  3715. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3716. yyprintf((stderr, "%s\n", "UlOrStarLine"));
  3717. { int yypos640= G->pos, yythunkpos640= G->thunkpos; if (!yy_UlLine(G)) { goto l641; } goto l640;
  3718. l641:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yy_StarLine(G)) { goto l639; }
  3719. }
  3720. l640:;
  3721. yyprintf((stderr, " ok %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3722. return 1;
  3723. l639:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3724. yyprintf((stderr, " fail %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3725. return 0;
  3726. }
  3727. YY_RULE(int) yy_Str(GREG *G)
  3728. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3729. yyprintf((stderr, "%s\n", "Str")); if (!yy_NormalChar(G)) { goto l642; }
  3730. l643:;
  3731. { int yypos644= G->pos, yythunkpos644= G->thunkpos;
  3732. { int yypos645= G->pos, yythunkpos645= G->thunkpos; if (!yy_NormalChar(G)) { goto l646; } goto l645;
  3733. l646:; G->pos= yypos645; G->thunkpos= yythunkpos645; if (!yymatchChar(G, '_')) goto l644;
  3734. l647:;
  3735. { int yypos648= G->pos, yythunkpos648= G->thunkpos; if (!yymatchChar(G, '_')) goto l648; goto l647;
  3736. l648:; G->pos= yypos648; G->thunkpos= yythunkpos648;
  3737. }
  3738. { int yypos649= G->pos, yythunkpos649= G->thunkpos; if (!yy_Alphanumeric(G)) { goto l644; } G->pos= yypos649; G->thunkpos= yythunkpos649;
  3739. }
  3740. }
  3741. l645:; goto l643;
  3742. l644:; G->pos= yypos644; G->thunkpos= yythunkpos644;
  3743. }
  3744. yyprintf((stderr, " ok %s @ %s\n", "Str", G->buf+G->pos));
  3745. return 1;
  3746. l642:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3747. yyprintf((stderr, " fail %s @ %s\n", "Str", G->buf+G->pos));
  3748. return 0;
  3749. }
  3750. YY_RULE(int) yy_InStyleTags(GREG *G)
  3751. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3752. yyprintf((stderr, "%s\n", "InStyleTags")); if (!yy_StyleOpen(G)) { goto l650; }
  3753. l651:;
  3754. { int yypos652= G->pos, yythunkpos652= G->thunkpos;
  3755. { int yypos653= G->pos, yythunkpos653= G->thunkpos; if (!yy_StyleClose(G)) { goto l653; } goto l652;
  3756. l653:; G->pos= yypos653; G->thunkpos= yythunkpos653;
  3757. } if (!yymatchDot(G)) goto l652; goto l651;
  3758. l652:; G->pos= yypos652; G->thunkpos= yythunkpos652;
  3759. } if (!yy_StyleClose(G)) { goto l650; }
  3760. yyprintf((stderr, " ok %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3761. return 1;
  3762. l650:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3763. yyprintf((stderr, " fail %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3764. return 0;
  3765. }
  3766. YY_RULE(int) yy_StyleClose(GREG *G)
  3767. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3768. yyprintf((stderr, "%s\n", "StyleClose")); if (!yymatchChar(G, '<')) goto l654; if (!yy_Spnl(G)) { goto l654; } if (!yymatchChar(G, '/')) goto l654;
  3769. { int yypos655= G->pos, yythunkpos655= G->thunkpos; if (!yymatchString(G, "style")) goto l656; goto l655;
  3770. l656:; G->pos= yypos655; G->thunkpos= yythunkpos655; if (!yymatchString(G, "STYLE")) goto l654;
  3771. }
  3772. l655:; if (!yy_Spnl(G)) { goto l654; } if (!yymatchChar(G, '>')) goto l654;
  3773. yyprintf((stderr, " ok %s @ %s\n", "StyleClose", G->buf+G->pos));
  3774. return 1;
  3775. l654:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3776. yyprintf((stderr, " fail %s @ %s\n", "StyleClose", G->buf+G->pos));
  3777. return 0;
  3778. }
  3779. YY_RULE(int) yy_StyleOpen(GREG *G)
  3780. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3781. yyprintf((stderr, "%s\n", "StyleOpen")); if (!yymatchChar(G, '<')) goto l657; if (!yy_Spnl(G)) { goto l657; }
  3782. { int yypos658= G->pos, yythunkpos658= G->thunkpos; if (!yymatchString(G, "style")) goto l659; goto l658;
  3783. l659:; G->pos= yypos658; G->thunkpos= yythunkpos658; if (!yymatchString(G, "STYLE")) goto l657;
  3784. }
  3785. l658:; if (!yy_Spnl(G)) { goto l657; }
  3786. l660:;
  3787. { int yypos661= G->pos, yythunkpos661= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l661; } goto l660;
  3788. l661:; G->pos= yypos661; G->thunkpos= yythunkpos661;
  3789. } if (!yymatchChar(G, '>')) goto l657;
  3790. yyprintf((stderr, " ok %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3791. return 1;
  3792. l657:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3793. yyprintf((stderr, " fail %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3794. return 0;
  3795. }
  3796. YY_RULE(int) yy_HtmlBlockType(GREG *G)
  3797. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3798. yyprintf((stderr, "%s\n", "HtmlBlockType"));
  3799. { int yypos663= G->pos, yythunkpos663= G->thunkpos; if (!yymatchString(G, "address")) goto l664; goto l663;
  3800. l664:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "blockquote")) goto l665; goto l663;
  3801. l665:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "center")) goto l666; goto l663;
  3802. l666:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dir")) goto l667; goto l663;
  3803. l667:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "div")) goto l668; goto l663;
  3804. l668:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dl")) goto l669; goto l663;
  3805. l669:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "fieldset")) goto l670; goto l663;
  3806. l670:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "form")) goto l671; goto l663;
  3807. l671:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h1")) goto l672; goto l663;
  3808. l672:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h2")) goto l673; goto l663;
  3809. l673:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h3")) goto l674; goto l663;
  3810. l674:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h4")) goto l675; goto l663;
  3811. l675:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h5")) goto l676; goto l663;
  3812. l676:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h6")) goto l677; goto l663;
  3813. l677:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "hr")) goto l678; goto l663;
  3814. l678:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "isindex")) goto l679; goto l663;
  3815. l679:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "menu")) goto l680; goto l663;
  3816. l680:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "noframes")) goto l681; goto l663;
  3817. l681:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "noscript")) goto l682; goto l663;
  3818. l682:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ol")) goto l683; goto l663;
  3819. l683:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchChar(G, 'p')) goto l684; goto l663;
  3820. l684:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "pre")) goto l685; goto l663;
  3821. l685:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "table")) goto l686; goto l663;
  3822. l686:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ul")) goto l687; goto l663;
  3823. l687:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dd")) goto l688; goto l663;
  3824. l688:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dt")) goto l689; goto l663;
  3825. l689:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "frameset")) goto l690; goto l663;
  3826. l690:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "li")) goto l691; goto l663;
  3827. l691:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "tbody")) goto l692; goto l663;
  3828. l692:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "td")) goto l693; goto l663;
  3829. l693:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "tfoot")) goto l694; goto l663;
  3830. l694:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "th")) goto l695; goto l663;
  3831. l695:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "thead")) goto l696; goto l663;
  3832. l696:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "tr")) goto l697; goto l663;
  3833. l697:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "script")) goto l698; goto l663;
  3834. l698:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ADDRESS")) goto l699; goto l663;
  3835. l699:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "BLOCKQUOTE")) goto l700; goto l663;
  3836. l700:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "CENTER")) goto l701; goto l663;
  3837. l701:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DIR")) goto l702; goto l663;
  3838. l702:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DIV")) goto l703; goto l663;
  3839. l703:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DL")) goto l704; goto l663;
  3840. l704:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "FIELDSET")) goto l705; goto l663;
  3841. l705:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "FORM")) goto l706; goto l663;
  3842. l706:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H1")) goto l707; goto l663;
  3843. l707:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H2")) goto l708; goto l663;
  3844. l708:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H3")) goto l709; goto l663;
  3845. l709:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H4")) goto l710; goto l663;
  3846. l710:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H5")) goto l711; goto l663;
  3847. l711:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H6")) goto l712; goto l663;
  3848. l712:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "HR")) goto l713; goto l663;
  3849. l713:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ISINDEX")) goto l714; goto l663;
  3850. l714:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "MENU")) goto l715; goto l663;
  3851. l715:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "NOFRAMES")) goto l716; goto l663;
  3852. l716:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "NOSCRIPT")) goto l717; goto l663;
  3853. l717:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "OL")) goto l718; goto l663;
  3854. l718:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchChar(G, 'P')) goto l719; goto l663;
  3855. l719:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "PRE")) goto l720; goto l663;
  3856. l720:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TABLE")) goto l721; goto l663;
  3857. l721:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "UL")) goto l722; goto l663;
  3858. l722:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DD")) goto l723; goto l663;
  3859. l723:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DT")) goto l724; goto l663;
  3860. l724:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "FRAMESET")) goto l725; goto l663;
  3861. l725:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "LI")) goto l726; goto l663;
  3862. l726:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TBODY")) goto l727; goto l663;
  3863. l727:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TD")) goto l728; goto l663;
  3864. l728:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TFOOT")) goto l729; goto l663;
  3865. l729:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TH")) goto l730; goto l663;
  3866. l730:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "THEAD")) goto l731; goto l663;
  3867. l731:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TR")) goto l732; goto l663;
  3868. l732:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "SCRIPT")) goto l662;
  3869. }
  3870. l663:;
  3871. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3872. return 1;
  3873. l662:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3874. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3875. return 0;
  3876. }
  3877. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G)
  3878. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3879. yyprintf((stderr, "%s\n", "HtmlBlockSelfClosing")); if (!yymatchChar(G, '<')) goto l733; if (!yy_Spnl(G)) { goto l733; } if (!yy_HtmlBlockType(G)) { goto l733; } if (!yy_Spnl(G)) { goto l733; }
  3880. l734:;
  3881. { int yypos735= G->pos, yythunkpos735= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l735; } goto l734;
  3882. l735:; G->pos= yypos735; G->thunkpos= yythunkpos735;
  3883. } if (!yymatchChar(G, '/')) goto l733; if (!yy_Spnl(G)) { goto l733; } if (!yymatchChar(G, '>')) goto l733;
  3884. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3885. return 1;
  3886. l733:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3887. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3888. return 0;
  3889. }
  3890. YY_RULE(int) yy_HtmlComment(GREG *G)
  3891. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3892. yyprintf((stderr, "%s\n", "HtmlComment")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l736; if (!yy_LocMarker(G)) { goto l736; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "<!--")) goto l736;
  3893. l737:;
  3894. { int yypos738= G->pos, yythunkpos738= G->thunkpos;
  3895. { int yypos739= G->pos, yythunkpos739= G->thunkpos; if (!yymatchString(G, "-->")) goto l739; goto l738;
  3896. l739:; G->pos= yypos739; G->thunkpos= yythunkpos739;
  3897. } if (!yymatchDot(G)) goto l738; goto l737;
  3898. l738:; G->pos= yypos738; G->thunkpos= yythunkpos738;
  3899. } if (!yymatchString(G, "-->")) goto l736; yyText(G, G->begin, G->end); if (!(YY_END)) goto l736; yyDo(G, yy_1_HtmlComment, G->begin, G->end);
  3900. yyprintf((stderr, " ok %s @ %s\n", "HtmlComment", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3901. return 1;
  3902. l736:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3903. yyprintf((stderr, " fail %s @ %s\n", "HtmlComment", G->buf+G->pos));
  3904. return 0;
  3905. }
  3906. YY_RULE(int) yy_HtmlBlockInTags(GREG *G)
  3907. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3908. yyprintf((stderr, "%s\n", "HtmlBlockInTags"));
  3909. { int yypos741= G->pos, yythunkpos741= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l742; } goto l741;
  3910. l742:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockBlockquote(G)) { goto l743; } goto l741;
  3911. l743:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockCenter(G)) { goto l744; } goto l741;
  3912. l744:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDir(G)) { goto l745; } goto l741;
  3913. l745:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDiv(G)) { goto l746; } goto l741;
  3914. l746:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDl(G)) { goto l747; } goto l741;
  3915. l747:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockFieldset(G)) { goto l748; } goto l741;
  3916. l748:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockForm(G)) { goto l749; } goto l741;
  3917. l749:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH1(G)) { goto l750; } goto l741;
  3918. l750:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH2(G)) { goto l751; } goto l741;
  3919. l751:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH3(G)) { goto l752; } goto l741;
  3920. l752:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH4(G)) { goto l753; } goto l741;
  3921. l753:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH5(G)) { goto l754; } goto l741;
  3922. l754:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH6(G)) { goto l755; } goto l741;
  3923. l755:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockMenu(G)) { goto l756; } goto l741;
  3924. l756:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockNoframes(G)) { goto l757; } goto l741;
  3925. l757:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockNoscript(G)) { goto l758; } goto l741;
  3926. l758:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockOl(G)) { goto l759; } goto l741;
  3927. l759:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockP(G)) { goto l760; } goto l741;
  3928. l760:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockPre(G)) { goto l761; } goto l741;
  3929. l761:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTable(G)) { goto l762; } goto l741;
  3930. l762:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockUl(G)) { goto l763; } goto l741;
  3931. l763:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDd(G)) { goto l764; } goto l741;
  3932. l764:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDt(G)) { goto l765; } goto l741;
  3933. l765:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockFrameset(G)) { goto l766; } goto l741;
  3934. l766:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockLi(G)) { goto l767; } goto l741;
  3935. l767:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTbody(G)) { goto l768; } goto l741;
  3936. l768:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTd(G)) { goto l769; } goto l741;
  3937. l769:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTfoot(G)) { goto l770; } goto l741;
  3938. l770:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTh(G)) { goto l771; } goto l741;
  3939. l771:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockThead(G)) { goto l772; } goto l741;
  3940. l772:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTr(G)) { goto l773; } goto l741;
  3941. l773:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockScript(G)) { goto l774; } goto l741;
  3942. l774:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockHead(G)) { goto l740; }
  3943. }
  3944. l741:;
  3945. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3946. return 1;
  3947. l740:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3948. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3949. return 0;
  3950. }
  3951. YY_RULE(int) yy_HtmlBlockHead(GREG *G)
  3952. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3953. yyprintf((stderr, "%s\n", "HtmlBlockHead")); if (!yy_HtmlBlockOpenHead(G)) { goto l775; }
  3954. l776:;
  3955. { int yypos777= G->pos, yythunkpos777= G->thunkpos;
  3956. { int yypos778= G->pos, yythunkpos778= G->thunkpos; if (!yy_HtmlBlockCloseHead(G)) { goto l778; } goto l777;
  3957. l778:; G->pos= yypos778; G->thunkpos= yythunkpos778;
  3958. } if (!yymatchDot(G)) goto l777; goto l776;
  3959. l777:; G->pos= yypos777; G->thunkpos= yythunkpos777;
  3960. } if (!yy_HtmlBlockCloseHead(G)) { goto l775; }
  3961. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3962. return 1;
  3963. l775:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3964. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3965. return 0;
  3966. }
  3967. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G)
  3968. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3969. yyprintf((stderr, "%s\n", "HtmlBlockCloseHead")); if (!yymatchChar(G, '<')) goto l779; if (!yy_Spnl(G)) { goto l779; } if (!yymatchChar(G, '/')) goto l779;
  3970. { int yypos780= G->pos, yythunkpos780= G->thunkpos; if (!yymatchString(G, "head")) goto l781; goto l780;
  3971. l781:; G->pos= yypos780; G->thunkpos= yythunkpos780; if (!yymatchString(G, "HEAD")) goto l779;
  3972. }
  3973. l780:; if (!yy_Spnl(G)) { goto l779; } if (!yymatchChar(G, '>')) goto l779;
  3974. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3975. return 1;
  3976. l779:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3977. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3978. return 0;
  3979. }
  3980. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G)
  3981. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3982. yyprintf((stderr, "%s\n", "HtmlBlockOpenHead")); if (!yymatchChar(G, '<')) goto l782; if (!yy_Spnl(G)) { goto l782; }
  3983. { int yypos783= G->pos, yythunkpos783= G->thunkpos; if (!yymatchString(G, "head")) goto l784; goto l783;
  3984. l784:; G->pos= yypos783; G->thunkpos= yythunkpos783; if (!yymatchString(G, "HEAD")) goto l782;
  3985. }
  3986. l783:; if (!yy_Spnl(G)) { goto l782; }
  3987. l785:;
  3988. { int yypos786= G->pos, yythunkpos786= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l786; } goto l785;
  3989. l786:; G->pos= yypos786; G->thunkpos= yythunkpos786;
  3990. } if (!yymatchChar(G, '>')) goto l782;
  3991. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3992. return 1;
  3993. l782:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3994. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3995. return 0;
  3996. }
  3997. YY_RULE(int) yy_HtmlBlockScript(GREG *G)
  3998. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3999. yyprintf((stderr, "%s\n", "HtmlBlockScript")); if (!yy_HtmlBlockOpenScript(G)) { goto l787; }
  4000. l788:;
  4001. { int yypos789= G->pos, yythunkpos789= G->thunkpos;
  4002. { int yypos790= G->pos, yythunkpos790= G->thunkpos; if (!yy_HtmlBlockCloseScript(G)) { goto l790; } goto l789;
  4003. l790:; G->pos= yypos790; G->thunkpos= yythunkpos790;
  4004. } if (!yymatchDot(G)) goto l789; goto l788;
  4005. l789:; G->pos= yypos789; G->thunkpos= yythunkpos789;
  4006. } if (!yy_HtmlBlockCloseScript(G)) { goto l787; }
  4007. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  4008. return 1;
  4009. l787:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4010. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  4011. return 0;
  4012. }
  4013. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G)
  4014. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4015. yyprintf((stderr, "%s\n", "HtmlBlockCloseScript")); if (!yymatchChar(G, '<')) goto l791; if (!yy_Spnl(G)) { goto l791; } if (!yymatchChar(G, '/')) goto l791;
  4016. { int yypos792= G->pos, yythunkpos792= G->thunkpos; if (!yymatchString(G, "script")) goto l793; goto l792;
  4017. l793:; G->pos= yypos792; G->thunkpos= yythunkpos792; if (!yymatchString(G, "SCRIPT")) goto l791;
  4018. }
  4019. l792:; if (!yy_Spnl(G)) { goto l791; } if (!yymatchChar(G, '>')) goto l791;
  4020. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  4021. return 1;
  4022. l791:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4023. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  4024. return 0;
  4025. }
  4026. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G)
  4027. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4028. yyprintf((stderr, "%s\n", "HtmlBlockOpenScript")); if (!yymatchChar(G, '<')) goto l794; if (!yy_Spnl(G)) { goto l794; }
  4029. { int yypos795= G->pos, yythunkpos795= G->thunkpos; if (!yymatchString(G, "script")) goto l796; goto l795;
  4030. l796:; G->pos= yypos795; G->thunkpos= yythunkpos795; if (!yymatchString(G, "SCRIPT")) goto l794;
  4031. }
  4032. l795:; if (!yy_Spnl(G)) { goto l794; }
  4033. l797:;
  4034. { int yypos798= G->pos, yythunkpos798= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l798; } goto l797;
  4035. l798:; G->pos= yypos798; G->thunkpos= yythunkpos798;
  4036. } if (!yymatchChar(G, '>')) goto l794;
  4037. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  4038. return 1;
  4039. l794:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4040. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  4041. return 0;
  4042. }
  4043. YY_RULE(int) yy_HtmlBlockTr(GREG *G)
  4044. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4045. yyprintf((stderr, "%s\n", "HtmlBlockTr")); if (!yy_HtmlBlockOpenTr(G)) { goto l799; }
  4046. l800:;
  4047. { int yypos801= G->pos, yythunkpos801= G->thunkpos;
  4048. { int yypos802= G->pos, yythunkpos802= G->thunkpos; if (!yy_HtmlBlockTr(G)) { goto l803; } goto l802;
  4049. l803:; G->pos= yypos802; G->thunkpos= yythunkpos802;
  4050. { int yypos804= G->pos, yythunkpos804= G->thunkpos; if (!yy_HtmlBlockCloseTr(G)) { goto l804; } goto l801;
  4051. l804:; G->pos= yypos804; G->thunkpos= yythunkpos804;
  4052. } if (!yymatchDot(G)) goto l801;
  4053. }
  4054. l802:; goto l800;
  4055. l801:; G->pos= yypos801; G->thunkpos= yythunkpos801;
  4056. } if (!yy_HtmlBlockCloseTr(G)) { goto l799; }
  4057. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  4058. return 1;
  4059. l799:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4060. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  4061. return 0;
  4062. }
  4063. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G)
  4064. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4065. yyprintf((stderr, "%s\n", "HtmlBlockCloseTr")); if (!yymatchChar(G, '<')) goto l805; if (!yy_Spnl(G)) { goto l805; } if (!yymatchChar(G, '/')) goto l805;
  4066. { int yypos806= G->pos, yythunkpos806= G->thunkpos; if (!yymatchString(G, "tr")) goto l807; goto l806;
  4067. l807:; G->pos= yypos806; G->thunkpos= yythunkpos806; if (!yymatchString(G, "TR")) goto l805;
  4068. }
  4069. l806:; if (!yy_Spnl(G)) { goto l805; } if (!yymatchChar(G, '>')) goto l805;
  4070. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  4071. return 1;
  4072. l805:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4073. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  4074. return 0;
  4075. }
  4076. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G)
  4077. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4078. yyprintf((stderr, "%s\n", "HtmlBlockOpenTr")); if (!yymatchChar(G, '<')) goto l808; if (!yy_Spnl(G)) { goto l808; }
  4079. { int yypos809= G->pos, yythunkpos809= G->thunkpos; if (!yymatchString(G, "tr")) goto l810; goto l809;
  4080. l810:; G->pos= yypos809; G->thunkpos= yythunkpos809; if (!yymatchString(G, "TR")) goto l808;
  4081. }
  4082. l809:; if (!yy_Spnl(G)) { goto l808; }
  4083. l811:;
  4084. { int yypos812= G->pos, yythunkpos812= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l812; } goto l811;
  4085. l812:; G->pos= yypos812; G->thunkpos= yythunkpos812;
  4086. } if (!yymatchChar(G, '>')) goto l808;
  4087. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  4088. return 1;
  4089. l808:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4090. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  4091. return 0;
  4092. }
  4093. YY_RULE(int) yy_HtmlBlockThead(GREG *G)
  4094. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4095. yyprintf((stderr, "%s\n", "HtmlBlockThead")); if (!yy_HtmlBlockOpenThead(G)) { goto l813; }
  4096. l814:;
  4097. { int yypos815= G->pos, yythunkpos815= G->thunkpos;
  4098. { int yypos816= G->pos, yythunkpos816= G->thunkpos; if (!yy_HtmlBlockThead(G)) { goto l817; } goto l816;
  4099. l817:; G->pos= yypos816; G->thunkpos= yythunkpos816;
  4100. { int yypos818= G->pos, yythunkpos818= G->thunkpos; if (!yy_HtmlBlockCloseThead(G)) { goto l818; } goto l815;
  4101. l818:; G->pos= yypos818; G->thunkpos= yythunkpos818;
  4102. } if (!yymatchDot(G)) goto l815;
  4103. }
  4104. l816:; goto l814;
  4105. l815:; G->pos= yypos815; G->thunkpos= yythunkpos815;
  4106. } if (!yy_HtmlBlockCloseThead(G)) { goto l813; }
  4107. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  4108. return 1;
  4109. l813:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4110. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  4111. return 0;
  4112. }
  4113. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G)
  4114. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4115. yyprintf((stderr, "%s\n", "HtmlBlockCloseThead")); if (!yymatchChar(G, '<')) goto l819; if (!yy_Spnl(G)) { goto l819; } if (!yymatchChar(G, '/')) goto l819;
  4116. { int yypos820= G->pos, yythunkpos820= G->thunkpos; if (!yymatchString(G, "thead")) goto l821; goto l820;
  4117. l821:; G->pos= yypos820; G->thunkpos= yythunkpos820; if (!yymatchString(G, "THEAD")) goto l819;
  4118. }
  4119. l820:; if (!yy_Spnl(G)) { goto l819; } if (!yymatchChar(G, '>')) goto l819;
  4120. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  4121. return 1;
  4122. l819:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4123. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  4124. return 0;
  4125. }
  4126. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G)
  4127. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4128. yyprintf((stderr, "%s\n", "HtmlBlockOpenThead")); if (!yymatchChar(G, '<')) goto l822; if (!yy_Spnl(G)) { goto l822; }
  4129. { int yypos823= G->pos, yythunkpos823= G->thunkpos; if (!yymatchString(G, "thead")) goto l824; goto l823;
  4130. l824:; G->pos= yypos823; G->thunkpos= yythunkpos823; if (!yymatchString(G, "THEAD")) goto l822;
  4131. }
  4132. l823:; if (!yy_Spnl(G)) { goto l822; }
  4133. l825:;
  4134. { int yypos826= G->pos, yythunkpos826= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l826; } goto l825;
  4135. l826:; G->pos= yypos826; G->thunkpos= yythunkpos826;
  4136. } if (!yymatchChar(G, '>')) goto l822;
  4137. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  4138. return 1;
  4139. l822:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4140. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  4141. return 0;
  4142. }
  4143. YY_RULE(int) yy_HtmlBlockTh(GREG *G)
  4144. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4145. yyprintf((stderr, "%s\n", "HtmlBlockTh")); if (!yy_HtmlBlockOpenTh(G)) { goto l827; }
  4146. l828:;
  4147. { int yypos829= G->pos, yythunkpos829= G->thunkpos;
  4148. { int yypos830= G->pos, yythunkpos830= G->thunkpos; if (!yy_HtmlBlockTh(G)) { goto l831; } goto l830;
  4149. l831:; G->pos= yypos830; G->thunkpos= yythunkpos830;
  4150. { int yypos832= G->pos, yythunkpos832= G->thunkpos; if (!yy_HtmlBlockCloseTh(G)) { goto l832; } goto l829;
  4151. l832:; G->pos= yypos832; G->thunkpos= yythunkpos832;
  4152. } if (!yymatchDot(G)) goto l829;
  4153. }
  4154. l830:; goto l828;
  4155. l829:; G->pos= yypos829; G->thunkpos= yythunkpos829;
  4156. } if (!yy_HtmlBlockCloseTh(G)) { goto l827; }
  4157. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  4158. return 1;
  4159. l827:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4160. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  4161. return 0;
  4162. }
  4163. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G)
  4164. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4165. yyprintf((stderr, "%s\n", "HtmlBlockCloseTh")); if (!yymatchChar(G, '<')) goto l833; if (!yy_Spnl(G)) { goto l833; } if (!yymatchChar(G, '/')) goto l833;
  4166. { int yypos834= G->pos, yythunkpos834= G->thunkpos; if (!yymatchString(G, "th")) goto l835; goto l834;
  4167. l835:; G->pos= yypos834; G->thunkpos= yythunkpos834; if (!yymatchString(G, "TH")) goto l833;
  4168. }
  4169. l834:; if (!yy_Spnl(G)) { goto l833; } if (!yymatchChar(G, '>')) goto l833;
  4170. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  4171. return 1;
  4172. l833:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4173. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  4174. return 0;
  4175. }
  4176. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G)
  4177. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4178. yyprintf((stderr, "%s\n", "HtmlBlockOpenTh")); if (!yymatchChar(G, '<')) goto l836; if (!yy_Spnl(G)) { goto l836; }
  4179. { int yypos837= G->pos, yythunkpos837= G->thunkpos; if (!yymatchString(G, "th")) goto l838; goto l837;
  4180. l838:; G->pos= yypos837; G->thunkpos= yythunkpos837; if (!yymatchString(G, "TH")) goto l836;
  4181. }
  4182. l837:; if (!yy_Spnl(G)) { goto l836; }
  4183. l839:;
  4184. { int yypos840= G->pos, yythunkpos840= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l840; } goto l839;
  4185. l840:; G->pos= yypos840; G->thunkpos= yythunkpos840;
  4186. } if (!yymatchChar(G, '>')) goto l836;
  4187. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  4188. return 1;
  4189. l836:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4190. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  4191. return 0;
  4192. }
  4193. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G)
  4194. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4195. yyprintf((stderr, "%s\n", "HtmlBlockTfoot")); if (!yy_HtmlBlockOpenTfoot(G)) { goto l841; }
  4196. l842:;
  4197. { int yypos843= G->pos, yythunkpos843= G->thunkpos;
  4198. { int yypos844= G->pos, yythunkpos844= G->thunkpos; if (!yy_HtmlBlockTfoot(G)) { goto l845; } goto l844;
  4199. l845:; G->pos= yypos844; G->thunkpos= yythunkpos844;
  4200. { int yypos846= G->pos, yythunkpos846= G->thunkpos; if (!yy_HtmlBlockCloseTfoot(G)) { goto l846; } goto l843;
  4201. l846:; G->pos= yypos846; G->thunkpos= yythunkpos846;
  4202. } if (!yymatchDot(G)) goto l843;
  4203. }
  4204. l844:; goto l842;
  4205. l843:; G->pos= yypos843; G->thunkpos= yythunkpos843;
  4206. } if (!yy_HtmlBlockCloseTfoot(G)) { goto l841; }
  4207. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  4208. return 1;
  4209. l841:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4210. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  4211. return 0;
  4212. }
  4213. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G)
  4214. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4215. yyprintf((stderr, "%s\n", "HtmlBlockCloseTfoot")); if (!yymatchChar(G, '<')) goto l847; if (!yy_Spnl(G)) { goto l847; } if (!yymatchChar(G, '/')) goto l847;
  4216. { int yypos848= G->pos, yythunkpos848= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l849; goto l848;
  4217. l849:; G->pos= yypos848; G->thunkpos= yythunkpos848; if (!yymatchString(G, "TFOOT")) goto l847;
  4218. }
  4219. l848:; if (!yy_Spnl(G)) { goto l847; } if (!yymatchChar(G, '>')) goto l847;
  4220. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  4221. return 1;
  4222. l847:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4223. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  4224. return 0;
  4225. }
  4226. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G)
  4227. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4228. yyprintf((stderr, "%s\n", "HtmlBlockOpenTfoot")); if (!yymatchChar(G, '<')) goto l850; if (!yy_Spnl(G)) { goto l850; }
  4229. { int yypos851= G->pos, yythunkpos851= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l852; goto l851;
  4230. l852:; G->pos= yypos851; G->thunkpos= yythunkpos851; if (!yymatchString(G, "TFOOT")) goto l850;
  4231. }
  4232. l851:; if (!yy_Spnl(G)) { goto l850; }
  4233. l853:;
  4234. { int yypos854= G->pos, yythunkpos854= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l854; } goto l853;
  4235. l854:; G->pos= yypos854; G->thunkpos= yythunkpos854;
  4236. } if (!yymatchChar(G, '>')) goto l850;
  4237. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  4238. return 1;
  4239. l850:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4240. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  4241. return 0;
  4242. }
  4243. YY_RULE(int) yy_HtmlBlockTd(GREG *G)
  4244. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4245. yyprintf((stderr, "%s\n", "HtmlBlockTd")); if (!yy_HtmlBlockOpenTd(G)) { goto l855; }
  4246. l856:;
  4247. { int yypos857= G->pos, yythunkpos857= G->thunkpos;
  4248. { int yypos858= G->pos, yythunkpos858= G->thunkpos; if (!yy_HtmlBlockTd(G)) { goto l859; } goto l858;
  4249. l859:; G->pos= yypos858; G->thunkpos= yythunkpos858;
  4250. { int yypos860= G->pos, yythunkpos860= G->thunkpos; if (!yy_HtmlBlockCloseTd(G)) { goto l860; } goto l857;
  4251. l860:; G->pos= yypos860; G->thunkpos= yythunkpos860;
  4252. } if (!yymatchDot(G)) goto l857;
  4253. }
  4254. l858:; goto l856;
  4255. l857:; G->pos= yypos857; G->thunkpos= yythunkpos857;
  4256. } if (!yy_HtmlBlockCloseTd(G)) { goto l855; }
  4257. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  4258. return 1;
  4259. l855:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4260. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  4261. return 0;
  4262. }
  4263. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G)
  4264. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4265. yyprintf((stderr, "%s\n", "HtmlBlockCloseTd")); if (!yymatchChar(G, '<')) goto l861; if (!yy_Spnl(G)) { goto l861; } if (!yymatchChar(G, '/')) goto l861;
  4266. { int yypos862= G->pos, yythunkpos862= G->thunkpos; if (!yymatchString(G, "td")) goto l863; goto l862;
  4267. l863:; G->pos= yypos862; G->thunkpos= yythunkpos862; if (!yymatchString(G, "TD")) goto l861;
  4268. }
  4269. l862:; if (!yy_Spnl(G)) { goto l861; } if (!yymatchChar(G, '>')) goto l861;
  4270. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  4271. return 1;
  4272. l861:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4273. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  4274. return 0;
  4275. }
  4276. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G)
  4277. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4278. yyprintf((stderr, "%s\n", "HtmlBlockOpenTd")); if (!yymatchChar(G, '<')) goto l864; if (!yy_Spnl(G)) { goto l864; }
  4279. { int yypos865= G->pos, yythunkpos865= G->thunkpos; if (!yymatchString(G, "td")) goto l866; goto l865;
  4280. l866:; G->pos= yypos865; G->thunkpos= yythunkpos865; if (!yymatchString(G, "TD")) goto l864;
  4281. }
  4282. l865:; if (!yy_Spnl(G)) { goto l864; }
  4283. l867:;
  4284. { int yypos868= G->pos, yythunkpos868= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l868; } goto l867;
  4285. l868:; G->pos= yypos868; G->thunkpos= yythunkpos868;
  4286. } if (!yymatchChar(G, '>')) goto l864;
  4287. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  4288. return 1;
  4289. l864:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4290. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  4291. return 0;
  4292. }
  4293. YY_RULE(int) yy_HtmlBlockTbody(GREG *G)
  4294. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4295. yyprintf((stderr, "%s\n", "HtmlBlockTbody")); if (!yy_HtmlBlockOpenTbody(G)) { goto l869; }
  4296. l870:;
  4297. { int yypos871= G->pos, yythunkpos871= G->thunkpos;
  4298. { int yypos872= G->pos, yythunkpos872= G->thunkpos; if (!yy_HtmlBlockTbody(G)) { goto l873; } goto l872;
  4299. l873:; G->pos= yypos872; G->thunkpos= yythunkpos872;
  4300. { int yypos874= G->pos, yythunkpos874= G->thunkpos; if (!yy_HtmlBlockCloseTbody(G)) { goto l874; } goto l871;
  4301. l874:; G->pos= yypos874; G->thunkpos= yythunkpos874;
  4302. } if (!yymatchDot(G)) goto l871;
  4303. }
  4304. l872:; goto l870;
  4305. l871:; G->pos= yypos871; G->thunkpos= yythunkpos871;
  4306. } if (!yy_HtmlBlockCloseTbody(G)) { goto l869; }
  4307. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  4308. return 1;
  4309. l869:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4310. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  4311. return 0;
  4312. }
  4313. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G)
  4314. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4315. yyprintf((stderr, "%s\n", "HtmlBlockCloseTbody")); if (!yymatchChar(G, '<')) goto l875; if (!yy_Spnl(G)) { goto l875; } if (!yymatchChar(G, '/')) goto l875;
  4316. { int yypos876= G->pos, yythunkpos876= G->thunkpos; if (!yymatchString(G, "tbody")) goto l877; goto l876;
  4317. l877:; G->pos= yypos876; G->thunkpos= yythunkpos876; if (!yymatchString(G, "TBODY")) goto l875;
  4318. }
  4319. l876:; if (!yy_Spnl(G)) { goto l875; } if (!yymatchChar(G, '>')) goto l875;
  4320. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4321. return 1;
  4322. l875:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4323. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4324. return 0;
  4325. }
  4326. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G)
  4327. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4328. yyprintf((stderr, "%s\n", "HtmlBlockOpenTbody")); if (!yymatchChar(G, '<')) goto l878; if (!yy_Spnl(G)) { goto l878; }
  4329. { int yypos879= G->pos, yythunkpos879= G->thunkpos; if (!yymatchString(G, "tbody")) goto l880; goto l879;
  4330. l880:; G->pos= yypos879; G->thunkpos= yythunkpos879; if (!yymatchString(G, "TBODY")) goto l878;
  4331. }
  4332. l879:; if (!yy_Spnl(G)) { goto l878; }
  4333. l881:;
  4334. { int yypos882= G->pos, yythunkpos882= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l882; } goto l881;
  4335. l882:; G->pos= yypos882; G->thunkpos= yythunkpos882;
  4336. } if (!yymatchChar(G, '>')) goto l878;
  4337. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4338. return 1;
  4339. l878:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4340. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4341. return 0;
  4342. }
  4343. YY_RULE(int) yy_HtmlBlockLi(GREG *G)
  4344. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4345. yyprintf((stderr, "%s\n", "HtmlBlockLi")); if (!yy_HtmlBlockOpenLi(G)) { goto l883; }
  4346. l884:;
  4347. { int yypos885= G->pos, yythunkpos885= G->thunkpos;
  4348. { int yypos886= G->pos, yythunkpos886= G->thunkpos; if (!yy_HtmlBlockLi(G)) { goto l887; } goto l886;
  4349. l887:; G->pos= yypos886; G->thunkpos= yythunkpos886;
  4350. { int yypos888= G->pos, yythunkpos888= G->thunkpos; if (!yy_HtmlBlockCloseLi(G)) { goto l888; } goto l885;
  4351. l888:; G->pos= yypos888; G->thunkpos= yythunkpos888;
  4352. } if (!yymatchDot(G)) goto l885;
  4353. }
  4354. l886:; goto l884;
  4355. l885:; G->pos= yypos885; G->thunkpos= yythunkpos885;
  4356. } if (!yy_HtmlBlockCloseLi(G)) { goto l883; }
  4357. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4358. return 1;
  4359. l883:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4360. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4361. return 0;
  4362. }
  4363. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G)
  4364. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4365. yyprintf((stderr, "%s\n", "HtmlBlockCloseLi")); if (!yymatchChar(G, '<')) goto l889; if (!yy_Spnl(G)) { goto l889; } if (!yymatchChar(G, '/')) goto l889;
  4366. { int yypos890= G->pos, yythunkpos890= G->thunkpos; if (!yymatchString(G, "li")) goto l891; goto l890;
  4367. l891:; G->pos= yypos890; G->thunkpos= yythunkpos890; if (!yymatchString(G, "LI")) goto l889;
  4368. }
  4369. l890:; if (!yy_Spnl(G)) { goto l889; } if (!yymatchChar(G, '>')) goto l889;
  4370. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4371. return 1;
  4372. l889:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4373. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4374. return 0;
  4375. }
  4376. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G)
  4377. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4378. yyprintf((stderr, "%s\n", "HtmlBlockOpenLi")); if (!yymatchChar(G, '<')) goto l892; if (!yy_Spnl(G)) { goto l892; }
  4379. { int yypos893= G->pos, yythunkpos893= G->thunkpos; if (!yymatchString(G, "li")) goto l894; goto l893;
  4380. l894:; G->pos= yypos893; G->thunkpos= yythunkpos893; if (!yymatchString(G, "LI")) goto l892;
  4381. }
  4382. l893:; if (!yy_Spnl(G)) { goto l892; }
  4383. l895:;
  4384. { int yypos896= G->pos, yythunkpos896= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l896; } goto l895;
  4385. l896:; G->pos= yypos896; G->thunkpos= yythunkpos896;
  4386. } if (!yymatchChar(G, '>')) goto l892;
  4387. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4388. return 1;
  4389. l892:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4390. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4391. return 0;
  4392. }
  4393. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G)
  4394. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4395. yyprintf((stderr, "%s\n", "HtmlBlockFrameset")); if (!yy_HtmlBlockOpenFrameset(G)) { goto l897; }
  4396. l898:;
  4397. { int yypos899= G->pos, yythunkpos899= G->thunkpos;
  4398. { int yypos900= G->pos, yythunkpos900= G->thunkpos; if (!yy_HtmlBlockFrameset(G)) { goto l901; } goto l900;
  4399. l901:; G->pos= yypos900; G->thunkpos= yythunkpos900;
  4400. { int yypos902= G->pos, yythunkpos902= G->thunkpos; if (!yy_HtmlBlockCloseFrameset(G)) { goto l902; } goto l899;
  4401. l902:; G->pos= yypos902; G->thunkpos= yythunkpos902;
  4402. } if (!yymatchDot(G)) goto l899;
  4403. }
  4404. l900:; goto l898;
  4405. l899:; G->pos= yypos899; G->thunkpos= yythunkpos899;
  4406. } if (!yy_HtmlBlockCloseFrameset(G)) { goto l897; }
  4407. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4408. return 1;
  4409. l897:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4410. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4411. return 0;
  4412. }
  4413. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G)
  4414. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4415. yyprintf((stderr, "%s\n", "HtmlBlockCloseFrameset")); if (!yymatchChar(G, '<')) goto l903; if (!yy_Spnl(G)) { goto l903; } if (!yymatchChar(G, '/')) goto l903;
  4416. { int yypos904= G->pos, yythunkpos904= G->thunkpos; if (!yymatchString(G, "frameset")) goto l905; goto l904;
  4417. l905:; G->pos= yypos904; G->thunkpos= yythunkpos904; if (!yymatchString(G, "FRAMESET")) goto l903;
  4418. }
  4419. l904:; if (!yy_Spnl(G)) { goto l903; } if (!yymatchChar(G, '>')) goto l903;
  4420. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4421. return 1;
  4422. l903:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4423. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4424. return 0;
  4425. }
  4426. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G)
  4427. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4428. yyprintf((stderr, "%s\n", "HtmlBlockOpenFrameset")); if (!yymatchChar(G, '<')) goto l906; if (!yy_Spnl(G)) { goto l906; }
  4429. { int yypos907= G->pos, yythunkpos907= G->thunkpos; if (!yymatchString(G, "frameset")) goto l908; goto l907;
  4430. l908:; G->pos= yypos907; G->thunkpos= yythunkpos907; if (!yymatchString(G, "FRAMESET")) goto l906;
  4431. }
  4432. l907:; if (!yy_Spnl(G)) { goto l906; }
  4433. l909:;
  4434. { int yypos910= G->pos, yythunkpos910= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l910; } goto l909;
  4435. l910:; G->pos= yypos910; G->thunkpos= yythunkpos910;
  4436. } if (!yymatchChar(G, '>')) goto l906;
  4437. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4438. return 1;
  4439. l906:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4440. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4441. return 0;
  4442. }
  4443. YY_RULE(int) yy_HtmlBlockDt(GREG *G)
  4444. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4445. yyprintf((stderr, "%s\n", "HtmlBlockDt")); if (!yy_HtmlBlockOpenDt(G)) { goto l911; }
  4446. l912:;
  4447. { int yypos913= G->pos, yythunkpos913= G->thunkpos;
  4448. { int yypos914= G->pos, yythunkpos914= G->thunkpos; if (!yy_HtmlBlockDt(G)) { goto l915; } goto l914;
  4449. l915:; G->pos= yypos914; G->thunkpos= yythunkpos914;
  4450. { int yypos916= G->pos, yythunkpos916= G->thunkpos; if (!yy_HtmlBlockCloseDt(G)) { goto l916; } goto l913;
  4451. l916:; G->pos= yypos916; G->thunkpos= yythunkpos916;
  4452. } if (!yymatchDot(G)) goto l913;
  4453. }
  4454. l914:; goto l912;
  4455. l913:; G->pos= yypos913; G->thunkpos= yythunkpos913;
  4456. } if (!yy_HtmlBlockCloseDt(G)) { goto l911; }
  4457. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4458. return 1;
  4459. l911:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4460. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4461. return 0;
  4462. }
  4463. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G)
  4464. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4465. yyprintf((stderr, "%s\n", "HtmlBlockCloseDt")); if (!yymatchChar(G, '<')) goto l917; if (!yy_Spnl(G)) { goto l917; } if (!yymatchChar(G, '/')) goto l917;
  4466. { int yypos918= G->pos, yythunkpos918= G->thunkpos; if (!yymatchString(G, "dt")) goto l919; goto l918;
  4467. l919:; G->pos= yypos918; G->thunkpos= yythunkpos918; if (!yymatchString(G, "DT")) goto l917;
  4468. }
  4469. l918:; if (!yy_Spnl(G)) { goto l917; } if (!yymatchChar(G, '>')) goto l917;
  4470. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4471. return 1;
  4472. l917:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4473. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4474. return 0;
  4475. }
  4476. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G)
  4477. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4478. yyprintf((stderr, "%s\n", "HtmlBlockOpenDt")); if (!yymatchChar(G, '<')) goto l920; if (!yy_Spnl(G)) { goto l920; }
  4479. { int yypos921= G->pos, yythunkpos921= G->thunkpos; if (!yymatchString(G, "dt")) goto l922; goto l921;
  4480. l922:; G->pos= yypos921; G->thunkpos= yythunkpos921; if (!yymatchString(G, "DT")) goto l920;
  4481. }
  4482. l921:; if (!yy_Spnl(G)) { goto l920; }
  4483. l923:;
  4484. { int yypos924= G->pos, yythunkpos924= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l924; } goto l923;
  4485. l924:; G->pos= yypos924; G->thunkpos= yythunkpos924;
  4486. } if (!yymatchChar(G, '>')) goto l920;
  4487. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4488. return 1;
  4489. l920:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4490. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4491. return 0;
  4492. }
  4493. YY_RULE(int) yy_HtmlBlockDd(GREG *G)
  4494. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4495. yyprintf((stderr, "%s\n", "HtmlBlockDd")); if (!yy_HtmlBlockOpenDd(G)) { goto l925; }
  4496. l926:;
  4497. { int yypos927= G->pos, yythunkpos927= G->thunkpos;
  4498. { int yypos928= G->pos, yythunkpos928= G->thunkpos; if (!yy_HtmlBlockDd(G)) { goto l929; } goto l928;
  4499. l929:; G->pos= yypos928; G->thunkpos= yythunkpos928;
  4500. { int yypos930= G->pos, yythunkpos930= G->thunkpos; if (!yy_HtmlBlockCloseDd(G)) { goto l930; } goto l927;
  4501. l930:; G->pos= yypos930; G->thunkpos= yythunkpos930;
  4502. } if (!yymatchDot(G)) goto l927;
  4503. }
  4504. l928:; goto l926;
  4505. l927:; G->pos= yypos927; G->thunkpos= yythunkpos927;
  4506. } if (!yy_HtmlBlockCloseDd(G)) { goto l925; }
  4507. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4508. return 1;
  4509. l925:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4510. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4511. return 0;
  4512. }
  4513. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G)
  4514. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4515. yyprintf((stderr, "%s\n", "HtmlBlockCloseDd")); if (!yymatchChar(G, '<')) goto l931; if (!yy_Spnl(G)) { goto l931; } if (!yymatchChar(G, '/')) goto l931;
  4516. { int yypos932= G->pos, yythunkpos932= G->thunkpos; if (!yymatchString(G, "dd")) goto l933; goto l932;
  4517. l933:; G->pos= yypos932; G->thunkpos= yythunkpos932; if (!yymatchString(G, "DD")) goto l931;
  4518. }
  4519. l932:; if (!yy_Spnl(G)) { goto l931; } if (!yymatchChar(G, '>')) goto l931;
  4520. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4521. return 1;
  4522. l931:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4523. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4524. return 0;
  4525. }
  4526. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G)
  4527. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4528. yyprintf((stderr, "%s\n", "HtmlBlockOpenDd")); if (!yymatchChar(G, '<')) goto l934; if (!yy_Spnl(G)) { goto l934; }
  4529. { int yypos935= G->pos, yythunkpos935= G->thunkpos; if (!yymatchString(G, "dd")) goto l936; goto l935;
  4530. l936:; G->pos= yypos935; G->thunkpos= yythunkpos935; if (!yymatchString(G, "DD")) goto l934;
  4531. }
  4532. l935:; if (!yy_Spnl(G)) { goto l934; }
  4533. l937:;
  4534. { int yypos938= G->pos, yythunkpos938= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l938; } goto l937;
  4535. l938:; G->pos= yypos938; G->thunkpos= yythunkpos938;
  4536. } if (!yymatchChar(G, '>')) goto l934;
  4537. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4538. return 1;
  4539. l934:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4540. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4541. return 0;
  4542. }
  4543. YY_RULE(int) yy_HtmlBlockUl(GREG *G)
  4544. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4545. yyprintf((stderr, "%s\n", "HtmlBlockUl")); if (!yy_HtmlBlockOpenUl(G)) { goto l939; }
  4546. l940:;
  4547. { int yypos941= G->pos, yythunkpos941= G->thunkpos;
  4548. { int yypos942= G->pos, yythunkpos942= G->thunkpos; if (!yy_HtmlBlockUl(G)) { goto l943; } goto l942;
  4549. l943:; G->pos= yypos942; G->thunkpos= yythunkpos942;
  4550. { int yypos944= G->pos, yythunkpos944= G->thunkpos; if (!yy_HtmlBlockCloseUl(G)) { goto l944; } goto l941;
  4551. l944:; G->pos= yypos944; G->thunkpos= yythunkpos944;
  4552. } if (!yymatchDot(G)) goto l941;
  4553. }
  4554. l942:; goto l940;
  4555. l941:; G->pos= yypos941; G->thunkpos= yythunkpos941;
  4556. } if (!yy_HtmlBlockCloseUl(G)) { goto l939; }
  4557. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4558. return 1;
  4559. l939:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4560. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4561. return 0;
  4562. }
  4563. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G)
  4564. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4565. yyprintf((stderr, "%s\n", "HtmlBlockCloseUl")); if (!yymatchChar(G, '<')) goto l945; if (!yy_Spnl(G)) { goto l945; } if (!yymatchChar(G, '/')) goto l945;
  4566. { int yypos946= G->pos, yythunkpos946= G->thunkpos; if (!yymatchString(G, "ul")) goto l947; goto l946;
  4567. l947:; G->pos= yypos946; G->thunkpos= yythunkpos946; if (!yymatchString(G, "UL")) goto l945;
  4568. }
  4569. l946:; if (!yy_Spnl(G)) { goto l945; } if (!yymatchChar(G, '>')) goto l945;
  4570. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4571. return 1;
  4572. l945:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4573. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4574. return 0;
  4575. }
  4576. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G)
  4577. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4578. yyprintf((stderr, "%s\n", "HtmlBlockOpenUl")); if (!yymatchChar(G, '<')) goto l948; if (!yy_Spnl(G)) { goto l948; }
  4579. { int yypos949= G->pos, yythunkpos949= G->thunkpos; if (!yymatchString(G, "ul")) goto l950; goto l949;
  4580. l950:; G->pos= yypos949; G->thunkpos= yythunkpos949; if (!yymatchString(G, "UL")) goto l948;
  4581. }
  4582. l949:; if (!yy_Spnl(G)) { goto l948; }
  4583. l951:;
  4584. { int yypos952= G->pos, yythunkpos952= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l952; } goto l951;
  4585. l952:; G->pos= yypos952; G->thunkpos= yythunkpos952;
  4586. } if (!yymatchChar(G, '>')) goto l948;
  4587. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4588. return 1;
  4589. l948:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4590. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4591. return 0;
  4592. }
  4593. YY_RULE(int) yy_HtmlBlockTable(GREG *G)
  4594. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4595. yyprintf((stderr, "%s\n", "HtmlBlockTable")); if (!yy_HtmlBlockOpenTable(G)) { goto l953; }
  4596. l954:;
  4597. { int yypos955= G->pos, yythunkpos955= G->thunkpos;
  4598. { int yypos956= G->pos, yythunkpos956= G->thunkpos; if (!yy_HtmlBlockTable(G)) { goto l957; } goto l956;
  4599. l957:; G->pos= yypos956; G->thunkpos= yythunkpos956;
  4600. { int yypos958= G->pos, yythunkpos958= G->thunkpos; if (!yy_HtmlBlockCloseTable(G)) { goto l958; } goto l955;
  4601. l958:; G->pos= yypos958; G->thunkpos= yythunkpos958;
  4602. } if (!yymatchDot(G)) goto l955;
  4603. }
  4604. l956:; goto l954;
  4605. l955:; G->pos= yypos955; G->thunkpos= yythunkpos955;
  4606. } if (!yy_HtmlBlockCloseTable(G)) { goto l953; }
  4607. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4608. return 1;
  4609. l953:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4610. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4611. return 0;
  4612. }
  4613. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G)
  4614. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4615. yyprintf((stderr, "%s\n", "HtmlBlockCloseTable")); if (!yymatchChar(G, '<')) goto l959; if (!yy_Spnl(G)) { goto l959; } if (!yymatchChar(G, '/')) goto l959;
  4616. { int yypos960= G->pos, yythunkpos960= G->thunkpos; if (!yymatchString(G, "table")) goto l961; goto l960;
  4617. l961:; G->pos= yypos960; G->thunkpos= yythunkpos960; if (!yymatchString(G, "TABLE")) goto l959;
  4618. }
  4619. l960:; if (!yy_Spnl(G)) { goto l959; } if (!yymatchChar(G, '>')) goto l959;
  4620. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4621. return 1;
  4622. l959:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4623. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4624. return 0;
  4625. }
  4626. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G)
  4627. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4628. yyprintf((stderr, "%s\n", "HtmlBlockOpenTable")); if (!yymatchChar(G, '<')) goto l962; if (!yy_Spnl(G)) { goto l962; }
  4629. { int yypos963= G->pos, yythunkpos963= G->thunkpos; if (!yymatchString(G, "table")) goto l964; goto l963;
  4630. l964:; G->pos= yypos963; G->thunkpos= yythunkpos963; if (!yymatchString(G, "TABLE")) goto l962;
  4631. }
  4632. l963:; if (!yy_Spnl(G)) { goto l962; }
  4633. l965:;
  4634. { int yypos966= G->pos, yythunkpos966= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l966; } goto l965;
  4635. l966:; G->pos= yypos966; G->thunkpos= yythunkpos966;
  4636. } if (!yymatchChar(G, '>')) goto l962;
  4637. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4638. return 1;
  4639. l962:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4640. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4641. return 0;
  4642. }
  4643. YY_RULE(int) yy_HtmlBlockPre(GREG *G)
  4644. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4645. yyprintf((stderr, "%s\n", "HtmlBlockPre")); if (!yy_HtmlBlockOpenPre(G)) { goto l967; }
  4646. l968:;
  4647. { int yypos969= G->pos, yythunkpos969= G->thunkpos;
  4648. { int yypos970= G->pos, yythunkpos970= G->thunkpos; if (!yy_HtmlBlockPre(G)) { goto l971; } goto l970;
  4649. l971:; G->pos= yypos970; G->thunkpos= yythunkpos970;
  4650. { int yypos972= G->pos, yythunkpos972= G->thunkpos; if (!yy_HtmlBlockClosePre(G)) { goto l972; } goto l969;
  4651. l972:; G->pos= yypos972; G->thunkpos= yythunkpos972;
  4652. } if (!yymatchDot(G)) goto l969;
  4653. }
  4654. l970:; goto l968;
  4655. l969:; G->pos= yypos969; G->thunkpos= yythunkpos969;
  4656. } if (!yy_HtmlBlockClosePre(G)) { goto l967; }
  4657. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4658. return 1;
  4659. l967:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4660. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4661. return 0;
  4662. }
  4663. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G)
  4664. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4665. yyprintf((stderr, "%s\n", "HtmlBlockClosePre")); if (!yymatchChar(G, '<')) goto l973; if (!yy_Spnl(G)) { goto l973; } if (!yymatchChar(G, '/')) goto l973;
  4666. { int yypos974= G->pos, yythunkpos974= G->thunkpos; if (!yymatchString(G, "pre")) goto l975; goto l974;
  4667. l975:; G->pos= yypos974; G->thunkpos= yythunkpos974; if (!yymatchString(G, "PRE")) goto l973;
  4668. }
  4669. l974:; if (!yy_Spnl(G)) { goto l973; } if (!yymatchChar(G, '>')) goto l973;
  4670. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4671. return 1;
  4672. l973:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4673. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4674. return 0;
  4675. }
  4676. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G)
  4677. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4678. yyprintf((stderr, "%s\n", "HtmlBlockOpenPre")); if (!yymatchChar(G, '<')) goto l976; if (!yy_Spnl(G)) { goto l976; }
  4679. { int yypos977= G->pos, yythunkpos977= G->thunkpos; if (!yymatchString(G, "pre")) goto l978; goto l977;
  4680. l978:; G->pos= yypos977; G->thunkpos= yythunkpos977; if (!yymatchString(G, "PRE")) goto l976;
  4681. }
  4682. l977:; if (!yy_Spnl(G)) { goto l976; }
  4683. l979:;
  4684. { int yypos980= G->pos, yythunkpos980= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l980; } goto l979;
  4685. l980:; G->pos= yypos980; G->thunkpos= yythunkpos980;
  4686. } if (!yymatchChar(G, '>')) goto l976;
  4687. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4688. return 1;
  4689. l976:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4690. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4691. return 0;
  4692. }
  4693. YY_RULE(int) yy_HtmlBlockP(GREG *G)
  4694. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4695. yyprintf((stderr, "%s\n", "HtmlBlockP")); if (!yy_HtmlBlockOpenP(G)) { goto l981; }
  4696. l982:;
  4697. { int yypos983= G->pos, yythunkpos983= G->thunkpos;
  4698. { int yypos984= G->pos, yythunkpos984= G->thunkpos; if (!yy_HtmlBlockP(G)) { goto l985; } goto l984;
  4699. l985:; G->pos= yypos984; G->thunkpos= yythunkpos984;
  4700. { int yypos986= G->pos, yythunkpos986= G->thunkpos; if (!yy_HtmlBlockCloseP(G)) { goto l986; } goto l983;
  4701. l986:; G->pos= yypos986; G->thunkpos= yythunkpos986;
  4702. } if (!yymatchDot(G)) goto l983;
  4703. }
  4704. l984:; goto l982;
  4705. l983:; G->pos= yypos983; G->thunkpos= yythunkpos983;
  4706. } if (!yy_HtmlBlockCloseP(G)) { goto l981; }
  4707. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4708. return 1;
  4709. l981:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4710. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4711. return 0;
  4712. }
  4713. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G)
  4714. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4715. yyprintf((stderr, "%s\n", "HtmlBlockCloseP")); if (!yymatchChar(G, '<')) goto l987; if (!yy_Spnl(G)) { goto l987; } if (!yymatchChar(G, '/')) goto l987;
  4716. { int yypos988= G->pos, yythunkpos988= G->thunkpos; if (!yymatchChar(G, 'p')) goto l989; goto l988;
  4717. l989:; G->pos= yypos988; G->thunkpos= yythunkpos988; if (!yymatchChar(G, 'P')) goto l987;
  4718. }
  4719. l988:; if (!yy_Spnl(G)) { goto l987; } if (!yymatchChar(G, '>')) goto l987;
  4720. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4721. return 1;
  4722. l987:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4723. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4724. return 0;
  4725. }
  4726. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G)
  4727. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4728. yyprintf((stderr, "%s\n", "HtmlBlockOpenP")); if (!yymatchChar(G, '<')) goto l990; if (!yy_Spnl(G)) { goto l990; }
  4729. { int yypos991= G->pos, yythunkpos991= G->thunkpos; if (!yymatchChar(G, 'p')) goto l992; goto l991;
  4730. l992:; G->pos= yypos991; G->thunkpos= yythunkpos991; if (!yymatchChar(G, 'P')) goto l990;
  4731. }
  4732. l991:; if (!yy_Spnl(G)) { goto l990; }
  4733. l993:;
  4734. { int yypos994= G->pos, yythunkpos994= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l994; } goto l993;
  4735. l994:; G->pos= yypos994; G->thunkpos= yythunkpos994;
  4736. } if (!yymatchChar(G, '>')) goto l990;
  4737. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4738. return 1;
  4739. l990:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4740. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4741. return 0;
  4742. }
  4743. YY_RULE(int) yy_HtmlBlockOl(GREG *G)
  4744. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4745. yyprintf((stderr, "%s\n", "HtmlBlockOl")); if (!yy_HtmlBlockOpenOl(G)) { goto l995; }
  4746. l996:;
  4747. { int yypos997= G->pos, yythunkpos997= G->thunkpos;
  4748. { int yypos998= G->pos, yythunkpos998= G->thunkpos; if (!yy_HtmlBlockOl(G)) { goto l999; } goto l998;
  4749. l999:; G->pos= yypos998; G->thunkpos= yythunkpos998;
  4750. { int yypos1000= G->pos, yythunkpos1000= G->thunkpos; if (!yy_HtmlBlockCloseOl(G)) { goto l1000; } goto l997;
  4751. l1000:; G->pos= yypos1000; G->thunkpos= yythunkpos1000;
  4752. } if (!yymatchDot(G)) goto l997;
  4753. }
  4754. l998:; goto l996;
  4755. l997:; G->pos= yypos997; G->thunkpos= yythunkpos997;
  4756. } if (!yy_HtmlBlockCloseOl(G)) { goto l995; }
  4757. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4758. return 1;
  4759. l995:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4760. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4761. return 0;
  4762. }
  4763. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G)
  4764. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4765. yyprintf((stderr, "%s\n", "HtmlBlockCloseOl")); if (!yymatchChar(G, '<')) goto l1001; if (!yy_Spnl(G)) { goto l1001; } if (!yymatchChar(G, '/')) goto l1001;
  4766. { int yypos1002= G->pos, yythunkpos1002= G->thunkpos; if (!yymatchString(G, "ol")) goto l1003; goto l1002;
  4767. l1003:; G->pos= yypos1002; G->thunkpos= yythunkpos1002; if (!yymatchString(G, "OL")) goto l1001;
  4768. }
  4769. l1002:; if (!yy_Spnl(G)) { goto l1001; } if (!yymatchChar(G, '>')) goto l1001;
  4770. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4771. return 1;
  4772. l1001:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4773. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4774. return 0;
  4775. }
  4776. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G)
  4777. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4778. yyprintf((stderr, "%s\n", "HtmlBlockOpenOl")); if (!yymatchChar(G, '<')) goto l1004; if (!yy_Spnl(G)) { goto l1004; }
  4779. { int yypos1005= G->pos, yythunkpos1005= G->thunkpos; if (!yymatchString(G, "ol")) goto l1006; goto l1005;
  4780. l1006:; G->pos= yypos1005; G->thunkpos= yythunkpos1005; if (!yymatchString(G, "OL")) goto l1004;
  4781. }
  4782. l1005:; if (!yy_Spnl(G)) { goto l1004; }
  4783. l1007:;
  4784. { int yypos1008= G->pos, yythunkpos1008= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1008; } goto l1007;
  4785. l1008:; G->pos= yypos1008; G->thunkpos= yythunkpos1008;
  4786. } if (!yymatchChar(G, '>')) goto l1004;
  4787. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4788. return 1;
  4789. l1004:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4790. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4791. return 0;
  4792. }
  4793. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G)
  4794. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4795. yyprintf((stderr, "%s\n", "HtmlBlockNoscript")); if (!yy_HtmlBlockOpenNoscript(G)) { goto l1009; }
  4796. l1010:;
  4797. { int yypos1011= G->pos, yythunkpos1011= G->thunkpos;
  4798. { int yypos1012= G->pos, yythunkpos1012= G->thunkpos; if (!yy_HtmlBlockNoscript(G)) { goto l1013; } goto l1012;
  4799. l1013:; G->pos= yypos1012; G->thunkpos= yythunkpos1012;
  4800. { int yypos1014= G->pos, yythunkpos1014= G->thunkpos; if (!yy_HtmlBlockCloseNoscript(G)) { goto l1014; } goto l1011;
  4801. l1014:; G->pos= yypos1014; G->thunkpos= yythunkpos1014;
  4802. } if (!yymatchDot(G)) goto l1011;
  4803. }
  4804. l1012:; goto l1010;
  4805. l1011:; G->pos= yypos1011; G->thunkpos= yythunkpos1011;
  4806. } if (!yy_HtmlBlockCloseNoscript(G)) { goto l1009; }
  4807. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4808. return 1;
  4809. l1009:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4810. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4811. return 0;
  4812. }
  4813. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G)
  4814. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4815. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoscript")); if (!yymatchChar(G, '<')) goto l1015; if (!yy_Spnl(G)) { goto l1015; } if (!yymatchChar(G, '/')) goto l1015;
  4816. { int yypos1016= G->pos, yythunkpos1016= G->thunkpos; if (!yymatchString(G, "noscript")) goto l1017; goto l1016;
  4817. l1017:; G->pos= yypos1016; G->thunkpos= yythunkpos1016; if (!yymatchString(G, "NOSCRIPT")) goto l1015;
  4818. }
  4819. l1016:; if (!yy_Spnl(G)) { goto l1015; } if (!yymatchChar(G, '>')) goto l1015;
  4820. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4821. return 1;
  4822. l1015:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4823. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4824. return 0;
  4825. }
  4826. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G)
  4827. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4828. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoscript")); if (!yymatchChar(G, '<')) goto l1018; if (!yy_Spnl(G)) { goto l1018; }
  4829. { int yypos1019= G->pos, yythunkpos1019= G->thunkpos; if (!yymatchString(G, "noscript")) goto l1020; goto l1019;
  4830. l1020:; G->pos= yypos1019; G->thunkpos= yythunkpos1019; if (!yymatchString(G, "NOSCRIPT")) goto l1018;
  4831. }
  4832. l1019:; if (!yy_Spnl(G)) { goto l1018; }
  4833. l1021:;
  4834. { int yypos1022= G->pos, yythunkpos1022= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1022; } goto l1021;
  4835. l1022:; G->pos= yypos1022; G->thunkpos= yythunkpos1022;
  4836. } if (!yymatchChar(G, '>')) goto l1018;
  4837. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4838. return 1;
  4839. l1018:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4840. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4841. return 0;
  4842. }
  4843. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G)
  4844. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4845. yyprintf((stderr, "%s\n", "HtmlBlockNoframes")); if (!yy_HtmlBlockOpenNoframes(G)) { goto l1023; }
  4846. l1024:;
  4847. { int yypos1025= G->pos, yythunkpos1025= G->thunkpos;
  4848. { int yypos1026= G->pos, yythunkpos1026= G->thunkpos; if (!yy_HtmlBlockNoframes(G)) { goto l1027; } goto l1026;
  4849. l1027:; G->pos= yypos1026; G->thunkpos= yythunkpos1026;
  4850. { int yypos1028= G->pos, yythunkpos1028= G->thunkpos; if (!yy_HtmlBlockCloseNoframes(G)) { goto l1028; } goto l1025;
  4851. l1028:; G->pos= yypos1028; G->thunkpos= yythunkpos1028;
  4852. } if (!yymatchDot(G)) goto l1025;
  4853. }
  4854. l1026:; goto l1024;
  4855. l1025:; G->pos= yypos1025; G->thunkpos= yythunkpos1025;
  4856. } if (!yy_HtmlBlockCloseNoframes(G)) { goto l1023; }
  4857. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4858. return 1;
  4859. l1023:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4860. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4861. return 0;
  4862. }
  4863. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G)
  4864. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4865. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoframes")); if (!yymatchChar(G, '<')) goto l1029; if (!yy_Spnl(G)) { goto l1029; } if (!yymatchChar(G, '/')) goto l1029;
  4866. { int yypos1030= G->pos, yythunkpos1030= G->thunkpos; if (!yymatchString(G, "noframes")) goto l1031; goto l1030;
  4867. l1031:; G->pos= yypos1030; G->thunkpos= yythunkpos1030; if (!yymatchString(G, "NOFRAMES")) goto l1029;
  4868. }
  4869. l1030:; if (!yy_Spnl(G)) { goto l1029; } if (!yymatchChar(G, '>')) goto l1029;
  4870. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4871. return 1;
  4872. l1029:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4873. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4874. return 0;
  4875. }
  4876. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G)
  4877. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4878. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoframes")); if (!yymatchChar(G, '<')) goto l1032; if (!yy_Spnl(G)) { goto l1032; }
  4879. { int yypos1033= G->pos, yythunkpos1033= G->thunkpos; if (!yymatchString(G, "noframes")) goto l1034; goto l1033;
  4880. l1034:; G->pos= yypos1033; G->thunkpos= yythunkpos1033; if (!yymatchString(G, "NOFRAMES")) goto l1032;
  4881. }
  4882. l1033:; if (!yy_Spnl(G)) { goto l1032; }
  4883. l1035:;
  4884. { int yypos1036= G->pos, yythunkpos1036= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1036; } goto l1035;
  4885. l1036:; G->pos= yypos1036; G->thunkpos= yythunkpos1036;
  4886. } if (!yymatchChar(G, '>')) goto l1032;
  4887. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4888. return 1;
  4889. l1032:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4890. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4891. return 0;
  4892. }
  4893. YY_RULE(int) yy_HtmlBlockMenu(GREG *G)
  4894. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4895. yyprintf((stderr, "%s\n", "HtmlBlockMenu")); if (!yy_HtmlBlockOpenMenu(G)) { goto l1037; }
  4896. l1038:;
  4897. { int yypos1039= G->pos, yythunkpos1039= G->thunkpos;
  4898. { int yypos1040= G->pos, yythunkpos1040= G->thunkpos; if (!yy_HtmlBlockMenu(G)) { goto l1041; } goto l1040;
  4899. l1041:; G->pos= yypos1040; G->thunkpos= yythunkpos1040;
  4900. { int yypos1042= G->pos, yythunkpos1042= G->thunkpos; if (!yy_HtmlBlockCloseMenu(G)) { goto l1042; } goto l1039;
  4901. l1042:; G->pos= yypos1042; G->thunkpos= yythunkpos1042;
  4902. } if (!yymatchDot(G)) goto l1039;
  4903. }
  4904. l1040:; goto l1038;
  4905. l1039:; G->pos= yypos1039; G->thunkpos= yythunkpos1039;
  4906. } if (!yy_HtmlBlockCloseMenu(G)) { goto l1037; }
  4907. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4908. return 1;
  4909. l1037:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4910. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4911. return 0;
  4912. }
  4913. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G)
  4914. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4915. yyprintf((stderr, "%s\n", "HtmlBlockCloseMenu")); if (!yymatchChar(G, '<')) goto l1043; if (!yy_Spnl(G)) { goto l1043; } if (!yymatchChar(G, '/')) goto l1043;
  4916. { int yypos1044= G->pos, yythunkpos1044= G->thunkpos; if (!yymatchString(G, "menu")) goto l1045; goto l1044;
  4917. l1045:; G->pos= yypos1044; G->thunkpos= yythunkpos1044; if (!yymatchString(G, "MENU")) goto l1043;
  4918. }
  4919. l1044:; if (!yy_Spnl(G)) { goto l1043; } if (!yymatchChar(G, '>')) goto l1043;
  4920. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4921. return 1;
  4922. l1043:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4923. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4924. return 0;
  4925. }
  4926. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G)
  4927. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4928. yyprintf((stderr, "%s\n", "HtmlBlockOpenMenu")); if (!yymatchChar(G, '<')) goto l1046; if (!yy_Spnl(G)) { goto l1046; }
  4929. { int yypos1047= G->pos, yythunkpos1047= G->thunkpos; if (!yymatchString(G, "menu")) goto l1048; goto l1047;
  4930. l1048:; G->pos= yypos1047; G->thunkpos= yythunkpos1047; if (!yymatchString(G, "MENU")) goto l1046;
  4931. }
  4932. l1047:; if (!yy_Spnl(G)) { goto l1046; }
  4933. l1049:;
  4934. { int yypos1050= G->pos, yythunkpos1050= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1050; } goto l1049;
  4935. l1050:; G->pos= yypos1050; G->thunkpos= yythunkpos1050;
  4936. } if (!yymatchChar(G, '>')) goto l1046;
  4937. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4938. return 1;
  4939. l1046:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4940. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4941. return 0;
  4942. }
  4943. YY_RULE(int) yy_HtmlBlockH6(GREG *G)
  4944. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4945. yyprintf((stderr, "%s\n", "HtmlBlockH6")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1051; if (!yy_LocMarker(G)) { goto l1051; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH6(G)) { goto l1051; }
  4946. l1052:;
  4947. { int yypos1053= G->pos, yythunkpos1053= G->thunkpos;
  4948. { int yypos1054= G->pos, yythunkpos1054= G->thunkpos; if (!yy_HtmlBlockH6(G)) { goto l1055; } goto l1054;
  4949. l1055:; G->pos= yypos1054; G->thunkpos= yythunkpos1054;
  4950. { int yypos1056= G->pos, yythunkpos1056= G->thunkpos; if (!yy_HtmlBlockCloseH6(G)) { goto l1056; } goto l1053;
  4951. l1056:; G->pos= yypos1056; G->thunkpos= yythunkpos1056;
  4952. } if (!yymatchDot(G)) goto l1053;
  4953. }
  4954. l1054:; goto l1052;
  4955. l1053:; G->pos= yypos1053; G->thunkpos= yythunkpos1053;
  4956. } if (!yy_HtmlBlockCloseH6(G)) { goto l1051; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1051; yyDo(G, yy_1_HtmlBlockH6, G->begin, G->end);
  4957. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH6", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4958. return 1;
  4959. l1051:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4960. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH6", G->buf+G->pos));
  4961. return 0;
  4962. }
  4963. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G)
  4964. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4965. yyprintf((stderr, "%s\n", "HtmlBlockCloseH6")); if (!yymatchChar(G, '<')) goto l1057; if (!yy_Spnl(G)) { goto l1057; } if (!yymatchChar(G, '/')) goto l1057;
  4966. { int yypos1058= G->pos, yythunkpos1058= G->thunkpos; if (!yymatchString(G, "h6")) goto l1059; goto l1058;
  4967. l1059:; G->pos= yypos1058; G->thunkpos= yythunkpos1058; if (!yymatchString(G, "H6")) goto l1057;
  4968. }
  4969. l1058:; if (!yy_Spnl(G)) { goto l1057; } if (!yymatchChar(G, '>')) goto l1057;
  4970. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4971. return 1;
  4972. l1057:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4973. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4974. return 0;
  4975. }
  4976. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G)
  4977. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4978. yyprintf((stderr, "%s\n", "HtmlBlockOpenH6")); if (!yymatchChar(G, '<')) goto l1060; if (!yy_Spnl(G)) { goto l1060; }
  4979. { int yypos1061= G->pos, yythunkpos1061= G->thunkpos; if (!yymatchString(G, "h6")) goto l1062; goto l1061;
  4980. l1062:; G->pos= yypos1061; G->thunkpos= yythunkpos1061; if (!yymatchString(G, "H6")) goto l1060;
  4981. }
  4982. l1061:; if (!yy_Spnl(G)) { goto l1060; }
  4983. l1063:;
  4984. { int yypos1064= G->pos, yythunkpos1064= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1064; } goto l1063;
  4985. l1064:; G->pos= yypos1064; G->thunkpos= yythunkpos1064;
  4986. } if (!yymatchChar(G, '>')) goto l1060;
  4987. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4988. return 1;
  4989. l1060:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4990. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4991. return 0;
  4992. }
  4993. YY_RULE(int) yy_HtmlBlockH5(GREG *G)
  4994. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4995. yyprintf((stderr, "%s\n", "HtmlBlockH5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1065; if (!yy_LocMarker(G)) { goto l1065; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH5(G)) { goto l1065; }
  4996. l1066:;
  4997. { int yypos1067= G->pos, yythunkpos1067= G->thunkpos;
  4998. { int yypos1068= G->pos, yythunkpos1068= G->thunkpos; if (!yy_HtmlBlockH5(G)) { goto l1069; } goto l1068;
  4999. l1069:; G->pos= yypos1068; G->thunkpos= yythunkpos1068;
  5000. { int yypos1070= G->pos, yythunkpos1070= G->thunkpos; if (!yy_HtmlBlockCloseH5(G)) { goto l1070; } goto l1067;
  5001. l1070:; G->pos= yypos1070; G->thunkpos= yythunkpos1070;
  5002. } if (!yymatchDot(G)) goto l1067;
  5003. }
  5004. l1068:; goto l1066;
  5005. l1067:; G->pos= yypos1067; G->thunkpos= yythunkpos1067;
  5006. } if (!yy_HtmlBlockCloseH5(G)) { goto l1065; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1065; yyDo(G, yy_1_HtmlBlockH5, G->begin, G->end);
  5007. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH5", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5008. return 1;
  5009. l1065:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5010. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH5", G->buf+G->pos));
  5011. return 0;
  5012. }
  5013. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G)
  5014. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5015. yyprintf((stderr, "%s\n", "HtmlBlockCloseH5")); if (!yymatchChar(G, '<')) goto l1071; if (!yy_Spnl(G)) { goto l1071; } if (!yymatchChar(G, '/')) goto l1071;
  5016. { int yypos1072= G->pos, yythunkpos1072= G->thunkpos; if (!yymatchString(G, "h5")) goto l1073; goto l1072;
  5017. l1073:; G->pos= yypos1072; G->thunkpos= yythunkpos1072; if (!yymatchString(G, "H5")) goto l1071;
  5018. }
  5019. l1072:; if (!yy_Spnl(G)) { goto l1071; } if (!yymatchChar(G, '>')) goto l1071;
  5020. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  5021. return 1;
  5022. l1071:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5023. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  5024. return 0;
  5025. }
  5026. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G)
  5027. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5028. yyprintf((stderr, "%s\n", "HtmlBlockOpenH5")); if (!yymatchChar(G, '<')) goto l1074; if (!yy_Spnl(G)) { goto l1074; }
  5029. { int yypos1075= G->pos, yythunkpos1075= G->thunkpos; if (!yymatchString(G, "h5")) goto l1076; goto l1075;
  5030. l1076:; G->pos= yypos1075; G->thunkpos= yythunkpos1075; if (!yymatchString(G, "H5")) goto l1074;
  5031. }
  5032. l1075:; if (!yy_Spnl(G)) { goto l1074; }
  5033. l1077:;
  5034. { int yypos1078= G->pos, yythunkpos1078= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1078; } goto l1077;
  5035. l1078:; G->pos= yypos1078; G->thunkpos= yythunkpos1078;
  5036. } if (!yymatchChar(G, '>')) goto l1074;
  5037. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  5038. return 1;
  5039. l1074:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5040. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  5041. return 0;
  5042. }
  5043. YY_RULE(int) yy_HtmlBlockH4(GREG *G)
  5044. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5045. yyprintf((stderr, "%s\n", "HtmlBlockH4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1079; if (!yy_LocMarker(G)) { goto l1079; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH4(G)) { goto l1079; }
  5046. l1080:;
  5047. { int yypos1081= G->pos, yythunkpos1081= G->thunkpos;
  5048. { int yypos1082= G->pos, yythunkpos1082= G->thunkpos; if (!yy_HtmlBlockH4(G)) { goto l1083; } goto l1082;
  5049. l1083:; G->pos= yypos1082; G->thunkpos= yythunkpos1082;
  5050. { int yypos1084= G->pos, yythunkpos1084= G->thunkpos; if (!yy_HtmlBlockCloseH4(G)) { goto l1084; } goto l1081;
  5051. l1084:; G->pos= yypos1084; G->thunkpos= yythunkpos1084;
  5052. } if (!yymatchDot(G)) goto l1081;
  5053. }
  5054. l1082:; goto l1080;
  5055. l1081:; G->pos= yypos1081; G->thunkpos= yythunkpos1081;
  5056. } if (!yy_HtmlBlockCloseH4(G)) { goto l1079; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1079; yyDo(G, yy_1_HtmlBlockH4, G->begin, G->end);
  5057. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH4", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5058. return 1;
  5059. l1079:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5060. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH4", G->buf+G->pos));
  5061. return 0;
  5062. }
  5063. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G)
  5064. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5065. yyprintf((stderr, "%s\n", "HtmlBlockCloseH4")); if (!yymatchChar(G, '<')) goto l1085; if (!yy_Spnl(G)) { goto l1085; } if (!yymatchChar(G, '/')) goto l1085;
  5066. { int yypos1086= G->pos, yythunkpos1086= G->thunkpos; if (!yymatchString(G, "h4")) goto l1087; goto l1086;
  5067. l1087:; G->pos= yypos1086; G->thunkpos= yythunkpos1086; if (!yymatchString(G, "H4")) goto l1085;
  5068. }
  5069. l1086:; if (!yy_Spnl(G)) { goto l1085; } if (!yymatchChar(G, '>')) goto l1085;
  5070. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  5071. return 1;
  5072. l1085:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5073. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  5074. return 0;
  5075. }
  5076. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G)
  5077. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5078. yyprintf((stderr, "%s\n", "HtmlBlockOpenH4")); if (!yymatchChar(G, '<')) goto l1088; if (!yy_Spnl(G)) { goto l1088; }
  5079. { int yypos1089= G->pos, yythunkpos1089= G->thunkpos; if (!yymatchString(G, "h4")) goto l1090; goto l1089;
  5080. l1090:; G->pos= yypos1089; G->thunkpos= yythunkpos1089; if (!yymatchString(G, "H4")) goto l1088;
  5081. }
  5082. l1089:; if (!yy_Spnl(G)) { goto l1088; }
  5083. l1091:;
  5084. { int yypos1092= G->pos, yythunkpos1092= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1092; } goto l1091;
  5085. l1092:; G->pos= yypos1092; G->thunkpos= yythunkpos1092;
  5086. } if (!yymatchChar(G, '>')) goto l1088;
  5087. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  5088. return 1;
  5089. l1088:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5090. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  5091. return 0;
  5092. }
  5093. YY_RULE(int) yy_HtmlBlockH3(GREG *G)
  5094. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5095. yyprintf((stderr, "%s\n", "HtmlBlockH3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1093; if (!yy_LocMarker(G)) { goto l1093; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH3(G)) { goto l1093; }
  5096. l1094:;
  5097. { int yypos1095= G->pos, yythunkpos1095= G->thunkpos;
  5098. { int yypos1096= G->pos, yythunkpos1096= G->thunkpos; if (!yy_HtmlBlockH3(G)) { goto l1097; } goto l1096;
  5099. l1097:; G->pos= yypos1096; G->thunkpos= yythunkpos1096;
  5100. { int yypos1098= G->pos, yythunkpos1098= G->thunkpos; if (!yy_HtmlBlockCloseH3(G)) { goto l1098; } goto l1095;
  5101. l1098:; G->pos= yypos1098; G->thunkpos= yythunkpos1098;
  5102. } if (!yymatchDot(G)) goto l1095;
  5103. }
  5104. l1096:; goto l1094;
  5105. l1095:; G->pos= yypos1095; G->thunkpos= yythunkpos1095;
  5106. } if (!yy_HtmlBlockCloseH3(G)) { goto l1093; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1093; yyDo(G, yy_1_HtmlBlockH3, G->begin, G->end);
  5107. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH3", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5108. return 1;
  5109. l1093:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5110. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH3", G->buf+G->pos));
  5111. return 0;
  5112. }
  5113. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G)
  5114. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5115. yyprintf((stderr, "%s\n", "HtmlBlockCloseH3")); if (!yymatchChar(G, '<')) goto l1099; if (!yy_Spnl(G)) { goto l1099; } if (!yymatchChar(G, '/')) goto l1099;
  5116. { int yypos1100= G->pos, yythunkpos1100= G->thunkpos; if (!yymatchString(G, "h3")) goto l1101; goto l1100;
  5117. l1101:; G->pos= yypos1100; G->thunkpos= yythunkpos1100; if (!yymatchString(G, "H3")) goto l1099;
  5118. }
  5119. l1100:; if (!yy_Spnl(G)) { goto l1099; } if (!yymatchChar(G, '>')) goto l1099;
  5120. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  5121. return 1;
  5122. l1099:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5123. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  5124. return 0;
  5125. }
  5126. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G)
  5127. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5128. yyprintf((stderr, "%s\n", "HtmlBlockOpenH3")); if (!yymatchChar(G, '<')) goto l1102; if (!yy_Spnl(G)) { goto l1102; }
  5129. { int yypos1103= G->pos, yythunkpos1103= G->thunkpos; if (!yymatchString(G, "h3")) goto l1104; goto l1103;
  5130. l1104:; G->pos= yypos1103; G->thunkpos= yythunkpos1103; if (!yymatchString(G, "H3")) goto l1102;
  5131. }
  5132. l1103:; if (!yy_Spnl(G)) { goto l1102; }
  5133. l1105:;
  5134. { int yypos1106= G->pos, yythunkpos1106= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1106; } goto l1105;
  5135. l1106:; G->pos= yypos1106; G->thunkpos= yythunkpos1106;
  5136. } if (!yymatchChar(G, '>')) goto l1102;
  5137. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  5138. return 1;
  5139. l1102:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5140. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  5141. return 0;
  5142. }
  5143. YY_RULE(int) yy_HtmlBlockH2(GREG *G)
  5144. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5145. yyprintf((stderr, "%s\n", "HtmlBlockH2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1107; if (!yy_LocMarker(G)) { goto l1107; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH2(G)) { goto l1107; }
  5146. l1108:;
  5147. { int yypos1109= G->pos, yythunkpos1109= G->thunkpos;
  5148. { int yypos1110= G->pos, yythunkpos1110= G->thunkpos; if (!yy_HtmlBlockH2(G)) { goto l1111; } goto l1110;
  5149. l1111:; G->pos= yypos1110; G->thunkpos= yythunkpos1110;
  5150. { int yypos1112= G->pos, yythunkpos1112= G->thunkpos; if (!yy_HtmlBlockCloseH2(G)) { goto l1112; } goto l1109;
  5151. l1112:; G->pos= yypos1112; G->thunkpos= yythunkpos1112;
  5152. } if (!yymatchDot(G)) goto l1109;
  5153. }
  5154. l1110:; goto l1108;
  5155. l1109:; G->pos= yypos1109; G->thunkpos= yythunkpos1109;
  5156. } if (!yy_HtmlBlockCloseH2(G)) { goto l1107; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1107; yyDo(G, yy_1_HtmlBlockH2, G->begin, G->end);
  5157. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5158. return 1;
  5159. l1107:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5160. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH2", G->buf+G->pos));
  5161. return 0;
  5162. }
  5163. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G)
  5164. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5165. yyprintf((stderr, "%s\n", "HtmlBlockCloseH2")); if (!yymatchChar(G, '<')) goto l1113; if (!yy_Spnl(G)) { goto l1113; } if (!yymatchChar(G, '/')) goto l1113;
  5166. { int yypos1114= G->pos, yythunkpos1114= G->thunkpos; if (!yymatchString(G, "h2")) goto l1115; goto l1114;
  5167. l1115:; G->pos= yypos1114; G->thunkpos= yythunkpos1114; if (!yymatchString(G, "H2")) goto l1113;
  5168. }
  5169. l1114:; if (!yy_Spnl(G)) { goto l1113; } if (!yymatchChar(G, '>')) goto l1113;
  5170. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  5171. return 1;
  5172. l1113:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5173. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  5174. return 0;
  5175. }
  5176. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G)
  5177. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5178. yyprintf((stderr, "%s\n", "HtmlBlockOpenH2")); if (!yymatchChar(G, '<')) goto l1116; if (!yy_Spnl(G)) { goto l1116; }
  5179. { int yypos1117= G->pos, yythunkpos1117= G->thunkpos; if (!yymatchString(G, "h2")) goto l1118; goto l1117;
  5180. l1118:; G->pos= yypos1117; G->thunkpos= yythunkpos1117; if (!yymatchString(G, "H2")) goto l1116;
  5181. }
  5182. l1117:; if (!yy_Spnl(G)) { goto l1116; }
  5183. l1119:;
  5184. { int yypos1120= G->pos, yythunkpos1120= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1120; } goto l1119;
  5185. l1120:; G->pos= yypos1120; G->thunkpos= yythunkpos1120;
  5186. } if (!yymatchChar(G, '>')) goto l1116;
  5187. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  5188. return 1;
  5189. l1116:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5190. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  5191. return 0;
  5192. }
  5193. YY_RULE(int) yy_HtmlBlockH1(GREG *G)
  5194. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5195. yyprintf((stderr, "%s\n", "HtmlBlockH1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1121; if (!yy_LocMarker(G)) { goto l1121; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH1(G)) { goto l1121; }
  5196. l1122:;
  5197. { int yypos1123= G->pos, yythunkpos1123= G->thunkpos;
  5198. { int yypos1124= G->pos, yythunkpos1124= G->thunkpos; if (!yy_HtmlBlockH1(G)) { goto l1125; } goto l1124;
  5199. l1125:; G->pos= yypos1124; G->thunkpos= yythunkpos1124;
  5200. { int yypos1126= G->pos, yythunkpos1126= G->thunkpos; if (!yy_HtmlBlockCloseH1(G)) { goto l1126; } goto l1123;
  5201. l1126:; G->pos= yypos1126; G->thunkpos= yythunkpos1126;
  5202. } if (!yymatchDot(G)) goto l1123;
  5203. }
  5204. l1124:; goto l1122;
  5205. l1123:; G->pos= yypos1123; G->thunkpos= yythunkpos1123;
  5206. } if (!yy_HtmlBlockCloseH1(G)) { goto l1121; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1121; yyDo(G, yy_1_HtmlBlockH1, G->begin, G->end);
  5207. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5208. return 1;
  5209. l1121:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5210. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH1", G->buf+G->pos));
  5211. return 0;
  5212. }
  5213. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G)
  5214. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5215. yyprintf((stderr, "%s\n", "HtmlBlockCloseH1")); if (!yymatchChar(G, '<')) goto l1127; if (!yy_Spnl(G)) { goto l1127; } if (!yymatchChar(G, '/')) goto l1127;
  5216. { int yypos1128= G->pos, yythunkpos1128= G->thunkpos; if (!yymatchString(G, "h1")) goto l1129; goto l1128;
  5217. l1129:; G->pos= yypos1128; G->thunkpos= yythunkpos1128; if (!yymatchString(G, "H1")) goto l1127;
  5218. }
  5219. l1128:; if (!yy_Spnl(G)) { goto l1127; } if (!yymatchChar(G, '>')) goto l1127;
  5220. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  5221. return 1;
  5222. l1127:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5223. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  5224. return 0;
  5225. }
  5226. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G)
  5227. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5228. yyprintf((stderr, "%s\n", "HtmlBlockOpenH1")); if (!yymatchChar(G, '<')) goto l1130; if (!yy_Spnl(G)) { goto l1130; }
  5229. { int yypos1131= G->pos, yythunkpos1131= G->thunkpos; if (!yymatchString(G, "h1")) goto l1132; goto l1131;
  5230. l1132:; G->pos= yypos1131; G->thunkpos= yythunkpos1131; if (!yymatchString(G, "H1")) goto l1130;
  5231. }
  5232. l1131:; if (!yy_Spnl(G)) { goto l1130; }
  5233. l1133:;
  5234. { int yypos1134= G->pos, yythunkpos1134= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1134; } goto l1133;
  5235. l1134:; G->pos= yypos1134; G->thunkpos= yythunkpos1134;
  5236. } if (!yymatchChar(G, '>')) goto l1130;
  5237. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  5238. return 1;
  5239. l1130:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5240. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  5241. return 0;
  5242. }
  5243. YY_RULE(int) yy_HtmlBlockForm(GREG *G)
  5244. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5245. yyprintf((stderr, "%s\n", "HtmlBlockForm")); if (!yy_HtmlBlockOpenForm(G)) { goto l1135; }
  5246. l1136:;
  5247. { int yypos1137= G->pos, yythunkpos1137= G->thunkpos;
  5248. { int yypos1138= G->pos, yythunkpos1138= G->thunkpos; if (!yy_HtmlBlockForm(G)) { goto l1139; } goto l1138;
  5249. l1139:; G->pos= yypos1138; G->thunkpos= yythunkpos1138;
  5250. { int yypos1140= G->pos, yythunkpos1140= G->thunkpos; if (!yy_HtmlBlockCloseForm(G)) { goto l1140; } goto l1137;
  5251. l1140:; G->pos= yypos1140; G->thunkpos= yythunkpos1140;
  5252. } if (!yymatchDot(G)) goto l1137;
  5253. }
  5254. l1138:; goto l1136;
  5255. l1137:; G->pos= yypos1137; G->thunkpos= yythunkpos1137;
  5256. } if (!yy_HtmlBlockCloseForm(G)) { goto l1135; }
  5257. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  5258. return 1;
  5259. l1135:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5260. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  5261. return 0;
  5262. }
  5263. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G)
  5264. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5265. yyprintf((stderr, "%s\n", "HtmlBlockCloseForm")); if (!yymatchChar(G, '<')) goto l1141; if (!yy_Spnl(G)) { goto l1141; } if (!yymatchChar(G, '/')) goto l1141;
  5266. { int yypos1142= G->pos, yythunkpos1142= G->thunkpos; if (!yymatchString(G, "form")) goto l1143; goto l1142;
  5267. l1143:; G->pos= yypos1142; G->thunkpos= yythunkpos1142; if (!yymatchString(G, "FORM")) goto l1141;
  5268. }
  5269. l1142:; if (!yy_Spnl(G)) { goto l1141; } if (!yymatchChar(G, '>')) goto l1141;
  5270. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  5271. return 1;
  5272. l1141:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5273. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  5274. return 0;
  5275. }
  5276. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G)
  5277. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5278. yyprintf((stderr, "%s\n", "HtmlBlockOpenForm")); if (!yymatchChar(G, '<')) goto l1144; if (!yy_Spnl(G)) { goto l1144; }
  5279. { int yypos1145= G->pos, yythunkpos1145= G->thunkpos; if (!yymatchString(G, "form")) goto l1146; goto l1145;
  5280. l1146:; G->pos= yypos1145; G->thunkpos= yythunkpos1145; if (!yymatchString(G, "FORM")) goto l1144;
  5281. }
  5282. l1145:; if (!yy_Spnl(G)) { goto l1144; }
  5283. l1147:;
  5284. { int yypos1148= G->pos, yythunkpos1148= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1148; } goto l1147;
  5285. l1148:; G->pos= yypos1148; G->thunkpos= yythunkpos1148;
  5286. } if (!yymatchChar(G, '>')) goto l1144;
  5287. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  5288. return 1;
  5289. l1144:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5290. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  5291. return 0;
  5292. }
  5293. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G)
  5294. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5295. yyprintf((stderr, "%s\n", "HtmlBlockFieldset")); if (!yy_HtmlBlockOpenFieldset(G)) { goto l1149; }
  5296. l1150:;
  5297. { int yypos1151= G->pos, yythunkpos1151= G->thunkpos;
  5298. { int yypos1152= G->pos, yythunkpos1152= G->thunkpos; if (!yy_HtmlBlockFieldset(G)) { goto l1153; } goto l1152;
  5299. l1153:; G->pos= yypos1152; G->thunkpos= yythunkpos1152;
  5300. { int yypos1154= G->pos, yythunkpos1154= G->thunkpos; if (!yy_HtmlBlockCloseFieldset(G)) { goto l1154; } goto l1151;
  5301. l1154:; G->pos= yypos1154; G->thunkpos= yythunkpos1154;
  5302. } if (!yymatchDot(G)) goto l1151;
  5303. }
  5304. l1152:; goto l1150;
  5305. l1151:; G->pos= yypos1151; G->thunkpos= yythunkpos1151;
  5306. } if (!yy_HtmlBlockCloseFieldset(G)) { goto l1149; }
  5307. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  5308. return 1;
  5309. l1149:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5310. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  5311. return 0;
  5312. }
  5313. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G)
  5314. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5315. yyprintf((stderr, "%s\n", "HtmlBlockCloseFieldset")); if (!yymatchChar(G, '<')) goto l1155; if (!yy_Spnl(G)) { goto l1155; } if (!yymatchChar(G, '/')) goto l1155;
  5316. { int yypos1156= G->pos, yythunkpos1156= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1157; goto l1156;
  5317. l1157:; G->pos= yypos1156; G->thunkpos= yythunkpos1156; if (!yymatchString(G, "FIELDSET")) goto l1155;
  5318. }
  5319. l1156:; if (!yy_Spnl(G)) { goto l1155; } if (!yymatchChar(G, '>')) goto l1155;
  5320. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5321. return 1;
  5322. l1155:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5323. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5324. return 0;
  5325. }
  5326. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G)
  5327. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5328. yyprintf((stderr, "%s\n", "HtmlBlockOpenFieldset")); if (!yymatchChar(G, '<')) goto l1158; if (!yy_Spnl(G)) { goto l1158; }
  5329. { int yypos1159= G->pos, yythunkpos1159= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1160; goto l1159;
  5330. l1160:; G->pos= yypos1159; G->thunkpos= yythunkpos1159; if (!yymatchString(G, "FIELDSET")) goto l1158;
  5331. }
  5332. l1159:; if (!yy_Spnl(G)) { goto l1158; }
  5333. l1161:;
  5334. { int yypos1162= G->pos, yythunkpos1162= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1162; } goto l1161;
  5335. l1162:; G->pos= yypos1162; G->thunkpos= yythunkpos1162;
  5336. } if (!yymatchChar(G, '>')) goto l1158;
  5337. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5338. return 1;
  5339. l1158:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5340. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5341. return 0;
  5342. }
  5343. YY_RULE(int) yy_HtmlBlockDl(GREG *G)
  5344. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5345. yyprintf((stderr, "%s\n", "HtmlBlockDl")); if (!yy_HtmlBlockOpenDl(G)) { goto l1163; }
  5346. l1164:;
  5347. { int yypos1165= G->pos, yythunkpos1165= G->thunkpos;
  5348. { int yypos1166= G->pos, yythunkpos1166= G->thunkpos; if (!yy_HtmlBlockDl(G)) { goto l1167; } goto l1166;
  5349. l1167:; G->pos= yypos1166; G->thunkpos= yythunkpos1166;
  5350. { int yypos1168= G->pos, yythunkpos1168= G->thunkpos; if (!yy_HtmlBlockCloseDl(G)) { goto l1168; } goto l1165;
  5351. l1168:; G->pos= yypos1168; G->thunkpos= yythunkpos1168;
  5352. } if (!yymatchDot(G)) goto l1165;
  5353. }
  5354. l1166:; goto l1164;
  5355. l1165:; G->pos= yypos1165; G->thunkpos= yythunkpos1165;
  5356. } if (!yy_HtmlBlockCloseDl(G)) { goto l1163; }
  5357. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5358. return 1;
  5359. l1163:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5360. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5361. return 0;
  5362. }
  5363. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G)
  5364. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5365. yyprintf((stderr, "%s\n", "HtmlBlockCloseDl")); if (!yymatchChar(G, '<')) goto l1169; if (!yy_Spnl(G)) { goto l1169; } if (!yymatchChar(G, '/')) goto l1169;
  5366. { int yypos1170= G->pos, yythunkpos1170= G->thunkpos; if (!yymatchString(G, "dl")) goto l1171; goto l1170;
  5367. l1171:; G->pos= yypos1170; G->thunkpos= yythunkpos1170; if (!yymatchString(G, "DL")) goto l1169;
  5368. }
  5369. l1170:; if (!yy_Spnl(G)) { goto l1169; } if (!yymatchChar(G, '>')) goto l1169;
  5370. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5371. return 1;
  5372. l1169:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5373. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5374. return 0;
  5375. }
  5376. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G)
  5377. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5378. yyprintf((stderr, "%s\n", "HtmlBlockOpenDl")); if (!yymatchChar(G, '<')) goto l1172; if (!yy_Spnl(G)) { goto l1172; }
  5379. { int yypos1173= G->pos, yythunkpos1173= G->thunkpos; if (!yymatchString(G, "dl")) goto l1174; goto l1173;
  5380. l1174:; G->pos= yypos1173; G->thunkpos= yythunkpos1173; if (!yymatchString(G, "DL")) goto l1172;
  5381. }
  5382. l1173:; if (!yy_Spnl(G)) { goto l1172; }
  5383. l1175:;
  5384. { int yypos1176= G->pos, yythunkpos1176= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1176; } goto l1175;
  5385. l1176:; G->pos= yypos1176; G->thunkpos= yythunkpos1176;
  5386. } if (!yymatchChar(G, '>')) goto l1172;
  5387. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5388. return 1;
  5389. l1172:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5390. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5391. return 0;
  5392. }
  5393. YY_RULE(int) yy_HtmlBlockDiv(GREG *G)
  5394. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5395. yyprintf((stderr, "%s\n", "HtmlBlockDiv")); if (!yy_HtmlBlockOpenDiv(G)) { goto l1177; }
  5396. l1178:;
  5397. { int yypos1179= G->pos, yythunkpos1179= G->thunkpos;
  5398. { int yypos1180= G->pos, yythunkpos1180= G->thunkpos; if (!yy_HtmlBlockDiv(G)) { goto l1181; } goto l1180;
  5399. l1181:; G->pos= yypos1180; G->thunkpos= yythunkpos1180;
  5400. { int yypos1182= G->pos, yythunkpos1182= G->thunkpos; if (!yy_HtmlBlockCloseDiv(G)) { goto l1182; } goto l1179;
  5401. l1182:; G->pos= yypos1182; G->thunkpos= yythunkpos1182;
  5402. } if (!yymatchDot(G)) goto l1179;
  5403. }
  5404. l1180:; goto l1178;
  5405. l1179:; G->pos= yypos1179; G->thunkpos= yythunkpos1179;
  5406. } if (!yy_HtmlBlockCloseDiv(G)) { goto l1177; }
  5407. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5408. return 1;
  5409. l1177:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5410. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5411. return 0;
  5412. }
  5413. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G)
  5414. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5415. yyprintf((stderr, "%s\n", "HtmlBlockCloseDiv")); if (!yymatchChar(G, '<')) goto l1183; if (!yy_Spnl(G)) { goto l1183; } if (!yymatchChar(G, '/')) goto l1183;
  5416. { int yypos1184= G->pos, yythunkpos1184= G->thunkpos; if (!yymatchString(G, "div")) goto l1185; goto l1184;
  5417. l1185:; G->pos= yypos1184; G->thunkpos= yythunkpos1184; if (!yymatchString(G, "DIV")) goto l1183;
  5418. }
  5419. l1184:; if (!yy_Spnl(G)) { goto l1183; } if (!yymatchChar(G, '>')) goto l1183;
  5420. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5421. return 1;
  5422. l1183:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5423. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5424. return 0;
  5425. }
  5426. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G)
  5427. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5428. yyprintf((stderr, "%s\n", "HtmlBlockOpenDiv")); if (!yymatchChar(G, '<')) goto l1186; if (!yy_Spnl(G)) { goto l1186; }
  5429. { int yypos1187= G->pos, yythunkpos1187= G->thunkpos; if (!yymatchString(G, "div")) goto l1188; goto l1187;
  5430. l1188:; G->pos= yypos1187; G->thunkpos= yythunkpos1187; if (!yymatchString(G, "DIV")) goto l1186;
  5431. }
  5432. l1187:; if (!yy_Spnl(G)) { goto l1186; }
  5433. l1189:;
  5434. { int yypos1190= G->pos, yythunkpos1190= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1190; } goto l1189;
  5435. l1190:; G->pos= yypos1190; G->thunkpos= yythunkpos1190;
  5436. } if (!yymatchChar(G, '>')) goto l1186;
  5437. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5438. return 1;
  5439. l1186:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5440. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5441. return 0;
  5442. }
  5443. YY_RULE(int) yy_HtmlBlockDir(GREG *G)
  5444. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5445. yyprintf((stderr, "%s\n", "HtmlBlockDir")); if (!yy_HtmlBlockOpenDir(G)) { goto l1191; }
  5446. l1192:;
  5447. { int yypos1193= G->pos, yythunkpos1193= G->thunkpos;
  5448. { int yypos1194= G->pos, yythunkpos1194= G->thunkpos; if (!yy_HtmlBlockDir(G)) { goto l1195; } goto l1194;
  5449. l1195:; G->pos= yypos1194; G->thunkpos= yythunkpos1194;
  5450. { int yypos1196= G->pos, yythunkpos1196= G->thunkpos; if (!yy_HtmlBlockCloseDir(G)) { goto l1196; } goto l1193;
  5451. l1196:; G->pos= yypos1196; G->thunkpos= yythunkpos1196;
  5452. } if (!yymatchDot(G)) goto l1193;
  5453. }
  5454. l1194:; goto l1192;
  5455. l1193:; G->pos= yypos1193; G->thunkpos= yythunkpos1193;
  5456. } if (!yy_HtmlBlockCloseDir(G)) { goto l1191; }
  5457. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5458. return 1;
  5459. l1191:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5460. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5461. return 0;
  5462. }
  5463. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G)
  5464. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5465. yyprintf((stderr, "%s\n", "HtmlBlockCloseDir")); if (!yymatchChar(G, '<')) goto l1197; if (!yy_Spnl(G)) { goto l1197; } if (!yymatchChar(G, '/')) goto l1197;
  5466. { int yypos1198= G->pos, yythunkpos1198= G->thunkpos; if (!yymatchString(G, "dir")) goto l1199; goto l1198;
  5467. l1199:; G->pos= yypos1198; G->thunkpos= yythunkpos1198; if (!yymatchString(G, "DIR")) goto l1197;
  5468. }
  5469. l1198:; if (!yy_Spnl(G)) { goto l1197; } if (!yymatchChar(G, '>')) goto l1197;
  5470. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5471. return 1;
  5472. l1197:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5473. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5474. return 0;
  5475. }
  5476. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G)
  5477. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5478. yyprintf((stderr, "%s\n", "HtmlBlockOpenDir")); if (!yymatchChar(G, '<')) goto l1200; if (!yy_Spnl(G)) { goto l1200; }
  5479. { int yypos1201= G->pos, yythunkpos1201= G->thunkpos; if (!yymatchString(G, "dir")) goto l1202; goto l1201;
  5480. l1202:; G->pos= yypos1201; G->thunkpos= yythunkpos1201; if (!yymatchString(G, "DIR")) goto l1200;
  5481. }
  5482. l1201:; if (!yy_Spnl(G)) { goto l1200; }
  5483. l1203:;
  5484. { int yypos1204= G->pos, yythunkpos1204= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1204; } goto l1203;
  5485. l1204:; G->pos= yypos1204; G->thunkpos= yythunkpos1204;
  5486. } if (!yymatchChar(G, '>')) goto l1200;
  5487. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5488. return 1;
  5489. l1200:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5490. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5491. return 0;
  5492. }
  5493. YY_RULE(int) yy_HtmlBlockCenter(GREG *G)
  5494. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5495. yyprintf((stderr, "%s\n", "HtmlBlockCenter")); if (!yy_HtmlBlockOpenCenter(G)) { goto l1205; }
  5496. l1206:;
  5497. { int yypos1207= G->pos, yythunkpos1207= G->thunkpos;
  5498. { int yypos1208= G->pos, yythunkpos1208= G->thunkpos; if (!yy_HtmlBlockCenter(G)) { goto l1209; } goto l1208;
  5499. l1209:; G->pos= yypos1208; G->thunkpos= yythunkpos1208;
  5500. { int yypos1210= G->pos, yythunkpos1210= G->thunkpos; if (!yy_HtmlBlockCloseCenter(G)) { goto l1210; } goto l1207;
  5501. l1210:; G->pos= yypos1210; G->thunkpos= yythunkpos1210;
  5502. } if (!yymatchDot(G)) goto l1207;
  5503. }
  5504. l1208:; goto l1206;
  5505. l1207:; G->pos= yypos1207; G->thunkpos= yythunkpos1207;
  5506. } if (!yy_HtmlBlockCloseCenter(G)) { goto l1205; }
  5507. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5508. return 1;
  5509. l1205:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5510. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5511. return 0;
  5512. }
  5513. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G)
  5514. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5515. yyprintf((stderr, "%s\n", "HtmlBlockCloseCenter")); if (!yymatchChar(G, '<')) goto l1211; if (!yy_Spnl(G)) { goto l1211; } if (!yymatchChar(G, '/')) goto l1211;
  5516. { int yypos1212= G->pos, yythunkpos1212= G->thunkpos; if (!yymatchString(G, "center")) goto l1213; goto l1212;
  5517. l1213:; G->pos= yypos1212; G->thunkpos= yythunkpos1212; if (!yymatchString(G, "CENTER")) goto l1211;
  5518. }
  5519. l1212:; if (!yy_Spnl(G)) { goto l1211; } if (!yymatchChar(G, '>')) goto l1211;
  5520. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5521. return 1;
  5522. l1211:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5523. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5524. return 0;
  5525. }
  5526. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G)
  5527. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5528. yyprintf((stderr, "%s\n", "HtmlBlockOpenCenter")); if (!yymatchChar(G, '<')) goto l1214; if (!yy_Spnl(G)) { goto l1214; }
  5529. { int yypos1215= G->pos, yythunkpos1215= G->thunkpos; if (!yymatchString(G, "center")) goto l1216; goto l1215;
  5530. l1216:; G->pos= yypos1215; G->thunkpos= yythunkpos1215; if (!yymatchString(G, "CENTER")) goto l1214;
  5531. }
  5532. l1215:; if (!yy_Spnl(G)) { goto l1214; }
  5533. l1217:;
  5534. { int yypos1218= G->pos, yythunkpos1218= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1218; } goto l1217;
  5535. l1218:; G->pos= yypos1218; G->thunkpos= yythunkpos1218;
  5536. } if (!yymatchChar(G, '>')) goto l1214;
  5537. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5538. return 1;
  5539. l1214:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5540. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5541. return 0;
  5542. }
  5543. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G)
  5544. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5545. yyprintf((stderr, "%s\n", "HtmlBlockBlockquote")); if (!yy_HtmlBlockOpenBlockquote(G)) { goto l1219; }
  5546. l1220:;
  5547. { int yypos1221= G->pos, yythunkpos1221= G->thunkpos;
  5548. { int yypos1222= G->pos, yythunkpos1222= G->thunkpos; if (!yy_HtmlBlockBlockquote(G)) { goto l1223; } goto l1222;
  5549. l1223:; G->pos= yypos1222; G->thunkpos= yythunkpos1222;
  5550. { int yypos1224= G->pos, yythunkpos1224= G->thunkpos; if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1224; } goto l1221;
  5551. l1224:; G->pos= yypos1224; G->thunkpos= yythunkpos1224;
  5552. } if (!yymatchDot(G)) goto l1221;
  5553. }
  5554. l1222:; goto l1220;
  5555. l1221:; G->pos= yypos1221; G->thunkpos= yythunkpos1221;
  5556. } if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1219; }
  5557. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5558. return 1;
  5559. l1219:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5560. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5561. return 0;
  5562. }
  5563. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G)
  5564. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5565. yyprintf((stderr, "%s\n", "HtmlBlockCloseBlockquote")); if (!yymatchChar(G, '<')) goto l1225; if (!yy_Spnl(G)) { goto l1225; } if (!yymatchChar(G, '/')) goto l1225;
  5566. { int yypos1226= G->pos, yythunkpos1226= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1227; goto l1226;
  5567. l1227:; G->pos= yypos1226; G->thunkpos= yythunkpos1226; if (!yymatchString(G, "BLOCKQUOTE")) goto l1225;
  5568. }
  5569. l1226:; if (!yy_Spnl(G)) { goto l1225; } if (!yymatchChar(G, '>')) goto l1225;
  5570. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5571. return 1;
  5572. l1225:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5573. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5574. return 0;
  5575. }
  5576. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G)
  5577. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5578. yyprintf((stderr, "%s\n", "HtmlBlockOpenBlockquote")); if (!yymatchChar(G, '<')) goto l1228; if (!yy_Spnl(G)) { goto l1228; }
  5579. { int yypos1229= G->pos, yythunkpos1229= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1230; goto l1229;
  5580. l1230:; G->pos= yypos1229; G->thunkpos= yythunkpos1229; if (!yymatchString(G, "BLOCKQUOTE")) goto l1228;
  5581. }
  5582. l1229:; if (!yy_Spnl(G)) { goto l1228; }
  5583. l1231:;
  5584. { int yypos1232= G->pos, yythunkpos1232= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1232; } goto l1231;
  5585. l1232:; G->pos= yypos1232; G->thunkpos= yythunkpos1232;
  5586. } if (!yymatchChar(G, '>')) goto l1228;
  5587. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5588. return 1;
  5589. l1228:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5590. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5591. return 0;
  5592. }
  5593. YY_RULE(int) yy_HtmlBlockAddress(GREG *G)
  5594. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5595. yyprintf((stderr, "%s\n", "HtmlBlockAddress")); if (!yy_HtmlBlockOpenAddress(G)) { goto l1233; }
  5596. l1234:;
  5597. { int yypos1235= G->pos, yythunkpos1235= G->thunkpos;
  5598. { int yypos1236= G->pos, yythunkpos1236= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l1237; } goto l1236;
  5599. l1237:; G->pos= yypos1236; G->thunkpos= yythunkpos1236;
  5600. { int yypos1238= G->pos, yythunkpos1238= G->thunkpos; if (!yy_HtmlBlockCloseAddress(G)) { goto l1238; } goto l1235;
  5601. l1238:; G->pos= yypos1238; G->thunkpos= yythunkpos1238;
  5602. } if (!yymatchDot(G)) goto l1235;
  5603. }
  5604. l1236:; goto l1234;
  5605. l1235:; G->pos= yypos1235; G->thunkpos= yythunkpos1235;
  5606. } if (!yy_HtmlBlockCloseAddress(G)) { goto l1233; }
  5607. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5608. return 1;
  5609. l1233:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5610. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5611. return 0;
  5612. }
  5613. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G)
  5614. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5615. yyprintf((stderr, "%s\n", "HtmlBlockCloseAddress")); if (!yymatchChar(G, '<')) goto l1239; if (!yy_Spnl(G)) { goto l1239; } if (!yymatchChar(G, '/')) goto l1239;
  5616. { int yypos1240= G->pos, yythunkpos1240= G->thunkpos; if (!yymatchString(G, "address")) goto l1241; goto l1240;
  5617. l1241:; G->pos= yypos1240; G->thunkpos= yythunkpos1240; if (!yymatchString(G, "ADDRESS")) goto l1239;
  5618. }
  5619. l1240:; if (!yy_Spnl(G)) { goto l1239; } if (!yymatchChar(G, '>')) goto l1239;
  5620. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5621. return 1;
  5622. l1239:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5623. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5624. return 0;
  5625. }
  5626. YY_RULE(int) yy_HtmlAttribute(GREG *G)
  5627. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5628. yyprintf((stderr, "%s\n", "HtmlAttribute"));
  5629. { int yypos1245= G->pos, yythunkpos1245= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1246; } goto l1245;
  5630. l1246:; G->pos= yypos1245; G->thunkpos= yythunkpos1245; if (!yymatchChar(G, '-')) goto l1242;
  5631. }
  5632. l1245:;
  5633. l1243:;
  5634. { int yypos1244= G->pos, yythunkpos1244= G->thunkpos;
  5635. { int yypos1247= G->pos, yythunkpos1247= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1248; } goto l1247;
  5636. l1248:; G->pos= yypos1247; G->thunkpos= yythunkpos1247; if (!yymatchChar(G, '-')) goto l1244;
  5637. }
  5638. l1247:; goto l1243;
  5639. l1244:; G->pos= yypos1244; G->thunkpos= yythunkpos1244;
  5640. } if (!yy_Spnl(G)) { goto l1242; }
  5641. { int yypos1249= G->pos, yythunkpos1249= G->thunkpos; if (!yymatchChar(G, '=')) goto l1249; if (!yy_Spnl(G)) { goto l1249; }
  5642. { int yypos1251= G->pos, yythunkpos1251= G->thunkpos; if (!yy_Quoted(G)) { goto l1252; } goto l1251;
  5643. l1252:; G->pos= yypos1251; G->thunkpos= yythunkpos1251;
  5644. { int yypos1255= G->pos, yythunkpos1255= G->thunkpos; if (!yymatchChar(G, '>')) goto l1255; goto l1249;
  5645. l1255:; G->pos= yypos1255; G->thunkpos= yythunkpos1255;
  5646. } if (!yy_Nonspacechar(G)) { goto l1249; }
  5647. l1253:;
  5648. { int yypos1254= G->pos, yythunkpos1254= G->thunkpos;
  5649. { int yypos1256= G->pos, yythunkpos1256= G->thunkpos; if (!yymatchChar(G, '>')) goto l1256; goto l1254;
  5650. l1256:; G->pos= yypos1256; G->thunkpos= yythunkpos1256;
  5651. } if (!yy_Nonspacechar(G)) { goto l1254; } goto l1253;
  5652. l1254:; G->pos= yypos1254; G->thunkpos= yythunkpos1254;
  5653. }
  5654. }
  5655. l1251:; goto l1250;
  5656. l1249:; G->pos= yypos1249; G->thunkpos= yythunkpos1249;
  5657. }
  5658. l1250:; if (!yy_Spnl(G)) { goto l1242; }
  5659. yyprintf((stderr, " ok %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5660. return 1;
  5661. l1242:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5662. yyprintf((stderr, " fail %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5663. return 0;
  5664. }
  5665. YY_RULE(int) yy_Spnl(GREG *G)
  5666. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5667. yyprintf((stderr, "%s\n", "Spnl")); if (!yy_Sp(G)) { goto l1257; }
  5668. { int yypos1258= G->pos, yythunkpos1258= G->thunkpos; if (!yy_Newline(G)) { goto l1258; } if (!yy_Sp(G)) { goto l1258; } goto l1259;
  5669. l1258:; G->pos= yypos1258; G->thunkpos= yythunkpos1258;
  5670. }
  5671. l1259:;
  5672. yyprintf((stderr, " ok %s @ %s\n", "Spnl", G->buf+G->pos));
  5673. return 1;
  5674. l1257:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5675. yyprintf((stderr, " fail %s @ %s\n", "Spnl", G->buf+G->pos));
  5676. return 0;
  5677. }
  5678. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G)
  5679. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5680. yyprintf((stderr, "%s\n", "HtmlBlockOpenAddress")); if (!yymatchChar(G, '<')) goto l1260; if (!yy_Spnl(G)) { goto l1260; }
  5681. { int yypos1261= G->pos, yythunkpos1261= G->thunkpos; if (!yymatchString(G, "address")) goto l1262; goto l1261;
  5682. l1262:; G->pos= yypos1261; G->thunkpos= yythunkpos1261; if (!yymatchString(G, "ADDRESS")) goto l1260;
  5683. }
  5684. l1261:; if (!yy_Spnl(G)) { goto l1260; }
  5685. l1263:;
  5686. { int yypos1264= G->pos, yythunkpos1264= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1264; } goto l1263;
  5687. l1264:; G->pos= yypos1264; G->thunkpos= yythunkpos1264;
  5688. } if (!yymatchChar(G, '>')) goto l1260;
  5689. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5690. return 1;
  5691. l1260:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5692. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5693. return 0;
  5694. }
  5695. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G)
  5696. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5697. yyprintf((stderr, "%s\n", "OptionallyIndentedLine"));
  5698. { int yypos1266= G->pos, yythunkpos1266= G->thunkpos; if (!yy_Indent(G)) { goto l1266; } goto l1267;
  5699. l1266:; G->pos= yypos1266; G->thunkpos= yythunkpos1266;
  5700. }
  5701. l1267:; if (!yy_Line(G)) { goto l1265; }
  5702. yyprintf((stderr, " ok %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5703. return 1;
  5704. l1265:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5705. yyprintf((stderr, " fail %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5706. return 0;
  5707. }
  5708. YY_RULE(int) yy_Indent(GREG *G)
  5709. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5710. yyprintf((stderr, "%s\n", "Indent"));
  5711. { int yypos1269= G->pos, yythunkpos1269= G->thunkpos; if (!yymatchChar(G, '\t')) goto l1270; goto l1269;
  5712. l1270:; G->pos= yypos1269; G->thunkpos= yythunkpos1269; if (!yymatchString(G, " ")) goto l1268;
  5713. }
  5714. l1269:;
  5715. yyprintf((stderr, " ok %s @ %s\n", "Indent", G->buf+G->pos));
  5716. return 1;
  5717. l1268:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5718. yyprintf((stderr, " fail %s @ %s\n", "Indent", G->buf+G->pos));
  5719. return 0;
  5720. }
  5721. YY_RULE(int) yy_ListBlockLine(GREG *G)
  5722. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5723. yyprintf((stderr, "%s\n", "ListBlockLine"));
  5724. { int yypos1272= G->pos, yythunkpos1272= G->thunkpos; if (!yy_BlankLine(G)) { goto l1272; } goto l1271;
  5725. l1272:; G->pos= yypos1272; G->thunkpos= yythunkpos1272;
  5726. }
  5727. { int yypos1273= G->pos, yythunkpos1273= G->thunkpos;
  5728. { int yypos1274= G->pos, yythunkpos1274= G->thunkpos; if (!yy_Indent(G)) { goto l1274; } goto l1275;
  5729. l1274:; G->pos= yypos1274; G->thunkpos= yythunkpos1274;
  5730. }
  5731. l1275:;
  5732. { int yypos1276= G->pos, yythunkpos1276= G->thunkpos; if (!yy_Bullet(G)) { goto l1277; } goto l1276;
  5733. l1277:; G->pos= yypos1276; G->thunkpos= yythunkpos1276; if (!yy_Enumerator(G)) { goto l1273; }
  5734. }
  5735. l1276:; goto l1271;
  5736. l1273:; G->pos= yypos1273; G->thunkpos= yythunkpos1273;
  5737. }
  5738. { int yypos1278= G->pos, yythunkpos1278= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1278; } goto l1271;
  5739. l1278:; G->pos= yypos1278; G->thunkpos= yythunkpos1278;
  5740. } if (!yy_OptionallyIndentedLine(G)) { goto l1271; }
  5741. yyprintf((stderr, " ok %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5742. return 1;
  5743. l1271:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5744. yyprintf((stderr, " fail %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5745. return 0;
  5746. }
  5747. YY_RULE(int) yy_ListContinuationBlock(GREG *G)
  5748. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5749. yyprintf((stderr, "%s\n", "ListContinuationBlock")); if (!yy_StartList(G)) { goto l1279; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1279;
  5750. l1280:;
  5751. { int yypos1281= G->pos, yythunkpos1281= G->thunkpos; if (!yy_BlankLine(G)) { goto l1281; } goto l1280;
  5752. l1281:; G->pos= yypos1281; G->thunkpos= yythunkpos1281;
  5753. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1279; yyDo(G, yy_1_ListContinuationBlock, G->begin, G->end); if (!yy_Indent(G)) { goto l1279; } if (!yy_ListBlock(G)) { goto l1279; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end);
  5754. l1282:;
  5755. { int yypos1283= G->pos, yythunkpos1283= G->thunkpos; if (!yy_Indent(G)) { goto l1283; } if (!yy_ListBlock(G)) { goto l1283; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end); goto l1282;
  5756. l1283:; G->pos= yypos1283; G->thunkpos= yythunkpos1283;
  5757. } yyDo(G, yy_3_ListContinuationBlock, G->begin, G->end);
  5758. yyprintf((stderr, " ok %s @ %s\n", "ListContinuationBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5759. return 1;
  5760. l1279:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5761. yyprintf((stderr, " fail %s @ %s\n", "ListContinuationBlock", G->buf+G->pos));
  5762. return 0;
  5763. }
  5764. YY_RULE(int) yy_ListBlock(GREG *G)
  5765. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5766. yyprintf((stderr, "%s\n", "ListBlock")); if (!yy_StartList(G)) { goto l1284; } yyDo(G, yySet, -1, 0);
  5767. { int yypos1285= G->pos, yythunkpos1285= G->thunkpos; if (!yy_BlankLine(G)) { goto l1285; } goto l1284;
  5768. l1285:; G->pos= yypos1285; G->thunkpos= yythunkpos1285;
  5769. } if (!yy_Line(G)) { goto l1284; } yyDo(G, yy_1_ListBlock, G->begin, G->end);
  5770. l1286:;
  5771. { int yypos1287= G->pos, yythunkpos1287= G->thunkpos; if (!yy_ListBlockLine(G)) { goto l1287; } yyDo(G, yy_2_ListBlock, G->begin, G->end); goto l1286;
  5772. l1287:; G->pos= yypos1287; G->thunkpos= yythunkpos1287;
  5773. } yyDo(G, yy_3_ListBlock, G->begin, G->end);
  5774. yyprintf((stderr, " ok %s @ %s\n", "ListBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5775. return 1;
  5776. l1284:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5777. yyprintf((stderr, " fail %s @ %s\n", "ListBlock", G->buf+G->pos));
  5778. return 0;
  5779. }
  5780. YY_RULE(int) yy_ListItem(GREG *G)
  5781. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5782. yyprintf((stderr, "%s\n", "ListItem"));
  5783. { int yypos1289= G->pos, yythunkpos1289= G->thunkpos; if (!yy_Bullet(G)) { goto l1290; } goto l1289;
  5784. l1290:; G->pos= yypos1289; G->thunkpos= yythunkpos1289; if (!yy_Enumerator(G)) { goto l1288; }
  5785. }
  5786. l1289:; if (!yy_StartList(G)) { goto l1288; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1288; } yyDo(G, yy_1_ListItem, G->begin, G->end);
  5787. l1291:;
  5788. { int yypos1292= G->pos, yythunkpos1292= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1292; } yyDo(G, yy_2_ListItem, G->begin, G->end); goto l1291;
  5789. l1292:; G->pos= yypos1292; G->thunkpos= yythunkpos1292;
  5790. } yyDo(G, yy_3_ListItem, G->begin, G->end);
  5791. yyprintf((stderr, " ok %s @ %s\n", "ListItem", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5792. return 1;
  5793. l1288:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5794. yyprintf((stderr, " fail %s @ %s\n", "ListItem", G->buf+G->pos));
  5795. return 0;
  5796. }
  5797. YY_RULE(int) yy_Enumerator(GREG *G)
  5798. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5799. yyprintf((stderr, "%s\n", "Enumerator")); if (!yy_NonindentSpace(G)) { goto l1293; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1293; 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 l1293;
  5800. l1294:;
  5801. { int yypos1295= G->pos, yythunkpos1295= 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 l1295; goto l1294;
  5802. l1295:; G->pos= yypos1295; G->thunkpos= yythunkpos1295;
  5803. } if (!yymatchChar(G, '.')) goto l1293; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1293; if (!yy_Spacechar(G)) { goto l1293; }
  5804. l1296:;
  5805. { int yypos1297= G->pos, yythunkpos1297= G->thunkpos; if (!yy_Spacechar(G)) { goto l1297; } goto l1296;
  5806. l1297:; G->pos= yypos1297; G->thunkpos= yythunkpos1297;
  5807. } yyDo(G, yy_1_Enumerator, G->begin, G->end);
  5808. yyprintf((stderr, " ok %s @ %s\n", "Enumerator", G->buf+G->pos));
  5809. return 1;
  5810. l1293:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5811. yyprintf((stderr, " fail %s @ %s\n", "Enumerator", G->buf+G->pos));
  5812. return 0;
  5813. }
  5814. YY_RULE(int) yy_ListItemTight(GREG *G)
  5815. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5816. yyprintf((stderr, "%s\n", "ListItemTight"));
  5817. { int yypos1299= G->pos, yythunkpos1299= G->thunkpos; if (!yy_Bullet(G)) { goto l1300; } goto l1299;
  5818. l1300:; G->pos= yypos1299; G->thunkpos= yythunkpos1299; if (!yy_Enumerator(G)) { goto l1298; }
  5819. }
  5820. l1299:; if (!yy_StartList(G)) { goto l1298; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1298; } yyDo(G, yy_1_ListItemTight, G->begin, G->end);
  5821. l1301:;
  5822. { int yypos1302= G->pos, yythunkpos1302= G->thunkpos;
  5823. { int yypos1303= G->pos, yythunkpos1303= G->thunkpos; if (!yy_BlankLine(G)) { goto l1303; } goto l1302;
  5824. l1303:; G->pos= yypos1303; G->thunkpos= yythunkpos1303;
  5825. } if (!yy_ListContinuationBlock(G)) { goto l1302; } yyDo(G, yy_2_ListItemTight, G->begin, G->end); goto l1301;
  5826. l1302:; G->pos= yypos1302; G->thunkpos= yythunkpos1302;
  5827. }
  5828. { int yypos1304= G->pos, yythunkpos1304= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1304; } goto l1298;
  5829. l1304:; G->pos= yypos1304; G->thunkpos= yythunkpos1304;
  5830. } yyDo(G, yy_3_ListItemTight, G->begin, G->end);
  5831. yyprintf((stderr, " ok %s @ %s\n", "ListItemTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5832. return 1;
  5833. l1298:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5834. yyprintf((stderr, " fail %s @ %s\n", "ListItemTight", G->buf+G->pos));
  5835. return 0;
  5836. }
  5837. YY_RULE(int) yy_ListLoose(GREG *G)
  5838. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  5839. yyprintf((stderr, "%s\n", "ListLoose")); if (!yy_StartList(G)) { goto l1305; } yyDo(G, yySet, -2, 0); if (!yy_ListItem(G)) { goto l1305; } yyDo(G, yySet, -1, 0);
  5840. l1308:;
  5841. { int yypos1309= G->pos, yythunkpos1309= G->thunkpos; if (!yy_BlankLine(G)) { goto l1309; } goto l1308;
  5842. l1309:; G->pos= yypos1309; G->thunkpos= yythunkpos1309;
  5843. } yyDo(G, yy_1_ListLoose, G->begin, G->end);
  5844. l1306:;
  5845. { int yypos1307= G->pos, yythunkpos1307= G->thunkpos; if (!yy_ListItem(G)) { goto l1307; } yyDo(G, yySet, -1, 0);
  5846. l1310:;
  5847. { int yypos1311= G->pos, yythunkpos1311= G->thunkpos; if (!yy_BlankLine(G)) { goto l1311; } goto l1310;
  5848. l1311:; G->pos= yypos1311; G->thunkpos= yythunkpos1311;
  5849. } yyDo(G, yy_1_ListLoose, G->begin, G->end); goto l1306;
  5850. l1307:; G->pos= yypos1307; G->thunkpos= yythunkpos1307;
  5851. } yyDo(G, yy_2_ListLoose, G->begin, G->end);
  5852. yyprintf((stderr, " ok %s @ %s\n", "ListLoose", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  5853. return 1;
  5854. l1305:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5855. yyprintf((stderr, " fail %s @ %s\n", "ListLoose", G->buf+G->pos));
  5856. return 0;
  5857. }
  5858. YY_RULE(int) yy_ListTight(GREG *G)
  5859. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5860. yyprintf((stderr, "%s\n", "ListTight")); if (!yy_StartList(G)) { goto l1312; } yyDo(G, yySet, -1, 0); if (!yy_ListItemTight(G)) { goto l1312; } yyDo(G, yy_1_ListTight, G->begin, G->end);
  5861. l1313:;
  5862. { int yypos1314= G->pos, yythunkpos1314= G->thunkpos; if (!yy_ListItemTight(G)) { goto l1314; } yyDo(G, yy_1_ListTight, G->begin, G->end); goto l1313;
  5863. l1314:; G->pos= yypos1314; G->thunkpos= yythunkpos1314;
  5864. }
  5865. l1315:;
  5866. { int yypos1316= G->pos, yythunkpos1316= G->thunkpos; if (!yy_BlankLine(G)) { goto l1316; } goto l1315;
  5867. l1316:; G->pos= yypos1316; G->thunkpos= yythunkpos1316;
  5868. }
  5869. { int yypos1317= G->pos, yythunkpos1317= G->thunkpos;
  5870. { int yypos1318= G->pos, yythunkpos1318= G->thunkpos; if (!yy_Bullet(G)) { goto l1319; } goto l1318;
  5871. l1319:; G->pos= yypos1318; G->thunkpos= yythunkpos1318; if (!yy_Enumerator(G)) { goto l1317; }
  5872. }
  5873. l1318:; goto l1312;
  5874. l1317:; G->pos= yypos1317; G->thunkpos= yythunkpos1317;
  5875. } yyDo(G, yy_2_ListTight, G->begin, G->end);
  5876. yyprintf((stderr, " ok %s @ %s\n", "ListTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5877. return 1;
  5878. l1312:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5879. yyprintf((stderr, " fail %s @ %s\n", "ListTight", G->buf+G->pos));
  5880. return 0;
  5881. }
  5882. YY_RULE(int) yy_Bullet(GREG *G)
  5883. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5884. yyprintf((stderr, "%s\n", "Bullet"));
  5885. { int yypos1321= G->pos, yythunkpos1321= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1321; } goto l1320;
  5886. l1321:; G->pos= yypos1321; G->thunkpos= yythunkpos1321;
  5887. } if (!yy_NonindentSpace(G)) { goto l1320; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1320;
  5888. { int yypos1322= G->pos, yythunkpos1322= G->thunkpos; if (!yymatchChar(G, '+')) goto l1323; goto l1322;
  5889. l1323:; G->pos= yypos1322; G->thunkpos= yythunkpos1322; if (!yymatchChar(G, '*')) goto l1324; goto l1322;
  5890. l1324:; G->pos= yypos1322; G->thunkpos= yythunkpos1322; if (!yymatchChar(G, '-')) goto l1320;
  5891. }
  5892. l1322:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1320; if (!yy_Spacechar(G)) { goto l1320; }
  5893. l1325:;
  5894. { int yypos1326= G->pos, yythunkpos1326= G->thunkpos; if (!yy_Spacechar(G)) { goto l1326; } goto l1325;
  5895. l1326:; G->pos= yypos1326; G->thunkpos= yythunkpos1326;
  5896. } yyDo(G, yy_1_Bullet, G->begin, G->end);
  5897. yyprintf((stderr, " ok %s @ %s\n", "Bullet", G->buf+G->pos));
  5898. return 1;
  5899. l1320:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5900. yyprintf((stderr, " fail %s @ %s\n", "Bullet", G->buf+G->pos));
  5901. return 0;
  5902. }
  5903. YY_RULE(int) yy_Nonspacechar(GREG *G)
  5904. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5905. yyprintf((stderr, "%s\n", "Nonspacechar"));
  5906. { int yypos1328= G->pos, yythunkpos1328= G->thunkpos; if (!yy_Spacechar(G)) { goto l1328; } goto l1327;
  5907. l1328:; G->pos= yypos1328; G->thunkpos= yythunkpos1328;
  5908. }
  5909. { int yypos1329= G->pos, yythunkpos1329= G->thunkpos; if (!yy_Newline(G)) { goto l1329; } goto l1327;
  5910. l1329:; G->pos= yypos1329; G->thunkpos= yythunkpos1329;
  5911. } if (!yymatchDot(G)) goto l1327;
  5912. yyprintf((stderr, " ok %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  5913. return 1;
  5914. l1327:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5915. yyprintf((stderr, " fail %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  5916. return 0;
  5917. }
  5918. YY_RULE(int) yy_InlineEquationMultiple(GREG *G)
  5919. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5920. yyprintf((stderr, "%s\n", "InlineEquationMultiple"));
  5921. { int yypos1331= G->pos, yythunkpos1331= G->thunkpos; if (!yymatchChar(G, '$')) goto l1331; goto l1330;
  5922. l1331:; G->pos= yypos1331; G->thunkpos= yythunkpos1331;
  5923. } if (!yy_Nonspacechar(G)) { goto l1330; }
  5924. { int yypos1334= G->pos, yythunkpos1334= G->thunkpos; if (!yymatchChar(G, '$')) goto l1334; goto l1330;
  5925. l1334:; G->pos= yypos1334; G->thunkpos= yythunkpos1334;
  5926. }
  5927. { int yypos1335= G->pos, yythunkpos1335= G->thunkpos; if (!yy_Newline(G)) { goto l1335; } goto l1330;
  5928. l1335:; G->pos= yypos1335; G->thunkpos= yythunkpos1335;
  5929. } if (!yymatchDot(G)) goto l1330;
  5930. l1332:;
  5931. { int yypos1333= G->pos, yythunkpos1333= G->thunkpos;
  5932. { int yypos1336= G->pos, yythunkpos1336= G->thunkpos; if (!yymatchChar(G, '$')) goto l1336; goto l1333;
  5933. l1336:; G->pos= yypos1336; G->thunkpos= yythunkpos1336;
  5934. }
  5935. { int yypos1337= G->pos, yythunkpos1337= G->thunkpos; if (!yy_Newline(G)) { goto l1337; } goto l1333;
  5936. l1337:; G->pos= yypos1337; G->thunkpos= yythunkpos1337;
  5937. } if (!yymatchDot(G)) goto l1333; goto l1332;
  5938. l1333:; G->pos= yypos1333; G->thunkpos= yythunkpos1333;
  5939. } if (!yymatchChar(G, '$')) goto l1330; yyText(G, G->begin, G->end); if (!( IEP_POST )) goto l1330;
  5940. yyprintf((stderr, " ok %s @ %s\n", "InlineEquationMultiple", G->buf+G->pos));
  5941. return 1;
  5942. l1330:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5943. yyprintf((stderr, " fail %s @ %s\n", "InlineEquationMultiple", G->buf+G->pos));
  5944. return 0;
  5945. }
  5946. YY_RULE(int) yy_InlineEquationSingle(GREG *G)
  5947. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5948. yyprintf((stderr, "%s\n", "InlineEquationSingle"));
  5949. { int yypos1339= G->pos, yythunkpos1339= G->thunkpos; if (!yymatchChar(G, '$')) goto l1339; goto l1338;
  5950. l1339:; G->pos= yypos1339; G->thunkpos= yythunkpos1339;
  5951. }
  5952. { int yypos1340= G->pos, yythunkpos1340= G->thunkpos; if (!yymatchChar(G, '\\')) goto l1340; goto l1338;
  5953. l1340:; G->pos= yypos1340; G->thunkpos= yythunkpos1340;
  5954. } if (!yy_Nonspacechar(G)) { goto l1338; } if (!yymatchChar(G, '$')) goto l1338;
  5955. yyprintf((stderr, " ok %s @ %s\n", "InlineEquationSingle", G->buf+G->pos));
  5956. return 1;
  5957. l1338:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5958. yyprintf((stderr, " fail %s @ %s\n", "InlineEquationSingle", G->buf+G->pos));
  5959. return 0;
  5960. }
  5961. YY_RULE(int) yy_InlineEquation(GREG *G)
  5962. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5963. yyprintf((stderr, "%s\n", "InlineEquation")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MATH) )) goto l1341; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1341; if (!yymatchChar(G, '$')) goto l1341; yyText(G, G->begin, G->end); if (!( IEP_PRE )) goto l1341;
  5964. { int yypos1342= G->pos, yythunkpos1342= G->thunkpos; if (!yy_InlineEquationSingle(G)) { goto l1343; } goto l1342;
  5965. l1343:; G->pos= yypos1342; G->thunkpos= yythunkpos1342; if (!yy_InlineEquationMultiple(G)) { goto l1341; }
  5966. }
  5967. l1342:;
  5968. { int yypos1344= G->pos, yythunkpos1344= 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 l1344; goto l1341;
  5969. l1344:; G->pos= yypos1344; G->thunkpos= yythunkpos1344;
  5970. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1341; yyDo(G, yy_1_InlineEquation, G->begin, G->end);
  5971. yyprintf((stderr, " ok %s @ %s\n", "InlineEquation", G->buf+G->pos));
  5972. return 1;
  5973. l1341:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5974. yyprintf((stderr, " fail %s @ %s\n", "InlineEquation", G->buf+G->pos));
  5975. return 0;
  5976. }
  5977. YY_RULE(int) yy_FormulaNumber(GREG *G)
  5978. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5979. yyprintf((stderr, "%s\n", "FormulaNumber")); if (!yymatchChar(G, '(')) goto l1345;
  5980. { int yypos1348= G->pos, yythunkpos1348= G->thunkpos; if (!yymatchChar(G, ')')) goto l1348; goto l1345;
  5981. l1348:; G->pos= yypos1348; G->thunkpos= yythunkpos1348;
  5982. }
  5983. { int yypos1349= G->pos, yythunkpos1349= G->thunkpos; if (!yymatchChar(G, '$')) goto l1349; goto l1345;
  5984. l1349:; G->pos= yypos1349; G->thunkpos= yythunkpos1349;
  5985. }
  5986. { int yypos1350= G->pos, yythunkpos1350= G->thunkpos; if (!yy_Newline(G)) { goto l1350; } goto l1345;
  5987. l1350:; G->pos= yypos1350; G->thunkpos= yythunkpos1350;
  5988. } if (!yymatchDot(G)) goto l1345;
  5989. l1346:;
  5990. { int yypos1347= G->pos, yythunkpos1347= G->thunkpos;
  5991. { int yypos1351= G->pos, yythunkpos1351= G->thunkpos; if (!yymatchChar(G, ')')) goto l1351; goto l1347;
  5992. l1351:; G->pos= yypos1351; G->thunkpos= yythunkpos1351;
  5993. }
  5994. { int yypos1352= G->pos, yythunkpos1352= G->thunkpos; if (!yymatchChar(G, '$')) goto l1352; goto l1347;
  5995. l1352:; G->pos= yypos1352; G->thunkpos= yythunkpos1352;
  5996. }
  5997. { int yypos1353= G->pos, yythunkpos1353= G->thunkpos; if (!yy_Newline(G)) { goto l1353; } goto l1347;
  5998. l1353:; G->pos= yypos1353; G->thunkpos= yythunkpos1353;
  5999. } if (!yymatchDot(G)) goto l1347; goto l1346;
  6000. l1347:; G->pos= yypos1347; G->thunkpos= yythunkpos1347;
  6001. } if (!yymatchChar(G, ')')) goto l1345;
  6002. yyprintf((stderr, " ok %s @ %s\n", "FormulaNumber", G->buf+G->pos));
  6003. return 1;
  6004. l1345:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6005. yyprintf((stderr, " fail %s @ %s\n", "FormulaNumber", G->buf+G->pos));
  6006. return 0;
  6007. }
  6008. YY_RULE(int) yy_Spacechar(GREG *G)
  6009. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6010. yyprintf((stderr, "%s\n", "Spacechar"));
  6011. { int yypos1355= G->pos, yythunkpos1355= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1356; goto l1355;
  6012. l1356:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yymatchChar(G, '\t')) goto l1354;
  6013. }
  6014. l1355:;
  6015. yyprintf((stderr, " ok %s @ %s\n", "Spacechar", G->buf+G->pos));
  6016. return 1;
  6017. l1354:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6018. yyprintf((stderr, " fail %s @ %s\n", "Spacechar", G->buf+G->pos));
  6019. return 0;
  6020. }
  6021. YY_RULE(int) yy_FencedCodeBlockEnd(GREG *G)
  6022. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6023. yyprintf((stderr, "%s\n", "FencedCodeBlockEnd")); if (!yymatchString(G, "```")) goto l1357;
  6024. l1358:;
  6025. { int yypos1359= G->pos, yythunkpos1359= G->thunkpos; if (!yy_Spacechar(G)) { goto l1359; } goto l1358;
  6026. l1359:; G->pos= yypos1359; G->thunkpos= yythunkpos1359;
  6027. } if (!yy_Newline(G)) { goto l1357; }
  6028. yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockEnd", G->buf+G->pos));
  6029. return 1;
  6030. l1357:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6031. yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlockEnd", G->buf+G->pos));
  6032. return 0;
  6033. }
  6034. YY_RULE(int) yy_FencedCodeBlockChunk(GREG *G)
  6035. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6036. yyprintf((stderr, "%s\n", "FencedCodeBlockChunk"));
  6037. { int yypos1361= G->pos, yythunkpos1361= G->thunkpos; if (!yy_FencedCodeBlockEnd(G)) { goto l1361; } goto l1360;
  6038. l1361:; G->pos= yypos1361; G->thunkpos= yythunkpos1361;
  6039. }
  6040. l1362:;
  6041. { int yypos1363= G->pos, yythunkpos1363= G->thunkpos;
  6042. { int yypos1364= G->pos, yythunkpos1364= G->thunkpos; if (!yy_Newline(G)) { goto l1364; } goto l1363;
  6043. l1364:; G->pos= yypos1364; G->thunkpos= yythunkpos1364;
  6044. } if (!yymatchDot(G)) goto l1363; goto l1362;
  6045. l1363:; G->pos= yypos1363; G->thunkpos= yythunkpos1363;
  6046. } if (!yy_Newline(G)) { goto l1360; }
  6047. yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockChunk", G->buf+G->pos));
  6048. return 1;
  6049. l1360:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6050. yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlockChunk", G->buf+G->pos));
  6051. return 0;
  6052. }
  6053. YY_RULE(int) yy_FencedCodeBlockStart(GREG *G)
  6054. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6055. yyprintf((stderr, "%s\n", "FencedCodeBlockStart")); if (!yymatchString(G, "```")) goto l1365;
  6056. l1366:;
  6057. { int yypos1367= G->pos, yythunkpos1367= G->thunkpos;
  6058. { int yypos1368= G->pos, yythunkpos1368= G->thunkpos; if (!yy_Newline(G)) { goto l1368; } goto l1367;
  6059. l1368:; G->pos= yypos1368; G->thunkpos= yythunkpos1368;
  6060. }
  6061. { int yypos1369= G->pos, yythunkpos1369= G->thunkpos; if (!yymatchChar(G, '`')) goto l1369; goto l1367;
  6062. l1369:; G->pos= yypos1369; G->thunkpos= yythunkpos1369;
  6063. } if (!yymatchDot(G)) goto l1367; goto l1366;
  6064. l1367:; G->pos= yypos1367; G->thunkpos= yythunkpos1367;
  6065. } if (!yy_Newline(G)) { goto l1365; }
  6066. yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockStart", G->buf+G->pos));
  6067. return 1;
  6068. l1365:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6069. yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlockStart", G->buf+G->pos));
  6070. return 0;
  6071. }
  6072. YY_RULE(int) yy_VerbatimChunk(GREG *G)
  6073. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6074. yyprintf((stderr, "%s\n", "VerbatimChunk"));
  6075. l1371:;
  6076. { int yypos1372= G->pos, yythunkpos1372= G->thunkpos; if (!yy_BlankLine(G)) { goto l1372; } goto l1371;
  6077. l1372:; G->pos= yypos1372; G->thunkpos= yythunkpos1372;
  6078. } if (!yy_NonblankIndentedLine(G)) { goto l1370; }
  6079. l1373:;
  6080. { int yypos1374= G->pos, yythunkpos1374= G->thunkpos; if (!yy_NonblankIndentedLine(G)) { goto l1374; } goto l1373;
  6081. l1374:; G->pos= yypos1374; G->thunkpos= yythunkpos1374;
  6082. }
  6083. yyprintf((stderr, " ok %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  6084. return 1;
  6085. l1370:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6086. yyprintf((stderr, " fail %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  6087. return 0;
  6088. }
  6089. YY_RULE(int) yy_IndentedLine(GREG *G)
  6090. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6091. yyprintf((stderr, "%s\n", "IndentedLine")); if (!yy_Indent(G)) { goto l1375; } if (!yy_Line(G)) { goto l1375; }
  6092. yyprintf((stderr, " ok %s @ %s\n", "IndentedLine", G->buf+G->pos));
  6093. return 1;
  6094. l1375:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6095. yyprintf((stderr, " fail %s @ %s\n", "IndentedLine", G->buf+G->pos));
  6096. return 0;
  6097. }
  6098. YY_RULE(int) yy_NonblankIndentedLine(GREG *G)
  6099. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6100. yyprintf((stderr, "%s\n", "NonblankIndentedLine"));
  6101. { int yypos1377= G->pos, yythunkpos1377= G->thunkpos; if (!yy_BlankLine(G)) { goto l1377; } goto l1376;
  6102. l1377:; G->pos= yypos1377; G->thunkpos= yythunkpos1377;
  6103. } if (!yy_IndentedLine(G)) { goto l1376; }
  6104. yyprintf((stderr, " ok %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  6105. return 1;
  6106. l1376:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6107. yyprintf((stderr, " fail %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  6108. return 0;
  6109. }
  6110. YY_RULE(int) yy_Line(GREG *G)
  6111. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6112. yyprintf((stderr, "%s\n", "Line")); if (!yy_RawLine(G)) { goto l1378; } yyDo(G, yy_1_Line, G->begin, G->end);
  6113. yyprintf((stderr, " ok %s @ %s\n", "Line", G->buf+G->pos));
  6114. return 1;
  6115. l1378:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6116. yyprintf((stderr, " fail %s @ %s\n", "Line", G->buf+G->pos));
  6117. return 0;
  6118. }
  6119. YY_RULE(int) yy_StartList(GREG *G)
  6120. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6121. yyprintf((stderr, "%s\n", "StartList"));
  6122. { int yypos1380= G->pos, yythunkpos1380= G->thunkpos; if (!yymatchDot(G)) goto l1379; G->pos= yypos1380; G->thunkpos= yythunkpos1380;
  6123. } yyDo(G, yy_1_StartList, G->begin, G->end);
  6124. yyprintf((stderr, " ok %s @ %s\n", "StartList", G->buf+G->pos));
  6125. return 1;
  6126. l1379:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6127. yyprintf((stderr, " fail %s @ %s\n", "StartList", G->buf+G->pos));
  6128. return 0;
  6129. }
  6130. YY_RULE(int) yy_BlockQuoteRaw(GREG *G)
  6131. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6132. yyprintf((stderr, "%s\n", "BlockQuoteRaw")); if (!yy_StartList(G)) { goto l1381; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1381; if (!yymatchChar(G, '>')) goto l1381;
  6133. { int yypos1384= G->pos, yythunkpos1384= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1384; goto l1385;
  6134. l1384:; G->pos= yypos1384; G->thunkpos= yythunkpos1384;
  6135. }
  6136. l1385:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1381; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1381; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  6137. l1386:;
  6138. { int yypos1387= G->pos, yythunkpos1387= G->thunkpos;
  6139. { int yypos1388= G->pos, yythunkpos1388= G->thunkpos; if (!yymatchChar(G, '>')) goto l1388; goto l1387;
  6140. l1388:; G->pos= yypos1388; G->thunkpos= yythunkpos1388;
  6141. }
  6142. { int yypos1389= G->pos, yythunkpos1389= G->thunkpos; if (!yy_BlankLine(G)) { goto l1389; } goto l1387;
  6143. l1389:; G->pos= yypos1389; G->thunkpos= yythunkpos1389;
  6144. } if (!yy_Line(G)) { goto l1387; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1386;
  6145. l1387:; G->pos= yypos1387; G->thunkpos= yythunkpos1387;
  6146. }
  6147. l1390:;
  6148. { int yypos1391= G->pos, yythunkpos1391= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1391; if (!yy_BlankLine(G)) { goto l1391; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1391; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1390;
  6149. l1391:; G->pos= yypos1391; G->thunkpos= yythunkpos1391;
  6150. }
  6151. l1382:;
  6152. { int yypos1383= G->pos, yythunkpos1383= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1383; if (!yymatchChar(G, '>')) goto l1383;
  6153. { int yypos1392= G->pos, yythunkpos1392= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1392; goto l1393;
  6154. l1392:; G->pos= yypos1392; G->thunkpos= yythunkpos1392;
  6155. }
  6156. l1393:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1383; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1383; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  6157. l1394:;
  6158. { int yypos1395= G->pos, yythunkpos1395= G->thunkpos;
  6159. { int yypos1396= G->pos, yythunkpos1396= G->thunkpos; if (!yymatchChar(G, '>')) goto l1396; goto l1395;
  6160. l1396:; G->pos= yypos1396; G->thunkpos= yythunkpos1396;
  6161. }
  6162. { int yypos1397= G->pos, yythunkpos1397= G->thunkpos; if (!yy_BlankLine(G)) { goto l1397; } goto l1395;
  6163. l1397:; G->pos= yypos1397; G->thunkpos= yythunkpos1397;
  6164. } if (!yy_Line(G)) { goto l1395; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1394;
  6165. l1395:; G->pos= yypos1395; G->thunkpos= yythunkpos1395;
  6166. }
  6167. l1398:;
  6168. { int yypos1399= G->pos, yythunkpos1399= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1399; if (!yy_BlankLine(G)) { goto l1399; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1399; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1398;
  6169. l1399:; G->pos= yypos1399; G->thunkpos= yythunkpos1399;
  6170. } goto l1382;
  6171. l1383:; G->pos= yypos1383; G->thunkpos= yythunkpos1383;
  6172. } yyDo(G, yy_5_BlockQuoteRaw, G->begin, G->end);
  6173. yyprintf((stderr, " ok %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6174. return 1;
  6175. l1381:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6176. yyprintf((stderr, " fail %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos));
  6177. return 0;
  6178. }
  6179. YY_RULE(int) yy_Endline(GREG *G)
  6180. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6181. yyprintf((stderr, "%s\n", "Endline"));
  6182. { int yypos1401= G->pos, yythunkpos1401= G->thunkpos; if (!yy_LineBreak(G)) { goto l1402; } goto l1401;
  6183. l1402:; G->pos= yypos1401; G->thunkpos= yythunkpos1401; if (!yy_TerminalEndline(G)) { goto l1403; } goto l1401;
  6184. l1403:; G->pos= yypos1401; G->thunkpos= yythunkpos1401; if (!yy_NormalEndline(G)) { goto l1400; }
  6185. }
  6186. l1401:;
  6187. yyprintf((stderr, " ok %s @ %s\n", "Endline", G->buf+G->pos));
  6188. return 1;
  6189. l1400:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6190. yyprintf((stderr, " fail %s @ %s\n", "Endline", G->buf+G->pos));
  6191. return 0;
  6192. }
  6193. YY_RULE(int) yy_RawLine(GREG *G)
  6194. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6195. yyprintf((stderr, "%s\n", "RawLine"));
  6196. { int yypos1405= G->pos, yythunkpos1405= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1406;
  6197. l1407:;
  6198. { int yypos1408= G->pos, yythunkpos1408= G->thunkpos;
  6199. { int yypos1409= G->pos, yythunkpos1409= G->thunkpos; if (!yymatchChar(G, '\r')) goto l1409; goto l1408;
  6200. l1409:; G->pos= yypos1409; G->thunkpos= yythunkpos1409;
  6201. }
  6202. { int yypos1410= G->pos, yythunkpos1410= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1410; goto l1408;
  6203. l1410:; G->pos= yypos1410; G->thunkpos= yythunkpos1410;
  6204. } if (!yymatchDot(G)) goto l1408; goto l1407;
  6205. l1408:; G->pos= yypos1408; G->thunkpos= yythunkpos1408;
  6206. } if (!yy_Newline(G)) { goto l1406; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1406; goto l1405;
  6207. l1406:; G->pos= yypos1405; G->thunkpos= yythunkpos1405; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1404; if (!yymatchDot(G)) goto l1404;
  6208. l1411:;
  6209. { int yypos1412= G->pos, yythunkpos1412= G->thunkpos; if (!yymatchDot(G)) goto l1412; goto l1411;
  6210. l1412:; G->pos= yypos1412; G->thunkpos= yythunkpos1412;
  6211. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1404; if (!yy_Eof(G)) { goto l1404; }
  6212. }
  6213. l1405:; yyDo(G, yy_1_RawLine, G->begin, G->end);
  6214. yyprintf((stderr, " ok %s @ %s\n", "RawLine", G->buf+G->pos));
  6215. return 1;
  6216. l1404:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6217. yyprintf((stderr, " fail %s @ %s\n", "RawLine", G->buf+G->pos));
  6218. return 0;
  6219. }
  6220. YY_RULE(int) yy_SetextBottom2(GREG *G)
  6221. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6222. yyprintf((stderr, "%s\n", "SetextBottom2")); if (!yymatchChar(G, '-')) goto l1413;
  6223. l1414:;
  6224. { int yypos1415= G->pos, yythunkpos1415= G->thunkpos; if (!yymatchChar(G, '-')) goto l1415; goto l1414;
  6225. l1415:; G->pos= yypos1415; G->thunkpos= yythunkpos1415;
  6226. } if (!yy_Newline(G)) { goto l1413; }
  6227. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  6228. return 1;
  6229. l1413:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6230. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  6231. return 0;
  6232. }
  6233. YY_RULE(int) yy_SetextBottom1(GREG *G)
  6234. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6235. yyprintf((stderr, "%s\n", "SetextBottom1")); if (!yymatchChar(G, '=')) goto l1416;
  6236. l1417:;
  6237. { int yypos1418= G->pos, yythunkpos1418= G->thunkpos; if (!yymatchChar(G, '=')) goto l1418; goto l1417;
  6238. l1418:; G->pos= yypos1418; G->thunkpos= yythunkpos1418;
  6239. } if (!yy_Newline(G)) { goto l1416; }
  6240. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  6241. return 1;
  6242. l1416:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6243. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  6244. return 0;
  6245. }
  6246. YY_RULE(int) yy_SetextHeading2(GREG *G)
  6247. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6248. yyprintf((stderr, "%s\n", "SetextHeading2"));
  6249. { int yypos1420= G->pos, yythunkpos1420= G->thunkpos; if (!yy_RawLine(G)) { goto l1419; } if (!yy_SetextBottom2(G)) { goto l1419; } G->pos= yypos1420; G->thunkpos= yythunkpos1420;
  6250. } if (!yy_LocMarker(G)) { goto l1419; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1419;
  6251. { int yypos1423= G->pos, yythunkpos1423= G->thunkpos; if (!yy_Endline(G)) { goto l1423; } goto l1419;
  6252. l1423:; G->pos= yypos1423; G->thunkpos= yythunkpos1423;
  6253. } if (!yy_Inline(G)) { goto l1419; }
  6254. l1421:;
  6255. { int yypos1422= G->pos, yythunkpos1422= G->thunkpos;
  6256. { int yypos1424= G->pos, yythunkpos1424= G->thunkpos; if (!yy_Endline(G)) { goto l1424; } goto l1422;
  6257. l1424:; G->pos= yypos1424; G->thunkpos= yythunkpos1424;
  6258. } if (!yy_Inline(G)) { goto l1422; } goto l1421;
  6259. l1422:; G->pos= yypos1422; G->thunkpos= yythunkpos1422;
  6260. } if (!yy_Sp(G)) { goto l1419; } if (!yy_Newline(G)) { goto l1419; } if (!yy_SetextBottom2(G)) { goto l1419; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1419; yyDo(G, yy_1_SetextHeading2, G->begin, G->end);
  6261. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6262. return 1;
  6263. l1419:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6264. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading2", G->buf+G->pos));
  6265. return 0;
  6266. }
  6267. YY_RULE(int) yy_SetextHeading1(GREG *G)
  6268. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6269. yyprintf((stderr, "%s\n", "SetextHeading1"));
  6270. { int yypos1426= G->pos, yythunkpos1426= G->thunkpos; if (!yy_RawLine(G)) { goto l1425; } if (!yy_SetextBottom1(G)) { goto l1425; } G->pos= yypos1426; G->thunkpos= yythunkpos1426;
  6271. } if (!yy_LocMarker(G)) { goto l1425; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1425;
  6272. { int yypos1429= G->pos, yythunkpos1429= G->thunkpos; if (!yy_Endline(G)) { goto l1429; } goto l1425;
  6273. l1429:; G->pos= yypos1429; G->thunkpos= yythunkpos1429;
  6274. } if (!yy_Inline(G)) { goto l1425; }
  6275. l1427:;
  6276. { int yypos1428= G->pos, yythunkpos1428= G->thunkpos;
  6277. { int yypos1430= G->pos, yythunkpos1430= G->thunkpos; if (!yy_Endline(G)) { goto l1430; } goto l1428;
  6278. l1430:; G->pos= yypos1430; G->thunkpos= yythunkpos1430;
  6279. } if (!yy_Inline(G)) { goto l1428; } goto l1427;
  6280. l1428:; G->pos= yypos1428; G->thunkpos= yythunkpos1428;
  6281. } if (!yy_Sp(G)) { goto l1425; } if (!yy_Newline(G)) { goto l1425; } if (!yy_SetextBottom1(G)) { goto l1425; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1425; yyDo(G, yy_1_SetextHeading1, G->begin, G->end);
  6282. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6283. return 1;
  6284. l1425:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6285. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading1", G->buf+G->pos));
  6286. return 0;
  6287. }
  6288. YY_RULE(int) yy_SetextHeading(GREG *G)
  6289. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6290. yyprintf((stderr, "%s\n", "SetextHeading"));
  6291. { int yypos1432= G->pos, yythunkpos1432= G->thunkpos; if (!yy_SetextHeading1(G)) { goto l1433; } goto l1432;
  6292. l1433:; G->pos= yypos1432; G->thunkpos= yythunkpos1432; if (!yy_SetextHeading2(G)) { goto l1431; }
  6293. }
  6294. l1432:;
  6295. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading", G->buf+G->pos));
  6296. return 1;
  6297. l1431:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6298. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading", G->buf+G->pos));
  6299. return 0;
  6300. }
  6301. YY_RULE(int) yy_Space(GREG *G)
  6302. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6303. yyprintf((stderr, "%s\n", "Space")); if (!yy_Spacechar(G)) { goto l1434; }
  6304. l1435:;
  6305. { int yypos1436= G->pos, yythunkpos1436= G->thunkpos; if (!yy_Spacechar(G)) { goto l1436; } goto l1435;
  6306. l1436:; G->pos= yypos1436; G->thunkpos= yythunkpos1436;
  6307. }
  6308. yyprintf((stderr, " ok %s @ %s\n", "Space", G->buf+G->pos));
  6309. return 1;
  6310. l1434:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6311. yyprintf((stderr, " fail %s @ %s\n", "Space", G->buf+G->pos));
  6312. return 0;
  6313. }
  6314. YY_RULE(int) yy_AtxHeading(GREG *G)
  6315. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6316. yyprintf((stderr, "%s\n", "AtxHeading")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1437; if (!yy_AtxStart(G)) { goto l1437; } yyDo(G, yySet, -1, 0); if (!yy_Space(G)) { goto l1437; } if (!yy_AtxInline(G)) { goto l1437; }
  6317. l1438:;
  6318. { int yypos1439= G->pos, yythunkpos1439= G->thunkpos; if (!yy_AtxInline(G)) { goto l1439; } goto l1438;
  6319. l1439:; G->pos= yypos1439; G->thunkpos= yythunkpos1439;
  6320. }
  6321. { int yypos1440= G->pos, yythunkpos1440= G->thunkpos; if (!yy_Sp(G)) { goto l1440; }
  6322. l1442:;
  6323. { int yypos1443= G->pos, yythunkpos1443= G->thunkpos; if (!yymatchChar(G, '#')) goto l1443; goto l1442;
  6324. l1443:; G->pos= yypos1443; G->thunkpos= yythunkpos1443;
  6325. } if (!yy_Sp(G)) { goto l1440; } goto l1441;
  6326. l1440:; G->pos= yypos1440; G->thunkpos= yythunkpos1440;
  6327. }
  6328. l1441:; if (!yy_Newline(G)) { goto l1437; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1437; yyDo(G, yy_1_AtxHeading, G->begin, G->end);
  6329. yyprintf((stderr, " ok %s @ %s\n", "AtxHeading", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6330. return 1;
  6331. l1437:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6332. yyprintf((stderr, " fail %s @ %s\n", "AtxHeading", G->buf+G->pos));
  6333. return 0;
  6334. }
  6335. YY_RULE(int) yy_AtxStart(GREG *G)
  6336. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6337. yyprintf((stderr, "%s\n", "AtxStart")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1444;
  6338. { int yypos1445= G->pos, yythunkpos1445= G->thunkpos; if (!yymatchString(G, "######")) goto l1446; goto l1445;
  6339. l1446:; G->pos= yypos1445; G->thunkpos= yythunkpos1445; if (!yymatchString(G, "#####")) goto l1447; goto l1445;
  6340. l1447:; G->pos= yypos1445; G->thunkpos= yythunkpos1445; if (!yymatchString(G, "####")) goto l1448; goto l1445;
  6341. l1448:; G->pos= yypos1445; G->thunkpos= yythunkpos1445; if (!yymatchString(G, "###")) goto l1449; goto l1445;
  6342. l1449:; G->pos= yypos1445; G->thunkpos= yythunkpos1445; if (!yymatchString(G, "##")) goto l1450; goto l1445;
  6343. l1450:; G->pos= yypos1445; G->thunkpos= yythunkpos1445; if (!yymatchChar(G, '#')) goto l1444;
  6344. }
  6345. l1445:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1444; yyDo(G, yy_1_AtxStart, G->begin, G->end);
  6346. yyprintf((stderr, " ok %s @ %s\n", "AtxStart", G->buf+G->pos));
  6347. return 1;
  6348. l1444:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6349. yyprintf((stderr, " fail %s @ %s\n", "AtxStart", G->buf+G->pos));
  6350. return 0;
  6351. }
  6352. YY_RULE(int) yy_Inline(GREG *G)
  6353. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6354. yyprintf((stderr, "%s\n", "Inline"));
  6355. { int yypos1452= G->pos, yythunkpos1452= G->thunkpos; if (!yy_Str(G)) { goto l1453; } goto l1452;
  6356. l1453:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Endline(G)) { goto l1454; } goto l1452;
  6357. l1454:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_UlOrStarLine(G)) { goto l1455; } goto l1452;
  6358. l1455:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Space(G)) { goto l1456; } goto l1452;
  6359. l1456:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Strong(G)) { goto l1457; } goto l1452;
  6360. l1457:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Emph(G)) { goto l1458; } goto l1452;
  6361. l1458:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Strike(G)) { goto l1459; } goto l1452;
  6362. l1459:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Image(G)) { goto l1460; } goto l1452;
  6363. l1460:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Link(G)) { goto l1461; } goto l1452;
  6364. l1461:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_NoteReference(G)) { goto l1462; } goto l1452;
  6365. l1462:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_InlineNote(G)) { goto l1463; } goto l1452;
  6366. l1463:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Code(G)) { goto l1464; } goto l1452;
  6367. l1464:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_InlineEquation(G)) { goto l1465; } goto l1452;
  6368. l1465:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Mark(G)) { goto l1466; } goto l1452;
  6369. l1466:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_RawHtml(G)) { goto l1467; } goto l1452;
  6370. l1467:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Entity(G)) { goto l1468; } goto l1452;
  6371. l1468:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_EscapedChar(G)) { goto l1469; } goto l1452;
  6372. l1469:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_Symbol(G)) { goto l1451; }
  6373. }
  6374. l1452:;
  6375. yyprintf((stderr, " ok %s @ %s\n", "Inline", G->buf+G->pos));
  6376. return 1;
  6377. l1451:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6378. yyprintf((stderr, " fail %s @ %s\n", "Inline", G->buf+G->pos));
  6379. return 0;
  6380. }
  6381. YY_RULE(int) yy_Sp(GREG *G)
  6382. {
  6383. yyprintf((stderr, "%s\n", "Sp"));
  6384. l1471:;
  6385. { int yypos1472= G->pos, yythunkpos1472= G->thunkpos; if (!yy_Spacechar(G)) { goto l1472; } goto l1471;
  6386. l1472:; G->pos= yypos1472; G->thunkpos= yythunkpos1472;
  6387. }
  6388. yyprintf((stderr, " ok %s @ %s\n", "Sp", G->buf+G->pos));
  6389. return 1;
  6390. }
  6391. YY_RULE(int) yy_AtxInline(GREG *G)
  6392. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6393. yyprintf((stderr, "%s\n", "AtxInline"));
  6394. { int yypos1474= G->pos, yythunkpos1474= G->thunkpos; if (!yy_Newline(G)) { goto l1474; } goto l1473;
  6395. l1474:; G->pos= yypos1474; G->thunkpos= yythunkpos1474;
  6396. }
  6397. { int yypos1475= G->pos, yythunkpos1475= G->thunkpos; if (!yy_Sp(G)) { goto l1475; }
  6398. l1476:;
  6399. { int yypos1477= G->pos, yythunkpos1477= G->thunkpos; if (!yymatchChar(G, '#')) goto l1477; goto l1476;
  6400. l1477:; G->pos= yypos1477; G->thunkpos= yythunkpos1477;
  6401. } if (!yy_Sp(G)) { goto l1475; } if (!yy_Newline(G)) { goto l1475; } goto l1473;
  6402. l1475:; G->pos= yypos1475; G->thunkpos= yythunkpos1475;
  6403. } if (!yy_Inline(G)) { goto l1473; }
  6404. yyprintf((stderr, " ok %s @ %s\n", "AtxInline", G->buf+G->pos));
  6405. return 1;
  6406. l1473:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6407. yyprintf((stderr, " fail %s @ %s\n", "AtxInline", G->buf+G->pos));
  6408. return 0;
  6409. }
  6410. YY_RULE(int) yy_Inlines(GREG *G)
  6411. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6412. yyprintf((stderr, "%s\n", "Inlines"));
  6413. { int yypos1481= G->pos, yythunkpos1481= G->thunkpos;
  6414. { int yypos1483= G->pos, yythunkpos1483= G->thunkpos; if (!yy_Endline(G)) { goto l1483; } goto l1482;
  6415. l1483:; G->pos= yypos1483; G->thunkpos= yythunkpos1483;
  6416. } if (!yy_Inline(G)) { goto l1482; } goto l1481;
  6417. l1482:; G->pos= yypos1481; G->thunkpos= yythunkpos1481; if (!yy_Endline(G)) { goto l1478; }
  6418. { int yypos1484= G->pos, yythunkpos1484= G->thunkpos; if (!yy_Inline(G)) { goto l1478; } G->pos= yypos1484; G->thunkpos= yythunkpos1484;
  6419. }
  6420. }
  6421. l1481:;
  6422. l1479:;
  6423. { int yypos1480= G->pos, yythunkpos1480= G->thunkpos;
  6424. { int yypos1485= G->pos, yythunkpos1485= G->thunkpos;
  6425. { int yypos1487= G->pos, yythunkpos1487= G->thunkpos; if (!yy_Endline(G)) { goto l1487; } goto l1486;
  6426. l1487:; G->pos= yypos1487; G->thunkpos= yythunkpos1487;
  6427. } if (!yy_Inline(G)) { goto l1486; } goto l1485;
  6428. l1486:; G->pos= yypos1485; G->thunkpos= yythunkpos1485; if (!yy_Endline(G)) { goto l1480; }
  6429. { int yypos1488= G->pos, yythunkpos1488= G->thunkpos; if (!yy_Inline(G)) { goto l1480; } G->pos= yypos1488; G->thunkpos= yythunkpos1488;
  6430. }
  6431. }
  6432. l1485:; goto l1479;
  6433. l1480:; G->pos= yypos1480; G->thunkpos= yythunkpos1480;
  6434. }
  6435. { int yypos1489= G->pos, yythunkpos1489= G->thunkpos; if (!yy_Endline(G)) { goto l1489; } goto l1490;
  6436. l1489:; G->pos= yypos1489; G->thunkpos= yythunkpos1489;
  6437. }
  6438. l1490:;
  6439. yyprintf((stderr, " ok %s @ %s\n", "Inlines", G->buf+G->pos));
  6440. return 1;
  6441. l1478:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6442. yyprintf((stderr, " fail %s @ %s\n", "Inlines", G->buf+G->pos));
  6443. return 0;
  6444. }
  6445. YY_RULE(int) yy_NonindentSpace(GREG *G)
  6446. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6447. yyprintf((stderr, "%s\n", "NonindentSpace"));
  6448. { int yypos1492= G->pos, yythunkpos1492= G->thunkpos; if (!yymatchString(G, " ")) goto l1493; goto l1492;
  6449. l1493:; G->pos= yypos1492; G->thunkpos= yythunkpos1492; if (!yymatchString(G, " ")) goto l1494; goto l1492;
  6450. l1494:; G->pos= yypos1492; G->thunkpos= yythunkpos1492; if (!yymatchChar(G, ' ')) goto l1495; goto l1492;
  6451. l1495:; G->pos= yypos1492; G->thunkpos= yythunkpos1492; if (!yymatchString(G, "")) goto l1491;
  6452. }
  6453. l1492:;
  6454. yyprintf((stderr, " ok %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  6455. return 1;
  6456. l1491:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6457. yyprintf((stderr, " fail %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  6458. return 0;
  6459. }
  6460. YY_RULE(int) yy_Plain(GREG *G)
  6461. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6462. yyprintf((stderr, "%s\n", "Plain")); if (!yy_Inlines(G)) { goto l1496; }
  6463. yyprintf((stderr, " ok %s @ %s\n", "Plain", G->buf+G->pos));
  6464. return 1;
  6465. l1496:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6466. yyprintf((stderr, " fail %s @ %s\n", "Plain", G->buf+G->pos));
  6467. return 0;
  6468. }
  6469. YY_RULE(int) yy_Para(GREG *G)
  6470. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6471. yyprintf((stderr, "%s\n", "Para")); if (!yy_NonindentSpace(G)) { goto l1497; } if (!yy_Inlines(G)) { goto l1497; } if (!yy_BlankLine(G)) { goto l1497; }
  6472. l1498:;
  6473. { int yypos1499= G->pos, yythunkpos1499= G->thunkpos; if (!yy_BlankLine(G)) { goto l1499; } goto l1498;
  6474. l1499:; G->pos= yypos1499; G->thunkpos= yythunkpos1499;
  6475. }
  6476. yyprintf((stderr, " ok %s @ %s\n", "Para", G->buf+G->pos));
  6477. return 1;
  6478. l1497:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6479. yyprintf((stderr, " fail %s @ %s\n", "Para", G->buf+G->pos));
  6480. return 0;
  6481. }
  6482. YY_RULE(int) yy_StyleBlock(GREG *G)
  6483. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6484. yyprintf((stderr, "%s\n", "StyleBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1500; if (!yy_LocMarker(G)) { goto l1500; } yyDo(G, yySet, -1, 0); if (!yy_InStyleTags(G)) { goto l1500; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1500;
  6485. l1501:;
  6486. { int yypos1502= G->pos, yythunkpos1502= G->thunkpos; if (!yy_BlankLine(G)) { goto l1502; } goto l1501;
  6487. l1502:; G->pos= yypos1502; G->thunkpos= yythunkpos1502;
  6488. } yyDo(G, yy_1_StyleBlock, G->begin, G->end);
  6489. yyprintf((stderr, " ok %s @ %s\n", "StyleBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6490. return 1;
  6491. l1500:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6492. yyprintf((stderr, " fail %s @ %s\n", "StyleBlock", G->buf+G->pos));
  6493. return 0;
  6494. }
  6495. YY_RULE(int) yy_HtmlBlock(GREG *G)
  6496. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6497. yyprintf((stderr, "%s\n", "HtmlBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1503; if (!yy_LocMarker(G)) { goto l1503; } yyDo(G, yySet, -1, 0);
  6498. { int yypos1504= G->pos, yythunkpos1504= G->thunkpos; if (!yy_HtmlBlockInTags(G)) { goto l1505; } goto l1504;
  6499. l1505:; G->pos= yypos1504; G->thunkpos= yythunkpos1504; if (!yy_HtmlComment(G)) { goto l1506; } goto l1504;
  6500. l1506:; G->pos= yypos1504; G->thunkpos= yythunkpos1504; if (!yy_HtmlBlockSelfClosing(G)) { goto l1503; }
  6501. }
  6502. l1504:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1503; if (!yy_BlankLine(G)) { goto l1503; }
  6503. l1507:;
  6504. { int yypos1508= G->pos, yythunkpos1508= G->thunkpos; if (!yy_BlankLine(G)) { goto l1508; } goto l1507;
  6505. l1508:; G->pos= yypos1508; G->thunkpos= yythunkpos1508;
  6506. } yyDo(G, yy_1_HtmlBlock, G->begin, G->end);
  6507. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6508. return 1;
  6509. l1503:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6510. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlock", G->buf+G->pos));
  6511. return 0;
  6512. }
  6513. YY_RULE(int) yy_BulletList(GREG *G)
  6514. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6515. yyprintf((stderr, "%s\n", "BulletList"));
  6516. { int yypos1510= G->pos, yythunkpos1510= G->thunkpos; if (!yy_Bullet(G)) { goto l1509; } G->pos= yypos1510; G->thunkpos= yythunkpos1510;
  6517. }
  6518. { int yypos1511= G->pos, yythunkpos1511= G->thunkpos; if (!yy_ListTight(G)) { goto l1512; } goto l1511;
  6519. l1512:; G->pos= yypos1511; G->thunkpos= yythunkpos1511; if (!yy_ListLoose(G)) { goto l1509; }
  6520. }
  6521. l1511:;
  6522. yyprintf((stderr, " ok %s @ %s\n", "BulletList", G->buf+G->pos));
  6523. return 1;
  6524. l1509:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6525. yyprintf((stderr, " fail %s @ %s\n", "BulletList", G->buf+G->pos));
  6526. return 0;
  6527. }
  6528. YY_RULE(int) yy_OrderedList(GREG *G)
  6529. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6530. yyprintf((stderr, "%s\n", "OrderedList"));
  6531. { int yypos1514= G->pos, yythunkpos1514= G->thunkpos; if (!yy_Enumerator(G)) { goto l1513; } G->pos= yypos1514; G->thunkpos= yythunkpos1514;
  6532. }
  6533. { int yypos1515= G->pos, yythunkpos1515= G->thunkpos; if (!yy_ListTight(G)) { goto l1516; } goto l1515;
  6534. l1516:; G->pos= yypos1515; G->thunkpos= yythunkpos1515; if (!yy_ListLoose(G)) { goto l1513; }
  6535. }
  6536. l1515:;
  6537. yyprintf((stderr, " ok %s @ %s\n", "OrderedList", G->buf+G->pos));
  6538. return 1;
  6539. l1513:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6540. yyprintf((stderr, " fail %s @ %s\n", "OrderedList", G->buf+G->pos));
  6541. return 0;
  6542. }
  6543. YY_RULE(int) yy_Heading(GREG *G)
  6544. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6545. yyprintf((stderr, "%s\n", "Heading"));
  6546. { int yypos1518= G->pos, yythunkpos1518= G->thunkpos; if (!yy_SetextHeading(G)) { goto l1519; } goto l1518;
  6547. l1519:; G->pos= yypos1518; G->thunkpos= yythunkpos1518; if (!yy_AtxHeading(G)) { goto l1517; }
  6548. }
  6549. l1518:;
  6550. yyprintf((stderr, " ok %s @ %s\n", "Heading", G->buf+G->pos));
  6551. return 1;
  6552. l1517:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6553. yyprintf((stderr, " fail %s @ %s\n", "Heading", G->buf+G->pos));
  6554. return 0;
  6555. }
  6556. YY_RULE(int) yy_HorizontalRule(GREG *G)
  6557. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6558. yyprintf((stderr, "%s\n", "HorizontalRule")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1520; if (!yy_NonindentSpace(G)) { goto l1520; }
  6559. { int yypos1521= G->pos, yythunkpos1521= G->thunkpos; if (!yymatchChar(G, '*')) goto l1522; if (!yy_Sp(G)) { goto l1522; } if (!yymatchChar(G, '*')) goto l1522; if (!yy_Sp(G)) { goto l1522; } if (!yymatchChar(G, '*')) goto l1522;
  6560. l1523:;
  6561. { int yypos1524= G->pos, yythunkpos1524= G->thunkpos; if (!yy_Sp(G)) { goto l1524; } if (!yymatchChar(G, '*')) goto l1524; goto l1523;
  6562. l1524:; G->pos= yypos1524; G->thunkpos= yythunkpos1524;
  6563. } goto l1521;
  6564. l1522:; G->pos= yypos1521; G->thunkpos= yythunkpos1521; if (!yymatchChar(G, '-')) goto l1525; if (!yy_Sp(G)) { goto l1525; } if (!yymatchChar(G, '-')) goto l1525; if (!yy_Sp(G)) { goto l1525; } if (!yymatchChar(G, '-')) goto l1525;
  6565. l1526:;
  6566. { int yypos1527= G->pos, yythunkpos1527= G->thunkpos; if (!yy_Sp(G)) { goto l1527; } if (!yymatchChar(G, '-')) goto l1527; goto l1526;
  6567. l1527:; G->pos= yypos1527; G->thunkpos= yythunkpos1527;
  6568. } goto l1521;
  6569. l1525:; G->pos= yypos1521; G->thunkpos= yythunkpos1521; if (!yymatchChar(G, '_')) goto l1520; if (!yy_Sp(G)) { goto l1520; } if (!yymatchChar(G, '_')) goto l1520; if (!yy_Sp(G)) { goto l1520; } if (!yymatchChar(G, '_')) goto l1520;
  6570. l1528:;
  6571. { int yypos1529= G->pos, yythunkpos1529= G->thunkpos; if (!yy_Sp(G)) { goto l1529; } if (!yymatchChar(G, '_')) goto l1529; goto l1528;
  6572. l1529:; G->pos= yypos1529; G->thunkpos= yythunkpos1529;
  6573. }
  6574. }
  6575. l1521:; if (!yy_Sp(G)) { goto l1520; } if (!yy_Newline(G)) { goto l1520; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1520; yyDo(G, yy_1_HorizontalRule, G->begin, G->end);
  6576. yyprintf((stderr, " ok %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6577. return 1;
  6578. l1520:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6579. yyprintf((stderr, " fail %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6580. return 0;
  6581. }
  6582. YY_RULE(int) yy_Reference(GREG *G)
  6583. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 3, 0);
  6584. yyprintf((stderr, "%s\n", "Reference")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1530; if (!yy_LocMarker(G)) { goto l1530; } yyDo(G, yySet, -3, 0); if (!yy_NonindentSpace(G)) { goto l1530; }
  6585. { int yypos1531= G->pos, yythunkpos1531= G->thunkpos; if (!yymatchString(G, "[]")) goto l1531; goto l1530;
  6586. l1531:; G->pos= yypos1531; G->thunkpos= yythunkpos1531;
  6587. } if (!yy_Label(G)) { goto l1530; } yyDo(G, yySet, -2, 0); if (!yymatchChar(G, ':')) goto l1530; if (!yy_Spnl(G)) { goto l1530; } if (!yy_RefSrc(G)) { goto l1530; } yyDo(G, yySet, -1, 0); if (!yy_RefTitle(G)) { goto l1530; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1530; if (!yy_BlankLine(G)) { goto l1530; }
  6588. l1532:;
  6589. { int yypos1533= G->pos, yythunkpos1533= G->thunkpos; if (!yy_BlankLine(G)) { goto l1533; } goto l1532;
  6590. l1533:; G->pos= yypos1533; G->thunkpos= yythunkpos1533;
  6591. } yyDo(G, yy_1_Reference, G->begin, G->end);
  6592. yyprintf((stderr, " ok %s @ %s\n", "Reference", G->buf+G->pos)); yyDo(G, yyPop, 3, 0);
  6593. return 1;
  6594. l1530:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6595. yyprintf((stderr, " fail %s @ %s\n", "Reference", G->buf+G->pos));
  6596. return 0;
  6597. }
  6598. YY_RULE(int) yy_Note(GREG *G)
  6599. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6600. yyprintf((stderr, "%s\n", "Note")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l1534; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1534; if (!yy_LocMarker(G)) { goto l1534; } yyDo(G, yySet, -1, 0); if (!yy_NonindentSpace(G)) { goto l1534; } if (!yy_RawNoteReference(G)) { goto l1534; } if (!yymatchChar(G, ':')) goto l1534; if (!yy_Sp(G)) { goto l1534; } if (!yy_RawNoteBlock(G)) { goto l1534; }
  6601. l1535:;
  6602. { int yypos1536= G->pos, yythunkpos1536= G->thunkpos;
  6603. { int yypos1537= G->pos, yythunkpos1537= G->thunkpos; if (!yy_Indent(G)) { goto l1536; } G->pos= yypos1537; G->thunkpos= yythunkpos1537;
  6604. } if (!yy_RawNoteBlock(G)) { goto l1536; } goto l1535;
  6605. l1536:; G->pos= yypos1536; G->thunkpos= yythunkpos1536;
  6606. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1534; yyDo(G, yy_1_Note, G->begin, G->end);
  6607. yyprintf((stderr, " ok %s @ %s\n", "Note", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6608. return 1;
  6609. l1534:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6610. yyprintf((stderr, " fail %s @ %s\n", "Note", G->buf+G->pos));
  6611. return 0;
  6612. }
  6613. YY_RULE(int) yy_DisplayFormula(GREG *G)
  6614. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6615. yyprintf((stderr, "%s\n", "DisplayFormula")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MATH) )) goto l1538; if (!yy_NonindentSpace(G)) { goto l1538; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1538; if (!yymatchString(G, "$$")) goto l1538;
  6616. l1539:;
  6617. { int yypos1540= G->pos, yythunkpos1540= G->thunkpos;
  6618. { int yypos1541= G->pos, yythunkpos1541= G->thunkpos; if (!yymatchChar(G, '$')) goto l1541; goto l1540;
  6619. l1541:; G->pos= yypos1541; G->thunkpos= yythunkpos1541;
  6620. } if (!yymatchDot(G)) goto l1540; goto l1539;
  6621. l1540:; G->pos= yypos1540; G->thunkpos= yythunkpos1540;
  6622. } if (!yymatchString(G, "$$")) goto l1538; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1538; if (!yy_Sp(G)) { goto l1538; }
  6623. { int yypos1542= G->pos, yythunkpos1542= G->thunkpos; if (!yy_FormulaNumber(G)) { goto l1542; } goto l1543;
  6624. l1542:; G->pos= yypos1542; G->thunkpos= yythunkpos1542;
  6625. }
  6626. l1543:; if (!yy_Sp(G)) { goto l1538; } if (!yy_Newline(G)) { goto l1538; } yyDo(G, yy_1_DisplayFormula, G->begin, G->end);
  6627. yyprintf((stderr, " ok %s @ %s\n", "DisplayFormula", G->buf+G->pos));
  6628. return 1;
  6629. l1538:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6630. yyprintf((stderr, " fail %s @ %s\n", "DisplayFormula", G->buf+G->pos));
  6631. return 0;
  6632. }
  6633. YY_RULE(int) yy_FencedCodeBlock(GREG *G)
  6634. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6635. yyprintf((stderr, "%s\n", "FencedCodeBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1544; if (!yy_LocMarker(G)) { goto l1544; } yyDo(G, yySet, -1, 0); if (!yy_FencedCodeBlockStart(G)) { goto l1544; }
  6636. l1545:;
  6637. { int yypos1546= G->pos, yythunkpos1546= G->thunkpos; if (!yy_FencedCodeBlockChunk(G)) { goto l1546; } goto l1545;
  6638. l1546:; G->pos= yypos1546; G->thunkpos= yythunkpos1546;
  6639. } if (!yy_FencedCodeBlockEnd(G)) { goto l1544; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1544; yyDo(G, yy_1_FencedCodeBlock, G->begin, G->end);
  6640. yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6641. return 1;
  6642. l1544:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6643. yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlock", G->buf+G->pos));
  6644. return 0;
  6645. }
  6646. YY_RULE(int) yy_Verbatim(GREG *G)
  6647. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6648. yyprintf((stderr, "%s\n", "Verbatim")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1547; if (!yy_LocMarker(G)) { goto l1547; } yyDo(G, yySet, -1, 0); if (!yy_VerbatimChunk(G)) { goto l1547; }
  6649. l1548:;
  6650. { int yypos1549= G->pos, yythunkpos1549= G->thunkpos; if (!yy_VerbatimChunk(G)) { goto l1549; } goto l1548;
  6651. l1549:; G->pos= yypos1549; G->thunkpos= yythunkpos1549;
  6652. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1547; yyDo(G, yy_1_Verbatim, G->begin, G->end);
  6653. yyprintf((stderr, " ok %s @ %s\n", "Verbatim", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6654. return 1;
  6655. l1547:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6656. yyprintf((stderr, " fail %s @ %s\n", "Verbatim", G->buf+G->pos));
  6657. return 0;
  6658. }
  6659. YY_RULE(int) yy_BlockQuote(GREG *G)
  6660. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6661. yyprintf((stderr, "%s\n", "BlockQuote")); if (!yy_BlockQuoteRaw(G)) { goto l1550; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_BlockQuote, G->begin, G->end);
  6662. yyprintf((stderr, " ok %s @ %s\n", "BlockQuote", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6663. return 1;
  6664. l1550:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6665. yyprintf((stderr, " fail %s @ %s\n", "BlockQuote", G->buf+G->pos));
  6666. return 0;
  6667. }
  6668. YY_RULE(int) yy_BlankLine(GREG *G)
  6669. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6670. yyprintf((stderr, "%s\n", "BlankLine")); if (!yy_Sp(G)) { goto l1551; } if (!yy_Newline(G)) { goto l1551; }
  6671. yyprintf((stderr, " ok %s @ %s\n", "BlankLine", G->buf+G->pos));
  6672. return 1;
  6673. l1551:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6674. yyprintf((stderr, " fail %s @ %s\n", "BlankLine", G->buf+G->pos));
  6675. return 0;
  6676. }
  6677. YY_RULE(int) yy_FrontMatterEndMark(GREG *G)
  6678. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6679. yyprintf((stderr, "%s\n", "FrontMatterEndMark"));
  6680. { int yypos1553= G->pos, yythunkpos1553= G->thunkpos; if (!yymatchString(G, "---")) goto l1554; goto l1553;
  6681. l1554:; G->pos= yypos1553; G->thunkpos= yythunkpos1553; if (!yymatchString(G, "...")) goto l1552;
  6682. }
  6683. l1553:;
  6684. yyprintf((stderr, " ok %s @ %s\n", "FrontMatterEndMark", G->buf+G->pos));
  6685. return 1;
  6686. l1552:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6687. yyprintf((stderr, " fail %s @ %s\n", "FrontMatterEndMark", G->buf+G->pos));
  6688. return 0;
  6689. }
  6690. YY_RULE(int) yy_FrontMatterBlock(GREG *G)
  6691. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6692. yyprintf((stderr, "%s\n", "FrontMatterBlock"));
  6693. { int yypos1556= G->pos, yythunkpos1556= G->thunkpos; if (!yy_FrontMatterEndMark(G)) { goto l1556; } goto l1555;
  6694. l1556:; G->pos= yypos1556; G->thunkpos= yythunkpos1556;
  6695. }
  6696. l1557:;
  6697. { int yypos1558= G->pos, yythunkpos1558= G->thunkpos;
  6698. { int yypos1559= G->pos, yythunkpos1559= G->thunkpos; if (!yy_Newline(G)) { goto l1559; } goto l1558;
  6699. l1559:; G->pos= yypos1559; G->thunkpos= yythunkpos1559;
  6700. } if (!yymatchDot(G)) goto l1558; goto l1557;
  6701. l1558:; G->pos= yypos1558; G->thunkpos= yythunkpos1558;
  6702. } if (!yy_Newline(G)) { goto l1555; }
  6703. yyprintf((stderr, " ok %s @ %s\n", "FrontMatterBlock", G->buf+G->pos));
  6704. return 1;
  6705. l1555:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6706. yyprintf((stderr, " fail %s @ %s\n", "FrontMatterBlock", G->buf+G->pos));
  6707. return 0;
  6708. }
  6709. YY_RULE(int) yy_Newline(GREG *G)
  6710. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6711. yyprintf((stderr, "%s\n", "Newline"));
  6712. { int yypos1561= G->pos, yythunkpos1561= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1562; goto l1561;
  6713. l1562:; G->pos= yypos1561; G->thunkpos= yythunkpos1561; if (!yymatchChar(G, '\r')) goto l1560;
  6714. { int yypos1563= G->pos, yythunkpos1563= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1563; goto l1564;
  6715. l1563:; G->pos= yypos1563; G->thunkpos= yythunkpos1563;
  6716. }
  6717. l1564:;
  6718. }
  6719. l1561:;
  6720. yyprintf((stderr, " ok %s @ %s\n", "Newline", G->buf+G->pos));
  6721. return 1;
  6722. l1560:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6723. yyprintf((stderr, " fail %s @ %s\n", "Newline", G->buf+G->pos));
  6724. return 0;
  6725. }
  6726. YY_RULE(int) yy_LocMarker(GREG *G)
  6727. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6728. yyprintf((stderr, "%s\n", "LocMarker"));
  6729. { int yypos1566= G->pos, yythunkpos1566= G->thunkpos; if (!yymatchDot(G)) goto l1565; G->pos= yypos1566; G->thunkpos= yythunkpos1566;
  6730. } yyDo(G, yy_1_LocMarker, G->begin, G->end);
  6731. yyprintf((stderr, " ok %s @ %s\n", "LocMarker", G->buf+G->pos));
  6732. return 1;
  6733. l1565:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6734. yyprintf((stderr, " fail %s @ %s\n", "LocMarker", G->buf+G->pos));
  6735. return 0;
  6736. }
  6737. YY_RULE(int) yy_Block(GREG *G)
  6738. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6739. yyprintf((stderr, "%s\n", "Block"));
  6740. l1568:;
  6741. { int yypos1569= G->pos, yythunkpos1569= G->thunkpos; if (!yy_BlankLine(G)) { goto l1569; } goto l1568;
  6742. l1569:; G->pos= yypos1569; G->thunkpos= yythunkpos1569;
  6743. }
  6744. { int yypos1570= G->pos, yythunkpos1570= G->thunkpos; if (!yy_BlockQuote(G)) { goto l1571; } goto l1570;
  6745. l1571:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_Verbatim(G)) { goto l1572; } goto l1570;
  6746. l1572:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_FencedCodeBlock(G)) { goto l1573; } goto l1570;
  6747. l1573:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_DisplayFormula(G)) { goto l1574; } goto l1570;
  6748. l1574:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_Note(G)) { goto l1575; } goto l1570;
  6749. l1575:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_Reference(G)) { goto l1576; } goto l1570;
  6750. l1576:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_HorizontalRule(G)) { goto l1577; } goto l1570;
  6751. l1577:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_Heading(G)) { goto l1578; } goto l1570;
  6752. l1578:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_OrderedList(G)) { goto l1579; } goto l1570;
  6753. l1579:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_BulletList(G)) { goto l1580; } goto l1570;
  6754. l1580:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_HtmlBlock(G)) { goto l1581; } goto l1570;
  6755. l1581:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_StyleBlock(G)) { goto l1582; } goto l1570;
  6756. l1582:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_Para(G)) { goto l1583; } goto l1570;
  6757. l1583:; G->pos= yypos1570; G->thunkpos= yythunkpos1570; if (!yy_Plain(G)) { goto l1567; }
  6758. }
  6759. l1570:;
  6760. yyprintf((stderr, " ok %s @ %s\n", "Block", G->buf+G->pos));
  6761. return 1;
  6762. l1567:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6763. yyprintf((stderr, " fail %s @ %s\n", "Block", G->buf+G->pos));
  6764. return 0;
  6765. }
  6766. YY_RULE(int) yy_FrontMatter(GREG *G)
  6767. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6768. yyprintf((stderr, "%s\n", "FrontMatter")); if (!yy_LocMarker(G)) { goto l1584; } yyDo(G, yySet, -1, 0);
  6769. { int yypos1585= G->pos, yythunkpos1585= G->thunkpos; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_FRONTMATTER) )) goto l1585; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1585; if (!yymatchString(G, "---")) goto l1585; if (!yy_Newline(G)) { goto l1585; }
  6770. l1587:;
  6771. { int yypos1588= G->pos, yythunkpos1588= G->thunkpos; if (!yy_FrontMatterBlock(G)) { goto l1588; } goto l1587;
  6772. l1588:; G->pos= yypos1588; G->thunkpos= yythunkpos1588;
  6773. } if (!yy_FrontMatterEndMark(G)) { goto l1585; } if (!yy_Newline(G)) { goto l1585; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1585; yyDo(G, yy_1_FrontMatter, G->begin, G->end); goto l1586;
  6774. l1585:; G->pos= yypos1585; G->thunkpos= yythunkpos1585;
  6775. }
  6776. l1586:;
  6777. yyprintf((stderr, " ok %s @ %s\n", "FrontMatter", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6778. return 1;
  6779. l1584:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6780. yyprintf((stderr, " fail %s @ %s\n", "FrontMatter", G->buf+G->pos));
  6781. return 0;
  6782. }
  6783. YY_RULE(int) yy_Doc(GREG *G)
  6784. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6785. yyprintf((stderr, "%s\n", "Doc")); if (!yy_FrontMatter(G)) { goto l1589; }
  6786. l1590:;
  6787. { int yypos1591= G->pos, yythunkpos1591= G->thunkpos; if (!yy_Block(G)) { goto l1591; } goto l1590;
  6788. l1591:; G->pos= yypos1591; G->thunkpos= yythunkpos1591;
  6789. }
  6790. yyprintf((stderr, " ok %s @ %s\n", "Doc", G->buf+G->pos));
  6791. return 1;
  6792. l1589:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6793. yyprintf((stderr, " fail %s @ %s\n", "Doc", G->buf+G->pos));
  6794. return 0;
  6795. }
  6796. #ifndef YY_PART
  6797. typedef int (*yyrule)(GREG *G);
  6798. YY_PARSE(int) YY_NAME(parse_from)(GREG *G, yyrule yystart)
  6799. {
  6800. int yyok;
  6801. if (!G->buflen)
  6802. {
  6803. G->buflen= YY_BUFFER_START_SIZE;
  6804. G->buf= (char *)YY_ALLOC(G->buflen, G->data);
  6805. G->textlen= YY_BUFFER_START_SIZE;
  6806. G->text= (char *)YY_ALLOC(G->textlen, G->data);
  6807. G->thunkslen= YY_STACK_SIZE;
  6808. G->thunks= (yythunk *)YY_ALLOC(sizeof(yythunk) * G->thunkslen, G->data);
  6809. G->valslen= YY_STACK_SIZE;
  6810. G->vals= (YYSTYPE*)YY_ALLOC(sizeof(YYSTYPE) * G->valslen, G->data);
  6811. G->begin= G->end= G->pos= G->limit= G->thunkpos= 0;
  6812. }
  6813. G->pos = 0;
  6814. G->begin= G->end= G->pos;
  6815. G->thunkpos= 0;
  6816. G->val= G->vals;
  6817. yyok= yystart(G);
  6818. if (yyok) yyDone(G);
  6819. yyCommit(G);
  6820. return yyok;
  6821. (void)yyrefill(NULL);
  6822. (void)yymatchDot(NULL);
  6823. (void)yymatchChar(NULL, 0);
  6824. (void)yymatchString(NULL, NULL);
  6825. (void)yymatchClass(NULL, NULL);
  6826. (void)yyDo(NULL, NULL, 0, 0);
  6827. (void)yyText(NULL, 0, 0);
  6828. (void)yyDone(NULL);
  6829. (void)yyCommit(NULL);
  6830. (void)yyAccept(NULL, 0);
  6831. (void)yyPush(NULL, NULL, 0, NULL, NULL);
  6832. (void)yyPop(NULL, NULL, 0, NULL, NULL);
  6833. (void)yySet(NULL, NULL, 0, NULL, NULL);
  6834. }
  6835. YY_PARSE(int) YY_NAME(parse)(GREG *G)
  6836. {
  6837. return YY_NAME(parse_from)(G, yy_Doc);
  6838. }
  6839. YY_PARSE(GREG *) YY_NAME(parse_new)(YY_XTYPE data)
  6840. {
  6841. GREG *G = (GREG *)YY_CALLOC(1, sizeof(GREG), G->data);
  6842. G->data = data;
  6843. return G;
  6844. }
  6845. YY_PARSE(void) YY_NAME(parse_free)(GREG *G)
  6846. {
  6847. YY_FREE(G->buf);
  6848. YY_FREE(G->text);
  6849. YY_FREE(G->thunks);
  6850. YY_FREE(G->vals);
  6851. YY_FREE(G);
  6852. }
  6853. #endif
  6854. /* PEG Markdown Highlight
  6855. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  6856. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  6857. *
  6858. * pmh_parser_foot.c
  6859. *
  6860. * Code to be appended to the end of the parser code generated from the
  6861. * PEG grammar.
  6862. */
  6863. static void _parse(parser_data *p_data, yyrule start_rule)
  6864. {
  6865. GREG *g = YY_NAME(parse_new)(p_data);
  6866. if (start_rule == NULL)
  6867. YY_NAME(parse)(g);
  6868. else
  6869. YY_NAME(parse_from)(g, start_rule);
  6870. YY_NAME(parse_free)(g);
  6871. pmh_PRINTF("\n\n");
  6872. }
  6873. static void parse_markdown(parser_data *p_data)
  6874. {
  6875. pmh_PRINTF("\nPARSING DOCUMENT: ");
  6876. _parse(p_data, NULL);
  6877. }
  6878. static void parse_references(parser_data *p_data)
  6879. {
  6880. pmh_PRINTF("\nPARSING REFERENCES: ");
  6881. p_data->parsing_only_references = true;
  6882. _parse(p_data, yy_References);
  6883. p_data->parsing_only_references = false;
  6884. p_data->references = p_data->head_elems[pmh_REFERENCE];
  6885. p_data->head_elems[pmh_REFERENCE] = NULL;
  6886. }