pmh_parser.c 326 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695
  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 233
  7. /* PEG Markdown Highlight
  8. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  9. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  10. *
  11. * pmh_grammar.leg
  12. *
  13. * This is a slightly adapted version of the PEG grammar from John MacFarlane's
  14. * peg-markdown compiler.
  15. */
  16. /* PEG Markdown Highlight
  17. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  18. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  19. *
  20. * pmh_parser_head.c
  21. *
  22. * Code to be inserted into the beginning of the parser code generated
  23. * from the PEG grammar.
  24. */
  25. #include "pmh_parser.h"
  26. #ifndef pmh_DEBUG_OUTPUT
  27. #define pmh_DEBUG_OUTPUT 0
  28. #endif
  29. #if pmh_DEBUG_OUTPUT
  30. #define pmh_IF(x) if (x)
  31. #define pmh_PRINTF(x, ...) fprintf(stderr, x, ##__VA_ARGS__)
  32. #define pmh_PUTCHAR(x) putchar(x)
  33. #else
  34. #define pmh_IF(x)
  35. #define pmh_PRINTF(x, ...)
  36. #define pmh_PUTCHAR(x)
  37. #endif
  38. // Alias strdup to _strdup on MSVC:
  39. #ifdef _MSC_VER
  40. #define strdup _strdup
  41. #endif
  42. char *strdup_or_null(char *s)
  43. {
  44. return (s == NULL) ? NULL : strdup(s);
  45. }
  46. // Internal language element occurrence structure, containing
  47. // both public and private members:
  48. struct pmh_RealElement
  49. {
  50. // "Public" members:
  51. // (these must match what's defined in pmh_definitions.h)
  52. // -----------------------------------------------
  53. pmh_element_type type;
  54. unsigned long pos;
  55. unsigned long end;
  56. struct pmh_RealElement *next;
  57. char *label;
  58. char *address;
  59. // "Private" members for use by the parser itself:
  60. // -----------------------------------------------
  61. // next element in list of all elements:
  62. struct pmh_RealElement *all_elems_next;
  63. // offset to text (for elements of type pmh_EXTRA_TEXT, used when the
  64. // parser reads the value of 'text'):
  65. int text_offset;
  66. // text content (for elements of type pmh_EXTRA_TEXT):
  67. char *text;
  68. // children of element (for elements of type pmh_RAW_LIST)
  69. struct pmh_RealElement *children;
  70. };
  71. typedef struct pmh_RealElement pmh_realelement;
  72. // Parser state data:
  73. typedef struct
  74. {
  75. /* The original, unmodified UTF-8 input: */
  76. char *original_input;
  77. /* The offsets of the bytes we have stripped from original_input: */
  78. unsigned long *strip_positions;
  79. size_t strip_positions_len;
  80. /* Buffer of characters to be parsed: */
  81. char *charbuf;
  82. /* Linked list of {start, end} offset pairs determining which parts */
  83. /* of charbuf to actually parse: */
  84. pmh_realelement *current_elem;
  85. pmh_realelement *elem_head;
  86. /* Current parsing offset within charbuf: */
  87. unsigned long offset;
  88. /* The extensions to use for parsing (bitfield */
  89. /* of enum pmh_extensions): */
  90. int extensions;
  91. /* Array of parsing result elements, indexed by type: */
  92. pmh_realelement **head_elems;
  93. /* Whether we are parsing only references: */
  94. bool parsing_only_references;
  95. /* List of reference elements: */
  96. pmh_realelement *references;
  97. } parser_data;
  98. static parser_data *mk_parser_data(char *original_input,
  99. unsigned long *strip_positions,
  100. size_t strip_positions_len,
  101. char *charbuf,
  102. pmh_realelement *parsing_elems,
  103. unsigned long offset,
  104. int extensions,
  105. pmh_realelement **head_elems,
  106. pmh_realelement *references)
  107. {
  108. parser_data *p_data = (parser_data *)malloc(sizeof(parser_data));
  109. p_data->extensions = extensions;
  110. p_data->original_input = original_input;
  111. p_data->strip_positions = strip_positions;
  112. p_data->strip_positions_len = strip_positions_len;
  113. p_data->charbuf = charbuf;
  114. p_data->offset = offset;
  115. p_data->elem_head = p_data->current_elem = parsing_elems;
  116. p_data->references = references;
  117. p_data->parsing_only_references = false;
  118. if (head_elems != NULL)
  119. p_data->head_elems = head_elems;
  120. else {
  121. p_data->head_elems = (pmh_realelement **)
  122. malloc(sizeof(pmh_realelement *) * pmh_NUM_TYPES);
  123. int i;
  124. for (i = 0; i < pmh_NUM_TYPES; i++)
  125. p_data->head_elems[i] = NULL;
  126. }
  127. return p_data;
  128. }
  129. // Forward declarations
  130. static void parse_markdown(parser_data *p_data);
  131. static void parse_references(parser_data *p_data);
  132. static char **get_element_type_names()
  133. {
  134. static char **elem_type_names = NULL;
  135. if (elem_type_names == NULL)
  136. {
  137. elem_type_names = (char **)malloc(sizeof(char*) * pmh_NUM_LANG_TYPES);
  138. int i;
  139. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  140. elem_type_names[i] = NULL;
  141. elem_type_names[pmh_LINK] = "LINK";
  142. elem_type_names[pmh_AUTO_LINK_URL] = "AUTO_LINK_URL";
  143. elem_type_names[pmh_AUTO_LINK_EMAIL] = "AUTO_LINK_EMAIL";
  144. elem_type_names[pmh_IMAGE] = "IMAGE";
  145. elem_type_names[pmh_CODE] = "CODE";
  146. elem_type_names[pmh_HTML] = "HTML";
  147. elem_type_names[pmh_HTML_ENTITY] = "HTML_ENTITY";
  148. elem_type_names[pmh_EMPH] = "EMPH";
  149. elem_type_names[pmh_STRONG] = "STRONG";
  150. elem_type_names[pmh_LIST_BULLET] = "LIST_BULLET";
  151. elem_type_names[pmh_LIST_ENUMERATOR] = "LIST_ENUMERATOR";
  152. elem_type_names[pmh_COMMENT] = "COMMENT";
  153. elem_type_names[pmh_H1] = "H1";
  154. elem_type_names[pmh_H2] = "H2";
  155. elem_type_names[pmh_H3] = "H3";
  156. elem_type_names[pmh_H4] = "H4";
  157. elem_type_names[pmh_H5] = "H5";
  158. elem_type_names[pmh_H6] = "H6";
  159. elem_type_names[pmh_BLOCKQUOTE] = "BLOCKQUOTE";
  160. elem_type_names[pmh_VERBATIM] = "VERBATIM";
  161. elem_type_names[pmh_HTMLBLOCK] = "HTMLBLOCK";
  162. elem_type_names[pmh_HRULE] = "HRULE";
  163. elem_type_names[pmh_REFERENCE] = "REFERENCE";
  164. elem_type_names[pmh_NOTE] = "NOTE";
  165. elem_type_names[pmh_STRIKE] = "STRIKE";
  166. }
  167. return elem_type_names;
  168. }
  169. pmh_element_type pmh_element_type_from_name(char *name)
  170. {
  171. char **elem_type_names = get_element_type_names();
  172. int i;
  173. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  174. {
  175. char *i_name = elem_type_names[i];
  176. if (i_name == NULL)
  177. continue;
  178. if (strcmp(i_name, name) == 0)
  179. return i;
  180. }
  181. return pmh_NO_TYPE;
  182. }
  183. char *pmh_element_name_from_type(pmh_element_type type)
  184. {
  185. char **elem_type_names = get_element_type_names();
  186. char* ret = elem_type_names[type];
  187. if (ret == NULL)
  188. return "unknown type";
  189. return ret;
  190. }
  191. /*
  192. Remove pmh_RAW elements with zero length; return pointer
  193. to new head.
  194. */
  195. static pmh_realelement *remove_zero_length_raw_spans(pmh_realelement *elem)
  196. {
  197. pmh_realelement *head = elem;
  198. pmh_realelement *parent = NULL;
  199. pmh_realelement *c = head;
  200. while (c != NULL)
  201. {
  202. if (c->type == pmh_RAW && c->pos >= c->end)
  203. {
  204. if (parent != NULL)
  205. parent->next = c->next;
  206. else
  207. head = c->next;
  208. parent = c;
  209. c = c->next;
  210. continue;
  211. }
  212. parent = c;
  213. c = c->next;
  214. }
  215. return head;
  216. }
  217. #if pmh_DEBUG_OUTPUT
  218. /*
  219. Print null-terminated string s.t. some characters are
  220. represented by their corresponding espace sequences
  221. */
  222. static void print_str_literal_escapes(char *str)
  223. {
  224. char *c = str;
  225. pmh_PRINTF("'");
  226. while (*c != '\0')
  227. {
  228. if (*c == '\n') pmh_PRINTF("\\n");
  229. else if (*c == '\t') pmh_PRINTF("\\t");
  230. else putchar(*c);
  231. c++;
  232. }
  233. pmh_PRINTF("'");
  234. }
  235. #endif
  236. #if pmh_DEBUG_OUTPUT
  237. /*
  238. Print elements in a linked list of
  239. pmh_RAW, pmh_SEPARATOR, pmh_EXTRA_TEXT elements
  240. */
  241. static void print_raw_spans_inline(pmh_realelement *elem)
  242. {
  243. pmh_realelement *cur = elem;
  244. while (cur != NULL)
  245. {
  246. if (cur->type == pmh_SEPARATOR)
  247. pmh_PRINTF("<pmh_SEP %ld> ", cur->pos);
  248. else if (cur->type == pmh_EXTRA_TEXT) {
  249. pmh_PRINTF("{pmh_ETEXT ");
  250. print_str_literal_escapes(cur->text);
  251. pmh_PRINTF("}");
  252. }
  253. else
  254. pmh_PRINTF("(%ld-%ld) ", cur->pos, cur->end);
  255. cur = cur->next;
  256. }
  257. }
  258. #endif
  259. /*
  260. Perform postprocessing parsing runs for pmh_RAW_LIST elements in `elem`,
  261. iteratively until no such elements exist.
  262. */
  263. static void process_raw_blocks(parser_data *p_data)
  264. {
  265. pmh_PRINTF("--------process_raw_blocks---------\n");
  266. while (p_data->head_elems[pmh_RAW_LIST] != NULL)
  267. {
  268. pmh_PRINTF("new iteration.\n");
  269. pmh_realelement *cursor = p_data->head_elems[pmh_RAW_LIST];
  270. p_data->head_elems[pmh_RAW_LIST] = NULL;
  271. while (cursor != NULL)
  272. {
  273. pmh_realelement *span_list = (pmh_realelement*)cursor->children;
  274. span_list = remove_zero_length_raw_spans(span_list);
  275. #if pmh_DEBUG_OUTPUT
  276. pmh_PRINTF(" process: ");
  277. print_raw_spans_inline(span_list);
  278. pmh_PRINTF("\n");
  279. #endif
  280. while (span_list != NULL)
  281. {
  282. pmh_PRINTF("next: span_list: %ld-%ld\n",
  283. span_list->pos, span_list->end);
  284. // Skip separators in the beginning, as well as
  285. // separators after another separator:
  286. if (span_list->type == pmh_SEPARATOR) {
  287. span_list = span_list->next;
  288. continue;
  289. }
  290. // Store list of spans until next separator in subspan_list:
  291. pmh_realelement *subspan_list = span_list;
  292. pmh_realelement *previous = NULL;
  293. while (span_list != NULL && span_list->type != pmh_SEPARATOR) {
  294. previous = span_list;
  295. span_list = span_list->next;
  296. }
  297. if (span_list != NULL && span_list->type == pmh_SEPARATOR) {
  298. span_list = span_list->next;
  299. previous->next = NULL;
  300. }
  301. #if pmh_DEBUG_OUTPUT
  302. pmh_PRINTF(" subspan process: ");
  303. print_raw_spans_inline(subspan_list);
  304. pmh_PRINTF("\n");
  305. #endif
  306. // Process subspan_list:
  307. parser_data *raw_p_data = mk_parser_data(
  308. p_data->original_input,
  309. p_data->strip_positions,
  310. p_data->strip_positions_len,
  311. p_data->charbuf,
  312. subspan_list,
  313. subspan_list->pos,
  314. p_data->extensions,
  315. p_data->head_elems,
  316. p_data->references
  317. );
  318. parse_markdown(raw_p_data);
  319. free(raw_p_data);
  320. pmh_PRINTF("parse over\n");
  321. }
  322. cursor = cursor->next;
  323. }
  324. }
  325. }
  326. #if pmh_DEBUG_OUTPUT
  327. static void print_raw_blocks(char *text, pmh_realelement *elem[])
  328. {
  329. pmh_PRINTF("--------print_raw_blocks---------\n");
  330. pmh_PRINTF("block:\n");
  331. pmh_realelement *cursor = elem[pmh_RAW_LIST];
  332. while (cursor != NULL)
  333. {
  334. print_raw_spans_inline(cursor->children);
  335. cursor = cursor->next;
  336. }
  337. }
  338. #endif
  339. /* Free all elements created while parsing */
  340. void pmh_free_elements(pmh_element **elems)
  341. {
  342. pmh_realelement *cursor = (pmh_realelement*)elems[pmh_ALL];
  343. while (cursor != NULL) {
  344. pmh_realelement *tofree = cursor;
  345. cursor = cursor->all_elems_next;
  346. if (tofree->text != NULL)
  347. free(tofree->text);
  348. if (tofree->label != NULL)
  349. free(tofree->label);
  350. if (tofree->address != NULL)
  351. free(tofree->address);
  352. free(tofree);
  353. }
  354. elems[pmh_ALL] = NULL;
  355. free(elems);
  356. }
  357. #define IS_CONTINUATION_BYTE(x) ((x & 0xC0) == 0x80)
  358. #define HAS_UTF8_BOM(x) ( ((*x & 0xFF) == 0xEF)\
  359. && ((*(x+1) & 0xFF) == 0xBB)\
  360. && ((*(x+2) & 0xFF) == 0xBF) )
  361. #define ADD_STRIP_POS(x) \
  362. /* reallocate more space for the array, if needed: */ \
  363. if (strip_positions_size <= strip_positions_pos) { \
  364. size_t new_size = strip_positions_size * 2; \
  365. unsigned long *new_arr = (unsigned long *) \
  366. calloc(new_size, \
  367. sizeof(unsigned long)); \
  368. memcpy(new_arr, strip_positions, \
  369. (sizeof(unsigned long) * strip_positions_size)); \
  370. strip_positions_size = new_size; \
  371. free(strip_positions); \
  372. strip_positions = new_arr; \
  373. } \
  374. strip_positions[strip_positions_pos] = x; \
  375. strip_positions_pos++;
  376. /*
  377. Copy `str` to `out`, while doing the following:
  378. - remove UTF-8 continuation bytes
  379. - remove possible UTF-8 BOM (byte order mark)
  380. - append two newlines to the end (like peg-markdown does)
  381. - keep track of which bytes we have stripped (in strip_positions)
  382. */
  383. static int strcpy_preformat(char *str, char **out,
  384. unsigned long **out_strip_positions,
  385. size_t *out_strip_positions_len)
  386. {
  387. size_t strip_positions_size = 1024;
  388. size_t strip_positions_pos = 0;
  389. unsigned long *strip_positions = (unsigned long *)
  390. calloc(strip_positions_size,
  391. sizeof(unsigned long));
  392. // +2 in the following is due to the "\n\n" suffix:
  393. char *new_str = (char *)malloc(sizeof(char) * strlen(str) + 1 + 2);
  394. char *c = str;
  395. int i = 0;
  396. if (HAS_UTF8_BOM(c)) {
  397. c += 3;
  398. ADD_STRIP_POS(0);
  399. ADD_STRIP_POS(1);
  400. ADD_STRIP_POS(2);
  401. }
  402. while (*c != '\0')
  403. {
  404. if (!IS_CONTINUATION_BYTE(*c)) {
  405. *(new_str+i) = *c, i++;
  406. } else {
  407. ADD_STRIP_POS((int)(c-str));
  408. }
  409. c++;
  410. }
  411. *(new_str+(i++)) = '\n';
  412. *(new_str+(i++)) = '\n';
  413. *(new_str+i) = '\0';
  414. *out = new_str;
  415. *out_strip_positions = strip_positions;
  416. *out_strip_positions_len = strip_positions_pos;
  417. return i;
  418. }
  419. void pmh_markdown_to_elements(char *text, int extensions,
  420. pmh_element **out_result[])
  421. {
  422. char *text_copy = NULL;
  423. unsigned long *strip_positions = NULL;
  424. size_t strip_positions_len = 0;
  425. int text_copy_len = strcpy_preformat(text, &text_copy, &strip_positions,
  426. &strip_positions_len);
  427. pmh_realelement *parsing_elem = (pmh_realelement *)
  428. malloc(sizeof(pmh_realelement));
  429. parsing_elem->type = pmh_RAW;
  430. parsing_elem->pos = 0;
  431. parsing_elem->end = text_copy_len;
  432. parsing_elem->next = NULL;
  433. parser_data *p_data = mk_parser_data(
  434. text,
  435. strip_positions,
  436. strip_positions_len,
  437. text_copy,
  438. parsing_elem,
  439. 0,
  440. extensions,
  441. NULL,
  442. NULL
  443. );
  444. pmh_realelement **result = p_data->head_elems;
  445. if (*text_copy != '\0')
  446. {
  447. // Get reference definitions into p_data->references
  448. parse_references(p_data);
  449. // Reset parser state to beginning of input
  450. p_data->offset = 0;
  451. p_data->current_elem = p_data->elem_head;
  452. // Parse whole document
  453. parse_markdown(p_data);
  454. #if pmh_DEBUG_OUTPUT
  455. print_raw_blocks(text_copy, result);
  456. #endif
  457. process_raw_blocks(p_data);
  458. }
  459. free(strip_positions);
  460. free(p_data);
  461. free(parsing_elem);
  462. free(text_copy);
  463. *out_result = (pmh_element**)result;
  464. }
  465. /*
  466. Mergesort linked list of elements (using comparison function `compare`),
  467. return new head. (Adapted slightly from Simon Tatham's algorithm.)
  468. */
  469. static pmh_element *ll_mergesort(pmh_element *list,
  470. int (*compare)(const pmh_element*,
  471. const pmh_element*))
  472. {
  473. if (!list)
  474. return NULL;
  475. pmh_element *out_head = list;
  476. /* Merge widths of doubling size until done */
  477. int merge_width = 1;
  478. while (1)
  479. {
  480. pmh_element *l, *r; /* left & right segment pointers */
  481. pmh_element *tail = NULL; /* tail of sorted section */
  482. l = out_head;
  483. out_head = NULL;
  484. int merge_count = 0;
  485. while (l)
  486. {
  487. merge_count++;
  488. /* Position r, determine lsize & rsize */
  489. r = l;
  490. int lsize = 0;
  491. int i;
  492. for (i = 0; i < merge_width; i++) {
  493. lsize++;
  494. r = r->next;
  495. if (!r)
  496. break;
  497. }
  498. int rsize = merge_width;
  499. /* Merge l & r */
  500. while (lsize > 0 || (rsize > 0 && r))
  501. {
  502. bool get_from_left = false;
  503. if (lsize == 0) get_from_left = false;
  504. else if (rsize == 0 || !r) get_from_left = true;
  505. else if (compare(l,r) <= 0) get_from_left = true;
  506. pmh_element *e;
  507. if (get_from_left) {
  508. e = l; l = l->next; lsize--;
  509. } else {
  510. e = r; r = r->next; rsize--;
  511. }
  512. /* add the next pmh_element to the merged list */
  513. if (tail)
  514. tail->next = e;
  515. else
  516. out_head = e;
  517. tail = e;
  518. }
  519. l = r;
  520. }
  521. tail->next = NULL;
  522. if (merge_count <= 1)
  523. return out_head;
  524. merge_width *= 2;
  525. }
  526. }
  527. static int elem_compare_by_pos(const pmh_element *a, const pmh_element *b)
  528. {
  529. return a->pos - b->pos;
  530. }
  531. void pmh_sort_elements_by_pos(pmh_element *element_lists[])
  532. {
  533. int i;
  534. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  535. element_lists[i] = ll_mergesort(element_lists[i], &elem_compare_by_pos);
  536. }
  537. /* return true if extension is selected */
  538. static bool extension(parser_data *p_data, int ext)
  539. {
  540. return ((p_data->extensions & ext) != 0);
  541. }
  542. /* return reference pmh_realelement for a given label */
  543. static pmh_realelement *get_reference(parser_data *p_data, char *label)
  544. {
  545. if (!label)
  546. return NULL;
  547. pmh_realelement *cursor = p_data->references;
  548. while (cursor != NULL)
  549. {
  550. if (cursor->label && strcmp(label, cursor->label) == 0)
  551. return cursor;
  552. cursor = cursor->next;
  553. }
  554. return NULL;
  555. }
  556. /* cons an element/list onto a list, returning pointer to new head */
  557. static pmh_realelement *cons(pmh_realelement *elem, pmh_realelement *list)
  558. {
  559. assert(elem != NULL);
  560. pmh_realelement *cur = elem;
  561. while (cur->next != NULL) {
  562. cur = cur->next;
  563. }
  564. cur->next = list;
  565. return elem;
  566. }
  567. /* reverse a list, returning pointer to new list */
  568. static pmh_realelement *reverse(pmh_realelement *list)
  569. {
  570. pmh_realelement *new_head = NULL;
  571. pmh_realelement *next = NULL;
  572. while (list != NULL) {
  573. next = list->next;
  574. list->next = new_head;
  575. new_head = list;
  576. list = next;
  577. }
  578. return new_head;
  579. }
  580. /* construct pmh_realelement */
  581. static pmh_realelement *mk_element(parser_data *p_data, pmh_element_type type,
  582. long pos, long end)
  583. {
  584. pmh_realelement *result = (pmh_realelement *)malloc(sizeof(pmh_realelement));
  585. memset(result, 0, sizeof(*result));
  586. result->type = type;
  587. result->pos = pos;
  588. result->end = end;
  589. pmh_realelement *old_all_elements_head = p_data->head_elems[pmh_ALL];
  590. p_data->head_elems[pmh_ALL] = result;
  591. result->all_elems_next = old_all_elements_head;
  592. //pmh_PRINTF(" mk_element: %s [%ld - %ld]\n", pmh_element_name_from_type(type), pos, end);
  593. return result;
  594. }
  595. static pmh_realelement *copy_element(parser_data *p_data, pmh_realelement *elem)
  596. {
  597. pmh_realelement *result = mk_element(p_data, elem->type, elem->pos, elem->end);
  598. result->label = strdup_or_null(elem->label);
  599. result->text = strdup_or_null(elem->text);
  600. result->address = strdup_or_null(elem->address);
  601. return result;
  602. }
  603. /* construct pmh_EXTRA_TEXT pmh_realelement */
  604. static pmh_realelement *mk_etext(parser_data *p_data, char *string)
  605. {
  606. pmh_realelement *result;
  607. assert(string != NULL);
  608. result = mk_element(p_data, pmh_EXTRA_TEXT, 0,0);
  609. result->text = strdup_or_null(string);
  610. return result;
  611. }
  612. /*
  613. Given an element where the offsets {pos, end} represent
  614. locations in the *parsed text* (defined by the linked list of pmh_RAW and
  615. pmh_EXTRA_TEXT elements in p_data->current_elem), fix these offsets to represent
  616. corresponding offsets in the parse buffer (p_data->charbuf). Also split
  617. the given pmh_realelement into multiple parts if its offsets span multiple
  618. p_data->current_elem elements. Return the (list of) elements with real offsets.
  619. */
  620. static pmh_realelement *fix_offsets(parser_data *p_data, pmh_realelement *elem)
  621. {
  622. if (elem->type == pmh_EXTRA_TEXT)
  623. return mk_etext(p_data, elem->text);
  624. pmh_realelement *new_head = copy_element(p_data, elem);
  625. pmh_realelement *tail = new_head;
  626. pmh_realelement *prev = NULL;
  627. bool found_start = false;
  628. bool found_end = false;
  629. bool tail_needs_pos = false;
  630. unsigned long previous_end = 0;
  631. unsigned long c = 0;
  632. pmh_realelement *cursor = p_data->elem_head;
  633. while (cursor != NULL)
  634. {
  635. int thislen = (cursor->type == pmh_EXTRA_TEXT)
  636. ? strlen(cursor->text)
  637. : cursor->end - cursor->pos;
  638. if (tail_needs_pos && cursor->type != pmh_EXTRA_TEXT) {
  639. tail->pos = cursor->pos;
  640. tail_needs_pos = false;
  641. }
  642. unsigned int this_pos = cursor->pos;
  643. if (!found_start && (c <= elem->pos && elem->pos <= c+thislen)) {
  644. tail->pos = (cursor->type == pmh_EXTRA_TEXT)
  645. ? previous_end
  646. : cursor->pos + (elem->pos - c);
  647. this_pos = tail->pos;
  648. found_start = true;
  649. }
  650. if (!found_end && (c <= elem->end && elem->end <= c+thislen)) {
  651. tail->end = (cursor->type == pmh_EXTRA_TEXT)
  652. ? previous_end
  653. : cursor->pos + (elem->end - c);
  654. found_end = true;
  655. }
  656. if (found_start && found_end)
  657. break;
  658. if (cursor->type != pmh_EXTRA_TEXT)
  659. previous_end = cursor->end;
  660. if (found_start) {
  661. pmh_realelement *new_elem = copy_element(p_data, tail);
  662. new_elem->pos = this_pos;
  663. new_elem->end = cursor->end;
  664. new_elem->next = tail;
  665. if (prev != NULL)
  666. prev->next = new_elem;
  667. if (new_head == tail)
  668. new_head = new_elem;
  669. prev = new_elem;
  670. tail_needs_pos = true;
  671. }
  672. c += thislen;
  673. cursor = cursor->next;
  674. }
  675. return new_head;
  676. }
  677. /* Add an element to p_data->head_elems. */
  678. static void add(parser_data *p_data, pmh_realelement *elem)
  679. {
  680. if (elem->type != pmh_RAW_LIST)
  681. {
  682. pmh_PRINTF(" add: %s [%ld - %ld]\n",
  683. pmh_element_name_from_type(elem->type), elem->pos, elem->end);
  684. elem = fix_offsets(p_data, elem);
  685. pmh_PRINTF(" > %s [%ld - %ld]\n",
  686. pmh_element_name_from_type(elem->type), elem->pos, elem->end);
  687. }
  688. else
  689. {
  690. pmh_PRINTF(" add: pmh_RAW_LIST ");
  691. pmh_realelement *cursor = elem->children;
  692. pmh_realelement *previous = NULL;
  693. while (cursor != NULL)
  694. {
  695. pmh_realelement *next = cursor->next;
  696. pmh_PRINTF("(%ld-%ld)>", cursor->pos, cursor->end);
  697. pmh_realelement *new_cursor = fix_offsets(p_data, cursor);
  698. if (previous != NULL)
  699. previous->next = new_cursor;
  700. else
  701. elem->children = new_cursor;
  702. pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
  703. while (new_cursor->next != NULL) {
  704. new_cursor = new_cursor->next;
  705. pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
  706. }
  707. pmh_PRINTF(" ");
  708. if (next != NULL)
  709. new_cursor->next = next;
  710. previous = new_cursor;
  711. cursor = next;
  712. }
  713. pmh_PRINTF("\n");
  714. }
  715. if (p_data->head_elems[elem->type] == NULL)
  716. p_data->head_elems[elem->type] = elem;
  717. else
  718. {
  719. pmh_realelement *last = elem;
  720. while (last->next != NULL)
  721. last = last->next;
  722. last->next = p_data->head_elems[elem->type];
  723. p_data->head_elems[elem->type] = elem;
  724. }
  725. }
  726. // Given a range in the list of spans we use for parsing (pos, end), return
  727. // a copy of the corresponding section in the original input, with all of
  728. // the UTF-8 bytes intact:
  729. static char *copy_input_span(parser_data *p_data,
  730. unsigned long pos, unsigned long end)
  731. {
  732. if (end <= pos)
  733. return NULL;
  734. char *ret = NULL;
  735. // Adjust (pos,end) to match actual indexes in charbuf:
  736. pmh_realelement *dummy = mk_element(p_data, pmh_NO_TYPE, pos, end);
  737. pmh_realelement *fixed_dummies = fix_offsets(p_data, dummy);
  738. pmh_realelement *cursor = fixed_dummies;
  739. while (cursor != NULL)
  740. {
  741. if (cursor->end <= cursor->pos)
  742. {
  743. cursor = cursor->next;
  744. continue;
  745. }
  746. // Adjust cursor's span to take bytes stripped from the original
  747. // input into account (i.e. match the corresponding span in
  748. // p_data->original_input):
  749. unsigned long adjusted_pos = cursor->pos;
  750. unsigned long adjusted_end = cursor->end;
  751. size_t i;
  752. for (i = 0; i < p_data->strip_positions_len; i++)
  753. {
  754. unsigned long strip_position = p_data->strip_positions[i];
  755. if (strip_position <= adjusted_pos)
  756. adjusted_pos++;
  757. if (strip_position <= adjusted_end)
  758. adjusted_end++;
  759. else
  760. break;
  761. }
  762. // Copy span from original input:
  763. size_t adjusted_len = adjusted_end - adjusted_pos;
  764. char *str = (char *)malloc(sizeof(char)*adjusted_len + 1);
  765. *str = '\0';
  766. strncat(str, (p_data->original_input + adjusted_pos), adjusted_len);
  767. if (ret == NULL)
  768. ret = str;
  769. else
  770. {
  771. // append str to ret:
  772. char *new_ret = (char *)malloc(sizeof(char)
  773. *(strlen(str) + strlen(ret)) + 1);
  774. *new_ret = '\0';
  775. strcat(new_ret, ret);
  776. strcat(new_ret, str);
  777. free(ret);
  778. free(str);
  779. ret = new_ret;
  780. }
  781. cursor = cursor->next;
  782. }
  783. return ret;
  784. }
  785. # define YYSTYPE pmh_realelement *
  786. #ifdef __DEBUG__
  787. # define YY_DEBUG 1
  788. #endif
  789. #define YY_INPUT(buf, result, max_size)\
  790. yy_input_func(buf, &result, max_size, (parser_data *)G->data)
  791. static void yy_input_func(char *buf, int *result, int max_size,
  792. parser_data *p_data)
  793. {
  794. if (p_data->current_elem == NULL)
  795. {
  796. (*result) = 0;
  797. return;
  798. }
  799. if (p_data->current_elem->type == pmh_EXTRA_TEXT)
  800. {
  801. int yyc;
  802. bool moreToRead = (p_data->current_elem->text
  803. && *(p_data->current_elem->text
  804. + p_data->current_elem->text_offset) != '\0');
  805. if (moreToRead)
  806. {
  807. yyc = *(p_data->current_elem->text + p_data->current_elem->text_offset++);
  808. pmh_PRINTF("\e[47;30m"); pmh_PUTCHAR(yyc); pmh_PRINTF("\e[0m");
  809. pmh_IF(yyc == '\n') pmh_PRINTF("\e[47m \e[0m");
  810. }
  811. else
  812. {
  813. yyc = EOF;
  814. p_data->current_elem = p_data->current_elem->next;
  815. pmh_PRINTF("\e[41m \e[0m");
  816. if (p_data->current_elem != NULL)
  817. p_data->offset = p_data->current_elem->pos;
  818. }
  819. (*result) = (EOF == yyc) ? 0 : (*(buf) = yyc, 1);
  820. return;
  821. }
  822. *(buf) = *(p_data->charbuf + p_data->offset);
  823. (*result) = (*buf != '\0');
  824. p_data->offset++;
  825. pmh_PRINTF("\e[43;30m"); pmh_PUTCHAR(*buf); pmh_PRINTF("\e[0m");
  826. pmh_IF(*buf == '\n') pmh_PRINTF("\e[42m \e[0m");
  827. if (p_data->offset >= p_data->current_elem->end)
  828. {
  829. p_data->current_elem = p_data->current_elem->next;
  830. pmh_PRINTF("\e[41m \e[0m");
  831. if (p_data->current_elem != NULL)
  832. p_data->offset = p_data->current_elem->pos;
  833. }
  834. }
  835. #define elem(x) mk_element((parser_data *)G->data, x, thunk->begin, thunk->end)
  836. #define elem_s(x) mk_element((parser_data *)G->data, x, s->pos, thunk->end)
  837. #define mk_sep mk_element((parser_data *)G->data, pmh_SEPARATOR, 0,0)
  838. #define mk_notype mk_element((parser_data *)G->data, pmh_NO_TYPE, 0,0)
  839. #define etext(x) mk_etext((parser_data *)G->data, x)
  840. #define ADD(x) add((parser_data *)G->data, x)
  841. #define EXT(x) extension((parser_data *)G->data, x)
  842. #define REF_EXISTS(x) reference_exists((parser_data *)G->data, x)
  843. #define GET_REF(x) get_reference((parser_data *)G->data, x)
  844. #define PARSING_REFERENCES ((parser_data *)G->data)->parsing_only_references
  845. #define FREE_LABEL(l) { free(l->label); l->label = NULL; }
  846. #define FREE_ADDRESS(l) { free(l->address); l->address = NULL; }
  847. // This gives us the text matched with < > as it appears in the original input:
  848. #define COPY_YYTEXT_ORIG() copy_input_span((parser_data *)G->data, thunk->begin, thunk->end)
  849. #ifndef YY_ALLOC
  850. #define YY_ALLOC(N, D) malloc(N)
  851. #endif
  852. #ifndef YY_CALLOC
  853. #define YY_CALLOC(N, S, D) calloc(N, S)
  854. #endif
  855. #ifndef YY_REALLOC
  856. #define YY_REALLOC(B, N, D) realloc(B, N)
  857. #endif
  858. #ifndef YY_FREE
  859. #define YY_FREE free
  860. #endif
  861. #ifndef YY_LOCAL
  862. #define YY_LOCAL(T) static T
  863. #endif
  864. #ifndef YY_ACTION
  865. #define YY_ACTION(T) static T
  866. #endif
  867. #ifndef YY_RULE
  868. #define YY_RULE(T) static T
  869. #endif
  870. #ifndef YY_PARSE
  871. #define YY_PARSE(T) T
  872. #endif
  873. #ifndef YY_NAME
  874. #define YY_NAME(N) yy##N
  875. #endif
  876. #ifndef YY_INPUT
  877. #define YY_INPUT(buf, result, max_size) \
  878. { \
  879. int yyc= getchar(); \
  880. result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \
  881. yyprintf((stderr, "<%c>", yyc)); \
  882. }
  883. #endif
  884. #ifndef YY_BEGIN
  885. #define YY_BEGIN ( G->begin= G->pos, 1)
  886. #endif
  887. #ifndef YY_END
  888. #define YY_END ( G->end= G->pos, 1)
  889. #endif
  890. #ifdef YY_DEBUG
  891. # define yyprintf(args) fprintf args
  892. #else
  893. # define yyprintf(args)
  894. #endif
  895. #ifndef YYSTYPE
  896. #define YYSTYPE int
  897. #endif
  898. #ifndef YY_XTYPE
  899. #define YY_XTYPE void *
  900. #endif
  901. #ifndef YY_XVAR
  902. #define YY_XVAR yyxvar
  903. #endif
  904. #ifndef YY_STACK_SIZE
  905. #define YY_STACK_SIZE 128
  906. #endif
  907. #ifndef YY_BUFFER_START_SIZE
  908. #define YY_BUFFER_START_SIZE 1024
  909. #endif
  910. #ifndef YY_PART
  911. #define yydata G->data
  912. #define yy G->ss
  913. struct _yythunk; // forward declaration
  914. typedef void (*yyaction)(struct _GREG *G, char *yytext, int yyleng, struct _yythunk *thunkpos, YY_XTYPE YY_XVAR);
  915. typedef struct _yythunk { int begin, end; yyaction action; struct _yythunk *next; } yythunk;
  916. typedef struct _GREG {
  917. char *buf;
  918. int buflen;
  919. int offset;
  920. int pos;
  921. int limit;
  922. char *text;
  923. int textlen;
  924. int begin;
  925. int end;
  926. yythunk *thunks;
  927. int thunkslen;
  928. int thunkpos;
  929. YYSTYPE ss;
  930. YYSTYPE *val;
  931. YYSTYPE *vals;
  932. int valslen;
  933. YY_XTYPE data;
  934. } GREG;
  935. YY_LOCAL(int) yyrefill(GREG *G)
  936. {
  937. int yyn;
  938. while (G->buflen - G->pos < 512)
  939. {
  940. G->buflen *= 2;
  941. G->buf= (char *)YY_REALLOC(G->buf, G->buflen, G->data);
  942. }
  943. YY_INPUT((G->buf + G->pos), yyn, (G->buflen - G->pos));
  944. if (!yyn) return 0;
  945. G->limit += yyn;
  946. return 1;
  947. }
  948. YY_LOCAL(int) yymatchDot(GREG *G)
  949. {
  950. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  951. ++G->pos;
  952. return 1;
  953. }
  954. YY_LOCAL(int) yymatchChar(GREG *G, int c)
  955. {
  956. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  957. if ((unsigned char)G->buf[G->pos] == c)
  958. {
  959. ++G->pos;
  960. yyprintf((stderr, " ok yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
  961. return 1;
  962. }
  963. yyprintf((stderr, " fail yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
  964. return 0;
  965. }
  966. YY_LOCAL(int) yymatchString(GREG *G, char *s)
  967. {
  968. int yysav= G->pos;
  969. while (*s)
  970. {
  971. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  972. if (G->buf[G->pos] != *s)
  973. {
  974. G->pos= yysav;
  975. return 0;
  976. }
  977. ++s;
  978. ++G->pos;
  979. }
  980. return 1;
  981. }
  982. YY_LOCAL(int) yymatchClass(GREG *G, unsigned char *bits)
  983. {
  984. int c;
  985. if (G->pos >= G->limit && !yyrefill(G)) return 0;
  986. c= (unsigned char)G->buf[G->pos];
  987. if (bits[c >> 3] & (1 << (c & 7)))
  988. {
  989. ++G->pos;
  990. yyprintf((stderr, " ok yymatchClass @ %s\n", G->buf+G->pos));
  991. return 1;
  992. }
  993. yyprintf((stderr, " fail yymatchClass @ %s\n", G->buf+G->pos));
  994. return 0;
  995. }
  996. YY_LOCAL(void) yyDo(GREG *G, yyaction action, int begin, int end)
  997. {
  998. while (G->thunkpos >= G->thunkslen)
  999. {
  1000. G->thunkslen *= 2;
  1001. G->thunks= (yythunk *)YY_REALLOC(G->thunks, sizeof(yythunk) * G->thunkslen, G->data);
  1002. }
  1003. G->thunks[G->thunkpos].begin= begin;
  1004. G->thunks[G->thunkpos].end= end;
  1005. G->thunks[G->thunkpos].action= action;
  1006. ++G->thunkpos;
  1007. }
  1008. YY_LOCAL(int) yyText(GREG *G, int begin, int end)
  1009. {
  1010. int yyleng= end - begin;
  1011. if (yyleng <= 0)
  1012. yyleng= 0;
  1013. else
  1014. {
  1015. while (G->textlen < (yyleng + 1))
  1016. {
  1017. G->textlen *= 2;
  1018. G->text= (char *)YY_REALLOC(G->text, G->textlen, G->data);
  1019. }
  1020. memcpy(G->text, G->buf + begin, yyleng);
  1021. }
  1022. G->text[yyleng]= '\0';
  1023. return yyleng;
  1024. }
  1025. YY_LOCAL(void) yyDone(GREG *G)
  1026. {
  1027. int pos;
  1028. for (pos= 0; pos < G->thunkpos; ++pos)
  1029. {
  1030. yythunk *thunk= &G->thunks[pos];
  1031. int yyleng= thunk->end ? yyText(G, thunk->begin, thunk->end) : thunk->begin;
  1032. yyprintf((stderr, "DO [%d] %p %s\n", pos, thunk->action, G->text));
  1033. thunk->action(G, G->text, yyleng, thunk, G->data);
  1034. }
  1035. G->thunkpos= 0;
  1036. }
  1037. YY_LOCAL(void) yyCommit(GREG *G)
  1038. {
  1039. if ((G->limit -= G->pos))
  1040. {
  1041. memmove(G->buf, G->buf + G->pos, G->limit);
  1042. }
  1043. G->offset += G->pos;
  1044. G->begin -= G->pos;
  1045. G->end -= G->pos;
  1046. G->pos= G->thunkpos= 0;
  1047. }
  1048. YY_LOCAL(int) yyAccept(GREG *G, int tp0)
  1049. {
  1050. if (tp0)
  1051. {
  1052. fprintf(stderr, "accept denied at %d\n", tp0);
  1053. return 0;
  1054. }
  1055. else
  1056. {
  1057. yyDone(G);
  1058. yyCommit(G);
  1059. }
  1060. return 1;
  1061. }
  1062. YY_LOCAL(void) yyPush(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val += count; }
  1063. YY_LOCAL(void) yyPop(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val -= count; }
  1064. YY_LOCAL(void) yySet(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val[count]= G->ss; }
  1065. #endif /* YY_PART */
  1066. #define YYACCEPT yyAccept(G, yythunkpos0)
  1067. YY_RULE(int) yy_RawNoteBlock(GREG *G); /* 233 */
  1068. YY_RULE(int) yy_RawNoteReference(GREG *G); /* 232 */
  1069. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G); /* 231 */
  1070. YY_RULE(int) yy_AlphanumericAscii(GREG *G); /* 230 */
  1071. YY_RULE(int) yy_Quoted(GREG *G); /* 229 */
  1072. YY_RULE(int) yy_HtmlTag(GREG *G); /* 228 */
  1073. YY_RULE(int) yy_Ticks5(GREG *G); /* 227 */
  1074. YY_RULE(int) yy_Ticks4(GREG *G); /* 226 */
  1075. YY_RULE(int) yy_Ticks3(GREG *G); /* 225 */
  1076. YY_RULE(int) yy_Ticks2(GREG *G); /* 224 */
  1077. YY_RULE(int) yy_Ticks1(GREG *G); /* 223 */
  1078. YY_RULE(int) yy_SkipBlock(GREG *G); /* 222 */
  1079. YY_RULE(int) yy_References(GREG *G); /* 221 */
  1080. YY_RULE(int) yy_EmptyTitle(GREG *G); /* 220 */
  1081. YY_RULE(int) yy_RefTitleParens(GREG *G); /* 219 */
  1082. YY_RULE(int) yy_RefTitleDouble(GREG *G); /* 218 */
  1083. YY_RULE(int) yy_RefTitleSingle(GREG *G); /* 217 */
  1084. YY_RULE(int) yy_RefTitle(GREG *G); /* 216 */
  1085. YY_RULE(int) yy_RefSrc(GREG *G); /* 215 */
  1086. YY_RULE(int) yy_AutoLinkEmail(GREG *G); /* 214 */
  1087. YY_RULE(int) yy_AutoLinkUrl(GREG *G); /* 213 */
  1088. YY_RULE(int) yy_ImageSizeHeight(GREG *G); /* 212 */
  1089. YY_RULE(int) yy_ImageSizeWidth(GREG *G); /* 211 */
  1090. YY_RULE(int) yy_ImageSizeComplete(GREG *G); /* 210 */
  1091. YY_RULE(int) yy_TitleDoubleExt(GREG *G); /* 209 */
  1092. YY_RULE(int) yy_TitleSingleExt(GREG *G); /* 208 */
  1093. YY_RULE(int) yy_TitleDouble(GREG *G); /* 207 */
  1094. YY_RULE(int) yy_TitleSingle(GREG *G); /* 206 */
  1095. YY_RULE(int) yy_Nonspacechar(GREG *G); /* 205 */
  1096. YY_RULE(int) yy_SourceContents(GREG *G); /* 204 */
  1097. YY_RULE(int) yy_ImageSize(GREG *G); /* 203 */
  1098. YY_RULE(int) yy_TitleExt(GREG *G); /* 202 */
  1099. YY_RULE(int) yy_Title(GREG *G); /* 201 */
  1100. YY_RULE(int) yy_Source(GREG *G); /* 200 */
  1101. YY_RULE(int) yy_Label(GREG *G); /* 199 */
  1102. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G); /* 198 */
  1103. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G); /* 197 */
  1104. YY_RULE(int) yy_AutoLink(GREG *G); /* 196 */
  1105. YY_RULE(int) yy_ReferenceLink(GREG *G); /* 195 */
  1106. YY_RULE(int) yy_ExplicitLinkSize(GREG *G); /* 194 */
  1107. YY_RULE(int) yy_ExplicitLink(GREG *G); /* 193 */
  1108. YY_RULE(int) yy_StrongUl(GREG *G); /* 192 */
  1109. YY_RULE(int) yy_StrongStar(GREG *G); /* 191 */
  1110. YY_RULE(int) yy_Whitespace(GREG *G); /* 190 */
  1111. YY_RULE(int) yy_EmphUl(GREG *G); /* 189 */
  1112. YY_RULE(int) yy_EmphStar(GREG *G); /* 188 */
  1113. YY_RULE(int) yy_StarLine(GREG *G); /* 187 */
  1114. YY_RULE(int) yy_UlLine(GREG *G); /* 186 */
  1115. YY_RULE(int) yy_SpecialChar(GREG *G); /* 185 */
  1116. YY_RULE(int) yy_Eof(GREG *G); /* 184 */
  1117. YY_RULE(int) yy_NormalEndline(GREG *G); /* 183 */
  1118. YY_RULE(int) yy_TerminalEndline(GREG *G); /* 182 */
  1119. YY_RULE(int) yy_LineBreak(GREG *G); /* 181 */
  1120. YY_RULE(int) yy_CharEntity(GREG *G); /* 180 */
  1121. YY_RULE(int) yy_DecEntity(GREG *G); /* 179 */
  1122. YY_RULE(int) yy_HexEntity(GREG *G); /* 178 */
  1123. YY_RULE(int) yy_Alphanumeric(GREG *G); /* 177 */
  1124. YY_RULE(int) yy_NormalChar(GREG *G); /* 176 */
  1125. YY_RULE(int) yy_Symbol(GREG *G); /* 175 */
  1126. YY_RULE(int) yy_EscapedChar(GREG *G); /* 174 */
  1127. YY_RULE(int) yy_Entity(GREG *G); /* 173 */
  1128. YY_RULE(int) yy_RawHtml(GREG *G); /* 172 */
  1129. YY_RULE(int) yy_Code(GREG *G); /* 171 */
  1130. YY_RULE(int) yy_InlineNote(GREG *G); /* 170 */
  1131. YY_RULE(int) yy_NoteReference(GREG *G); /* 169 */
  1132. YY_RULE(int) yy_Link(GREG *G); /* 168 */
  1133. YY_RULE(int) yy_Image(GREG *G); /* 167 */
  1134. YY_RULE(int) yy_Strike(GREG *G); /* 166 */
  1135. YY_RULE(int) yy_Emph(GREG *G); /* 165 */
  1136. YY_RULE(int) yy_Strong(GREG *G); /* 164 */
  1137. YY_RULE(int) yy_UlOrStarLine(GREG *G); /* 163 */
  1138. YY_RULE(int) yy_Str(GREG *G); /* 162 */
  1139. YY_RULE(int) yy_InStyleTags(GREG *G); /* 161 */
  1140. YY_RULE(int) yy_StyleClose(GREG *G); /* 160 */
  1141. YY_RULE(int) yy_StyleOpen(GREG *G); /* 159 */
  1142. YY_RULE(int) yy_HtmlBlockType(GREG *G); /* 158 */
  1143. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G); /* 157 */
  1144. YY_RULE(int) yy_HtmlComment(GREG *G); /* 156 */
  1145. YY_RULE(int) yy_HtmlBlockInTags(GREG *G); /* 155 */
  1146. YY_RULE(int) yy_HtmlBlockHead(GREG *G); /* 154 */
  1147. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G); /* 153 */
  1148. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G); /* 152 */
  1149. YY_RULE(int) yy_HtmlBlockScript(GREG *G); /* 151 */
  1150. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G); /* 150 */
  1151. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G); /* 149 */
  1152. YY_RULE(int) yy_HtmlBlockTr(GREG *G); /* 148 */
  1153. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G); /* 147 */
  1154. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G); /* 146 */
  1155. YY_RULE(int) yy_HtmlBlockThead(GREG *G); /* 145 */
  1156. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G); /* 144 */
  1157. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G); /* 143 */
  1158. YY_RULE(int) yy_HtmlBlockTh(GREG *G); /* 142 */
  1159. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G); /* 141 */
  1160. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G); /* 140 */
  1161. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G); /* 139 */
  1162. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G); /* 138 */
  1163. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G); /* 137 */
  1164. YY_RULE(int) yy_HtmlBlockTd(GREG *G); /* 136 */
  1165. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G); /* 135 */
  1166. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G); /* 134 */
  1167. YY_RULE(int) yy_HtmlBlockTbody(GREG *G); /* 133 */
  1168. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G); /* 132 */
  1169. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G); /* 131 */
  1170. YY_RULE(int) yy_HtmlBlockLi(GREG *G); /* 130 */
  1171. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G); /* 129 */
  1172. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G); /* 128 */
  1173. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G); /* 127 */
  1174. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G); /* 126 */
  1175. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G); /* 125 */
  1176. YY_RULE(int) yy_HtmlBlockDt(GREG *G); /* 124 */
  1177. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G); /* 123 */
  1178. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G); /* 122 */
  1179. YY_RULE(int) yy_HtmlBlockDd(GREG *G); /* 121 */
  1180. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G); /* 120 */
  1181. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G); /* 119 */
  1182. YY_RULE(int) yy_HtmlBlockUl(GREG *G); /* 118 */
  1183. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G); /* 117 */
  1184. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G); /* 116 */
  1185. YY_RULE(int) yy_HtmlBlockTable(GREG *G); /* 115 */
  1186. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G); /* 114 */
  1187. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G); /* 113 */
  1188. YY_RULE(int) yy_HtmlBlockPre(GREG *G); /* 112 */
  1189. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G); /* 111 */
  1190. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G); /* 110 */
  1191. YY_RULE(int) yy_HtmlBlockP(GREG *G); /* 109 */
  1192. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G); /* 108 */
  1193. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G); /* 107 */
  1194. YY_RULE(int) yy_HtmlBlockOl(GREG *G); /* 106 */
  1195. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G); /* 105 */
  1196. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G); /* 104 */
  1197. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G); /* 103 */
  1198. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G); /* 102 */
  1199. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G); /* 101 */
  1200. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G); /* 100 */
  1201. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G); /* 99 */
  1202. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G); /* 98 */
  1203. YY_RULE(int) yy_HtmlBlockMenu(GREG *G); /* 97 */
  1204. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G); /* 96 */
  1205. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G); /* 95 */
  1206. YY_RULE(int) yy_HtmlBlockH6(GREG *G); /* 94 */
  1207. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G); /* 93 */
  1208. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G); /* 92 */
  1209. YY_RULE(int) yy_HtmlBlockH5(GREG *G); /* 91 */
  1210. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G); /* 90 */
  1211. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G); /* 89 */
  1212. YY_RULE(int) yy_HtmlBlockH4(GREG *G); /* 88 */
  1213. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G); /* 87 */
  1214. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G); /* 86 */
  1215. YY_RULE(int) yy_HtmlBlockH3(GREG *G); /* 85 */
  1216. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G); /* 84 */
  1217. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G); /* 83 */
  1218. YY_RULE(int) yy_HtmlBlockH2(GREG *G); /* 82 */
  1219. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G); /* 81 */
  1220. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G); /* 80 */
  1221. YY_RULE(int) yy_HtmlBlockH1(GREG *G); /* 79 */
  1222. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G); /* 78 */
  1223. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G); /* 77 */
  1224. YY_RULE(int) yy_HtmlBlockForm(GREG *G); /* 76 */
  1225. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G); /* 75 */
  1226. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G); /* 74 */
  1227. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G); /* 73 */
  1228. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G); /* 72 */
  1229. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G); /* 71 */
  1230. YY_RULE(int) yy_HtmlBlockDl(GREG *G); /* 70 */
  1231. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G); /* 69 */
  1232. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G); /* 68 */
  1233. YY_RULE(int) yy_HtmlBlockDiv(GREG *G); /* 67 */
  1234. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G); /* 66 */
  1235. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G); /* 65 */
  1236. YY_RULE(int) yy_HtmlBlockDir(GREG *G); /* 64 */
  1237. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G); /* 63 */
  1238. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G); /* 62 */
  1239. YY_RULE(int) yy_HtmlBlockCenter(GREG *G); /* 61 */
  1240. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G); /* 60 */
  1241. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G); /* 59 */
  1242. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G); /* 58 */
  1243. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G); /* 57 */
  1244. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G); /* 56 */
  1245. YY_RULE(int) yy_HtmlBlockAddress(GREG *G); /* 55 */
  1246. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G); /* 54 */
  1247. YY_RULE(int) yy_HtmlAttribute(GREG *G); /* 53 */
  1248. YY_RULE(int) yy_Spnl(GREG *G); /* 52 */
  1249. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G); /* 51 */
  1250. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G); /* 50 */
  1251. YY_RULE(int) yy_Indent(GREG *G); /* 49 */
  1252. YY_RULE(int) yy_ListBlockLine(GREG *G); /* 48 */
  1253. YY_RULE(int) yy_ListContinuationBlock(GREG *G); /* 47 */
  1254. YY_RULE(int) yy_ListBlock(GREG *G); /* 46 */
  1255. YY_RULE(int) yy_ListItem(GREG *G); /* 45 */
  1256. YY_RULE(int) yy_Enumerator(GREG *G); /* 44 */
  1257. YY_RULE(int) yy_ListItemTight(GREG *G); /* 43 */
  1258. YY_RULE(int) yy_ListLoose(GREG *G); /* 42 */
  1259. YY_RULE(int) yy_ListTight(GREG *G); /* 41 */
  1260. YY_RULE(int) yy_Spacechar(GREG *G); /* 40 */
  1261. YY_RULE(int) yy_Bullet(GREG *G); /* 39 */
  1262. YY_RULE(int) yy_VerbatimChunk(GREG *G); /* 38 */
  1263. YY_RULE(int) yy_IndentedLine(GREG *G); /* 37 */
  1264. YY_RULE(int) yy_NonblankIndentedLine(GREG *G); /* 36 */
  1265. YY_RULE(int) yy_Line(GREG *G); /* 35 */
  1266. YY_RULE(int) yy_StartList(GREG *G); /* 34 */
  1267. YY_RULE(int) yy_BlockQuoteRaw(GREG *G); /* 33 */
  1268. YY_RULE(int) yy_Endline(GREG *G); /* 32 */
  1269. YY_RULE(int) yy_RawLine(GREG *G); /* 31 */
  1270. YY_RULE(int) yy_SetextBottom2(GREG *G); /* 30 */
  1271. YY_RULE(int) yy_SetextBottom1(GREG *G); /* 29 */
  1272. YY_RULE(int) yy_SetextHeading2(GREG *G); /* 28 */
  1273. YY_RULE(int) yy_SetextHeading1(GREG *G); /* 27 */
  1274. YY_RULE(int) yy_SetextHeading(GREG *G); /* 26 */
  1275. YY_RULE(int) yy_Space(GREG *G); /* 25 */
  1276. YY_RULE(int) yy_AtxHeading(GREG *G); /* 24 */
  1277. YY_RULE(int) yy_AtxStart(GREG *G); /* 23 */
  1278. YY_RULE(int) yy_Inline(GREG *G); /* 22 */
  1279. YY_RULE(int) yy_Sp(GREG *G); /* 21 */
  1280. YY_RULE(int) yy_Newline(GREG *G); /* 20 */
  1281. YY_RULE(int) yy_AtxInline(GREG *G); /* 19 */
  1282. YY_RULE(int) yy_Inlines(GREG *G); /* 18 */
  1283. YY_RULE(int) yy_NonindentSpace(GREG *G); /* 17 */
  1284. YY_RULE(int) yy_Plain(GREG *G); /* 16 */
  1285. YY_RULE(int) yy_Para(GREG *G); /* 15 */
  1286. YY_RULE(int) yy_StyleBlock(GREG *G); /* 14 */
  1287. YY_RULE(int) yy_HtmlBlock(GREG *G); /* 13 */
  1288. YY_RULE(int) yy_BulletList(GREG *G); /* 12 */
  1289. YY_RULE(int) yy_OrderedList(GREG *G); /* 11 */
  1290. YY_RULE(int) yy_Heading(GREG *G); /* 10 */
  1291. YY_RULE(int) yy_HorizontalRule(GREG *G); /* 9 */
  1292. YY_RULE(int) yy_Reference(GREG *G); /* 8 */
  1293. YY_RULE(int) yy_Note(GREG *G); /* 7 */
  1294. YY_RULE(int) yy_Verbatim(GREG *G); /* 6 */
  1295. YY_RULE(int) yy_BlockQuote(GREG *G); /* 5 */
  1296. YY_RULE(int) yy_BlankLine(GREG *G); /* 4 */
  1297. YY_RULE(int) yy_LocMarker(GREG *G); /* 3 */
  1298. YY_RULE(int) yy_Block(GREG *G); /* 2 */
  1299. YY_RULE(int) yy_Doc(GREG *G); /* 1 */
  1300. YY_ACTION(void) yy_1_RawLine(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1301. {
  1302. yyprintf((stderr, "do yy_1_RawLine\n"));
  1303. yy = elem(pmh_RAW); ;
  1304. }
  1305. YY_ACTION(void) yy_1_Line(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1306. {
  1307. yyprintf((stderr, "do yy_1_Line\n"));
  1308. yy = mk_element((parser_data *)G->data, pmh_RAW, yy->pos, yy->end); ;
  1309. }
  1310. YY_ACTION(void) yy_1_StartList(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1311. {
  1312. yyprintf((stderr, "do yy_1_StartList\n"));
  1313. yy = NULL; ;
  1314. }
  1315. YY_ACTION(void) yy_1_HtmlComment(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1316. {
  1317. #define s G->val[-1]
  1318. yyprintf((stderr, "do yy_1_HtmlComment\n"));
  1319. ADD(elem_s(pmh_COMMENT)); ;
  1320. #undef s
  1321. }
  1322. YY_ACTION(void) yy_1_RawHtml(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1323. {
  1324. #define s G->val[-1]
  1325. yyprintf((stderr, "do yy_1_RawHtml\n"));
  1326. ADD(elem_s(pmh_HTML)); ;
  1327. #undef s
  1328. }
  1329. YY_ACTION(void) yy_1_Code(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1330. {
  1331. #define s G->val[-1]
  1332. yyprintf((stderr, "do yy_1_Code\n"));
  1333. ADD(elem_s(pmh_CODE)); ;
  1334. #undef s
  1335. }
  1336. YY_ACTION(void) yy_1_Ticks5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1337. {
  1338. yyprintf((stderr, "do yy_1_Ticks5\n"));
  1339. yy = elem(pmh_NO_TYPE); ;
  1340. }
  1341. YY_ACTION(void) yy_1_Ticks4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1342. {
  1343. yyprintf((stderr, "do yy_1_Ticks4\n"));
  1344. yy = elem(pmh_NO_TYPE); ;
  1345. }
  1346. YY_ACTION(void) yy_1_Ticks3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1347. {
  1348. yyprintf((stderr, "do yy_1_Ticks3\n"));
  1349. yy = elem(pmh_NO_TYPE); ;
  1350. }
  1351. YY_ACTION(void) yy_1_Ticks2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1352. {
  1353. yyprintf((stderr, "do yy_1_Ticks2\n"));
  1354. yy = elem(pmh_NO_TYPE); ;
  1355. }
  1356. YY_ACTION(void) yy_1_Ticks1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1357. {
  1358. yyprintf((stderr, "do yy_1_Ticks1\n"));
  1359. yy = elem(pmh_NO_TYPE); ;
  1360. }
  1361. YY_ACTION(void) yy_1_RefSrc(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1362. {
  1363. yyprintf((stderr, "do yy_1_RefSrc\n"));
  1364. yy = mk_notype; yy->address = COPY_YYTEXT_ORIG(); ;
  1365. }
  1366. YY_ACTION(void) yy_2_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1367. {
  1368. #define s G->val[-1]
  1369. yyprintf((stderr, "do yy_2_Label\n"));
  1370. s->pos = s->pos;
  1371. s->end = thunk->end;
  1372. yy = s;
  1373. ;
  1374. #undef s
  1375. }
  1376. YY_ACTION(void) yy_1_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1377. {
  1378. #define s G->val[-1]
  1379. yyprintf((stderr, "do yy_1_Label\n"));
  1380. s->label = COPY_YYTEXT_ORIG(); ;
  1381. #undef s
  1382. }
  1383. YY_ACTION(void) yy_1_Reference(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1384. {
  1385. #define r G->val[-1]
  1386. #define l G->val[-2]
  1387. #define s G->val[-3]
  1388. yyprintf((stderr, "do yy_1_Reference\n"));
  1389. pmh_realelement *el = elem_s(pmh_REFERENCE);
  1390. el->label = strdup_or_null(l->label);
  1391. el->address = strdup_or_null(r->address);
  1392. ADD(el);
  1393. FREE_LABEL(l);
  1394. FREE_ADDRESS(r);
  1395. ;
  1396. #undef r
  1397. #undef l
  1398. #undef s
  1399. }
  1400. YY_ACTION(void) yy_3_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1401. {
  1402. #define s G->val[-1]
  1403. yyprintf((stderr, "do yy_3_AutoLinkEmail\n"));
  1404. s->end = thunk->end;
  1405. ADD(s);
  1406. ;
  1407. #undef s
  1408. }
  1409. YY_ACTION(void) yy_2_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1410. {
  1411. #define s G->val[-1]
  1412. yyprintf((stderr, "do yy_2_AutoLinkEmail\n"));
  1413. s->address = COPY_YYTEXT_ORIG(); ;
  1414. #undef s
  1415. }
  1416. YY_ACTION(void) yy_1_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1417. {
  1418. #define s G->val[-1]
  1419. yyprintf((stderr, "do yy_1_AutoLinkEmail\n"));
  1420. s->type = pmh_AUTO_LINK_EMAIL; ;
  1421. #undef s
  1422. }
  1423. YY_ACTION(void) yy_3_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1424. {
  1425. #define s G->val[-1]
  1426. yyprintf((stderr, "do yy_3_AutoLinkUrl\n"));
  1427. s->end = thunk->end;
  1428. ADD(s);
  1429. ;
  1430. #undef s
  1431. }
  1432. YY_ACTION(void) yy_2_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1433. {
  1434. #define s G->val[-1]
  1435. yyprintf((stderr, "do yy_2_AutoLinkUrl\n"));
  1436. s->address = COPY_YYTEXT_ORIG(); ;
  1437. #undef s
  1438. }
  1439. YY_ACTION(void) yy_1_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1440. {
  1441. #define s G->val[-1]
  1442. yyprintf((stderr, "do yy_1_AutoLinkUrl\n"));
  1443. s->type = pmh_AUTO_LINK_URL; ;
  1444. #undef s
  1445. }
  1446. YY_ACTION(void) yy_3_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1447. {
  1448. yyprintf((stderr, "do yy_3_Source\n"));
  1449. yy->address = COPY_YYTEXT_ORIG(); ;
  1450. }
  1451. YY_ACTION(void) yy_2_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1452. {
  1453. yyprintf((stderr, "do yy_2_Source\n"));
  1454. yy->address = COPY_YYTEXT_ORIG(); ;
  1455. }
  1456. YY_ACTION(void) yy_1_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1457. {
  1458. yyprintf((stderr, "do yy_1_Source\n"));
  1459. yy = mk_notype; ;
  1460. }
  1461. YY_ACTION(void) yy_1_ExplicitLinkSize(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1462. {
  1463. #define l G->val[-1]
  1464. #define s G->val[-2]
  1465. yyprintf((stderr, "do yy_1_ExplicitLinkSize\n"));
  1466. yy = elem_s(pmh_LINK);
  1467. if (l->address != NULL)
  1468. yy->address = strdup_or_null(l->address);
  1469. FREE_LABEL(s);
  1470. FREE_ADDRESS(l);
  1471. ;
  1472. #undef l
  1473. #undef s
  1474. }
  1475. YY_ACTION(void) yy_1_ExplicitLink(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1476. {
  1477. #define l G->val[-1]
  1478. #define s G->val[-2]
  1479. yyprintf((stderr, "do yy_1_ExplicitLink\n"));
  1480. yy = elem_s(pmh_LINK);
  1481. if (l->address != NULL)
  1482. yy->address = strdup_or_null(l->address);
  1483. FREE_LABEL(s);
  1484. FREE_ADDRESS(l);
  1485. ;
  1486. #undef l
  1487. #undef s
  1488. }
  1489. YY_ACTION(void) yy_1_ReferenceLinkSingle(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1490. {
  1491. #define s G->val[-1]
  1492. yyprintf((stderr, "do yy_1_ReferenceLinkSingle\n"));
  1493. pmh_realelement *reference = GET_REF(s->label);
  1494. if (reference) {
  1495. yy = elem_s(pmh_LINK);
  1496. yy->label = strdup_or_null(s->label);
  1497. yy->address = strdup_or_null(reference->address);
  1498. } else
  1499. yy = NULL;
  1500. FREE_LABEL(s);
  1501. ;
  1502. #undef s
  1503. }
  1504. YY_ACTION(void) yy_1_ReferenceLinkDouble(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1505. {
  1506. #define l G->val[-1]
  1507. #define s G->val[-2]
  1508. yyprintf((stderr, "do yy_1_ReferenceLinkDouble\n"));
  1509. pmh_realelement *reference = GET_REF(l->label);
  1510. if (reference) {
  1511. yy = elem_s(pmh_LINK);
  1512. yy->label = strdup_or_null(l->label);
  1513. yy->address = strdup_or_null(reference->address);
  1514. } else
  1515. yy = NULL;
  1516. FREE_LABEL(s);
  1517. FREE_LABEL(l);
  1518. ;
  1519. #undef l
  1520. #undef s
  1521. }
  1522. YY_ACTION(void) yy_1_Link(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1523. {
  1524. yyprintf((stderr, "do yy_1_Link\n"));
  1525. if (yy) ADD(yy); ;
  1526. }
  1527. YY_ACTION(void) yy_1_Image(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1528. {
  1529. yyprintf((stderr, "do yy_1_Image\n"));
  1530. if (yy != NULL) {
  1531. yy->type = pmh_IMAGE;
  1532. yy->pos -= 1;
  1533. ADD(yy);
  1534. }
  1535. ;
  1536. }
  1537. YY_ACTION(void) yy_1_Strike(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1538. {
  1539. #define s G->val[-1]
  1540. yyprintf((stderr, "do yy_1_Strike\n"));
  1541. ADD(elem_s(pmh_STRIKE)); ;
  1542. #undef s
  1543. }
  1544. YY_ACTION(void) yy_1_StrongUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1545. {
  1546. #define s G->val[-1]
  1547. yyprintf((stderr, "do yy_1_StrongUl\n"));
  1548. ADD(elem_s(pmh_STRONG)); ;
  1549. #undef s
  1550. }
  1551. YY_ACTION(void) yy_1_StrongStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1552. {
  1553. #define s G->val[-1]
  1554. yyprintf((stderr, "do yy_1_StrongStar\n"));
  1555. ADD(elem_s(pmh_STRONG)); ;
  1556. #undef s
  1557. }
  1558. YY_ACTION(void) yy_1_EmphUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1559. {
  1560. #define s G->val[-1]
  1561. yyprintf((stderr, "do yy_1_EmphUl\n"));
  1562. ADD(elem_s(pmh_EMPH)); ;
  1563. #undef s
  1564. }
  1565. YY_ACTION(void) yy_1_EmphStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1566. {
  1567. #define s G->val[-1]
  1568. yyprintf((stderr, "do yy_1_EmphStar\n"));
  1569. ADD(elem_s(pmh_EMPH)); ;
  1570. #undef s
  1571. }
  1572. YY_ACTION(void) yy_1_Entity(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1573. {
  1574. #define s G->val[-1]
  1575. yyprintf((stderr, "do yy_1_Entity\n"));
  1576. ADD(elem_s(pmh_HTML_ENTITY)); ;
  1577. #undef s
  1578. }
  1579. YY_ACTION(void) yy_1_StyleBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1580. {
  1581. #define s G->val[-1]
  1582. yyprintf((stderr, "do yy_1_StyleBlock\n"));
  1583. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1584. #undef s
  1585. }
  1586. YY_ACTION(void) yy_1_HtmlBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1587. {
  1588. #define s G->val[-1]
  1589. yyprintf((stderr, "do yy_1_HtmlBlock\n"));
  1590. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1591. #undef s
  1592. }
  1593. YY_ACTION(void) yy_1_HtmlBlockH6(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1594. {
  1595. #define s G->val[-1]
  1596. yyprintf((stderr, "do yy_1_HtmlBlockH6\n"));
  1597. ADD(elem_s(pmh_H6)); ;
  1598. #undef s
  1599. }
  1600. YY_ACTION(void) yy_1_HtmlBlockH5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1601. {
  1602. #define s G->val[-1]
  1603. yyprintf((stderr, "do yy_1_HtmlBlockH5\n"));
  1604. ADD(elem_s(pmh_H5)); ;
  1605. #undef s
  1606. }
  1607. YY_ACTION(void) yy_1_HtmlBlockH4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1608. {
  1609. #define s G->val[-1]
  1610. yyprintf((stderr, "do yy_1_HtmlBlockH4\n"));
  1611. ADD(elem_s(pmh_H4)); ;
  1612. #undef s
  1613. }
  1614. YY_ACTION(void) yy_1_HtmlBlockH3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1615. {
  1616. #define s G->val[-1]
  1617. yyprintf((stderr, "do yy_1_HtmlBlockH3\n"));
  1618. ADD(elem_s(pmh_H3)); ;
  1619. #undef s
  1620. }
  1621. YY_ACTION(void) yy_1_HtmlBlockH2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1622. {
  1623. #define s G->val[-1]
  1624. yyprintf((stderr, "do yy_1_HtmlBlockH2\n"));
  1625. ADD(elem_s(pmh_H2)); ;
  1626. #undef s
  1627. }
  1628. YY_ACTION(void) yy_1_HtmlBlockH1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1629. {
  1630. #define s G->val[-1]
  1631. yyprintf((stderr, "do yy_1_HtmlBlockH1\n"));
  1632. ADD(elem_s(pmh_H1)); ;
  1633. #undef s
  1634. }
  1635. YY_ACTION(void) yy_1_Enumerator(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1636. {
  1637. yyprintf((stderr, "do yy_1_Enumerator\n"));
  1638. ADD(elem(pmh_LIST_ENUMERATOR)); ;
  1639. }
  1640. YY_ACTION(void) yy_3_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1641. {
  1642. #define a G->val[-1]
  1643. yyprintf((stderr, "do yy_3_ListContinuationBlock\n"));
  1644. yy = a; ;
  1645. #undef a
  1646. }
  1647. YY_ACTION(void) yy_2_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1648. {
  1649. #define a G->val[-1]
  1650. yyprintf((stderr, "do yy_2_ListContinuationBlock\n"));
  1651. a = cons(yy, a); ;
  1652. #undef a
  1653. }
  1654. YY_ACTION(void) yy_1_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1655. {
  1656. #define a G->val[-1]
  1657. yyprintf((stderr, "do yy_1_ListContinuationBlock\n"));
  1658. if (*yytext == '\0') /* if strlen(yytext) == 0 */
  1659. a = cons(elem(pmh_SEPARATOR), a);
  1660. else
  1661. a = cons(elem(pmh_RAW), a);
  1662. ;
  1663. #undef a
  1664. }
  1665. YY_ACTION(void) yy_3_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1666. {
  1667. #define a G->val[-1]
  1668. yyprintf((stderr, "do yy_3_ListBlock\n"));
  1669. yy = a; ;
  1670. #undef a
  1671. }
  1672. YY_ACTION(void) yy_2_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1673. {
  1674. #define a G->val[-1]
  1675. yyprintf((stderr, "do yy_2_ListBlock\n"));
  1676. a = cons(elem(pmh_RAW), a); ;
  1677. #undef a
  1678. }
  1679. YY_ACTION(void) yy_1_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1680. {
  1681. #define a G->val[-1]
  1682. yyprintf((stderr, "do yy_1_ListBlock\n"));
  1683. a = cons(yy, a); ;
  1684. #undef a
  1685. }
  1686. YY_ACTION(void) yy_3_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1687. {
  1688. #define a G->val[-1]
  1689. yyprintf((stderr, "do yy_3_ListItemTight\n"));
  1690. yy = a; ;
  1691. #undef a
  1692. }
  1693. YY_ACTION(void) yy_2_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1694. {
  1695. #define a G->val[-1]
  1696. yyprintf((stderr, "do yy_2_ListItemTight\n"));
  1697. a = cons(yy, a); ;
  1698. #undef a
  1699. }
  1700. YY_ACTION(void) yy_1_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1701. {
  1702. #define a G->val[-1]
  1703. yyprintf((stderr, "do yy_1_ListItemTight\n"));
  1704. a = cons(yy, a); ;
  1705. #undef a
  1706. }
  1707. YY_ACTION(void) yy_3_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1708. {
  1709. #define a G->val[-1]
  1710. yyprintf((stderr, "do yy_3_ListItem\n"));
  1711. yy = a; ;
  1712. #undef a
  1713. }
  1714. YY_ACTION(void) yy_2_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1715. {
  1716. #define a G->val[-1]
  1717. yyprintf((stderr, "do yy_2_ListItem\n"));
  1718. a = cons(yy, a); ;
  1719. #undef a
  1720. }
  1721. YY_ACTION(void) yy_1_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1722. {
  1723. #define a G->val[-1]
  1724. yyprintf((stderr, "do yy_1_ListItem\n"));
  1725. a = cons(yy, a); ;
  1726. #undef a
  1727. }
  1728. YY_ACTION(void) yy_2_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1729. {
  1730. #define b G->val[-1]
  1731. #define a G->val[-2]
  1732. yyprintf((stderr, "do yy_2_ListLoose\n"));
  1733. pmh_realelement *cur = a;
  1734. while (cur != NULL) {
  1735. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1736. rawlist->children = reverse(cur->children);
  1737. ADD(rawlist);
  1738. cur = cur->next;
  1739. }
  1740. ;
  1741. #undef b
  1742. #undef a
  1743. }
  1744. YY_ACTION(void) yy_1_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1745. {
  1746. #define b G->val[-1]
  1747. #define a G->val[-2]
  1748. yyprintf((stderr, "do yy_1_ListLoose\n"));
  1749. b = cons(etext("\n\n"), b); /* In loose list, \n\n added to end of each element */
  1750. pmh_realelement *el = mk_notype;
  1751. el->children = b;
  1752. a = cons(el, a);
  1753. ;
  1754. #undef b
  1755. #undef a
  1756. }
  1757. YY_ACTION(void) yy_2_ListTight(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_ListTight\n"));
  1761. pmh_realelement *cur = a;
  1762. while (cur != NULL) {
  1763. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1764. rawlist->children = reverse(cur->children);
  1765. ADD(rawlist);
  1766. cur = cur->next;
  1767. }
  1768. ;
  1769. #undef a
  1770. }
  1771. YY_ACTION(void) yy_1_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1772. {
  1773. #define a G->val[-1]
  1774. yyprintf((stderr, "do yy_1_ListTight\n"));
  1775. pmh_realelement *el = mk_notype;
  1776. el->children = yy;
  1777. a = cons(el, a);
  1778. ;
  1779. #undef a
  1780. }
  1781. YY_ACTION(void) yy_1_Bullet(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1782. {
  1783. yyprintf((stderr, "do yy_1_Bullet\n"));
  1784. ADD(elem(pmh_LIST_BULLET)); ;
  1785. }
  1786. YY_ACTION(void) yy_1_HorizontalRule(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1787. {
  1788. yyprintf((stderr, "do yy_1_HorizontalRule\n"));
  1789. ADD(elem(pmh_HRULE)); ;
  1790. }
  1791. YY_ACTION(void) yy_1_Verbatim(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1792. {
  1793. #define s G->val[-1]
  1794. yyprintf((stderr, "do yy_1_Verbatim\n"));
  1795. ADD(elem_s(pmh_VERBATIM)); ;
  1796. #undef s
  1797. }
  1798. YY_ACTION(void) yy_5_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1799. {
  1800. #define a G->val[-1]
  1801. yyprintf((stderr, "do yy_5_BlockQuoteRaw\n"));
  1802. yy = a; ;
  1803. #undef a
  1804. }
  1805. YY_ACTION(void) yy_4_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1806. {
  1807. #define a G->val[-1]
  1808. yyprintf((stderr, "do yy_4_BlockQuoteRaw\n"));
  1809. a = cons(etext("\n"), a); ;
  1810. #undef a
  1811. }
  1812. YY_ACTION(void) yy_3_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1813. {
  1814. #define a G->val[-1]
  1815. yyprintf((stderr, "do yy_3_BlockQuoteRaw\n"));
  1816. a = cons(yy, a); ;
  1817. #undef a
  1818. }
  1819. YY_ACTION(void) yy_2_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1820. {
  1821. #define a G->val[-1]
  1822. yyprintf((stderr, "do yy_2_BlockQuoteRaw\n"));
  1823. a = cons(yy, a); ;
  1824. #undef a
  1825. }
  1826. YY_ACTION(void) yy_1_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1827. {
  1828. #define a G->val[-1]
  1829. yyprintf((stderr, "do yy_1_BlockQuoteRaw\n"));
  1830. ADD(elem(pmh_BLOCKQUOTE)); ;
  1831. #undef a
  1832. }
  1833. YY_ACTION(void) yy_1_BlockQuote(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1834. {
  1835. #define a G->val[-1]
  1836. yyprintf((stderr, "do yy_1_BlockQuote\n"));
  1837. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1838. rawlist->children = reverse(a);
  1839. ADD(rawlist);
  1840. ;
  1841. #undef a
  1842. }
  1843. YY_ACTION(void) yy_1_SetextHeading2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1844. {
  1845. #define s G->val[-1]
  1846. yyprintf((stderr, "do yy_1_SetextHeading2\n"));
  1847. ADD(elem_s(pmh_H2)); ;
  1848. #undef s
  1849. }
  1850. YY_ACTION(void) yy_1_SetextHeading1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1851. {
  1852. #define s G->val[-1]
  1853. yyprintf((stderr, "do yy_1_SetextHeading1\n"));
  1854. ADD(elem_s(pmh_H1)); ;
  1855. #undef s
  1856. }
  1857. YY_ACTION(void) yy_1_AtxHeading(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1858. {
  1859. #define s G->val[-1]
  1860. yyprintf((stderr, "do yy_1_AtxHeading\n"));
  1861. ADD(elem_s(s->type)); ;
  1862. #undef s
  1863. }
  1864. YY_ACTION(void) yy_1_AtxStart(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1865. {
  1866. yyprintf((stderr, "do yy_1_AtxStart\n"));
  1867. yy = elem((pmh_element_type)(pmh_H1 + (strlen(yytext) - 1))); ;
  1868. }
  1869. YY_ACTION(void) yy_1_LocMarker(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1870. {
  1871. yyprintf((stderr, "do yy_1_LocMarker\n"));
  1872. yy = elem(pmh_NO_TYPE); ;
  1873. }
  1874. YY_RULE(int) yy_RawNoteBlock(GREG *G)
  1875. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1876. yyprintf((stderr, "%s\n", "RawNoteBlock"));
  1877. { int yypos4= G->pos, yythunkpos4= G->thunkpos; if (!yy_BlankLine(G)) { goto l4; } goto l1;
  1878. l4:; G->pos= yypos4; G->thunkpos= yythunkpos4;
  1879. } if (!yy_OptionallyIndentedLine(G)) { goto l1; }
  1880. l2:;
  1881. { int yypos3= G->pos, yythunkpos3= G->thunkpos;
  1882. { int yypos5= G->pos, yythunkpos5= G->thunkpos; if (!yy_BlankLine(G)) { goto l5; } goto l3;
  1883. l5:; G->pos= yypos5; G->thunkpos= yythunkpos5;
  1884. } if (!yy_OptionallyIndentedLine(G)) { goto l3; } goto l2;
  1885. l3:; G->pos= yypos3; G->thunkpos= yythunkpos3;
  1886. }
  1887. l6:;
  1888. { int yypos7= G->pos, yythunkpos7= G->thunkpos; if (!yy_BlankLine(G)) { goto l7; } goto l6;
  1889. l7:; G->pos= yypos7; G->thunkpos= yythunkpos7;
  1890. }
  1891. yyprintf((stderr, " ok %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  1892. return 1;
  1893. l1:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1894. yyprintf((stderr, " fail %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  1895. return 0;
  1896. }
  1897. YY_RULE(int) yy_RawNoteReference(GREG *G)
  1898. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1899. yyprintf((stderr, "%s\n", "RawNoteReference")); if (!yymatchString(G, "[^")) goto l8;
  1900. { int yypos11= G->pos, yythunkpos11= G->thunkpos; if (!yy_Newline(G)) { goto l11; } goto l8;
  1901. l11:; G->pos= yypos11; G->thunkpos= yythunkpos11;
  1902. }
  1903. { int yypos12= G->pos, yythunkpos12= G->thunkpos; if (!yymatchChar(G, ']')) goto l12; goto l8;
  1904. l12:; G->pos= yypos12; G->thunkpos= yythunkpos12;
  1905. } if (!yymatchDot(G)) goto l8;
  1906. l9:;
  1907. { int yypos10= G->pos, yythunkpos10= G->thunkpos;
  1908. { int yypos13= G->pos, yythunkpos13= G->thunkpos; if (!yy_Newline(G)) { goto l13; } goto l10;
  1909. l13:; G->pos= yypos13; G->thunkpos= yythunkpos13;
  1910. }
  1911. { int yypos14= G->pos, yythunkpos14= G->thunkpos; if (!yymatchChar(G, ']')) goto l14; goto l10;
  1912. l14:; G->pos= yypos14; G->thunkpos= yythunkpos14;
  1913. } if (!yymatchDot(G)) goto l10; goto l9;
  1914. l10:; G->pos= yypos10; G->thunkpos= yythunkpos10;
  1915. } if (!yymatchChar(G, ']')) goto l8;
  1916. yyprintf((stderr, " ok %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  1917. return 1;
  1918. l8:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1919. yyprintf((stderr, " fail %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  1920. return 0;
  1921. }
  1922. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G)
  1923. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1924. yyprintf((stderr, "%s\n", "ExtendedSpecialChar")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l15; if (!yymatchChar(G, '^')) goto l15;
  1925. yyprintf((stderr, " ok %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  1926. return 1;
  1927. l15:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1928. yyprintf((stderr, " fail %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  1929. return 0;
  1930. }
  1931. YY_RULE(int) yy_AlphanumericAscii(GREG *G)
  1932. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1933. yyprintf((stderr, "%s\n", "AlphanumericAscii")); if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l16;
  1934. yyprintf((stderr, " ok %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  1935. return 1;
  1936. l16:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1937. yyprintf((stderr, " fail %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  1938. return 0;
  1939. }
  1940. YY_RULE(int) yy_Quoted(GREG *G)
  1941. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1942. yyprintf((stderr, "%s\n", "Quoted"));
  1943. { int yypos18= G->pos, yythunkpos18= G->thunkpos; if (!yymatchChar(G, '"')) goto l19;
  1944. l20:;
  1945. { int yypos21= G->pos, yythunkpos21= G->thunkpos;
  1946. { int yypos22= G->pos, yythunkpos22= G->thunkpos; if (!yymatchChar(G, '"')) goto l22; goto l21;
  1947. l22:; G->pos= yypos22; G->thunkpos= yythunkpos22;
  1948. } if (!yymatchDot(G)) goto l21; goto l20;
  1949. l21:; G->pos= yypos21; G->thunkpos= yythunkpos21;
  1950. } if (!yymatchChar(G, '"')) goto l19; goto l18;
  1951. l19:; G->pos= yypos18; G->thunkpos= yythunkpos18; if (!yymatchChar(G, '\'')) goto l17;
  1952. l23:;
  1953. { int yypos24= G->pos, yythunkpos24= G->thunkpos;
  1954. { int yypos25= G->pos, yythunkpos25= G->thunkpos; if (!yymatchChar(G, '\'')) goto l25; goto l24;
  1955. l25:; G->pos= yypos25; G->thunkpos= yythunkpos25;
  1956. } if (!yymatchDot(G)) goto l24; goto l23;
  1957. l24:; G->pos= yypos24; G->thunkpos= yythunkpos24;
  1958. } if (!yymatchChar(G, '\'')) goto l17;
  1959. }
  1960. l18:;
  1961. yyprintf((stderr, " ok %s @ %s\n", "Quoted", G->buf+G->pos));
  1962. return 1;
  1963. l17:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1964. yyprintf((stderr, " fail %s @ %s\n", "Quoted", G->buf+G->pos));
  1965. return 0;
  1966. }
  1967. YY_RULE(int) yy_HtmlTag(GREG *G)
  1968. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1969. yyprintf((stderr, "%s\n", "HtmlTag")); if (!yymatchChar(G, '<')) goto l26; if (!yy_Spnl(G)) { goto l26; }
  1970. { int yypos27= G->pos, yythunkpos27= G->thunkpos; if (!yymatchChar(G, '/')) goto l27; goto l28;
  1971. l27:; G->pos= yypos27; G->thunkpos= yythunkpos27;
  1972. }
  1973. l28:; if (!yy_AlphanumericAscii(G)) { goto l26; }
  1974. l29:;
  1975. { int yypos30= G->pos, yythunkpos30= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l30; } goto l29;
  1976. l30:; G->pos= yypos30; G->thunkpos= yythunkpos30;
  1977. } if (!yy_Spnl(G)) { goto l26; }
  1978. l31:;
  1979. { int yypos32= G->pos, yythunkpos32= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l32; } goto l31;
  1980. l32:; G->pos= yypos32; G->thunkpos= yythunkpos32;
  1981. }
  1982. { int yypos33= G->pos, yythunkpos33= G->thunkpos; if (!yymatchChar(G, '/')) goto l33; goto l34;
  1983. l33:; G->pos= yypos33; G->thunkpos= yythunkpos33;
  1984. }
  1985. l34:; if (!yy_Spnl(G)) { goto l26; } if (!yymatchChar(G, '>')) goto l26;
  1986. yyprintf((stderr, " ok %s @ %s\n", "HtmlTag", G->buf+G->pos));
  1987. return 1;
  1988. l26:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1989. yyprintf((stderr, " fail %s @ %s\n", "HtmlTag", G->buf+G->pos));
  1990. return 0;
  1991. }
  1992. YY_RULE(int) yy_Ticks5(GREG *G)
  1993. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1994. yyprintf((stderr, "%s\n", "Ticks5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l35; if (!yymatchString(G, "`````")) goto l35; yyText(G, G->begin, G->end); if (!(YY_END)) goto l35;
  1995. { int yypos36= G->pos, yythunkpos36= G->thunkpos; if (!yymatchChar(G, '`')) goto l36; goto l35;
  1996. l36:; G->pos= yypos36; G->thunkpos= yythunkpos36;
  1997. } yyDo(G, yy_1_Ticks5, G->begin, G->end);
  1998. yyprintf((stderr, " ok %s @ %s\n", "Ticks5", G->buf+G->pos));
  1999. return 1;
  2000. l35:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2001. yyprintf((stderr, " fail %s @ %s\n", "Ticks5", G->buf+G->pos));
  2002. return 0;
  2003. }
  2004. YY_RULE(int) yy_Ticks4(GREG *G)
  2005. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2006. yyprintf((stderr, "%s\n", "Ticks4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l37; if (!yymatchString(G, "````")) goto l37; yyText(G, G->begin, G->end); if (!(YY_END)) goto l37;
  2007. { int yypos38= G->pos, yythunkpos38= G->thunkpos; if (!yymatchChar(G, '`')) goto l38; goto l37;
  2008. l38:; G->pos= yypos38; G->thunkpos= yythunkpos38;
  2009. } yyDo(G, yy_1_Ticks4, G->begin, G->end);
  2010. yyprintf((stderr, " ok %s @ %s\n", "Ticks4", G->buf+G->pos));
  2011. return 1;
  2012. l37:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2013. yyprintf((stderr, " fail %s @ %s\n", "Ticks4", G->buf+G->pos));
  2014. return 0;
  2015. }
  2016. YY_RULE(int) yy_Ticks3(GREG *G)
  2017. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2018. yyprintf((stderr, "%s\n", "Ticks3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l39; if (!yymatchString(G, "```")) goto l39; yyText(G, G->begin, G->end); if (!(YY_END)) goto l39;
  2019. { int yypos40= G->pos, yythunkpos40= G->thunkpos; if (!yymatchChar(G, '`')) goto l40; goto l39;
  2020. l40:; G->pos= yypos40; G->thunkpos= yythunkpos40;
  2021. } yyDo(G, yy_1_Ticks3, G->begin, G->end);
  2022. yyprintf((stderr, " ok %s @ %s\n", "Ticks3", G->buf+G->pos));
  2023. return 1;
  2024. l39:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2025. yyprintf((stderr, " fail %s @ %s\n", "Ticks3", G->buf+G->pos));
  2026. return 0;
  2027. }
  2028. YY_RULE(int) yy_Ticks2(GREG *G)
  2029. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2030. yyprintf((stderr, "%s\n", "Ticks2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l41; if (!yymatchString(G, "``")) goto l41; yyText(G, G->begin, G->end); if (!(YY_END)) goto l41;
  2031. { int yypos42= G->pos, yythunkpos42= G->thunkpos; if (!yymatchChar(G, '`')) goto l42; goto l41;
  2032. l42:; G->pos= yypos42; G->thunkpos= yythunkpos42;
  2033. } yyDo(G, yy_1_Ticks2, G->begin, G->end);
  2034. yyprintf((stderr, " ok %s @ %s\n", "Ticks2", G->buf+G->pos));
  2035. return 1;
  2036. l41:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2037. yyprintf((stderr, " fail %s @ %s\n", "Ticks2", G->buf+G->pos));
  2038. return 0;
  2039. }
  2040. YY_RULE(int) yy_Ticks1(GREG *G)
  2041. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2042. yyprintf((stderr, "%s\n", "Ticks1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l43; if (!yymatchChar(G, '`')) goto l43; yyText(G, G->begin, G->end); if (!(YY_END)) goto l43;
  2043. { int yypos44= G->pos, yythunkpos44= G->thunkpos; if (!yymatchChar(G, '`')) goto l44; goto l43;
  2044. l44:; G->pos= yypos44; G->thunkpos= yythunkpos44;
  2045. } yyDo(G, yy_1_Ticks1, G->begin, G->end);
  2046. yyprintf((stderr, " ok %s @ %s\n", "Ticks1", G->buf+G->pos));
  2047. return 1;
  2048. l43:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2049. yyprintf((stderr, " fail %s @ %s\n", "Ticks1", G->buf+G->pos));
  2050. return 0;
  2051. }
  2052. YY_RULE(int) yy_SkipBlock(GREG *G)
  2053. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2054. yyprintf((stderr, "%s\n", "SkipBlock"));
  2055. { int yypos46= G->pos, yythunkpos46= G->thunkpos;
  2056. { int yypos50= G->pos, yythunkpos50= G->thunkpos; if (!yy_BlankLine(G)) { goto l50; } goto l47;
  2057. l50:; G->pos= yypos50; G->thunkpos= yythunkpos50;
  2058. } if (!yy_RawLine(G)) { goto l47; }
  2059. l48:;
  2060. { int yypos49= G->pos, yythunkpos49= G->thunkpos;
  2061. { int yypos51= G->pos, yythunkpos51= G->thunkpos; if (!yy_BlankLine(G)) { goto l51; } goto l49;
  2062. l51:; G->pos= yypos51; G->thunkpos= yythunkpos51;
  2063. } if (!yy_RawLine(G)) { goto l49; } goto l48;
  2064. l49:; G->pos= yypos49; G->thunkpos= yythunkpos49;
  2065. }
  2066. l52:;
  2067. { int yypos53= G->pos, yythunkpos53= G->thunkpos; if (!yy_BlankLine(G)) { goto l53; } goto l52;
  2068. l53:; G->pos= yypos53; G->thunkpos= yythunkpos53;
  2069. } goto l46;
  2070. l47:; G->pos= yypos46; G->thunkpos= yythunkpos46; if (!yy_BlankLine(G)) { goto l45; }
  2071. l54:;
  2072. { int yypos55= G->pos, yythunkpos55= G->thunkpos; if (!yy_BlankLine(G)) { goto l55; } goto l54;
  2073. l55:; G->pos= yypos55; G->thunkpos= yythunkpos55;
  2074. }
  2075. }
  2076. l46:;
  2077. yyprintf((stderr, " ok %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2078. return 1;
  2079. l45:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2080. yyprintf((stderr, " fail %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2081. return 0;
  2082. }
  2083. YY_RULE(int) yy_References(GREG *G)
  2084. {
  2085. yyprintf((stderr, "%s\n", "References"));
  2086. l57:;
  2087. { int yypos58= G->pos, yythunkpos58= G->thunkpos;
  2088. { int yypos59= G->pos, yythunkpos59= G->thunkpos; if (!yy_Reference(G)) { goto l60; } goto l59;
  2089. l60:; G->pos= yypos59; G->thunkpos= yythunkpos59; if (!yy_SkipBlock(G)) { goto l58; }
  2090. }
  2091. l59:; goto l57;
  2092. l58:; G->pos= yypos58; G->thunkpos= yythunkpos58;
  2093. }
  2094. yyprintf((stderr, " ok %s @ %s\n", "References", G->buf+G->pos));
  2095. return 1;
  2096. }
  2097. YY_RULE(int) yy_EmptyTitle(GREG *G)
  2098. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2099. yyprintf((stderr, "%s\n", "EmptyTitle")); if (!yymatchString(G, "")) goto l61;
  2100. yyprintf((stderr, " ok %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2101. return 1;
  2102. l61:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2103. yyprintf((stderr, " fail %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2104. return 0;
  2105. }
  2106. YY_RULE(int) yy_RefTitleParens(GREG *G)
  2107. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2108. yyprintf((stderr, "%s\n", "RefTitleParens")); if (!yy_Spnl(G)) { goto l62; } if (!yymatchChar(G, '(')) goto l62;
  2109. l63:;
  2110. { int yypos64= G->pos, yythunkpos64= G->thunkpos;
  2111. { int yypos65= G->pos, yythunkpos65= G->thunkpos;
  2112. { int yypos66= G->pos, yythunkpos66= G->thunkpos; if (!yymatchChar(G, ')')) goto l67; if (!yy_Sp(G)) { goto l67; } if (!yy_Newline(G)) { goto l67; } goto l66;
  2113. l67:; G->pos= yypos66; G->thunkpos= yythunkpos66; if (!yy_Newline(G)) { goto l65; }
  2114. }
  2115. l66:; goto l64;
  2116. l65:; G->pos= yypos65; G->thunkpos= yythunkpos65;
  2117. } if (!yymatchDot(G)) goto l64; goto l63;
  2118. l64:; G->pos= yypos64; G->thunkpos= yythunkpos64;
  2119. } if (!yymatchChar(G, ')')) goto l62;
  2120. yyprintf((stderr, " ok %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2121. return 1;
  2122. l62:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2123. yyprintf((stderr, " fail %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2124. return 0;
  2125. }
  2126. YY_RULE(int) yy_RefTitleDouble(GREG *G)
  2127. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2128. yyprintf((stderr, "%s\n", "RefTitleDouble")); if (!yy_Spnl(G)) { goto l68; } if (!yymatchChar(G, '"')) goto l68;
  2129. l69:;
  2130. { int yypos70= G->pos, yythunkpos70= G->thunkpos;
  2131. { int yypos71= G->pos, yythunkpos71= G->thunkpos;
  2132. { int yypos72= G->pos, yythunkpos72= G->thunkpos; if (!yymatchChar(G, '"')) goto l73; if (!yy_Sp(G)) { goto l73; } if (!yy_Newline(G)) { goto l73; } goto l72;
  2133. l73:; G->pos= yypos72; G->thunkpos= yythunkpos72; if (!yy_Newline(G)) { goto l71; }
  2134. }
  2135. l72:; goto l70;
  2136. l71:; G->pos= yypos71; G->thunkpos= yythunkpos71;
  2137. } if (!yymatchDot(G)) goto l70; goto l69;
  2138. l70:; G->pos= yypos70; G->thunkpos= yythunkpos70;
  2139. } if (!yymatchChar(G, '"')) goto l68;
  2140. yyprintf((stderr, " ok %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2141. return 1;
  2142. l68:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2143. yyprintf((stderr, " fail %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2144. return 0;
  2145. }
  2146. YY_RULE(int) yy_RefTitleSingle(GREG *G)
  2147. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2148. yyprintf((stderr, "%s\n", "RefTitleSingle")); if (!yy_Spnl(G)) { goto l74; } if (!yymatchChar(G, '\'')) goto l74;
  2149. l75:;
  2150. { int yypos76= G->pos, yythunkpos76= G->thunkpos;
  2151. { int yypos77= G->pos, yythunkpos77= G->thunkpos;
  2152. { int yypos78= G->pos, yythunkpos78= G->thunkpos; if (!yymatchChar(G, '\'')) goto l79; if (!yy_Sp(G)) { goto l79; } if (!yy_Newline(G)) { goto l79; } goto l78;
  2153. l79:; G->pos= yypos78; G->thunkpos= yythunkpos78; if (!yy_Newline(G)) { goto l77; }
  2154. }
  2155. l78:; goto l76;
  2156. l77:; G->pos= yypos77; G->thunkpos= yythunkpos77;
  2157. } if (!yymatchDot(G)) goto l76; goto l75;
  2158. l76:; G->pos= yypos76; G->thunkpos= yythunkpos76;
  2159. } if (!yymatchChar(G, '\'')) goto l74;
  2160. yyprintf((stderr, " ok %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2161. return 1;
  2162. l74:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2163. yyprintf((stderr, " fail %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2164. return 0;
  2165. }
  2166. YY_RULE(int) yy_RefTitle(GREG *G)
  2167. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2168. yyprintf((stderr, "%s\n", "RefTitle"));
  2169. { int yypos81= G->pos, yythunkpos81= G->thunkpos; if (!yy_RefTitleSingle(G)) { goto l82; } goto l81;
  2170. l82:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_RefTitleDouble(G)) { goto l83; } goto l81;
  2171. l83:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_RefTitleParens(G)) { goto l84; } goto l81;
  2172. l84:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_EmptyTitle(G)) { goto l80; }
  2173. }
  2174. l81:;
  2175. yyprintf((stderr, " ok %s @ %s\n", "RefTitle", G->buf+G->pos));
  2176. return 1;
  2177. l80:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2178. yyprintf((stderr, " fail %s @ %s\n", "RefTitle", G->buf+G->pos));
  2179. return 0;
  2180. }
  2181. YY_RULE(int) yy_RefSrc(GREG *G)
  2182. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2183. yyprintf((stderr, "%s\n", "RefSrc")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l85; if (!yy_Nonspacechar(G)) { goto l85; }
  2184. l86:;
  2185. { int yypos87= G->pos, yythunkpos87= G->thunkpos; if (!yy_Nonspacechar(G)) { goto l87; } goto l86;
  2186. l87:; G->pos= yypos87; G->thunkpos= yythunkpos87;
  2187. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l85; yyDo(G, yy_1_RefSrc, G->begin, G->end);
  2188. yyprintf((stderr, " ok %s @ %s\n", "RefSrc", G->buf+G->pos));
  2189. return 1;
  2190. l85:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2191. yyprintf((stderr, " fail %s @ %s\n", "RefSrc", G->buf+G->pos));
  2192. return 0;
  2193. }
  2194. YY_RULE(int) yy_AutoLinkEmail(GREG *G)
  2195. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2196. yyprintf((stderr, "%s\n", "AutoLinkEmail")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l88; if (!yy_LocMarker(G)) { goto l88; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '<')) goto l88;
  2197. { int yypos89= G->pos, yythunkpos89= G->thunkpos; if (!yymatchString(G, "mailto:")) goto l89; goto l90;
  2198. l89:; G->pos= yypos89; G->thunkpos= yythunkpos89;
  2199. }
  2200. l90:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l88; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\062\350\377\003\376\377\377\207\376\377\377\107\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l88;
  2201. l91:;
  2202. { int yypos92= G->pos, yythunkpos92= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\062\350\377\003\376\377\377\207\376\377\377\107\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l92; goto l91;
  2203. l92:; G->pos= yypos92; G->thunkpos= yythunkpos92;
  2204. } if (!yymatchChar(G, '@')) goto l88;
  2205. { int yypos95= G->pos, yythunkpos95= G->thunkpos; if (!yy_Newline(G)) { goto l95; } goto l88;
  2206. l95:; G->pos= yypos95; G->thunkpos= yythunkpos95;
  2207. }
  2208. { int yypos96= G->pos, yythunkpos96= G->thunkpos; if (!yymatchChar(G, '>')) goto l96; goto l88;
  2209. l96:; G->pos= yypos96; G->thunkpos= yythunkpos96;
  2210. } if (!yymatchDot(G)) goto l88;
  2211. l93:;
  2212. { int yypos94= G->pos, yythunkpos94= G->thunkpos;
  2213. { int yypos97= G->pos, yythunkpos97= G->thunkpos; if (!yy_Newline(G)) { goto l97; } goto l94;
  2214. l97:; G->pos= yypos97; G->thunkpos= yythunkpos97;
  2215. }
  2216. { int yypos98= G->pos, yythunkpos98= G->thunkpos; if (!yymatchChar(G, '>')) goto l98; goto l94;
  2217. l98:; G->pos= yypos98; G->thunkpos= yythunkpos98;
  2218. } if (!yymatchDot(G)) goto l94; goto l93;
  2219. l94:; G->pos= yypos94; G->thunkpos= yythunkpos94;
  2220. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l88; yyDo(G, yy_2_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '>')) goto l88; yyText(G, G->begin, G->end); if (!(YY_END)) goto l88; yyDo(G, yy_3_AutoLinkEmail, G->begin, G->end);
  2221. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkEmail", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2222. return 1;
  2223. l88:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2224. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkEmail", G->buf+G->pos));
  2225. return 0;
  2226. }
  2227. YY_RULE(int) yy_AutoLinkUrl(GREG *G)
  2228. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2229. yyprintf((stderr, "%s\n", "AutoLinkUrl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l99; if (!yy_LocMarker(G)) { goto l99; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '<')) goto l99; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l99; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l99;
  2230. l100:;
  2231. { int yypos101= G->pos, yythunkpos101= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l101; goto l100;
  2232. l101:; G->pos= yypos101; G->thunkpos= yythunkpos101;
  2233. } if (!yymatchString(G, "://")) goto l99;
  2234. { int yypos104= G->pos, yythunkpos104= G->thunkpos; if (!yy_Newline(G)) { goto l104; } goto l99;
  2235. l104:; G->pos= yypos104; G->thunkpos= yythunkpos104;
  2236. }
  2237. { int yypos105= G->pos, yythunkpos105= G->thunkpos; if (!yymatchChar(G, '>')) goto l105; goto l99;
  2238. l105:; G->pos= yypos105; G->thunkpos= yythunkpos105;
  2239. } if (!yymatchDot(G)) goto l99;
  2240. l102:;
  2241. { int yypos103= G->pos, yythunkpos103= G->thunkpos;
  2242. { int yypos106= G->pos, yythunkpos106= G->thunkpos; if (!yy_Newline(G)) { goto l106; } goto l103;
  2243. l106:; G->pos= yypos106; G->thunkpos= yythunkpos106;
  2244. }
  2245. { int yypos107= G->pos, yythunkpos107= G->thunkpos; if (!yymatchChar(G, '>')) goto l107; goto l103;
  2246. l107:; G->pos= yypos107; G->thunkpos= yythunkpos107;
  2247. } if (!yymatchDot(G)) goto l103; goto l102;
  2248. l103:; G->pos= yypos103; G->thunkpos= yythunkpos103;
  2249. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l99; yyDo(G, yy_2_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '>')) goto l99; yyText(G, G->begin, G->end); if (!(YY_END)) goto l99; yyDo(G, yy_3_AutoLinkUrl, G->begin, G->end);
  2250. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkUrl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2251. return 1;
  2252. l99:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2253. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkUrl", G->buf+G->pos));
  2254. return 0;
  2255. }
  2256. YY_RULE(int) yy_ImageSizeHeight(GREG *G)
  2257. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2258. yyprintf((stderr, "%s\n", "ImageSizeHeight")); if (!yymatchString(G, "=x")) goto l108; 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 l108;
  2259. l109:;
  2260. { int yypos110= G->pos, yythunkpos110= 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 l110; goto l109;
  2261. l110:; G->pos= yypos110; G->thunkpos= yythunkpos110;
  2262. }
  2263. yyprintf((stderr, " ok %s @ %s\n", "ImageSizeHeight", G->buf+G->pos));
  2264. return 1;
  2265. l108:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2266. yyprintf((stderr, " fail %s @ %s\n", "ImageSizeHeight", G->buf+G->pos));
  2267. return 0;
  2268. }
  2269. YY_RULE(int) yy_ImageSizeWidth(GREG *G)
  2270. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2271. yyprintf((stderr, "%s\n", "ImageSizeWidth")); if (!yymatchChar(G, '=')) goto l111; 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 l111;
  2272. l112:;
  2273. { int yypos113= G->pos, yythunkpos113= 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 l113; goto l112;
  2274. l113:; G->pos= yypos113; G->thunkpos= yythunkpos113;
  2275. } if (!yymatchChar(G, 'x')) goto l111;
  2276. yyprintf((stderr, " ok %s @ %s\n", "ImageSizeWidth", G->buf+G->pos));
  2277. return 1;
  2278. l111:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2279. yyprintf((stderr, " fail %s @ %s\n", "ImageSizeWidth", G->buf+G->pos));
  2280. return 0;
  2281. }
  2282. YY_RULE(int) yy_ImageSizeComplete(GREG *G)
  2283. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2284. yyprintf((stderr, "%s\n", "ImageSizeComplete")); if (!yymatchChar(G, '=')) goto l114; 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 l114;
  2285. l115:;
  2286. { int yypos116= G->pos, yythunkpos116= 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 l116; goto l115;
  2287. l116:; G->pos= yypos116; G->thunkpos= yythunkpos116;
  2288. } if (!yymatchChar(G, 'x')) goto l114; 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 l114;
  2289. l117:;
  2290. { int yypos118= G->pos, yythunkpos118= 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 l118; goto l117;
  2291. l118:; G->pos= yypos118; G->thunkpos= yythunkpos118;
  2292. }
  2293. yyprintf((stderr, " ok %s @ %s\n", "ImageSizeComplete", G->buf+G->pos));
  2294. return 1;
  2295. l114:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2296. yyprintf((stderr, " fail %s @ %s\n", "ImageSizeComplete", G->buf+G->pos));
  2297. return 0;
  2298. }
  2299. YY_RULE(int) yy_TitleDoubleExt(GREG *G)
  2300. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2301. yyprintf((stderr, "%s\n", "TitleDoubleExt")); if (!yymatchChar(G, '"')) goto l119;
  2302. l120:;
  2303. { int yypos121= G->pos, yythunkpos121= G->thunkpos;
  2304. { int yypos122= G->pos, yythunkpos122= G->thunkpos;
  2305. { int yypos123= G->pos, yythunkpos123= G->thunkpos; if (!yymatchChar(G, '"')) goto l124; goto l123;
  2306. l124:; G->pos= yypos123; G->thunkpos= yythunkpos123; if (!yy_Newline(G)) { goto l122; }
  2307. }
  2308. l123:; goto l121;
  2309. l122:; G->pos= yypos122; G->thunkpos= yythunkpos122;
  2310. } if (!yymatchDot(G)) goto l121; goto l120;
  2311. l121:; G->pos= yypos121; G->thunkpos= yythunkpos121;
  2312. } if (!yymatchChar(G, '"')) goto l119;
  2313. yyprintf((stderr, " ok %s @ %s\n", "TitleDoubleExt", G->buf+G->pos));
  2314. return 1;
  2315. l119:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2316. yyprintf((stderr, " fail %s @ %s\n", "TitleDoubleExt", G->buf+G->pos));
  2317. return 0;
  2318. }
  2319. YY_RULE(int) yy_TitleSingleExt(GREG *G)
  2320. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2321. yyprintf((stderr, "%s\n", "TitleSingleExt")); if (!yymatchChar(G, '\'')) goto l125;
  2322. l126:;
  2323. { int yypos127= G->pos, yythunkpos127= G->thunkpos;
  2324. { int yypos128= G->pos, yythunkpos128= G->thunkpos;
  2325. { int yypos129= G->pos, yythunkpos129= G->thunkpos; if (!yymatchChar(G, '\'')) goto l130; goto l129;
  2326. l130:; G->pos= yypos129; G->thunkpos= yythunkpos129; if (!yy_Newline(G)) { goto l128; }
  2327. }
  2328. l129:; goto l127;
  2329. l128:; G->pos= yypos128; G->thunkpos= yythunkpos128;
  2330. } if (!yymatchDot(G)) goto l127; goto l126;
  2331. l127:; G->pos= yypos127; G->thunkpos= yythunkpos127;
  2332. } if (!yymatchChar(G, '\'')) goto l125;
  2333. yyprintf((stderr, " ok %s @ %s\n", "TitleSingleExt", G->buf+G->pos));
  2334. return 1;
  2335. l125:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2336. yyprintf((stderr, " fail %s @ %s\n", "TitleSingleExt", G->buf+G->pos));
  2337. return 0;
  2338. }
  2339. YY_RULE(int) yy_TitleDouble(GREG *G)
  2340. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2341. yyprintf((stderr, "%s\n", "TitleDouble")); if (!yymatchChar(G, '"')) goto l131;
  2342. l132:;
  2343. { int yypos133= G->pos, yythunkpos133= G->thunkpos;
  2344. { int yypos134= G->pos, yythunkpos134= G->thunkpos; if (!yymatchChar(G, '"')) goto l134; if (!yy_Sp(G)) { goto l134; }
  2345. { int yypos135= G->pos, yythunkpos135= G->thunkpos; if (!yymatchChar(G, ')')) goto l136; goto l135;
  2346. l136:; G->pos= yypos135; G->thunkpos= yythunkpos135; if (!yy_Newline(G)) { goto l134; }
  2347. }
  2348. l135:; goto l133;
  2349. l134:; G->pos= yypos134; G->thunkpos= yythunkpos134;
  2350. } if (!yymatchDot(G)) goto l133; goto l132;
  2351. l133:; G->pos= yypos133; G->thunkpos= yythunkpos133;
  2352. } if (!yymatchChar(G, '"')) goto l131;
  2353. yyprintf((stderr, " ok %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2354. return 1;
  2355. l131:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2356. yyprintf((stderr, " fail %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2357. return 0;
  2358. }
  2359. YY_RULE(int) yy_TitleSingle(GREG *G)
  2360. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2361. yyprintf((stderr, "%s\n", "TitleSingle")); if (!yymatchChar(G, '\'')) goto l137;
  2362. l138:;
  2363. { int yypos139= G->pos, yythunkpos139= G->thunkpos;
  2364. { int yypos140= G->pos, yythunkpos140= G->thunkpos; if (!yymatchChar(G, '\'')) goto l140; if (!yy_Sp(G)) { goto l140; }
  2365. { int yypos141= G->pos, yythunkpos141= G->thunkpos; if (!yymatchChar(G, ')')) goto l142; goto l141;
  2366. l142:; G->pos= yypos141; G->thunkpos= yythunkpos141; if (!yy_Newline(G)) { goto l140; }
  2367. }
  2368. l141:; goto l139;
  2369. l140:; G->pos= yypos140; G->thunkpos= yythunkpos140;
  2370. } if (!yymatchDot(G)) goto l139; goto l138;
  2371. l139:; G->pos= yypos139; G->thunkpos= yythunkpos139;
  2372. } if (!yymatchChar(G, '\'')) goto l137;
  2373. yyprintf((stderr, " ok %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2374. return 1;
  2375. l137:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2376. yyprintf((stderr, " fail %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2377. return 0;
  2378. }
  2379. YY_RULE(int) yy_Nonspacechar(GREG *G)
  2380. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2381. yyprintf((stderr, "%s\n", "Nonspacechar"));
  2382. { int yypos144= G->pos, yythunkpos144= G->thunkpos; if (!yy_Spacechar(G)) { goto l144; } goto l143;
  2383. l144:; G->pos= yypos144; G->thunkpos= yythunkpos144;
  2384. }
  2385. { int yypos145= G->pos, yythunkpos145= G->thunkpos; if (!yy_Newline(G)) { goto l145; } goto l143;
  2386. l145:; G->pos= yypos145; G->thunkpos= yythunkpos145;
  2387. } if (!yymatchDot(G)) goto l143;
  2388. yyprintf((stderr, " ok %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  2389. return 1;
  2390. l143:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2391. yyprintf((stderr, " fail %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  2392. return 0;
  2393. }
  2394. YY_RULE(int) yy_SourceContents(GREG *G)
  2395. {
  2396. yyprintf((stderr, "%s\n", "SourceContents"));
  2397. l147:;
  2398. { int yypos148= G->pos, yythunkpos148= G->thunkpos;
  2399. { int yypos149= G->pos, yythunkpos149= G->thunkpos;
  2400. { int yypos153= G->pos, yythunkpos153= G->thunkpos; if (!yymatchChar(G, '(')) goto l153; goto l150;
  2401. l153:; G->pos= yypos153; G->thunkpos= yythunkpos153;
  2402. }
  2403. { int yypos154= G->pos, yythunkpos154= G->thunkpos; if (!yymatchChar(G, ')')) goto l154; goto l150;
  2404. l154:; G->pos= yypos154; G->thunkpos= yythunkpos154;
  2405. }
  2406. { int yypos155= G->pos, yythunkpos155= G->thunkpos; if (!yymatchChar(G, '>')) goto l155; goto l150;
  2407. l155:; G->pos= yypos155; G->thunkpos= yythunkpos155;
  2408. } if (!yy_Nonspacechar(G)) { goto l150; }
  2409. l151:;
  2410. { int yypos152= G->pos, yythunkpos152= G->thunkpos;
  2411. { int yypos156= G->pos, yythunkpos156= G->thunkpos; if (!yymatchChar(G, '(')) goto l156; goto l152;
  2412. l156:; G->pos= yypos156; G->thunkpos= yythunkpos156;
  2413. }
  2414. { int yypos157= G->pos, yythunkpos157= G->thunkpos; if (!yymatchChar(G, ')')) goto l157; goto l152;
  2415. l157:; G->pos= yypos157; G->thunkpos= yythunkpos157;
  2416. }
  2417. { int yypos158= G->pos, yythunkpos158= G->thunkpos; if (!yymatchChar(G, '>')) goto l158; goto l152;
  2418. l158:; G->pos= yypos158; G->thunkpos= yythunkpos158;
  2419. } if (!yy_Nonspacechar(G)) { goto l152; } goto l151;
  2420. l152:; G->pos= yypos152; G->thunkpos= yythunkpos152;
  2421. } goto l149;
  2422. l150:; G->pos= yypos149; G->thunkpos= yythunkpos149; if (!yymatchChar(G, '(')) goto l148; if (!yy_SourceContents(G)) { goto l148; } if (!yymatchChar(G, ')')) goto l148;
  2423. }
  2424. l149:; goto l147;
  2425. l148:; G->pos= yypos148; G->thunkpos= yythunkpos148;
  2426. }
  2427. yyprintf((stderr, " ok %s @ %s\n", "SourceContents", G->buf+G->pos));
  2428. return 1;
  2429. }
  2430. YY_RULE(int) yy_ImageSize(GREG *G)
  2431. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2432. yyprintf((stderr, "%s\n", "ImageSize"));
  2433. { int yypos160= G->pos, yythunkpos160= G->thunkpos; if (!yy_ImageSizeComplete(G)) { goto l161; } goto l160;
  2434. l161:; G->pos= yypos160; G->thunkpos= yythunkpos160; if (!yy_ImageSizeWidth(G)) { goto l162; } goto l160;
  2435. l162:; G->pos= yypos160; G->thunkpos= yythunkpos160; if (!yy_ImageSizeHeight(G)) { goto l163; } goto l160;
  2436. l163:; G->pos= yypos160; G->thunkpos= yythunkpos160; if (!yymatchString(G, "")) goto l159;
  2437. }
  2438. l160:;
  2439. yyprintf((stderr, " ok %s @ %s\n", "ImageSize", G->buf+G->pos));
  2440. return 1;
  2441. l159:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2442. yyprintf((stderr, " fail %s @ %s\n", "ImageSize", G->buf+G->pos));
  2443. return 0;
  2444. }
  2445. YY_RULE(int) yy_TitleExt(GREG *G)
  2446. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2447. yyprintf((stderr, "%s\n", "TitleExt"));
  2448. { int yypos165= G->pos, yythunkpos165= G->thunkpos; if (!yy_TitleSingleExt(G)) { goto l166; } goto l165;
  2449. l166:; G->pos= yypos165; G->thunkpos= yythunkpos165; if (!yy_TitleDoubleExt(G)) { goto l167; } goto l165;
  2450. l167:; G->pos= yypos165; G->thunkpos= yythunkpos165; if (!yymatchString(G, "")) goto l164;
  2451. }
  2452. l165:;
  2453. yyprintf((stderr, " ok %s @ %s\n", "TitleExt", G->buf+G->pos));
  2454. return 1;
  2455. l164:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2456. yyprintf((stderr, " fail %s @ %s\n", "TitleExt", G->buf+G->pos));
  2457. return 0;
  2458. }
  2459. YY_RULE(int) yy_Title(GREG *G)
  2460. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2461. yyprintf((stderr, "%s\n", "Title"));
  2462. { int yypos169= G->pos, yythunkpos169= G->thunkpos; if (!yy_TitleSingle(G)) { goto l170; } goto l169;
  2463. l170:; G->pos= yypos169; G->thunkpos= yythunkpos169; if (!yy_TitleDouble(G)) { goto l171; } goto l169;
  2464. l171:; G->pos= yypos169; G->thunkpos= yythunkpos169; if (!yymatchString(G, "")) goto l168;
  2465. }
  2466. l169:;
  2467. yyprintf((stderr, " ok %s @ %s\n", "Title", G->buf+G->pos));
  2468. return 1;
  2469. l168:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2470. yyprintf((stderr, " fail %s @ %s\n", "Title", G->buf+G->pos));
  2471. return 0;
  2472. }
  2473. YY_RULE(int) yy_Source(GREG *G)
  2474. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2475. yyprintf((stderr, "%s\n", "Source")); yyDo(G, yy_1_Source, G->begin, G->end);
  2476. { int yypos173= G->pos, yythunkpos173= G->thunkpos; if (!yymatchChar(G, '<')) goto l174; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l174; if (!yy_SourceContents(G)) { goto l174; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l174; yyDo(G, yy_2_Source, G->begin, G->end); if (!yymatchChar(G, '>')) goto l174; goto l173;
  2477. l174:; G->pos= yypos173; G->thunkpos= yythunkpos173; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l172; if (!yy_SourceContents(G)) { goto l172; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l172; yyDo(G, yy_3_Source, G->begin, G->end);
  2478. }
  2479. l173:;
  2480. yyprintf((stderr, " ok %s @ %s\n", "Source", G->buf+G->pos));
  2481. return 1;
  2482. l172:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2483. yyprintf((stderr, " fail %s @ %s\n", "Source", G->buf+G->pos));
  2484. return 0;
  2485. }
  2486. YY_RULE(int) yy_Label(GREG *G)
  2487. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2488. yyprintf((stderr, "%s\n", "Label")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l175; if (!yy_LocMarker(G)) { goto l175; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '[')) goto l175;
  2489. { int yypos176= G->pos, yythunkpos176= G->thunkpos;
  2490. { int yypos178= G->pos, yythunkpos178= G->thunkpos; if (!yymatchChar(G, '^')) goto l178; goto l177;
  2491. l178:; G->pos= yypos178; G->thunkpos= yythunkpos178;
  2492. } yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l177; goto l176;
  2493. l177:; G->pos= yypos176; G->thunkpos= yythunkpos176;
  2494. { int yypos179= G->pos, yythunkpos179= G->thunkpos; if (!yymatchDot(G)) goto l175; G->pos= yypos179; G->thunkpos= yythunkpos179;
  2495. } yyText(G, G->begin, G->end); if (!( !EXT(pmh_EXT_NOTES) )) goto l175;
  2496. }
  2497. l176:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l175;
  2498. l180:;
  2499. { int yypos181= G->pos, yythunkpos181= G->thunkpos;
  2500. { int yypos182= G->pos, yythunkpos182= G->thunkpos; if (!yymatchChar(G, ']')) goto l182; goto l181;
  2501. l182:; G->pos= yypos182; G->thunkpos= yythunkpos182;
  2502. } if (!yy_Inline(G)) { goto l181; } goto l180;
  2503. l181:; G->pos= yypos181; G->thunkpos= yythunkpos181;
  2504. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l175; yyDo(G, yy_1_Label, G->begin, G->end); if (!yymatchChar(G, ']')) goto l175; yyText(G, G->begin, G->end); if (!(YY_END)) goto l175; yyDo(G, yy_2_Label, G->begin, G->end);
  2505. yyprintf((stderr, " ok %s @ %s\n", "Label", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2506. return 1;
  2507. l175:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2508. yyprintf((stderr, " fail %s @ %s\n", "Label", G->buf+G->pos));
  2509. return 0;
  2510. }
  2511. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G)
  2512. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2513. yyprintf((stderr, "%s\n", "ReferenceLinkSingle")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l183; if (!yy_Label(G)) { goto l183; } yyDo(G, yySet, -1, 0);
  2514. { int yypos184= G->pos, yythunkpos184= G->thunkpos; if (!yy_Spnl(G)) { goto l184; } if (!yymatchString(G, "[]")) goto l184; goto l185;
  2515. l184:; G->pos= yypos184; G->thunkpos= yythunkpos184;
  2516. }
  2517. l185:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l183; yyDo(G, yy_1_ReferenceLinkSingle, G->begin, G->end);
  2518. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2519. return 1;
  2520. l183:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2521. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos));
  2522. return 0;
  2523. }
  2524. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G)
  2525. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2526. yyprintf((stderr, "%s\n", "ReferenceLinkDouble")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l186; if (!yy_Label(G)) { goto l186; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l186; }
  2527. { int yypos187= G->pos, yythunkpos187= G->thunkpos; if (!yymatchString(G, "[]")) goto l187; goto l186;
  2528. l187:; G->pos= yypos187; G->thunkpos= yythunkpos187;
  2529. } if (!yy_Label(G)) { goto l186; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_END)) goto l186; yyDo(G, yy_1_ReferenceLinkDouble, G->begin, G->end);
  2530. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2531. return 1;
  2532. l186:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2533. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos));
  2534. return 0;
  2535. }
  2536. YY_RULE(int) yy_AutoLink(GREG *G)
  2537. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2538. yyprintf((stderr, "%s\n", "AutoLink"));
  2539. { int yypos189= G->pos, yythunkpos189= G->thunkpos; if (!yy_AutoLinkUrl(G)) { goto l190; } goto l189;
  2540. l190:; G->pos= yypos189; G->thunkpos= yythunkpos189; if (!yy_AutoLinkEmail(G)) { goto l188; }
  2541. }
  2542. l189:;
  2543. yyprintf((stderr, " ok %s @ %s\n", "AutoLink", G->buf+G->pos));
  2544. return 1;
  2545. l188:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2546. yyprintf((stderr, " fail %s @ %s\n", "AutoLink", G->buf+G->pos));
  2547. return 0;
  2548. }
  2549. YY_RULE(int) yy_ReferenceLink(GREG *G)
  2550. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2551. yyprintf((stderr, "%s\n", "ReferenceLink"));
  2552. { int yypos192= G->pos, yythunkpos192= G->thunkpos; if (!yy_ReferenceLinkDouble(G)) { goto l193; } goto l192;
  2553. l193:; G->pos= yypos192; G->thunkpos= yythunkpos192; if (!yy_ReferenceLinkSingle(G)) { goto l191; }
  2554. }
  2555. l192:;
  2556. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2557. return 1;
  2558. l191:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2559. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2560. return 0;
  2561. }
  2562. YY_RULE(int) yy_ExplicitLinkSize(GREG *G)
  2563. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2564. yyprintf((stderr, "%s\n", "ExplicitLinkSize")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l194; if (!yy_Label(G)) { goto l194; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l194; } if (!yymatchChar(G, '(')) goto l194; if (!yy_Sp(G)) { goto l194; } if (!yy_Source(G)) { goto l194; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l194; } if (!yy_TitleExt(G)) { goto l194; } if (!yy_Sp(G)) { goto l194; } if (!yy_ImageSize(G)) { goto l194; } if (!yy_Sp(G)) { goto l194; } if (!yymatchChar(G, ')')) goto l194; yyText(G, G->begin, G->end); if (!(YY_END)) goto l194; yyDo(G, yy_1_ExplicitLinkSize, G->begin, G->end);
  2565. yyprintf((stderr, " ok %s @ %s\n", "ExplicitLinkSize", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2566. return 1;
  2567. l194:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2568. yyprintf((stderr, " fail %s @ %s\n", "ExplicitLinkSize", G->buf+G->pos));
  2569. return 0;
  2570. }
  2571. YY_RULE(int) yy_ExplicitLink(GREG *G)
  2572. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2573. yyprintf((stderr, "%s\n", "ExplicitLink")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l195; if (!yy_Label(G)) { goto l195; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l195; } if (!yymatchChar(G, '(')) goto l195; if (!yy_Sp(G)) { goto l195; } if (!yy_Source(G)) { goto l195; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l195; } if (!yy_Title(G)) { goto l195; } if (!yy_Sp(G)) { goto l195; } if (!yymatchChar(G, ')')) goto l195; yyText(G, G->begin, G->end); if (!(YY_END)) goto l195; yyDo(G, yy_1_ExplicitLink, G->begin, G->end);
  2574. yyprintf((stderr, " ok %s @ %s\n", "ExplicitLink", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2575. return 1;
  2576. l195:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2577. yyprintf((stderr, " fail %s @ %s\n", "ExplicitLink", G->buf+G->pos));
  2578. return 0;
  2579. }
  2580. YY_RULE(int) yy_StrongUl(GREG *G)
  2581. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2582. yyprintf((stderr, "%s\n", "StrongUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l196; if (!yy_LocMarker(G)) { goto l196; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "__")) goto l196;
  2583. { int yypos197= G->pos, yythunkpos197= G->thunkpos; if (!yy_Whitespace(G)) { goto l197; } goto l196;
  2584. l197:; G->pos= yypos197; G->thunkpos= yythunkpos197;
  2585. }
  2586. { int yypos200= G->pos, yythunkpos200= G->thunkpos; if (!yymatchString(G, "__")) goto l200; goto l196;
  2587. l200:; G->pos= yypos200; G->thunkpos= yythunkpos200;
  2588. } if (!yy_Inline(G)) { goto l196; }
  2589. l198:;
  2590. { int yypos199= G->pos, yythunkpos199= G->thunkpos;
  2591. { int yypos201= G->pos, yythunkpos201= G->thunkpos; if (!yymatchString(G, "__")) goto l201; goto l199;
  2592. l201:; G->pos= yypos201; G->thunkpos= yythunkpos201;
  2593. } if (!yy_Inline(G)) { goto l199; } goto l198;
  2594. l199:; G->pos= yypos199; G->thunkpos= yythunkpos199;
  2595. } if (!yymatchString(G, "__")) goto l196; yyText(G, G->begin, G->end); if (!(YY_END)) goto l196; yyDo(G, yy_1_StrongUl, G->begin, G->end);
  2596. yyprintf((stderr, " ok %s @ %s\n", "StrongUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2597. return 1;
  2598. l196:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2599. yyprintf((stderr, " fail %s @ %s\n", "StrongUl", G->buf+G->pos));
  2600. return 0;
  2601. }
  2602. YY_RULE(int) yy_StrongStar(GREG *G)
  2603. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2604. yyprintf((stderr, "%s\n", "StrongStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l202; if (!yy_LocMarker(G)) { goto l202; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "**")) goto l202;
  2605. { int yypos203= G->pos, yythunkpos203= G->thunkpos; if (!yy_Whitespace(G)) { goto l203; } goto l202;
  2606. l203:; G->pos= yypos203; G->thunkpos= yythunkpos203;
  2607. }
  2608. { int yypos206= G->pos, yythunkpos206= G->thunkpos; if (!yymatchString(G, "**")) goto l206; goto l202;
  2609. l206:; G->pos= yypos206; G->thunkpos= yythunkpos206;
  2610. } if (!yy_Inline(G)) { goto l202; }
  2611. l204:;
  2612. { int yypos205= G->pos, yythunkpos205= G->thunkpos;
  2613. { int yypos207= G->pos, yythunkpos207= G->thunkpos; if (!yymatchString(G, "**")) goto l207; goto l205;
  2614. l207:; G->pos= yypos207; G->thunkpos= yythunkpos207;
  2615. } if (!yy_Inline(G)) { goto l205; } goto l204;
  2616. l205:; G->pos= yypos205; G->thunkpos= yythunkpos205;
  2617. } if (!yymatchString(G, "**")) goto l202; yyText(G, G->begin, G->end); if (!(YY_END)) goto l202; yyDo(G, yy_1_StrongStar, G->begin, G->end);
  2618. yyprintf((stderr, " ok %s @ %s\n", "StrongStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2619. return 1;
  2620. l202:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2621. yyprintf((stderr, " fail %s @ %s\n", "StrongStar", G->buf+G->pos));
  2622. return 0;
  2623. }
  2624. YY_RULE(int) yy_Whitespace(GREG *G)
  2625. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2626. yyprintf((stderr, "%s\n", "Whitespace"));
  2627. { int yypos209= G->pos, yythunkpos209= G->thunkpos; if (!yy_Spacechar(G)) { goto l210; } goto l209;
  2628. l210:; G->pos= yypos209; G->thunkpos= yythunkpos209; if (!yy_Newline(G)) { goto l208; }
  2629. }
  2630. l209:;
  2631. yyprintf((stderr, " ok %s @ %s\n", "Whitespace", G->buf+G->pos));
  2632. return 1;
  2633. l208:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2634. yyprintf((stderr, " fail %s @ %s\n", "Whitespace", G->buf+G->pos));
  2635. return 0;
  2636. }
  2637. YY_RULE(int) yy_EmphUl(GREG *G)
  2638. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2639. yyprintf((stderr, "%s\n", "EmphUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l211; if (!yy_LocMarker(G)) { goto l211; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '_')) goto l211;
  2640. { int yypos212= G->pos, yythunkpos212= G->thunkpos; if (!yy_Whitespace(G)) { goto l212; } goto l211;
  2641. l212:; G->pos= yypos212; G->thunkpos= yythunkpos212;
  2642. }
  2643. { int yypos215= G->pos, yythunkpos215= G->thunkpos;
  2644. { int yypos217= G->pos, yythunkpos217= G->thunkpos; if (!yymatchChar(G, '_')) goto l217; goto l216;
  2645. l217:; G->pos= yypos217; G->thunkpos= yythunkpos217;
  2646. } if (!yy_Inline(G)) { goto l216; } goto l215;
  2647. l216:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yy_StrongUl(G)) { goto l211; }
  2648. }
  2649. l215:;
  2650. l213:;
  2651. { int yypos214= G->pos, yythunkpos214= G->thunkpos;
  2652. { int yypos218= G->pos, yythunkpos218= G->thunkpos;
  2653. { int yypos220= G->pos, yythunkpos220= G->thunkpos; if (!yymatchChar(G, '_')) goto l220; goto l219;
  2654. l220:; G->pos= yypos220; G->thunkpos= yythunkpos220;
  2655. } if (!yy_Inline(G)) { goto l219; } goto l218;
  2656. l219:; G->pos= yypos218; G->thunkpos= yythunkpos218; if (!yy_StrongUl(G)) { goto l214; }
  2657. }
  2658. l218:; goto l213;
  2659. l214:; G->pos= yypos214; G->thunkpos= yythunkpos214;
  2660. } if (!yymatchChar(G, '_')) goto l211; yyText(G, G->begin, G->end); if (!(YY_END)) goto l211; yyDo(G, yy_1_EmphUl, G->begin, G->end);
  2661. yyprintf((stderr, " ok %s @ %s\n", "EmphUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2662. return 1;
  2663. l211:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2664. yyprintf((stderr, " fail %s @ %s\n", "EmphUl", G->buf+G->pos));
  2665. return 0;
  2666. }
  2667. YY_RULE(int) yy_EmphStar(GREG *G)
  2668. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2669. yyprintf((stderr, "%s\n", "EmphStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l221; if (!yy_LocMarker(G)) { goto l221; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '*')) goto l221;
  2670. { int yypos222= G->pos, yythunkpos222= G->thunkpos; if (!yy_Whitespace(G)) { goto l222; } goto l221;
  2671. l222:; G->pos= yypos222; G->thunkpos= yythunkpos222;
  2672. }
  2673. { int yypos225= G->pos, yythunkpos225= G->thunkpos;
  2674. { int yypos227= G->pos, yythunkpos227= G->thunkpos; if (!yymatchChar(G, '*')) goto l227; goto l226;
  2675. l227:; G->pos= yypos227; G->thunkpos= yythunkpos227;
  2676. } if (!yy_Inline(G)) { goto l226; } goto l225;
  2677. l226:; G->pos= yypos225; G->thunkpos= yythunkpos225; if (!yy_StrongStar(G)) { goto l221; }
  2678. }
  2679. l225:;
  2680. l223:;
  2681. { int yypos224= G->pos, yythunkpos224= G->thunkpos;
  2682. { int yypos228= G->pos, yythunkpos228= G->thunkpos;
  2683. { int yypos230= G->pos, yythunkpos230= G->thunkpos; if (!yymatchChar(G, '*')) goto l230; goto l229;
  2684. l230:; G->pos= yypos230; G->thunkpos= yythunkpos230;
  2685. } if (!yy_Inline(G)) { goto l229; } goto l228;
  2686. l229:; G->pos= yypos228; G->thunkpos= yythunkpos228; if (!yy_StrongStar(G)) { goto l224; }
  2687. }
  2688. l228:; goto l223;
  2689. l224:; G->pos= yypos224; G->thunkpos= yythunkpos224;
  2690. } if (!yymatchChar(G, '*')) goto l221; yyText(G, G->begin, G->end); if (!(YY_END)) goto l221; yyDo(G, yy_1_EmphStar, G->begin, G->end);
  2691. yyprintf((stderr, " ok %s @ %s\n", "EmphStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2692. return 1;
  2693. l221:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2694. yyprintf((stderr, " fail %s @ %s\n", "EmphStar", G->buf+G->pos));
  2695. return 0;
  2696. }
  2697. YY_RULE(int) yy_StarLine(GREG *G)
  2698. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2699. yyprintf((stderr, "%s\n", "StarLine"));
  2700. { int yypos232= G->pos, yythunkpos232= G->thunkpos; if (!yymatchString(G, "****")) goto l233;
  2701. l234:;
  2702. { int yypos235= G->pos, yythunkpos235= G->thunkpos; if (!yymatchChar(G, '*')) goto l235; goto l234;
  2703. l235:; G->pos= yypos235; G->thunkpos= yythunkpos235;
  2704. } goto l232;
  2705. l233:; G->pos= yypos232; G->thunkpos= yythunkpos232; if (!yy_Spacechar(G)) { goto l231; } if (!yymatchChar(G, '*')) goto l231;
  2706. l236:;
  2707. { int yypos237= G->pos, yythunkpos237= G->thunkpos; if (!yymatchChar(G, '*')) goto l237; goto l236;
  2708. l237:; G->pos= yypos237; G->thunkpos= yythunkpos237;
  2709. }
  2710. { int yypos238= G->pos, yythunkpos238= G->thunkpos; if (!yy_Spacechar(G)) { goto l231; } G->pos= yypos238; G->thunkpos= yythunkpos238;
  2711. }
  2712. }
  2713. l232:;
  2714. yyprintf((stderr, " ok %s @ %s\n", "StarLine", G->buf+G->pos));
  2715. return 1;
  2716. l231:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2717. yyprintf((stderr, " fail %s @ %s\n", "StarLine", G->buf+G->pos));
  2718. return 0;
  2719. }
  2720. YY_RULE(int) yy_UlLine(GREG *G)
  2721. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2722. yyprintf((stderr, "%s\n", "UlLine"));
  2723. { int yypos240= G->pos, yythunkpos240= G->thunkpos; if (!yymatchString(G, "____")) goto l241;
  2724. l242:;
  2725. { int yypos243= G->pos, yythunkpos243= G->thunkpos; if (!yymatchChar(G, '_')) goto l243; goto l242;
  2726. l243:; G->pos= yypos243; G->thunkpos= yythunkpos243;
  2727. } goto l240;
  2728. l241:; G->pos= yypos240; G->thunkpos= yythunkpos240; if (!yy_Spacechar(G)) { goto l239; } if (!yymatchChar(G, '_')) goto l239;
  2729. l244:;
  2730. { int yypos245= G->pos, yythunkpos245= G->thunkpos; if (!yymatchChar(G, '_')) goto l245; goto l244;
  2731. l245:; G->pos= yypos245; G->thunkpos= yythunkpos245;
  2732. }
  2733. { int yypos246= G->pos, yythunkpos246= G->thunkpos; if (!yy_Spacechar(G)) { goto l239; } G->pos= yypos246; G->thunkpos= yythunkpos246;
  2734. }
  2735. }
  2736. l240:;
  2737. yyprintf((stderr, " ok %s @ %s\n", "UlLine", G->buf+G->pos));
  2738. return 1;
  2739. l239:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2740. yyprintf((stderr, " fail %s @ %s\n", "UlLine", G->buf+G->pos));
  2741. return 0;
  2742. }
  2743. YY_RULE(int) yy_SpecialChar(GREG *G)
  2744. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2745. yyprintf((stderr, "%s\n", "SpecialChar"));
  2746. { int yypos248= G->pos, yythunkpos248= G->thunkpos; if (!yymatchChar(G, '~')) goto l249; goto l248;
  2747. l249:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '*')) goto l250; goto l248;
  2748. l250:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '_')) goto l251; goto l248;
  2749. l251:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '`')) goto l252; goto l248;
  2750. l252:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '&')) goto l253; goto l248;
  2751. l253:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '[')) goto l254; goto l248;
  2752. l254:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, ']')) goto l255; goto l248;
  2753. l255:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '(')) goto l256; goto l248;
  2754. l256:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, ')')) goto l257; goto l248;
  2755. l257:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '<')) goto l258; goto l248;
  2756. l258:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '!')) goto l259; goto l248;
  2757. l259:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '#')) goto l260; goto l248;
  2758. l260:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '\\')) goto l261; goto l248;
  2759. l261:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '\'')) goto l262; goto l248;
  2760. l262:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yymatchChar(G, '"')) goto l263; goto l248;
  2761. l263:; G->pos= yypos248; G->thunkpos= yythunkpos248; if (!yy_ExtendedSpecialChar(G)) { goto l247; }
  2762. }
  2763. l248:;
  2764. yyprintf((stderr, " ok %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2765. return 1;
  2766. l247:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2767. yyprintf((stderr, " fail %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2768. return 0;
  2769. }
  2770. YY_RULE(int) yy_Eof(GREG *G)
  2771. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2772. yyprintf((stderr, "%s\n", "Eof"));
  2773. { int yypos265= G->pos, yythunkpos265= G->thunkpos; if (!yymatchDot(G)) goto l265; goto l264;
  2774. l265:; G->pos= yypos265; G->thunkpos= yythunkpos265;
  2775. }
  2776. yyprintf((stderr, " ok %s @ %s\n", "Eof", G->buf+G->pos));
  2777. return 1;
  2778. l264:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2779. yyprintf((stderr, " fail %s @ %s\n", "Eof", G->buf+G->pos));
  2780. return 0;
  2781. }
  2782. YY_RULE(int) yy_NormalEndline(GREG *G)
  2783. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2784. yyprintf((stderr, "%s\n", "NormalEndline")); if (!yy_Sp(G)) { goto l266; } if (!yy_Newline(G)) { goto l266; }
  2785. { int yypos267= G->pos, yythunkpos267= G->thunkpos; if (!yy_BlankLine(G)) { goto l267; } goto l266;
  2786. l267:; G->pos= yypos267; G->thunkpos= yythunkpos267;
  2787. }
  2788. { int yypos268= G->pos, yythunkpos268= G->thunkpos; if (!yymatchChar(G, '>')) goto l268; goto l266;
  2789. l268:; G->pos= yypos268; G->thunkpos= yythunkpos268;
  2790. }
  2791. { int yypos269= G->pos, yythunkpos269= G->thunkpos; if (!yy_AtxStart(G)) { goto l269; } goto l266;
  2792. l269:; G->pos= yypos269; G->thunkpos= yythunkpos269;
  2793. }
  2794. { int yypos270= G->pos, yythunkpos270= G->thunkpos; if (!yy_Line(G)) { goto l270; }
  2795. { int yypos271= G->pos, yythunkpos271= G->thunkpos; if (!yymatchChar(G, '=')) goto l272;
  2796. l273:;
  2797. { int yypos274= G->pos, yythunkpos274= G->thunkpos; if (!yymatchChar(G, '=')) goto l274; goto l273;
  2798. l274:; G->pos= yypos274; G->thunkpos= yythunkpos274;
  2799. } goto l271;
  2800. l272:; G->pos= yypos271; G->thunkpos= yythunkpos271; if (!yymatchChar(G, '-')) goto l270;
  2801. l275:;
  2802. { int yypos276= G->pos, yythunkpos276= G->thunkpos; if (!yymatchChar(G, '-')) goto l276; goto l275;
  2803. l276:; G->pos= yypos276; G->thunkpos= yythunkpos276;
  2804. }
  2805. }
  2806. l271:; if (!yy_Newline(G)) { goto l270; } goto l266;
  2807. l270:; G->pos= yypos270; G->thunkpos= yythunkpos270;
  2808. }
  2809. yyprintf((stderr, " ok %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2810. return 1;
  2811. l266:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2812. yyprintf((stderr, " fail %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2813. return 0;
  2814. }
  2815. YY_RULE(int) yy_TerminalEndline(GREG *G)
  2816. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2817. yyprintf((stderr, "%s\n", "TerminalEndline")); if (!yy_Sp(G)) { goto l277; } if (!yy_Newline(G)) { goto l277; } if (!yy_Eof(G)) { goto l277; }
  2818. yyprintf((stderr, " ok %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2819. return 1;
  2820. l277:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2821. yyprintf((stderr, " fail %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2822. return 0;
  2823. }
  2824. YY_RULE(int) yy_LineBreak(GREG *G)
  2825. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2826. yyprintf((stderr, "%s\n", "LineBreak")); if (!yymatchString(G, " ")) goto l278; if (!yy_NormalEndline(G)) { goto l278; }
  2827. yyprintf((stderr, " ok %s @ %s\n", "LineBreak", G->buf+G->pos));
  2828. return 1;
  2829. l278:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2830. yyprintf((stderr, " fail %s @ %s\n", "LineBreak", G->buf+G->pos));
  2831. return 0;
  2832. }
  2833. YY_RULE(int) yy_CharEntity(GREG *G)
  2834. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2835. yyprintf((stderr, "%s\n", "CharEntity")); if (!yymatchChar(G, '&')) goto l279; 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 l279;
  2836. l280:;
  2837. { int yypos281= G->pos, yythunkpos281= 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 l281; goto l280;
  2838. l281:; G->pos= yypos281; G->thunkpos= yythunkpos281;
  2839. } if (!yymatchChar(G, ';')) goto l279;
  2840. yyprintf((stderr, " ok %s @ %s\n", "CharEntity", G->buf+G->pos));
  2841. return 1;
  2842. l279:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2843. yyprintf((stderr, " fail %s @ %s\n", "CharEntity", G->buf+G->pos));
  2844. return 0;
  2845. }
  2846. YY_RULE(int) yy_DecEntity(GREG *G)
  2847. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2848. yyprintf((stderr, "%s\n", "DecEntity")); if (!yymatchChar(G, '&')) goto l282; if (!yymatchChar(G, '#')) goto l282; 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 l282;
  2849. l283:;
  2850. { int yypos284= G->pos, yythunkpos284= 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 l284; goto l283;
  2851. l284:; G->pos= yypos284; G->thunkpos= yythunkpos284;
  2852. } if (!yymatchChar(G, ';')) goto l282;
  2853. yyprintf((stderr, " ok %s @ %s\n", "DecEntity", G->buf+G->pos));
  2854. return 1;
  2855. l282:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2856. yyprintf((stderr, " fail %s @ %s\n", "DecEntity", G->buf+G->pos));
  2857. return 0;
  2858. }
  2859. YY_RULE(int) yy_HexEntity(GREG *G)
  2860. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2861. yyprintf((stderr, "%s\n", "HexEntity")); if (!yymatchChar(G, '&')) goto l285; if (!yymatchChar(G, '#')) goto l285; 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 l285; 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 l285;
  2862. l286:;
  2863. { int yypos287= G->pos, yythunkpos287= 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 l287; goto l286;
  2864. l287:; G->pos= yypos287; G->thunkpos= yythunkpos287;
  2865. } if (!yymatchChar(G, ';')) goto l285;
  2866. yyprintf((stderr, " ok %s @ %s\n", "HexEntity", G->buf+G->pos));
  2867. return 1;
  2868. l285:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2869. yyprintf((stderr, " fail %s @ %s\n", "HexEntity", G->buf+G->pos));
  2870. return 0;
  2871. }
  2872. YY_RULE(int) yy_Alphanumeric(GREG *G)
  2873. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2874. yyprintf((stderr, "%s\n", "Alphanumeric"));
  2875. { int yypos289= G->pos, yythunkpos289= 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 l290; goto l289;
  2876. l290:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\200")) goto l291; goto l289;
  2877. l291:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\201")) goto l292; goto l289;
  2878. l292:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\202")) goto l293; goto l289;
  2879. l293:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\203")) goto l294; goto l289;
  2880. l294:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\204")) goto l295; goto l289;
  2881. l295:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\205")) goto l296; goto l289;
  2882. l296:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\206")) goto l297; goto l289;
  2883. l297:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\207")) goto l298; goto l289;
  2884. l298:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\210")) goto l299; goto l289;
  2885. l299:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\211")) goto l300; goto l289;
  2886. l300:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\212")) goto l301; goto l289;
  2887. l301:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\213")) goto l302; goto l289;
  2888. l302:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\214")) goto l303; goto l289;
  2889. l303:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\215")) goto l304; goto l289;
  2890. l304:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\216")) goto l305; goto l289;
  2891. l305:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\217")) goto l306; goto l289;
  2892. l306:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\220")) goto l307; goto l289;
  2893. l307:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\221")) goto l308; goto l289;
  2894. l308:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\222")) goto l309; goto l289;
  2895. l309:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\223")) goto l310; goto l289;
  2896. l310:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\224")) goto l311; goto l289;
  2897. l311:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\225")) goto l312; goto l289;
  2898. l312:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\226")) goto l313; goto l289;
  2899. l313:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\227")) goto l314; goto l289;
  2900. l314:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\230")) goto l315; goto l289;
  2901. l315:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\231")) goto l316; goto l289;
  2902. l316:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\232")) goto l317; goto l289;
  2903. l317:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\233")) goto l318; goto l289;
  2904. l318:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\234")) goto l319; goto l289;
  2905. l319:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\235")) goto l320; goto l289;
  2906. l320:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\236")) goto l321; goto l289;
  2907. l321:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\237")) goto l322; goto l289;
  2908. l322:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\240")) goto l323; goto l289;
  2909. l323:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\241")) goto l324; goto l289;
  2910. l324:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\242")) goto l325; goto l289;
  2911. l325:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\243")) goto l326; goto l289;
  2912. l326:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\244")) goto l327; goto l289;
  2913. l327:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\245")) goto l328; goto l289;
  2914. l328:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\246")) goto l329; goto l289;
  2915. l329:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\247")) goto l330; goto l289;
  2916. l330:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\250")) goto l331; goto l289;
  2917. l331:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\251")) goto l332; goto l289;
  2918. l332:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\252")) goto l333; goto l289;
  2919. l333:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\253")) goto l334; goto l289;
  2920. l334:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\254")) goto l335; goto l289;
  2921. l335:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\255")) goto l336; goto l289;
  2922. l336:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\256")) goto l337; goto l289;
  2923. l337:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\257")) goto l338; goto l289;
  2924. l338:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\260")) goto l339; goto l289;
  2925. l339:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\261")) goto l340; goto l289;
  2926. l340:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\262")) goto l341; goto l289;
  2927. l341:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\263")) goto l342; goto l289;
  2928. l342:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\264")) goto l343; goto l289;
  2929. l343:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\265")) goto l344; goto l289;
  2930. l344:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\266")) goto l345; goto l289;
  2931. l345:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\267")) goto l346; goto l289;
  2932. l346:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\270")) goto l347; goto l289;
  2933. l347:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\271")) goto l348; goto l289;
  2934. l348:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\272")) goto l349; goto l289;
  2935. l349:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\273")) goto l350; goto l289;
  2936. l350:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\274")) goto l351; goto l289;
  2937. l351:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\275")) goto l352; goto l289;
  2938. l352:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\276")) goto l353; goto l289;
  2939. l353:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\277")) goto l354; goto l289;
  2940. l354:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\300")) goto l355; goto l289;
  2941. l355:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\301")) goto l356; goto l289;
  2942. l356:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\302")) goto l357; goto l289;
  2943. l357:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\303")) goto l358; goto l289;
  2944. l358:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\304")) goto l359; goto l289;
  2945. l359:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\305")) goto l360; goto l289;
  2946. l360:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\306")) goto l361; goto l289;
  2947. l361:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\307")) goto l362; goto l289;
  2948. l362:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\310")) goto l363; goto l289;
  2949. l363:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\311")) goto l364; goto l289;
  2950. l364:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\312")) goto l365; goto l289;
  2951. l365:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\313")) goto l366; goto l289;
  2952. l366:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\314")) goto l367; goto l289;
  2953. l367:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\315")) goto l368; goto l289;
  2954. l368:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\316")) goto l369; goto l289;
  2955. l369:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\317")) goto l370; goto l289;
  2956. l370:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\320")) goto l371; goto l289;
  2957. l371:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\321")) goto l372; goto l289;
  2958. l372:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\322")) goto l373; goto l289;
  2959. l373:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\323")) goto l374; goto l289;
  2960. l374:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\324")) goto l375; goto l289;
  2961. l375:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\325")) goto l376; goto l289;
  2962. l376:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\326")) goto l377; goto l289;
  2963. l377:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\327")) goto l378; goto l289;
  2964. l378:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\330")) goto l379; goto l289;
  2965. l379:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\331")) goto l380; goto l289;
  2966. l380:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\332")) goto l381; goto l289;
  2967. l381:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\333")) goto l382; goto l289;
  2968. l382:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\334")) goto l383; goto l289;
  2969. l383:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\335")) goto l384; goto l289;
  2970. l384:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\336")) goto l385; goto l289;
  2971. l385:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\337")) goto l386; goto l289;
  2972. l386:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\340")) goto l387; goto l289;
  2973. l387:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\341")) goto l388; goto l289;
  2974. l388:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\342")) goto l389; goto l289;
  2975. l389:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\343")) goto l390; goto l289;
  2976. l390:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\344")) goto l391; goto l289;
  2977. l391:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\345")) goto l392; goto l289;
  2978. l392:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\346")) goto l393; goto l289;
  2979. l393:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\347")) goto l394; goto l289;
  2980. l394:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\350")) goto l395; goto l289;
  2981. l395:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\351")) goto l396; goto l289;
  2982. l396:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\352")) goto l397; goto l289;
  2983. l397:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\353")) goto l398; goto l289;
  2984. l398:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\354")) goto l399; goto l289;
  2985. l399:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\355")) goto l400; goto l289;
  2986. l400:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\356")) goto l401; goto l289;
  2987. l401:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\357")) goto l402; goto l289;
  2988. l402:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\360")) goto l403; goto l289;
  2989. l403:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\361")) goto l404; goto l289;
  2990. l404:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\362")) goto l405; goto l289;
  2991. l405:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\363")) goto l406; goto l289;
  2992. l406:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\364")) goto l407; goto l289;
  2993. l407:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\365")) goto l408; goto l289;
  2994. l408:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\366")) goto l409; goto l289;
  2995. l409:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\367")) goto l410; goto l289;
  2996. l410:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\370")) goto l411; goto l289;
  2997. l411:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\371")) goto l412; goto l289;
  2998. l412:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\372")) goto l413; goto l289;
  2999. l413:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\373")) goto l414; goto l289;
  3000. l414:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\374")) goto l415; goto l289;
  3001. l415:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\375")) goto l416; goto l289;
  3002. l416:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\376")) goto l417; goto l289;
  3003. l417:; G->pos= yypos289; G->thunkpos= yythunkpos289; if (!yymatchString(G, "\377")) goto l288;
  3004. }
  3005. l289:;
  3006. yyprintf((stderr, " ok %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  3007. return 1;
  3008. l288:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3009. yyprintf((stderr, " fail %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  3010. return 0;
  3011. }
  3012. YY_RULE(int) yy_NormalChar(GREG *G)
  3013. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3014. yyprintf((stderr, "%s\n", "NormalChar"));
  3015. { int yypos419= G->pos, yythunkpos419= G->thunkpos;
  3016. { int yypos420= G->pos, yythunkpos420= G->thunkpos; if (!yy_SpecialChar(G)) { goto l421; } goto l420;
  3017. l421:; G->pos= yypos420; G->thunkpos= yythunkpos420; if (!yy_Spacechar(G)) { goto l422; } goto l420;
  3018. l422:; G->pos= yypos420; G->thunkpos= yythunkpos420; if (!yy_Newline(G)) { goto l419; }
  3019. }
  3020. l420:; goto l418;
  3021. l419:; G->pos= yypos419; G->thunkpos= yythunkpos419;
  3022. } if (!yymatchDot(G)) goto l418;
  3023. yyprintf((stderr, " ok %s @ %s\n", "NormalChar", G->buf+G->pos));
  3024. return 1;
  3025. l418:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3026. yyprintf((stderr, " fail %s @ %s\n", "NormalChar", G->buf+G->pos));
  3027. return 0;
  3028. }
  3029. YY_RULE(int) yy_Symbol(GREG *G)
  3030. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3031. yyprintf((stderr, "%s\n", "Symbol")); if (!yy_SpecialChar(G)) { goto l423; }
  3032. yyprintf((stderr, " ok %s @ %s\n", "Symbol", G->buf+G->pos));
  3033. return 1;
  3034. l423:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3035. yyprintf((stderr, " fail %s @ %s\n", "Symbol", G->buf+G->pos));
  3036. return 0;
  3037. }
  3038. YY_RULE(int) yy_EscapedChar(GREG *G)
  3039. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3040. yyprintf((stderr, "%s\n", "EscapedChar")); if (!yymatchChar(G, '\\')) goto l424;
  3041. { int yypos425= G->pos, yythunkpos425= G->thunkpos; if (!yy_Newline(G)) { goto l425; } goto l424;
  3042. l425:; G->pos= yypos425; G->thunkpos= yythunkpos425;
  3043. } 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 l424;
  3044. yyprintf((stderr, " ok %s @ %s\n", "EscapedChar", G->buf+G->pos));
  3045. return 1;
  3046. l424:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3047. yyprintf((stderr, " fail %s @ %s\n", "EscapedChar", G->buf+G->pos));
  3048. return 0;
  3049. }
  3050. YY_RULE(int) yy_Entity(GREG *G)
  3051. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3052. yyprintf((stderr, "%s\n", "Entity")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l426; if (!yy_LocMarker(G)) { goto l426; } yyDo(G, yySet, -1, 0);
  3053. { int yypos427= G->pos, yythunkpos427= G->thunkpos; if (!yy_HexEntity(G)) { goto l428; } goto l427;
  3054. l428:; G->pos= yypos427; G->thunkpos= yythunkpos427; if (!yy_DecEntity(G)) { goto l429; } goto l427;
  3055. l429:; G->pos= yypos427; G->thunkpos= yythunkpos427; if (!yy_CharEntity(G)) { goto l426; }
  3056. }
  3057. l427:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l426; yyDo(G, yy_1_Entity, G->begin, G->end);
  3058. yyprintf((stderr, " ok %s @ %s\n", "Entity", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3059. return 1;
  3060. l426:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3061. yyprintf((stderr, " fail %s @ %s\n", "Entity", G->buf+G->pos));
  3062. return 0;
  3063. }
  3064. YY_RULE(int) yy_RawHtml(GREG *G)
  3065. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3066. yyprintf((stderr, "%s\n", "RawHtml")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l430; if (!yy_LocMarker(G)) { goto l430; } yyDo(G, yySet, -1, 0);
  3067. { int yypos431= G->pos, yythunkpos431= G->thunkpos; if (!yy_HtmlComment(G)) { goto l432; } goto l431;
  3068. l432:; G->pos= yypos431; G->thunkpos= yythunkpos431; if (!yy_HtmlBlockScript(G)) { goto l433; } goto l431;
  3069. l433:; G->pos= yypos431; G->thunkpos= yythunkpos431; if (!yy_HtmlTag(G)) { goto l430; }
  3070. }
  3071. l431:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l430; yyDo(G, yy_1_RawHtml, G->begin, G->end);
  3072. yyprintf((stderr, " ok %s @ %s\n", "RawHtml", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3073. return 1;
  3074. l430:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3075. yyprintf((stderr, " fail %s @ %s\n", "RawHtml", G->buf+G->pos));
  3076. return 0;
  3077. }
  3078. YY_RULE(int) yy_Code(GREG *G)
  3079. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3080. yyprintf((stderr, "%s\n", "Code")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l434;
  3081. { int yypos435= G->pos, yythunkpos435= G->thunkpos; if (!yy_Ticks1(G)) { goto l436; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l436; }
  3082. { int yypos439= G->pos, yythunkpos439= G->thunkpos;
  3083. { int yypos443= G->pos, yythunkpos443= G->thunkpos; if (!yymatchChar(G, '`')) goto l443; goto l440;
  3084. l443:; G->pos= yypos443; G->thunkpos= yythunkpos443;
  3085. } if (!yy_Nonspacechar(G)) { goto l440; }
  3086. l441:;
  3087. { int yypos442= G->pos, yythunkpos442= G->thunkpos;
  3088. { int yypos444= G->pos, yythunkpos444= G->thunkpos; if (!yymatchChar(G, '`')) goto l444; goto l442;
  3089. l444:; G->pos= yypos444; G->thunkpos= yythunkpos444;
  3090. } if (!yy_Nonspacechar(G)) { goto l442; } goto l441;
  3091. l442:; G->pos= yypos442; G->thunkpos= yythunkpos442;
  3092. } goto l439;
  3093. l440:; G->pos= yypos439; G->thunkpos= yythunkpos439;
  3094. { int yypos446= G->pos, yythunkpos446= G->thunkpos; if (!yy_Ticks1(G)) { goto l446; } goto l445;
  3095. l446:; G->pos= yypos446; G->thunkpos= yythunkpos446;
  3096. } if (!yymatchChar(G, '`')) goto l445;
  3097. l447:;
  3098. { int yypos448= G->pos, yythunkpos448= G->thunkpos; if (!yymatchChar(G, '`')) goto l448; goto l447;
  3099. l448:; G->pos= yypos448; G->thunkpos= yythunkpos448;
  3100. } goto l439;
  3101. l445:; G->pos= yypos439; G->thunkpos= yythunkpos439;
  3102. { int yypos449= G->pos, yythunkpos449= G->thunkpos; if (!yy_Sp(G)) { goto l449; } if (!yy_Ticks1(G)) { goto l449; } goto l436;
  3103. l449:; G->pos= yypos449; G->thunkpos= yythunkpos449;
  3104. }
  3105. { int yypos450= G->pos, yythunkpos450= G->thunkpos; if (!yy_Spacechar(G)) { goto l451; } goto l450;
  3106. l451:; G->pos= yypos450; G->thunkpos= yythunkpos450; if (!yy_Newline(G)) { goto l436; }
  3107. { int yypos452= G->pos, yythunkpos452= G->thunkpos; if (!yy_BlankLine(G)) { goto l452; } goto l436;
  3108. l452:; G->pos= yypos452; G->thunkpos= yythunkpos452;
  3109. }
  3110. }
  3111. l450:;
  3112. }
  3113. l439:;
  3114. l437:;
  3115. { int yypos438= G->pos, yythunkpos438= G->thunkpos;
  3116. { int yypos453= G->pos, yythunkpos453= G->thunkpos;
  3117. { int yypos457= G->pos, yythunkpos457= G->thunkpos; if (!yymatchChar(G, '`')) goto l457; goto l454;
  3118. l457:; G->pos= yypos457; G->thunkpos= yythunkpos457;
  3119. } if (!yy_Nonspacechar(G)) { goto l454; }
  3120. l455:;
  3121. { int yypos456= G->pos, yythunkpos456= G->thunkpos;
  3122. { int yypos458= G->pos, yythunkpos458= G->thunkpos; if (!yymatchChar(G, '`')) goto l458; goto l456;
  3123. l458:; G->pos= yypos458; G->thunkpos= yythunkpos458;
  3124. } if (!yy_Nonspacechar(G)) { goto l456; } goto l455;
  3125. l456:; G->pos= yypos456; G->thunkpos= yythunkpos456;
  3126. } goto l453;
  3127. l454:; G->pos= yypos453; G->thunkpos= yythunkpos453;
  3128. { int yypos460= G->pos, yythunkpos460= G->thunkpos; if (!yy_Ticks1(G)) { goto l460; } goto l459;
  3129. l460:; G->pos= yypos460; G->thunkpos= yythunkpos460;
  3130. } if (!yymatchChar(G, '`')) goto l459;
  3131. l461:;
  3132. { int yypos462= G->pos, yythunkpos462= G->thunkpos; if (!yymatchChar(G, '`')) goto l462; goto l461;
  3133. l462:; G->pos= yypos462; G->thunkpos= yythunkpos462;
  3134. } goto l453;
  3135. l459:; G->pos= yypos453; G->thunkpos= yythunkpos453;
  3136. { int yypos463= G->pos, yythunkpos463= G->thunkpos; if (!yy_Sp(G)) { goto l463; } if (!yy_Ticks1(G)) { goto l463; } goto l438;
  3137. l463:; G->pos= yypos463; G->thunkpos= yythunkpos463;
  3138. }
  3139. { int yypos464= G->pos, yythunkpos464= G->thunkpos; if (!yy_Spacechar(G)) { goto l465; } goto l464;
  3140. l465:; G->pos= yypos464; G->thunkpos= yythunkpos464; if (!yy_Newline(G)) { goto l438; }
  3141. { int yypos466= G->pos, yythunkpos466= G->thunkpos; if (!yy_BlankLine(G)) { goto l466; } goto l438;
  3142. l466:; G->pos= yypos466; G->thunkpos= yythunkpos466;
  3143. }
  3144. }
  3145. l464:;
  3146. }
  3147. l453:; goto l437;
  3148. l438:; G->pos= yypos438; G->thunkpos= yythunkpos438;
  3149. } if (!yy_Sp(G)) { goto l436; } if (!yy_Ticks1(G)) { goto l436; } goto l435;
  3150. l436:; G->pos= yypos435; G->thunkpos= yythunkpos435; if (!yy_Ticks2(G)) { goto l467; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l467; }
  3151. { int yypos470= G->pos, yythunkpos470= G->thunkpos;
  3152. { int yypos474= G->pos, yythunkpos474= G->thunkpos; if (!yymatchChar(G, '`')) goto l474; goto l471;
  3153. l474:; G->pos= yypos474; G->thunkpos= yythunkpos474;
  3154. } if (!yy_Nonspacechar(G)) { goto l471; }
  3155. l472:;
  3156. { int yypos473= G->pos, yythunkpos473= G->thunkpos;
  3157. { int yypos475= G->pos, yythunkpos475= G->thunkpos; if (!yymatchChar(G, '`')) goto l475; goto l473;
  3158. l475:; G->pos= yypos475; G->thunkpos= yythunkpos475;
  3159. } if (!yy_Nonspacechar(G)) { goto l473; } goto l472;
  3160. l473:; G->pos= yypos473; G->thunkpos= yythunkpos473;
  3161. } goto l470;
  3162. l471:; G->pos= yypos470; G->thunkpos= yythunkpos470;
  3163. { int yypos477= G->pos, yythunkpos477= G->thunkpos; if (!yy_Ticks2(G)) { goto l477; } goto l476;
  3164. l477:; G->pos= yypos477; G->thunkpos= yythunkpos477;
  3165. } if (!yymatchChar(G, '`')) goto l476;
  3166. l478:;
  3167. { int yypos479= G->pos, yythunkpos479= G->thunkpos; if (!yymatchChar(G, '`')) goto l479; goto l478;
  3168. l479:; G->pos= yypos479; G->thunkpos= yythunkpos479;
  3169. } goto l470;
  3170. l476:; G->pos= yypos470; G->thunkpos= yythunkpos470;
  3171. { int yypos480= G->pos, yythunkpos480= G->thunkpos; if (!yy_Sp(G)) { goto l480; } if (!yy_Ticks2(G)) { goto l480; } goto l467;
  3172. l480:; G->pos= yypos480; G->thunkpos= yythunkpos480;
  3173. }
  3174. { int yypos481= G->pos, yythunkpos481= G->thunkpos; if (!yy_Spacechar(G)) { goto l482; } goto l481;
  3175. l482:; G->pos= yypos481; G->thunkpos= yythunkpos481; if (!yy_Newline(G)) { goto l467; }
  3176. { int yypos483= G->pos, yythunkpos483= G->thunkpos; if (!yy_BlankLine(G)) { goto l483; } goto l467;
  3177. l483:; G->pos= yypos483; G->thunkpos= yythunkpos483;
  3178. }
  3179. }
  3180. l481:;
  3181. }
  3182. l470:;
  3183. l468:;
  3184. { int yypos469= G->pos, yythunkpos469= G->thunkpos;
  3185. { int yypos484= G->pos, yythunkpos484= G->thunkpos;
  3186. { int yypos488= G->pos, yythunkpos488= G->thunkpos; if (!yymatchChar(G, '`')) goto l488; goto l485;
  3187. l488:; G->pos= yypos488; G->thunkpos= yythunkpos488;
  3188. } if (!yy_Nonspacechar(G)) { goto l485; }
  3189. l486:;
  3190. { int yypos487= G->pos, yythunkpos487= G->thunkpos;
  3191. { int yypos489= G->pos, yythunkpos489= G->thunkpos; if (!yymatchChar(G, '`')) goto l489; goto l487;
  3192. l489:; G->pos= yypos489; G->thunkpos= yythunkpos489;
  3193. } if (!yy_Nonspacechar(G)) { goto l487; } goto l486;
  3194. l487:; G->pos= yypos487; G->thunkpos= yythunkpos487;
  3195. } goto l484;
  3196. l485:; G->pos= yypos484; G->thunkpos= yythunkpos484;
  3197. { int yypos491= G->pos, yythunkpos491= G->thunkpos; if (!yy_Ticks2(G)) { goto l491; } goto l490;
  3198. l491:; G->pos= yypos491; G->thunkpos= yythunkpos491;
  3199. } if (!yymatchChar(G, '`')) goto l490;
  3200. l492:;
  3201. { int yypos493= G->pos, yythunkpos493= G->thunkpos; if (!yymatchChar(G, '`')) goto l493; goto l492;
  3202. l493:; G->pos= yypos493; G->thunkpos= yythunkpos493;
  3203. } goto l484;
  3204. l490:; G->pos= yypos484; G->thunkpos= yythunkpos484;
  3205. { int yypos494= G->pos, yythunkpos494= G->thunkpos; if (!yy_Sp(G)) { goto l494; } if (!yy_Ticks2(G)) { goto l494; } goto l469;
  3206. l494:; G->pos= yypos494; G->thunkpos= yythunkpos494;
  3207. }
  3208. { int yypos495= G->pos, yythunkpos495= G->thunkpos; if (!yy_Spacechar(G)) { goto l496; } goto l495;
  3209. l496:; G->pos= yypos495; G->thunkpos= yythunkpos495; if (!yy_Newline(G)) { goto l469; }
  3210. { int yypos497= G->pos, yythunkpos497= G->thunkpos; if (!yy_BlankLine(G)) { goto l497; } goto l469;
  3211. l497:; G->pos= yypos497; G->thunkpos= yythunkpos497;
  3212. }
  3213. }
  3214. l495:;
  3215. }
  3216. l484:; goto l468;
  3217. l469:; G->pos= yypos469; G->thunkpos= yythunkpos469;
  3218. } if (!yy_Sp(G)) { goto l467; } if (!yy_Ticks2(G)) { goto l467; } goto l435;
  3219. l467:; G->pos= yypos435; G->thunkpos= yythunkpos435; if (!yy_Ticks3(G)) { goto l498; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l498; }
  3220. { int yypos501= G->pos, yythunkpos501= G->thunkpos;
  3221. { int yypos505= G->pos, yythunkpos505= G->thunkpos; if (!yymatchChar(G, '`')) goto l505; goto l502;
  3222. l505:; G->pos= yypos505; G->thunkpos= yythunkpos505;
  3223. } if (!yy_Nonspacechar(G)) { goto l502; }
  3224. l503:;
  3225. { int yypos504= G->pos, yythunkpos504= G->thunkpos;
  3226. { int yypos506= G->pos, yythunkpos506= G->thunkpos; if (!yymatchChar(G, '`')) goto l506; goto l504;
  3227. l506:; G->pos= yypos506; G->thunkpos= yythunkpos506;
  3228. } if (!yy_Nonspacechar(G)) { goto l504; } goto l503;
  3229. l504:; G->pos= yypos504; G->thunkpos= yythunkpos504;
  3230. } goto l501;
  3231. l502:; G->pos= yypos501; G->thunkpos= yythunkpos501;
  3232. { int yypos508= G->pos, yythunkpos508= G->thunkpos; if (!yy_Ticks3(G)) { goto l508; } goto l507;
  3233. l508:; G->pos= yypos508; G->thunkpos= yythunkpos508;
  3234. } if (!yymatchChar(G, '`')) goto l507;
  3235. l509:;
  3236. { int yypos510= G->pos, yythunkpos510= G->thunkpos; if (!yymatchChar(G, '`')) goto l510; goto l509;
  3237. l510:; G->pos= yypos510; G->thunkpos= yythunkpos510;
  3238. } goto l501;
  3239. l507:; G->pos= yypos501; G->thunkpos= yythunkpos501;
  3240. { int yypos511= G->pos, yythunkpos511= G->thunkpos; if (!yy_Sp(G)) { goto l511; } if (!yy_Ticks3(G)) { goto l511; } goto l498;
  3241. l511:; G->pos= yypos511; G->thunkpos= yythunkpos511;
  3242. }
  3243. { int yypos512= G->pos, yythunkpos512= G->thunkpos; if (!yy_Spacechar(G)) { goto l513; } goto l512;
  3244. l513:; G->pos= yypos512; G->thunkpos= yythunkpos512; if (!yy_Newline(G)) { goto l498; }
  3245. { int yypos514= G->pos, yythunkpos514= G->thunkpos; if (!yy_BlankLine(G)) { goto l514; } goto l498;
  3246. l514:; G->pos= yypos514; G->thunkpos= yythunkpos514;
  3247. }
  3248. }
  3249. l512:;
  3250. }
  3251. l501:;
  3252. l499:;
  3253. { int yypos500= G->pos, yythunkpos500= G->thunkpos;
  3254. { int yypos515= G->pos, yythunkpos515= G->thunkpos;
  3255. { int yypos519= G->pos, yythunkpos519= G->thunkpos; if (!yymatchChar(G, '`')) goto l519; goto l516;
  3256. l519:; G->pos= yypos519; G->thunkpos= yythunkpos519;
  3257. } if (!yy_Nonspacechar(G)) { goto l516; }
  3258. l517:;
  3259. { int yypos518= G->pos, yythunkpos518= G->thunkpos;
  3260. { int yypos520= G->pos, yythunkpos520= G->thunkpos; if (!yymatchChar(G, '`')) goto l520; goto l518;
  3261. l520:; G->pos= yypos520; G->thunkpos= yythunkpos520;
  3262. } if (!yy_Nonspacechar(G)) { goto l518; } goto l517;
  3263. l518:; G->pos= yypos518; G->thunkpos= yythunkpos518;
  3264. } goto l515;
  3265. l516:; G->pos= yypos515; G->thunkpos= yythunkpos515;
  3266. { int yypos522= G->pos, yythunkpos522= G->thunkpos; if (!yy_Ticks3(G)) { goto l522; } goto l521;
  3267. l522:; G->pos= yypos522; G->thunkpos= yythunkpos522;
  3268. } if (!yymatchChar(G, '`')) goto l521;
  3269. l523:;
  3270. { int yypos524= G->pos, yythunkpos524= G->thunkpos; if (!yymatchChar(G, '`')) goto l524; goto l523;
  3271. l524:; G->pos= yypos524; G->thunkpos= yythunkpos524;
  3272. } goto l515;
  3273. l521:; G->pos= yypos515; G->thunkpos= yythunkpos515;
  3274. { int yypos525= G->pos, yythunkpos525= G->thunkpos; if (!yy_Sp(G)) { goto l525; } if (!yy_Ticks3(G)) { goto l525; } goto l500;
  3275. l525:; G->pos= yypos525; G->thunkpos= yythunkpos525;
  3276. }
  3277. { int yypos526= G->pos, yythunkpos526= G->thunkpos; if (!yy_Spacechar(G)) { goto l527; } goto l526;
  3278. l527:; G->pos= yypos526; G->thunkpos= yythunkpos526; if (!yy_Newline(G)) { goto l500; }
  3279. { int yypos528= G->pos, yythunkpos528= G->thunkpos; if (!yy_BlankLine(G)) { goto l528; } goto l500;
  3280. l528:; G->pos= yypos528; G->thunkpos= yythunkpos528;
  3281. }
  3282. }
  3283. l526:;
  3284. }
  3285. l515:; goto l499;
  3286. l500:; G->pos= yypos500; G->thunkpos= yythunkpos500;
  3287. } if (!yy_Sp(G)) { goto l498; } if (!yy_Ticks3(G)) { goto l498; } goto l435;
  3288. l498:; G->pos= yypos435; G->thunkpos= yythunkpos435; if (!yy_Ticks4(G)) { goto l529; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l529; }
  3289. { int yypos532= G->pos, yythunkpos532= G->thunkpos;
  3290. { int yypos536= G->pos, yythunkpos536= G->thunkpos; if (!yymatchChar(G, '`')) goto l536; goto l533;
  3291. l536:; G->pos= yypos536; G->thunkpos= yythunkpos536;
  3292. } if (!yy_Nonspacechar(G)) { goto l533; }
  3293. l534:;
  3294. { int yypos535= G->pos, yythunkpos535= G->thunkpos;
  3295. { int yypos537= G->pos, yythunkpos537= G->thunkpos; if (!yymatchChar(G, '`')) goto l537; goto l535;
  3296. l537:; G->pos= yypos537; G->thunkpos= yythunkpos537;
  3297. } if (!yy_Nonspacechar(G)) { goto l535; } goto l534;
  3298. l535:; G->pos= yypos535; G->thunkpos= yythunkpos535;
  3299. } goto l532;
  3300. l533:; G->pos= yypos532; G->thunkpos= yythunkpos532;
  3301. { int yypos539= G->pos, yythunkpos539= G->thunkpos; if (!yy_Ticks4(G)) { goto l539; } goto l538;
  3302. l539:; G->pos= yypos539; G->thunkpos= yythunkpos539;
  3303. } if (!yymatchChar(G, '`')) goto l538;
  3304. l540:;
  3305. { int yypos541= G->pos, yythunkpos541= G->thunkpos; if (!yymatchChar(G, '`')) goto l541; goto l540;
  3306. l541:; G->pos= yypos541; G->thunkpos= yythunkpos541;
  3307. } goto l532;
  3308. l538:; G->pos= yypos532; G->thunkpos= yythunkpos532;
  3309. { int yypos542= G->pos, yythunkpos542= G->thunkpos; if (!yy_Sp(G)) { goto l542; } if (!yy_Ticks4(G)) { goto l542; } goto l529;
  3310. l542:; G->pos= yypos542; G->thunkpos= yythunkpos542;
  3311. }
  3312. { int yypos543= G->pos, yythunkpos543= G->thunkpos; if (!yy_Spacechar(G)) { goto l544; } goto l543;
  3313. l544:; G->pos= yypos543; G->thunkpos= yythunkpos543; if (!yy_Newline(G)) { goto l529; }
  3314. { int yypos545= G->pos, yythunkpos545= G->thunkpos; if (!yy_BlankLine(G)) { goto l545; } goto l529;
  3315. l545:; G->pos= yypos545; G->thunkpos= yythunkpos545;
  3316. }
  3317. }
  3318. l543:;
  3319. }
  3320. l532:;
  3321. l530:;
  3322. { int yypos531= G->pos, yythunkpos531= G->thunkpos;
  3323. { int yypos546= G->pos, yythunkpos546= G->thunkpos;
  3324. { int yypos550= G->pos, yythunkpos550= G->thunkpos; if (!yymatchChar(G, '`')) goto l550; goto l547;
  3325. l550:; G->pos= yypos550; G->thunkpos= yythunkpos550;
  3326. } if (!yy_Nonspacechar(G)) { goto l547; }
  3327. l548:;
  3328. { int yypos549= G->pos, yythunkpos549= G->thunkpos;
  3329. { int yypos551= G->pos, yythunkpos551= G->thunkpos; if (!yymatchChar(G, '`')) goto l551; goto l549;
  3330. l551:; G->pos= yypos551; G->thunkpos= yythunkpos551;
  3331. } if (!yy_Nonspacechar(G)) { goto l549; } goto l548;
  3332. l549:; G->pos= yypos549; G->thunkpos= yythunkpos549;
  3333. } goto l546;
  3334. l547:; G->pos= yypos546; G->thunkpos= yythunkpos546;
  3335. { int yypos553= G->pos, yythunkpos553= G->thunkpos; if (!yy_Ticks4(G)) { goto l553; } goto l552;
  3336. l553:; G->pos= yypos553; G->thunkpos= yythunkpos553;
  3337. } if (!yymatchChar(G, '`')) goto l552;
  3338. l554:;
  3339. { int yypos555= G->pos, yythunkpos555= G->thunkpos; if (!yymatchChar(G, '`')) goto l555; goto l554;
  3340. l555:; G->pos= yypos555; G->thunkpos= yythunkpos555;
  3341. } goto l546;
  3342. l552:; G->pos= yypos546; G->thunkpos= yythunkpos546;
  3343. { int yypos556= G->pos, yythunkpos556= G->thunkpos; if (!yy_Sp(G)) { goto l556; } if (!yy_Ticks4(G)) { goto l556; } goto l531;
  3344. l556:; G->pos= yypos556; G->thunkpos= yythunkpos556;
  3345. }
  3346. { int yypos557= G->pos, yythunkpos557= G->thunkpos; if (!yy_Spacechar(G)) { goto l558; } goto l557;
  3347. l558:; G->pos= yypos557; G->thunkpos= yythunkpos557; if (!yy_Newline(G)) { goto l531; }
  3348. { int yypos559= G->pos, yythunkpos559= G->thunkpos; if (!yy_BlankLine(G)) { goto l559; } goto l531;
  3349. l559:; G->pos= yypos559; G->thunkpos= yythunkpos559;
  3350. }
  3351. }
  3352. l557:;
  3353. }
  3354. l546:; goto l530;
  3355. l531:; G->pos= yypos531; G->thunkpos= yythunkpos531;
  3356. } if (!yy_Sp(G)) { goto l529; } if (!yy_Ticks4(G)) { goto l529; } goto l435;
  3357. l529:; G->pos= yypos435; G->thunkpos= yythunkpos435; if (!yy_Ticks5(G)) { goto l434; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l434; }
  3358. { int yypos562= G->pos, yythunkpos562= G->thunkpos;
  3359. { int yypos566= G->pos, yythunkpos566= G->thunkpos; if (!yymatchChar(G, '`')) goto l566; goto l563;
  3360. l566:; G->pos= yypos566; G->thunkpos= yythunkpos566;
  3361. } if (!yy_Nonspacechar(G)) { goto l563; }
  3362. l564:;
  3363. { int yypos565= G->pos, yythunkpos565= G->thunkpos;
  3364. { int yypos567= G->pos, yythunkpos567= G->thunkpos; if (!yymatchChar(G, '`')) goto l567; goto l565;
  3365. l567:; G->pos= yypos567; G->thunkpos= yythunkpos567;
  3366. } if (!yy_Nonspacechar(G)) { goto l565; } goto l564;
  3367. l565:; G->pos= yypos565; G->thunkpos= yythunkpos565;
  3368. } goto l562;
  3369. l563:; G->pos= yypos562; G->thunkpos= yythunkpos562;
  3370. { int yypos569= G->pos, yythunkpos569= G->thunkpos; if (!yy_Ticks5(G)) { goto l569; } goto l568;
  3371. l569:; G->pos= yypos569; G->thunkpos= yythunkpos569;
  3372. } if (!yymatchChar(G, '`')) goto l568;
  3373. l570:;
  3374. { int yypos571= G->pos, yythunkpos571= G->thunkpos; if (!yymatchChar(G, '`')) goto l571; goto l570;
  3375. l571:; G->pos= yypos571; G->thunkpos= yythunkpos571;
  3376. } goto l562;
  3377. l568:; G->pos= yypos562; G->thunkpos= yythunkpos562;
  3378. { int yypos572= G->pos, yythunkpos572= G->thunkpos; if (!yy_Sp(G)) { goto l572; } if (!yy_Ticks5(G)) { goto l572; } goto l434;
  3379. l572:; G->pos= yypos572; G->thunkpos= yythunkpos572;
  3380. }
  3381. { int yypos573= G->pos, yythunkpos573= G->thunkpos; if (!yy_Spacechar(G)) { goto l574; } goto l573;
  3382. l574:; G->pos= yypos573; G->thunkpos= yythunkpos573; if (!yy_Newline(G)) { goto l434; }
  3383. { int yypos575= G->pos, yythunkpos575= G->thunkpos; if (!yy_BlankLine(G)) { goto l575; } goto l434;
  3384. l575:; G->pos= yypos575; G->thunkpos= yythunkpos575;
  3385. }
  3386. }
  3387. l573:;
  3388. }
  3389. l562:;
  3390. l560:;
  3391. { int yypos561= G->pos, yythunkpos561= G->thunkpos;
  3392. { int yypos576= G->pos, yythunkpos576= G->thunkpos;
  3393. { int yypos580= G->pos, yythunkpos580= G->thunkpos; if (!yymatchChar(G, '`')) goto l580; goto l577;
  3394. l580:; G->pos= yypos580; G->thunkpos= yythunkpos580;
  3395. } if (!yy_Nonspacechar(G)) { goto l577; }
  3396. l578:;
  3397. { int yypos579= G->pos, yythunkpos579= G->thunkpos;
  3398. { int yypos581= G->pos, yythunkpos581= G->thunkpos; if (!yymatchChar(G, '`')) goto l581; goto l579;
  3399. l581:; G->pos= yypos581; G->thunkpos= yythunkpos581;
  3400. } if (!yy_Nonspacechar(G)) { goto l579; } goto l578;
  3401. l579:; G->pos= yypos579; G->thunkpos= yythunkpos579;
  3402. } goto l576;
  3403. l577:; G->pos= yypos576; G->thunkpos= yythunkpos576;
  3404. { int yypos583= G->pos, yythunkpos583= G->thunkpos; if (!yy_Ticks5(G)) { goto l583; } goto l582;
  3405. l583:; G->pos= yypos583; G->thunkpos= yythunkpos583;
  3406. } if (!yymatchChar(G, '`')) goto l582;
  3407. l584:;
  3408. { int yypos585= G->pos, yythunkpos585= G->thunkpos; if (!yymatchChar(G, '`')) goto l585; goto l584;
  3409. l585:; G->pos= yypos585; G->thunkpos= yythunkpos585;
  3410. } goto l576;
  3411. l582:; G->pos= yypos576; G->thunkpos= yythunkpos576;
  3412. { int yypos586= G->pos, yythunkpos586= G->thunkpos; if (!yy_Sp(G)) { goto l586; } if (!yy_Ticks5(G)) { goto l586; } goto l561;
  3413. l586:; G->pos= yypos586; G->thunkpos= yythunkpos586;
  3414. }
  3415. { int yypos587= G->pos, yythunkpos587= G->thunkpos; if (!yy_Spacechar(G)) { goto l588; } goto l587;
  3416. l588:; G->pos= yypos587; G->thunkpos= yythunkpos587; if (!yy_Newline(G)) { goto l561; }
  3417. { int yypos589= G->pos, yythunkpos589= G->thunkpos; if (!yy_BlankLine(G)) { goto l589; } goto l561;
  3418. l589:; G->pos= yypos589; G->thunkpos= yythunkpos589;
  3419. }
  3420. }
  3421. l587:;
  3422. }
  3423. l576:; goto l560;
  3424. l561:; G->pos= yypos561; G->thunkpos= yythunkpos561;
  3425. } if (!yy_Sp(G)) { goto l434; } if (!yy_Ticks5(G)) { goto l434; }
  3426. }
  3427. l435:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l434; yyDo(G, yy_1_Code, G->begin, G->end);
  3428. yyprintf((stderr, " ok %s @ %s\n", "Code", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3429. return 1;
  3430. l434:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3431. yyprintf((stderr, " fail %s @ %s\n", "Code", G->buf+G->pos));
  3432. return 0;
  3433. }
  3434. YY_RULE(int) yy_InlineNote(GREG *G)
  3435. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3436. yyprintf((stderr, "%s\n", "InlineNote")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l590; if (!yymatchString(G, "^[")) goto l590;
  3437. { int yypos593= G->pos, yythunkpos593= G->thunkpos; if (!yymatchChar(G, ']')) goto l593; goto l590;
  3438. l593:; G->pos= yypos593; G->thunkpos= yythunkpos593;
  3439. } if (!yy_Inline(G)) { goto l590; }
  3440. l591:;
  3441. { int yypos592= G->pos, yythunkpos592= G->thunkpos;
  3442. { int yypos594= G->pos, yythunkpos594= G->thunkpos; if (!yymatchChar(G, ']')) goto l594; goto l592;
  3443. l594:; G->pos= yypos594; G->thunkpos= yythunkpos594;
  3444. } if (!yy_Inline(G)) { goto l592; } goto l591;
  3445. l592:; G->pos= yypos592; G->thunkpos= yythunkpos592;
  3446. } if (!yymatchChar(G, ']')) goto l590;
  3447. yyprintf((stderr, " ok %s @ %s\n", "InlineNote", G->buf+G->pos));
  3448. return 1;
  3449. l590:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3450. yyprintf((stderr, " fail %s @ %s\n", "InlineNote", G->buf+G->pos));
  3451. return 0;
  3452. }
  3453. YY_RULE(int) yy_NoteReference(GREG *G)
  3454. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3455. yyprintf((stderr, "%s\n", "NoteReference")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l595; if (!yy_RawNoteReference(G)) { goto l595; }
  3456. yyprintf((stderr, " ok %s @ %s\n", "NoteReference", G->buf+G->pos));
  3457. return 1;
  3458. l595:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3459. yyprintf((stderr, " fail %s @ %s\n", "NoteReference", G->buf+G->pos));
  3460. return 0;
  3461. }
  3462. YY_RULE(int) yy_Link(GREG *G)
  3463. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3464. yyprintf((stderr, "%s\n", "Link"));
  3465. { int yypos597= G->pos, yythunkpos597= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l598; } goto l597;
  3466. l598:; G->pos= yypos597; G->thunkpos= yythunkpos597; if (!yy_ReferenceLink(G)) { goto l599; } goto l597;
  3467. l599:; G->pos= yypos597; G->thunkpos= yythunkpos597; if (!yy_AutoLink(G)) { goto l596; }
  3468. }
  3469. l597:; yyDo(G, yy_1_Link, G->begin, G->end);
  3470. yyprintf((stderr, " ok %s @ %s\n", "Link", G->buf+G->pos));
  3471. return 1;
  3472. l596:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3473. yyprintf((stderr, " fail %s @ %s\n", "Link", G->buf+G->pos));
  3474. return 0;
  3475. }
  3476. YY_RULE(int) yy_Image(GREG *G)
  3477. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3478. yyprintf((stderr, "%s\n", "Image")); if (!yymatchChar(G, '!')) goto l600;
  3479. { int yypos601= G->pos, yythunkpos601= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l602; } goto l601;
  3480. l602:; G->pos= yypos601; G->thunkpos= yythunkpos601; if (!yy_ExplicitLinkSize(G)) { goto l603; } goto l601;
  3481. l603:; G->pos= yypos601; G->thunkpos= yythunkpos601; if (!yy_ReferenceLink(G)) { goto l600; }
  3482. }
  3483. l601:; yyDo(G, yy_1_Image, G->begin, G->end);
  3484. yyprintf((stderr, " ok %s @ %s\n", "Image", G->buf+G->pos));
  3485. return 1;
  3486. l600:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3487. yyprintf((stderr, " fail %s @ %s\n", "Image", G->buf+G->pos));
  3488. return 0;
  3489. }
  3490. YY_RULE(int) yy_Strike(GREG *G)
  3491. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3492. yyprintf((stderr, "%s\n", "Strike")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_STRIKE) )) goto l604; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l604; if (!yy_LocMarker(G)) { goto l604; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "~~")) goto l604;
  3493. { int yypos605= G->pos, yythunkpos605= G->thunkpos; if (!yy_Whitespace(G)) { goto l605; } goto l604;
  3494. l605:; G->pos= yypos605; G->thunkpos= yythunkpos605;
  3495. }
  3496. { int yypos608= G->pos, yythunkpos608= G->thunkpos; if (!yymatchString(G, "~~")) goto l608; goto l604;
  3497. l608:; G->pos= yypos608; G->thunkpos= yythunkpos608;
  3498. } if (!yy_Inline(G)) { goto l604; }
  3499. l606:;
  3500. { int yypos607= G->pos, yythunkpos607= G->thunkpos;
  3501. { int yypos609= G->pos, yythunkpos609= G->thunkpos; if (!yymatchString(G, "~~")) goto l609; goto l607;
  3502. l609:; G->pos= yypos609; G->thunkpos= yythunkpos609;
  3503. } if (!yy_Inline(G)) { goto l607; } goto l606;
  3504. l607:; G->pos= yypos607; G->thunkpos= yythunkpos607;
  3505. } if (!yymatchString(G, "~~")) goto l604; yyText(G, G->begin, G->end); if (!(YY_END)) goto l604; yyDo(G, yy_1_Strike, G->begin, G->end);
  3506. yyprintf((stderr, " ok %s @ %s\n", "Strike", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3507. return 1;
  3508. l604:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3509. yyprintf((stderr, " fail %s @ %s\n", "Strike", G->buf+G->pos));
  3510. return 0;
  3511. }
  3512. YY_RULE(int) yy_Emph(GREG *G)
  3513. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3514. yyprintf((stderr, "%s\n", "Emph"));
  3515. { int yypos611= G->pos, yythunkpos611= G->thunkpos; if (!yy_EmphStar(G)) { goto l612; } goto l611;
  3516. l612:; G->pos= yypos611; G->thunkpos= yythunkpos611; if (!yy_EmphUl(G)) { goto l610; }
  3517. }
  3518. l611:;
  3519. yyprintf((stderr, " ok %s @ %s\n", "Emph", G->buf+G->pos));
  3520. return 1;
  3521. l610:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3522. yyprintf((stderr, " fail %s @ %s\n", "Emph", G->buf+G->pos));
  3523. return 0;
  3524. }
  3525. YY_RULE(int) yy_Strong(GREG *G)
  3526. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3527. yyprintf((stderr, "%s\n", "Strong"));
  3528. { int yypos614= G->pos, yythunkpos614= G->thunkpos; if (!yy_StrongStar(G)) { goto l615; } goto l614;
  3529. l615:; G->pos= yypos614; G->thunkpos= yythunkpos614; if (!yy_StrongUl(G)) { goto l613; }
  3530. }
  3531. l614:;
  3532. yyprintf((stderr, " ok %s @ %s\n", "Strong", G->buf+G->pos));
  3533. return 1;
  3534. l613:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3535. yyprintf((stderr, " fail %s @ %s\n", "Strong", G->buf+G->pos));
  3536. return 0;
  3537. }
  3538. YY_RULE(int) yy_UlOrStarLine(GREG *G)
  3539. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3540. yyprintf((stderr, "%s\n", "UlOrStarLine"));
  3541. { int yypos617= G->pos, yythunkpos617= G->thunkpos; if (!yy_UlLine(G)) { goto l618; } goto l617;
  3542. l618:; G->pos= yypos617; G->thunkpos= yythunkpos617; if (!yy_StarLine(G)) { goto l616; }
  3543. }
  3544. l617:;
  3545. yyprintf((stderr, " ok %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3546. return 1;
  3547. l616:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3548. yyprintf((stderr, " fail %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3549. return 0;
  3550. }
  3551. YY_RULE(int) yy_Str(GREG *G)
  3552. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3553. yyprintf((stderr, "%s\n", "Str")); if (!yy_NormalChar(G)) { goto l619; }
  3554. l620:;
  3555. { int yypos621= G->pos, yythunkpos621= G->thunkpos;
  3556. { int yypos622= G->pos, yythunkpos622= G->thunkpos; if (!yy_NormalChar(G)) { goto l623; } goto l622;
  3557. l623:; G->pos= yypos622; G->thunkpos= yythunkpos622; if (!yymatchChar(G, '_')) goto l621;
  3558. l624:;
  3559. { int yypos625= G->pos, yythunkpos625= G->thunkpos; if (!yymatchChar(G, '_')) goto l625; goto l624;
  3560. l625:; G->pos= yypos625; G->thunkpos= yythunkpos625;
  3561. }
  3562. { int yypos626= G->pos, yythunkpos626= G->thunkpos; if (!yy_Alphanumeric(G)) { goto l621; } G->pos= yypos626; G->thunkpos= yythunkpos626;
  3563. }
  3564. }
  3565. l622:; goto l620;
  3566. l621:; G->pos= yypos621; G->thunkpos= yythunkpos621;
  3567. }
  3568. yyprintf((stderr, " ok %s @ %s\n", "Str", G->buf+G->pos));
  3569. return 1;
  3570. l619:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3571. yyprintf((stderr, " fail %s @ %s\n", "Str", G->buf+G->pos));
  3572. return 0;
  3573. }
  3574. YY_RULE(int) yy_InStyleTags(GREG *G)
  3575. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3576. yyprintf((stderr, "%s\n", "InStyleTags")); if (!yy_StyleOpen(G)) { goto l627; }
  3577. l628:;
  3578. { int yypos629= G->pos, yythunkpos629= G->thunkpos;
  3579. { int yypos630= G->pos, yythunkpos630= G->thunkpos; if (!yy_StyleClose(G)) { goto l630; } goto l629;
  3580. l630:; G->pos= yypos630; G->thunkpos= yythunkpos630;
  3581. } if (!yymatchDot(G)) goto l629; goto l628;
  3582. l629:; G->pos= yypos629; G->thunkpos= yythunkpos629;
  3583. } if (!yy_StyleClose(G)) { goto l627; }
  3584. yyprintf((stderr, " ok %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3585. return 1;
  3586. l627:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3587. yyprintf((stderr, " fail %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3588. return 0;
  3589. }
  3590. YY_RULE(int) yy_StyleClose(GREG *G)
  3591. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3592. yyprintf((stderr, "%s\n", "StyleClose")); if (!yymatchChar(G, '<')) goto l631; if (!yy_Spnl(G)) { goto l631; } if (!yymatchChar(G, '/')) goto l631;
  3593. { int yypos632= G->pos, yythunkpos632= G->thunkpos; if (!yymatchString(G, "style")) goto l633; goto l632;
  3594. l633:; G->pos= yypos632; G->thunkpos= yythunkpos632; if (!yymatchString(G, "STYLE")) goto l631;
  3595. }
  3596. l632:; if (!yy_Spnl(G)) { goto l631; } if (!yymatchChar(G, '>')) goto l631;
  3597. yyprintf((stderr, " ok %s @ %s\n", "StyleClose", G->buf+G->pos));
  3598. return 1;
  3599. l631:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3600. yyprintf((stderr, " fail %s @ %s\n", "StyleClose", G->buf+G->pos));
  3601. return 0;
  3602. }
  3603. YY_RULE(int) yy_StyleOpen(GREG *G)
  3604. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3605. yyprintf((stderr, "%s\n", "StyleOpen")); if (!yymatchChar(G, '<')) goto l634; if (!yy_Spnl(G)) { goto l634; }
  3606. { int yypos635= G->pos, yythunkpos635= G->thunkpos; if (!yymatchString(G, "style")) goto l636; goto l635;
  3607. l636:; G->pos= yypos635; G->thunkpos= yythunkpos635; if (!yymatchString(G, "STYLE")) goto l634;
  3608. }
  3609. l635:; if (!yy_Spnl(G)) { goto l634; }
  3610. l637:;
  3611. { int yypos638= G->pos, yythunkpos638= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l638; } goto l637;
  3612. l638:; G->pos= yypos638; G->thunkpos= yythunkpos638;
  3613. } if (!yymatchChar(G, '>')) goto l634;
  3614. yyprintf((stderr, " ok %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3615. return 1;
  3616. l634:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3617. yyprintf((stderr, " fail %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3618. return 0;
  3619. }
  3620. YY_RULE(int) yy_HtmlBlockType(GREG *G)
  3621. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3622. yyprintf((stderr, "%s\n", "HtmlBlockType"));
  3623. { int yypos640= G->pos, yythunkpos640= G->thunkpos; if (!yymatchString(G, "address")) goto l641; goto l640;
  3624. l641:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "blockquote")) goto l642; goto l640;
  3625. l642:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "center")) goto l643; goto l640;
  3626. l643:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "dir")) goto l644; goto l640;
  3627. l644:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "div")) goto l645; goto l640;
  3628. l645:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "dl")) goto l646; goto l640;
  3629. l646:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "fieldset")) goto l647; goto l640;
  3630. l647:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "form")) goto l648; goto l640;
  3631. l648:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "h1")) goto l649; goto l640;
  3632. l649:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "h2")) goto l650; goto l640;
  3633. l650:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "h3")) goto l651; goto l640;
  3634. l651:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "h4")) goto l652; goto l640;
  3635. l652:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "h5")) goto l653; goto l640;
  3636. l653:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "h6")) goto l654; goto l640;
  3637. l654:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "hr")) goto l655; goto l640;
  3638. l655:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "isindex")) goto l656; goto l640;
  3639. l656:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "menu")) goto l657; goto l640;
  3640. l657:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "noframes")) goto l658; goto l640;
  3641. l658:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "noscript")) goto l659; goto l640;
  3642. l659:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "ol")) goto l660; goto l640;
  3643. l660:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchChar(G, 'p')) goto l661; goto l640;
  3644. l661:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "pre")) goto l662; goto l640;
  3645. l662:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "table")) goto l663; goto l640;
  3646. l663:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "ul")) goto l664; goto l640;
  3647. l664:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "dd")) goto l665; goto l640;
  3648. l665:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "dt")) goto l666; goto l640;
  3649. l666:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "frameset")) goto l667; goto l640;
  3650. l667:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "li")) goto l668; goto l640;
  3651. l668:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "tbody")) goto l669; goto l640;
  3652. l669:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "td")) goto l670; goto l640;
  3653. l670:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "tfoot")) goto l671; goto l640;
  3654. l671:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "th")) goto l672; goto l640;
  3655. l672:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "thead")) goto l673; goto l640;
  3656. l673:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "tr")) goto l674; goto l640;
  3657. l674:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "script")) goto l675; goto l640;
  3658. l675:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "ADDRESS")) goto l676; goto l640;
  3659. l676:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "BLOCKQUOTE")) goto l677; goto l640;
  3660. l677:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "CENTER")) goto l678; goto l640;
  3661. l678:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "DIR")) goto l679; goto l640;
  3662. l679:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "DIV")) goto l680; goto l640;
  3663. l680:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "DL")) goto l681; goto l640;
  3664. l681:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "FIELDSET")) goto l682; goto l640;
  3665. l682:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "FORM")) goto l683; goto l640;
  3666. l683:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "H1")) goto l684; goto l640;
  3667. l684:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "H2")) goto l685; goto l640;
  3668. l685:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "H3")) goto l686; goto l640;
  3669. l686:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "H4")) goto l687; goto l640;
  3670. l687:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "H5")) goto l688; goto l640;
  3671. l688:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "H6")) goto l689; goto l640;
  3672. l689:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "HR")) goto l690; goto l640;
  3673. l690:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "ISINDEX")) goto l691; goto l640;
  3674. l691:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "MENU")) goto l692; goto l640;
  3675. l692:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "NOFRAMES")) goto l693; goto l640;
  3676. l693:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "NOSCRIPT")) goto l694; goto l640;
  3677. l694:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "OL")) goto l695; goto l640;
  3678. l695:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchChar(G, 'P')) goto l696; goto l640;
  3679. l696:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "PRE")) goto l697; goto l640;
  3680. l697:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "TABLE")) goto l698; goto l640;
  3681. l698:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "UL")) goto l699; goto l640;
  3682. l699:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "DD")) goto l700; goto l640;
  3683. l700:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "DT")) goto l701; goto l640;
  3684. l701:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "FRAMESET")) goto l702; goto l640;
  3685. l702:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "LI")) goto l703; goto l640;
  3686. l703:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "TBODY")) goto l704; goto l640;
  3687. l704:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "TD")) goto l705; goto l640;
  3688. l705:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "TFOOT")) goto l706; goto l640;
  3689. l706:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "TH")) goto l707; goto l640;
  3690. l707:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "THEAD")) goto l708; goto l640;
  3691. l708:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "TR")) goto l709; goto l640;
  3692. l709:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yymatchString(G, "SCRIPT")) goto l639;
  3693. }
  3694. l640:;
  3695. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3696. return 1;
  3697. l639:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3698. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3699. return 0;
  3700. }
  3701. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G)
  3702. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3703. yyprintf((stderr, "%s\n", "HtmlBlockSelfClosing")); if (!yymatchChar(G, '<')) goto l710; if (!yy_Spnl(G)) { goto l710; } if (!yy_HtmlBlockType(G)) { goto l710; } if (!yy_Spnl(G)) { goto l710; }
  3704. l711:;
  3705. { int yypos712= G->pos, yythunkpos712= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l712; } goto l711;
  3706. l712:; G->pos= yypos712; G->thunkpos= yythunkpos712;
  3707. } if (!yymatchChar(G, '/')) goto l710; if (!yy_Spnl(G)) { goto l710; } if (!yymatchChar(G, '>')) goto l710;
  3708. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3709. return 1;
  3710. l710:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3711. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3712. return 0;
  3713. }
  3714. YY_RULE(int) yy_HtmlComment(GREG *G)
  3715. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3716. yyprintf((stderr, "%s\n", "HtmlComment")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l713; if (!yy_LocMarker(G)) { goto l713; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "<!--")) goto l713;
  3717. l714:;
  3718. { int yypos715= G->pos, yythunkpos715= G->thunkpos;
  3719. { int yypos716= G->pos, yythunkpos716= G->thunkpos; if (!yymatchString(G, "-->")) goto l716; goto l715;
  3720. l716:; G->pos= yypos716; G->thunkpos= yythunkpos716;
  3721. } if (!yymatchDot(G)) goto l715; goto l714;
  3722. l715:; G->pos= yypos715; G->thunkpos= yythunkpos715;
  3723. } if (!yymatchString(G, "-->")) goto l713; yyText(G, G->begin, G->end); if (!(YY_END)) goto l713; yyDo(G, yy_1_HtmlComment, G->begin, G->end);
  3724. yyprintf((stderr, " ok %s @ %s\n", "HtmlComment", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3725. return 1;
  3726. l713:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3727. yyprintf((stderr, " fail %s @ %s\n", "HtmlComment", G->buf+G->pos));
  3728. return 0;
  3729. }
  3730. YY_RULE(int) yy_HtmlBlockInTags(GREG *G)
  3731. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3732. yyprintf((stderr, "%s\n", "HtmlBlockInTags"));
  3733. { int yypos718= G->pos, yythunkpos718= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l719; } goto l718;
  3734. l719:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockBlockquote(G)) { goto l720; } goto l718;
  3735. l720:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockCenter(G)) { goto l721; } goto l718;
  3736. l721:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockDir(G)) { goto l722; } goto l718;
  3737. l722:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockDiv(G)) { goto l723; } goto l718;
  3738. l723:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockDl(G)) { goto l724; } goto l718;
  3739. l724:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockFieldset(G)) { goto l725; } goto l718;
  3740. l725:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockForm(G)) { goto l726; } goto l718;
  3741. l726:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockH1(G)) { goto l727; } goto l718;
  3742. l727:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockH2(G)) { goto l728; } goto l718;
  3743. l728:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockH3(G)) { goto l729; } goto l718;
  3744. l729:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockH4(G)) { goto l730; } goto l718;
  3745. l730:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockH5(G)) { goto l731; } goto l718;
  3746. l731:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockH6(G)) { goto l732; } goto l718;
  3747. l732:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockMenu(G)) { goto l733; } goto l718;
  3748. l733:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockNoframes(G)) { goto l734; } goto l718;
  3749. l734:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockNoscript(G)) { goto l735; } goto l718;
  3750. l735:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockOl(G)) { goto l736; } goto l718;
  3751. l736:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockP(G)) { goto l737; } goto l718;
  3752. l737:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockPre(G)) { goto l738; } goto l718;
  3753. l738:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockTable(G)) { goto l739; } goto l718;
  3754. l739:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockUl(G)) { goto l740; } goto l718;
  3755. l740:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockDd(G)) { goto l741; } goto l718;
  3756. l741:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockDt(G)) { goto l742; } goto l718;
  3757. l742:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockFrameset(G)) { goto l743; } goto l718;
  3758. l743:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockLi(G)) { goto l744; } goto l718;
  3759. l744:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockTbody(G)) { goto l745; } goto l718;
  3760. l745:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockTd(G)) { goto l746; } goto l718;
  3761. l746:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockTfoot(G)) { goto l747; } goto l718;
  3762. l747:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockTh(G)) { goto l748; } goto l718;
  3763. l748:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockThead(G)) { goto l749; } goto l718;
  3764. l749:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockTr(G)) { goto l750; } goto l718;
  3765. l750:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockScript(G)) { goto l751; } goto l718;
  3766. l751:; G->pos= yypos718; G->thunkpos= yythunkpos718; if (!yy_HtmlBlockHead(G)) { goto l717; }
  3767. }
  3768. l718:;
  3769. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3770. return 1;
  3771. l717:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3772. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3773. return 0;
  3774. }
  3775. YY_RULE(int) yy_HtmlBlockHead(GREG *G)
  3776. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3777. yyprintf((stderr, "%s\n", "HtmlBlockHead")); if (!yy_HtmlBlockOpenHead(G)) { goto l752; }
  3778. l753:;
  3779. { int yypos754= G->pos, yythunkpos754= G->thunkpos;
  3780. { int yypos755= G->pos, yythunkpos755= G->thunkpos; if (!yy_HtmlBlockCloseHead(G)) { goto l755; } goto l754;
  3781. l755:; G->pos= yypos755; G->thunkpos= yythunkpos755;
  3782. } if (!yymatchDot(G)) goto l754; goto l753;
  3783. l754:; G->pos= yypos754; G->thunkpos= yythunkpos754;
  3784. } if (!yy_HtmlBlockCloseHead(G)) { goto l752; }
  3785. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3786. return 1;
  3787. l752:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3788. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3789. return 0;
  3790. }
  3791. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G)
  3792. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3793. yyprintf((stderr, "%s\n", "HtmlBlockCloseHead")); if (!yymatchChar(G, '<')) goto l756; if (!yy_Spnl(G)) { goto l756; } if (!yymatchChar(G, '/')) goto l756;
  3794. { int yypos757= G->pos, yythunkpos757= G->thunkpos; if (!yymatchString(G, "head")) goto l758; goto l757;
  3795. l758:; G->pos= yypos757; G->thunkpos= yythunkpos757; if (!yymatchString(G, "HEAD")) goto l756;
  3796. }
  3797. l757:; if (!yy_Spnl(G)) { goto l756; } if (!yymatchChar(G, '>')) goto l756;
  3798. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3799. return 1;
  3800. l756:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3801. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3802. return 0;
  3803. }
  3804. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G)
  3805. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3806. yyprintf((stderr, "%s\n", "HtmlBlockOpenHead")); if (!yymatchChar(G, '<')) goto l759; if (!yy_Spnl(G)) { goto l759; }
  3807. { int yypos760= G->pos, yythunkpos760= G->thunkpos; if (!yymatchString(G, "head")) goto l761; goto l760;
  3808. l761:; G->pos= yypos760; G->thunkpos= yythunkpos760; if (!yymatchString(G, "HEAD")) goto l759;
  3809. }
  3810. l760:; if (!yy_Spnl(G)) { goto l759; }
  3811. l762:;
  3812. { int yypos763= G->pos, yythunkpos763= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l763; } goto l762;
  3813. l763:; G->pos= yypos763; G->thunkpos= yythunkpos763;
  3814. } if (!yymatchChar(G, '>')) goto l759;
  3815. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3816. return 1;
  3817. l759:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3818. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3819. return 0;
  3820. }
  3821. YY_RULE(int) yy_HtmlBlockScript(GREG *G)
  3822. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3823. yyprintf((stderr, "%s\n", "HtmlBlockScript")); if (!yy_HtmlBlockOpenScript(G)) { goto l764; }
  3824. l765:;
  3825. { int yypos766= G->pos, yythunkpos766= G->thunkpos;
  3826. { int yypos767= G->pos, yythunkpos767= G->thunkpos; if (!yy_HtmlBlockCloseScript(G)) { goto l767; } goto l766;
  3827. l767:; G->pos= yypos767; G->thunkpos= yythunkpos767;
  3828. } if (!yymatchDot(G)) goto l766; goto l765;
  3829. l766:; G->pos= yypos766; G->thunkpos= yythunkpos766;
  3830. } if (!yy_HtmlBlockCloseScript(G)) { goto l764; }
  3831. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  3832. return 1;
  3833. l764:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3834. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  3835. return 0;
  3836. }
  3837. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G)
  3838. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3839. yyprintf((stderr, "%s\n", "HtmlBlockCloseScript")); if (!yymatchChar(G, '<')) goto l768; if (!yy_Spnl(G)) { goto l768; } if (!yymatchChar(G, '/')) goto l768;
  3840. { int yypos769= G->pos, yythunkpos769= G->thunkpos; if (!yymatchString(G, "script")) goto l770; goto l769;
  3841. l770:; G->pos= yypos769; G->thunkpos= yythunkpos769; if (!yymatchString(G, "SCRIPT")) goto l768;
  3842. }
  3843. l769:; if (!yy_Spnl(G)) { goto l768; } if (!yymatchChar(G, '>')) goto l768;
  3844. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  3845. return 1;
  3846. l768:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3847. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  3848. return 0;
  3849. }
  3850. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G)
  3851. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3852. yyprintf((stderr, "%s\n", "HtmlBlockOpenScript")); if (!yymatchChar(G, '<')) goto l771; if (!yy_Spnl(G)) { goto l771; }
  3853. { int yypos772= G->pos, yythunkpos772= G->thunkpos; if (!yymatchString(G, "script")) goto l773; goto l772;
  3854. l773:; G->pos= yypos772; G->thunkpos= yythunkpos772; if (!yymatchString(G, "SCRIPT")) goto l771;
  3855. }
  3856. l772:; if (!yy_Spnl(G)) { goto l771; }
  3857. l774:;
  3858. { int yypos775= G->pos, yythunkpos775= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l775; } goto l774;
  3859. l775:; G->pos= yypos775; G->thunkpos= yythunkpos775;
  3860. } if (!yymatchChar(G, '>')) goto l771;
  3861. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  3862. return 1;
  3863. l771:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3864. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  3865. return 0;
  3866. }
  3867. YY_RULE(int) yy_HtmlBlockTr(GREG *G)
  3868. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3869. yyprintf((stderr, "%s\n", "HtmlBlockTr")); if (!yy_HtmlBlockOpenTr(G)) { goto l776; }
  3870. l777:;
  3871. { int yypos778= G->pos, yythunkpos778= G->thunkpos;
  3872. { int yypos779= G->pos, yythunkpos779= G->thunkpos; if (!yy_HtmlBlockTr(G)) { goto l780; } goto l779;
  3873. l780:; G->pos= yypos779; G->thunkpos= yythunkpos779;
  3874. { int yypos781= G->pos, yythunkpos781= G->thunkpos; if (!yy_HtmlBlockCloseTr(G)) { goto l781; } goto l778;
  3875. l781:; G->pos= yypos781; G->thunkpos= yythunkpos781;
  3876. } if (!yymatchDot(G)) goto l778;
  3877. }
  3878. l779:; goto l777;
  3879. l778:; G->pos= yypos778; G->thunkpos= yythunkpos778;
  3880. } if (!yy_HtmlBlockCloseTr(G)) { goto l776; }
  3881. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  3882. return 1;
  3883. l776:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3884. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  3885. return 0;
  3886. }
  3887. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G)
  3888. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3889. yyprintf((stderr, "%s\n", "HtmlBlockCloseTr")); if (!yymatchChar(G, '<')) goto l782; if (!yy_Spnl(G)) { goto l782; } if (!yymatchChar(G, '/')) goto l782;
  3890. { int yypos783= G->pos, yythunkpos783= G->thunkpos; if (!yymatchString(G, "tr")) goto l784; goto l783;
  3891. l784:; G->pos= yypos783; G->thunkpos= yythunkpos783; if (!yymatchString(G, "TR")) goto l782;
  3892. }
  3893. l783:; if (!yy_Spnl(G)) { goto l782; } if (!yymatchChar(G, '>')) goto l782;
  3894. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  3895. return 1;
  3896. l782:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3897. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  3898. return 0;
  3899. }
  3900. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G)
  3901. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3902. yyprintf((stderr, "%s\n", "HtmlBlockOpenTr")); if (!yymatchChar(G, '<')) goto l785; if (!yy_Spnl(G)) { goto l785; }
  3903. { int yypos786= G->pos, yythunkpos786= G->thunkpos; if (!yymatchString(G, "tr")) goto l787; goto l786;
  3904. l787:; G->pos= yypos786; G->thunkpos= yythunkpos786; if (!yymatchString(G, "TR")) goto l785;
  3905. }
  3906. l786:; if (!yy_Spnl(G)) { goto l785; }
  3907. l788:;
  3908. { int yypos789= G->pos, yythunkpos789= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l789; } goto l788;
  3909. l789:; G->pos= yypos789; G->thunkpos= yythunkpos789;
  3910. } if (!yymatchChar(G, '>')) goto l785;
  3911. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  3912. return 1;
  3913. l785:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3914. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  3915. return 0;
  3916. }
  3917. YY_RULE(int) yy_HtmlBlockThead(GREG *G)
  3918. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3919. yyprintf((stderr, "%s\n", "HtmlBlockThead")); if (!yy_HtmlBlockOpenThead(G)) { goto l790; }
  3920. l791:;
  3921. { int yypos792= G->pos, yythunkpos792= G->thunkpos;
  3922. { int yypos793= G->pos, yythunkpos793= G->thunkpos; if (!yy_HtmlBlockThead(G)) { goto l794; } goto l793;
  3923. l794:; G->pos= yypos793; G->thunkpos= yythunkpos793;
  3924. { int yypos795= G->pos, yythunkpos795= G->thunkpos; if (!yy_HtmlBlockCloseThead(G)) { goto l795; } goto l792;
  3925. l795:; G->pos= yypos795; G->thunkpos= yythunkpos795;
  3926. } if (!yymatchDot(G)) goto l792;
  3927. }
  3928. l793:; goto l791;
  3929. l792:; G->pos= yypos792; G->thunkpos= yythunkpos792;
  3930. } if (!yy_HtmlBlockCloseThead(G)) { goto l790; }
  3931. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  3932. return 1;
  3933. l790:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3934. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  3935. return 0;
  3936. }
  3937. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G)
  3938. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3939. yyprintf((stderr, "%s\n", "HtmlBlockCloseThead")); if (!yymatchChar(G, '<')) goto l796; if (!yy_Spnl(G)) { goto l796; } if (!yymatchChar(G, '/')) goto l796;
  3940. { int yypos797= G->pos, yythunkpos797= G->thunkpos; if (!yymatchString(G, "thead")) goto l798; goto l797;
  3941. l798:; G->pos= yypos797; G->thunkpos= yythunkpos797; if (!yymatchString(G, "THEAD")) goto l796;
  3942. }
  3943. l797:; if (!yy_Spnl(G)) { goto l796; } if (!yymatchChar(G, '>')) goto l796;
  3944. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  3945. return 1;
  3946. l796:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3947. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  3948. return 0;
  3949. }
  3950. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G)
  3951. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3952. yyprintf((stderr, "%s\n", "HtmlBlockOpenThead")); if (!yymatchChar(G, '<')) goto l799; if (!yy_Spnl(G)) { goto l799; }
  3953. { int yypos800= G->pos, yythunkpos800= G->thunkpos; if (!yymatchString(G, "thead")) goto l801; goto l800;
  3954. l801:; G->pos= yypos800; G->thunkpos= yythunkpos800; if (!yymatchString(G, "THEAD")) goto l799;
  3955. }
  3956. l800:; if (!yy_Spnl(G)) { goto l799; }
  3957. l802:;
  3958. { int yypos803= G->pos, yythunkpos803= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l803; } goto l802;
  3959. l803:; G->pos= yypos803; G->thunkpos= yythunkpos803;
  3960. } if (!yymatchChar(G, '>')) goto l799;
  3961. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  3962. return 1;
  3963. l799:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3964. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  3965. return 0;
  3966. }
  3967. YY_RULE(int) yy_HtmlBlockTh(GREG *G)
  3968. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3969. yyprintf((stderr, "%s\n", "HtmlBlockTh")); if (!yy_HtmlBlockOpenTh(G)) { goto l804; }
  3970. l805:;
  3971. { int yypos806= G->pos, yythunkpos806= G->thunkpos;
  3972. { int yypos807= G->pos, yythunkpos807= G->thunkpos; if (!yy_HtmlBlockTh(G)) { goto l808; } goto l807;
  3973. l808:; G->pos= yypos807; G->thunkpos= yythunkpos807;
  3974. { int yypos809= G->pos, yythunkpos809= G->thunkpos; if (!yy_HtmlBlockCloseTh(G)) { goto l809; } goto l806;
  3975. l809:; G->pos= yypos809; G->thunkpos= yythunkpos809;
  3976. } if (!yymatchDot(G)) goto l806;
  3977. }
  3978. l807:; goto l805;
  3979. l806:; G->pos= yypos806; G->thunkpos= yythunkpos806;
  3980. } if (!yy_HtmlBlockCloseTh(G)) { goto l804; }
  3981. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  3982. return 1;
  3983. l804:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3984. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  3985. return 0;
  3986. }
  3987. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G)
  3988. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3989. yyprintf((stderr, "%s\n", "HtmlBlockCloseTh")); if (!yymatchChar(G, '<')) goto l810; if (!yy_Spnl(G)) { goto l810; } if (!yymatchChar(G, '/')) goto l810;
  3990. { int yypos811= G->pos, yythunkpos811= G->thunkpos; if (!yymatchString(G, "th")) goto l812; goto l811;
  3991. l812:; G->pos= yypos811; G->thunkpos= yythunkpos811; if (!yymatchString(G, "TH")) goto l810;
  3992. }
  3993. l811:; if (!yy_Spnl(G)) { goto l810; } if (!yymatchChar(G, '>')) goto l810;
  3994. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  3995. return 1;
  3996. l810:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3997. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  3998. return 0;
  3999. }
  4000. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G)
  4001. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4002. yyprintf((stderr, "%s\n", "HtmlBlockOpenTh")); if (!yymatchChar(G, '<')) goto l813; if (!yy_Spnl(G)) { goto l813; }
  4003. { int yypos814= G->pos, yythunkpos814= G->thunkpos; if (!yymatchString(G, "th")) goto l815; goto l814;
  4004. l815:; G->pos= yypos814; G->thunkpos= yythunkpos814; if (!yymatchString(G, "TH")) goto l813;
  4005. }
  4006. l814:; if (!yy_Spnl(G)) { goto l813; }
  4007. l816:;
  4008. { int yypos817= G->pos, yythunkpos817= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l817; } goto l816;
  4009. l817:; G->pos= yypos817; G->thunkpos= yythunkpos817;
  4010. } if (!yymatchChar(G, '>')) goto l813;
  4011. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  4012. return 1;
  4013. l813:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4014. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  4015. return 0;
  4016. }
  4017. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G)
  4018. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4019. yyprintf((stderr, "%s\n", "HtmlBlockTfoot")); if (!yy_HtmlBlockOpenTfoot(G)) { goto l818; }
  4020. l819:;
  4021. { int yypos820= G->pos, yythunkpos820= G->thunkpos;
  4022. { int yypos821= G->pos, yythunkpos821= G->thunkpos; if (!yy_HtmlBlockTfoot(G)) { goto l822; } goto l821;
  4023. l822:; G->pos= yypos821; G->thunkpos= yythunkpos821;
  4024. { int yypos823= G->pos, yythunkpos823= G->thunkpos; if (!yy_HtmlBlockCloseTfoot(G)) { goto l823; } goto l820;
  4025. l823:; G->pos= yypos823; G->thunkpos= yythunkpos823;
  4026. } if (!yymatchDot(G)) goto l820;
  4027. }
  4028. l821:; goto l819;
  4029. l820:; G->pos= yypos820; G->thunkpos= yythunkpos820;
  4030. } if (!yy_HtmlBlockCloseTfoot(G)) { goto l818; }
  4031. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  4032. return 1;
  4033. l818:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4034. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  4035. return 0;
  4036. }
  4037. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G)
  4038. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4039. yyprintf((stderr, "%s\n", "HtmlBlockCloseTfoot")); if (!yymatchChar(G, '<')) goto l824; if (!yy_Spnl(G)) { goto l824; } if (!yymatchChar(G, '/')) goto l824;
  4040. { int yypos825= G->pos, yythunkpos825= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l826; goto l825;
  4041. l826:; G->pos= yypos825; G->thunkpos= yythunkpos825; if (!yymatchString(G, "TFOOT")) goto l824;
  4042. }
  4043. l825:; if (!yy_Spnl(G)) { goto l824; } if (!yymatchChar(G, '>')) goto l824;
  4044. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  4045. return 1;
  4046. l824:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4047. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  4048. return 0;
  4049. }
  4050. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G)
  4051. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4052. yyprintf((stderr, "%s\n", "HtmlBlockOpenTfoot")); if (!yymatchChar(G, '<')) goto l827; if (!yy_Spnl(G)) { goto l827; }
  4053. { int yypos828= G->pos, yythunkpos828= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l829; goto l828;
  4054. l829:; G->pos= yypos828; G->thunkpos= yythunkpos828; if (!yymatchString(G, "TFOOT")) goto l827;
  4055. }
  4056. l828:; if (!yy_Spnl(G)) { goto l827; }
  4057. l830:;
  4058. { int yypos831= G->pos, yythunkpos831= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l831; } goto l830;
  4059. l831:; G->pos= yypos831; G->thunkpos= yythunkpos831;
  4060. } if (!yymatchChar(G, '>')) goto l827;
  4061. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  4062. return 1;
  4063. l827:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4064. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  4065. return 0;
  4066. }
  4067. YY_RULE(int) yy_HtmlBlockTd(GREG *G)
  4068. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4069. yyprintf((stderr, "%s\n", "HtmlBlockTd")); if (!yy_HtmlBlockOpenTd(G)) { goto l832; }
  4070. l833:;
  4071. { int yypos834= G->pos, yythunkpos834= G->thunkpos;
  4072. { int yypos835= G->pos, yythunkpos835= G->thunkpos; if (!yy_HtmlBlockTd(G)) { goto l836; } goto l835;
  4073. l836:; G->pos= yypos835; G->thunkpos= yythunkpos835;
  4074. { int yypos837= G->pos, yythunkpos837= G->thunkpos; if (!yy_HtmlBlockCloseTd(G)) { goto l837; } goto l834;
  4075. l837:; G->pos= yypos837; G->thunkpos= yythunkpos837;
  4076. } if (!yymatchDot(G)) goto l834;
  4077. }
  4078. l835:; goto l833;
  4079. l834:; G->pos= yypos834; G->thunkpos= yythunkpos834;
  4080. } if (!yy_HtmlBlockCloseTd(G)) { goto l832; }
  4081. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  4082. return 1;
  4083. l832:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4084. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  4085. return 0;
  4086. }
  4087. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G)
  4088. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4089. yyprintf((stderr, "%s\n", "HtmlBlockCloseTd")); if (!yymatchChar(G, '<')) goto l838; if (!yy_Spnl(G)) { goto l838; } if (!yymatchChar(G, '/')) goto l838;
  4090. { int yypos839= G->pos, yythunkpos839= G->thunkpos; if (!yymatchString(G, "td")) goto l840; goto l839;
  4091. l840:; G->pos= yypos839; G->thunkpos= yythunkpos839; if (!yymatchString(G, "TD")) goto l838;
  4092. }
  4093. l839:; if (!yy_Spnl(G)) { goto l838; } if (!yymatchChar(G, '>')) goto l838;
  4094. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  4095. return 1;
  4096. l838:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4097. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  4098. return 0;
  4099. }
  4100. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G)
  4101. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4102. yyprintf((stderr, "%s\n", "HtmlBlockOpenTd")); if (!yymatchChar(G, '<')) goto l841; if (!yy_Spnl(G)) { goto l841; }
  4103. { int yypos842= G->pos, yythunkpos842= G->thunkpos; if (!yymatchString(G, "td")) goto l843; goto l842;
  4104. l843:; G->pos= yypos842; G->thunkpos= yythunkpos842; if (!yymatchString(G, "TD")) goto l841;
  4105. }
  4106. l842:; if (!yy_Spnl(G)) { goto l841; }
  4107. l844:;
  4108. { int yypos845= G->pos, yythunkpos845= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l845; } goto l844;
  4109. l845:; G->pos= yypos845; G->thunkpos= yythunkpos845;
  4110. } if (!yymatchChar(G, '>')) goto l841;
  4111. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  4112. return 1;
  4113. l841:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4114. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  4115. return 0;
  4116. }
  4117. YY_RULE(int) yy_HtmlBlockTbody(GREG *G)
  4118. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4119. yyprintf((stderr, "%s\n", "HtmlBlockTbody")); if (!yy_HtmlBlockOpenTbody(G)) { goto l846; }
  4120. l847:;
  4121. { int yypos848= G->pos, yythunkpos848= G->thunkpos;
  4122. { int yypos849= G->pos, yythunkpos849= G->thunkpos; if (!yy_HtmlBlockTbody(G)) { goto l850; } goto l849;
  4123. l850:; G->pos= yypos849; G->thunkpos= yythunkpos849;
  4124. { int yypos851= G->pos, yythunkpos851= G->thunkpos; if (!yy_HtmlBlockCloseTbody(G)) { goto l851; } goto l848;
  4125. l851:; G->pos= yypos851; G->thunkpos= yythunkpos851;
  4126. } if (!yymatchDot(G)) goto l848;
  4127. }
  4128. l849:; goto l847;
  4129. l848:; G->pos= yypos848; G->thunkpos= yythunkpos848;
  4130. } if (!yy_HtmlBlockCloseTbody(G)) { goto l846; }
  4131. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  4132. return 1;
  4133. l846:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4134. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  4135. return 0;
  4136. }
  4137. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G)
  4138. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4139. yyprintf((stderr, "%s\n", "HtmlBlockCloseTbody")); if (!yymatchChar(G, '<')) goto l852; if (!yy_Spnl(G)) { goto l852; } if (!yymatchChar(G, '/')) goto l852;
  4140. { int yypos853= G->pos, yythunkpos853= G->thunkpos; if (!yymatchString(G, "tbody")) goto l854; goto l853;
  4141. l854:; G->pos= yypos853; G->thunkpos= yythunkpos853; if (!yymatchString(G, "TBODY")) goto l852;
  4142. }
  4143. l853:; if (!yy_Spnl(G)) { goto l852; } if (!yymatchChar(G, '>')) goto l852;
  4144. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4145. return 1;
  4146. l852:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4147. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4148. return 0;
  4149. }
  4150. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G)
  4151. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4152. yyprintf((stderr, "%s\n", "HtmlBlockOpenTbody")); if (!yymatchChar(G, '<')) goto l855; if (!yy_Spnl(G)) { goto l855; }
  4153. { int yypos856= G->pos, yythunkpos856= G->thunkpos; if (!yymatchString(G, "tbody")) goto l857; goto l856;
  4154. l857:; G->pos= yypos856; G->thunkpos= yythunkpos856; if (!yymatchString(G, "TBODY")) goto l855;
  4155. }
  4156. l856:; if (!yy_Spnl(G)) { goto l855; }
  4157. l858:;
  4158. { int yypos859= G->pos, yythunkpos859= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l859; } goto l858;
  4159. l859:; G->pos= yypos859; G->thunkpos= yythunkpos859;
  4160. } if (!yymatchChar(G, '>')) goto l855;
  4161. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4162. return 1;
  4163. l855:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4164. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4165. return 0;
  4166. }
  4167. YY_RULE(int) yy_HtmlBlockLi(GREG *G)
  4168. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4169. yyprintf((stderr, "%s\n", "HtmlBlockLi")); if (!yy_HtmlBlockOpenLi(G)) { goto l860; }
  4170. l861:;
  4171. { int yypos862= G->pos, yythunkpos862= G->thunkpos;
  4172. { int yypos863= G->pos, yythunkpos863= G->thunkpos; if (!yy_HtmlBlockLi(G)) { goto l864; } goto l863;
  4173. l864:; G->pos= yypos863; G->thunkpos= yythunkpos863;
  4174. { int yypos865= G->pos, yythunkpos865= G->thunkpos; if (!yy_HtmlBlockCloseLi(G)) { goto l865; } goto l862;
  4175. l865:; G->pos= yypos865; G->thunkpos= yythunkpos865;
  4176. } if (!yymatchDot(G)) goto l862;
  4177. }
  4178. l863:; goto l861;
  4179. l862:; G->pos= yypos862; G->thunkpos= yythunkpos862;
  4180. } if (!yy_HtmlBlockCloseLi(G)) { goto l860; }
  4181. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4182. return 1;
  4183. l860:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4184. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4185. return 0;
  4186. }
  4187. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G)
  4188. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4189. yyprintf((stderr, "%s\n", "HtmlBlockCloseLi")); if (!yymatchChar(G, '<')) goto l866; if (!yy_Spnl(G)) { goto l866; } if (!yymatchChar(G, '/')) goto l866;
  4190. { int yypos867= G->pos, yythunkpos867= G->thunkpos; if (!yymatchString(G, "li")) goto l868; goto l867;
  4191. l868:; G->pos= yypos867; G->thunkpos= yythunkpos867; if (!yymatchString(G, "LI")) goto l866;
  4192. }
  4193. l867:; if (!yy_Spnl(G)) { goto l866; } if (!yymatchChar(G, '>')) goto l866;
  4194. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4195. return 1;
  4196. l866:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4197. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4198. return 0;
  4199. }
  4200. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G)
  4201. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4202. yyprintf((stderr, "%s\n", "HtmlBlockOpenLi")); if (!yymatchChar(G, '<')) goto l869; if (!yy_Spnl(G)) { goto l869; }
  4203. { int yypos870= G->pos, yythunkpos870= G->thunkpos; if (!yymatchString(G, "li")) goto l871; goto l870;
  4204. l871:; G->pos= yypos870; G->thunkpos= yythunkpos870; if (!yymatchString(G, "LI")) goto l869;
  4205. }
  4206. l870:; if (!yy_Spnl(G)) { goto l869; }
  4207. l872:;
  4208. { int yypos873= G->pos, yythunkpos873= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l873; } goto l872;
  4209. l873:; G->pos= yypos873; G->thunkpos= yythunkpos873;
  4210. } if (!yymatchChar(G, '>')) goto l869;
  4211. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4212. return 1;
  4213. l869:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4214. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4215. return 0;
  4216. }
  4217. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G)
  4218. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4219. yyprintf((stderr, "%s\n", "HtmlBlockFrameset")); if (!yy_HtmlBlockOpenFrameset(G)) { goto l874; }
  4220. l875:;
  4221. { int yypos876= G->pos, yythunkpos876= G->thunkpos;
  4222. { int yypos877= G->pos, yythunkpos877= G->thunkpos; if (!yy_HtmlBlockFrameset(G)) { goto l878; } goto l877;
  4223. l878:; G->pos= yypos877; G->thunkpos= yythunkpos877;
  4224. { int yypos879= G->pos, yythunkpos879= G->thunkpos; if (!yy_HtmlBlockCloseFrameset(G)) { goto l879; } goto l876;
  4225. l879:; G->pos= yypos879; G->thunkpos= yythunkpos879;
  4226. } if (!yymatchDot(G)) goto l876;
  4227. }
  4228. l877:; goto l875;
  4229. l876:; G->pos= yypos876; G->thunkpos= yythunkpos876;
  4230. } if (!yy_HtmlBlockCloseFrameset(G)) { goto l874; }
  4231. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4232. return 1;
  4233. l874:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4234. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4235. return 0;
  4236. }
  4237. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G)
  4238. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4239. yyprintf((stderr, "%s\n", "HtmlBlockCloseFrameset")); if (!yymatchChar(G, '<')) goto l880; if (!yy_Spnl(G)) { goto l880; } if (!yymatchChar(G, '/')) goto l880;
  4240. { int yypos881= G->pos, yythunkpos881= G->thunkpos; if (!yymatchString(G, "frameset")) goto l882; goto l881;
  4241. l882:; G->pos= yypos881; G->thunkpos= yythunkpos881; if (!yymatchString(G, "FRAMESET")) goto l880;
  4242. }
  4243. l881:; if (!yy_Spnl(G)) { goto l880; } if (!yymatchChar(G, '>')) goto l880;
  4244. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4245. return 1;
  4246. l880:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4247. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4248. return 0;
  4249. }
  4250. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G)
  4251. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4252. yyprintf((stderr, "%s\n", "HtmlBlockOpenFrameset")); if (!yymatchChar(G, '<')) goto l883; if (!yy_Spnl(G)) { goto l883; }
  4253. { int yypos884= G->pos, yythunkpos884= G->thunkpos; if (!yymatchString(G, "frameset")) goto l885; goto l884;
  4254. l885:; G->pos= yypos884; G->thunkpos= yythunkpos884; if (!yymatchString(G, "FRAMESET")) goto l883;
  4255. }
  4256. l884:; if (!yy_Spnl(G)) { goto l883; }
  4257. l886:;
  4258. { int yypos887= G->pos, yythunkpos887= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l887; } goto l886;
  4259. l887:; G->pos= yypos887; G->thunkpos= yythunkpos887;
  4260. } if (!yymatchChar(G, '>')) goto l883;
  4261. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4262. return 1;
  4263. l883:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4264. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4265. return 0;
  4266. }
  4267. YY_RULE(int) yy_HtmlBlockDt(GREG *G)
  4268. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4269. yyprintf((stderr, "%s\n", "HtmlBlockDt")); if (!yy_HtmlBlockOpenDt(G)) { goto l888; }
  4270. l889:;
  4271. { int yypos890= G->pos, yythunkpos890= G->thunkpos;
  4272. { int yypos891= G->pos, yythunkpos891= G->thunkpos; if (!yy_HtmlBlockDt(G)) { goto l892; } goto l891;
  4273. l892:; G->pos= yypos891; G->thunkpos= yythunkpos891;
  4274. { int yypos893= G->pos, yythunkpos893= G->thunkpos; if (!yy_HtmlBlockCloseDt(G)) { goto l893; } goto l890;
  4275. l893:; G->pos= yypos893; G->thunkpos= yythunkpos893;
  4276. } if (!yymatchDot(G)) goto l890;
  4277. }
  4278. l891:; goto l889;
  4279. l890:; G->pos= yypos890; G->thunkpos= yythunkpos890;
  4280. } if (!yy_HtmlBlockCloseDt(G)) { goto l888; }
  4281. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4282. return 1;
  4283. l888:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4284. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4285. return 0;
  4286. }
  4287. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G)
  4288. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4289. yyprintf((stderr, "%s\n", "HtmlBlockCloseDt")); if (!yymatchChar(G, '<')) goto l894; if (!yy_Spnl(G)) { goto l894; } if (!yymatchChar(G, '/')) goto l894;
  4290. { int yypos895= G->pos, yythunkpos895= G->thunkpos; if (!yymatchString(G, "dt")) goto l896; goto l895;
  4291. l896:; G->pos= yypos895; G->thunkpos= yythunkpos895; if (!yymatchString(G, "DT")) goto l894;
  4292. }
  4293. l895:; if (!yy_Spnl(G)) { goto l894; } if (!yymatchChar(G, '>')) goto l894;
  4294. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4295. return 1;
  4296. l894:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4297. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4298. return 0;
  4299. }
  4300. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G)
  4301. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4302. yyprintf((stderr, "%s\n", "HtmlBlockOpenDt")); if (!yymatchChar(G, '<')) goto l897; if (!yy_Spnl(G)) { goto l897; }
  4303. { int yypos898= G->pos, yythunkpos898= G->thunkpos; if (!yymatchString(G, "dt")) goto l899; goto l898;
  4304. l899:; G->pos= yypos898; G->thunkpos= yythunkpos898; if (!yymatchString(G, "DT")) goto l897;
  4305. }
  4306. l898:; if (!yy_Spnl(G)) { goto l897; }
  4307. l900:;
  4308. { int yypos901= G->pos, yythunkpos901= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l901; } goto l900;
  4309. l901:; G->pos= yypos901; G->thunkpos= yythunkpos901;
  4310. } if (!yymatchChar(G, '>')) goto l897;
  4311. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4312. return 1;
  4313. l897:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4314. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4315. return 0;
  4316. }
  4317. YY_RULE(int) yy_HtmlBlockDd(GREG *G)
  4318. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4319. yyprintf((stderr, "%s\n", "HtmlBlockDd")); if (!yy_HtmlBlockOpenDd(G)) { goto l902; }
  4320. l903:;
  4321. { int yypos904= G->pos, yythunkpos904= G->thunkpos;
  4322. { int yypos905= G->pos, yythunkpos905= G->thunkpos; if (!yy_HtmlBlockDd(G)) { goto l906; } goto l905;
  4323. l906:; G->pos= yypos905; G->thunkpos= yythunkpos905;
  4324. { int yypos907= G->pos, yythunkpos907= G->thunkpos; if (!yy_HtmlBlockCloseDd(G)) { goto l907; } goto l904;
  4325. l907:; G->pos= yypos907; G->thunkpos= yythunkpos907;
  4326. } if (!yymatchDot(G)) goto l904;
  4327. }
  4328. l905:; goto l903;
  4329. l904:; G->pos= yypos904; G->thunkpos= yythunkpos904;
  4330. } if (!yy_HtmlBlockCloseDd(G)) { goto l902; }
  4331. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4332. return 1;
  4333. l902:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4334. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4335. return 0;
  4336. }
  4337. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G)
  4338. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4339. yyprintf((stderr, "%s\n", "HtmlBlockCloseDd")); if (!yymatchChar(G, '<')) goto l908; if (!yy_Spnl(G)) { goto l908; } if (!yymatchChar(G, '/')) goto l908;
  4340. { int yypos909= G->pos, yythunkpos909= G->thunkpos; if (!yymatchString(G, "dd")) goto l910; goto l909;
  4341. l910:; G->pos= yypos909; G->thunkpos= yythunkpos909; if (!yymatchString(G, "DD")) goto l908;
  4342. }
  4343. l909:; if (!yy_Spnl(G)) { goto l908; } if (!yymatchChar(G, '>')) goto l908;
  4344. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4345. return 1;
  4346. l908:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4347. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4348. return 0;
  4349. }
  4350. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G)
  4351. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4352. yyprintf((stderr, "%s\n", "HtmlBlockOpenDd")); if (!yymatchChar(G, '<')) goto l911; if (!yy_Spnl(G)) { goto l911; }
  4353. { int yypos912= G->pos, yythunkpos912= G->thunkpos; if (!yymatchString(G, "dd")) goto l913; goto l912;
  4354. l913:; G->pos= yypos912; G->thunkpos= yythunkpos912; if (!yymatchString(G, "DD")) goto l911;
  4355. }
  4356. l912:; if (!yy_Spnl(G)) { goto l911; }
  4357. l914:;
  4358. { int yypos915= G->pos, yythunkpos915= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l915; } goto l914;
  4359. l915:; G->pos= yypos915; G->thunkpos= yythunkpos915;
  4360. } if (!yymatchChar(G, '>')) goto l911;
  4361. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4362. return 1;
  4363. l911:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4364. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4365. return 0;
  4366. }
  4367. YY_RULE(int) yy_HtmlBlockUl(GREG *G)
  4368. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4369. yyprintf((stderr, "%s\n", "HtmlBlockUl")); if (!yy_HtmlBlockOpenUl(G)) { goto l916; }
  4370. l917:;
  4371. { int yypos918= G->pos, yythunkpos918= G->thunkpos;
  4372. { int yypos919= G->pos, yythunkpos919= G->thunkpos; if (!yy_HtmlBlockUl(G)) { goto l920; } goto l919;
  4373. l920:; G->pos= yypos919; G->thunkpos= yythunkpos919;
  4374. { int yypos921= G->pos, yythunkpos921= G->thunkpos; if (!yy_HtmlBlockCloseUl(G)) { goto l921; } goto l918;
  4375. l921:; G->pos= yypos921; G->thunkpos= yythunkpos921;
  4376. } if (!yymatchDot(G)) goto l918;
  4377. }
  4378. l919:; goto l917;
  4379. l918:; G->pos= yypos918; G->thunkpos= yythunkpos918;
  4380. } if (!yy_HtmlBlockCloseUl(G)) { goto l916; }
  4381. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4382. return 1;
  4383. l916:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4384. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4385. return 0;
  4386. }
  4387. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G)
  4388. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4389. yyprintf((stderr, "%s\n", "HtmlBlockCloseUl")); if (!yymatchChar(G, '<')) goto l922; if (!yy_Spnl(G)) { goto l922; } if (!yymatchChar(G, '/')) goto l922;
  4390. { int yypos923= G->pos, yythunkpos923= G->thunkpos; if (!yymatchString(G, "ul")) goto l924; goto l923;
  4391. l924:; G->pos= yypos923; G->thunkpos= yythunkpos923; if (!yymatchString(G, "UL")) goto l922;
  4392. }
  4393. l923:; if (!yy_Spnl(G)) { goto l922; } if (!yymatchChar(G, '>')) goto l922;
  4394. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4395. return 1;
  4396. l922:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4397. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4398. return 0;
  4399. }
  4400. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G)
  4401. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4402. yyprintf((stderr, "%s\n", "HtmlBlockOpenUl")); if (!yymatchChar(G, '<')) goto l925; if (!yy_Spnl(G)) { goto l925; }
  4403. { int yypos926= G->pos, yythunkpos926= G->thunkpos; if (!yymatchString(G, "ul")) goto l927; goto l926;
  4404. l927:; G->pos= yypos926; G->thunkpos= yythunkpos926; if (!yymatchString(G, "UL")) goto l925;
  4405. }
  4406. l926:; if (!yy_Spnl(G)) { goto l925; }
  4407. l928:;
  4408. { int yypos929= G->pos, yythunkpos929= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l929; } goto l928;
  4409. l929:; G->pos= yypos929; G->thunkpos= yythunkpos929;
  4410. } if (!yymatchChar(G, '>')) goto l925;
  4411. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4412. return 1;
  4413. l925:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4414. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4415. return 0;
  4416. }
  4417. YY_RULE(int) yy_HtmlBlockTable(GREG *G)
  4418. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4419. yyprintf((stderr, "%s\n", "HtmlBlockTable")); if (!yy_HtmlBlockOpenTable(G)) { goto l930; }
  4420. l931:;
  4421. { int yypos932= G->pos, yythunkpos932= G->thunkpos;
  4422. { int yypos933= G->pos, yythunkpos933= G->thunkpos; if (!yy_HtmlBlockTable(G)) { goto l934; } goto l933;
  4423. l934:; G->pos= yypos933; G->thunkpos= yythunkpos933;
  4424. { int yypos935= G->pos, yythunkpos935= G->thunkpos; if (!yy_HtmlBlockCloseTable(G)) { goto l935; } goto l932;
  4425. l935:; G->pos= yypos935; G->thunkpos= yythunkpos935;
  4426. } if (!yymatchDot(G)) goto l932;
  4427. }
  4428. l933:; goto l931;
  4429. l932:; G->pos= yypos932; G->thunkpos= yythunkpos932;
  4430. } if (!yy_HtmlBlockCloseTable(G)) { goto l930; }
  4431. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4432. return 1;
  4433. l930:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4434. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4435. return 0;
  4436. }
  4437. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G)
  4438. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4439. yyprintf((stderr, "%s\n", "HtmlBlockCloseTable")); if (!yymatchChar(G, '<')) goto l936; if (!yy_Spnl(G)) { goto l936; } if (!yymatchChar(G, '/')) goto l936;
  4440. { int yypos937= G->pos, yythunkpos937= G->thunkpos; if (!yymatchString(G, "table")) goto l938; goto l937;
  4441. l938:; G->pos= yypos937; G->thunkpos= yythunkpos937; if (!yymatchString(G, "TABLE")) goto l936;
  4442. }
  4443. l937:; if (!yy_Spnl(G)) { goto l936; } if (!yymatchChar(G, '>')) goto l936;
  4444. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4445. return 1;
  4446. l936:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4447. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4448. return 0;
  4449. }
  4450. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G)
  4451. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4452. yyprintf((stderr, "%s\n", "HtmlBlockOpenTable")); if (!yymatchChar(G, '<')) goto l939; if (!yy_Spnl(G)) { goto l939; }
  4453. { int yypos940= G->pos, yythunkpos940= G->thunkpos; if (!yymatchString(G, "table")) goto l941; goto l940;
  4454. l941:; G->pos= yypos940; G->thunkpos= yythunkpos940; if (!yymatchString(G, "TABLE")) goto l939;
  4455. }
  4456. l940:; if (!yy_Spnl(G)) { goto l939; }
  4457. l942:;
  4458. { int yypos943= G->pos, yythunkpos943= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l943; } goto l942;
  4459. l943:; G->pos= yypos943; G->thunkpos= yythunkpos943;
  4460. } if (!yymatchChar(G, '>')) goto l939;
  4461. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4462. return 1;
  4463. l939:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4464. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4465. return 0;
  4466. }
  4467. YY_RULE(int) yy_HtmlBlockPre(GREG *G)
  4468. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4469. yyprintf((stderr, "%s\n", "HtmlBlockPre")); if (!yy_HtmlBlockOpenPre(G)) { goto l944; }
  4470. l945:;
  4471. { int yypos946= G->pos, yythunkpos946= G->thunkpos;
  4472. { int yypos947= G->pos, yythunkpos947= G->thunkpos; if (!yy_HtmlBlockPre(G)) { goto l948; } goto l947;
  4473. l948:; G->pos= yypos947; G->thunkpos= yythunkpos947;
  4474. { int yypos949= G->pos, yythunkpos949= G->thunkpos; if (!yy_HtmlBlockClosePre(G)) { goto l949; } goto l946;
  4475. l949:; G->pos= yypos949; G->thunkpos= yythunkpos949;
  4476. } if (!yymatchDot(G)) goto l946;
  4477. }
  4478. l947:; goto l945;
  4479. l946:; G->pos= yypos946; G->thunkpos= yythunkpos946;
  4480. } if (!yy_HtmlBlockClosePre(G)) { goto l944; }
  4481. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4482. return 1;
  4483. l944:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4484. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4485. return 0;
  4486. }
  4487. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G)
  4488. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4489. yyprintf((stderr, "%s\n", "HtmlBlockClosePre")); if (!yymatchChar(G, '<')) goto l950; if (!yy_Spnl(G)) { goto l950; } if (!yymatchChar(G, '/')) goto l950;
  4490. { int yypos951= G->pos, yythunkpos951= G->thunkpos; if (!yymatchString(G, "pre")) goto l952; goto l951;
  4491. l952:; G->pos= yypos951; G->thunkpos= yythunkpos951; if (!yymatchString(G, "PRE")) goto l950;
  4492. }
  4493. l951:; if (!yy_Spnl(G)) { goto l950; } if (!yymatchChar(G, '>')) goto l950;
  4494. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4495. return 1;
  4496. l950:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4497. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4498. return 0;
  4499. }
  4500. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G)
  4501. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4502. yyprintf((stderr, "%s\n", "HtmlBlockOpenPre")); if (!yymatchChar(G, '<')) goto l953; if (!yy_Spnl(G)) { goto l953; }
  4503. { int yypos954= G->pos, yythunkpos954= G->thunkpos; if (!yymatchString(G, "pre")) goto l955; goto l954;
  4504. l955:; G->pos= yypos954; G->thunkpos= yythunkpos954; if (!yymatchString(G, "PRE")) goto l953;
  4505. }
  4506. l954:; if (!yy_Spnl(G)) { goto l953; }
  4507. l956:;
  4508. { int yypos957= G->pos, yythunkpos957= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l957; } goto l956;
  4509. l957:; G->pos= yypos957; G->thunkpos= yythunkpos957;
  4510. } if (!yymatchChar(G, '>')) goto l953;
  4511. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4512. return 1;
  4513. l953:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4514. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4515. return 0;
  4516. }
  4517. YY_RULE(int) yy_HtmlBlockP(GREG *G)
  4518. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4519. yyprintf((stderr, "%s\n", "HtmlBlockP")); if (!yy_HtmlBlockOpenP(G)) { goto l958; }
  4520. l959:;
  4521. { int yypos960= G->pos, yythunkpos960= G->thunkpos;
  4522. { int yypos961= G->pos, yythunkpos961= G->thunkpos; if (!yy_HtmlBlockP(G)) { goto l962; } goto l961;
  4523. l962:; G->pos= yypos961; G->thunkpos= yythunkpos961;
  4524. { int yypos963= G->pos, yythunkpos963= G->thunkpos; if (!yy_HtmlBlockCloseP(G)) { goto l963; } goto l960;
  4525. l963:; G->pos= yypos963; G->thunkpos= yythunkpos963;
  4526. } if (!yymatchDot(G)) goto l960;
  4527. }
  4528. l961:; goto l959;
  4529. l960:; G->pos= yypos960; G->thunkpos= yythunkpos960;
  4530. } if (!yy_HtmlBlockCloseP(G)) { goto l958; }
  4531. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4532. return 1;
  4533. l958:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4534. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4535. return 0;
  4536. }
  4537. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G)
  4538. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4539. yyprintf((stderr, "%s\n", "HtmlBlockCloseP")); if (!yymatchChar(G, '<')) goto l964; if (!yy_Spnl(G)) { goto l964; } if (!yymatchChar(G, '/')) goto l964;
  4540. { int yypos965= G->pos, yythunkpos965= G->thunkpos; if (!yymatchChar(G, 'p')) goto l966; goto l965;
  4541. l966:; G->pos= yypos965; G->thunkpos= yythunkpos965; if (!yymatchChar(G, 'P')) goto l964;
  4542. }
  4543. l965:; if (!yy_Spnl(G)) { goto l964; } if (!yymatchChar(G, '>')) goto l964;
  4544. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4545. return 1;
  4546. l964:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4547. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4548. return 0;
  4549. }
  4550. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G)
  4551. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4552. yyprintf((stderr, "%s\n", "HtmlBlockOpenP")); if (!yymatchChar(G, '<')) goto l967; if (!yy_Spnl(G)) { goto l967; }
  4553. { int yypos968= G->pos, yythunkpos968= G->thunkpos; if (!yymatchChar(G, 'p')) goto l969; goto l968;
  4554. l969:; G->pos= yypos968; G->thunkpos= yythunkpos968; if (!yymatchChar(G, 'P')) goto l967;
  4555. }
  4556. l968:; if (!yy_Spnl(G)) { goto l967; }
  4557. l970:;
  4558. { int yypos971= G->pos, yythunkpos971= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l971; } goto l970;
  4559. l971:; G->pos= yypos971; G->thunkpos= yythunkpos971;
  4560. } if (!yymatchChar(G, '>')) goto l967;
  4561. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4562. return 1;
  4563. l967:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4564. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4565. return 0;
  4566. }
  4567. YY_RULE(int) yy_HtmlBlockOl(GREG *G)
  4568. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4569. yyprintf((stderr, "%s\n", "HtmlBlockOl")); if (!yy_HtmlBlockOpenOl(G)) { goto l972; }
  4570. l973:;
  4571. { int yypos974= G->pos, yythunkpos974= G->thunkpos;
  4572. { int yypos975= G->pos, yythunkpos975= G->thunkpos; if (!yy_HtmlBlockOl(G)) { goto l976; } goto l975;
  4573. l976:; G->pos= yypos975; G->thunkpos= yythunkpos975;
  4574. { int yypos977= G->pos, yythunkpos977= G->thunkpos; if (!yy_HtmlBlockCloseOl(G)) { goto l977; } goto l974;
  4575. l977:; G->pos= yypos977; G->thunkpos= yythunkpos977;
  4576. } if (!yymatchDot(G)) goto l974;
  4577. }
  4578. l975:; goto l973;
  4579. l974:; G->pos= yypos974; G->thunkpos= yythunkpos974;
  4580. } if (!yy_HtmlBlockCloseOl(G)) { goto l972; }
  4581. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4582. return 1;
  4583. l972:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4584. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4585. return 0;
  4586. }
  4587. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G)
  4588. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4589. yyprintf((stderr, "%s\n", "HtmlBlockCloseOl")); if (!yymatchChar(G, '<')) goto l978; if (!yy_Spnl(G)) { goto l978; } if (!yymatchChar(G, '/')) goto l978;
  4590. { int yypos979= G->pos, yythunkpos979= G->thunkpos; if (!yymatchString(G, "ol")) goto l980; goto l979;
  4591. l980:; G->pos= yypos979; G->thunkpos= yythunkpos979; if (!yymatchString(G, "OL")) goto l978;
  4592. }
  4593. l979:; if (!yy_Spnl(G)) { goto l978; } if (!yymatchChar(G, '>')) goto l978;
  4594. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4595. return 1;
  4596. l978:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4597. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4598. return 0;
  4599. }
  4600. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G)
  4601. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4602. yyprintf((stderr, "%s\n", "HtmlBlockOpenOl")); if (!yymatchChar(G, '<')) goto l981; if (!yy_Spnl(G)) { goto l981; }
  4603. { int yypos982= G->pos, yythunkpos982= G->thunkpos; if (!yymatchString(G, "ol")) goto l983; goto l982;
  4604. l983:; G->pos= yypos982; G->thunkpos= yythunkpos982; if (!yymatchString(G, "OL")) goto l981;
  4605. }
  4606. l982:; if (!yy_Spnl(G)) { goto l981; }
  4607. l984:;
  4608. { int yypos985= G->pos, yythunkpos985= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l985; } goto l984;
  4609. l985:; G->pos= yypos985; G->thunkpos= yythunkpos985;
  4610. } if (!yymatchChar(G, '>')) goto l981;
  4611. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4612. return 1;
  4613. l981:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4614. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4615. return 0;
  4616. }
  4617. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G)
  4618. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4619. yyprintf((stderr, "%s\n", "HtmlBlockNoscript")); if (!yy_HtmlBlockOpenNoscript(G)) { goto l986; }
  4620. l987:;
  4621. { int yypos988= G->pos, yythunkpos988= G->thunkpos;
  4622. { int yypos989= G->pos, yythunkpos989= G->thunkpos; if (!yy_HtmlBlockNoscript(G)) { goto l990; } goto l989;
  4623. l990:; G->pos= yypos989; G->thunkpos= yythunkpos989;
  4624. { int yypos991= G->pos, yythunkpos991= G->thunkpos; if (!yy_HtmlBlockCloseNoscript(G)) { goto l991; } goto l988;
  4625. l991:; G->pos= yypos991; G->thunkpos= yythunkpos991;
  4626. } if (!yymatchDot(G)) goto l988;
  4627. }
  4628. l989:; goto l987;
  4629. l988:; G->pos= yypos988; G->thunkpos= yythunkpos988;
  4630. } if (!yy_HtmlBlockCloseNoscript(G)) { goto l986; }
  4631. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4632. return 1;
  4633. l986:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4634. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4635. return 0;
  4636. }
  4637. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G)
  4638. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4639. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoscript")); if (!yymatchChar(G, '<')) goto l992; if (!yy_Spnl(G)) { goto l992; } if (!yymatchChar(G, '/')) goto l992;
  4640. { int yypos993= G->pos, yythunkpos993= G->thunkpos; if (!yymatchString(G, "noscript")) goto l994; goto l993;
  4641. l994:; G->pos= yypos993; G->thunkpos= yythunkpos993; if (!yymatchString(G, "NOSCRIPT")) goto l992;
  4642. }
  4643. l993:; if (!yy_Spnl(G)) { goto l992; } if (!yymatchChar(G, '>')) goto l992;
  4644. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4645. return 1;
  4646. l992:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4647. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4648. return 0;
  4649. }
  4650. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G)
  4651. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4652. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoscript")); if (!yymatchChar(G, '<')) goto l995; if (!yy_Spnl(G)) { goto l995; }
  4653. { int yypos996= G->pos, yythunkpos996= G->thunkpos; if (!yymatchString(G, "noscript")) goto l997; goto l996;
  4654. l997:; G->pos= yypos996; G->thunkpos= yythunkpos996; if (!yymatchString(G, "NOSCRIPT")) goto l995;
  4655. }
  4656. l996:; if (!yy_Spnl(G)) { goto l995; }
  4657. l998:;
  4658. { int yypos999= G->pos, yythunkpos999= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l999; } goto l998;
  4659. l999:; G->pos= yypos999; G->thunkpos= yythunkpos999;
  4660. } if (!yymatchChar(G, '>')) goto l995;
  4661. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4662. return 1;
  4663. l995:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4664. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4665. return 0;
  4666. }
  4667. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G)
  4668. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4669. yyprintf((stderr, "%s\n", "HtmlBlockNoframes")); if (!yy_HtmlBlockOpenNoframes(G)) { goto l1000; }
  4670. l1001:;
  4671. { int yypos1002= G->pos, yythunkpos1002= G->thunkpos;
  4672. { int yypos1003= G->pos, yythunkpos1003= G->thunkpos; if (!yy_HtmlBlockNoframes(G)) { goto l1004; } goto l1003;
  4673. l1004:; G->pos= yypos1003; G->thunkpos= yythunkpos1003;
  4674. { int yypos1005= G->pos, yythunkpos1005= G->thunkpos; if (!yy_HtmlBlockCloseNoframes(G)) { goto l1005; } goto l1002;
  4675. l1005:; G->pos= yypos1005; G->thunkpos= yythunkpos1005;
  4676. } if (!yymatchDot(G)) goto l1002;
  4677. }
  4678. l1003:; goto l1001;
  4679. l1002:; G->pos= yypos1002; G->thunkpos= yythunkpos1002;
  4680. } if (!yy_HtmlBlockCloseNoframes(G)) { goto l1000; }
  4681. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4682. return 1;
  4683. l1000:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4684. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4685. return 0;
  4686. }
  4687. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G)
  4688. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4689. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoframes")); if (!yymatchChar(G, '<')) goto l1006; if (!yy_Spnl(G)) { goto l1006; } if (!yymatchChar(G, '/')) goto l1006;
  4690. { int yypos1007= G->pos, yythunkpos1007= G->thunkpos; if (!yymatchString(G, "noframes")) goto l1008; goto l1007;
  4691. l1008:; G->pos= yypos1007; G->thunkpos= yythunkpos1007; if (!yymatchString(G, "NOFRAMES")) goto l1006;
  4692. }
  4693. l1007:; if (!yy_Spnl(G)) { goto l1006; } if (!yymatchChar(G, '>')) goto l1006;
  4694. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4695. return 1;
  4696. l1006:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4697. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4698. return 0;
  4699. }
  4700. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G)
  4701. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4702. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoframes")); if (!yymatchChar(G, '<')) goto l1009; if (!yy_Spnl(G)) { goto l1009; }
  4703. { int yypos1010= G->pos, yythunkpos1010= G->thunkpos; if (!yymatchString(G, "noframes")) goto l1011; goto l1010;
  4704. l1011:; G->pos= yypos1010; G->thunkpos= yythunkpos1010; if (!yymatchString(G, "NOFRAMES")) goto l1009;
  4705. }
  4706. l1010:; if (!yy_Spnl(G)) { goto l1009; }
  4707. l1012:;
  4708. { int yypos1013= G->pos, yythunkpos1013= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1013; } goto l1012;
  4709. l1013:; G->pos= yypos1013; G->thunkpos= yythunkpos1013;
  4710. } if (!yymatchChar(G, '>')) goto l1009;
  4711. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4712. return 1;
  4713. l1009:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4714. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4715. return 0;
  4716. }
  4717. YY_RULE(int) yy_HtmlBlockMenu(GREG *G)
  4718. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4719. yyprintf((stderr, "%s\n", "HtmlBlockMenu")); if (!yy_HtmlBlockOpenMenu(G)) { goto l1014; }
  4720. l1015:;
  4721. { int yypos1016= G->pos, yythunkpos1016= G->thunkpos;
  4722. { int yypos1017= G->pos, yythunkpos1017= G->thunkpos; if (!yy_HtmlBlockMenu(G)) { goto l1018; } goto l1017;
  4723. l1018:; G->pos= yypos1017; G->thunkpos= yythunkpos1017;
  4724. { int yypos1019= G->pos, yythunkpos1019= G->thunkpos; if (!yy_HtmlBlockCloseMenu(G)) { goto l1019; } goto l1016;
  4725. l1019:; G->pos= yypos1019; G->thunkpos= yythunkpos1019;
  4726. } if (!yymatchDot(G)) goto l1016;
  4727. }
  4728. l1017:; goto l1015;
  4729. l1016:; G->pos= yypos1016; G->thunkpos= yythunkpos1016;
  4730. } if (!yy_HtmlBlockCloseMenu(G)) { goto l1014; }
  4731. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4732. return 1;
  4733. l1014:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4734. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4735. return 0;
  4736. }
  4737. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G)
  4738. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4739. yyprintf((stderr, "%s\n", "HtmlBlockCloseMenu")); if (!yymatchChar(G, '<')) goto l1020; if (!yy_Spnl(G)) { goto l1020; } if (!yymatchChar(G, '/')) goto l1020;
  4740. { int yypos1021= G->pos, yythunkpos1021= G->thunkpos; if (!yymatchString(G, "menu")) goto l1022; goto l1021;
  4741. l1022:; G->pos= yypos1021; G->thunkpos= yythunkpos1021; if (!yymatchString(G, "MENU")) goto l1020;
  4742. }
  4743. l1021:; if (!yy_Spnl(G)) { goto l1020; } if (!yymatchChar(G, '>')) goto l1020;
  4744. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4745. return 1;
  4746. l1020:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4747. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4748. return 0;
  4749. }
  4750. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G)
  4751. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4752. yyprintf((stderr, "%s\n", "HtmlBlockOpenMenu")); if (!yymatchChar(G, '<')) goto l1023; if (!yy_Spnl(G)) { goto l1023; }
  4753. { int yypos1024= G->pos, yythunkpos1024= G->thunkpos; if (!yymatchString(G, "menu")) goto l1025; goto l1024;
  4754. l1025:; G->pos= yypos1024; G->thunkpos= yythunkpos1024; if (!yymatchString(G, "MENU")) goto l1023;
  4755. }
  4756. l1024:; if (!yy_Spnl(G)) { goto l1023; }
  4757. l1026:;
  4758. { int yypos1027= G->pos, yythunkpos1027= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1027; } goto l1026;
  4759. l1027:; G->pos= yypos1027; G->thunkpos= yythunkpos1027;
  4760. } if (!yymatchChar(G, '>')) goto l1023;
  4761. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4762. return 1;
  4763. l1023:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4764. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4765. return 0;
  4766. }
  4767. YY_RULE(int) yy_HtmlBlockH6(GREG *G)
  4768. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4769. yyprintf((stderr, "%s\n", "HtmlBlockH6")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1028; if (!yy_LocMarker(G)) { goto l1028; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH6(G)) { goto l1028; }
  4770. l1029:;
  4771. { int yypos1030= G->pos, yythunkpos1030= G->thunkpos;
  4772. { int yypos1031= G->pos, yythunkpos1031= G->thunkpos; if (!yy_HtmlBlockH6(G)) { goto l1032; } goto l1031;
  4773. l1032:; G->pos= yypos1031; G->thunkpos= yythunkpos1031;
  4774. { int yypos1033= G->pos, yythunkpos1033= G->thunkpos; if (!yy_HtmlBlockCloseH6(G)) { goto l1033; } goto l1030;
  4775. l1033:; G->pos= yypos1033; G->thunkpos= yythunkpos1033;
  4776. } if (!yymatchDot(G)) goto l1030;
  4777. }
  4778. l1031:; goto l1029;
  4779. l1030:; G->pos= yypos1030; G->thunkpos= yythunkpos1030;
  4780. } if (!yy_HtmlBlockCloseH6(G)) { goto l1028; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1028; yyDo(G, yy_1_HtmlBlockH6, G->begin, G->end);
  4781. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH6", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4782. return 1;
  4783. l1028:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4784. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH6", G->buf+G->pos));
  4785. return 0;
  4786. }
  4787. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G)
  4788. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4789. yyprintf((stderr, "%s\n", "HtmlBlockCloseH6")); if (!yymatchChar(G, '<')) goto l1034; if (!yy_Spnl(G)) { goto l1034; } if (!yymatchChar(G, '/')) goto l1034;
  4790. { int yypos1035= G->pos, yythunkpos1035= G->thunkpos; if (!yymatchString(G, "h6")) goto l1036; goto l1035;
  4791. l1036:; G->pos= yypos1035; G->thunkpos= yythunkpos1035; if (!yymatchString(G, "H6")) goto l1034;
  4792. }
  4793. l1035:; if (!yy_Spnl(G)) { goto l1034; } if (!yymatchChar(G, '>')) goto l1034;
  4794. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4795. return 1;
  4796. l1034:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4797. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4798. return 0;
  4799. }
  4800. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G)
  4801. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4802. yyprintf((stderr, "%s\n", "HtmlBlockOpenH6")); if (!yymatchChar(G, '<')) goto l1037; if (!yy_Spnl(G)) { goto l1037; }
  4803. { int yypos1038= G->pos, yythunkpos1038= G->thunkpos; if (!yymatchString(G, "h6")) goto l1039; goto l1038;
  4804. l1039:; G->pos= yypos1038; G->thunkpos= yythunkpos1038; if (!yymatchString(G, "H6")) goto l1037;
  4805. }
  4806. l1038:; if (!yy_Spnl(G)) { goto l1037; }
  4807. l1040:;
  4808. { int yypos1041= G->pos, yythunkpos1041= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1041; } goto l1040;
  4809. l1041:; G->pos= yypos1041; G->thunkpos= yythunkpos1041;
  4810. } if (!yymatchChar(G, '>')) goto l1037;
  4811. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4812. return 1;
  4813. l1037:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4814. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4815. return 0;
  4816. }
  4817. YY_RULE(int) yy_HtmlBlockH5(GREG *G)
  4818. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4819. yyprintf((stderr, "%s\n", "HtmlBlockH5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1042; if (!yy_LocMarker(G)) { goto l1042; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH5(G)) { goto l1042; }
  4820. l1043:;
  4821. { int yypos1044= G->pos, yythunkpos1044= G->thunkpos;
  4822. { int yypos1045= G->pos, yythunkpos1045= G->thunkpos; if (!yy_HtmlBlockH5(G)) { goto l1046; } goto l1045;
  4823. l1046:; G->pos= yypos1045; G->thunkpos= yythunkpos1045;
  4824. { int yypos1047= G->pos, yythunkpos1047= G->thunkpos; if (!yy_HtmlBlockCloseH5(G)) { goto l1047; } goto l1044;
  4825. l1047:; G->pos= yypos1047; G->thunkpos= yythunkpos1047;
  4826. } if (!yymatchDot(G)) goto l1044;
  4827. }
  4828. l1045:; goto l1043;
  4829. l1044:; G->pos= yypos1044; G->thunkpos= yythunkpos1044;
  4830. } if (!yy_HtmlBlockCloseH5(G)) { goto l1042; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1042; yyDo(G, yy_1_HtmlBlockH5, G->begin, G->end);
  4831. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH5", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4832. return 1;
  4833. l1042:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4834. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH5", G->buf+G->pos));
  4835. return 0;
  4836. }
  4837. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G)
  4838. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4839. yyprintf((stderr, "%s\n", "HtmlBlockCloseH5")); if (!yymatchChar(G, '<')) goto l1048; if (!yy_Spnl(G)) { goto l1048; } if (!yymatchChar(G, '/')) goto l1048;
  4840. { int yypos1049= G->pos, yythunkpos1049= G->thunkpos; if (!yymatchString(G, "h5")) goto l1050; goto l1049;
  4841. l1050:; G->pos= yypos1049; G->thunkpos= yythunkpos1049; if (!yymatchString(G, "H5")) goto l1048;
  4842. }
  4843. l1049:; if (!yy_Spnl(G)) { goto l1048; } if (!yymatchChar(G, '>')) goto l1048;
  4844. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  4845. return 1;
  4846. l1048:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4847. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  4848. return 0;
  4849. }
  4850. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G)
  4851. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4852. yyprintf((stderr, "%s\n", "HtmlBlockOpenH5")); if (!yymatchChar(G, '<')) goto l1051; if (!yy_Spnl(G)) { goto l1051; }
  4853. { int yypos1052= G->pos, yythunkpos1052= G->thunkpos; if (!yymatchString(G, "h5")) goto l1053; goto l1052;
  4854. l1053:; G->pos= yypos1052; G->thunkpos= yythunkpos1052; if (!yymatchString(G, "H5")) goto l1051;
  4855. }
  4856. l1052:; if (!yy_Spnl(G)) { goto l1051; }
  4857. l1054:;
  4858. { int yypos1055= G->pos, yythunkpos1055= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1055; } goto l1054;
  4859. l1055:; G->pos= yypos1055; G->thunkpos= yythunkpos1055;
  4860. } if (!yymatchChar(G, '>')) goto l1051;
  4861. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  4862. return 1;
  4863. l1051:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4864. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  4865. return 0;
  4866. }
  4867. YY_RULE(int) yy_HtmlBlockH4(GREG *G)
  4868. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4869. yyprintf((stderr, "%s\n", "HtmlBlockH4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1056; if (!yy_LocMarker(G)) { goto l1056; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH4(G)) { goto l1056; }
  4870. l1057:;
  4871. { int yypos1058= G->pos, yythunkpos1058= G->thunkpos;
  4872. { int yypos1059= G->pos, yythunkpos1059= G->thunkpos; if (!yy_HtmlBlockH4(G)) { goto l1060; } goto l1059;
  4873. l1060:; G->pos= yypos1059; G->thunkpos= yythunkpos1059;
  4874. { int yypos1061= G->pos, yythunkpos1061= G->thunkpos; if (!yy_HtmlBlockCloseH4(G)) { goto l1061; } goto l1058;
  4875. l1061:; G->pos= yypos1061; G->thunkpos= yythunkpos1061;
  4876. } if (!yymatchDot(G)) goto l1058;
  4877. }
  4878. l1059:; goto l1057;
  4879. l1058:; G->pos= yypos1058; G->thunkpos= yythunkpos1058;
  4880. } if (!yy_HtmlBlockCloseH4(G)) { goto l1056; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1056; yyDo(G, yy_1_HtmlBlockH4, G->begin, G->end);
  4881. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH4", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4882. return 1;
  4883. l1056:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4884. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH4", G->buf+G->pos));
  4885. return 0;
  4886. }
  4887. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G)
  4888. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4889. yyprintf((stderr, "%s\n", "HtmlBlockCloseH4")); if (!yymatchChar(G, '<')) goto l1062; if (!yy_Spnl(G)) { goto l1062; } if (!yymatchChar(G, '/')) goto l1062;
  4890. { int yypos1063= G->pos, yythunkpos1063= G->thunkpos; if (!yymatchString(G, "h4")) goto l1064; goto l1063;
  4891. l1064:; G->pos= yypos1063; G->thunkpos= yythunkpos1063; if (!yymatchString(G, "H4")) goto l1062;
  4892. }
  4893. l1063:; if (!yy_Spnl(G)) { goto l1062; } if (!yymatchChar(G, '>')) goto l1062;
  4894. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  4895. return 1;
  4896. l1062:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4897. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  4898. return 0;
  4899. }
  4900. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G)
  4901. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4902. yyprintf((stderr, "%s\n", "HtmlBlockOpenH4")); if (!yymatchChar(G, '<')) goto l1065; if (!yy_Spnl(G)) { goto l1065; }
  4903. { int yypos1066= G->pos, yythunkpos1066= G->thunkpos; if (!yymatchString(G, "h4")) goto l1067; goto l1066;
  4904. l1067:; G->pos= yypos1066; G->thunkpos= yythunkpos1066; if (!yymatchString(G, "H4")) goto l1065;
  4905. }
  4906. l1066:; if (!yy_Spnl(G)) { goto l1065; }
  4907. l1068:;
  4908. { int yypos1069= G->pos, yythunkpos1069= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1069; } goto l1068;
  4909. l1069:; G->pos= yypos1069; G->thunkpos= yythunkpos1069;
  4910. } if (!yymatchChar(G, '>')) goto l1065;
  4911. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  4912. return 1;
  4913. l1065:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4914. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  4915. return 0;
  4916. }
  4917. YY_RULE(int) yy_HtmlBlockH3(GREG *G)
  4918. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4919. yyprintf((stderr, "%s\n", "HtmlBlockH3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1070; if (!yy_LocMarker(G)) { goto l1070; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH3(G)) { goto l1070; }
  4920. l1071:;
  4921. { int yypos1072= G->pos, yythunkpos1072= G->thunkpos;
  4922. { int yypos1073= G->pos, yythunkpos1073= G->thunkpos; if (!yy_HtmlBlockH3(G)) { goto l1074; } goto l1073;
  4923. l1074:; G->pos= yypos1073; G->thunkpos= yythunkpos1073;
  4924. { int yypos1075= G->pos, yythunkpos1075= G->thunkpos; if (!yy_HtmlBlockCloseH3(G)) { goto l1075; } goto l1072;
  4925. l1075:; G->pos= yypos1075; G->thunkpos= yythunkpos1075;
  4926. } if (!yymatchDot(G)) goto l1072;
  4927. }
  4928. l1073:; goto l1071;
  4929. l1072:; G->pos= yypos1072; G->thunkpos= yythunkpos1072;
  4930. } if (!yy_HtmlBlockCloseH3(G)) { goto l1070; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1070; yyDo(G, yy_1_HtmlBlockH3, G->begin, G->end);
  4931. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH3", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4932. return 1;
  4933. l1070:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4934. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH3", G->buf+G->pos));
  4935. return 0;
  4936. }
  4937. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G)
  4938. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4939. yyprintf((stderr, "%s\n", "HtmlBlockCloseH3")); if (!yymatchChar(G, '<')) goto l1076; if (!yy_Spnl(G)) { goto l1076; } if (!yymatchChar(G, '/')) goto l1076;
  4940. { int yypos1077= G->pos, yythunkpos1077= G->thunkpos; if (!yymatchString(G, "h3")) goto l1078; goto l1077;
  4941. l1078:; G->pos= yypos1077; G->thunkpos= yythunkpos1077; if (!yymatchString(G, "H3")) goto l1076;
  4942. }
  4943. l1077:; if (!yy_Spnl(G)) { goto l1076; } if (!yymatchChar(G, '>')) goto l1076;
  4944. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  4945. return 1;
  4946. l1076:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4947. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  4948. return 0;
  4949. }
  4950. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G)
  4951. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4952. yyprintf((stderr, "%s\n", "HtmlBlockOpenH3")); if (!yymatchChar(G, '<')) goto l1079; if (!yy_Spnl(G)) { goto l1079; }
  4953. { int yypos1080= G->pos, yythunkpos1080= G->thunkpos; if (!yymatchString(G, "h3")) goto l1081; goto l1080;
  4954. l1081:; G->pos= yypos1080; G->thunkpos= yythunkpos1080; if (!yymatchString(G, "H3")) goto l1079;
  4955. }
  4956. l1080:; if (!yy_Spnl(G)) { goto l1079; }
  4957. l1082:;
  4958. { int yypos1083= G->pos, yythunkpos1083= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1083; } goto l1082;
  4959. l1083:; G->pos= yypos1083; G->thunkpos= yythunkpos1083;
  4960. } if (!yymatchChar(G, '>')) goto l1079;
  4961. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  4962. return 1;
  4963. l1079:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4964. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  4965. return 0;
  4966. }
  4967. YY_RULE(int) yy_HtmlBlockH2(GREG *G)
  4968. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4969. yyprintf((stderr, "%s\n", "HtmlBlockH2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1084; if (!yy_LocMarker(G)) { goto l1084; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH2(G)) { goto l1084; }
  4970. l1085:;
  4971. { int yypos1086= G->pos, yythunkpos1086= G->thunkpos;
  4972. { int yypos1087= G->pos, yythunkpos1087= G->thunkpos; if (!yy_HtmlBlockH2(G)) { goto l1088; } goto l1087;
  4973. l1088:; G->pos= yypos1087; G->thunkpos= yythunkpos1087;
  4974. { int yypos1089= G->pos, yythunkpos1089= G->thunkpos; if (!yy_HtmlBlockCloseH2(G)) { goto l1089; } goto l1086;
  4975. l1089:; G->pos= yypos1089; G->thunkpos= yythunkpos1089;
  4976. } if (!yymatchDot(G)) goto l1086;
  4977. }
  4978. l1087:; goto l1085;
  4979. l1086:; G->pos= yypos1086; G->thunkpos= yythunkpos1086;
  4980. } if (!yy_HtmlBlockCloseH2(G)) { goto l1084; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1084; yyDo(G, yy_1_HtmlBlockH2, G->begin, G->end);
  4981. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4982. return 1;
  4983. l1084:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4984. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH2", G->buf+G->pos));
  4985. return 0;
  4986. }
  4987. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G)
  4988. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4989. yyprintf((stderr, "%s\n", "HtmlBlockCloseH2")); if (!yymatchChar(G, '<')) goto l1090; if (!yy_Spnl(G)) { goto l1090; } if (!yymatchChar(G, '/')) goto l1090;
  4990. { int yypos1091= G->pos, yythunkpos1091= G->thunkpos; if (!yymatchString(G, "h2")) goto l1092; goto l1091;
  4991. l1092:; G->pos= yypos1091; G->thunkpos= yythunkpos1091; if (!yymatchString(G, "H2")) goto l1090;
  4992. }
  4993. l1091:; if (!yy_Spnl(G)) { goto l1090; } if (!yymatchChar(G, '>')) goto l1090;
  4994. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  4995. return 1;
  4996. l1090:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4997. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  4998. return 0;
  4999. }
  5000. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G)
  5001. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5002. yyprintf((stderr, "%s\n", "HtmlBlockOpenH2")); if (!yymatchChar(G, '<')) goto l1093; if (!yy_Spnl(G)) { goto l1093; }
  5003. { int yypos1094= G->pos, yythunkpos1094= G->thunkpos; if (!yymatchString(G, "h2")) goto l1095; goto l1094;
  5004. l1095:; G->pos= yypos1094; G->thunkpos= yythunkpos1094; if (!yymatchString(G, "H2")) goto l1093;
  5005. }
  5006. l1094:; if (!yy_Spnl(G)) { goto l1093; }
  5007. l1096:;
  5008. { int yypos1097= G->pos, yythunkpos1097= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1097; } goto l1096;
  5009. l1097:; G->pos= yypos1097; G->thunkpos= yythunkpos1097;
  5010. } if (!yymatchChar(G, '>')) goto l1093;
  5011. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  5012. return 1;
  5013. l1093:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5014. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  5015. return 0;
  5016. }
  5017. YY_RULE(int) yy_HtmlBlockH1(GREG *G)
  5018. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5019. yyprintf((stderr, "%s\n", "HtmlBlockH1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1098; if (!yy_LocMarker(G)) { goto l1098; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH1(G)) { goto l1098; }
  5020. l1099:;
  5021. { int yypos1100= G->pos, yythunkpos1100= G->thunkpos;
  5022. { int yypos1101= G->pos, yythunkpos1101= G->thunkpos; if (!yy_HtmlBlockH1(G)) { goto l1102; } goto l1101;
  5023. l1102:; G->pos= yypos1101; G->thunkpos= yythunkpos1101;
  5024. { int yypos1103= G->pos, yythunkpos1103= G->thunkpos; if (!yy_HtmlBlockCloseH1(G)) { goto l1103; } goto l1100;
  5025. l1103:; G->pos= yypos1103; G->thunkpos= yythunkpos1103;
  5026. } if (!yymatchDot(G)) goto l1100;
  5027. }
  5028. l1101:; goto l1099;
  5029. l1100:; G->pos= yypos1100; G->thunkpos= yythunkpos1100;
  5030. } if (!yy_HtmlBlockCloseH1(G)) { goto l1098; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1098; yyDo(G, yy_1_HtmlBlockH1, G->begin, G->end);
  5031. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5032. return 1;
  5033. l1098:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5034. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH1", G->buf+G->pos));
  5035. return 0;
  5036. }
  5037. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G)
  5038. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5039. yyprintf((stderr, "%s\n", "HtmlBlockCloseH1")); if (!yymatchChar(G, '<')) goto l1104; if (!yy_Spnl(G)) { goto l1104; } if (!yymatchChar(G, '/')) goto l1104;
  5040. { int yypos1105= G->pos, yythunkpos1105= G->thunkpos; if (!yymatchString(G, "h1")) goto l1106; goto l1105;
  5041. l1106:; G->pos= yypos1105; G->thunkpos= yythunkpos1105; if (!yymatchString(G, "H1")) goto l1104;
  5042. }
  5043. l1105:; if (!yy_Spnl(G)) { goto l1104; } if (!yymatchChar(G, '>')) goto l1104;
  5044. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  5045. return 1;
  5046. l1104:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5047. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  5048. return 0;
  5049. }
  5050. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G)
  5051. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5052. yyprintf((stderr, "%s\n", "HtmlBlockOpenH1")); if (!yymatchChar(G, '<')) goto l1107; if (!yy_Spnl(G)) { goto l1107; }
  5053. { int yypos1108= G->pos, yythunkpos1108= G->thunkpos; if (!yymatchString(G, "h1")) goto l1109; goto l1108;
  5054. l1109:; G->pos= yypos1108; G->thunkpos= yythunkpos1108; if (!yymatchString(G, "H1")) goto l1107;
  5055. }
  5056. l1108:; if (!yy_Spnl(G)) { goto l1107; }
  5057. l1110:;
  5058. { int yypos1111= G->pos, yythunkpos1111= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1111; } goto l1110;
  5059. l1111:; G->pos= yypos1111; G->thunkpos= yythunkpos1111;
  5060. } if (!yymatchChar(G, '>')) goto l1107;
  5061. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  5062. return 1;
  5063. l1107:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5064. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  5065. return 0;
  5066. }
  5067. YY_RULE(int) yy_HtmlBlockForm(GREG *G)
  5068. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5069. yyprintf((stderr, "%s\n", "HtmlBlockForm")); if (!yy_HtmlBlockOpenForm(G)) { goto l1112; }
  5070. l1113:;
  5071. { int yypos1114= G->pos, yythunkpos1114= G->thunkpos;
  5072. { int yypos1115= G->pos, yythunkpos1115= G->thunkpos; if (!yy_HtmlBlockForm(G)) { goto l1116; } goto l1115;
  5073. l1116:; G->pos= yypos1115; G->thunkpos= yythunkpos1115;
  5074. { int yypos1117= G->pos, yythunkpos1117= G->thunkpos; if (!yy_HtmlBlockCloseForm(G)) { goto l1117; } goto l1114;
  5075. l1117:; G->pos= yypos1117; G->thunkpos= yythunkpos1117;
  5076. } if (!yymatchDot(G)) goto l1114;
  5077. }
  5078. l1115:; goto l1113;
  5079. l1114:; G->pos= yypos1114; G->thunkpos= yythunkpos1114;
  5080. } if (!yy_HtmlBlockCloseForm(G)) { goto l1112; }
  5081. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  5082. return 1;
  5083. l1112:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5084. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  5085. return 0;
  5086. }
  5087. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G)
  5088. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5089. yyprintf((stderr, "%s\n", "HtmlBlockCloseForm")); if (!yymatchChar(G, '<')) goto l1118; if (!yy_Spnl(G)) { goto l1118; } if (!yymatchChar(G, '/')) goto l1118;
  5090. { int yypos1119= G->pos, yythunkpos1119= G->thunkpos; if (!yymatchString(G, "form")) goto l1120; goto l1119;
  5091. l1120:; G->pos= yypos1119; G->thunkpos= yythunkpos1119; if (!yymatchString(G, "FORM")) goto l1118;
  5092. }
  5093. l1119:; if (!yy_Spnl(G)) { goto l1118; } if (!yymatchChar(G, '>')) goto l1118;
  5094. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  5095. return 1;
  5096. l1118:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5097. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  5098. return 0;
  5099. }
  5100. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G)
  5101. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5102. yyprintf((stderr, "%s\n", "HtmlBlockOpenForm")); if (!yymatchChar(G, '<')) goto l1121; if (!yy_Spnl(G)) { goto l1121; }
  5103. { int yypos1122= G->pos, yythunkpos1122= G->thunkpos; if (!yymatchString(G, "form")) goto l1123; goto l1122;
  5104. l1123:; G->pos= yypos1122; G->thunkpos= yythunkpos1122; if (!yymatchString(G, "FORM")) goto l1121;
  5105. }
  5106. l1122:; if (!yy_Spnl(G)) { goto l1121; }
  5107. l1124:;
  5108. { int yypos1125= G->pos, yythunkpos1125= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1125; } goto l1124;
  5109. l1125:; G->pos= yypos1125; G->thunkpos= yythunkpos1125;
  5110. } if (!yymatchChar(G, '>')) goto l1121;
  5111. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  5112. return 1;
  5113. l1121:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5114. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  5115. return 0;
  5116. }
  5117. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G)
  5118. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5119. yyprintf((stderr, "%s\n", "HtmlBlockFieldset")); if (!yy_HtmlBlockOpenFieldset(G)) { goto l1126; }
  5120. l1127:;
  5121. { int yypos1128= G->pos, yythunkpos1128= G->thunkpos;
  5122. { int yypos1129= G->pos, yythunkpos1129= G->thunkpos; if (!yy_HtmlBlockFieldset(G)) { goto l1130; } goto l1129;
  5123. l1130:; G->pos= yypos1129; G->thunkpos= yythunkpos1129;
  5124. { int yypos1131= G->pos, yythunkpos1131= G->thunkpos; if (!yy_HtmlBlockCloseFieldset(G)) { goto l1131; } goto l1128;
  5125. l1131:; G->pos= yypos1131; G->thunkpos= yythunkpos1131;
  5126. } if (!yymatchDot(G)) goto l1128;
  5127. }
  5128. l1129:; goto l1127;
  5129. l1128:; G->pos= yypos1128; G->thunkpos= yythunkpos1128;
  5130. } if (!yy_HtmlBlockCloseFieldset(G)) { goto l1126; }
  5131. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  5132. return 1;
  5133. l1126:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5134. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  5135. return 0;
  5136. }
  5137. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G)
  5138. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5139. yyprintf((stderr, "%s\n", "HtmlBlockCloseFieldset")); if (!yymatchChar(G, '<')) goto l1132; if (!yy_Spnl(G)) { goto l1132; } if (!yymatchChar(G, '/')) goto l1132;
  5140. { int yypos1133= G->pos, yythunkpos1133= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1134; goto l1133;
  5141. l1134:; G->pos= yypos1133; G->thunkpos= yythunkpos1133; if (!yymatchString(G, "FIELDSET")) goto l1132;
  5142. }
  5143. l1133:; if (!yy_Spnl(G)) { goto l1132; } if (!yymatchChar(G, '>')) goto l1132;
  5144. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5145. return 1;
  5146. l1132:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5147. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5148. return 0;
  5149. }
  5150. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G)
  5151. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5152. yyprintf((stderr, "%s\n", "HtmlBlockOpenFieldset")); if (!yymatchChar(G, '<')) goto l1135; if (!yy_Spnl(G)) { goto l1135; }
  5153. { int yypos1136= G->pos, yythunkpos1136= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1137; goto l1136;
  5154. l1137:; G->pos= yypos1136; G->thunkpos= yythunkpos1136; if (!yymatchString(G, "FIELDSET")) goto l1135;
  5155. }
  5156. l1136:; if (!yy_Spnl(G)) { goto l1135; }
  5157. l1138:;
  5158. { int yypos1139= G->pos, yythunkpos1139= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1139; } goto l1138;
  5159. l1139:; G->pos= yypos1139; G->thunkpos= yythunkpos1139;
  5160. } if (!yymatchChar(G, '>')) goto l1135;
  5161. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5162. return 1;
  5163. l1135:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5164. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5165. return 0;
  5166. }
  5167. YY_RULE(int) yy_HtmlBlockDl(GREG *G)
  5168. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5169. yyprintf((stderr, "%s\n", "HtmlBlockDl")); if (!yy_HtmlBlockOpenDl(G)) { goto l1140; }
  5170. l1141:;
  5171. { int yypos1142= G->pos, yythunkpos1142= G->thunkpos;
  5172. { int yypos1143= G->pos, yythunkpos1143= G->thunkpos; if (!yy_HtmlBlockDl(G)) { goto l1144; } goto l1143;
  5173. l1144:; G->pos= yypos1143; G->thunkpos= yythunkpos1143;
  5174. { int yypos1145= G->pos, yythunkpos1145= G->thunkpos; if (!yy_HtmlBlockCloseDl(G)) { goto l1145; } goto l1142;
  5175. l1145:; G->pos= yypos1145; G->thunkpos= yythunkpos1145;
  5176. } if (!yymatchDot(G)) goto l1142;
  5177. }
  5178. l1143:; goto l1141;
  5179. l1142:; G->pos= yypos1142; G->thunkpos= yythunkpos1142;
  5180. } if (!yy_HtmlBlockCloseDl(G)) { goto l1140; }
  5181. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5182. return 1;
  5183. l1140:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5184. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5185. return 0;
  5186. }
  5187. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G)
  5188. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5189. yyprintf((stderr, "%s\n", "HtmlBlockCloseDl")); if (!yymatchChar(G, '<')) goto l1146; if (!yy_Spnl(G)) { goto l1146; } if (!yymatchChar(G, '/')) goto l1146;
  5190. { int yypos1147= G->pos, yythunkpos1147= G->thunkpos; if (!yymatchString(G, "dl")) goto l1148; goto l1147;
  5191. l1148:; G->pos= yypos1147; G->thunkpos= yythunkpos1147; if (!yymatchString(G, "DL")) goto l1146;
  5192. }
  5193. l1147:; if (!yy_Spnl(G)) { goto l1146; } if (!yymatchChar(G, '>')) goto l1146;
  5194. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5195. return 1;
  5196. l1146:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5197. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5198. return 0;
  5199. }
  5200. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G)
  5201. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5202. yyprintf((stderr, "%s\n", "HtmlBlockOpenDl")); if (!yymatchChar(G, '<')) goto l1149; if (!yy_Spnl(G)) { goto l1149; }
  5203. { int yypos1150= G->pos, yythunkpos1150= G->thunkpos; if (!yymatchString(G, "dl")) goto l1151; goto l1150;
  5204. l1151:; G->pos= yypos1150; G->thunkpos= yythunkpos1150; if (!yymatchString(G, "DL")) goto l1149;
  5205. }
  5206. l1150:; if (!yy_Spnl(G)) { goto l1149; }
  5207. l1152:;
  5208. { int yypos1153= G->pos, yythunkpos1153= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1153; } goto l1152;
  5209. l1153:; G->pos= yypos1153; G->thunkpos= yythunkpos1153;
  5210. } if (!yymatchChar(G, '>')) goto l1149;
  5211. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5212. return 1;
  5213. l1149:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5214. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5215. return 0;
  5216. }
  5217. YY_RULE(int) yy_HtmlBlockDiv(GREG *G)
  5218. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5219. yyprintf((stderr, "%s\n", "HtmlBlockDiv")); if (!yy_HtmlBlockOpenDiv(G)) { goto l1154; }
  5220. l1155:;
  5221. { int yypos1156= G->pos, yythunkpos1156= G->thunkpos;
  5222. { int yypos1157= G->pos, yythunkpos1157= G->thunkpos; if (!yy_HtmlBlockDiv(G)) { goto l1158; } goto l1157;
  5223. l1158:; G->pos= yypos1157; G->thunkpos= yythunkpos1157;
  5224. { int yypos1159= G->pos, yythunkpos1159= G->thunkpos; if (!yy_HtmlBlockCloseDiv(G)) { goto l1159; } goto l1156;
  5225. l1159:; G->pos= yypos1159; G->thunkpos= yythunkpos1159;
  5226. } if (!yymatchDot(G)) goto l1156;
  5227. }
  5228. l1157:; goto l1155;
  5229. l1156:; G->pos= yypos1156; G->thunkpos= yythunkpos1156;
  5230. } if (!yy_HtmlBlockCloseDiv(G)) { goto l1154; }
  5231. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5232. return 1;
  5233. l1154:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5234. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5235. return 0;
  5236. }
  5237. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G)
  5238. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5239. yyprintf((stderr, "%s\n", "HtmlBlockCloseDiv")); if (!yymatchChar(G, '<')) goto l1160; if (!yy_Spnl(G)) { goto l1160; } if (!yymatchChar(G, '/')) goto l1160;
  5240. { int yypos1161= G->pos, yythunkpos1161= G->thunkpos; if (!yymatchString(G, "div")) goto l1162; goto l1161;
  5241. l1162:; G->pos= yypos1161; G->thunkpos= yythunkpos1161; if (!yymatchString(G, "DIV")) goto l1160;
  5242. }
  5243. l1161:; if (!yy_Spnl(G)) { goto l1160; } if (!yymatchChar(G, '>')) goto l1160;
  5244. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5245. return 1;
  5246. l1160:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5247. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5248. return 0;
  5249. }
  5250. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G)
  5251. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5252. yyprintf((stderr, "%s\n", "HtmlBlockOpenDiv")); if (!yymatchChar(G, '<')) goto l1163; if (!yy_Spnl(G)) { goto l1163; }
  5253. { int yypos1164= G->pos, yythunkpos1164= G->thunkpos; if (!yymatchString(G, "div")) goto l1165; goto l1164;
  5254. l1165:; G->pos= yypos1164; G->thunkpos= yythunkpos1164; if (!yymatchString(G, "DIV")) goto l1163;
  5255. }
  5256. l1164:; if (!yy_Spnl(G)) { goto l1163; }
  5257. l1166:;
  5258. { int yypos1167= G->pos, yythunkpos1167= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1167; } goto l1166;
  5259. l1167:; G->pos= yypos1167; G->thunkpos= yythunkpos1167;
  5260. } if (!yymatchChar(G, '>')) goto l1163;
  5261. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5262. return 1;
  5263. l1163:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5264. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5265. return 0;
  5266. }
  5267. YY_RULE(int) yy_HtmlBlockDir(GREG *G)
  5268. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5269. yyprintf((stderr, "%s\n", "HtmlBlockDir")); if (!yy_HtmlBlockOpenDir(G)) { goto l1168; }
  5270. l1169:;
  5271. { int yypos1170= G->pos, yythunkpos1170= G->thunkpos;
  5272. { int yypos1171= G->pos, yythunkpos1171= G->thunkpos; if (!yy_HtmlBlockDir(G)) { goto l1172; } goto l1171;
  5273. l1172:; G->pos= yypos1171; G->thunkpos= yythunkpos1171;
  5274. { int yypos1173= G->pos, yythunkpos1173= G->thunkpos; if (!yy_HtmlBlockCloseDir(G)) { goto l1173; } goto l1170;
  5275. l1173:; G->pos= yypos1173; G->thunkpos= yythunkpos1173;
  5276. } if (!yymatchDot(G)) goto l1170;
  5277. }
  5278. l1171:; goto l1169;
  5279. l1170:; G->pos= yypos1170; G->thunkpos= yythunkpos1170;
  5280. } if (!yy_HtmlBlockCloseDir(G)) { goto l1168; }
  5281. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5282. return 1;
  5283. l1168:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5284. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5285. return 0;
  5286. }
  5287. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G)
  5288. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5289. yyprintf((stderr, "%s\n", "HtmlBlockCloseDir")); if (!yymatchChar(G, '<')) goto l1174; if (!yy_Spnl(G)) { goto l1174; } if (!yymatchChar(G, '/')) goto l1174;
  5290. { int yypos1175= G->pos, yythunkpos1175= G->thunkpos; if (!yymatchString(G, "dir")) goto l1176; goto l1175;
  5291. l1176:; G->pos= yypos1175; G->thunkpos= yythunkpos1175; if (!yymatchString(G, "DIR")) goto l1174;
  5292. }
  5293. l1175:; if (!yy_Spnl(G)) { goto l1174; } if (!yymatchChar(G, '>')) goto l1174;
  5294. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5295. return 1;
  5296. l1174:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5297. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5298. return 0;
  5299. }
  5300. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G)
  5301. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5302. yyprintf((stderr, "%s\n", "HtmlBlockOpenDir")); if (!yymatchChar(G, '<')) goto l1177; if (!yy_Spnl(G)) { goto l1177; }
  5303. { int yypos1178= G->pos, yythunkpos1178= G->thunkpos; if (!yymatchString(G, "dir")) goto l1179; goto l1178;
  5304. l1179:; G->pos= yypos1178; G->thunkpos= yythunkpos1178; if (!yymatchString(G, "DIR")) goto l1177;
  5305. }
  5306. l1178:; if (!yy_Spnl(G)) { goto l1177; }
  5307. l1180:;
  5308. { int yypos1181= G->pos, yythunkpos1181= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1181; } goto l1180;
  5309. l1181:; G->pos= yypos1181; G->thunkpos= yythunkpos1181;
  5310. } if (!yymatchChar(G, '>')) goto l1177;
  5311. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5312. return 1;
  5313. l1177:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5314. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5315. return 0;
  5316. }
  5317. YY_RULE(int) yy_HtmlBlockCenter(GREG *G)
  5318. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5319. yyprintf((stderr, "%s\n", "HtmlBlockCenter")); if (!yy_HtmlBlockOpenCenter(G)) { goto l1182; }
  5320. l1183:;
  5321. { int yypos1184= G->pos, yythunkpos1184= G->thunkpos;
  5322. { int yypos1185= G->pos, yythunkpos1185= G->thunkpos; if (!yy_HtmlBlockCenter(G)) { goto l1186; } goto l1185;
  5323. l1186:; G->pos= yypos1185; G->thunkpos= yythunkpos1185;
  5324. { int yypos1187= G->pos, yythunkpos1187= G->thunkpos; if (!yy_HtmlBlockCloseCenter(G)) { goto l1187; } goto l1184;
  5325. l1187:; G->pos= yypos1187; G->thunkpos= yythunkpos1187;
  5326. } if (!yymatchDot(G)) goto l1184;
  5327. }
  5328. l1185:; goto l1183;
  5329. l1184:; G->pos= yypos1184; G->thunkpos= yythunkpos1184;
  5330. } if (!yy_HtmlBlockCloseCenter(G)) { goto l1182; }
  5331. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5332. return 1;
  5333. l1182:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5334. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5335. return 0;
  5336. }
  5337. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G)
  5338. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5339. yyprintf((stderr, "%s\n", "HtmlBlockCloseCenter")); if (!yymatchChar(G, '<')) goto l1188; if (!yy_Spnl(G)) { goto l1188; } if (!yymatchChar(G, '/')) goto l1188;
  5340. { int yypos1189= G->pos, yythunkpos1189= G->thunkpos; if (!yymatchString(G, "center")) goto l1190; goto l1189;
  5341. l1190:; G->pos= yypos1189; G->thunkpos= yythunkpos1189; if (!yymatchString(G, "CENTER")) goto l1188;
  5342. }
  5343. l1189:; if (!yy_Spnl(G)) { goto l1188; } if (!yymatchChar(G, '>')) goto l1188;
  5344. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5345. return 1;
  5346. l1188:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5347. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5348. return 0;
  5349. }
  5350. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G)
  5351. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5352. yyprintf((stderr, "%s\n", "HtmlBlockOpenCenter")); if (!yymatchChar(G, '<')) goto l1191; if (!yy_Spnl(G)) { goto l1191; }
  5353. { int yypos1192= G->pos, yythunkpos1192= G->thunkpos; if (!yymatchString(G, "center")) goto l1193; goto l1192;
  5354. l1193:; G->pos= yypos1192; G->thunkpos= yythunkpos1192; if (!yymatchString(G, "CENTER")) goto l1191;
  5355. }
  5356. l1192:; if (!yy_Spnl(G)) { goto l1191; }
  5357. l1194:;
  5358. { int yypos1195= G->pos, yythunkpos1195= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1195; } goto l1194;
  5359. l1195:; G->pos= yypos1195; G->thunkpos= yythunkpos1195;
  5360. } if (!yymatchChar(G, '>')) goto l1191;
  5361. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5362. return 1;
  5363. l1191:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5364. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5365. return 0;
  5366. }
  5367. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G)
  5368. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5369. yyprintf((stderr, "%s\n", "HtmlBlockBlockquote")); if (!yy_HtmlBlockOpenBlockquote(G)) { goto l1196; }
  5370. l1197:;
  5371. { int yypos1198= G->pos, yythunkpos1198= G->thunkpos;
  5372. { int yypos1199= G->pos, yythunkpos1199= G->thunkpos; if (!yy_HtmlBlockBlockquote(G)) { goto l1200; } goto l1199;
  5373. l1200:; G->pos= yypos1199; G->thunkpos= yythunkpos1199;
  5374. { int yypos1201= G->pos, yythunkpos1201= G->thunkpos; if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1201; } goto l1198;
  5375. l1201:; G->pos= yypos1201; G->thunkpos= yythunkpos1201;
  5376. } if (!yymatchDot(G)) goto l1198;
  5377. }
  5378. l1199:; goto l1197;
  5379. l1198:; G->pos= yypos1198; G->thunkpos= yythunkpos1198;
  5380. } if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1196; }
  5381. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5382. return 1;
  5383. l1196:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5384. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5385. return 0;
  5386. }
  5387. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G)
  5388. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5389. yyprintf((stderr, "%s\n", "HtmlBlockCloseBlockquote")); if (!yymatchChar(G, '<')) goto l1202; if (!yy_Spnl(G)) { goto l1202; } if (!yymatchChar(G, '/')) goto l1202;
  5390. { int yypos1203= G->pos, yythunkpos1203= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1204; goto l1203;
  5391. l1204:; G->pos= yypos1203; G->thunkpos= yythunkpos1203; if (!yymatchString(G, "BLOCKQUOTE")) goto l1202;
  5392. }
  5393. l1203:; if (!yy_Spnl(G)) { goto l1202; } if (!yymatchChar(G, '>')) goto l1202;
  5394. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5395. return 1;
  5396. l1202:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5397. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5398. return 0;
  5399. }
  5400. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G)
  5401. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5402. yyprintf((stderr, "%s\n", "HtmlBlockOpenBlockquote")); if (!yymatchChar(G, '<')) goto l1205; if (!yy_Spnl(G)) { goto l1205; }
  5403. { int yypos1206= G->pos, yythunkpos1206= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1207; goto l1206;
  5404. l1207:; G->pos= yypos1206; G->thunkpos= yythunkpos1206; if (!yymatchString(G, "BLOCKQUOTE")) goto l1205;
  5405. }
  5406. l1206:; if (!yy_Spnl(G)) { goto l1205; }
  5407. l1208:;
  5408. { int yypos1209= G->pos, yythunkpos1209= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1209; } goto l1208;
  5409. l1209:; G->pos= yypos1209; G->thunkpos= yythunkpos1209;
  5410. } if (!yymatchChar(G, '>')) goto l1205;
  5411. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5412. return 1;
  5413. l1205:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5414. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5415. return 0;
  5416. }
  5417. YY_RULE(int) yy_HtmlBlockAddress(GREG *G)
  5418. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5419. yyprintf((stderr, "%s\n", "HtmlBlockAddress")); if (!yy_HtmlBlockOpenAddress(G)) { goto l1210; }
  5420. l1211:;
  5421. { int yypos1212= G->pos, yythunkpos1212= G->thunkpos;
  5422. { int yypos1213= G->pos, yythunkpos1213= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l1214; } goto l1213;
  5423. l1214:; G->pos= yypos1213; G->thunkpos= yythunkpos1213;
  5424. { int yypos1215= G->pos, yythunkpos1215= G->thunkpos; if (!yy_HtmlBlockCloseAddress(G)) { goto l1215; } goto l1212;
  5425. l1215:; G->pos= yypos1215; G->thunkpos= yythunkpos1215;
  5426. } if (!yymatchDot(G)) goto l1212;
  5427. }
  5428. l1213:; goto l1211;
  5429. l1212:; G->pos= yypos1212; G->thunkpos= yythunkpos1212;
  5430. } if (!yy_HtmlBlockCloseAddress(G)) { goto l1210; }
  5431. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5432. return 1;
  5433. l1210:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5434. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5435. return 0;
  5436. }
  5437. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G)
  5438. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5439. yyprintf((stderr, "%s\n", "HtmlBlockCloseAddress")); if (!yymatchChar(G, '<')) goto l1216; if (!yy_Spnl(G)) { goto l1216; } if (!yymatchChar(G, '/')) goto l1216;
  5440. { int yypos1217= G->pos, yythunkpos1217= G->thunkpos; if (!yymatchString(G, "address")) goto l1218; goto l1217;
  5441. l1218:; G->pos= yypos1217; G->thunkpos= yythunkpos1217; if (!yymatchString(G, "ADDRESS")) goto l1216;
  5442. }
  5443. l1217:; if (!yy_Spnl(G)) { goto l1216; } if (!yymatchChar(G, '>')) goto l1216;
  5444. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5445. return 1;
  5446. l1216:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5447. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5448. return 0;
  5449. }
  5450. YY_RULE(int) yy_HtmlAttribute(GREG *G)
  5451. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5452. yyprintf((stderr, "%s\n", "HtmlAttribute"));
  5453. { int yypos1222= G->pos, yythunkpos1222= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1223; } goto l1222;
  5454. l1223:; G->pos= yypos1222; G->thunkpos= yythunkpos1222; if (!yymatchChar(G, '-')) goto l1219;
  5455. }
  5456. l1222:;
  5457. l1220:;
  5458. { int yypos1221= G->pos, yythunkpos1221= G->thunkpos;
  5459. { int yypos1224= G->pos, yythunkpos1224= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1225; } goto l1224;
  5460. l1225:; G->pos= yypos1224; G->thunkpos= yythunkpos1224; if (!yymatchChar(G, '-')) goto l1221;
  5461. }
  5462. l1224:; goto l1220;
  5463. l1221:; G->pos= yypos1221; G->thunkpos= yythunkpos1221;
  5464. } if (!yy_Spnl(G)) { goto l1219; }
  5465. { int yypos1226= G->pos, yythunkpos1226= G->thunkpos; if (!yymatchChar(G, '=')) goto l1226; if (!yy_Spnl(G)) { goto l1226; }
  5466. { int yypos1228= G->pos, yythunkpos1228= G->thunkpos; if (!yy_Quoted(G)) { goto l1229; } goto l1228;
  5467. l1229:; G->pos= yypos1228; G->thunkpos= yythunkpos1228;
  5468. { int yypos1232= G->pos, yythunkpos1232= G->thunkpos; if (!yymatchChar(G, '>')) goto l1232; goto l1226;
  5469. l1232:; G->pos= yypos1232; G->thunkpos= yythunkpos1232;
  5470. } if (!yy_Nonspacechar(G)) { goto l1226; }
  5471. l1230:;
  5472. { int yypos1231= G->pos, yythunkpos1231= G->thunkpos;
  5473. { int yypos1233= G->pos, yythunkpos1233= G->thunkpos; if (!yymatchChar(G, '>')) goto l1233; goto l1231;
  5474. l1233:; G->pos= yypos1233; G->thunkpos= yythunkpos1233;
  5475. } if (!yy_Nonspacechar(G)) { goto l1231; } goto l1230;
  5476. l1231:; G->pos= yypos1231; G->thunkpos= yythunkpos1231;
  5477. }
  5478. }
  5479. l1228:; goto l1227;
  5480. l1226:; G->pos= yypos1226; G->thunkpos= yythunkpos1226;
  5481. }
  5482. l1227:; if (!yy_Spnl(G)) { goto l1219; }
  5483. yyprintf((stderr, " ok %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5484. return 1;
  5485. l1219:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5486. yyprintf((stderr, " fail %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5487. return 0;
  5488. }
  5489. YY_RULE(int) yy_Spnl(GREG *G)
  5490. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5491. yyprintf((stderr, "%s\n", "Spnl")); if (!yy_Sp(G)) { goto l1234; }
  5492. { int yypos1235= G->pos, yythunkpos1235= G->thunkpos; if (!yy_Newline(G)) { goto l1235; } if (!yy_Sp(G)) { goto l1235; } goto l1236;
  5493. l1235:; G->pos= yypos1235; G->thunkpos= yythunkpos1235;
  5494. }
  5495. l1236:;
  5496. yyprintf((stderr, " ok %s @ %s\n", "Spnl", G->buf+G->pos));
  5497. return 1;
  5498. l1234:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5499. yyprintf((stderr, " fail %s @ %s\n", "Spnl", G->buf+G->pos));
  5500. return 0;
  5501. }
  5502. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G)
  5503. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5504. yyprintf((stderr, "%s\n", "HtmlBlockOpenAddress")); if (!yymatchChar(G, '<')) goto l1237; if (!yy_Spnl(G)) { goto l1237; }
  5505. { int yypos1238= G->pos, yythunkpos1238= G->thunkpos; if (!yymatchString(G, "address")) goto l1239; goto l1238;
  5506. l1239:; G->pos= yypos1238; G->thunkpos= yythunkpos1238; if (!yymatchString(G, "ADDRESS")) goto l1237;
  5507. }
  5508. l1238:; if (!yy_Spnl(G)) { goto l1237; }
  5509. l1240:;
  5510. { int yypos1241= G->pos, yythunkpos1241= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1241; } goto l1240;
  5511. l1241:; G->pos= yypos1241; G->thunkpos= yythunkpos1241;
  5512. } if (!yymatchChar(G, '>')) goto l1237;
  5513. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5514. return 1;
  5515. l1237:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5516. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5517. return 0;
  5518. }
  5519. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G)
  5520. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5521. yyprintf((stderr, "%s\n", "OptionallyIndentedLine"));
  5522. { int yypos1243= G->pos, yythunkpos1243= G->thunkpos; if (!yy_Indent(G)) { goto l1243; } goto l1244;
  5523. l1243:; G->pos= yypos1243; G->thunkpos= yythunkpos1243;
  5524. }
  5525. l1244:; if (!yy_Line(G)) { goto l1242; }
  5526. yyprintf((stderr, " ok %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5527. return 1;
  5528. l1242:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5529. yyprintf((stderr, " fail %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5530. return 0;
  5531. }
  5532. YY_RULE(int) yy_Indent(GREG *G)
  5533. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5534. yyprintf((stderr, "%s\n", "Indent"));
  5535. { int yypos1246= G->pos, yythunkpos1246= G->thunkpos; if (!yymatchChar(G, '\t')) goto l1247; goto l1246;
  5536. l1247:; G->pos= yypos1246; G->thunkpos= yythunkpos1246; if (!yymatchString(G, " ")) goto l1245;
  5537. }
  5538. l1246:;
  5539. yyprintf((stderr, " ok %s @ %s\n", "Indent", G->buf+G->pos));
  5540. return 1;
  5541. l1245:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5542. yyprintf((stderr, " fail %s @ %s\n", "Indent", G->buf+G->pos));
  5543. return 0;
  5544. }
  5545. YY_RULE(int) yy_ListBlockLine(GREG *G)
  5546. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5547. yyprintf((stderr, "%s\n", "ListBlockLine"));
  5548. { int yypos1249= G->pos, yythunkpos1249= G->thunkpos; if (!yy_BlankLine(G)) { goto l1249; } goto l1248;
  5549. l1249:; G->pos= yypos1249; G->thunkpos= yythunkpos1249;
  5550. }
  5551. { int yypos1250= G->pos, yythunkpos1250= G->thunkpos;
  5552. { int yypos1251= G->pos, yythunkpos1251= G->thunkpos; if (!yy_Indent(G)) { goto l1251; } goto l1252;
  5553. l1251:; G->pos= yypos1251; G->thunkpos= yythunkpos1251;
  5554. }
  5555. l1252:;
  5556. { int yypos1253= G->pos, yythunkpos1253= G->thunkpos; if (!yy_Bullet(G)) { goto l1254; } goto l1253;
  5557. l1254:; G->pos= yypos1253; G->thunkpos= yythunkpos1253; if (!yy_Enumerator(G)) { goto l1250; }
  5558. }
  5559. l1253:; goto l1248;
  5560. l1250:; G->pos= yypos1250; G->thunkpos= yythunkpos1250;
  5561. }
  5562. { int yypos1255= G->pos, yythunkpos1255= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1255; } goto l1248;
  5563. l1255:; G->pos= yypos1255; G->thunkpos= yythunkpos1255;
  5564. } if (!yy_OptionallyIndentedLine(G)) { goto l1248; }
  5565. yyprintf((stderr, " ok %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5566. return 1;
  5567. l1248:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5568. yyprintf((stderr, " fail %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5569. return 0;
  5570. }
  5571. YY_RULE(int) yy_ListContinuationBlock(GREG *G)
  5572. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5573. yyprintf((stderr, "%s\n", "ListContinuationBlock")); if (!yy_StartList(G)) { goto l1256; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1256;
  5574. l1257:;
  5575. { int yypos1258= G->pos, yythunkpos1258= G->thunkpos; if (!yy_BlankLine(G)) { goto l1258; } goto l1257;
  5576. l1258:; G->pos= yypos1258; G->thunkpos= yythunkpos1258;
  5577. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1256; yyDo(G, yy_1_ListContinuationBlock, G->begin, G->end); if (!yy_Indent(G)) { goto l1256; } if (!yy_ListBlock(G)) { goto l1256; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end);
  5578. l1259:;
  5579. { int yypos1260= G->pos, yythunkpos1260= G->thunkpos; if (!yy_Indent(G)) { goto l1260; } if (!yy_ListBlock(G)) { goto l1260; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end); goto l1259;
  5580. l1260:; G->pos= yypos1260; G->thunkpos= yythunkpos1260;
  5581. } yyDo(G, yy_3_ListContinuationBlock, G->begin, G->end);
  5582. yyprintf((stderr, " ok %s @ %s\n", "ListContinuationBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5583. return 1;
  5584. l1256:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5585. yyprintf((stderr, " fail %s @ %s\n", "ListContinuationBlock", G->buf+G->pos));
  5586. return 0;
  5587. }
  5588. YY_RULE(int) yy_ListBlock(GREG *G)
  5589. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5590. yyprintf((stderr, "%s\n", "ListBlock")); if (!yy_StartList(G)) { goto l1261; } yyDo(G, yySet, -1, 0);
  5591. { int yypos1262= G->pos, yythunkpos1262= G->thunkpos; if (!yy_BlankLine(G)) { goto l1262; } goto l1261;
  5592. l1262:; G->pos= yypos1262; G->thunkpos= yythunkpos1262;
  5593. } if (!yy_Line(G)) { goto l1261; } yyDo(G, yy_1_ListBlock, G->begin, G->end);
  5594. l1263:;
  5595. { int yypos1264= G->pos, yythunkpos1264= G->thunkpos; if (!yy_ListBlockLine(G)) { goto l1264; } yyDo(G, yy_2_ListBlock, G->begin, G->end); goto l1263;
  5596. l1264:; G->pos= yypos1264; G->thunkpos= yythunkpos1264;
  5597. } yyDo(G, yy_3_ListBlock, G->begin, G->end);
  5598. yyprintf((stderr, " ok %s @ %s\n", "ListBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5599. return 1;
  5600. l1261:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5601. yyprintf((stderr, " fail %s @ %s\n", "ListBlock", G->buf+G->pos));
  5602. return 0;
  5603. }
  5604. YY_RULE(int) yy_ListItem(GREG *G)
  5605. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5606. yyprintf((stderr, "%s\n", "ListItem"));
  5607. { int yypos1266= G->pos, yythunkpos1266= G->thunkpos; if (!yy_Bullet(G)) { goto l1267; } goto l1266;
  5608. l1267:; G->pos= yypos1266; G->thunkpos= yythunkpos1266; if (!yy_Enumerator(G)) { goto l1265; }
  5609. }
  5610. l1266:; if (!yy_StartList(G)) { goto l1265; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1265; } yyDo(G, yy_1_ListItem, G->begin, G->end);
  5611. l1268:;
  5612. { int yypos1269= G->pos, yythunkpos1269= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1269; } yyDo(G, yy_2_ListItem, G->begin, G->end); goto l1268;
  5613. l1269:; G->pos= yypos1269; G->thunkpos= yythunkpos1269;
  5614. } yyDo(G, yy_3_ListItem, G->begin, G->end);
  5615. yyprintf((stderr, " ok %s @ %s\n", "ListItem", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5616. return 1;
  5617. l1265:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5618. yyprintf((stderr, " fail %s @ %s\n", "ListItem", G->buf+G->pos));
  5619. return 0;
  5620. }
  5621. YY_RULE(int) yy_Enumerator(GREG *G)
  5622. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5623. yyprintf((stderr, "%s\n", "Enumerator")); if (!yy_NonindentSpace(G)) { goto l1270; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1270; 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 l1270;
  5624. l1271:;
  5625. { int yypos1272= G->pos, yythunkpos1272= 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 l1272; goto l1271;
  5626. l1272:; G->pos= yypos1272; G->thunkpos= yythunkpos1272;
  5627. } if (!yymatchChar(G, '.')) goto l1270; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1270; if (!yy_Spacechar(G)) { goto l1270; }
  5628. l1273:;
  5629. { int yypos1274= G->pos, yythunkpos1274= G->thunkpos; if (!yy_Spacechar(G)) { goto l1274; } goto l1273;
  5630. l1274:; G->pos= yypos1274; G->thunkpos= yythunkpos1274;
  5631. } yyDo(G, yy_1_Enumerator, G->begin, G->end);
  5632. yyprintf((stderr, " ok %s @ %s\n", "Enumerator", G->buf+G->pos));
  5633. return 1;
  5634. l1270:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5635. yyprintf((stderr, " fail %s @ %s\n", "Enumerator", G->buf+G->pos));
  5636. return 0;
  5637. }
  5638. YY_RULE(int) yy_ListItemTight(GREG *G)
  5639. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5640. yyprintf((stderr, "%s\n", "ListItemTight"));
  5641. { int yypos1276= G->pos, yythunkpos1276= G->thunkpos; if (!yy_Bullet(G)) { goto l1277; } goto l1276;
  5642. l1277:; G->pos= yypos1276; G->thunkpos= yythunkpos1276; if (!yy_Enumerator(G)) { goto l1275; }
  5643. }
  5644. l1276:; if (!yy_StartList(G)) { goto l1275; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1275; } yyDo(G, yy_1_ListItemTight, G->begin, G->end);
  5645. l1278:;
  5646. { int yypos1279= G->pos, yythunkpos1279= G->thunkpos;
  5647. { int yypos1280= G->pos, yythunkpos1280= G->thunkpos; if (!yy_BlankLine(G)) { goto l1280; } goto l1279;
  5648. l1280:; G->pos= yypos1280; G->thunkpos= yythunkpos1280;
  5649. } if (!yy_ListContinuationBlock(G)) { goto l1279; } yyDo(G, yy_2_ListItemTight, G->begin, G->end); goto l1278;
  5650. l1279:; G->pos= yypos1279; G->thunkpos= yythunkpos1279;
  5651. }
  5652. { int yypos1281= G->pos, yythunkpos1281= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1281; } goto l1275;
  5653. l1281:; G->pos= yypos1281; G->thunkpos= yythunkpos1281;
  5654. } yyDo(G, yy_3_ListItemTight, G->begin, G->end);
  5655. yyprintf((stderr, " ok %s @ %s\n", "ListItemTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5656. return 1;
  5657. l1275:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5658. yyprintf((stderr, " fail %s @ %s\n", "ListItemTight", G->buf+G->pos));
  5659. return 0;
  5660. }
  5661. YY_RULE(int) yy_ListLoose(GREG *G)
  5662. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  5663. yyprintf((stderr, "%s\n", "ListLoose")); if (!yy_StartList(G)) { goto l1282; } yyDo(G, yySet, -2, 0); if (!yy_ListItem(G)) { goto l1282; } yyDo(G, yySet, -1, 0);
  5664. l1285:;
  5665. { int yypos1286= G->pos, yythunkpos1286= G->thunkpos; if (!yy_BlankLine(G)) { goto l1286; } goto l1285;
  5666. l1286:; G->pos= yypos1286; G->thunkpos= yythunkpos1286;
  5667. } yyDo(G, yy_1_ListLoose, G->begin, G->end);
  5668. l1283:;
  5669. { int yypos1284= G->pos, yythunkpos1284= G->thunkpos; if (!yy_ListItem(G)) { goto l1284; } yyDo(G, yySet, -1, 0);
  5670. l1287:;
  5671. { int yypos1288= G->pos, yythunkpos1288= G->thunkpos; if (!yy_BlankLine(G)) { goto l1288; } goto l1287;
  5672. l1288:; G->pos= yypos1288; G->thunkpos= yythunkpos1288;
  5673. } yyDo(G, yy_1_ListLoose, G->begin, G->end); goto l1283;
  5674. l1284:; G->pos= yypos1284; G->thunkpos= yythunkpos1284;
  5675. } yyDo(G, yy_2_ListLoose, G->begin, G->end);
  5676. yyprintf((stderr, " ok %s @ %s\n", "ListLoose", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  5677. return 1;
  5678. l1282:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5679. yyprintf((stderr, " fail %s @ %s\n", "ListLoose", G->buf+G->pos));
  5680. return 0;
  5681. }
  5682. YY_RULE(int) yy_ListTight(GREG *G)
  5683. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5684. yyprintf((stderr, "%s\n", "ListTight")); if (!yy_StartList(G)) { goto l1289; } yyDo(G, yySet, -1, 0); if (!yy_ListItemTight(G)) { goto l1289; } yyDo(G, yy_1_ListTight, G->begin, G->end);
  5685. l1290:;
  5686. { int yypos1291= G->pos, yythunkpos1291= G->thunkpos; if (!yy_ListItemTight(G)) { goto l1291; } yyDo(G, yy_1_ListTight, G->begin, G->end); goto l1290;
  5687. l1291:; G->pos= yypos1291; G->thunkpos= yythunkpos1291;
  5688. }
  5689. l1292:;
  5690. { int yypos1293= G->pos, yythunkpos1293= G->thunkpos; if (!yy_BlankLine(G)) { goto l1293; } goto l1292;
  5691. l1293:; G->pos= yypos1293; G->thunkpos= yythunkpos1293;
  5692. }
  5693. { int yypos1294= G->pos, yythunkpos1294= G->thunkpos;
  5694. { int yypos1295= G->pos, yythunkpos1295= G->thunkpos; if (!yy_Bullet(G)) { goto l1296; } goto l1295;
  5695. l1296:; G->pos= yypos1295; G->thunkpos= yythunkpos1295; if (!yy_Enumerator(G)) { goto l1294; }
  5696. }
  5697. l1295:; goto l1289;
  5698. l1294:; G->pos= yypos1294; G->thunkpos= yythunkpos1294;
  5699. } yyDo(G, yy_2_ListTight, G->begin, G->end);
  5700. yyprintf((stderr, " ok %s @ %s\n", "ListTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5701. return 1;
  5702. l1289:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5703. yyprintf((stderr, " fail %s @ %s\n", "ListTight", G->buf+G->pos));
  5704. return 0;
  5705. }
  5706. YY_RULE(int) yy_Spacechar(GREG *G)
  5707. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5708. yyprintf((stderr, "%s\n", "Spacechar"));
  5709. { int yypos1298= G->pos, yythunkpos1298= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1299; goto l1298;
  5710. l1299:; G->pos= yypos1298; G->thunkpos= yythunkpos1298; if (!yymatchChar(G, '\t')) goto l1297;
  5711. }
  5712. l1298:;
  5713. yyprintf((stderr, " ok %s @ %s\n", "Spacechar", G->buf+G->pos));
  5714. return 1;
  5715. l1297:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5716. yyprintf((stderr, " fail %s @ %s\n", "Spacechar", G->buf+G->pos));
  5717. return 0;
  5718. }
  5719. YY_RULE(int) yy_Bullet(GREG *G)
  5720. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5721. yyprintf((stderr, "%s\n", "Bullet"));
  5722. { int yypos1301= G->pos, yythunkpos1301= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1301; } goto l1300;
  5723. l1301:; G->pos= yypos1301; G->thunkpos= yythunkpos1301;
  5724. } if (!yy_NonindentSpace(G)) { goto l1300; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1300;
  5725. { int yypos1302= G->pos, yythunkpos1302= G->thunkpos; if (!yymatchChar(G, '+')) goto l1303; goto l1302;
  5726. l1303:; G->pos= yypos1302; G->thunkpos= yythunkpos1302; if (!yymatchChar(G, '*')) goto l1304; goto l1302;
  5727. l1304:; G->pos= yypos1302; G->thunkpos= yythunkpos1302; if (!yymatchChar(G, '-')) goto l1300;
  5728. }
  5729. l1302:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1300; if (!yy_Spacechar(G)) { goto l1300; }
  5730. l1305:;
  5731. { int yypos1306= G->pos, yythunkpos1306= G->thunkpos; if (!yy_Spacechar(G)) { goto l1306; } goto l1305;
  5732. l1306:; G->pos= yypos1306; G->thunkpos= yythunkpos1306;
  5733. } yyDo(G, yy_1_Bullet, G->begin, G->end);
  5734. yyprintf((stderr, " ok %s @ %s\n", "Bullet", G->buf+G->pos));
  5735. return 1;
  5736. l1300:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5737. yyprintf((stderr, " fail %s @ %s\n", "Bullet", G->buf+G->pos));
  5738. return 0;
  5739. }
  5740. YY_RULE(int) yy_VerbatimChunk(GREG *G)
  5741. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5742. yyprintf((stderr, "%s\n", "VerbatimChunk"));
  5743. l1308:;
  5744. { int yypos1309= G->pos, yythunkpos1309= G->thunkpos; if (!yy_BlankLine(G)) { goto l1309; } goto l1308;
  5745. l1309:; G->pos= yypos1309; G->thunkpos= yythunkpos1309;
  5746. } if (!yy_NonblankIndentedLine(G)) { goto l1307; }
  5747. l1310:;
  5748. { int yypos1311= G->pos, yythunkpos1311= G->thunkpos; if (!yy_NonblankIndentedLine(G)) { goto l1311; } goto l1310;
  5749. l1311:; G->pos= yypos1311; G->thunkpos= yythunkpos1311;
  5750. }
  5751. yyprintf((stderr, " ok %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  5752. return 1;
  5753. l1307:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5754. yyprintf((stderr, " fail %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  5755. return 0;
  5756. }
  5757. YY_RULE(int) yy_IndentedLine(GREG *G)
  5758. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5759. yyprintf((stderr, "%s\n", "IndentedLine")); if (!yy_Indent(G)) { goto l1312; } if (!yy_Line(G)) { goto l1312; }
  5760. yyprintf((stderr, " ok %s @ %s\n", "IndentedLine", G->buf+G->pos));
  5761. return 1;
  5762. l1312:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5763. yyprintf((stderr, " fail %s @ %s\n", "IndentedLine", G->buf+G->pos));
  5764. return 0;
  5765. }
  5766. YY_RULE(int) yy_NonblankIndentedLine(GREG *G)
  5767. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5768. yyprintf((stderr, "%s\n", "NonblankIndentedLine"));
  5769. { int yypos1314= G->pos, yythunkpos1314= G->thunkpos; if (!yy_BlankLine(G)) { goto l1314; } goto l1313;
  5770. l1314:; G->pos= yypos1314; G->thunkpos= yythunkpos1314;
  5771. } if (!yy_IndentedLine(G)) { goto l1313; }
  5772. yyprintf((stderr, " ok %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  5773. return 1;
  5774. l1313:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5775. yyprintf((stderr, " fail %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  5776. return 0;
  5777. }
  5778. YY_RULE(int) yy_Line(GREG *G)
  5779. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5780. yyprintf((stderr, "%s\n", "Line")); if (!yy_RawLine(G)) { goto l1315; } yyDo(G, yy_1_Line, G->begin, G->end);
  5781. yyprintf((stderr, " ok %s @ %s\n", "Line", G->buf+G->pos));
  5782. return 1;
  5783. l1315:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5784. yyprintf((stderr, " fail %s @ %s\n", "Line", G->buf+G->pos));
  5785. return 0;
  5786. }
  5787. YY_RULE(int) yy_StartList(GREG *G)
  5788. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5789. yyprintf((stderr, "%s\n", "StartList"));
  5790. { int yypos1317= G->pos, yythunkpos1317= G->thunkpos; if (!yymatchDot(G)) goto l1316; G->pos= yypos1317; G->thunkpos= yythunkpos1317;
  5791. } yyDo(G, yy_1_StartList, G->begin, G->end);
  5792. yyprintf((stderr, " ok %s @ %s\n", "StartList", G->buf+G->pos));
  5793. return 1;
  5794. l1316:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5795. yyprintf((stderr, " fail %s @ %s\n", "StartList", G->buf+G->pos));
  5796. return 0;
  5797. }
  5798. YY_RULE(int) yy_BlockQuoteRaw(GREG *G)
  5799. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5800. yyprintf((stderr, "%s\n", "BlockQuoteRaw")); if (!yy_StartList(G)) { goto l1318; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1318; if (!yymatchChar(G, '>')) goto l1318;
  5801. { int yypos1321= G->pos, yythunkpos1321= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1321; goto l1322;
  5802. l1321:; G->pos= yypos1321; G->thunkpos= yythunkpos1321;
  5803. }
  5804. l1322:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1318; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1318; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  5805. l1323:;
  5806. { int yypos1324= G->pos, yythunkpos1324= G->thunkpos;
  5807. { int yypos1325= G->pos, yythunkpos1325= G->thunkpos; if (!yymatchChar(G, '>')) goto l1325; goto l1324;
  5808. l1325:; G->pos= yypos1325; G->thunkpos= yythunkpos1325;
  5809. }
  5810. { int yypos1326= G->pos, yythunkpos1326= G->thunkpos; if (!yy_BlankLine(G)) { goto l1326; } goto l1324;
  5811. l1326:; G->pos= yypos1326; G->thunkpos= yythunkpos1326;
  5812. } if (!yy_Line(G)) { goto l1324; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1323;
  5813. l1324:; G->pos= yypos1324; G->thunkpos= yythunkpos1324;
  5814. }
  5815. l1327:;
  5816. { int yypos1328= G->pos, yythunkpos1328= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1328; if (!yy_BlankLine(G)) { goto l1328; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1328; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1327;
  5817. l1328:; G->pos= yypos1328; G->thunkpos= yythunkpos1328;
  5818. }
  5819. l1319:;
  5820. { int yypos1320= G->pos, yythunkpos1320= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1320; if (!yymatchChar(G, '>')) goto l1320;
  5821. { int yypos1329= G->pos, yythunkpos1329= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1329; goto l1330;
  5822. l1329:; G->pos= yypos1329; G->thunkpos= yythunkpos1329;
  5823. }
  5824. l1330:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1320; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1320; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  5825. l1331:;
  5826. { int yypos1332= G->pos, yythunkpos1332= G->thunkpos;
  5827. { int yypos1333= G->pos, yythunkpos1333= G->thunkpos; if (!yymatchChar(G, '>')) goto l1333; goto l1332;
  5828. l1333:; G->pos= yypos1333; G->thunkpos= yythunkpos1333;
  5829. }
  5830. { int yypos1334= G->pos, yythunkpos1334= G->thunkpos; if (!yy_BlankLine(G)) { goto l1334; } goto l1332;
  5831. l1334:; G->pos= yypos1334; G->thunkpos= yythunkpos1334;
  5832. } if (!yy_Line(G)) { goto l1332; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1331;
  5833. l1332:; G->pos= yypos1332; G->thunkpos= yythunkpos1332;
  5834. }
  5835. l1335:;
  5836. { int yypos1336= G->pos, yythunkpos1336= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1336; if (!yy_BlankLine(G)) { goto l1336; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1336; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1335;
  5837. l1336:; G->pos= yypos1336; G->thunkpos= yythunkpos1336;
  5838. } goto l1319;
  5839. l1320:; G->pos= yypos1320; G->thunkpos= yythunkpos1320;
  5840. } yyDo(G, yy_5_BlockQuoteRaw, G->begin, G->end);
  5841. yyprintf((stderr, " ok %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5842. return 1;
  5843. l1318:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5844. yyprintf((stderr, " fail %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos));
  5845. return 0;
  5846. }
  5847. YY_RULE(int) yy_Endline(GREG *G)
  5848. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5849. yyprintf((stderr, "%s\n", "Endline"));
  5850. { int yypos1338= G->pos, yythunkpos1338= G->thunkpos; if (!yy_LineBreak(G)) { goto l1339; } goto l1338;
  5851. l1339:; G->pos= yypos1338; G->thunkpos= yythunkpos1338; if (!yy_TerminalEndline(G)) { goto l1340; } goto l1338;
  5852. l1340:; G->pos= yypos1338; G->thunkpos= yythunkpos1338; if (!yy_NormalEndline(G)) { goto l1337; }
  5853. }
  5854. l1338:;
  5855. yyprintf((stderr, " ok %s @ %s\n", "Endline", G->buf+G->pos));
  5856. return 1;
  5857. l1337:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5858. yyprintf((stderr, " fail %s @ %s\n", "Endline", G->buf+G->pos));
  5859. return 0;
  5860. }
  5861. YY_RULE(int) yy_RawLine(GREG *G)
  5862. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5863. yyprintf((stderr, "%s\n", "RawLine"));
  5864. { int yypos1342= G->pos, yythunkpos1342= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1343;
  5865. l1344:;
  5866. { int yypos1345= G->pos, yythunkpos1345= G->thunkpos;
  5867. { int yypos1346= G->pos, yythunkpos1346= G->thunkpos; if (!yymatchChar(G, '\r')) goto l1346; goto l1345;
  5868. l1346:; G->pos= yypos1346; G->thunkpos= yythunkpos1346;
  5869. }
  5870. { int yypos1347= G->pos, yythunkpos1347= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1347; goto l1345;
  5871. l1347:; G->pos= yypos1347; G->thunkpos= yythunkpos1347;
  5872. } if (!yymatchDot(G)) goto l1345; goto l1344;
  5873. l1345:; G->pos= yypos1345; G->thunkpos= yythunkpos1345;
  5874. } if (!yy_Newline(G)) { goto l1343; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1343; goto l1342;
  5875. l1343:; G->pos= yypos1342; G->thunkpos= yythunkpos1342; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1341; if (!yymatchDot(G)) goto l1341;
  5876. l1348:;
  5877. { int yypos1349= G->pos, yythunkpos1349= G->thunkpos; if (!yymatchDot(G)) goto l1349; goto l1348;
  5878. l1349:; G->pos= yypos1349; G->thunkpos= yythunkpos1349;
  5879. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1341; if (!yy_Eof(G)) { goto l1341; }
  5880. }
  5881. l1342:; yyDo(G, yy_1_RawLine, G->begin, G->end);
  5882. yyprintf((stderr, " ok %s @ %s\n", "RawLine", G->buf+G->pos));
  5883. return 1;
  5884. l1341:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5885. yyprintf((stderr, " fail %s @ %s\n", "RawLine", G->buf+G->pos));
  5886. return 0;
  5887. }
  5888. YY_RULE(int) yy_SetextBottom2(GREG *G)
  5889. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5890. yyprintf((stderr, "%s\n", "SetextBottom2")); if (!yymatchChar(G, '-')) goto l1350;
  5891. l1351:;
  5892. { int yypos1352= G->pos, yythunkpos1352= G->thunkpos; if (!yymatchChar(G, '-')) goto l1352; goto l1351;
  5893. l1352:; G->pos= yypos1352; G->thunkpos= yythunkpos1352;
  5894. } if (!yy_Newline(G)) { goto l1350; }
  5895. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  5896. return 1;
  5897. l1350:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5898. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  5899. return 0;
  5900. }
  5901. YY_RULE(int) yy_SetextBottom1(GREG *G)
  5902. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5903. yyprintf((stderr, "%s\n", "SetextBottom1")); if (!yymatchChar(G, '=')) goto l1353;
  5904. l1354:;
  5905. { int yypos1355= G->pos, yythunkpos1355= G->thunkpos; if (!yymatchChar(G, '=')) goto l1355; goto l1354;
  5906. l1355:; G->pos= yypos1355; G->thunkpos= yythunkpos1355;
  5907. } if (!yy_Newline(G)) { goto l1353; }
  5908. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  5909. return 1;
  5910. l1353:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5911. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  5912. return 0;
  5913. }
  5914. YY_RULE(int) yy_SetextHeading2(GREG *G)
  5915. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5916. yyprintf((stderr, "%s\n", "SetextHeading2"));
  5917. { int yypos1357= G->pos, yythunkpos1357= G->thunkpos; if (!yy_RawLine(G)) { goto l1356; } if (!yy_SetextBottom2(G)) { goto l1356; } G->pos= yypos1357; G->thunkpos= yythunkpos1357;
  5918. } if (!yy_LocMarker(G)) { goto l1356; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1356;
  5919. { int yypos1360= G->pos, yythunkpos1360= G->thunkpos; if (!yy_Endline(G)) { goto l1360; } goto l1356;
  5920. l1360:; G->pos= yypos1360; G->thunkpos= yythunkpos1360;
  5921. } if (!yy_Inline(G)) { goto l1356; }
  5922. l1358:;
  5923. { int yypos1359= G->pos, yythunkpos1359= G->thunkpos;
  5924. { int yypos1361= G->pos, yythunkpos1361= G->thunkpos; if (!yy_Endline(G)) { goto l1361; } goto l1359;
  5925. l1361:; G->pos= yypos1361; G->thunkpos= yythunkpos1361;
  5926. } if (!yy_Inline(G)) { goto l1359; } goto l1358;
  5927. l1359:; G->pos= yypos1359; G->thunkpos= yythunkpos1359;
  5928. } if (!yy_Sp(G)) { goto l1356; } if (!yy_Newline(G)) { goto l1356; } if (!yy_SetextBottom2(G)) { goto l1356; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1356; yyDo(G, yy_1_SetextHeading2, G->begin, G->end);
  5929. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5930. return 1;
  5931. l1356:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5932. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading2", G->buf+G->pos));
  5933. return 0;
  5934. }
  5935. YY_RULE(int) yy_SetextHeading1(GREG *G)
  5936. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5937. yyprintf((stderr, "%s\n", "SetextHeading1"));
  5938. { int yypos1363= G->pos, yythunkpos1363= G->thunkpos; if (!yy_RawLine(G)) { goto l1362; } if (!yy_SetextBottom1(G)) { goto l1362; } G->pos= yypos1363; G->thunkpos= yythunkpos1363;
  5939. } if (!yy_LocMarker(G)) { goto l1362; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1362;
  5940. { int yypos1366= G->pos, yythunkpos1366= G->thunkpos; if (!yy_Endline(G)) { goto l1366; } goto l1362;
  5941. l1366:; G->pos= yypos1366; G->thunkpos= yythunkpos1366;
  5942. } if (!yy_Inline(G)) { goto l1362; }
  5943. l1364:;
  5944. { int yypos1365= G->pos, yythunkpos1365= G->thunkpos;
  5945. { int yypos1367= G->pos, yythunkpos1367= G->thunkpos; if (!yy_Endline(G)) { goto l1367; } goto l1365;
  5946. l1367:; G->pos= yypos1367; G->thunkpos= yythunkpos1367;
  5947. } if (!yy_Inline(G)) { goto l1365; } goto l1364;
  5948. l1365:; G->pos= yypos1365; G->thunkpos= yythunkpos1365;
  5949. } if (!yy_Sp(G)) { goto l1362; } if (!yy_Newline(G)) { goto l1362; } if (!yy_SetextBottom1(G)) { goto l1362; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1362; yyDo(G, yy_1_SetextHeading1, G->begin, G->end);
  5950. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5951. return 1;
  5952. l1362:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5953. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading1", G->buf+G->pos));
  5954. return 0;
  5955. }
  5956. YY_RULE(int) yy_SetextHeading(GREG *G)
  5957. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5958. yyprintf((stderr, "%s\n", "SetextHeading"));
  5959. { int yypos1369= G->pos, yythunkpos1369= G->thunkpos; if (!yy_SetextHeading1(G)) { goto l1370; } goto l1369;
  5960. l1370:; G->pos= yypos1369; G->thunkpos= yythunkpos1369; if (!yy_SetextHeading2(G)) { goto l1368; }
  5961. }
  5962. l1369:;
  5963. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading", G->buf+G->pos));
  5964. return 1;
  5965. l1368:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5966. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading", G->buf+G->pos));
  5967. return 0;
  5968. }
  5969. YY_RULE(int) yy_Space(GREG *G)
  5970. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5971. yyprintf((stderr, "%s\n", "Space")); if (!yy_Spacechar(G)) { goto l1371; }
  5972. l1372:;
  5973. { int yypos1373= G->pos, yythunkpos1373= G->thunkpos; if (!yy_Spacechar(G)) { goto l1373; } goto l1372;
  5974. l1373:; G->pos= yypos1373; G->thunkpos= yythunkpos1373;
  5975. }
  5976. yyprintf((stderr, " ok %s @ %s\n", "Space", G->buf+G->pos));
  5977. return 1;
  5978. l1371:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5979. yyprintf((stderr, " fail %s @ %s\n", "Space", G->buf+G->pos));
  5980. return 0;
  5981. }
  5982. YY_RULE(int) yy_AtxHeading(GREG *G)
  5983. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5984. yyprintf((stderr, "%s\n", "AtxHeading")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1374; if (!yy_AtxStart(G)) { goto l1374; } yyDo(G, yySet, -1, 0); if (!yy_Space(G)) { goto l1374; } if (!yy_AtxInline(G)) { goto l1374; }
  5985. l1375:;
  5986. { int yypos1376= G->pos, yythunkpos1376= G->thunkpos; if (!yy_AtxInline(G)) { goto l1376; } goto l1375;
  5987. l1376:; G->pos= yypos1376; G->thunkpos= yythunkpos1376;
  5988. }
  5989. { int yypos1377= G->pos, yythunkpos1377= G->thunkpos; if (!yy_Sp(G)) { goto l1377; }
  5990. l1379:;
  5991. { int yypos1380= G->pos, yythunkpos1380= G->thunkpos; if (!yymatchChar(G, '#')) goto l1380; goto l1379;
  5992. l1380:; G->pos= yypos1380; G->thunkpos= yythunkpos1380;
  5993. } if (!yy_Sp(G)) { goto l1377; } goto l1378;
  5994. l1377:; G->pos= yypos1377; G->thunkpos= yythunkpos1377;
  5995. }
  5996. l1378:; if (!yy_Newline(G)) { goto l1374; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1374; yyDo(G, yy_1_AtxHeading, G->begin, G->end);
  5997. yyprintf((stderr, " ok %s @ %s\n", "AtxHeading", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5998. return 1;
  5999. l1374:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6000. yyprintf((stderr, " fail %s @ %s\n", "AtxHeading", G->buf+G->pos));
  6001. return 0;
  6002. }
  6003. YY_RULE(int) yy_AtxStart(GREG *G)
  6004. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6005. yyprintf((stderr, "%s\n", "AtxStart")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1381;
  6006. { int yypos1382= G->pos, yythunkpos1382= G->thunkpos; if (!yymatchString(G, "######")) goto l1383; goto l1382;
  6007. l1383:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "#####")) goto l1384; goto l1382;
  6008. l1384:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "####")) goto l1385; goto l1382;
  6009. l1385:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "###")) goto l1386; goto l1382;
  6010. l1386:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "##")) goto l1387; goto l1382;
  6011. l1387:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchChar(G, '#')) goto l1381;
  6012. }
  6013. l1382:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1381; yyDo(G, yy_1_AtxStart, G->begin, G->end);
  6014. yyprintf((stderr, " ok %s @ %s\n", "AtxStart", G->buf+G->pos));
  6015. return 1;
  6016. l1381:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6017. yyprintf((stderr, " fail %s @ %s\n", "AtxStart", G->buf+G->pos));
  6018. return 0;
  6019. }
  6020. YY_RULE(int) yy_Inline(GREG *G)
  6021. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6022. yyprintf((stderr, "%s\n", "Inline"));
  6023. { int yypos1389= G->pos, yythunkpos1389= G->thunkpos; if (!yy_Str(G)) { goto l1390; } goto l1389;
  6024. l1390:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Endline(G)) { goto l1391; } goto l1389;
  6025. l1391:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_UlOrStarLine(G)) { goto l1392; } goto l1389;
  6026. l1392:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Space(G)) { goto l1393; } goto l1389;
  6027. l1393:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Strong(G)) { goto l1394; } goto l1389;
  6028. l1394:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Emph(G)) { goto l1395; } goto l1389;
  6029. l1395:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Strike(G)) { goto l1396; } goto l1389;
  6030. l1396:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Image(G)) { goto l1397; } goto l1389;
  6031. l1397:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Link(G)) { goto l1398; } goto l1389;
  6032. l1398:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_NoteReference(G)) { goto l1399; } goto l1389;
  6033. l1399:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_InlineNote(G)) { goto l1400; } goto l1389;
  6034. l1400:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Code(G)) { goto l1401; } goto l1389;
  6035. l1401:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_RawHtml(G)) { goto l1402; } goto l1389;
  6036. l1402:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Entity(G)) { goto l1403; } goto l1389;
  6037. l1403:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_EscapedChar(G)) { goto l1404; } goto l1389;
  6038. l1404:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Symbol(G)) { goto l1388; }
  6039. }
  6040. l1389:;
  6041. yyprintf((stderr, " ok %s @ %s\n", "Inline", G->buf+G->pos));
  6042. return 1;
  6043. l1388:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6044. yyprintf((stderr, " fail %s @ %s\n", "Inline", G->buf+G->pos));
  6045. return 0;
  6046. }
  6047. YY_RULE(int) yy_Sp(GREG *G)
  6048. {
  6049. yyprintf((stderr, "%s\n", "Sp"));
  6050. l1406:;
  6051. { int yypos1407= G->pos, yythunkpos1407= G->thunkpos; if (!yy_Spacechar(G)) { goto l1407; } goto l1406;
  6052. l1407:; G->pos= yypos1407; G->thunkpos= yythunkpos1407;
  6053. }
  6054. yyprintf((stderr, " ok %s @ %s\n", "Sp", G->buf+G->pos));
  6055. return 1;
  6056. }
  6057. YY_RULE(int) yy_Newline(GREG *G)
  6058. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6059. yyprintf((stderr, "%s\n", "Newline"));
  6060. { int yypos1409= G->pos, yythunkpos1409= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1410; goto l1409;
  6061. l1410:; G->pos= yypos1409; G->thunkpos= yythunkpos1409; if (!yymatchChar(G, '\r')) goto l1408;
  6062. { int yypos1411= G->pos, yythunkpos1411= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1411; goto l1412;
  6063. l1411:; G->pos= yypos1411; G->thunkpos= yythunkpos1411;
  6064. }
  6065. l1412:;
  6066. }
  6067. l1409:;
  6068. yyprintf((stderr, " ok %s @ %s\n", "Newline", G->buf+G->pos));
  6069. return 1;
  6070. l1408:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6071. yyprintf((stderr, " fail %s @ %s\n", "Newline", G->buf+G->pos));
  6072. return 0;
  6073. }
  6074. YY_RULE(int) yy_AtxInline(GREG *G)
  6075. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6076. yyprintf((stderr, "%s\n", "AtxInline"));
  6077. { int yypos1414= G->pos, yythunkpos1414= G->thunkpos; if (!yy_Newline(G)) { goto l1414; } goto l1413;
  6078. l1414:; G->pos= yypos1414; G->thunkpos= yythunkpos1414;
  6079. }
  6080. { int yypos1415= G->pos, yythunkpos1415= G->thunkpos; if (!yy_Sp(G)) { goto l1415; }
  6081. l1416:;
  6082. { int yypos1417= G->pos, yythunkpos1417= G->thunkpos; if (!yymatchChar(G, '#')) goto l1417; goto l1416;
  6083. l1417:; G->pos= yypos1417; G->thunkpos= yythunkpos1417;
  6084. } if (!yy_Sp(G)) { goto l1415; } if (!yy_Newline(G)) { goto l1415; } goto l1413;
  6085. l1415:; G->pos= yypos1415; G->thunkpos= yythunkpos1415;
  6086. } if (!yy_Inline(G)) { goto l1413; }
  6087. yyprintf((stderr, " ok %s @ %s\n", "AtxInline", G->buf+G->pos));
  6088. return 1;
  6089. l1413:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6090. yyprintf((stderr, " fail %s @ %s\n", "AtxInline", G->buf+G->pos));
  6091. return 0;
  6092. }
  6093. YY_RULE(int) yy_Inlines(GREG *G)
  6094. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6095. yyprintf((stderr, "%s\n", "Inlines"));
  6096. { int yypos1421= G->pos, yythunkpos1421= G->thunkpos;
  6097. { int yypos1423= G->pos, yythunkpos1423= G->thunkpos; if (!yy_Endline(G)) { goto l1423; } goto l1422;
  6098. l1423:; G->pos= yypos1423; G->thunkpos= yythunkpos1423;
  6099. } if (!yy_Inline(G)) { goto l1422; } goto l1421;
  6100. l1422:; G->pos= yypos1421; G->thunkpos= yythunkpos1421; if (!yy_Endline(G)) { goto l1418; }
  6101. { int yypos1424= G->pos, yythunkpos1424= G->thunkpos; if (!yy_Inline(G)) { goto l1418; } G->pos= yypos1424; G->thunkpos= yythunkpos1424;
  6102. }
  6103. }
  6104. l1421:;
  6105. l1419:;
  6106. { int yypos1420= G->pos, yythunkpos1420= G->thunkpos;
  6107. { int yypos1425= G->pos, yythunkpos1425= G->thunkpos;
  6108. { int yypos1427= G->pos, yythunkpos1427= G->thunkpos; if (!yy_Endline(G)) { goto l1427; } goto l1426;
  6109. l1427:; G->pos= yypos1427; G->thunkpos= yythunkpos1427;
  6110. } if (!yy_Inline(G)) { goto l1426; } goto l1425;
  6111. l1426:; G->pos= yypos1425; G->thunkpos= yythunkpos1425; if (!yy_Endline(G)) { goto l1420; }
  6112. { int yypos1428= G->pos, yythunkpos1428= G->thunkpos; if (!yy_Inline(G)) { goto l1420; } G->pos= yypos1428; G->thunkpos= yythunkpos1428;
  6113. }
  6114. }
  6115. l1425:; goto l1419;
  6116. l1420:; G->pos= yypos1420; G->thunkpos= yythunkpos1420;
  6117. }
  6118. { int yypos1429= G->pos, yythunkpos1429= G->thunkpos; if (!yy_Endline(G)) { goto l1429; } goto l1430;
  6119. l1429:; G->pos= yypos1429; G->thunkpos= yythunkpos1429;
  6120. }
  6121. l1430:;
  6122. yyprintf((stderr, " ok %s @ %s\n", "Inlines", G->buf+G->pos));
  6123. return 1;
  6124. l1418:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6125. yyprintf((stderr, " fail %s @ %s\n", "Inlines", G->buf+G->pos));
  6126. return 0;
  6127. }
  6128. YY_RULE(int) yy_NonindentSpace(GREG *G)
  6129. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6130. yyprintf((stderr, "%s\n", "NonindentSpace"));
  6131. { int yypos1432= G->pos, yythunkpos1432= G->thunkpos; if (!yymatchString(G, " ")) goto l1433; goto l1432;
  6132. l1433:; G->pos= yypos1432; G->thunkpos= yythunkpos1432; if (!yymatchString(G, " ")) goto l1434; goto l1432;
  6133. l1434:; G->pos= yypos1432; G->thunkpos= yythunkpos1432; if (!yymatchChar(G, ' ')) goto l1435; goto l1432;
  6134. l1435:; G->pos= yypos1432; G->thunkpos= yythunkpos1432; if (!yymatchString(G, "")) goto l1431;
  6135. }
  6136. l1432:;
  6137. yyprintf((stderr, " ok %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  6138. return 1;
  6139. l1431:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6140. yyprintf((stderr, " fail %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  6141. return 0;
  6142. }
  6143. YY_RULE(int) yy_Plain(GREG *G)
  6144. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6145. yyprintf((stderr, "%s\n", "Plain")); if (!yy_Inlines(G)) { goto l1436; }
  6146. yyprintf((stderr, " ok %s @ %s\n", "Plain", G->buf+G->pos));
  6147. return 1;
  6148. l1436:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6149. yyprintf((stderr, " fail %s @ %s\n", "Plain", G->buf+G->pos));
  6150. return 0;
  6151. }
  6152. YY_RULE(int) yy_Para(GREG *G)
  6153. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6154. yyprintf((stderr, "%s\n", "Para")); if (!yy_NonindentSpace(G)) { goto l1437; } if (!yy_Inlines(G)) { goto l1437; } if (!yy_BlankLine(G)) { goto l1437; }
  6155. l1438:;
  6156. { int yypos1439= G->pos, yythunkpos1439= G->thunkpos; if (!yy_BlankLine(G)) { goto l1439; } goto l1438;
  6157. l1439:; G->pos= yypos1439; G->thunkpos= yythunkpos1439;
  6158. }
  6159. yyprintf((stderr, " ok %s @ %s\n", "Para", G->buf+G->pos));
  6160. return 1;
  6161. l1437:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6162. yyprintf((stderr, " fail %s @ %s\n", "Para", G->buf+G->pos));
  6163. return 0;
  6164. }
  6165. YY_RULE(int) yy_StyleBlock(GREG *G)
  6166. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6167. yyprintf((stderr, "%s\n", "StyleBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1440; if (!yy_LocMarker(G)) { goto l1440; } yyDo(G, yySet, -1, 0); if (!yy_InStyleTags(G)) { goto l1440; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1440;
  6168. l1441:;
  6169. { int yypos1442= G->pos, yythunkpos1442= G->thunkpos; if (!yy_BlankLine(G)) { goto l1442; } goto l1441;
  6170. l1442:; G->pos= yypos1442; G->thunkpos= yythunkpos1442;
  6171. } yyDo(G, yy_1_StyleBlock, G->begin, G->end);
  6172. yyprintf((stderr, " ok %s @ %s\n", "StyleBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6173. return 1;
  6174. l1440:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6175. yyprintf((stderr, " fail %s @ %s\n", "StyleBlock", G->buf+G->pos));
  6176. return 0;
  6177. }
  6178. YY_RULE(int) yy_HtmlBlock(GREG *G)
  6179. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6180. yyprintf((stderr, "%s\n", "HtmlBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1443; if (!yy_LocMarker(G)) { goto l1443; } yyDo(G, yySet, -1, 0);
  6181. { int yypos1444= G->pos, yythunkpos1444= G->thunkpos; if (!yy_HtmlBlockInTags(G)) { goto l1445; } goto l1444;
  6182. l1445:; G->pos= yypos1444; G->thunkpos= yythunkpos1444; if (!yy_HtmlComment(G)) { goto l1446; } goto l1444;
  6183. l1446:; G->pos= yypos1444; G->thunkpos= yythunkpos1444; if (!yy_HtmlBlockSelfClosing(G)) { goto l1443; }
  6184. }
  6185. l1444:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1443; if (!yy_BlankLine(G)) { goto l1443; }
  6186. l1447:;
  6187. { int yypos1448= G->pos, yythunkpos1448= G->thunkpos; if (!yy_BlankLine(G)) { goto l1448; } goto l1447;
  6188. l1448:; G->pos= yypos1448; G->thunkpos= yythunkpos1448;
  6189. } yyDo(G, yy_1_HtmlBlock, G->begin, G->end);
  6190. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6191. return 1;
  6192. l1443:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6193. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlock", G->buf+G->pos));
  6194. return 0;
  6195. }
  6196. YY_RULE(int) yy_BulletList(GREG *G)
  6197. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6198. yyprintf((stderr, "%s\n", "BulletList"));
  6199. { int yypos1450= G->pos, yythunkpos1450= G->thunkpos; if (!yy_Bullet(G)) { goto l1449; } G->pos= yypos1450; G->thunkpos= yythunkpos1450;
  6200. }
  6201. { int yypos1451= G->pos, yythunkpos1451= G->thunkpos; if (!yy_ListTight(G)) { goto l1452; } goto l1451;
  6202. l1452:; G->pos= yypos1451; G->thunkpos= yythunkpos1451; if (!yy_ListLoose(G)) { goto l1449; }
  6203. }
  6204. l1451:;
  6205. yyprintf((stderr, " ok %s @ %s\n", "BulletList", G->buf+G->pos));
  6206. return 1;
  6207. l1449:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6208. yyprintf((stderr, " fail %s @ %s\n", "BulletList", G->buf+G->pos));
  6209. return 0;
  6210. }
  6211. YY_RULE(int) yy_OrderedList(GREG *G)
  6212. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6213. yyprintf((stderr, "%s\n", "OrderedList"));
  6214. { int yypos1454= G->pos, yythunkpos1454= G->thunkpos; if (!yy_Enumerator(G)) { goto l1453; } G->pos= yypos1454; G->thunkpos= yythunkpos1454;
  6215. }
  6216. { int yypos1455= G->pos, yythunkpos1455= G->thunkpos; if (!yy_ListTight(G)) { goto l1456; } goto l1455;
  6217. l1456:; G->pos= yypos1455; G->thunkpos= yythunkpos1455; if (!yy_ListLoose(G)) { goto l1453; }
  6218. }
  6219. l1455:;
  6220. yyprintf((stderr, " ok %s @ %s\n", "OrderedList", G->buf+G->pos));
  6221. return 1;
  6222. l1453:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6223. yyprintf((stderr, " fail %s @ %s\n", "OrderedList", G->buf+G->pos));
  6224. return 0;
  6225. }
  6226. YY_RULE(int) yy_Heading(GREG *G)
  6227. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6228. yyprintf((stderr, "%s\n", "Heading"));
  6229. { int yypos1458= G->pos, yythunkpos1458= G->thunkpos; if (!yy_SetextHeading(G)) { goto l1459; } goto l1458;
  6230. l1459:; G->pos= yypos1458; G->thunkpos= yythunkpos1458; if (!yy_AtxHeading(G)) { goto l1457; }
  6231. }
  6232. l1458:;
  6233. yyprintf((stderr, " ok %s @ %s\n", "Heading", G->buf+G->pos));
  6234. return 1;
  6235. l1457:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6236. yyprintf((stderr, " fail %s @ %s\n", "Heading", G->buf+G->pos));
  6237. return 0;
  6238. }
  6239. YY_RULE(int) yy_HorizontalRule(GREG *G)
  6240. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6241. yyprintf((stderr, "%s\n", "HorizontalRule")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1460; if (!yy_NonindentSpace(G)) { goto l1460; }
  6242. { int yypos1461= G->pos, yythunkpos1461= G->thunkpos; if (!yymatchChar(G, '*')) goto l1462; if (!yy_Sp(G)) { goto l1462; } if (!yymatchChar(G, '*')) goto l1462; if (!yy_Sp(G)) { goto l1462; } if (!yymatchChar(G, '*')) goto l1462;
  6243. l1463:;
  6244. { int yypos1464= G->pos, yythunkpos1464= G->thunkpos; if (!yy_Sp(G)) { goto l1464; } if (!yymatchChar(G, '*')) goto l1464; goto l1463;
  6245. l1464:; G->pos= yypos1464; G->thunkpos= yythunkpos1464;
  6246. } goto l1461;
  6247. l1462:; G->pos= yypos1461; G->thunkpos= yythunkpos1461; if (!yymatchChar(G, '-')) goto l1465; if (!yy_Sp(G)) { goto l1465; } if (!yymatchChar(G, '-')) goto l1465; if (!yy_Sp(G)) { goto l1465; } if (!yymatchChar(G, '-')) goto l1465;
  6248. l1466:;
  6249. { int yypos1467= G->pos, yythunkpos1467= G->thunkpos; if (!yy_Sp(G)) { goto l1467; } if (!yymatchChar(G, '-')) goto l1467; goto l1466;
  6250. l1467:; G->pos= yypos1467; G->thunkpos= yythunkpos1467;
  6251. } goto l1461;
  6252. l1465:; G->pos= yypos1461; G->thunkpos= yythunkpos1461; if (!yymatchChar(G, '_')) goto l1460; if (!yy_Sp(G)) { goto l1460; } if (!yymatchChar(G, '_')) goto l1460; if (!yy_Sp(G)) { goto l1460; } if (!yymatchChar(G, '_')) goto l1460;
  6253. l1468:;
  6254. { int yypos1469= G->pos, yythunkpos1469= G->thunkpos; if (!yy_Sp(G)) { goto l1469; } if (!yymatchChar(G, '_')) goto l1469; goto l1468;
  6255. l1469:; G->pos= yypos1469; G->thunkpos= yythunkpos1469;
  6256. }
  6257. }
  6258. l1461:; if (!yy_Sp(G)) { goto l1460; } if (!yy_Newline(G)) { goto l1460; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1460; if (!yy_BlankLine(G)) { goto l1460; }
  6259. l1470:;
  6260. { int yypos1471= G->pos, yythunkpos1471= G->thunkpos; if (!yy_BlankLine(G)) { goto l1471; } goto l1470;
  6261. l1471:; G->pos= yypos1471; G->thunkpos= yythunkpos1471;
  6262. } yyDo(G, yy_1_HorizontalRule, G->begin, G->end);
  6263. yyprintf((stderr, " ok %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6264. return 1;
  6265. l1460:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6266. yyprintf((stderr, " fail %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6267. return 0;
  6268. }
  6269. YY_RULE(int) yy_Reference(GREG *G)
  6270. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 3, 0);
  6271. yyprintf((stderr, "%s\n", "Reference")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1472; if (!yy_LocMarker(G)) { goto l1472; } yyDo(G, yySet, -3, 0); if (!yy_NonindentSpace(G)) { goto l1472; }
  6272. { int yypos1473= G->pos, yythunkpos1473= G->thunkpos; if (!yymatchString(G, "[]")) goto l1473; goto l1472;
  6273. l1473:; G->pos= yypos1473; G->thunkpos= yythunkpos1473;
  6274. } if (!yy_Label(G)) { goto l1472; } yyDo(G, yySet, -2, 0); if (!yymatchChar(G, ':')) goto l1472; if (!yy_Spnl(G)) { goto l1472; } if (!yy_RefSrc(G)) { goto l1472; } yyDo(G, yySet, -1, 0); if (!yy_RefTitle(G)) { goto l1472; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1472; if (!yy_BlankLine(G)) { goto l1472; }
  6275. l1474:;
  6276. { int yypos1475= G->pos, yythunkpos1475= G->thunkpos; if (!yy_BlankLine(G)) { goto l1475; } goto l1474;
  6277. l1475:; G->pos= yypos1475; G->thunkpos= yythunkpos1475;
  6278. } yyDo(G, yy_1_Reference, G->begin, G->end);
  6279. yyprintf((stderr, " ok %s @ %s\n", "Reference", G->buf+G->pos)); yyDo(G, yyPop, 3, 0);
  6280. return 1;
  6281. l1472:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6282. yyprintf((stderr, " fail %s @ %s\n", "Reference", G->buf+G->pos));
  6283. return 0;
  6284. }
  6285. YY_RULE(int) yy_Note(GREG *G)
  6286. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6287. yyprintf((stderr, "%s\n", "Note")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l1476; if (!yy_NonindentSpace(G)) { goto l1476; } if (!yy_RawNoteReference(G)) { goto l1476; } if (!yymatchChar(G, ':')) goto l1476; if (!yy_Sp(G)) { goto l1476; } if (!yy_RawNoteBlock(G)) { goto l1476; }
  6288. l1477:;
  6289. { int yypos1478= G->pos, yythunkpos1478= G->thunkpos;
  6290. { int yypos1479= G->pos, yythunkpos1479= G->thunkpos; if (!yy_Indent(G)) { goto l1478; } G->pos= yypos1479; G->thunkpos= yythunkpos1479;
  6291. } if (!yy_RawNoteBlock(G)) { goto l1478; } goto l1477;
  6292. l1478:; G->pos= yypos1478; G->thunkpos= yythunkpos1478;
  6293. }
  6294. yyprintf((stderr, " ok %s @ %s\n", "Note", G->buf+G->pos));
  6295. return 1;
  6296. l1476:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6297. yyprintf((stderr, " fail %s @ %s\n", "Note", G->buf+G->pos));
  6298. return 0;
  6299. }
  6300. YY_RULE(int) yy_Verbatim(GREG *G)
  6301. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6302. yyprintf((stderr, "%s\n", "Verbatim")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1480; if (!yy_LocMarker(G)) { goto l1480; } yyDo(G, yySet, -1, 0); if (!yy_VerbatimChunk(G)) { goto l1480; }
  6303. l1481:;
  6304. { int yypos1482= G->pos, yythunkpos1482= G->thunkpos; if (!yy_VerbatimChunk(G)) { goto l1482; } goto l1481;
  6305. l1482:; G->pos= yypos1482; G->thunkpos= yythunkpos1482;
  6306. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1480; yyDo(G, yy_1_Verbatim, G->begin, G->end);
  6307. yyprintf((stderr, " ok %s @ %s\n", "Verbatim", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6308. return 1;
  6309. l1480:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6310. yyprintf((stderr, " fail %s @ %s\n", "Verbatim", G->buf+G->pos));
  6311. return 0;
  6312. }
  6313. YY_RULE(int) yy_BlockQuote(GREG *G)
  6314. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6315. yyprintf((stderr, "%s\n", "BlockQuote")); if (!yy_BlockQuoteRaw(G)) { goto l1483; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_BlockQuote, G->begin, G->end);
  6316. yyprintf((stderr, " ok %s @ %s\n", "BlockQuote", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6317. return 1;
  6318. l1483:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6319. yyprintf((stderr, " fail %s @ %s\n", "BlockQuote", G->buf+G->pos));
  6320. return 0;
  6321. }
  6322. YY_RULE(int) yy_BlankLine(GREG *G)
  6323. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6324. yyprintf((stderr, "%s\n", "BlankLine")); if (!yy_Sp(G)) { goto l1484; } if (!yy_Newline(G)) { goto l1484; }
  6325. yyprintf((stderr, " ok %s @ %s\n", "BlankLine", G->buf+G->pos));
  6326. return 1;
  6327. l1484:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6328. yyprintf((stderr, " fail %s @ %s\n", "BlankLine", G->buf+G->pos));
  6329. return 0;
  6330. }
  6331. YY_RULE(int) yy_LocMarker(GREG *G)
  6332. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6333. yyprintf((stderr, "%s\n", "LocMarker"));
  6334. { int yypos1486= G->pos, yythunkpos1486= G->thunkpos; if (!yymatchDot(G)) goto l1485; G->pos= yypos1486; G->thunkpos= yythunkpos1486;
  6335. } yyDo(G, yy_1_LocMarker, G->begin, G->end);
  6336. yyprintf((stderr, " ok %s @ %s\n", "LocMarker", G->buf+G->pos));
  6337. return 1;
  6338. l1485:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6339. yyprintf((stderr, " fail %s @ %s\n", "LocMarker", G->buf+G->pos));
  6340. return 0;
  6341. }
  6342. YY_RULE(int) yy_Block(GREG *G)
  6343. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6344. yyprintf((stderr, "%s\n", "Block"));
  6345. l1488:;
  6346. { int yypos1489= G->pos, yythunkpos1489= G->thunkpos; if (!yy_BlankLine(G)) { goto l1489; } goto l1488;
  6347. l1489:; G->pos= yypos1489; G->thunkpos= yythunkpos1489;
  6348. }
  6349. { int yypos1490= G->pos, yythunkpos1490= G->thunkpos; if (!yy_BlockQuote(G)) { goto l1491; } goto l1490;
  6350. l1491:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_Verbatim(G)) { goto l1492; } goto l1490;
  6351. l1492:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_Note(G)) { goto l1493; } goto l1490;
  6352. l1493:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_Reference(G)) { goto l1494; } goto l1490;
  6353. l1494:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_HorizontalRule(G)) { goto l1495; } goto l1490;
  6354. l1495:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_Heading(G)) { goto l1496; } goto l1490;
  6355. l1496:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_OrderedList(G)) { goto l1497; } goto l1490;
  6356. l1497:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_BulletList(G)) { goto l1498; } goto l1490;
  6357. l1498:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_HtmlBlock(G)) { goto l1499; } goto l1490;
  6358. l1499:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_StyleBlock(G)) { goto l1500; } goto l1490;
  6359. l1500:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_Para(G)) { goto l1501; } goto l1490;
  6360. l1501:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; if (!yy_Plain(G)) { goto l1487; }
  6361. }
  6362. l1490:;
  6363. yyprintf((stderr, " ok %s @ %s\n", "Block", G->buf+G->pos));
  6364. return 1;
  6365. l1487:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6366. yyprintf((stderr, " fail %s @ %s\n", "Block", G->buf+G->pos));
  6367. return 0;
  6368. }
  6369. YY_RULE(int) yy_Doc(GREG *G)
  6370. {
  6371. yyprintf((stderr, "%s\n", "Doc"));
  6372. l1503:;
  6373. { int yypos1504= G->pos, yythunkpos1504= G->thunkpos; if (!yy_Block(G)) { goto l1504; } goto l1503;
  6374. l1504:; G->pos= yypos1504; G->thunkpos= yythunkpos1504;
  6375. }
  6376. yyprintf((stderr, " ok %s @ %s\n", "Doc", G->buf+G->pos));
  6377. return 1;
  6378. }
  6379. #ifndef YY_PART
  6380. typedef int (*yyrule)(GREG *G);
  6381. YY_PARSE(int) YY_NAME(parse_from)(GREG *G, yyrule yystart)
  6382. {
  6383. int yyok;
  6384. if (!G->buflen)
  6385. {
  6386. G->buflen= YY_BUFFER_START_SIZE;
  6387. G->buf= (char *)YY_ALLOC(G->buflen, G->data);
  6388. G->textlen= YY_BUFFER_START_SIZE;
  6389. G->text= (char *)YY_ALLOC(G->textlen, G->data);
  6390. G->thunkslen= YY_STACK_SIZE;
  6391. G->thunks= (yythunk *)YY_ALLOC(sizeof(yythunk) * G->thunkslen, G->data);
  6392. G->valslen= YY_STACK_SIZE;
  6393. G->vals= (YYSTYPE*)YY_ALLOC(sizeof(YYSTYPE) * G->valslen, G->data);
  6394. G->begin= G->end= G->pos= G->limit= G->thunkpos= 0;
  6395. }
  6396. G->pos = 0;
  6397. G->begin= G->end= G->pos;
  6398. G->thunkpos= 0;
  6399. G->val= G->vals;
  6400. yyok= yystart(G);
  6401. if (yyok) yyDone(G);
  6402. yyCommit(G);
  6403. return yyok;
  6404. (void)yyrefill(NULL);
  6405. (void)yymatchDot(NULL);
  6406. (void)yymatchChar(NULL, 0);
  6407. (void)yymatchString(NULL, NULL);
  6408. (void)yymatchClass(NULL, NULL);
  6409. (void)yyDo(NULL, NULL, 0, 0);
  6410. (void)yyText(NULL, 0, 0);
  6411. (void)yyDone(NULL);
  6412. (void)yyCommit(NULL);
  6413. (void)yyAccept(NULL, 0);
  6414. (void)yyPush(NULL, NULL, 0, NULL, NULL);
  6415. (void)yyPop(NULL, NULL, 0, NULL, NULL);
  6416. (void)yySet(NULL, NULL, 0, NULL, NULL);
  6417. }
  6418. YY_PARSE(int) YY_NAME(parse)(GREG *G)
  6419. {
  6420. return YY_NAME(parse_from)(G, yy_Doc);
  6421. }
  6422. YY_PARSE(GREG *) YY_NAME(parse_new)(YY_XTYPE data)
  6423. {
  6424. GREG *G = (GREG *)YY_CALLOC(1, sizeof(GREG), G->data);
  6425. G->data = data;
  6426. return G;
  6427. }
  6428. YY_PARSE(void) YY_NAME(parse_free)(GREG *G)
  6429. {
  6430. YY_FREE(G->buf);
  6431. YY_FREE(G->text);
  6432. YY_FREE(G->thunks);
  6433. YY_FREE(G->vals);
  6434. YY_FREE(G);
  6435. }
  6436. #endif
  6437. /* PEG Markdown Highlight
  6438. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  6439. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  6440. *
  6441. * pmh_parser_foot.c
  6442. *
  6443. * Code to be appended to the end of the parser code generated from the
  6444. * PEG grammar.
  6445. */
  6446. static void _parse(parser_data *p_data, yyrule start_rule)
  6447. {
  6448. GREG *g = YY_NAME(parse_new)(p_data);
  6449. if (start_rule == NULL)
  6450. YY_NAME(parse)(g);
  6451. else
  6452. YY_NAME(parse_from)(g, start_rule);
  6453. YY_NAME(parse_free)(g);
  6454. pmh_PRINTF("\n\n");
  6455. }
  6456. static void parse_markdown(parser_data *p_data)
  6457. {
  6458. pmh_PRINTF("\nPARSING DOCUMENT: ");
  6459. _parse(p_data, NULL);
  6460. }
  6461. static void parse_references(parser_data *p_data)
  6462. {
  6463. pmh_PRINTF("\nPARSING REFERENCES: ");
  6464. p_data->parsing_only_references = true;
  6465. _parse(p_data, yy_References);
  6466. p_data->parsing_only_references = false;
  6467. p_data->references = p_data->head_elems[pmh_REFERENCE];
  6468. p_data->head_elems[pmh_REFERENCE] = NULL;
  6469. }