pmh_parser.c 318 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550
  1. /* A recursive-descent parser generated by greg 0.4.3 */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. struct _GREG;
  6. #define YYRULECOUNT 225
  7. /* PEG Markdown Highlight
  8. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  9. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  10. *
  11. * pmh_grammar.leg
  12. *
  13. * This is a slightly adapted version of the PEG grammar from John MacFarlane's
  14. * peg-markdown compiler.
  15. */
  16. /* PEG Markdown Highlight
  17. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  18. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  19. *
  20. * pmh_parser_head.c
  21. *
  22. * Code to be inserted into the beginning of the parser code generated
  23. * from the PEG grammar.
  24. */
  25. #include "pmh_parser.h"
  26. #ifndef pmh_DEBUG_OUTPUT
  27. #define pmh_DEBUG_OUTPUT 0
  28. #endif
  29. #if pmh_DEBUG_OUTPUT
  30. #define pmh_IF(x) if (x)
  31. #define pmh_PRINTF(x, ...) fprintf(stderr, x, ##__VA_ARGS__)
  32. #define pmh_PUTCHAR(x) putchar(x)
  33. #else
  34. #define pmh_IF(x)
  35. #define pmh_PRINTF(x, ...)
  36. #define pmh_PUTCHAR(x)
  37. #endif
  38. // Alias strdup to _strdup on MSVC:
  39. #ifdef _MSC_VER
  40. #define strdup _strdup
  41. #endif
  42. char *strdup_or_null(char *s)
  43. {
  44. return (s == NULL) ? NULL : strdup(s);
  45. }
  46. // Internal language element occurrence structure, containing
  47. // both public and private members:
  48. struct pmh_RealElement
  49. {
  50. // "Public" members:
  51. // (these must match what's defined in pmh_definitions.h)
  52. // -----------------------------------------------
  53. pmh_element_type type;
  54. unsigned long pos;
  55. unsigned long end;
  56. struct pmh_RealElement *next;
  57. char *label;
  58. char *address;
  59. // "Private" members for use by the parser itself:
  60. // -----------------------------------------------
  61. // next element in list of all elements:
  62. struct pmh_RealElement *all_elems_next;
  63. // offset to text (for elements of type pmh_EXTRA_TEXT, used when the
  64. // parser reads the value of 'text'):
  65. int text_offset;
  66. // text content (for elements of type pmh_EXTRA_TEXT):
  67. char *text;
  68. // children of element (for elements of type pmh_RAW_LIST)
  69. struct pmh_RealElement *children;
  70. };
  71. typedef struct pmh_RealElement pmh_realelement;
  72. // Parser state data:
  73. typedef struct
  74. {
  75. /* The original, unmodified UTF-8 input: */
  76. char *original_input;
  77. /* The offsets of the bytes we have stripped from original_input: */
  78. unsigned long *strip_positions;
  79. size_t strip_positions_len;
  80. /* Buffer of characters to be parsed: */
  81. char *charbuf;
  82. /* Linked list of {start, end} offset pairs determining which parts */
  83. /* of charbuf to actually parse: */
  84. pmh_realelement *current_elem;
  85. pmh_realelement *elem_head;
  86. /* Current parsing offset within charbuf: */
  87. unsigned long offset;
  88. /* The extensions to use for parsing (bitfield */
  89. /* of enum pmh_extensions): */
  90. int extensions;
  91. /* Array of parsing result elements, indexed by type: */
  92. pmh_realelement **head_elems;
  93. /* Whether we are parsing only references: */
  94. bool parsing_only_references;
  95. /* List of reference elements: */
  96. pmh_realelement *references;
  97. } parser_data;
  98. static parser_data *mk_parser_data(char *original_input,
  99. unsigned long *strip_positions,
  100. size_t strip_positions_len,
  101. char *charbuf,
  102. pmh_realelement *parsing_elems,
  103. unsigned long offset,
  104. int extensions,
  105. pmh_realelement **head_elems,
  106. pmh_realelement *references)
  107. {
  108. parser_data *p_data = (parser_data *)malloc(sizeof(parser_data));
  109. p_data->extensions = extensions;
  110. p_data->original_input = original_input;
  111. p_data->strip_positions = strip_positions;
  112. p_data->strip_positions_len = strip_positions_len;
  113. p_data->charbuf = charbuf;
  114. p_data->offset = offset;
  115. p_data->elem_head = p_data->current_elem = parsing_elems;
  116. p_data->references = references;
  117. p_data->parsing_only_references = false;
  118. if (head_elems != NULL)
  119. p_data->head_elems = head_elems;
  120. else {
  121. p_data->head_elems = (pmh_realelement **)
  122. malloc(sizeof(pmh_realelement *) * pmh_NUM_TYPES);
  123. int i;
  124. for (i = 0; i < pmh_NUM_TYPES; i++)
  125. p_data->head_elems[i] = NULL;
  126. }
  127. return p_data;
  128. }
  129. // Forward declarations
  130. static void parse_markdown(parser_data *p_data);
  131. static void parse_references(parser_data *p_data);
  132. static char **get_element_type_names()
  133. {
  134. static char **elem_type_names = NULL;
  135. if (elem_type_names == NULL)
  136. {
  137. elem_type_names = (char **)malloc(sizeof(char*) * pmh_NUM_LANG_TYPES);
  138. int i;
  139. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  140. elem_type_names[i] = NULL;
  141. elem_type_names[pmh_LINK] = "LINK";
  142. elem_type_names[pmh_AUTO_LINK_URL] = "AUTO_LINK_URL";
  143. elem_type_names[pmh_AUTO_LINK_EMAIL] = "AUTO_LINK_EMAIL";
  144. elem_type_names[pmh_IMAGE] = "IMAGE";
  145. elem_type_names[pmh_CODE] = "CODE";
  146. elem_type_names[pmh_HTML] = "HTML";
  147. elem_type_names[pmh_HTML_ENTITY] = "HTML_ENTITY";
  148. elem_type_names[pmh_EMPH] = "EMPH";
  149. elem_type_names[pmh_STRONG] = "STRONG";
  150. elem_type_names[pmh_LIST_BULLET] = "LIST_BULLET";
  151. elem_type_names[pmh_LIST_ENUMERATOR] = "LIST_ENUMERATOR";
  152. elem_type_names[pmh_COMMENT] = "COMMENT";
  153. elem_type_names[pmh_H1] = "H1";
  154. elem_type_names[pmh_H2] = "H2";
  155. elem_type_names[pmh_H3] = "H3";
  156. elem_type_names[pmh_H4] = "H4";
  157. elem_type_names[pmh_H5] = "H5";
  158. elem_type_names[pmh_H6] = "H6";
  159. elem_type_names[pmh_BLOCKQUOTE] = "BLOCKQUOTE";
  160. elem_type_names[pmh_VERBATIM] = "VERBATIM";
  161. elem_type_names[pmh_HTMLBLOCK] = "HTMLBLOCK";
  162. elem_type_names[pmh_HRULE] = "HRULE";
  163. elem_type_names[pmh_REFERENCE] = "REFERENCE";
  164. elem_type_names[pmh_NOTE] = "NOTE";
  165. elem_type_names[pmh_STRIKE] = "STRIKE";
  166. }
  167. return elem_type_names;
  168. }
  169. pmh_element_type pmh_element_type_from_name(char *name)
  170. {
  171. char **elem_type_names = get_element_type_names();
  172. int i;
  173. for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
  174. {
  175. char *i_name = elem_type_names[i];
  176. if (i_name == NULL)
  177. continue;
  178. if (strcmp(i_name, name) == 0)
  179. return i;
  180. }
  181. return pmh_NO_TYPE;
  182. }
  183. char *pmh_element_name_from_type(pmh_element_type type)
  184. {
  185. char **elem_type_names = get_element_type_names();
  186. char* ret = elem_type_names[type];
  187. if (ret == NULL)
  188. return "unknown type";
  189. return ret;
  190. }
  191. /*
  192. Remove pmh_RAW elements with zero length; return pointer
  193. to new head.
  194. */
  195. static pmh_realelement *remove_zero_length_raw_spans(pmh_realelement *elem)
  196. {
  197. pmh_realelement *head = elem;
  198. pmh_realelement *parent = NULL;
  199. pmh_realelement *c = head;
  200. while (c != NULL)
  201. {
  202. if (c->type == pmh_RAW && c->pos >= c->end)
  203. {
  204. if (parent != NULL)
  205. parent->next = c->next;
  206. else
  207. head = c->next;
  208. parent = c;
  209. c = c->next;
  210. continue;
  211. }
  212. parent = c;
  213. c = c->next;
  214. }
  215. return head;
  216. }
  217. #if pmh_DEBUG_OUTPUT
  218. /*
  219. Print null-terminated string s.t. some characters are
  220. represented by their corresponding espace sequences
  221. */
  222. static void print_str_literal_escapes(char *str)
  223. {
  224. char *c = str;
  225. pmh_PRINTF("'");
  226. while (*c != '\0')
  227. {
  228. if (*c == '\n') pmh_PRINTF("\\n");
  229. else if (*c == '\t') pmh_PRINTF("\\t");
  230. else putchar(*c);
  231. c++;
  232. }
  233. pmh_PRINTF("'");
  234. }
  235. #endif
  236. #if pmh_DEBUG_OUTPUT
  237. /*
  238. Print elements in a linked list of
  239. pmh_RAW, pmh_SEPARATOR, pmh_EXTRA_TEXT elements
  240. */
  241. static void print_raw_spans_inline(pmh_realelement *elem)
  242. {
  243. pmh_realelement *cur = elem;
  244. while (cur != NULL)
  245. {
  246. if (cur->type == pmh_SEPARATOR)
  247. pmh_PRINTF("<pmh_SEP %ld> ", cur->pos);
  248. else if (cur->type == pmh_EXTRA_TEXT) {
  249. pmh_PRINTF("{pmh_ETEXT ");
  250. print_str_literal_escapes(cur->text);
  251. pmh_PRINTF("}");
  252. }
  253. else
  254. pmh_PRINTF("(%ld-%ld) ", cur->pos, cur->end);
  255. cur = cur->next;
  256. }
  257. }
  258. #endif
  259. /*
  260. Perform postprocessing parsing runs for pmh_RAW_LIST elements in `elem`,
  261. iteratively until no such elements exist.
  262. */
  263. static void process_raw_blocks(parser_data *p_data)
  264. {
  265. pmh_PRINTF("--------process_raw_blocks---------\n");
  266. while (p_data->head_elems[pmh_RAW_LIST] != NULL)
  267. {
  268. pmh_PRINTF("new iteration.\n");
  269. pmh_realelement *cursor = p_data->head_elems[pmh_RAW_LIST];
  270. p_data->head_elems[pmh_RAW_LIST] = NULL;
  271. while (cursor != NULL)
  272. {
  273. pmh_realelement *span_list = (pmh_realelement*)cursor->children;
  274. span_list = remove_zero_length_raw_spans(span_list);
  275. #if pmh_DEBUG_OUTPUT
  276. pmh_PRINTF(" process: ");
  277. print_raw_spans_inline(span_list);
  278. pmh_PRINTF("\n");
  279. #endif
  280. while (span_list != NULL)
  281. {
  282. pmh_PRINTF("next: span_list: %ld-%ld\n",
  283. span_list->pos, span_list->end);
  284. // Skip separators in the beginning, as well as
  285. // separators after another separator:
  286. if (span_list->type == pmh_SEPARATOR) {
  287. span_list = span_list->next;
  288. continue;
  289. }
  290. // Store list of spans until next separator in subspan_list:
  291. pmh_realelement *subspan_list = span_list;
  292. pmh_realelement *previous = NULL;
  293. while (span_list != NULL && span_list->type != pmh_SEPARATOR) {
  294. previous = span_list;
  295. span_list = span_list->next;
  296. }
  297. if (span_list != NULL && span_list->type == pmh_SEPARATOR) {
  298. span_list = span_list->next;
  299. previous->next = NULL;
  300. }
  301. #if pmh_DEBUG_OUTPUT
  302. pmh_PRINTF(" subspan process: ");
  303. print_raw_spans_inline(subspan_list);
  304. pmh_PRINTF("\n");
  305. #endif
  306. // Process subspan_list:
  307. parser_data *raw_p_data = mk_parser_data(
  308. p_data->original_input,
  309. p_data->strip_positions,
  310. p_data->strip_positions_len,
  311. p_data->charbuf,
  312. subspan_list,
  313. subspan_list->pos,
  314. p_data->extensions,
  315. p_data->head_elems,
  316. p_data->references
  317. );
  318. parse_markdown(raw_p_data);
  319. free(raw_p_data);
  320. pmh_PRINTF("parse over\n");
  321. }
  322. cursor = cursor->next;
  323. }
  324. }
  325. }
  326. #if pmh_DEBUG_OUTPUT
  327. static void print_raw_blocks(char *text, pmh_realelement *elem[])
  328. {
  329. pmh_PRINTF("--------print_raw_blocks---------\n");
  330. pmh_PRINTF("block:\n");
  331. pmh_realelement *cursor = elem[pmh_RAW_LIST];
  332. while (cursor != NULL)
  333. {
  334. print_raw_spans_inline(cursor->children);
  335. cursor = cursor->next;
  336. }
  337. }
  338. #endif
  339. /* Free all elements created while parsing */
  340. void pmh_free_elements(pmh_element **elems)
  341. {
  342. pmh_realelement *cursor = (pmh_realelement*)elems[pmh_ALL];
  343. while (cursor != NULL) {
  344. pmh_realelement *tofree = cursor;
  345. cursor = cursor->all_elems_next;
  346. if (tofree->text != NULL)
  347. free(tofree->text);
  348. if (tofree->label != NULL)
  349. free(tofree->label);
  350. if (tofree->address != NULL)
  351. free(tofree->address);
  352. free(tofree);
  353. }
  354. elems[pmh_ALL] = NULL;
  355. free(elems);
  356. }
  357. #define IS_CONTINUATION_BYTE(x) ((x & 0xC0) == 0x80)
  358. #define HAS_UTF8_BOM(x) ( ((*x & 0xFF) == 0xEF)\
  359. && ((*(x+1) & 0xFF) == 0xBB)\
  360. && ((*(x+2) & 0xFF) == 0xBF) )
  361. #define ADD_STRIP_POS(x) \
  362. /* reallocate more space for the array, if needed: */ \
  363. if (strip_positions_size <= strip_positions_pos) { \
  364. size_t new_size = strip_positions_size * 2; \
  365. unsigned long *new_arr = (unsigned long *) \
  366. calloc(new_size, \
  367. sizeof(unsigned long)); \
  368. memcpy(new_arr, strip_positions, \
  369. (sizeof(unsigned long) * strip_positions_size)); \
  370. strip_positions_size = new_size; \
  371. free(strip_positions); \
  372. strip_positions = new_arr; \
  373. } \
  374. strip_positions[strip_positions_pos] = x; \
  375. strip_positions_pos++;
  376. /*
  377. Copy `str` to `out`, while doing the following:
  378. - remove UTF-8 continuation bytes
  379. - remove possible UTF-8 BOM (byte order mark)
  380. - append two newlines to the end (like peg-markdown does)
  381. - keep track of which bytes we have stripped (in strip_positions)
  382. */
  383. static int strcpy_preformat(char *str, char **out,
  384. unsigned long **out_strip_positions,
  385. size_t *out_strip_positions_len)
  386. {
  387. size_t strip_positions_size = 1024;
  388. size_t strip_positions_pos = 0;
  389. unsigned long *strip_positions = (unsigned long *)
  390. calloc(strip_positions_size,
  391. sizeof(unsigned long));
  392. // +2 in the following is due to the "\n\n" suffix:
  393. char *new_str = (char *)malloc(sizeof(char) * strlen(str) + 1 + 2);
  394. char *c = str;
  395. int i = 0;
  396. if (HAS_UTF8_BOM(c)) {
  397. c += 3;
  398. ADD_STRIP_POS(0);
  399. ADD_STRIP_POS(1);
  400. ADD_STRIP_POS(2);
  401. }
  402. while (*c != '\0')
  403. {
  404. if (!IS_CONTINUATION_BYTE(*c)) {
  405. *(new_str+i) = *c, i++;
  406. } else {
  407. ADD_STRIP_POS((int)(c-str));
  408. }
  409. c++;
  410. }
  411. *(new_str+(i++)) = '\n';
  412. *(new_str+(i++)) = '\n';
  413. *(new_str+i) = '\0';
  414. *out = new_str;
  415. *out_strip_positions = strip_positions;
  416. *out_strip_positions_len = strip_positions_pos;
  417. return i;
  418. }
  419. void pmh_markdown_to_elements(char *text, int extensions,
  420. pmh_element **out_result[])
  421. {
  422. char *text_copy = NULL;
  423. unsigned long *strip_positions = NULL;
  424. size_t strip_positions_len = 0;
  425. int text_copy_len = strcpy_preformat(text, &text_copy, &strip_positions,
  426. &strip_positions_len);
  427. pmh_realelement *parsing_elem = (pmh_realelement *)
  428. malloc(sizeof(pmh_realelement));
  429. parsing_elem->type = pmh_RAW;
  430. parsing_elem->pos = 0;
  431. parsing_elem->end = text_copy_len;
  432. parsing_elem->next = NULL;
  433. parser_data *p_data = mk_parser_data(
  434. text,
  435. strip_positions,
  436. strip_positions_len,
  437. text_copy,
  438. parsing_elem,
  439. 0,
  440. extensions,
  441. NULL,
  442. NULL
  443. );
  444. pmh_realelement **result = p_data->head_elems;
  445. if (*text_copy != '\0')
  446. {
  447. // Get reference definitions into p_data->references
  448. parse_references(p_data);
  449. // Reset parser state to beginning of input
  450. p_data->offset = 0;
  451. p_data->current_elem = p_data->elem_head;
  452. // Parse whole document
  453. parse_markdown(p_data);
  454. #if pmh_DEBUG_OUTPUT
  455. print_raw_blocks(text_copy, result);
  456. #endif
  457. process_raw_blocks(p_data);
  458. }
  459. free(strip_positions);
  460. free(p_data);
  461. free(parsing_elem);
  462. free(text_copy);
  463. *out_result = (pmh_element**)result;
  464. }
  465. /*
  466. Mergesort linked list of elements (using comparison function `compare`),
  467. return new head. (Adapted slightly from Simon Tatham's algorithm.)
  468. */
  469. static pmh_element *ll_mergesort(pmh_element *list,
  470. int (*compare)(const pmh_element*,
  471. const pmh_element*))
  472. {
  473. 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); /* 225 */
  1068. YY_RULE(int) yy_RawNoteReference(GREG *G); /* 224 */
  1069. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G); /* 223 */
  1070. YY_RULE(int) yy_AlphanumericAscii(GREG *G); /* 222 */
  1071. YY_RULE(int) yy_Quoted(GREG *G); /* 221 */
  1072. YY_RULE(int) yy_HtmlTag(GREG *G); /* 220 */
  1073. YY_RULE(int) yy_Ticks5(GREG *G); /* 219 */
  1074. YY_RULE(int) yy_Ticks4(GREG *G); /* 218 */
  1075. YY_RULE(int) yy_Ticks3(GREG *G); /* 217 */
  1076. YY_RULE(int) yy_Ticks2(GREG *G); /* 216 */
  1077. YY_RULE(int) yy_Ticks1(GREG *G); /* 215 */
  1078. YY_RULE(int) yy_SkipBlock(GREG *G); /* 214 */
  1079. YY_RULE(int) yy_References(GREG *G); /* 213 */
  1080. YY_RULE(int) yy_EmptyTitle(GREG *G); /* 212 */
  1081. YY_RULE(int) yy_RefTitleParens(GREG *G); /* 211 */
  1082. YY_RULE(int) yy_RefTitleDouble(GREG *G); /* 210 */
  1083. YY_RULE(int) yy_RefTitleSingle(GREG *G); /* 209 */
  1084. YY_RULE(int) yy_RefTitle(GREG *G); /* 208 */
  1085. YY_RULE(int) yy_RefSrc(GREG *G); /* 207 */
  1086. YY_RULE(int) yy_AutoLinkEmail(GREG *G); /* 206 */
  1087. YY_RULE(int) yy_AutoLinkUrl(GREG *G); /* 205 */
  1088. YY_RULE(int) yy_TitleDouble(GREG *G); /* 204 */
  1089. YY_RULE(int) yy_TitleSingle(GREG *G); /* 203 */
  1090. YY_RULE(int) yy_Nonspacechar(GREG *G); /* 202 */
  1091. YY_RULE(int) yy_SourceContents(GREG *G); /* 201 */
  1092. YY_RULE(int) yy_Title(GREG *G); /* 200 */
  1093. YY_RULE(int) yy_Source(GREG *G); /* 199 */
  1094. YY_RULE(int) yy_Label(GREG *G); /* 198 */
  1095. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G); /* 197 */
  1096. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G); /* 196 */
  1097. YY_RULE(int) yy_AutoLink(GREG *G); /* 195 */
  1098. YY_RULE(int) yy_ReferenceLink(GREG *G); /* 194 */
  1099. YY_RULE(int) yy_ExplicitLink(GREG *G); /* 193 */
  1100. YY_RULE(int) yy_StrongUl(GREG *G); /* 192 */
  1101. YY_RULE(int) yy_StrongStar(GREG *G); /* 191 */
  1102. YY_RULE(int) yy_Whitespace(GREG *G); /* 190 */
  1103. YY_RULE(int) yy_EmphUl(GREG *G); /* 189 */
  1104. YY_RULE(int) yy_EmphStar(GREG *G); /* 188 */
  1105. YY_RULE(int) yy_StarLine(GREG *G); /* 187 */
  1106. YY_RULE(int) yy_UlLine(GREG *G); /* 186 */
  1107. YY_RULE(int) yy_SpecialChar(GREG *G); /* 185 */
  1108. YY_RULE(int) yy_Eof(GREG *G); /* 184 */
  1109. YY_RULE(int) yy_NormalEndline(GREG *G); /* 183 */
  1110. YY_RULE(int) yy_TerminalEndline(GREG *G); /* 182 */
  1111. YY_RULE(int) yy_LineBreak(GREG *G); /* 181 */
  1112. YY_RULE(int) yy_CharEntity(GREG *G); /* 180 */
  1113. YY_RULE(int) yy_DecEntity(GREG *G); /* 179 */
  1114. YY_RULE(int) yy_HexEntity(GREG *G); /* 178 */
  1115. YY_RULE(int) yy_Alphanumeric(GREG *G); /* 177 */
  1116. YY_RULE(int) yy_NormalChar(GREG *G); /* 176 */
  1117. YY_RULE(int) yy_Symbol(GREG *G); /* 175 */
  1118. YY_RULE(int) yy_EscapedChar(GREG *G); /* 174 */
  1119. YY_RULE(int) yy_Entity(GREG *G); /* 173 */
  1120. YY_RULE(int) yy_RawHtml(GREG *G); /* 172 */
  1121. YY_RULE(int) yy_Code(GREG *G); /* 171 */
  1122. YY_RULE(int) yy_InlineNote(GREG *G); /* 170 */
  1123. YY_RULE(int) yy_NoteReference(GREG *G); /* 169 */
  1124. YY_RULE(int) yy_Link(GREG *G); /* 168 */
  1125. YY_RULE(int) yy_Image(GREG *G); /* 167 */
  1126. YY_RULE(int) yy_Strike(GREG *G); /* 166 */
  1127. YY_RULE(int) yy_Emph(GREG *G); /* 165 */
  1128. YY_RULE(int) yy_Strong(GREG *G); /* 164 */
  1129. YY_RULE(int) yy_UlOrStarLine(GREG *G); /* 163 */
  1130. YY_RULE(int) yy_Str(GREG *G); /* 162 */
  1131. YY_RULE(int) yy_InStyleTags(GREG *G); /* 161 */
  1132. YY_RULE(int) yy_StyleClose(GREG *G); /* 160 */
  1133. YY_RULE(int) yy_StyleOpen(GREG *G); /* 159 */
  1134. YY_RULE(int) yy_HtmlBlockType(GREG *G); /* 158 */
  1135. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G); /* 157 */
  1136. YY_RULE(int) yy_HtmlComment(GREG *G); /* 156 */
  1137. YY_RULE(int) yy_HtmlBlockInTags(GREG *G); /* 155 */
  1138. YY_RULE(int) yy_HtmlBlockHead(GREG *G); /* 154 */
  1139. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G); /* 153 */
  1140. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G); /* 152 */
  1141. YY_RULE(int) yy_HtmlBlockScript(GREG *G); /* 151 */
  1142. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G); /* 150 */
  1143. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G); /* 149 */
  1144. YY_RULE(int) yy_HtmlBlockTr(GREG *G); /* 148 */
  1145. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G); /* 147 */
  1146. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G); /* 146 */
  1147. YY_RULE(int) yy_HtmlBlockThead(GREG *G); /* 145 */
  1148. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G); /* 144 */
  1149. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G); /* 143 */
  1150. YY_RULE(int) yy_HtmlBlockTh(GREG *G); /* 142 */
  1151. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G); /* 141 */
  1152. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G); /* 140 */
  1153. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G); /* 139 */
  1154. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G); /* 138 */
  1155. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G); /* 137 */
  1156. YY_RULE(int) yy_HtmlBlockTd(GREG *G); /* 136 */
  1157. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G); /* 135 */
  1158. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G); /* 134 */
  1159. YY_RULE(int) yy_HtmlBlockTbody(GREG *G); /* 133 */
  1160. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G); /* 132 */
  1161. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G); /* 131 */
  1162. YY_RULE(int) yy_HtmlBlockLi(GREG *G); /* 130 */
  1163. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G); /* 129 */
  1164. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G); /* 128 */
  1165. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G); /* 127 */
  1166. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G); /* 126 */
  1167. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G); /* 125 */
  1168. YY_RULE(int) yy_HtmlBlockDt(GREG *G); /* 124 */
  1169. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G); /* 123 */
  1170. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G); /* 122 */
  1171. YY_RULE(int) yy_HtmlBlockDd(GREG *G); /* 121 */
  1172. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G); /* 120 */
  1173. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G); /* 119 */
  1174. YY_RULE(int) yy_HtmlBlockUl(GREG *G); /* 118 */
  1175. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G); /* 117 */
  1176. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G); /* 116 */
  1177. YY_RULE(int) yy_HtmlBlockTable(GREG *G); /* 115 */
  1178. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G); /* 114 */
  1179. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G); /* 113 */
  1180. YY_RULE(int) yy_HtmlBlockPre(GREG *G); /* 112 */
  1181. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G); /* 111 */
  1182. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G); /* 110 */
  1183. YY_RULE(int) yy_HtmlBlockP(GREG *G); /* 109 */
  1184. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G); /* 108 */
  1185. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G); /* 107 */
  1186. YY_RULE(int) yy_HtmlBlockOl(GREG *G); /* 106 */
  1187. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G); /* 105 */
  1188. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G); /* 104 */
  1189. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G); /* 103 */
  1190. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G); /* 102 */
  1191. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G); /* 101 */
  1192. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G); /* 100 */
  1193. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G); /* 99 */
  1194. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G); /* 98 */
  1195. YY_RULE(int) yy_HtmlBlockMenu(GREG *G); /* 97 */
  1196. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G); /* 96 */
  1197. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G); /* 95 */
  1198. YY_RULE(int) yy_HtmlBlockH6(GREG *G); /* 94 */
  1199. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G); /* 93 */
  1200. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G); /* 92 */
  1201. YY_RULE(int) yy_HtmlBlockH5(GREG *G); /* 91 */
  1202. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G); /* 90 */
  1203. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G); /* 89 */
  1204. YY_RULE(int) yy_HtmlBlockH4(GREG *G); /* 88 */
  1205. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G); /* 87 */
  1206. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G); /* 86 */
  1207. YY_RULE(int) yy_HtmlBlockH3(GREG *G); /* 85 */
  1208. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G); /* 84 */
  1209. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G); /* 83 */
  1210. YY_RULE(int) yy_HtmlBlockH2(GREG *G); /* 82 */
  1211. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G); /* 81 */
  1212. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G); /* 80 */
  1213. YY_RULE(int) yy_HtmlBlockH1(GREG *G); /* 79 */
  1214. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G); /* 78 */
  1215. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G); /* 77 */
  1216. YY_RULE(int) yy_HtmlBlockForm(GREG *G); /* 76 */
  1217. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G); /* 75 */
  1218. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G); /* 74 */
  1219. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G); /* 73 */
  1220. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G); /* 72 */
  1221. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G); /* 71 */
  1222. YY_RULE(int) yy_HtmlBlockDl(GREG *G); /* 70 */
  1223. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G); /* 69 */
  1224. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G); /* 68 */
  1225. YY_RULE(int) yy_HtmlBlockDiv(GREG *G); /* 67 */
  1226. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G); /* 66 */
  1227. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G); /* 65 */
  1228. YY_RULE(int) yy_HtmlBlockDir(GREG *G); /* 64 */
  1229. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G); /* 63 */
  1230. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G); /* 62 */
  1231. YY_RULE(int) yy_HtmlBlockCenter(GREG *G); /* 61 */
  1232. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G); /* 60 */
  1233. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G); /* 59 */
  1234. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G); /* 58 */
  1235. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G); /* 57 */
  1236. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G); /* 56 */
  1237. YY_RULE(int) yy_HtmlBlockAddress(GREG *G); /* 55 */
  1238. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G); /* 54 */
  1239. YY_RULE(int) yy_HtmlAttribute(GREG *G); /* 53 */
  1240. YY_RULE(int) yy_Spnl(GREG *G); /* 52 */
  1241. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G); /* 51 */
  1242. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G); /* 50 */
  1243. YY_RULE(int) yy_Indent(GREG *G); /* 49 */
  1244. YY_RULE(int) yy_ListBlockLine(GREG *G); /* 48 */
  1245. YY_RULE(int) yy_ListContinuationBlock(GREG *G); /* 47 */
  1246. YY_RULE(int) yy_ListBlock(GREG *G); /* 46 */
  1247. YY_RULE(int) yy_ListItem(GREG *G); /* 45 */
  1248. YY_RULE(int) yy_Enumerator(GREG *G); /* 44 */
  1249. YY_RULE(int) yy_ListItemTight(GREG *G); /* 43 */
  1250. YY_RULE(int) yy_ListLoose(GREG *G); /* 42 */
  1251. YY_RULE(int) yy_ListTight(GREG *G); /* 41 */
  1252. YY_RULE(int) yy_Spacechar(GREG *G); /* 40 */
  1253. YY_RULE(int) yy_Bullet(GREG *G); /* 39 */
  1254. YY_RULE(int) yy_VerbatimChunk(GREG *G); /* 38 */
  1255. YY_RULE(int) yy_IndentedLine(GREG *G); /* 37 */
  1256. YY_RULE(int) yy_NonblankIndentedLine(GREG *G); /* 36 */
  1257. YY_RULE(int) yy_Line(GREG *G); /* 35 */
  1258. YY_RULE(int) yy_StartList(GREG *G); /* 34 */
  1259. YY_RULE(int) yy_BlockQuoteRaw(GREG *G); /* 33 */
  1260. YY_RULE(int) yy_Endline(GREG *G); /* 32 */
  1261. YY_RULE(int) yy_RawLine(GREG *G); /* 31 */
  1262. YY_RULE(int) yy_SetextBottom2(GREG *G); /* 30 */
  1263. YY_RULE(int) yy_SetextBottom1(GREG *G); /* 29 */
  1264. YY_RULE(int) yy_SetextHeading2(GREG *G); /* 28 */
  1265. YY_RULE(int) yy_SetextHeading1(GREG *G); /* 27 */
  1266. YY_RULE(int) yy_SetextHeading(GREG *G); /* 26 */
  1267. YY_RULE(int) yy_Space(GREG *G); /* 25 */
  1268. YY_RULE(int) yy_AtxHeading(GREG *G); /* 24 */
  1269. YY_RULE(int) yy_AtxStart(GREG *G); /* 23 */
  1270. YY_RULE(int) yy_Inline(GREG *G); /* 22 */
  1271. YY_RULE(int) yy_Sp(GREG *G); /* 21 */
  1272. YY_RULE(int) yy_Newline(GREG *G); /* 20 */
  1273. YY_RULE(int) yy_AtxInline(GREG *G); /* 19 */
  1274. YY_RULE(int) yy_Inlines(GREG *G); /* 18 */
  1275. YY_RULE(int) yy_NonindentSpace(GREG *G); /* 17 */
  1276. YY_RULE(int) yy_Plain(GREG *G); /* 16 */
  1277. YY_RULE(int) yy_Para(GREG *G); /* 15 */
  1278. YY_RULE(int) yy_StyleBlock(GREG *G); /* 14 */
  1279. YY_RULE(int) yy_HtmlBlock(GREG *G); /* 13 */
  1280. YY_RULE(int) yy_BulletList(GREG *G); /* 12 */
  1281. YY_RULE(int) yy_OrderedList(GREG *G); /* 11 */
  1282. YY_RULE(int) yy_Heading(GREG *G); /* 10 */
  1283. YY_RULE(int) yy_HorizontalRule(GREG *G); /* 9 */
  1284. YY_RULE(int) yy_Reference(GREG *G); /* 8 */
  1285. YY_RULE(int) yy_Note(GREG *G); /* 7 */
  1286. YY_RULE(int) yy_Verbatim(GREG *G); /* 6 */
  1287. YY_RULE(int) yy_BlockQuote(GREG *G); /* 5 */
  1288. YY_RULE(int) yy_BlankLine(GREG *G); /* 4 */
  1289. YY_RULE(int) yy_LocMarker(GREG *G); /* 3 */
  1290. YY_RULE(int) yy_Block(GREG *G); /* 2 */
  1291. YY_RULE(int) yy_Doc(GREG *G); /* 1 */
  1292. YY_ACTION(void) yy_1_RawLine(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1293. {
  1294. yyprintf((stderr, "do yy_1_RawLine\n"));
  1295. yy = elem(pmh_RAW); ;
  1296. }
  1297. YY_ACTION(void) yy_1_Line(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1298. {
  1299. yyprintf((stderr, "do yy_1_Line\n"));
  1300. yy = mk_element((parser_data *)G->data, pmh_RAW, yy->pos, yy->end); ;
  1301. }
  1302. YY_ACTION(void) yy_1_StartList(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1303. {
  1304. yyprintf((stderr, "do yy_1_StartList\n"));
  1305. yy = NULL; ;
  1306. }
  1307. YY_ACTION(void) yy_1_HtmlComment(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1308. {
  1309. #define s G->val[-1]
  1310. yyprintf((stderr, "do yy_1_HtmlComment\n"));
  1311. ADD(elem_s(pmh_COMMENT)); ;
  1312. #undef s
  1313. }
  1314. YY_ACTION(void) yy_1_RawHtml(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1315. {
  1316. #define s G->val[-1]
  1317. yyprintf((stderr, "do yy_1_RawHtml\n"));
  1318. ADD(elem_s(pmh_HTML)); ;
  1319. #undef s
  1320. }
  1321. YY_ACTION(void) yy_1_Code(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1322. {
  1323. #define s G->val[-1]
  1324. yyprintf((stderr, "do yy_1_Code\n"));
  1325. ADD(elem_s(pmh_CODE)); ;
  1326. #undef s
  1327. }
  1328. YY_ACTION(void) yy_1_Ticks5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1329. {
  1330. yyprintf((stderr, "do yy_1_Ticks5\n"));
  1331. yy = elem(pmh_NO_TYPE); ;
  1332. }
  1333. YY_ACTION(void) yy_1_Ticks4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1334. {
  1335. yyprintf((stderr, "do yy_1_Ticks4\n"));
  1336. yy = elem(pmh_NO_TYPE); ;
  1337. }
  1338. YY_ACTION(void) yy_1_Ticks3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1339. {
  1340. yyprintf((stderr, "do yy_1_Ticks3\n"));
  1341. yy = elem(pmh_NO_TYPE); ;
  1342. }
  1343. YY_ACTION(void) yy_1_Ticks2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1344. {
  1345. yyprintf((stderr, "do yy_1_Ticks2\n"));
  1346. yy = elem(pmh_NO_TYPE); ;
  1347. }
  1348. YY_ACTION(void) yy_1_Ticks1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1349. {
  1350. yyprintf((stderr, "do yy_1_Ticks1\n"));
  1351. yy = elem(pmh_NO_TYPE); ;
  1352. }
  1353. YY_ACTION(void) yy_1_RefSrc(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1354. {
  1355. yyprintf((stderr, "do yy_1_RefSrc\n"));
  1356. yy = mk_notype; yy->address = COPY_YYTEXT_ORIG(); ;
  1357. }
  1358. YY_ACTION(void) yy_2_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1359. {
  1360. #define s G->val[-1]
  1361. yyprintf((stderr, "do yy_2_Label\n"));
  1362. s->pos = s->pos;
  1363. s->end = thunk->end;
  1364. yy = s;
  1365. ;
  1366. #undef s
  1367. }
  1368. YY_ACTION(void) yy_1_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1369. {
  1370. #define s G->val[-1]
  1371. yyprintf((stderr, "do yy_1_Label\n"));
  1372. s->label = COPY_YYTEXT_ORIG(); ;
  1373. #undef s
  1374. }
  1375. YY_ACTION(void) yy_1_Reference(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1376. {
  1377. #define r G->val[-1]
  1378. #define l G->val[-2]
  1379. #define s G->val[-3]
  1380. yyprintf((stderr, "do yy_1_Reference\n"));
  1381. pmh_realelement *el = elem_s(pmh_REFERENCE);
  1382. el->label = strdup_or_null(l->label);
  1383. el->address = strdup_or_null(r->address);
  1384. ADD(el);
  1385. FREE_LABEL(l);
  1386. FREE_ADDRESS(r);
  1387. ;
  1388. #undef r
  1389. #undef l
  1390. #undef s
  1391. }
  1392. YY_ACTION(void) yy_3_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1393. {
  1394. #define s G->val[-1]
  1395. yyprintf((stderr, "do yy_3_AutoLinkEmail\n"));
  1396. s->end = thunk->end;
  1397. ADD(s);
  1398. ;
  1399. #undef s
  1400. }
  1401. YY_ACTION(void) yy_2_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1402. {
  1403. #define s G->val[-1]
  1404. yyprintf((stderr, "do yy_2_AutoLinkEmail\n"));
  1405. s->address = COPY_YYTEXT_ORIG(); ;
  1406. #undef s
  1407. }
  1408. YY_ACTION(void) yy_1_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1409. {
  1410. #define s G->val[-1]
  1411. yyprintf((stderr, "do yy_1_AutoLinkEmail\n"));
  1412. s->type = pmh_AUTO_LINK_EMAIL; ;
  1413. #undef s
  1414. }
  1415. YY_ACTION(void) yy_3_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1416. {
  1417. #define s G->val[-1]
  1418. yyprintf((stderr, "do yy_3_AutoLinkUrl\n"));
  1419. s->end = thunk->end;
  1420. ADD(s);
  1421. ;
  1422. #undef s
  1423. }
  1424. YY_ACTION(void) yy_2_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1425. {
  1426. #define s G->val[-1]
  1427. yyprintf((stderr, "do yy_2_AutoLinkUrl\n"));
  1428. s->address = COPY_YYTEXT_ORIG(); ;
  1429. #undef s
  1430. }
  1431. YY_ACTION(void) yy_1_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1432. {
  1433. #define s G->val[-1]
  1434. yyprintf((stderr, "do yy_1_AutoLinkUrl\n"));
  1435. s->type = pmh_AUTO_LINK_URL; ;
  1436. #undef s
  1437. }
  1438. YY_ACTION(void) yy_3_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1439. {
  1440. yyprintf((stderr, "do yy_3_Source\n"));
  1441. yy->address = COPY_YYTEXT_ORIG(); ;
  1442. }
  1443. YY_ACTION(void) yy_2_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1444. {
  1445. yyprintf((stderr, "do yy_2_Source\n"));
  1446. yy->address = COPY_YYTEXT_ORIG(); ;
  1447. }
  1448. YY_ACTION(void) yy_1_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1449. {
  1450. yyprintf((stderr, "do yy_1_Source\n"));
  1451. yy = mk_notype; ;
  1452. }
  1453. YY_ACTION(void) yy_1_ExplicitLink(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1454. {
  1455. #define l G->val[-1]
  1456. #define s G->val[-2]
  1457. yyprintf((stderr, "do yy_1_ExplicitLink\n"));
  1458. yy = elem_s(pmh_LINK);
  1459. if (l->address != NULL)
  1460. yy->address = strdup_or_null(l->address);
  1461. FREE_LABEL(s);
  1462. FREE_ADDRESS(l);
  1463. ;
  1464. #undef l
  1465. #undef s
  1466. }
  1467. YY_ACTION(void) yy_1_ReferenceLinkSingle(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1468. {
  1469. #define s G->val[-1]
  1470. yyprintf((stderr, "do yy_1_ReferenceLinkSingle\n"));
  1471. pmh_realelement *reference = GET_REF(s->label);
  1472. if (reference) {
  1473. yy = elem_s(pmh_LINK);
  1474. yy->label = strdup_or_null(s->label);
  1475. yy->address = strdup_or_null(reference->address);
  1476. } else
  1477. yy = NULL;
  1478. FREE_LABEL(s);
  1479. ;
  1480. #undef s
  1481. }
  1482. YY_ACTION(void) yy_1_ReferenceLinkDouble(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1483. {
  1484. #define l G->val[-1]
  1485. #define s G->val[-2]
  1486. yyprintf((stderr, "do yy_1_ReferenceLinkDouble\n"));
  1487. pmh_realelement *reference = GET_REF(l->label);
  1488. if (reference) {
  1489. yy = elem_s(pmh_LINK);
  1490. yy->label = strdup_or_null(l->label);
  1491. yy->address = strdup_or_null(reference->address);
  1492. } else
  1493. yy = NULL;
  1494. FREE_LABEL(s);
  1495. FREE_LABEL(l);
  1496. ;
  1497. #undef l
  1498. #undef s
  1499. }
  1500. YY_ACTION(void) yy_1_Link(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1501. {
  1502. yyprintf((stderr, "do yy_1_Link\n"));
  1503. if (yy) ADD(yy); ;
  1504. }
  1505. YY_ACTION(void) yy_1_Image(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1506. {
  1507. yyprintf((stderr, "do yy_1_Image\n"));
  1508. if (yy != NULL) {
  1509. yy->type = pmh_IMAGE;
  1510. yy->pos -= 1;
  1511. ADD(yy);
  1512. }
  1513. ;
  1514. }
  1515. YY_ACTION(void) yy_1_Strike(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1516. {
  1517. #define s G->val[-1]
  1518. yyprintf((stderr, "do yy_1_Strike\n"));
  1519. ADD(elem_s(pmh_STRIKE)); ;
  1520. #undef s
  1521. }
  1522. YY_ACTION(void) yy_1_StrongUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1523. {
  1524. #define s G->val[-1]
  1525. yyprintf((stderr, "do yy_1_StrongUl\n"));
  1526. ADD(elem_s(pmh_STRONG)); ;
  1527. #undef s
  1528. }
  1529. YY_ACTION(void) yy_1_StrongStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1530. {
  1531. #define s G->val[-1]
  1532. yyprintf((stderr, "do yy_1_StrongStar\n"));
  1533. ADD(elem_s(pmh_STRONG)); ;
  1534. #undef s
  1535. }
  1536. YY_ACTION(void) yy_1_EmphUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1537. {
  1538. #define s G->val[-1]
  1539. yyprintf((stderr, "do yy_1_EmphUl\n"));
  1540. ADD(elem_s(pmh_EMPH)); ;
  1541. #undef s
  1542. }
  1543. YY_ACTION(void) yy_1_EmphStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1544. {
  1545. #define s G->val[-1]
  1546. yyprintf((stderr, "do yy_1_EmphStar\n"));
  1547. ADD(elem_s(pmh_EMPH)); ;
  1548. #undef s
  1549. }
  1550. YY_ACTION(void) yy_1_Entity(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1551. {
  1552. #define s G->val[-1]
  1553. yyprintf((stderr, "do yy_1_Entity\n"));
  1554. ADD(elem_s(pmh_HTML_ENTITY)); ;
  1555. #undef s
  1556. }
  1557. YY_ACTION(void) yy_1_StyleBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1558. {
  1559. #define s G->val[-1]
  1560. yyprintf((stderr, "do yy_1_StyleBlock\n"));
  1561. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1562. #undef s
  1563. }
  1564. YY_ACTION(void) yy_1_HtmlBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1565. {
  1566. #define s G->val[-1]
  1567. yyprintf((stderr, "do yy_1_HtmlBlock\n"));
  1568. ADD(elem_s(pmh_HTMLBLOCK)); ;
  1569. #undef s
  1570. }
  1571. YY_ACTION(void) yy_1_HtmlBlockH6(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1572. {
  1573. #define s G->val[-1]
  1574. yyprintf((stderr, "do yy_1_HtmlBlockH6\n"));
  1575. ADD(elem_s(pmh_H6)); ;
  1576. #undef s
  1577. }
  1578. YY_ACTION(void) yy_1_HtmlBlockH5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1579. {
  1580. #define s G->val[-1]
  1581. yyprintf((stderr, "do yy_1_HtmlBlockH5\n"));
  1582. ADD(elem_s(pmh_H5)); ;
  1583. #undef s
  1584. }
  1585. YY_ACTION(void) yy_1_HtmlBlockH4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1586. {
  1587. #define s G->val[-1]
  1588. yyprintf((stderr, "do yy_1_HtmlBlockH4\n"));
  1589. ADD(elem_s(pmh_H4)); ;
  1590. #undef s
  1591. }
  1592. YY_ACTION(void) yy_1_HtmlBlockH3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1593. {
  1594. #define s G->val[-1]
  1595. yyprintf((stderr, "do yy_1_HtmlBlockH3\n"));
  1596. ADD(elem_s(pmh_H3)); ;
  1597. #undef s
  1598. }
  1599. YY_ACTION(void) yy_1_HtmlBlockH2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1600. {
  1601. #define s G->val[-1]
  1602. yyprintf((stderr, "do yy_1_HtmlBlockH2\n"));
  1603. ADD(elem_s(pmh_H2)); ;
  1604. #undef s
  1605. }
  1606. YY_ACTION(void) yy_1_HtmlBlockH1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1607. {
  1608. #define s G->val[-1]
  1609. yyprintf((stderr, "do yy_1_HtmlBlockH1\n"));
  1610. ADD(elem_s(pmh_H1)); ;
  1611. #undef s
  1612. }
  1613. YY_ACTION(void) yy_1_Enumerator(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1614. {
  1615. yyprintf((stderr, "do yy_1_Enumerator\n"));
  1616. ADD(elem(pmh_LIST_ENUMERATOR)); ;
  1617. }
  1618. YY_ACTION(void) yy_3_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1619. {
  1620. #define a G->val[-1]
  1621. yyprintf((stderr, "do yy_3_ListContinuationBlock\n"));
  1622. yy = a; ;
  1623. #undef a
  1624. }
  1625. YY_ACTION(void) yy_2_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1626. {
  1627. #define a G->val[-1]
  1628. yyprintf((stderr, "do yy_2_ListContinuationBlock\n"));
  1629. a = cons(yy, a); ;
  1630. #undef a
  1631. }
  1632. YY_ACTION(void) yy_1_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1633. {
  1634. #define a G->val[-1]
  1635. yyprintf((stderr, "do yy_1_ListContinuationBlock\n"));
  1636. if (*yytext == '\0') /* if strlen(yytext) == 0 */
  1637. a = cons(elem(pmh_SEPARATOR), a);
  1638. else
  1639. a = cons(elem(pmh_RAW), a);
  1640. ;
  1641. #undef a
  1642. }
  1643. YY_ACTION(void) yy_3_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1644. {
  1645. #define a G->val[-1]
  1646. yyprintf((stderr, "do yy_3_ListBlock\n"));
  1647. yy = a; ;
  1648. #undef a
  1649. }
  1650. YY_ACTION(void) yy_2_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1651. {
  1652. #define a G->val[-1]
  1653. yyprintf((stderr, "do yy_2_ListBlock\n"));
  1654. a = cons(elem(pmh_RAW), a); ;
  1655. #undef a
  1656. }
  1657. YY_ACTION(void) yy_1_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1658. {
  1659. #define a G->val[-1]
  1660. yyprintf((stderr, "do yy_1_ListBlock\n"));
  1661. a = cons(yy, a); ;
  1662. #undef a
  1663. }
  1664. YY_ACTION(void) yy_3_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1665. {
  1666. #define a G->val[-1]
  1667. yyprintf((stderr, "do yy_3_ListItemTight\n"));
  1668. yy = a; ;
  1669. #undef a
  1670. }
  1671. YY_ACTION(void) yy_2_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1672. {
  1673. #define a G->val[-1]
  1674. yyprintf((stderr, "do yy_2_ListItemTight\n"));
  1675. a = cons(yy, a); ;
  1676. #undef a
  1677. }
  1678. YY_ACTION(void) yy_1_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1679. {
  1680. #define a G->val[-1]
  1681. yyprintf((stderr, "do yy_1_ListItemTight\n"));
  1682. a = cons(yy, a); ;
  1683. #undef a
  1684. }
  1685. YY_ACTION(void) yy_3_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1686. {
  1687. #define a G->val[-1]
  1688. yyprintf((stderr, "do yy_3_ListItem\n"));
  1689. yy = a; ;
  1690. #undef a
  1691. }
  1692. YY_ACTION(void) yy_2_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1693. {
  1694. #define a G->val[-1]
  1695. yyprintf((stderr, "do yy_2_ListItem\n"));
  1696. a = cons(yy, a); ;
  1697. #undef a
  1698. }
  1699. YY_ACTION(void) yy_1_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1700. {
  1701. #define a G->val[-1]
  1702. yyprintf((stderr, "do yy_1_ListItem\n"));
  1703. a = cons(yy, a); ;
  1704. #undef a
  1705. }
  1706. YY_ACTION(void) yy_2_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1707. {
  1708. #define b G->val[-1]
  1709. #define a G->val[-2]
  1710. yyprintf((stderr, "do yy_2_ListLoose\n"));
  1711. pmh_realelement *cur = a;
  1712. while (cur != NULL) {
  1713. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1714. rawlist->children = reverse(cur->children);
  1715. ADD(rawlist);
  1716. cur = cur->next;
  1717. }
  1718. ;
  1719. #undef b
  1720. #undef a
  1721. }
  1722. YY_ACTION(void) yy_1_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1723. {
  1724. #define b G->val[-1]
  1725. #define a G->val[-2]
  1726. yyprintf((stderr, "do yy_1_ListLoose\n"));
  1727. b = cons(etext("\n\n"), b); /* In loose list, \n\n added to end of each element */
  1728. pmh_realelement *el = mk_notype;
  1729. el->children = b;
  1730. a = cons(el, a);
  1731. ;
  1732. #undef b
  1733. #undef a
  1734. }
  1735. YY_ACTION(void) yy_2_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1736. {
  1737. #define a G->val[-1]
  1738. yyprintf((stderr, "do yy_2_ListTight\n"));
  1739. pmh_realelement *cur = a;
  1740. while (cur != NULL) {
  1741. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1742. rawlist->children = reverse(cur->children);
  1743. ADD(rawlist);
  1744. cur = cur->next;
  1745. }
  1746. ;
  1747. #undef a
  1748. }
  1749. YY_ACTION(void) yy_1_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1750. {
  1751. #define a G->val[-1]
  1752. yyprintf((stderr, "do yy_1_ListTight\n"));
  1753. pmh_realelement *el = mk_notype;
  1754. el->children = yy;
  1755. a = cons(el, a);
  1756. ;
  1757. #undef a
  1758. }
  1759. YY_ACTION(void) yy_1_Bullet(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1760. {
  1761. yyprintf((stderr, "do yy_1_Bullet\n"));
  1762. ADD(elem(pmh_LIST_BULLET)); ;
  1763. }
  1764. YY_ACTION(void) yy_1_HorizontalRule(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1765. {
  1766. yyprintf((stderr, "do yy_1_HorizontalRule\n"));
  1767. ADD(elem(pmh_HRULE)); ;
  1768. }
  1769. YY_ACTION(void) yy_1_Verbatim(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1770. {
  1771. #define s G->val[-1]
  1772. yyprintf((stderr, "do yy_1_Verbatim\n"));
  1773. ADD(elem_s(pmh_VERBATIM)); ;
  1774. #undef s
  1775. }
  1776. YY_ACTION(void) yy_5_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1777. {
  1778. #define a G->val[-1]
  1779. yyprintf((stderr, "do yy_5_BlockQuoteRaw\n"));
  1780. yy = a; ;
  1781. #undef a
  1782. }
  1783. YY_ACTION(void) yy_4_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1784. {
  1785. #define a G->val[-1]
  1786. yyprintf((stderr, "do yy_4_BlockQuoteRaw\n"));
  1787. a = cons(etext("\n"), a); ;
  1788. #undef a
  1789. }
  1790. YY_ACTION(void) yy_3_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1791. {
  1792. #define a G->val[-1]
  1793. yyprintf((stderr, "do yy_3_BlockQuoteRaw\n"));
  1794. a = cons(yy, a); ;
  1795. #undef a
  1796. }
  1797. YY_ACTION(void) yy_2_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1798. {
  1799. #define a G->val[-1]
  1800. yyprintf((stderr, "do yy_2_BlockQuoteRaw\n"));
  1801. a = cons(yy, a); ;
  1802. #undef a
  1803. }
  1804. YY_ACTION(void) yy_1_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1805. {
  1806. #define a G->val[-1]
  1807. yyprintf((stderr, "do yy_1_BlockQuoteRaw\n"));
  1808. ADD(elem(pmh_BLOCKQUOTE)); ;
  1809. #undef a
  1810. }
  1811. YY_ACTION(void) yy_1_BlockQuote(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1812. {
  1813. #define a G->val[-1]
  1814. yyprintf((stderr, "do yy_1_BlockQuote\n"));
  1815. pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
  1816. rawlist->children = reverse(a);
  1817. ADD(rawlist);
  1818. ;
  1819. #undef a
  1820. }
  1821. YY_ACTION(void) yy_1_SetextHeading2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1822. {
  1823. #define s G->val[-1]
  1824. yyprintf((stderr, "do yy_1_SetextHeading2\n"));
  1825. ADD(elem_s(pmh_H2)); ;
  1826. #undef s
  1827. }
  1828. YY_ACTION(void) yy_1_SetextHeading1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1829. {
  1830. #define s G->val[-1]
  1831. yyprintf((stderr, "do yy_1_SetextHeading1\n"));
  1832. ADD(elem_s(pmh_H1)); ;
  1833. #undef s
  1834. }
  1835. YY_ACTION(void) yy_1_AtxHeading(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1836. {
  1837. #define s G->val[-1]
  1838. yyprintf((stderr, "do yy_1_AtxHeading\n"));
  1839. ADD(elem_s(s->type)); ;
  1840. #undef s
  1841. }
  1842. YY_ACTION(void) yy_1_AtxStart(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1843. {
  1844. yyprintf((stderr, "do yy_1_AtxStart\n"));
  1845. yy = elem((pmh_element_type)(pmh_H1 + (strlen(yytext) - 1))); ;
  1846. }
  1847. YY_ACTION(void) yy_1_LocMarker(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
  1848. {
  1849. yyprintf((stderr, "do yy_1_LocMarker\n"));
  1850. yy = elem(pmh_NO_TYPE); ;
  1851. }
  1852. YY_RULE(int) yy_RawNoteBlock(GREG *G)
  1853. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1854. yyprintf((stderr, "%s\n", "RawNoteBlock"));
  1855. { int yypos4= G->pos, yythunkpos4= G->thunkpos; if (!yy_BlankLine(G)) { goto l4; } goto l1;
  1856. l4:; G->pos= yypos4; G->thunkpos= yythunkpos4;
  1857. } if (!yy_OptionallyIndentedLine(G)) { goto l1; }
  1858. l2:;
  1859. { int yypos3= G->pos, yythunkpos3= G->thunkpos;
  1860. { int yypos5= G->pos, yythunkpos5= G->thunkpos; if (!yy_BlankLine(G)) { goto l5; } goto l3;
  1861. l5:; G->pos= yypos5; G->thunkpos= yythunkpos5;
  1862. } if (!yy_OptionallyIndentedLine(G)) { goto l3; } goto l2;
  1863. l3:; G->pos= yypos3; G->thunkpos= yythunkpos3;
  1864. }
  1865. l6:;
  1866. { int yypos7= G->pos, yythunkpos7= G->thunkpos; if (!yy_BlankLine(G)) { goto l7; } goto l6;
  1867. l7:; G->pos= yypos7; G->thunkpos= yythunkpos7;
  1868. }
  1869. yyprintf((stderr, " ok %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  1870. return 1;
  1871. l1:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1872. yyprintf((stderr, " fail %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
  1873. return 0;
  1874. }
  1875. YY_RULE(int) yy_RawNoteReference(GREG *G)
  1876. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1877. yyprintf((stderr, "%s\n", "RawNoteReference")); if (!yymatchString(G, "[^")) goto l8;
  1878. { int yypos11= G->pos, yythunkpos11= G->thunkpos; if (!yy_Newline(G)) { goto l11; } goto l8;
  1879. l11:; G->pos= yypos11; G->thunkpos= yythunkpos11;
  1880. }
  1881. { int yypos12= G->pos, yythunkpos12= G->thunkpos; if (!yymatchChar(G, ']')) goto l12; goto l8;
  1882. l12:; G->pos= yypos12; G->thunkpos= yythunkpos12;
  1883. } if (!yymatchDot(G)) goto l8;
  1884. l9:;
  1885. { int yypos10= G->pos, yythunkpos10= G->thunkpos;
  1886. { int yypos13= G->pos, yythunkpos13= G->thunkpos; if (!yy_Newline(G)) { goto l13; } goto l10;
  1887. l13:; G->pos= yypos13; G->thunkpos= yythunkpos13;
  1888. }
  1889. { int yypos14= G->pos, yythunkpos14= G->thunkpos; if (!yymatchChar(G, ']')) goto l14; goto l10;
  1890. l14:; G->pos= yypos14; G->thunkpos= yythunkpos14;
  1891. } if (!yymatchDot(G)) goto l10; goto l9;
  1892. l10:; G->pos= yypos10; G->thunkpos= yythunkpos10;
  1893. } if (!yymatchChar(G, ']')) goto l8;
  1894. yyprintf((stderr, " ok %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  1895. return 1;
  1896. l8:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1897. yyprintf((stderr, " fail %s @ %s\n", "RawNoteReference", G->buf+G->pos));
  1898. return 0;
  1899. }
  1900. YY_RULE(int) yy_ExtendedSpecialChar(GREG *G)
  1901. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1902. yyprintf((stderr, "%s\n", "ExtendedSpecialChar")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l15; if (!yymatchChar(G, '^')) goto l15;
  1903. yyprintf((stderr, " ok %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  1904. return 1;
  1905. l15:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1906. yyprintf((stderr, " fail %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
  1907. return 0;
  1908. }
  1909. YY_RULE(int) yy_AlphanumericAscii(GREG *G)
  1910. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1911. 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;
  1912. yyprintf((stderr, " ok %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  1913. return 1;
  1914. l16:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1915. yyprintf((stderr, " fail %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
  1916. return 0;
  1917. }
  1918. YY_RULE(int) yy_Quoted(GREG *G)
  1919. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1920. yyprintf((stderr, "%s\n", "Quoted"));
  1921. { int yypos18= G->pos, yythunkpos18= G->thunkpos; if (!yymatchChar(G, '"')) goto l19;
  1922. l20:;
  1923. { int yypos21= G->pos, yythunkpos21= G->thunkpos;
  1924. { int yypos22= G->pos, yythunkpos22= G->thunkpos; if (!yymatchChar(G, '"')) goto l22; goto l21;
  1925. l22:; G->pos= yypos22; G->thunkpos= yythunkpos22;
  1926. } if (!yymatchDot(G)) goto l21; goto l20;
  1927. l21:; G->pos= yypos21; G->thunkpos= yythunkpos21;
  1928. } if (!yymatchChar(G, '"')) goto l19; goto l18;
  1929. l19:; G->pos= yypos18; G->thunkpos= yythunkpos18; if (!yymatchChar(G, '\'')) goto l17;
  1930. l23:;
  1931. { int yypos24= G->pos, yythunkpos24= G->thunkpos;
  1932. { int yypos25= G->pos, yythunkpos25= G->thunkpos; if (!yymatchChar(G, '\'')) goto l25; goto l24;
  1933. l25:; G->pos= yypos25; G->thunkpos= yythunkpos25;
  1934. } if (!yymatchDot(G)) goto l24; goto l23;
  1935. l24:; G->pos= yypos24; G->thunkpos= yythunkpos24;
  1936. } if (!yymatchChar(G, '\'')) goto l17;
  1937. }
  1938. l18:;
  1939. yyprintf((stderr, " ok %s @ %s\n", "Quoted", G->buf+G->pos));
  1940. return 1;
  1941. l17:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1942. yyprintf((stderr, " fail %s @ %s\n", "Quoted", G->buf+G->pos));
  1943. return 0;
  1944. }
  1945. YY_RULE(int) yy_HtmlTag(GREG *G)
  1946. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1947. yyprintf((stderr, "%s\n", "HtmlTag")); if (!yymatchChar(G, '<')) goto l26; if (!yy_Spnl(G)) { goto l26; }
  1948. { int yypos27= G->pos, yythunkpos27= G->thunkpos; if (!yymatchChar(G, '/')) goto l27; goto l28;
  1949. l27:; G->pos= yypos27; G->thunkpos= yythunkpos27;
  1950. }
  1951. l28:; if (!yy_AlphanumericAscii(G)) { goto l26; }
  1952. l29:;
  1953. { int yypos30= G->pos, yythunkpos30= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l30; } goto l29;
  1954. l30:; G->pos= yypos30; G->thunkpos= yythunkpos30;
  1955. } if (!yy_Spnl(G)) { goto l26; }
  1956. l31:;
  1957. { int yypos32= G->pos, yythunkpos32= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l32; } goto l31;
  1958. l32:; G->pos= yypos32; G->thunkpos= yythunkpos32;
  1959. }
  1960. { int yypos33= G->pos, yythunkpos33= G->thunkpos; if (!yymatchChar(G, '/')) goto l33; goto l34;
  1961. l33:; G->pos= yypos33; G->thunkpos= yythunkpos33;
  1962. }
  1963. l34:; if (!yy_Spnl(G)) { goto l26; } if (!yymatchChar(G, '>')) goto l26;
  1964. yyprintf((stderr, " ok %s @ %s\n", "HtmlTag", G->buf+G->pos));
  1965. return 1;
  1966. l26:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1967. yyprintf((stderr, " fail %s @ %s\n", "HtmlTag", G->buf+G->pos));
  1968. return 0;
  1969. }
  1970. YY_RULE(int) yy_Ticks5(GREG *G)
  1971. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1972. 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;
  1973. { int yypos36= G->pos, yythunkpos36= G->thunkpos; if (!yymatchChar(G, '`')) goto l36; goto l35;
  1974. l36:; G->pos= yypos36; G->thunkpos= yythunkpos36;
  1975. } yyDo(G, yy_1_Ticks5, G->begin, G->end);
  1976. yyprintf((stderr, " ok %s @ %s\n", "Ticks5", G->buf+G->pos));
  1977. return 1;
  1978. l35:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1979. yyprintf((stderr, " fail %s @ %s\n", "Ticks5", G->buf+G->pos));
  1980. return 0;
  1981. }
  1982. YY_RULE(int) yy_Ticks4(GREG *G)
  1983. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1984. 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;
  1985. { int yypos38= G->pos, yythunkpos38= G->thunkpos; if (!yymatchChar(G, '`')) goto l38; goto l37;
  1986. l38:; G->pos= yypos38; G->thunkpos= yythunkpos38;
  1987. } yyDo(G, yy_1_Ticks4, G->begin, G->end);
  1988. yyprintf((stderr, " ok %s @ %s\n", "Ticks4", G->buf+G->pos));
  1989. return 1;
  1990. l37:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  1991. yyprintf((stderr, " fail %s @ %s\n", "Ticks4", G->buf+G->pos));
  1992. return 0;
  1993. }
  1994. YY_RULE(int) yy_Ticks3(GREG *G)
  1995. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  1996. 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;
  1997. { int yypos40= G->pos, yythunkpos40= G->thunkpos; if (!yymatchChar(G, '`')) goto l40; goto l39;
  1998. l40:; G->pos= yypos40; G->thunkpos= yythunkpos40;
  1999. } yyDo(G, yy_1_Ticks3, G->begin, G->end);
  2000. yyprintf((stderr, " ok %s @ %s\n", "Ticks3", G->buf+G->pos));
  2001. return 1;
  2002. l39:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2003. yyprintf((stderr, " fail %s @ %s\n", "Ticks3", G->buf+G->pos));
  2004. return 0;
  2005. }
  2006. YY_RULE(int) yy_Ticks2(GREG *G)
  2007. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2008. 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;
  2009. { int yypos42= G->pos, yythunkpos42= G->thunkpos; if (!yymatchChar(G, '`')) goto l42; goto l41;
  2010. l42:; G->pos= yypos42; G->thunkpos= yythunkpos42;
  2011. } yyDo(G, yy_1_Ticks2, G->begin, G->end);
  2012. yyprintf((stderr, " ok %s @ %s\n", "Ticks2", G->buf+G->pos));
  2013. return 1;
  2014. l41:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2015. yyprintf((stderr, " fail %s @ %s\n", "Ticks2", G->buf+G->pos));
  2016. return 0;
  2017. }
  2018. YY_RULE(int) yy_Ticks1(GREG *G)
  2019. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2020. 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;
  2021. { int yypos44= G->pos, yythunkpos44= G->thunkpos; if (!yymatchChar(G, '`')) goto l44; goto l43;
  2022. l44:; G->pos= yypos44; G->thunkpos= yythunkpos44;
  2023. } yyDo(G, yy_1_Ticks1, G->begin, G->end);
  2024. yyprintf((stderr, " ok %s @ %s\n", "Ticks1", G->buf+G->pos));
  2025. return 1;
  2026. l43:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2027. yyprintf((stderr, " fail %s @ %s\n", "Ticks1", G->buf+G->pos));
  2028. return 0;
  2029. }
  2030. YY_RULE(int) yy_SkipBlock(GREG *G)
  2031. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2032. yyprintf((stderr, "%s\n", "SkipBlock"));
  2033. { int yypos46= G->pos, yythunkpos46= G->thunkpos;
  2034. { int yypos50= G->pos, yythunkpos50= G->thunkpos; if (!yy_BlankLine(G)) { goto l50; } goto l47;
  2035. l50:; G->pos= yypos50; G->thunkpos= yythunkpos50;
  2036. } if (!yy_RawLine(G)) { goto l47; }
  2037. l48:;
  2038. { int yypos49= G->pos, yythunkpos49= G->thunkpos;
  2039. { int yypos51= G->pos, yythunkpos51= G->thunkpos; if (!yy_BlankLine(G)) { goto l51; } goto l49;
  2040. l51:; G->pos= yypos51; G->thunkpos= yythunkpos51;
  2041. } if (!yy_RawLine(G)) { goto l49; } goto l48;
  2042. l49:; G->pos= yypos49; G->thunkpos= yythunkpos49;
  2043. }
  2044. l52:;
  2045. { int yypos53= G->pos, yythunkpos53= G->thunkpos; if (!yy_BlankLine(G)) { goto l53; } goto l52;
  2046. l53:; G->pos= yypos53; G->thunkpos= yythunkpos53;
  2047. } goto l46;
  2048. l47:; G->pos= yypos46; G->thunkpos= yythunkpos46; if (!yy_BlankLine(G)) { goto l45; }
  2049. l54:;
  2050. { int yypos55= G->pos, yythunkpos55= G->thunkpos; if (!yy_BlankLine(G)) { goto l55; } goto l54;
  2051. l55:; G->pos= yypos55; G->thunkpos= yythunkpos55;
  2052. }
  2053. }
  2054. l46:;
  2055. yyprintf((stderr, " ok %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2056. return 1;
  2057. l45:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2058. yyprintf((stderr, " fail %s @ %s\n", "SkipBlock", G->buf+G->pos));
  2059. return 0;
  2060. }
  2061. YY_RULE(int) yy_References(GREG *G)
  2062. {
  2063. yyprintf((stderr, "%s\n", "References"));
  2064. l57:;
  2065. { int yypos58= G->pos, yythunkpos58= G->thunkpos;
  2066. { int yypos59= G->pos, yythunkpos59= G->thunkpos; if (!yy_Reference(G)) { goto l60; } goto l59;
  2067. l60:; G->pos= yypos59; G->thunkpos= yythunkpos59; if (!yy_SkipBlock(G)) { goto l58; }
  2068. }
  2069. l59:; goto l57;
  2070. l58:; G->pos= yypos58; G->thunkpos= yythunkpos58;
  2071. }
  2072. yyprintf((stderr, " ok %s @ %s\n", "References", G->buf+G->pos));
  2073. return 1;
  2074. }
  2075. YY_RULE(int) yy_EmptyTitle(GREG *G)
  2076. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2077. yyprintf((stderr, "%s\n", "EmptyTitle")); if (!yymatchString(G, "")) goto l61;
  2078. yyprintf((stderr, " ok %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2079. return 1;
  2080. l61:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2081. yyprintf((stderr, " fail %s @ %s\n", "EmptyTitle", G->buf+G->pos));
  2082. return 0;
  2083. }
  2084. YY_RULE(int) yy_RefTitleParens(GREG *G)
  2085. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2086. yyprintf((stderr, "%s\n", "RefTitleParens")); if (!yy_Spnl(G)) { goto l62; } if (!yymatchChar(G, '(')) goto l62;
  2087. l63:;
  2088. { int yypos64= G->pos, yythunkpos64= G->thunkpos;
  2089. { int yypos65= G->pos, yythunkpos65= G->thunkpos;
  2090. { 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;
  2091. l67:; G->pos= yypos66; G->thunkpos= yythunkpos66; if (!yy_Newline(G)) { goto l65; }
  2092. }
  2093. l66:; goto l64;
  2094. l65:; G->pos= yypos65; G->thunkpos= yythunkpos65;
  2095. } if (!yymatchDot(G)) goto l64; goto l63;
  2096. l64:; G->pos= yypos64; G->thunkpos= yythunkpos64;
  2097. } if (!yymatchChar(G, ')')) goto l62;
  2098. yyprintf((stderr, " ok %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2099. return 1;
  2100. l62:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2101. yyprintf((stderr, " fail %s @ %s\n", "RefTitleParens", G->buf+G->pos));
  2102. return 0;
  2103. }
  2104. YY_RULE(int) yy_RefTitleDouble(GREG *G)
  2105. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2106. yyprintf((stderr, "%s\n", "RefTitleDouble")); if (!yy_Spnl(G)) { goto l68; } if (!yymatchChar(G, '"')) goto l68;
  2107. l69:;
  2108. { int yypos70= G->pos, yythunkpos70= G->thunkpos;
  2109. { int yypos71= G->pos, yythunkpos71= G->thunkpos;
  2110. { 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;
  2111. l73:; G->pos= yypos72; G->thunkpos= yythunkpos72; if (!yy_Newline(G)) { goto l71; }
  2112. }
  2113. l72:; goto l70;
  2114. l71:; G->pos= yypos71; G->thunkpos= yythunkpos71;
  2115. } if (!yymatchDot(G)) goto l70; goto l69;
  2116. l70:; G->pos= yypos70; G->thunkpos= yythunkpos70;
  2117. } if (!yymatchChar(G, '"')) goto l68;
  2118. yyprintf((stderr, " ok %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2119. return 1;
  2120. l68:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2121. yyprintf((stderr, " fail %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
  2122. return 0;
  2123. }
  2124. YY_RULE(int) yy_RefTitleSingle(GREG *G)
  2125. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2126. yyprintf((stderr, "%s\n", "RefTitleSingle")); if (!yy_Spnl(G)) { goto l74; } if (!yymatchChar(G, '\'')) goto l74;
  2127. l75:;
  2128. { int yypos76= G->pos, yythunkpos76= G->thunkpos;
  2129. { int yypos77= G->pos, yythunkpos77= G->thunkpos;
  2130. { 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;
  2131. l79:; G->pos= yypos78; G->thunkpos= yythunkpos78; if (!yy_Newline(G)) { goto l77; }
  2132. }
  2133. l78:; goto l76;
  2134. l77:; G->pos= yypos77; G->thunkpos= yythunkpos77;
  2135. } if (!yymatchDot(G)) goto l76; goto l75;
  2136. l76:; G->pos= yypos76; G->thunkpos= yythunkpos76;
  2137. } if (!yymatchChar(G, '\'')) goto l74;
  2138. yyprintf((stderr, " ok %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2139. return 1;
  2140. l74:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2141. yyprintf((stderr, " fail %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
  2142. return 0;
  2143. }
  2144. YY_RULE(int) yy_RefTitle(GREG *G)
  2145. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2146. yyprintf((stderr, "%s\n", "RefTitle"));
  2147. { int yypos81= G->pos, yythunkpos81= G->thunkpos; if (!yy_RefTitleSingle(G)) { goto l82; } goto l81;
  2148. l82:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_RefTitleDouble(G)) { goto l83; } goto l81;
  2149. l83:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_RefTitleParens(G)) { goto l84; } goto l81;
  2150. l84:; G->pos= yypos81; G->thunkpos= yythunkpos81; if (!yy_EmptyTitle(G)) { goto l80; }
  2151. }
  2152. l81:;
  2153. yyprintf((stderr, " ok %s @ %s\n", "RefTitle", G->buf+G->pos));
  2154. return 1;
  2155. l80:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2156. yyprintf((stderr, " fail %s @ %s\n", "RefTitle", G->buf+G->pos));
  2157. return 0;
  2158. }
  2159. YY_RULE(int) yy_RefSrc(GREG *G)
  2160. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2161. yyprintf((stderr, "%s\n", "RefSrc")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l85; if (!yy_Nonspacechar(G)) { goto l85; }
  2162. l86:;
  2163. { int yypos87= G->pos, yythunkpos87= G->thunkpos; if (!yy_Nonspacechar(G)) { goto l87; } goto l86;
  2164. l87:; G->pos= yypos87; G->thunkpos= yythunkpos87;
  2165. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l85; yyDo(G, yy_1_RefSrc, G->begin, G->end);
  2166. yyprintf((stderr, " ok %s @ %s\n", "RefSrc", G->buf+G->pos));
  2167. return 1;
  2168. l85:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2169. yyprintf((stderr, " fail %s @ %s\n", "RefSrc", G->buf+G->pos));
  2170. return 0;
  2171. }
  2172. YY_RULE(int) yy_AutoLinkEmail(GREG *G)
  2173. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2174. 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;
  2175. { int yypos89= G->pos, yythunkpos89= G->thunkpos; if (!yymatchString(G, "mailto:")) goto l89; goto l90;
  2176. l89:; G->pos= yypos89; G->thunkpos= yythunkpos89;
  2177. }
  2178. 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;
  2179. l91:;
  2180. { 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;
  2181. l92:; G->pos= yypos92; G->thunkpos= yythunkpos92;
  2182. } if (!yymatchChar(G, '@')) goto l88;
  2183. { int yypos95= G->pos, yythunkpos95= G->thunkpos; if (!yy_Newline(G)) { goto l95; } goto l88;
  2184. l95:; G->pos= yypos95; G->thunkpos= yythunkpos95;
  2185. }
  2186. { int yypos96= G->pos, yythunkpos96= G->thunkpos; if (!yymatchChar(G, '>')) goto l96; goto l88;
  2187. l96:; G->pos= yypos96; G->thunkpos= yythunkpos96;
  2188. } if (!yymatchDot(G)) goto l88;
  2189. l93:;
  2190. { int yypos94= G->pos, yythunkpos94= G->thunkpos;
  2191. { int yypos97= G->pos, yythunkpos97= G->thunkpos; if (!yy_Newline(G)) { goto l97; } goto l94;
  2192. l97:; G->pos= yypos97; G->thunkpos= yythunkpos97;
  2193. }
  2194. { int yypos98= G->pos, yythunkpos98= G->thunkpos; if (!yymatchChar(G, '>')) goto l98; goto l94;
  2195. l98:; G->pos= yypos98; G->thunkpos= yythunkpos98;
  2196. } if (!yymatchDot(G)) goto l94; goto l93;
  2197. l94:; G->pos= yypos94; G->thunkpos= yythunkpos94;
  2198. } 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);
  2199. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkEmail", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2200. return 1;
  2201. l88:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2202. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkEmail", G->buf+G->pos));
  2203. return 0;
  2204. }
  2205. YY_RULE(int) yy_AutoLinkUrl(GREG *G)
  2206. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2207. 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;
  2208. l100:;
  2209. { 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;
  2210. l101:; G->pos= yypos101; G->thunkpos= yythunkpos101;
  2211. } if (!yymatchString(G, "://")) goto l99;
  2212. { int yypos104= G->pos, yythunkpos104= G->thunkpos; if (!yy_Newline(G)) { goto l104; } goto l99;
  2213. l104:; G->pos= yypos104; G->thunkpos= yythunkpos104;
  2214. }
  2215. { int yypos105= G->pos, yythunkpos105= G->thunkpos; if (!yymatchChar(G, '>')) goto l105; goto l99;
  2216. l105:; G->pos= yypos105; G->thunkpos= yythunkpos105;
  2217. } if (!yymatchDot(G)) goto l99;
  2218. l102:;
  2219. { int yypos103= G->pos, yythunkpos103= G->thunkpos;
  2220. { int yypos106= G->pos, yythunkpos106= G->thunkpos; if (!yy_Newline(G)) { goto l106; } goto l103;
  2221. l106:; G->pos= yypos106; G->thunkpos= yythunkpos106;
  2222. }
  2223. { int yypos107= G->pos, yythunkpos107= G->thunkpos; if (!yymatchChar(G, '>')) goto l107; goto l103;
  2224. l107:; G->pos= yypos107; G->thunkpos= yythunkpos107;
  2225. } if (!yymatchDot(G)) goto l103; goto l102;
  2226. l103:; G->pos= yypos103; G->thunkpos= yythunkpos103;
  2227. } 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);
  2228. yyprintf((stderr, " ok %s @ %s\n", "AutoLinkUrl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2229. return 1;
  2230. l99:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2231. yyprintf((stderr, " fail %s @ %s\n", "AutoLinkUrl", G->buf+G->pos));
  2232. return 0;
  2233. }
  2234. YY_RULE(int) yy_TitleDouble(GREG *G)
  2235. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2236. yyprintf((stderr, "%s\n", "TitleDouble")); if (!yymatchChar(G, '"')) goto l108;
  2237. l109:;
  2238. { int yypos110= G->pos, yythunkpos110= G->thunkpos;
  2239. { int yypos111= G->pos, yythunkpos111= G->thunkpos; if (!yymatchChar(G, '"')) goto l111; if (!yy_Sp(G)) { goto l111; }
  2240. { int yypos112= G->pos, yythunkpos112= G->thunkpos; if (!yymatchChar(G, ')')) goto l113; goto l112;
  2241. l113:; G->pos= yypos112; G->thunkpos= yythunkpos112; if (!yy_Newline(G)) { goto l111; }
  2242. }
  2243. l112:; goto l110;
  2244. l111:; G->pos= yypos111; G->thunkpos= yythunkpos111;
  2245. } if (!yymatchDot(G)) goto l110; goto l109;
  2246. l110:; G->pos= yypos110; G->thunkpos= yythunkpos110;
  2247. } if (!yymatchChar(G, '"')) goto l108;
  2248. yyprintf((stderr, " ok %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2249. return 1;
  2250. l108:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2251. yyprintf((stderr, " fail %s @ %s\n", "TitleDouble", G->buf+G->pos));
  2252. return 0;
  2253. }
  2254. YY_RULE(int) yy_TitleSingle(GREG *G)
  2255. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2256. yyprintf((stderr, "%s\n", "TitleSingle")); if (!yymatchChar(G, '\'')) goto l114;
  2257. l115:;
  2258. { int yypos116= G->pos, yythunkpos116= G->thunkpos;
  2259. { int yypos117= G->pos, yythunkpos117= G->thunkpos; if (!yymatchChar(G, '\'')) goto l117; if (!yy_Sp(G)) { goto l117; }
  2260. { int yypos118= G->pos, yythunkpos118= G->thunkpos; if (!yymatchChar(G, ')')) goto l119; goto l118;
  2261. l119:; G->pos= yypos118; G->thunkpos= yythunkpos118; if (!yy_Newline(G)) { goto l117; }
  2262. }
  2263. l118:; goto l116;
  2264. l117:; G->pos= yypos117; G->thunkpos= yythunkpos117;
  2265. } if (!yymatchDot(G)) goto l116; goto l115;
  2266. l116:; G->pos= yypos116; G->thunkpos= yythunkpos116;
  2267. } if (!yymatchChar(G, '\'')) goto l114;
  2268. yyprintf((stderr, " ok %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2269. return 1;
  2270. l114:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2271. yyprintf((stderr, " fail %s @ %s\n", "TitleSingle", G->buf+G->pos));
  2272. return 0;
  2273. }
  2274. YY_RULE(int) yy_Nonspacechar(GREG *G)
  2275. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2276. yyprintf((stderr, "%s\n", "Nonspacechar"));
  2277. { int yypos121= G->pos, yythunkpos121= G->thunkpos; if (!yy_Spacechar(G)) { goto l121; } goto l120;
  2278. l121:; G->pos= yypos121; G->thunkpos= yythunkpos121;
  2279. }
  2280. { int yypos122= G->pos, yythunkpos122= G->thunkpos; if (!yy_Newline(G)) { goto l122; } goto l120;
  2281. l122:; G->pos= yypos122; G->thunkpos= yythunkpos122;
  2282. } if (!yymatchDot(G)) goto l120;
  2283. yyprintf((stderr, " ok %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  2284. return 1;
  2285. l120:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2286. yyprintf((stderr, " fail %s @ %s\n", "Nonspacechar", G->buf+G->pos));
  2287. return 0;
  2288. }
  2289. YY_RULE(int) yy_SourceContents(GREG *G)
  2290. {
  2291. yyprintf((stderr, "%s\n", "SourceContents"));
  2292. l124:;
  2293. { int yypos125= G->pos, yythunkpos125= G->thunkpos;
  2294. { int yypos126= G->pos, yythunkpos126= G->thunkpos;
  2295. { int yypos130= G->pos, yythunkpos130= G->thunkpos; if (!yymatchChar(G, '(')) goto l130; goto l127;
  2296. l130:; G->pos= yypos130; G->thunkpos= yythunkpos130;
  2297. }
  2298. { int yypos131= G->pos, yythunkpos131= G->thunkpos; if (!yymatchChar(G, ')')) goto l131; goto l127;
  2299. l131:; G->pos= yypos131; G->thunkpos= yythunkpos131;
  2300. }
  2301. { int yypos132= G->pos, yythunkpos132= G->thunkpos; if (!yymatchChar(G, '>')) goto l132; goto l127;
  2302. l132:; G->pos= yypos132; G->thunkpos= yythunkpos132;
  2303. } if (!yy_Nonspacechar(G)) { goto l127; }
  2304. l128:;
  2305. { int yypos129= G->pos, yythunkpos129= G->thunkpos;
  2306. { int yypos133= G->pos, yythunkpos133= G->thunkpos; if (!yymatchChar(G, '(')) goto l133; goto l129;
  2307. l133:; G->pos= yypos133; G->thunkpos= yythunkpos133;
  2308. }
  2309. { int yypos134= G->pos, yythunkpos134= G->thunkpos; if (!yymatchChar(G, ')')) goto l134; goto l129;
  2310. l134:; G->pos= yypos134; G->thunkpos= yythunkpos134;
  2311. }
  2312. { int yypos135= G->pos, yythunkpos135= G->thunkpos; if (!yymatchChar(G, '>')) goto l135; goto l129;
  2313. l135:; G->pos= yypos135; G->thunkpos= yythunkpos135;
  2314. } if (!yy_Nonspacechar(G)) { goto l129; } goto l128;
  2315. l129:; G->pos= yypos129; G->thunkpos= yythunkpos129;
  2316. } goto l126;
  2317. l127:; G->pos= yypos126; G->thunkpos= yythunkpos126; if (!yymatchChar(G, '(')) goto l125; if (!yy_SourceContents(G)) { goto l125; } if (!yymatchChar(G, ')')) goto l125;
  2318. }
  2319. l126:; goto l124;
  2320. l125:; G->pos= yypos125; G->thunkpos= yythunkpos125;
  2321. }
  2322. yyprintf((stderr, " ok %s @ %s\n", "SourceContents", G->buf+G->pos));
  2323. return 1;
  2324. }
  2325. YY_RULE(int) yy_Title(GREG *G)
  2326. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2327. yyprintf((stderr, "%s\n", "Title"));
  2328. { int yypos137= G->pos, yythunkpos137= G->thunkpos; if (!yy_TitleSingle(G)) { goto l138; } goto l137;
  2329. l138:; G->pos= yypos137; G->thunkpos= yythunkpos137; if (!yy_TitleDouble(G)) { goto l139; } goto l137;
  2330. l139:; G->pos= yypos137; G->thunkpos= yythunkpos137; if (!yymatchString(G, "")) goto l136;
  2331. }
  2332. l137:;
  2333. yyprintf((stderr, " ok %s @ %s\n", "Title", G->buf+G->pos));
  2334. return 1;
  2335. l136:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2336. yyprintf((stderr, " fail %s @ %s\n", "Title", G->buf+G->pos));
  2337. return 0;
  2338. }
  2339. YY_RULE(int) yy_Source(GREG *G)
  2340. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2341. yyprintf((stderr, "%s\n", "Source")); yyDo(G, yy_1_Source, G->begin, G->end);
  2342. { int yypos141= G->pos, yythunkpos141= G->thunkpos; if (!yymatchChar(G, '<')) goto l142; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l142; if (!yy_SourceContents(G)) { goto l142; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l142; yyDo(G, yy_2_Source, G->begin, G->end); if (!yymatchChar(G, '>')) goto l142; goto l141;
  2343. l142:; G->pos= yypos141; G->thunkpos= yythunkpos141; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l140; if (!yy_SourceContents(G)) { goto l140; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l140; yyDo(G, yy_3_Source, G->begin, G->end);
  2344. }
  2345. l141:;
  2346. yyprintf((stderr, " ok %s @ %s\n", "Source", G->buf+G->pos));
  2347. return 1;
  2348. l140:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2349. yyprintf((stderr, " fail %s @ %s\n", "Source", G->buf+G->pos));
  2350. return 0;
  2351. }
  2352. YY_RULE(int) yy_Label(GREG *G)
  2353. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2354. yyprintf((stderr, "%s\n", "Label")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l143; if (!yy_LocMarker(G)) { goto l143; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '[')) goto l143;
  2355. { int yypos144= G->pos, yythunkpos144= G->thunkpos;
  2356. { int yypos146= G->pos, yythunkpos146= G->thunkpos; if (!yymatchChar(G, '^')) goto l146; goto l145;
  2357. l146:; G->pos= yypos146; G->thunkpos= yythunkpos146;
  2358. } yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l145; goto l144;
  2359. l145:; G->pos= yypos144; G->thunkpos= yythunkpos144;
  2360. { int yypos147= G->pos, yythunkpos147= G->thunkpos; if (!yymatchDot(G)) goto l143; G->pos= yypos147; G->thunkpos= yythunkpos147;
  2361. } yyText(G, G->begin, G->end); if (!( !EXT(pmh_EXT_NOTES) )) goto l143;
  2362. }
  2363. l144:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l143;
  2364. l148:;
  2365. { int yypos149= G->pos, yythunkpos149= G->thunkpos;
  2366. { int yypos150= G->pos, yythunkpos150= G->thunkpos; if (!yymatchChar(G, ']')) goto l150; goto l149;
  2367. l150:; G->pos= yypos150; G->thunkpos= yythunkpos150;
  2368. } if (!yy_Inline(G)) { goto l149; } goto l148;
  2369. l149:; G->pos= yypos149; G->thunkpos= yythunkpos149;
  2370. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l143; yyDo(G, yy_1_Label, G->begin, G->end); if (!yymatchChar(G, ']')) goto l143; yyText(G, G->begin, G->end); if (!(YY_END)) goto l143; yyDo(G, yy_2_Label, G->begin, G->end);
  2371. yyprintf((stderr, " ok %s @ %s\n", "Label", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2372. return 1;
  2373. l143:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2374. yyprintf((stderr, " fail %s @ %s\n", "Label", G->buf+G->pos));
  2375. return 0;
  2376. }
  2377. YY_RULE(int) yy_ReferenceLinkSingle(GREG *G)
  2378. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2379. yyprintf((stderr, "%s\n", "ReferenceLinkSingle")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l151; if (!yy_Label(G)) { goto l151; } yyDo(G, yySet, -1, 0);
  2380. { int yypos152= G->pos, yythunkpos152= G->thunkpos; if (!yy_Spnl(G)) { goto l152; } if (!yymatchString(G, "[]")) goto l152; goto l153;
  2381. l152:; G->pos= yypos152; G->thunkpos= yythunkpos152;
  2382. }
  2383. l153:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l151; yyDo(G, yy_1_ReferenceLinkSingle, G->begin, G->end);
  2384. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2385. return 1;
  2386. l151:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2387. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos));
  2388. return 0;
  2389. }
  2390. YY_RULE(int) yy_ReferenceLinkDouble(GREG *G)
  2391. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2392. yyprintf((stderr, "%s\n", "ReferenceLinkDouble")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l154; if (!yy_Label(G)) { goto l154; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l154; }
  2393. { int yypos155= G->pos, yythunkpos155= G->thunkpos; if (!yymatchString(G, "[]")) goto l155; goto l154;
  2394. l155:; G->pos= yypos155; G->thunkpos= yythunkpos155;
  2395. } if (!yy_Label(G)) { goto l154; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_END)) goto l154; yyDo(G, yy_1_ReferenceLinkDouble, G->begin, G->end);
  2396. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2397. return 1;
  2398. l154:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2399. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos));
  2400. return 0;
  2401. }
  2402. YY_RULE(int) yy_AutoLink(GREG *G)
  2403. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2404. yyprintf((stderr, "%s\n", "AutoLink"));
  2405. { int yypos157= G->pos, yythunkpos157= G->thunkpos; if (!yy_AutoLinkUrl(G)) { goto l158; } goto l157;
  2406. l158:; G->pos= yypos157; G->thunkpos= yythunkpos157; if (!yy_AutoLinkEmail(G)) { goto l156; }
  2407. }
  2408. l157:;
  2409. yyprintf((stderr, " ok %s @ %s\n", "AutoLink", G->buf+G->pos));
  2410. return 1;
  2411. l156:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2412. yyprintf((stderr, " fail %s @ %s\n", "AutoLink", G->buf+G->pos));
  2413. return 0;
  2414. }
  2415. YY_RULE(int) yy_ReferenceLink(GREG *G)
  2416. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2417. yyprintf((stderr, "%s\n", "ReferenceLink"));
  2418. { int yypos160= G->pos, yythunkpos160= G->thunkpos; if (!yy_ReferenceLinkDouble(G)) { goto l161; } goto l160;
  2419. l161:; G->pos= yypos160; G->thunkpos= yythunkpos160; if (!yy_ReferenceLinkSingle(G)) { goto l159; }
  2420. }
  2421. l160:;
  2422. yyprintf((stderr, " ok %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2423. return 1;
  2424. l159:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2425. yyprintf((stderr, " fail %s @ %s\n", "ReferenceLink", G->buf+G->pos));
  2426. return 0;
  2427. }
  2428. YY_RULE(int) yy_ExplicitLink(GREG *G)
  2429. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  2430. yyprintf((stderr, "%s\n", "ExplicitLink")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l162; if (!yy_Label(G)) { goto l162; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l162; } if (!yymatchChar(G, '(')) goto l162; if (!yy_Sp(G)) { goto l162; } if (!yy_Source(G)) { goto l162; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l162; } if (!yy_Title(G)) { goto l162; } if (!yy_Sp(G)) { goto l162; } if (!yymatchChar(G, ')')) goto l162; yyText(G, G->begin, G->end); if (!(YY_END)) goto l162; yyDo(G, yy_1_ExplicitLink, G->begin, G->end);
  2431. yyprintf((stderr, " ok %s @ %s\n", "ExplicitLink", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  2432. return 1;
  2433. l162:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2434. yyprintf((stderr, " fail %s @ %s\n", "ExplicitLink", G->buf+G->pos));
  2435. return 0;
  2436. }
  2437. YY_RULE(int) yy_StrongUl(GREG *G)
  2438. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2439. yyprintf((stderr, "%s\n", "StrongUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l163; if (!yy_LocMarker(G)) { goto l163; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "__")) goto l163;
  2440. { int yypos164= G->pos, yythunkpos164= G->thunkpos; if (!yy_Whitespace(G)) { goto l164; } goto l163;
  2441. l164:; G->pos= yypos164; G->thunkpos= yythunkpos164;
  2442. }
  2443. { int yypos167= G->pos, yythunkpos167= G->thunkpos; if (!yymatchString(G, "__")) goto l167; goto l163;
  2444. l167:; G->pos= yypos167; G->thunkpos= yythunkpos167;
  2445. } if (!yy_Inline(G)) { goto l163; }
  2446. l165:;
  2447. { int yypos166= G->pos, yythunkpos166= G->thunkpos;
  2448. { int yypos168= G->pos, yythunkpos168= G->thunkpos; if (!yymatchString(G, "__")) goto l168; goto l166;
  2449. l168:; G->pos= yypos168; G->thunkpos= yythunkpos168;
  2450. } if (!yy_Inline(G)) { goto l166; } goto l165;
  2451. l166:; G->pos= yypos166; G->thunkpos= yythunkpos166;
  2452. } if (!yymatchString(G, "__")) goto l163; yyText(G, G->begin, G->end); if (!(YY_END)) goto l163; yyDo(G, yy_1_StrongUl, G->begin, G->end);
  2453. yyprintf((stderr, " ok %s @ %s\n", "StrongUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2454. return 1;
  2455. l163:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2456. yyprintf((stderr, " fail %s @ %s\n", "StrongUl", G->buf+G->pos));
  2457. return 0;
  2458. }
  2459. YY_RULE(int) yy_StrongStar(GREG *G)
  2460. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2461. yyprintf((stderr, "%s\n", "StrongStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l169; if (!yy_LocMarker(G)) { goto l169; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "**")) goto l169;
  2462. { int yypos170= G->pos, yythunkpos170= G->thunkpos; if (!yy_Whitespace(G)) { goto l170; } goto l169;
  2463. l170:; G->pos= yypos170; G->thunkpos= yythunkpos170;
  2464. }
  2465. { int yypos173= G->pos, yythunkpos173= G->thunkpos; if (!yymatchString(G, "**")) goto l173; goto l169;
  2466. l173:; G->pos= yypos173; G->thunkpos= yythunkpos173;
  2467. } if (!yy_Inline(G)) { goto l169; }
  2468. l171:;
  2469. { int yypos172= G->pos, yythunkpos172= G->thunkpos;
  2470. { int yypos174= G->pos, yythunkpos174= G->thunkpos; if (!yymatchString(G, "**")) goto l174; goto l172;
  2471. l174:; G->pos= yypos174; G->thunkpos= yythunkpos174;
  2472. } if (!yy_Inline(G)) { goto l172; } goto l171;
  2473. l172:; G->pos= yypos172; G->thunkpos= yythunkpos172;
  2474. } if (!yymatchString(G, "**")) goto l169; yyText(G, G->begin, G->end); if (!(YY_END)) goto l169; yyDo(G, yy_1_StrongStar, G->begin, G->end);
  2475. yyprintf((stderr, " ok %s @ %s\n", "StrongStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2476. return 1;
  2477. l169:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2478. yyprintf((stderr, " fail %s @ %s\n", "StrongStar", G->buf+G->pos));
  2479. return 0;
  2480. }
  2481. YY_RULE(int) yy_Whitespace(GREG *G)
  2482. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2483. yyprintf((stderr, "%s\n", "Whitespace"));
  2484. { int yypos176= G->pos, yythunkpos176= G->thunkpos; if (!yy_Spacechar(G)) { goto l177; } goto l176;
  2485. l177:; G->pos= yypos176; G->thunkpos= yythunkpos176; if (!yy_Newline(G)) { goto l175; }
  2486. }
  2487. l176:;
  2488. yyprintf((stderr, " ok %s @ %s\n", "Whitespace", G->buf+G->pos));
  2489. return 1;
  2490. l175:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2491. yyprintf((stderr, " fail %s @ %s\n", "Whitespace", G->buf+G->pos));
  2492. return 0;
  2493. }
  2494. YY_RULE(int) yy_EmphUl(GREG *G)
  2495. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2496. yyprintf((stderr, "%s\n", "EmphUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l178; if (!yy_LocMarker(G)) { goto l178; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '_')) goto l178;
  2497. { int yypos179= G->pos, yythunkpos179= G->thunkpos; if (!yy_Whitespace(G)) { goto l179; } goto l178;
  2498. l179:; G->pos= yypos179; G->thunkpos= yythunkpos179;
  2499. }
  2500. { int yypos182= G->pos, yythunkpos182= G->thunkpos;
  2501. { int yypos184= G->pos, yythunkpos184= G->thunkpos; if (!yymatchChar(G, '_')) goto l184; goto l183;
  2502. l184:; G->pos= yypos184; G->thunkpos= yythunkpos184;
  2503. } if (!yy_Inline(G)) { goto l183; } goto l182;
  2504. l183:; G->pos= yypos182; G->thunkpos= yythunkpos182; if (!yy_StrongUl(G)) { goto l178; }
  2505. }
  2506. l182:;
  2507. l180:;
  2508. { int yypos181= G->pos, yythunkpos181= G->thunkpos;
  2509. { int yypos185= G->pos, yythunkpos185= G->thunkpos;
  2510. { int yypos187= G->pos, yythunkpos187= G->thunkpos; if (!yymatchChar(G, '_')) goto l187; goto l186;
  2511. l187:; G->pos= yypos187; G->thunkpos= yythunkpos187;
  2512. } if (!yy_Inline(G)) { goto l186; } goto l185;
  2513. l186:; G->pos= yypos185; G->thunkpos= yythunkpos185; if (!yy_StrongUl(G)) { goto l181; }
  2514. }
  2515. l185:; goto l180;
  2516. l181:; G->pos= yypos181; G->thunkpos= yythunkpos181;
  2517. } if (!yymatchChar(G, '_')) goto l178; yyText(G, G->begin, G->end); if (!(YY_END)) goto l178; yyDo(G, yy_1_EmphUl, G->begin, G->end);
  2518. yyprintf((stderr, " ok %s @ %s\n", "EmphUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2519. return 1;
  2520. l178:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2521. yyprintf((stderr, " fail %s @ %s\n", "EmphUl", G->buf+G->pos));
  2522. return 0;
  2523. }
  2524. YY_RULE(int) yy_EmphStar(GREG *G)
  2525. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2526. yyprintf((stderr, "%s\n", "EmphStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l188; if (!yy_LocMarker(G)) { goto l188; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '*')) goto l188;
  2527. { int yypos189= G->pos, yythunkpos189= G->thunkpos; if (!yy_Whitespace(G)) { goto l189; } goto l188;
  2528. l189:; G->pos= yypos189; G->thunkpos= yythunkpos189;
  2529. }
  2530. { int yypos192= G->pos, yythunkpos192= G->thunkpos;
  2531. { int yypos194= G->pos, yythunkpos194= G->thunkpos; if (!yymatchChar(G, '*')) goto l194; goto l193;
  2532. l194:; G->pos= yypos194; G->thunkpos= yythunkpos194;
  2533. } if (!yy_Inline(G)) { goto l193; } goto l192;
  2534. l193:; G->pos= yypos192; G->thunkpos= yythunkpos192; if (!yy_StrongStar(G)) { goto l188; }
  2535. }
  2536. l192:;
  2537. l190:;
  2538. { int yypos191= G->pos, yythunkpos191= G->thunkpos;
  2539. { int yypos195= G->pos, yythunkpos195= G->thunkpos;
  2540. { int yypos197= G->pos, yythunkpos197= G->thunkpos; if (!yymatchChar(G, '*')) goto l197; goto l196;
  2541. l197:; G->pos= yypos197; G->thunkpos= yythunkpos197;
  2542. } if (!yy_Inline(G)) { goto l196; } goto l195;
  2543. l196:; G->pos= yypos195; G->thunkpos= yythunkpos195; if (!yy_StrongStar(G)) { goto l191; }
  2544. }
  2545. l195:; goto l190;
  2546. l191:; G->pos= yypos191; G->thunkpos= yythunkpos191;
  2547. } if (!yymatchChar(G, '*')) goto l188; yyText(G, G->begin, G->end); if (!(YY_END)) goto l188; yyDo(G, yy_1_EmphStar, G->begin, G->end);
  2548. yyprintf((stderr, " ok %s @ %s\n", "EmphStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2549. return 1;
  2550. l188:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2551. yyprintf((stderr, " fail %s @ %s\n", "EmphStar", G->buf+G->pos));
  2552. return 0;
  2553. }
  2554. YY_RULE(int) yy_StarLine(GREG *G)
  2555. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2556. yyprintf((stderr, "%s\n", "StarLine"));
  2557. { int yypos199= G->pos, yythunkpos199= G->thunkpos; if (!yymatchString(G, "****")) goto l200;
  2558. l201:;
  2559. { int yypos202= G->pos, yythunkpos202= G->thunkpos; if (!yymatchChar(G, '*')) goto l202; goto l201;
  2560. l202:; G->pos= yypos202; G->thunkpos= yythunkpos202;
  2561. } goto l199;
  2562. l200:; G->pos= yypos199; G->thunkpos= yythunkpos199; if (!yy_Spacechar(G)) { goto l198; } if (!yymatchChar(G, '*')) goto l198;
  2563. l203:;
  2564. { int yypos204= G->pos, yythunkpos204= G->thunkpos; if (!yymatchChar(G, '*')) goto l204; goto l203;
  2565. l204:; G->pos= yypos204; G->thunkpos= yythunkpos204;
  2566. }
  2567. { int yypos205= G->pos, yythunkpos205= G->thunkpos; if (!yy_Spacechar(G)) { goto l198; } G->pos= yypos205; G->thunkpos= yythunkpos205;
  2568. }
  2569. }
  2570. l199:;
  2571. yyprintf((stderr, " ok %s @ %s\n", "StarLine", G->buf+G->pos));
  2572. return 1;
  2573. l198:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2574. yyprintf((stderr, " fail %s @ %s\n", "StarLine", G->buf+G->pos));
  2575. return 0;
  2576. }
  2577. YY_RULE(int) yy_UlLine(GREG *G)
  2578. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2579. yyprintf((stderr, "%s\n", "UlLine"));
  2580. { int yypos207= G->pos, yythunkpos207= G->thunkpos; if (!yymatchString(G, "____")) goto l208;
  2581. l209:;
  2582. { int yypos210= G->pos, yythunkpos210= G->thunkpos; if (!yymatchChar(G, '_')) goto l210; goto l209;
  2583. l210:; G->pos= yypos210; G->thunkpos= yythunkpos210;
  2584. } goto l207;
  2585. l208:; G->pos= yypos207; G->thunkpos= yythunkpos207; if (!yy_Spacechar(G)) { goto l206; } if (!yymatchChar(G, '_')) goto l206;
  2586. l211:;
  2587. { int yypos212= G->pos, yythunkpos212= G->thunkpos; if (!yymatchChar(G, '_')) goto l212; goto l211;
  2588. l212:; G->pos= yypos212; G->thunkpos= yythunkpos212;
  2589. }
  2590. { int yypos213= G->pos, yythunkpos213= G->thunkpos; if (!yy_Spacechar(G)) { goto l206; } G->pos= yypos213; G->thunkpos= yythunkpos213;
  2591. }
  2592. }
  2593. l207:;
  2594. yyprintf((stderr, " ok %s @ %s\n", "UlLine", G->buf+G->pos));
  2595. return 1;
  2596. l206:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2597. yyprintf((stderr, " fail %s @ %s\n", "UlLine", G->buf+G->pos));
  2598. return 0;
  2599. }
  2600. YY_RULE(int) yy_SpecialChar(GREG *G)
  2601. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2602. yyprintf((stderr, "%s\n", "SpecialChar"));
  2603. { int yypos215= G->pos, yythunkpos215= G->thunkpos; if (!yymatchChar(G, '~')) goto l216; goto l215;
  2604. l216:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '*')) goto l217; goto l215;
  2605. l217:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '_')) goto l218; goto l215;
  2606. l218:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '`')) goto l219; goto l215;
  2607. l219:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '&')) goto l220; goto l215;
  2608. l220:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '[')) goto l221; goto l215;
  2609. l221:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, ']')) goto l222; goto l215;
  2610. l222:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '(')) goto l223; goto l215;
  2611. l223:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, ')')) goto l224; goto l215;
  2612. l224:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '<')) goto l225; goto l215;
  2613. l225:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '!')) goto l226; goto l215;
  2614. l226:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '#')) goto l227; goto l215;
  2615. l227:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '\\')) goto l228; goto l215;
  2616. l228:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '\'')) goto l229; goto l215;
  2617. l229:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yymatchChar(G, '"')) goto l230; goto l215;
  2618. l230:; G->pos= yypos215; G->thunkpos= yythunkpos215; if (!yy_ExtendedSpecialChar(G)) { goto l214; }
  2619. }
  2620. l215:;
  2621. yyprintf((stderr, " ok %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2622. return 1;
  2623. l214:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2624. yyprintf((stderr, " fail %s @ %s\n", "SpecialChar", G->buf+G->pos));
  2625. return 0;
  2626. }
  2627. YY_RULE(int) yy_Eof(GREG *G)
  2628. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2629. yyprintf((stderr, "%s\n", "Eof"));
  2630. { int yypos232= G->pos, yythunkpos232= G->thunkpos; if (!yymatchDot(G)) goto l232; goto l231;
  2631. l232:; G->pos= yypos232; G->thunkpos= yythunkpos232;
  2632. }
  2633. yyprintf((stderr, " ok %s @ %s\n", "Eof", G->buf+G->pos));
  2634. return 1;
  2635. l231:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2636. yyprintf((stderr, " fail %s @ %s\n", "Eof", G->buf+G->pos));
  2637. return 0;
  2638. }
  2639. YY_RULE(int) yy_NormalEndline(GREG *G)
  2640. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2641. yyprintf((stderr, "%s\n", "NormalEndline")); if (!yy_Sp(G)) { goto l233; } if (!yy_Newline(G)) { goto l233; }
  2642. { int yypos234= G->pos, yythunkpos234= G->thunkpos; if (!yy_BlankLine(G)) { goto l234; } goto l233;
  2643. l234:; G->pos= yypos234; G->thunkpos= yythunkpos234;
  2644. }
  2645. { int yypos235= G->pos, yythunkpos235= G->thunkpos; if (!yymatchChar(G, '>')) goto l235; goto l233;
  2646. l235:; G->pos= yypos235; G->thunkpos= yythunkpos235;
  2647. }
  2648. { int yypos236= G->pos, yythunkpos236= G->thunkpos; if (!yy_AtxStart(G)) { goto l236; } goto l233;
  2649. l236:; G->pos= yypos236; G->thunkpos= yythunkpos236;
  2650. }
  2651. { int yypos237= G->pos, yythunkpos237= G->thunkpos; if (!yy_Line(G)) { goto l237; }
  2652. { int yypos238= G->pos, yythunkpos238= G->thunkpos; if (!yymatchChar(G, '=')) goto l239;
  2653. l240:;
  2654. { int yypos241= G->pos, yythunkpos241= G->thunkpos; if (!yymatchChar(G, '=')) goto l241; goto l240;
  2655. l241:; G->pos= yypos241; G->thunkpos= yythunkpos241;
  2656. } goto l238;
  2657. l239:; G->pos= yypos238; G->thunkpos= yythunkpos238; if (!yymatchChar(G, '-')) goto l237;
  2658. l242:;
  2659. { int yypos243= G->pos, yythunkpos243= G->thunkpos; if (!yymatchChar(G, '-')) goto l243; goto l242;
  2660. l243:; G->pos= yypos243; G->thunkpos= yythunkpos243;
  2661. }
  2662. }
  2663. l238:; if (!yy_Newline(G)) { goto l237; } goto l233;
  2664. l237:; G->pos= yypos237; G->thunkpos= yythunkpos237;
  2665. }
  2666. yyprintf((stderr, " ok %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2667. return 1;
  2668. l233:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2669. yyprintf((stderr, " fail %s @ %s\n", "NormalEndline", G->buf+G->pos));
  2670. return 0;
  2671. }
  2672. YY_RULE(int) yy_TerminalEndline(GREG *G)
  2673. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2674. yyprintf((stderr, "%s\n", "TerminalEndline")); if (!yy_Sp(G)) { goto l244; } if (!yy_Newline(G)) { goto l244; } if (!yy_Eof(G)) { goto l244; }
  2675. yyprintf((stderr, " ok %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2676. return 1;
  2677. l244:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2678. yyprintf((stderr, " fail %s @ %s\n", "TerminalEndline", G->buf+G->pos));
  2679. return 0;
  2680. }
  2681. YY_RULE(int) yy_LineBreak(GREG *G)
  2682. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2683. yyprintf((stderr, "%s\n", "LineBreak")); if (!yymatchString(G, " ")) goto l245; if (!yy_NormalEndline(G)) { goto l245; }
  2684. yyprintf((stderr, " ok %s @ %s\n", "LineBreak", G->buf+G->pos));
  2685. return 1;
  2686. l245:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2687. yyprintf((stderr, " fail %s @ %s\n", "LineBreak", G->buf+G->pos));
  2688. return 0;
  2689. }
  2690. YY_RULE(int) yy_CharEntity(GREG *G)
  2691. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2692. yyprintf((stderr, "%s\n", "CharEntity")); if (!yymatchChar(G, '&')) goto l246; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l246;
  2693. l247:;
  2694. { int yypos248= G->pos, yythunkpos248= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l248; goto l247;
  2695. l248:; G->pos= yypos248; G->thunkpos= yythunkpos248;
  2696. } if (!yymatchChar(G, ';')) goto l246;
  2697. yyprintf((stderr, " ok %s @ %s\n", "CharEntity", G->buf+G->pos));
  2698. return 1;
  2699. l246:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2700. yyprintf((stderr, " fail %s @ %s\n", "CharEntity", G->buf+G->pos));
  2701. return 0;
  2702. }
  2703. YY_RULE(int) yy_DecEntity(GREG *G)
  2704. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2705. yyprintf((stderr, "%s\n", "DecEntity")); if (!yymatchChar(G, '&')) goto l249; if (!yymatchChar(G, '#')) goto l249; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l249;
  2706. l250:;
  2707. { int yypos251= G->pos, yythunkpos251= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l251; goto l250;
  2708. l251:; G->pos= yypos251; G->thunkpos= yythunkpos251;
  2709. } if (!yymatchChar(G, ';')) goto l249;
  2710. yyprintf((stderr, " ok %s @ %s\n", "DecEntity", G->buf+G->pos));
  2711. return 1;
  2712. l249:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2713. yyprintf((stderr, " fail %s @ %s\n", "DecEntity", G->buf+G->pos));
  2714. return 0;
  2715. }
  2716. YY_RULE(int) yy_HexEntity(GREG *G)
  2717. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2718. yyprintf((stderr, "%s\n", "HexEntity")); if (!yymatchChar(G, '&')) goto l252; if (!yymatchChar(G, '#')) goto l252; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l252; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\176\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l252;
  2719. l253:;
  2720. { int yypos254= G->pos, yythunkpos254= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\176\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l254; goto l253;
  2721. l254:; G->pos= yypos254; G->thunkpos= yythunkpos254;
  2722. } if (!yymatchChar(G, ';')) goto l252;
  2723. yyprintf((stderr, " ok %s @ %s\n", "HexEntity", G->buf+G->pos));
  2724. return 1;
  2725. l252:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2726. yyprintf((stderr, " fail %s @ %s\n", "HexEntity", G->buf+G->pos));
  2727. return 0;
  2728. }
  2729. YY_RULE(int) yy_Alphanumeric(GREG *G)
  2730. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2731. yyprintf((stderr, "%s\n", "Alphanumeric"));
  2732. { int yypos256= G->pos, yythunkpos256= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l257; goto l256;
  2733. l257:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\200")) goto l258; goto l256;
  2734. l258:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\201")) goto l259; goto l256;
  2735. l259:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\202")) goto l260; goto l256;
  2736. l260:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\203")) goto l261; goto l256;
  2737. l261:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\204")) goto l262; goto l256;
  2738. l262:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\205")) goto l263; goto l256;
  2739. l263:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\206")) goto l264; goto l256;
  2740. l264:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\207")) goto l265; goto l256;
  2741. l265:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\210")) goto l266; goto l256;
  2742. l266:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\211")) goto l267; goto l256;
  2743. l267:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\212")) goto l268; goto l256;
  2744. l268:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\213")) goto l269; goto l256;
  2745. l269:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\214")) goto l270; goto l256;
  2746. l270:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\215")) goto l271; goto l256;
  2747. l271:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\216")) goto l272; goto l256;
  2748. l272:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\217")) goto l273; goto l256;
  2749. l273:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\220")) goto l274; goto l256;
  2750. l274:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\221")) goto l275; goto l256;
  2751. l275:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\222")) goto l276; goto l256;
  2752. l276:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\223")) goto l277; goto l256;
  2753. l277:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\224")) goto l278; goto l256;
  2754. l278:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\225")) goto l279; goto l256;
  2755. l279:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\226")) goto l280; goto l256;
  2756. l280:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\227")) goto l281; goto l256;
  2757. l281:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\230")) goto l282; goto l256;
  2758. l282:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\231")) goto l283; goto l256;
  2759. l283:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\232")) goto l284; goto l256;
  2760. l284:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\233")) goto l285; goto l256;
  2761. l285:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\234")) goto l286; goto l256;
  2762. l286:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\235")) goto l287; goto l256;
  2763. l287:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\236")) goto l288; goto l256;
  2764. l288:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\237")) goto l289; goto l256;
  2765. l289:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\240")) goto l290; goto l256;
  2766. l290:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\241")) goto l291; goto l256;
  2767. l291:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\242")) goto l292; goto l256;
  2768. l292:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\243")) goto l293; goto l256;
  2769. l293:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\244")) goto l294; goto l256;
  2770. l294:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\245")) goto l295; goto l256;
  2771. l295:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\246")) goto l296; goto l256;
  2772. l296:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\247")) goto l297; goto l256;
  2773. l297:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\250")) goto l298; goto l256;
  2774. l298:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\251")) goto l299; goto l256;
  2775. l299:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\252")) goto l300; goto l256;
  2776. l300:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\253")) goto l301; goto l256;
  2777. l301:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\254")) goto l302; goto l256;
  2778. l302:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\255")) goto l303; goto l256;
  2779. l303:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\256")) goto l304; goto l256;
  2780. l304:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\257")) goto l305; goto l256;
  2781. l305:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\260")) goto l306; goto l256;
  2782. l306:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\261")) goto l307; goto l256;
  2783. l307:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\262")) goto l308; goto l256;
  2784. l308:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\263")) goto l309; goto l256;
  2785. l309:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\264")) goto l310; goto l256;
  2786. l310:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\265")) goto l311; goto l256;
  2787. l311:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\266")) goto l312; goto l256;
  2788. l312:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\267")) goto l313; goto l256;
  2789. l313:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\270")) goto l314; goto l256;
  2790. l314:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\271")) goto l315; goto l256;
  2791. l315:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\272")) goto l316; goto l256;
  2792. l316:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\273")) goto l317; goto l256;
  2793. l317:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\274")) goto l318; goto l256;
  2794. l318:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\275")) goto l319; goto l256;
  2795. l319:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\276")) goto l320; goto l256;
  2796. l320:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\277")) goto l321; goto l256;
  2797. l321:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\300")) goto l322; goto l256;
  2798. l322:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\301")) goto l323; goto l256;
  2799. l323:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\302")) goto l324; goto l256;
  2800. l324:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\303")) goto l325; goto l256;
  2801. l325:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\304")) goto l326; goto l256;
  2802. l326:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\305")) goto l327; goto l256;
  2803. l327:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\306")) goto l328; goto l256;
  2804. l328:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\307")) goto l329; goto l256;
  2805. l329:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\310")) goto l330; goto l256;
  2806. l330:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\311")) goto l331; goto l256;
  2807. l331:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\312")) goto l332; goto l256;
  2808. l332:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\313")) goto l333; goto l256;
  2809. l333:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\314")) goto l334; goto l256;
  2810. l334:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\315")) goto l335; goto l256;
  2811. l335:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\316")) goto l336; goto l256;
  2812. l336:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\317")) goto l337; goto l256;
  2813. l337:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\320")) goto l338; goto l256;
  2814. l338:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\321")) goto l339; goto l256;
  2815. l339:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\322")) goto l340; goto l256;
  2816. l340:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\323")) goto l341; goto l256;
  2817. l341:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\324")) goto l342; goto l256;
  2818. l342:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\325")) goto l343; goto l256;
  2819. l343:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\326")) goto l344; goto l256;
  2820. l344:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\327")) goto l345; goto l256;
  2821. l345:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\330")) goto l346; goto l256;
  2822. l346:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\331")) goto l347; goto l256;
  2823. l347:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\332")) goto l348; goto l256;
  2824. l348:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\333")) goto l349; goto l256;
  2825. l349:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\334")) goto l350; goto l256;
  2826. l350:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\335")) goto l351; goto l256;
  2827. l351:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\336")) goto l352; goto l256;
  2828. l352:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\337")) goto l353; goto l256;
  2829. l353:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\340")) goto l354; goto l256;
  2830. l354:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\341")) goto l355; goto l256;
  2831. l355:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\342")) goto l356; goto l256;
  2832. l356:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\343")) goto l357; goto l256;
  2833. l357:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\344")) goto l358; goto l256;
  2834. l358:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\345")) goto l359; goto l256;
  2835. l359:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\346")) goto l360; goto l256;
  2836. l360:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\347")) goto l361; goto l256;
  2837. l361:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\350")) goto l362; goto l256;
  2838. l362:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\351")) goto l363; goto l256;
  2839. l363:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\352")) goto l364; goto l256;
  2840. l364:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\353")) goto l365; goto l256;
  2841. l365:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\354")) goto l366; goto l256;
  2842. l366:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\355")) goto l367; goto l256;
  2843. l367:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\356")) goto l368; goto l256;
  2844. l368:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\357")) goto l369; goto l256;
  2845. l369:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\360")) goto l370; goto l256;
  2846. l370:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\361")) goto l371; goto l256;
  2847. l371:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\362")) goto l372; goto l256;
  2848. l372:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\363")) goto l373; goto l256;
  2849. l373:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\364")) goto l374; goto l256;
  2850. l374:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\365")) goto l375; goto l256;
  2851. l375:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\366")) goto l376; goto l256;
  2852. l376:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\367")) goto l377; goto l256;
  2853. l377:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\370")) goto l378; goto l256;
  2854. l378:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\371")) goto l379; goto l256;
  2855. l379:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\372")) goto l380; goto l256;
  2856. l380:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\373")) goto l381; goto l256;
  2857. l381:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\374")) goto l382; goto l256;
  2858. l382:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\375")) goto l383; goto l256;
  2859. l383:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\376")) goto l384; goto l256;
  2860. l384:; G->pos= yypos256; G->thunkpos= yythunkpos256; if (!yymatchString(G, "\377")) goto l255;
  2861. }
  2862. l256:;
  2863. yyprintf((stderr, " ok %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  2864. return 1;
  2865. l255:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2866. yyprintf((stderr, " fail %s @ %s\n", "Alphanumeric", G->buf+G->pos));
  2867. return 0;
  2868. }
  2869. YY_RULE(int) yy_NormalChar(GREG *G)
  2870. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2871. yyprintf((stderr, "%s\n", "NormalChar"));
  2872. { int yypos386= G->pos, yythunkpos386= G->thunkpos;
  2873. { int yypos387= G->pos, yythunkpos387= G->thunkpos; if (!yy_SpecialChar(G)) { goto l388; } goto l387;
  2874. l388:; G->pos= yypos387; G->thunkpos= yythunkpos387; if (!yy_Spacechar(G)) { goto l389; } goto l387;
  2875. l389:; G->pos= yypos387; G->thunkpos= yythunkpos387; if (!yy_Newline(G)) { goto l386; }
  2876. }
  2877. l387:; goto l385;
  2878. l386:; G->pos= yypos386; G->thunkpos= yythunkpos386;
  2879. } if (!yymatchDot(G)) goto l385;
  2880. yyprintf((stderr, " ok %s @ %s\n", "NormalChar", G->buf+G->pos));
  2881. return 1;
  2882. l385:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2883. yyprintf((stderr, " fail %s @ %s\n", "NormalChar", G->buf+G->pos));
  2884. return 0;
  2885. }
  2886. YY_RULE(int) yy_Symbol(GREG *G)
  2887. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2888. yyprintf((stderr, "%s\n", "Symbol")); if (!yy_SpecialChar(G)) { goto l390; }
  2889. yyprintf((stderr, " ok %s @ %s\n", "Symbol", G->buf+G->pos));
  2890. return 1;
  2891. l390:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2892. yyprintf((stderr, " fail %s @ %s\n", "Symbol", G->buf+G->pos));
  2893. return 0;
  2894. }
  2895. YY_RULE(int) yy_EscapedChar(GREG *G)
  2896. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  2897. yyprintf((stderr, "%s\n", "EscapedChar")); if (!yymatchChar(G, '\\')) goto l391;
  2898. { int yypos392= G->pos, yythunkpos392= G->thunkpos; if (!yy_Newline(G)) { goto l392; } goto l391;
  2899. l392:; G->pos= yypos392; G->thunkpos= yythunkpos392;
  2900. } if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\012\157\000\120\000\000\000\270\001\000\000\070\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l391;
  2901. yyprintf((stderr, " ok %s @ %s\n", "EscapedChar", G->buf+G->pos));
  2902. return 1;
  2903. l391:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2904. yyprintf((stderr, " fail %s @ %s\n", "EscapedChar", G->buf+G->pos));
  2905. return 0;
  2906. }
  2907. YY_RULE(int) yy_Entity(GREG *G)
  2908. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2909. yyprintf((stderr, "%s\n", "Entity")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l393; if (!yy_LocMarker(G)) { goto l393; } yyDo(G, yySet, -1, 0);
  2910. { int yypos394= G->pos, yythunkpos394= G->thunkpos; if (!yy_HexEntity(G)) { goto l395; } goto l394;
  2911. l395:; G->pos= yypos394; G->thunkpos= yythunkpos394; if (!yy_DecEntity(G)) { goto l396; } goto l394;
  2912. l396:; G->pos= yypos394; G->thunkpos= yythunkpos394; if (!yy_CharEntity(G)) { goto l393; }
  2913. }
  2914. l394:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l393; yyDo(G, yy_1_Entity, G->begin, G->end);
  2915. yyprintf((stderr, " ok %s @ %s\n", "Entity", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2916. return 1;
  2917. l393:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2918. yyprintf((stderr, " fail %s @ %s\n", "Entity", G->buf+G->pos));
  2919. return 0;
  2920. }
  2921. YY_RULE(int) yy_RawHtml(GREG *G)
  2922. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2923. yyprintf((stderr, "%s\n", "RawHtml")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l397; if (!yy_LocMarker(G)) { goto l397; } yyDo(G, yySet, -1, 0);
  2924. { int yypos398= G->pos, yythunkpos398= G->thunkpos; if (!yy_HtmlComment(G)) { goto l399; } goto l398;
  2925. l399:; G->pos= yypos398; G->thunkpos= yythunkpos398; if (!yy_HtmlBlockScript(G)) { goto l400; } goto l398;
  2926. l400:; G->pos= yypos398; G->thunkpos= yythunkpos398; if (!yy_HtmlTag(G)) { goto l397; }
  2927. }
  2928. l398:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l397; yyDo(G, yy_1_RawHtml, G->begin, G->end);
  2929. yyprintf((stderr, " ok %s @ %s\n", "RawHtml", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  2930. return 1;
  2931. l397:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  2932. yyprintf((stderr, " fail %s @ %s\n", "RawHtml", G->buf+G->pos));
  2933. return 0;
  2934. }
  2935. YY_RULE(int) yy_Code(GREG *G)
  2936. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  2937. yyprintf((stderr, "%s\n", "Code")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l401;
  2938. { int yypos402= G->pos, yythunkpos402= G->thunkpos; if (!yy_Ticks1(G)) { goto l403; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l403; }
  2939. { int yypos406= G->pos, yythunkpos406= G->thunkpos;
  2940. { int yypos410= G->pos, yythunkpos410= G->thunkpos; if (!yymatchChar(G, '`')) goto l410; goto l407;
  2941. l410:; G->pos= yypos410; G->thunkpos= yythunkpos410;
  2942. } if (!yy_Nonspacechar(G)) { goto l407; }
  2943. l408:;
  2944. { int yypos409= G->pos, yythunkpos409= G->thunkpos;
  2945. { int yypos411= G->pos, yythunkpos411= G->thunkpos; if (!yymatchChar(G, '`')) goto l411; goto l409;
  2946. l411:; G->pos= yypos411; G->thunkpos= yythunkpos411;
  2947. } if (!yy_Nonspacechar(G)) { goto l409; } goto l408;
  2948. l409:; G->pos= yypos409; G->thunkpos= yythunkpos409;
  2949. } goto l406;
  2950. l407:; G->pos= yypos406; G->thunkpos= yythunkpos406;
  2951. { int yypos413= G->pos, yythunkpos413= G->thunkpos; if (!yy_Ticks1(G)) { goto l413; } goto l412;
  2952. l413:; G->pos= yypos413; G->thunkpos= yythunkpos413;
  2953. } if (!yymatchChar(G, '`')) goto l412;
  2954. l414:;
  2955. { int yypos415= G->pos, yythunkpos415= G->thunkpos; if (!yymatchChar(G, '`')) goto l415; goto l414;
  2956. l415:; G->pos= yypos415; G->thunkpos= yythunkpos415;
  2957. } goto l406;
  2958. l412:; G->pos= yypos406; G->thunkpos= yythunkpos406;
  2959. { int yypos416= G->pos, yythunkpos416= G->thunkpos; if (!yy_Sp(G)) { goto l416; } if (!yy_Ticks1(G)) { goto l416; } goto l403;
  2960. l416:; G->pos= yypos416; G->thunkpos= yythunkpos416;
  2961. }
  2962. { int yypos417= G->pos, yythunkpos417= G->thunkpos; if (!yy_Spacechar(G)) { goto l418; } goto l417;
  2963. l418:; G->pos= yypos417; G->thunkpos= yythunkpos417; if (!yy_Newline(G)) { goto l403; }
  2964. { int yypos419= G->pos, yythunkpos419= G->thunkpos; if (!yy_BlankLine(G)) { goto l419; } goto l403;
  2965. l419:; G->pos= yypos419; G->thunkpos= yythunkpos419;
  2966. }
  2967. }
  2968. l417:;
  2969. }
  2970. l406:;
  2971. l404:;
  2972. { int yypos405= G->pos, yythunkpos405= G->thunkpos;
  2973. { int yypos420= G->pos, yythunkpos420= G->thunkpos;
  2974. { int yypos424= G->pos, yythunkpos424= G->thunkpos; if (!yymatchChar(G, '`')) goto l424; goto l421;
  2975. l424:; G->pos= yypos424; G->thunkpos= yythunkpos424;
  2976. } if (!yy_Nonspacechar(G)) { goto l421; }
  2977. l422:;
  2978. { int yypos423= G->pos, yythunkpos423= G->thunkpos;
  2979. { int yypos425= G->pos, yythunkpos425= G->thunkpos; if (!yymatchChar(G, '`')) goto l425; goto l423;
  2980. l425:; G->pos= yypos425; G->thunkpos= yythunkpos425;
  2981. } if (!yy_Nonspacechar(G)) { goto l423; } goto l422;
  2982. l423:; G->pos= yypos423; G->thunkpos= yythunkpos423;
  2983. } goto l420;
  2984. l421:; G->pos= yypos420; G->thunkpos= yythunkpos420;
  2985. { int yypos427= G->pos, yythunkpos427= G->thunkpos; if (!yy_Ticks1(G)) { goto l427; } goto l426;
  2986. l427:; G->pos= yypos427; G->thunkpos= yythunkpos427;
  2987. } if (!yymatchChar(G, '`')) goto l426;
  2988. l428:;
  2989. { int yypos429= G->pos, yythunkpos429= G->thunkpos; if (!yymatchChar(G, '`')) goto l429; goto l428;
  2990. l429:; G->pos= yypos429; G->thunkpos= yythunkpos429;
  2991. } goto l420;
  2992. l426:; G->pos= yypos420; G->thunkpos= yythunkpos420;
  2993. { int yypos430= G->pos, yythunkpos430= G->thunkpos; if (!yy_Sp(G)) { goto l430; } if (!yy_Ticks1(G)) { goto l430; } goto l405;
  2994. l430:; G->pos= yypos430; G->thunkpos= yythunkpos430;
  2995. }
  2996. { int yypos431= G->pos, yythunkpos431= G->thunkpos; if (!yy_Spacechar(G)) { goto l432; } goto l431;
  2997. l432:; G->pos= yypos431; G->thunkpos= yythunkpos431; if (!yy_Newline(G)) { goto l405; }
  2998. { int yypos433= G->pos, yythunkpos433= G->thunkpos; if (!yy_BlankLine(G)) { goto l433; } goto l405;
  2999. l433:; G->pos= yypos433; G->thunkpos= yythunkpos433;
  3000. }
  3001. }
  3002. l431:;
  3003. }
  3004. l420:; goto l404;
  3005. l405:; G->pos= yypos405; G->thunkpos= yythunkpos405;
  3006. } if (!yy_Sp(G)) { goto l403; } if (!yy_Ticks1(G)) { goto l403; } goto l402;
  3007. l403:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks2(G)) { goto l434; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l434; }
  3008. { int yypos437= G->pos, yythunkpos437= G->thunkpos;
  3009. { int yypos441= G->pos, yythunkpos441= G->thunkpos; if (!yymatchChar(G, '`')) goto l441; goto l438;
  3010. l441:; G->pos= yypos441; G->thunkpos= yythunkpos441;
  3011. } if (!yy_Nonspacechar(G)) { goto l438; }
  3012. l439:;
  3013. { int yypos440= G->pos, yythunkpos440= G->thunkpos;
  3014. { int yypos442= G->pos, yythunkpos442= G->thunkpos; if (!yymatchChar(G, '`')) goto l442; goto l440;
  3015. l442:; G->pos= yypos442; G->thunkpos= yythunkpos442;
  3016. } if (!yy_Nonspacechar(G)) { goto l440; } goto l439;
  3017. l440:; G->pos= yypos440; G->thunkpos= yythunkpos440;
  3018. } goto l437;
  3019. l438:; G->pos= yypos437; G->thunkpos= yythunkpos437;
  3020. { int yypos444= G->pos, yythunkpos444= G->thunkpos; if (!yy_Ticks2(G)) { goto l444; } goto l443;
  3021. l444:; G->pos= yypos444; G->thunkpos= yythunkpos444;
  3022. } if (!yymatchChar(G, '`')) goto l443;
  3023. l445:;
  3024. { int yypos446= G->pos, yythunkpos446= G->thunkpos; if (!yymatchChar(G, '`')) goto l446; goto l445;
  3025. l446:; G->pos= yypos446; G->thunkpos= yythunkpos446;
  3026. } goto l437;
  3027. l443:; G->pos= yypos437; G->thunkpos= yythunkpos437;
  3028. { int yypos447= G->pos, yythunkpos447= G->thunkpos; if (!yy_Sp(G)) { goto l447; } if (!yy_Ticks2(G)) { goto l447; } goto l434;
  3029. l447:; G->pos= yypos447; G->thunkpos= yythunkpos447;
  3030. }
  3031. { int yypos448= G->pos, yythunkpos448= G->thunkpos; if (!yy_Spacechar(G)) { goto l449; } goto l448;
  3032. l449:; G->pos= yypos448; G->thunkpos= yythunkpos448; if (!yy_Newline(G)) { goto l434; }
  3033. { int yypos450= G->pos, yythunkpos450= G->thunkpos; if (!yy_BlankLine(G)) { goto l450; } goto l434;
  3034. l450:; G->pos= yypos450; G->thunkpos= yythunkpos450;
  3035. }
  3036. }
  3037. l448:;
  3038. }
  3039. l437:;
  3040. l435:;
  3041. { int yypos436= G->pos, yythunkpos436= G->thunkpos;
  3042. { int yypos451= G->pos, yythunkpos451= G->thunkpos;
  3043. { int yypos455= G->pos, yythunkpos455= G->thunkpos; if (!yymatchChar(G, '`')) goto l455; goto l452;
  3044. l455:; G->pos= yypos455; G->thunkpos= yythunkpos455;
  3045. } if (!yy_Nonspacechar(G)) { goto l452; }
  3046. l453:;
  3047. { int yypos454= G->pos, yythunkpos454= G->thunkpos;
  3048. { int yypos456= G->pos, yythunkpos456= G->thunkpos; if (!yymatchChar(G, '`')) goto l456; goto l454;
  3049. l456:; G->pos= yypos456; G->thunkpos= yythunkpos456;
  3050. } if (!yy_Nonspacechar(G)) { goto l454; } goto l453;
  3051. l454:; G->pos= yypos454; G->thunkpos= yythunkpos454;
  3052. } goto l451;
  3053. l452:; G->pos= yypos451; G->thunkpos= yythunkpos451;
  3054. { int yypos458= G->pos, yythunkpos458= G->thunkpos; if (!yy_Ticks2(G)) { goto l458; } goto l457;
  3055. l458:; G->pos= yypos458; G->thunkpos= yythunkpos458;
  3056. } if (!yymatchChar(G, '`')) goto l457;
  3057. l459:;
  3058. { int yypos460= G->pos, yythunkpos460= G->thunkpos; if (!yymatchChar(G, '`')) goto l460; goto l459;
  3059. l460:; G->pos= yypos460; G->thunkpos= yythunkpos460;
  3060. } goto l451;
  3061. l457:; G->pos= yypos451; G->thunkpos= yythunkpos451;
  3062. { int yypos461= G->pos, yythunkpos461= G->thunkpos; if (!yy_Sp(G)) { goto l461; } if (!yy_Ticks2(G)) { goto l461; } goto l436;
  3063. l461:; G->pos= yypos461; G->thunkpos= yythunkpos461;
  3064. }
  3065. { int yypos462= G->pos, yythunkpos462= G->thunkpos; if (!yy_Spacechar(G)) { goto l463; } goto l462;
  3066. l463:; G->pos= yypos462; G->thunkpos= yythunkpos462; if (!yy_Newline(G)) { goto l436; }
  3067. { int yypos464= G->pos, yythunkpos464= G->thunkpos; if (!yy_BlankLine(G)) { goto l464; } goto l436;
  3068. l464:; G->pos= yypos464; G->thunkpos= yythunkpos464;
  3069. }
  3070. }
  3071. l462:;
  3072. }
  3073. l451:; goto l435;
  3074. l436:; G->pos= yypos436; G->thunkpos= yythunkpos436;
  3075. } if (!yy_Sp(G)) { goto l434; } if (!yy_Ticks2(G)) { goto l434; } goto l402;
  3076. l434:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks3(G)) { goto l465; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l465; }
  3077. { int yypos468= G->pos, yythunkpos468= G->thunkpos;
  3078. { int yypos472= G->pos, yythunkpos472= G->thunkpos; if (!yymatchChar(G, '`')) goto l472; goto l469;
  3079. l472:; G->pos= yypos472; G->thunkpos= yythunkpos472;
  3080. } if (!yy_Nonspacechar(G)) { goto l469; }
  3081. l470:;
  3082. { int yypos471= G->pos, yythunkpos471= G->thunkpos;
  3083. { int yypos473= G->pos, yythunkpos473= G->thunkpos; if (!yymatchChar(G, '`')) goto l473; goto l471;
  3084. l473:; G->pos= yypos473; G->thunkpos= yythunkpos473;
  3085. } if (!yy_Nonspacechar(G)) { goto l471; } goto l470;
  3086. l471:; G->pos= yypos471; G->thunkpos= yythunkpos471;
  3087. } goto l468;
  3088. l469:; G->pos= yypos468; G->thunkpos= yythunkpos468;
  3089. { int yypos475= G->pos, yythunkpos475= G->thunkpos; if (!yy_Ticks3(G)) { goto l475; } goto l474;
  3090. l475:; G->pos= yypos475; G->thunkpos= yythunkpos475;
  3091. } if (!yymatchChar(G, '`')) goto l474;
  3092. l476:;
  3093. { int yypos477= G->pos, yythunkpos477= G->thunkpos; if (!yymatchChar(G, '`')) goto l477; goto l476;
  3094. l477:; G->pos= yypos477; G->thunkpos= yythunkpos477;
  3095. } goto l468;
  3096. l474:; G->pos= yypos468; G->thunkpos= yythunkpos468;
  3097. { int yypos478= G->pos, yythunkpos478= G->thunkpos; if (!yy_Sp(G)) { goto l478; } if (!yy_Ticks3(G)) { goto l478; } goto l465;
  3098. l478:; G->pos= yypos478; G->thunkpos= yythunkpos478;
  3099. }
  3100. { int yypos479= G->pos, yythunkpos479= G->thunkpos; if (!yy_Spacechar(G)) { goto l480; } goto l479;
  3101. l480:; G->pos= yypos479; G->thunkpos= yythunkpos479; if (!yy_Newline(G)) { goto l465; }
  3102. { int yypos481= G->pos, yythunkpos481= G->thunkpos; if (!yy_BlankLine(G)) { goto l481; } goto l465;
  3103. l481:; G->pos= yypos481; G->thunkpos= yythunkpos481;
  3104. }
  3105. }
  3106. l479:;
  3107. }
  3108. l468:;
  3109. l466:;
  3110. { int yypos467= G->pos, yythunkpos467= G->thunkpos;
  3111. { int yypos482= G->pos, yythunkpos482= G->thunkpos;
  3112. { int yypos486= G->pos, yythunkpos486= G->thunkpos; if (!yymatchChar(G, '`')) goto l486; goto l483;
  3113. l486:; G->pos= yypos486; G->thunkpos= yythunkpos486;
  3114. } if (!yy_Nonspacechar(G)) { goto l483; }
  3115. l484:;
  3116. { int yypos485= G->pos, yythunkpos485= G->thunkpos;
  3117. { int yypos487= G->pos, yythunkpos487= G->thunkpos; if (!yymatchChar(G, '`')) goto l487; goto l485;
  3118. l487:; G->pos= yypos487; G->thunkpos= yythunkpos487;
  3119. } if (!yy_Nonspacechar(G)) { goto l485; } goto l484;
  3120. l485:; G->pos= yypos485; G->thunkpos= yythunkpos485;
  3121. } goto l482;
  3122. l483:; G->pos= yypos482; G->thunkpos= yythunkpos482;
  3123. { int yypos489= G->pos, yythunkpos489= G->thunkpos; if (!yy_Ticks3(G)) { goto l489; } goto l488;
  3124. l489:; G->pos= yypos489; G->thunkpos= yythunkpos489;
  3125. } if (!yymatchChar(G, '`')) goto l488;
  3126. l490:;
  3127. { int yypos491= G->pos, yythunkpos491= G->thunkpos; if (!yymatchChar(G, '`')) goto l491; goto l490;
  3128. l491:; G->pos= yypos491; G->thunkpos= yythunkpos491;
  3129. } goto l482;
  3130. l488:; G->pos= yypos482; G->thunkpos= yythunkpos482;
  3131. { int yypos492= G->pos, yythunkpos492= G->thunkpos; if (!yy_Sp(G)) { goto l492; } if (!yy_Ticks3(G)) { goto l492; } goto l467;
  3132. l492:; G->pos= yypos492; G->thunkpos= yythunkpos492;
  3133. }
  3134. { int yypos493= G->pos, yythunkpos493= G->thunkpos; if (!yy_Spacechar(G)) { goto l494; } goto l493;
  3135. l494:; G->pos= yypos493; G->thunkpos= yythunkpos493; if (!yy_Newline(G)) { goto l467; }
  3136. { int yypos495= G->pos, yythunkpos495= G->thunkpos; if (!yy_BlankLine(G)) { goto l495; } goto l467;
  3137. l495:; G->pos= yypos495; G->thunkpos= yythunkpos495;
  3138. }
  3139. }
  3140. l493:;
  3141. }
  3142. l482:; goto l466;
  3143. l467:; G->pos= yypos467; G->thunkpos= yythunkpos467;
  3144. } if (!yy_Sp(G)) { goto l465; } if (!yy_Ticks3(G)) { goto l465; } goto l402;
  3145. l465:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks4(G)) { goto l496; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l496; }
  3146. { int yypos499= G->pos, yythunkpos499= G->thunkpos;
  3147. { int yypos503= G->pos, yythunkpos503= G->thunkpos; if (!yymatchChar(G, '`')) goto l503; goto l500;
  3148. l503:; G->pos= yypos503; G->thunkpos= yythunkpos503;
  3149. } if (!yy_Nonspacechar(G)) { goto l500; }
  3150. l501:;
  3151. { int yypos502= G->pos, yythunkpos502= G->thunkpos;
  3152. { int yypos504= G->pos, yythunkpos504= G->thunkpos; if (!yymatchChar(G, '`')) goto l504; goto l502;
  3153. l504:; G->pos= yypos504; G->thunkpos= yythunkpos504;
  3154. } if (!yy_Nonspacechar(G)) { goto l502; } goto l501;
  3155. l502:; G->pos= yypos502; G->thunkpos= yythunkpos502;
  3156. } goto l499;
  3157. l500:; G->pos= yypos499; G->thunkpos= yythunkpos499;
  3158. { int yypos506= G->pos, yythunkpos506= G->thunkpos; if (!yy_Ticks4(G)) { goto l506; } goto l505;
  3159. l506:; G->pos= yypos506; G->thunkpos= yythunkpos506;
  3160. } if (!yymatchChar(G, '`')) goto l505;
  3161. l507:;
  3162. { int yypos508= G->pos, yythunkpos508= G->thunkpos; if (!yymatchChar(G, '`')) goto l508; goto l507;
  3163. l508:; G->pos= yypos508; G->thunkpos= yythunkpos508;
  3164. } goto l499;
  3165. l505:; G->pos= yypos499; G->thunkpos= yythunkpos499;
  3166. { int yypos509= G->pos, yythunkpos509= G->thunkpos; if (!yy_Sp(G)) { goto l509; } if (!yy_Ticks4(G)) { goto l509; } goto l496;
  3167. l509:; G->pos= yypos509; G->thunkpos= yythunkpos509;
  3168. }
  3169. { int yypos510= G->pos, yythunkpos510= G->thunkpos; if (!yy_Spacechar(G)) { goto l511; } goto l510;
  3170. l511:; G->pos= yypos510; G->thunkpos= yythunkpos510; if (!yy_Newline(G)) { goto l496; }
  3171. { int yypos512= G->pos, yythunkpos512= G->thunkpos; if (!yy_BlankLine(G)) { goto l512; } goto l496;
  3172. l512:; G->pos= yypos512; G->thunkpos= yythunkpos512;
  3173. }
  3174. }
  3175. l510:;
  3176. }
  3177. l499:;
  3178. l497:;
  3179. { int yypos498= G->pos, yythunkpos498= G->thunkpos;
  3180. { int yypos513= G->pos, yythunkpos513= G->thunkpos;
  3181. { int yypos517= G->pos, yythunkpos517= G->thunkpos; if (!yymatchChar(G, '`')) goto l517; goto l514;
  3182. l517:; G->pos= yypos517; G->thunkpos= yythunkpos517;
  3183. } if (!yy_Nonspacechar(G)) { goto l514; }
  3184. l515:;
  3185. { int yypos516= G->pos, yythunkpos516= G->thunkpos;
  3186. { int yypos518= G->pos, yythunkpos518= G->thunkpos; if (!yymatchChar(G, '`')) goto l518; goto l516;
  3187. l518:; G->pos= yypos518; G->thunkpos= yythunkpos518;
  3188. } if (!yy_Nonspacechar(G)) { goto l516; } goto l515;
  3189. l516:; G->pos= yypos516; G->thunkpos= yythunkpos516;
  3190. } goto l513;
  3191. l514:; G->pos= yypos513; G->thunkpos= yythunkpos513;
  3192. { int yypos520= G->pos, yythunkpos520= G->thunkpos; if (!yy_Ticks4(G)) { goto l520; } goto l519;
  3193. l520:; G->pos= yypos520; G->thunkpos= yythunkpos520;
  3194. } if (!yymatchChar(G, '`')) goto l519;
  3195. l521:;
  3196. { int yypos522= G->pos, yythunkpos522= G->thunkpos; if (!yymatchChar(G, '`')) goto l522; goto l521;
  3197. l522:; G->pos= yypos522; G->thunkpos= yythunkpos522;
  3198. } goto l513;
  3199. l519:; G->pos= yypos513; G->thunkpos= yythunkpos513;
  3200. { int yypos523= G->pos, yythunkpos523= G->thunkpos; if (!yy_Sp(G)) { goto l523; } if (!yy_Ticks4(G)) { goto l523; } goto l498;
  3201. l523:; G->pos= yypos523; G->thunkpos= yythunkpos523;
  3202. }
  3203. { int yypos524= G->pos, yythunkpos524= G->thunkpos; if (!yy_Spacechar(G)) { goto l525; } goto l524;
  3204. l525:; G->pos= yypos524; G->thunkpos= yythunkpos524; if (!yy_Newline(G)) { goto l498; }
  3205. { int yypos526= G->pos, yythunkpos526= G->thunkpos; if (!yy_BlankLine(G)) { goto l526; } goto l498;
  3206. l526:; G->pos= yypos526; G->thunkpos= yythunkpos526;
  3207. }
  3208. }
  3209. l524:;
  3210. }
  3211. l513:; goto l497;
  3212. l498:; G->pos= yypos498; G->thunkpos= yythunkpos498;
  3213. } if (!yy_Sp(G)) { goto l496; } if (!yy_Ticks4(G)) { goto l496; } goto l402;
  3214. l496:; G->pos= yypos402; G->thunkpos= yythunkpos402; if (!yy_Ticks5(G)) { goto l401; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l401; }
  3215. { int yypos529= G->pos, yythunkpos529= G->thunkpos;
  3216. { int yypos533= G->pos, yythunkpos533= G->thunkpos; if (!yymatchChar(G, '`')) goto l533; goto l530;
  3217. l533:; G->pos= yypos533; G->thunkpos= yythunkpos533;
  3218. } if (!yy_Nonspacechar(G)) { goto l530; }
  3219. l531:;
  3220. { int yypos532= G->pos, yythunkpos532= G->thunkpos;
  3221. { int yypos534= G->pos, yythunkpos534= G->thunkpos; if (!yymatchChar(G, '`')) goto l534; goto l532;
  3222. l534:; G->pos= yypos534; G->thunkpos= yythunkpos534;
  3223. } if (!yy_Nonspacechar(G)) { goto l532; } goto l531;
  3224. l532:; G->pos= yypos532; G->thunkpos= yythunkpos532;
  3225. } goto l529;
  3226. l530:; G->pos= yypos529; G->thunkpos= yythunkpos529;
  3227. { int yypos536= G->pos, yythunkpos536= G->thunkpos; if (!yy_Ticks5(G)) { goto l536; } goto l535;
  3228. l536:; G->pos= yypos536; G->thunkpos= yythunkpos536;
  3229. } if (!yymatchChar(G, '`')) goto l535;
  3230. l537:;
  3231. { int yypos538= G->pos, yythunkpos538= G->thunkpos; if (!yymatchChar(G, '`')) goto l538; goto l537;
  3232. l538:; G->pos= yypos538; G->thunkpos= yythunkpos538;
  3233. } goto l529;
  3234. l535:; G->pos= yypos529; G->thunkpos= yythunkpos529;
  3235. { int yypos539= G->pos, yythunkpos539= G->thunkpos; if (!yy_Sp(G)) { goto l539; } if (!yy_Ticks5(G)) { goto l539; } goto l401;
  3236. l539:; G->pos= yypos539; G->thunkpos= yythunkpos539;
  3237. }
  3238. { int yypos540= G->pos, yythunkpos540= G->thunkpos; if (!yy_Spacechar(G)) { goto l541; } goto l540;
  3239. l541:; G->pos= yypos540; G->thunkpos= yythunkpos540; if (!yy_Newline(G)) { goto l401; }
  3240. { int yypos542= G->pos, yythunkpos542= G->thunkpos; if (!yy_BlankLine(G)) { goto l542; } goto l401;
  3241. l542:; G->pos= yypos542; G->thunkpos= yythunkpos542;
  3242. }
  3243. }
  3244. l540:;
  3245. }
  3246. l529:;
  3247. l527:;
  3248. { int yypos528= G->pos, yythunkpos528= G->thunkpos;
  3249. { int yypos543= G->pos, yythunkpos543= G->thunkpos;
  3250. { int yypos547= G->pos, yythunkpos547= G->thunkpos; if (!yymatchChar(G, '`')) goto l547; goto l544;
  3251. l547:; G->pos= yypos547; G->thunkpos= yythunkpos547;
  3252. } if (!yy_Nonspacechar(G)) { goto l544; }
  3253. l545:;
  3254. { int yypos546= G->pos, yythunkpos546= G->thunkpos;
  3255. { int yypos548= G->pos, yythunkpos548= G->thunkpos; if (!yymatchChar(G, '`')) goto l548; goto l546;
  3256. l548:; G->pos= yypos548; G->thunkpos= yythunkpos548;
  3257. } if (!yy_Nonspacechar(G)) { goto l546; } goto l545;
  3258. l546:; G->pos= yypos546; G->thunkpos= yythunkpos546;
  3259. } goto l543;
  3260. l544:; G->pos= yypos543; G->thunkpos= yythunkpos543;
  3261. { int yypos550= G->pos, yythunkpos550= G->thunkpos; if (!yy_Ticks5(G)) { goto l550; } goto l549;
  3262. l550:; G->pos= yypos550; G->thunkpos= yythunkpos550;
  3263. } if (!yymatchChar(G, '`')) goto l549;
  3264. l551:;
  3265. { int yypos552= G->pos, yythunkpos552= G->thunkpos; if (!yymatchChar(G, '`')) goto l552; goto l551;
  3266. l552:; G->pos= yypos552; G->thunkpos= yythunkpos552;
  3267. } goto l543;
  3268. l549:; G->pos= yypos543; G->thunkpos= yythunkpos543;
  3269. { int yypos553= G->pos, yythunkpos553= G->thunkpos; if (!yy_Sp(G)) { goto l553; } if (!yy_Ticks5(G)) { goto l553; } goto l528;
  3270. l553:; G->pos= yypos553; G->thunkpos= yythunkpos553;
  3271. }
  3272. { int yypos554= G->pos, yythunkpos554= G->thunkpos; if (!yy_Spacechar(G)) { goto l555; } goto l554;
  3273. l555:; G->pos= yypos554; G->thunkpos= yythunkpos554; if (!yy_Newline(G)) { goto l528; }
  3274. { int yypos556= G->pos, yythunkpos556= G->thunkpos; if (!yy_BlankLine(G)) { goto l556; } goto l528;
  3275. l556:; G->pos= yypos556; G->thunkpos= yythunkpos556;
  3276. }
  3277. }
  3278. l554:;
  3279. }
  3280. l543:; goto l527;
  3281. l528:; G->pos= yypos528; G->thunkpos= yythunkpos528;
  3282. } if (!yy_Sp(G)) { goto l401; } if (!yy_Ticks5(G)) { goto l401; }
  3283. }
  3284. l402:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l401; yyDo(G, yy_1_Code, G->begin, G->end);
  3285. yyprintf((stderr, " ok %s @ %s\n", "Code", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3286. return 1;
  3287. l401:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3288. yyprintf((stderr, " fail %s @ %s\n", "Code", G->buf+G->pos));
  3289. return 0;
  3290. }
  3291. YY_RULE(int) yy_InlineNote(GREG *G)
  3292. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3293. yyprintf((stderr, "%s\n", "InlineNote")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l557; if (!yymatchString(G, "^[")) goto l557;
  3294. { int yypos560= G->pos, yythunkpos560= G->thunkpos; if (!yymatchChar(G, ']')) goto l560; goto l557;
  3295. l560:; G->pos= yypos560; G->thunkpos= yythunkpos560;
  3296. } if (!yy_Inline(G)) { goto l557; }
  3297. l558:;
  3298. { int yypos559= G->pos, yythunkpos559= G->thunkpos;
  3299. { int yypos561= G->pos, yythunkpos561= G->thunkpos; if (!yymatchChar(G, ']')) goto l561; goto l559;
  3300. l561:; G->pos= yypos561; G->thunkpos= yythunkpos561;
  3301. } if (!yy_Inline(G)) { goto l559; } goto l558;
  3302. l559:; G->pos= yypos559; G->thunkpos= yythunkpos559;
  3303. } if (!yymatchChar(G, ']')) goto l557;
  3304. yyprintf((stderr, " ok %s @ %s\n", "InlineNote", G->buf+G->pos));
  3305. return 1;
  3306. l557:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3307. yyprintf((stderr, " fail %s @ %s\n", "InlineNote", G->buf+G->pos));
  3308. return 0;
  3309. }
  3310. YY_RULE(int) yy_NoteReference(GREG *G)
  3311. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3312. yyprintf((stderr, "%s\n", "NoteReference")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l562; if (!yy_RawNoteReference(G)) { goto l562; }
  3313. yyprintf((stderr, " ok %s @ %s\n", "NoteReference", G->buf+G->pos));
  3314. return 1;
  3315. l562:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3316. yyprintf((stderr, " fail %s @ %s\n", "NoteReference", G->buf+G->pos));
  3317. return 0;
  3318. }
  3319. YY_RULE(int) yy_Link(GREG *G)
  3320. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3321. yyprintf((stderr, "%s\n", "Link"));
  3322. { int yypos564= G->pos, yythunkpos564= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l565; } goto l564;
  3323. l565:; G->pos= yypos564; G->thunkpos= yythunkpos564; if (!yy_ReferenceLink(G)) { goto l566; } goto l564;
  3324. l566:; G->pos= yypos564; G->thunkpos= yythunkpos564; if (!yy_AutoLink(G)) { goto l563; }
  3325. }
  3326. l564:; yyDo(G, yy_1_Link, G->begin, G->end);
  3327. yyprintf((stderr, " ok %s @ %s\n", "Link", G->buf+G->pos));
  3328. return 1;
  3329. l563:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3330. yyprintf((stderr, " fail %s @ %s\n", "Link", G->buf+G->pos));
  3331. return 0;
  3332. }
  3333. YY_RULE(int) yy_Image(GREG *G)
  3334. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3335. yyprintf((stderr, "%s\n", "Image")); if (!yymatchChar(G, '!')) goto l567;
  3336. { int yypos568= G->pos, yythunkpos568= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l569; } goto l568;
  3337. l569:; G->pos= yypos568; G->thunkpos= yythunkpos568; if (!yy_ReferenceLink(G)) { goto l567; }
  3338. }
  3339. l568:; yyDo(G, yy_1_Image, G->begin, G->end);
  3340. yyprintf((stderr, " ok %s @ %s\n", "Image", G->buf+G->pos));
  3341. return 1;
  3342. l567:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3343. yyprintf((stderr, " fail %s @ %s\n", "Image", G->buf+G->pos));
  3344. return 0;
  3345. }
  3346. YY_RULE(int) yy_Strike(GREG *G)
  3347. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3348. yyprintf((stderr, "%s\n", "Strike")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_STRIKE) )) goto l570; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l570; if (!yy_LocMarker(G)) { goto l570; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "~~")) goto l570;
  3349. { int yypos571= G->pos, yythunkpos571= G->thunkpos; if (!yy_Whitespace(G)) { goto l571; } goto l570;
  3350. l571:; G->pos= yypos571; G->thunkpos= yythunkpos571;
  3351. }
  3352. { int yypos574= G->pos, yythunkpos574= G->thunkpos; if (!yymatchString(G, "~~")) goto l574; goto l570;
  3353. l574:; G->pos= yypos574; G->thunkpos= yythunkpos574;
  3354. } if (!yy_Inline(G)) { goto l570; }
  3355. l572:;
  3356. { int yypos573= G->pos, yythunkpos573= G->thunkpos;
  3357. { int yypos575= G->pos, yythunkpos575= G->thunkpos; if (!yymatchString(G, "~~")) goto l575; goto l573;
  3358. l575:; G->pos= yypos575; G->thunkpos= yythunkpos575;
  3359. } if (!yy_Inline(G)) { goto l573; } goto l572;
  3360. l573:; G->pos= yypos573; G->thunkpos= yythunkpos573;
  3361. } if (!yymatchString(G, "~~")) goto l570; yyText(G, G->begin, G->end); if (!(YY_END)) goto l570; yyDo(G, yy_1_Strike, G->begin, G->end);
  3362. yyprintf((stderr, " ok %s @ %s\n", "Strike", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3363. return 1;
  3364. l570:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3365. yyprintf((stderr, " fail %s @ %s\n", "Strike", G->buf+G->pos));
  3366. return 0;
  3367. }
  3368. YY_RULE(int) yy_Emph(GREG *G)
  3369. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3370. yyprintf((stderr, "%s\n", "Emph"));
  3371. { int yypos577= G->pos, yythunkpos577= G->thunkpos; if (!yy_EmphStar(G)) { goto l578; } goto l577;
  3372. l578:; G->pos= yypos577; G->thunkpos= yythunkpos577; if (!yy_EmphUl(G)) { goto l576; }
  3373. }
  3374. l577:;
  3375. yyprintf((stderr, " ok %s @ %s\n", "Emph", G->buf+G->pos));
  3376. return 1;
  3377. l576:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3378. yyprintf((stderr, " fail %s @ %s\n", "Emph", G->buf+G->pos));
  3379. return 0;
  3380. }
  3381. YY_RULE(int) yy_Strong(GREG *G)
  3382. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3383. yyprintf((stderr, "%s\n", "Strong"));
  3384. { int yypos580= G->pos, yythunkpos580= G->thunkpos; if (!yy_StrongStar(G)) { goto l581; } goto l580;
  3385. l581:; G->pos= yypos580; G->thunkpos= yythunkpos580; if (!yy_StrongUl(G)) { goto l579; }
  3386. }
  3387. l580:;
  3388. yyprintf((stderr, " ok %s @ %s\n", "Strong", G->buf+G->pos));
  3389. return 1;
  3390. l579:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3391. yyprintf((stderr, " fail %s @ %s\n", "Strong", G->buf+G->pos));
  3392. return 0;
  3393. }
  3394. YY_RULE(int) yy_UlOrStarLine(GREG *G)
  3395. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3396. yyprintf((stderr, "%s\n", "UlOrStarLine"));
  3397. { int yypos583= G->pos, yythunkpos583= G->thunkpos; if (!yy_UlLine(G)) { goto l584; } goto l583;
  3398. l584:; G->pos= yypos583; G->thunkpos= yythunkpos583; if (!yy_StarLine(G)) { goto l582; }
  3399. }
  3400. l583:;
  3401. yyprintf((stderr, " ok %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3402. return 1;
  3403. l582:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3404. yyprintf((stderr, " fail %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
  3405. return 0;
  3406. }
  3407. YY_RULE(int) yy_Str(GREG *G)
  3408. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3409. yyprintf((stderr, "%s\n", "Str")); if (!yy_NormalChar(G)) { goto l585; }
  3410. l586:;
  3411. { int yypos587= G->pos, yythunkpos587= G->thunkpos;
  3412. { int yypos588= G->pos, yythunkpos588= G->thunkpos; if (!yy_NormalChar(G)) { goto l589; } goto l588;
  3413. l589:; G->pos= yypos588; G->thunkpos= yythunkpos588; if (!yymatchChar(G, '_')) goto l587;
  3414. l590:;
  3415. { int yypos591= G->pos, yythunkpos591= G->thunkpos; if (!yymatchChar(G, '_')) goto l591; goto l590;
  3416. l591:; G->pos= yypos591; G->thunkpos= yythunkpos591;
  3417. }
  3418. { int yypos592= G->pos, yythunkpos592= G->thunkpos; if (!yy_Alphanumeric(G)) { goto l587; } G->pos= yypos592; G->thunkpos= yythunkpos592;
  3419. }
  3420. }
  3421. l588:; goto l586;
  3422. l587:; G->pos= yypos587; G->thunkpos= yythunkpos587;
  3423. }
  3424. yyprintf((stderr, " ok %s @ %s\n", "Str", G->buf+G->pos));
  3425. return 1;
  3426. l585:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3427. yyprintf((stderr, " fail %s @ %s\n", "Str", G->buf+G->pos));
  3428. return 0;
  3429. }
  3430. YY_RULE(int) yy_InStyleTags(GREG *G)
  3431. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3432. yyprintf((stderr, "%s\n", "InStyleTags")); if (!yy_StyleOpen(G)) { goto l593; }
  3433. l594:;
  3434. { int yypos595= G->pos, yythunkpos595= G->thunkpos;
  3435. { int yypos596= G->pos, yythunkpos596= G->thunkpos; if (!yy_StyleClose(G)) { goto l596; } goto l595;
  3436. l596:; G->pos= yypos596; G->thunkpos= yythunkpos596;
  3437. } if (!yymatchDot(G)) goto l595; goto l594;
  3438. l595:; G->pos= yypos595; G->thunkpos= yythunkpos595;
  3439. } if (!yy_StyleClose(G)) { goto l593; }
  3440. yyprintf((stderr, " ok %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3441. return 1;
  3442. l593:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3443. yyprintf((stderr, " fail %s @ %s\n", "InStyleTags", G->buf+G->pos));
  3444. return 0;
  3445. }
  3446. YY_RULE(int) yy_StyleClose(GREG *G)
  3447. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3448. yyprintf((stderr, "%s\n", "StyleClose")); if (!yymatchChar(G, '<')) goto l597; if (!yy_Spnl(G)) { goto l597; } if (!yymatchChar(G, '/')) goto l597;
  3449. { int yypos598= G->pos, yythunkpos598= G->thunkpos; if (!yymatchString(G, "style")) goto l599; goto l598;
  3450. l599:; G->pos= yypos598; G->thunkpos= yythunkpos598; if (!yymatchString(G, "STYLE")) goto l597;
  3451. }
  3452. l598:; if (!yy_Spnl(G)) { goto l597; } if (!yymatchChar(G, '>')) goto l597;
  3453. yyprintf((stderr, " ok %s @ %s\n", "StyleClose", G->buf+G->pos));
  3454. return 1;
  3455. l597:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3456. yyprintf((stderr, " fail %s @ %s\n", "StyleClose", G->buf+G->pos));
  3457. return 0;
  3458. }
  3459. YY_RULE(int) yy_StyleOpen(GREG *G)
  3460. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3461. yyprintf((stderr, "%s\n", "StyleOpen")); if (!yymatchChar(G, '<')) goto l600; if (!yy_Spnl(G)) { goto l600; }
  3462. { int yypos601= G->pos, yythunkpos601= G->thunkpos; if (!yymatchString(G, "style")) goto l602; goto l601;
  3463. l602:; G->pos= yypos601; G->thunkpos= yythunkpos601; if (!yymatchString(G, "STYLE")) goto l600;
  3464. }
  3465. l601:; if (!yy_Spnl(G)) { goto l600; }
  3466. l603:;
  3467. { int yypos604= G->pos, yythunkpos604= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l604; } goto l603;
  3468. l604:; G->pos= yypos604; G->thunkpos= yythunkpos604;
  3469. } if (!yymatchChar(G, '>')) goto l600;
  3470. yyprintf((stderr, " ok %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3471. return 1;
  3472. l600:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3473. yyprintf((stderr, " fail %s @ %s\n", "StyleOpen", G->buf+G->pos));
  3474. return 0;
  3475. }
  3476. YY_RULE(int) yy_HtmlBlockType(GREG *G)
  3477. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3478. yyprintf((stderr, "%s\n", "HtmlBlockType"));
  3479. { int yypos606= G->pos, yythunkpos606= G->thunkpos; if (!yymatchString(G, "address")) goto l607; goto l606;
  3480. l607:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "blockquote")) goto l608; goto l606;
  3481. l608:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "center")) goto l609; goto l606;
  3482. l609:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "dir")) goto l610; goto l606;
  3483. l610:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "div")) goto l611; goto l606;
  3484. l611:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "dl")) goto l612; goto l606;
  3485. l612:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "fieldset")) goto l613; goto l606;
  3486. l613:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "form")) goto l614; goto l606;
  3487. l614:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "h1")) goto l615; goto l606;
  3488. l615:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "h2")) goto l616; goto l606;
  3489. l616:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "h3")) goto l617; goto l606;
  3490. l617:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "h4")) goto l618; goto l606;
  3491. l618:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "h5")) goto l619; goto l606;
  3492. l619:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "h6")) goto l620; goto l606;
  3493. l620:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "hr")) goto l621; goto l606;
  3494. l621:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "isindex")) goto l622; goto l606;
  3495. l622:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "menu")) goto l623; goto l606;
  3496. l623:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "noframes")) goto l624; goto l606;
  3497. l624:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "noscript")) goto l625; goto l606;
  3498. l625:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "ol")) goto l626; goto l606;
  3499. l626:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchChar(G, 'p')) goto l627; goto l606;
  3500. l627:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "pre")) goto l628; goto l606;
  3501. l628:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "table")) goto l629; goto l606;
  3502. l629:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "ul")) goto l630; goto l606;
  3503. l630:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "dd")) goto l631; goto l606;
  3504. l631:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "dt")) goto l632; goto l606;
  3505. l632:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "frameset")) goto l633; goto l606;
  3506. l633:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "li")) goto l634; goto l606;
  3507. l634:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "tbody")) goto l635; goto l606;
  3508. l635:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "td")) goto l636; goto l606;
  3509. l636:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "tfoot")) goto l637; goto l606;
  3510. l637:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "th")) goto l638; goto l606;
  3511. l638:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "thead")) goto l639; goto l606;
  3512. l639:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "tr")) goto l640; goto l606;
  3513. l640:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "script")) goto l641; goto l606;
  3514. l641:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "ADDRESS")) goto l642; goto l606;
  3515. l642:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "BLOCKQUOTE")) goto l643; goto l606;
  3516. l643:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "CENTER")) goto l644; goto l606;
  3517. l644:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "DIR")) goto l645; goto l606;
  3518. l645:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "DIV")) goto l646; goto l606;
  3519. l646:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "DL")) goto l647; goto l606;
  3520. l647:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "FIELDSET")) goto l648; goto l606;
  3521. l648:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "FORM")) goto l649; goto l606;
  3522. l649:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "H1")) goto l650; goto l606;
  3523. l650:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "H2")) goto l651; goto l606;
  3524. l651:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "H3")) goto l652; goto l606;
  3525. l652:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "H4")) goto l653; goto l606;
  3526. l653:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "H5")) goto l654; goto l606;
  3527. l654:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "H6")) goto l655; goto l606;
  3528. l655:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "HR")) goto l656; goto l606;
  3529. l656:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "ISINDEX")) goto l657; goto l606;
  3530. l657:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "MENU")) goto l658; goto l606;
  3531. l658:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "NOFRAMES")) goto l659; goto l606;
  3532. l659:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "NOSCRIPT")) goto l660; goto l606;
  3533. l660:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "OL")) goto l661; goto l606;
  3534. l661:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchChar(G, 'P')) goto l662; goto l606;
  3535. l662:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "PRE")) goto l663; goto l606;
  3536. l663:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "TABLE")) goto l664; goto l606;
  3537. l664:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "UL")) goto l665; goto l606;
  3538. l665:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "DD")) goto l666; goto l606;
  3539. l666:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "DT")) goto l667; goto l606;
  3540. l667:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "FRAMESET")) goto l668; goto l606;
  3541. l668:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "LI")) goto l669; goto l606;
  3542. l669:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "TBODY")) goto l670; goto l606;
  3543. l670:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "TD")) goto l671; goto l606;
  3544. l671:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "TFOOT")) goto l672; goto l606;
  3545. l672:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "TH")) goto l673; goto l606;
  3546. l673:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "THEAD")) goto l674; goto l606;
  3547. l674:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "TR")) goto l675; goto l606;
  3548. l675:; G->pos= yypos606; G->thunkpos= yythunkpos606; if (!yymatchString(G, "SCRIPT")) goto l605;
  3549. }
  3550. l606:;
  3551. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3552. return 1;
  3553. l605:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3554. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
  3555. return 0;
  3556. }
  3557. YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G)
  3558. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3559. yyprintf((stderr, "%s\n", "HtmlBlockSelfClosing")); if (!yymatchChar(G, '<')) goto l676; if (!yy_Spnl(G)) { goto l676; } if (!yy_HtmlBlockType(G)) { goto l676; } if (!yy_Spnl(G)) { goto l676; }
  3560. l677:;
  3561. { int yypos678= G->pos, yythunkpos678= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l678; } goto l677;
  3562. l678:; G->pos= yypos678; G->thunkpos= yythunkpos678;
  3563. } if (!yymatchChar(G, '/')) goto l676; if (!yy_Spnl(G)) { goto l676; } if (!yymatchChar(G, '>')) goto l676;
  3564. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3565. return 1;
  3566. l676:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3567. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
  3568. return 0;
  3569. }
  3570. YY_RULE(int) yy_HtmlComment(GREG *G)
  3571. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  3572. yyprintf((stderr, "%s\n", "HtmlComment")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l679; if (!yy_LocMarker(G)) { goto l679; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "<!--")) goto l679;
  3573. l680:;
  3574. { int yypos681= G->pos, yythunkpos681= G->thunkpos;
  3575. { int yypos682= G->pos, yythunkpos682= G->thunkpos; if (!yymatchString(G, "-->")) goto l682; goto l681;
  3576. l682:; G->pos= yypos682; G->thunkpos= yythunkpos682;
  3577. } if (!yymatchDot(G)) goto l681; goto l680;
  3578. l681:; G->pos= yypos681; G->thunkpos= yythunkpos681;
  3579. } if (!yymatchString(G, "-->")) goto l679; yyText(G, G->begin, G->end); if (!(YY_END)) goto l679; yyDo(G, yy_1_HtmlComment, G->begin, G->end);
  3580. yyprintf((stderr, " ok %s @ %s\n", "HtmlComment", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  3581. return 1;
  3582. l679:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3583. yyprintf((stderr, " fail %s @ %s\n", "HtmlComment", G->buf+G->pos));
  3584. return 0;
  3585. }
  3586. YY_RULE(int) yy_HtmlBlockInTags(GREG *G)
  3587. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3588. yyprintf((stderr, "%s\n", "HtmlBlockInTags"));
  3589. { int yypos684= G->pos, yythunkpos684= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l685; } goto l684;
  3590. l685:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockBlockquote(G)) { goto l686; } goto l684;
  3591. l686:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockCenter(G)) { goto l687; } goto l684;
  3592. l687:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockDir(G)) { goto l688; } goto l684;
  3593. l688:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockDiv(G)) { goto l689; } goto l684;
  3594. l689:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockDl(G)) { goto l690; } goto l684;
  3595. l690:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockFieldset(G)) { goto l691; } goto l684;
  3596. l691:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockForm(G)) { goto l692; } goto l684;
  3597. l692:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockH1(G)) { goto l693; } goto l684;
  3598. l693:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockH2(G)) { goto l694; } goto l684;
  3599. l694:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockH3(G)) { goto l695; } goto l684;
  3600. l695:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockH4(G)) { goto l696; } goto l684;
  3601. l696:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockH5(G)) { goto l697; } goto l684;
  3602. l697:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockH6(G)) { goto l698; } goto l684;
  3603. l698:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockMenu(G)) { goto l699; } goto l684;
  3604. l699:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockNoframes(G)) { goto l700; } goto l684;
  3605. l700:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockNoscript(G)) { goto l701; } goto l684;
  3606. l701:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockOl(G)) { goto l702; } goto l684;
  3607. l702:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockP(G)) { goto l703; } goto l684;
  3608. l703:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockPre(G)) { goto l704; } goto l684;
  3609. l704:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockTable(G)) { goto l705; } goto l684;
  3610. l705:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockUl(G)) { goto l706; } goto l684;
  3611. l706:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockDd(G)) { goto l707; } goto l684;
  3612. l707:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockDt(G)) { goto l708; } goto l684;
  3613. l708:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockFrameset(G)) { goto l709; } goto l684;
  3614. l709:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockLi(G)) { goto l710; } goto l684;
  3615. l710:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockTbody(G)) { goto l711; } goto l684;
  3616. l711:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockTd(G)) { goto l712; } goto l684;
  3617. l712:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockTfoot(G)) { goto l713; } goto l684;
  3618. l713:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockTh(G)) { goto l714; } goto l684;
  3619. l714:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockThead(G)) { goto l715; } goto l684;
  3620. l715:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockTr(G)) { goto l716; } goto l684;
  3621. l716:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockScript(G)) { goto l717; } goto l684;
  3622. l717:; G->pos= yypos684; G->thunkpos= yythunkpos684; if (!yy_HtmlBlockHead(G)) { goto l683; }
  3623. }
  3624. l684:;
  3625. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3626. return 1;
  3627. l683:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3628. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
  3629. return 0;
  3630. }
  3631. YY_RULE(int) yy_HtmlBlockHead(GREG *G)
  3632. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3633. yyprintf((stderr, "%s\n", "HtmlBlockHead")); if (!yy_HtmlBlockOpenHead(G)) { goto l718; }
  3634. l719:;
  3635. { int yypos720= G->pos, yythunkpos720= G->thunkpos;
  3636. { int yypos721= G->pos, yythunkpos721= G->thunkpos; if (!yy_HtmlBlockCloseHead(G)) { goto l721; } goto l720;
  3637. l721:; G->pos= yypos721; G->thunkpos= yythunkpos721;
  3638. } if (!yymatchDot(G)) goto l720; goto l719;
  3639. l720:; G->pos= yypos720; G->thunkpos= yythunkpos720;
  3640. } if (!yy_HtmlBlockCloseHead(G)) { goto l718; }
  3641. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3642. return 1;
  3643. l718:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3644. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
  3645. return 0;
  3646. }
  3647. YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G)
  3648. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3649. yyprintf((stderr, "%s\n", "HtmlBlockCloseHead")); if (!yymatchChar(G, '<')) goto l722; if (!yy_Spnl(G)) { goto l722; } if (!yymatchChar(G, '/')) goto l722;
  3650. { int yypos723= G->pos, yythunkpos723= G->thunkpos; if (!yymatchString(G, "head")) goto l724; goto l723;
  3651. l724:; G->pos= yypos723; G->thunkpos= yythunkpos723; if (!yymatchString(G, "HEAD")) goto l722;
  3652. }
  3653. l723:; if (!yy_Spnl(G)) { goto l722; } if (!yymatchChar(G, '>')) goto l722;
  3654. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3655. return 1;
  3656. l722:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3657. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
  3658. return 0;
  3659. }
  3660. YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G)
  3661. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3662. yyprintf((stderr, "%s\n", "HtmlBlockOpenHead")); if (!yymatchChar(G, '<')) goto l725; if (!yy_Spnl(G)) { goto l725; }
  3663. { int yypos726= G->pos, yythunkpos726= G->thunkpos; if (!yymatchString(G, "head")) goto l727; goto l726;
  3664. l727:; G->pos= yypos726; G->thunkpos= yythunkpos726; if (!yymatchString(G, "HEAD")) goto l725;
  3665. }
  3666. l726:; if (!yy_Spnl(G)) { goto l725; }
  3667. l728:;
  3668. { int yypos729= G->pos, yythunkpos729= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l729; } goto l728;
  3669. l729:; G->pos= yypos729; G->thunkpos= yythunkpos729;
  3670. } if (!yymatchChar(G, '>')) goto l725;
  3671. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3672. return 1;
  3673. l725:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3674. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
  3675. return 0;
  3676. }
  3677. YY_RULE(int) yy_HtmlBlockScript(GREG *G)
  3678. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3679. yyprintf((stderr, "%s\n", "HtmlBlockScript")); if (!yy_HtmlBlockOpenScript(G)) { goto l730; }
  3680. l731:;
  3681. { int yypos732= G->pos, yythunkpos732= G->thunkpos;
  3682. { int yypos733= G->pos, yythunkpos733= G->thunkpos; if (!yy_HtmlBlockCloseScript(G)) { goto l733; } goto l732;
  3683. l733:; G->pos= yypos733; G->thunkpos= yythunkpos733;
  3684. } if (!yymatchDot(G)) goto l732; goto l731;
  3685. l732:; G->pos= yypos732; G->thunkpos= yythunkpos732;
  3686. } if (!yy_HtmlBlockCloseScript(G)) { goto l730; }
  3687. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  3688. return 1;
  3689. l730:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3690. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
  3691. return 0;
  3692. }
  3693. YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G)
  3694. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3695. yyprintf((stderr, "%s\n", "HtmlBlockCloseScript")); if (!yymatchChar(G, '<')) goto l734; if (!yy_Spnl(G)) { goto l734; } if (!yymatchChar(G, '/')) goto l734;
  3696. { int yypos735= G->pos, yythunkpos735= G->thunkpos; if (!yymatchString(G, "script")) goto l736; goto l735;
  3697. l736:; G->pos= yypos735; G->thunkpos= yythunkpos735; if (!yymatchString(G, "SCRIPT")) goto l734;
  3698. }
  3699. l735:; if (!yy_Spnl(G)) { goto l734; } if (!yymatchChar(G, '>')) goto l734;
  3700. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  3701. return 1;
  3702. l734:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3703. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
  3704. return 0;
  3705. }
  3706. YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G)
  3707. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3708. yyprintf((stderr, "%s\n", "HtmlBlockOpenScript")); if (!yymatchChar(G, '<')) goto l737; if (!yy_Spnl(G)) { goto l737; }
  3709. { int yypos738= G->pos, yythunkpos738= G->thunkpos; if (!yymatchString(G, "script")) goto l739; goto l738;
  3710. l739:; G->pos= yypos738; G->thunkpos= yythunkpos738; if (!yymatchString(G, "SCRIPT")) goto l737;
  3711. }
  3712. l738:; if (!yy_Spnl(G)) { goto l737; }
  3713. l740:;
  3714. { int yypos741= G->pos, yythunkpos741= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l741; } goto l740;
  3715. l741:; G->pos= yypos741; G->thunkpos= yythunkpos741;
  3716. } if (!yymatchChar(G, '>')) goto l737;
  3717. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  3718. return 1;
  3719. l737:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3720. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
  3721. return 0;
  3722. }
  3723. YY_RULE(int) yy_HtmlBlockTr(GREG *G)
  3724. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3725. yyprintf((stderr, "%s\n", "HtmlBlockTr")); if (!yy_HtmlBlockOpenTr(G)) { goto l742; }
  3726. l743:;
  3727. { int yypos744= G->pos, yythunkpos744= G->thunkpos;
  3728. { int yypos745= G->pos, yythunkpos745= G->thunkpos; if (!yy_HtmlBlockTr(G)) { goto l746; } goto l745;
  3729. l746:; G->pos= yypos745; G->thunkpos= yythunkpos745;
  3730. { int yypos747= G->pos, yythunkpos747= G->thunkpos; if (!yy_HtmlBlockCloseTr(G)) { goto l747; } goto l744;
  3731. l747:; G->pos= yypos747; G->thunkpos= yythunkpos747;
  3732. } if (!yymatchDot(G)) goto l744;
  3733. }
  3734. l745:; goto l743;
  3735. l744:; G->pos= yypos744; G->thunkpos= yythunkpos744;
  3736. } if (!yy_HtmlBlockCloseTr(G)) { goto l742; }
  3737. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  3738. return 1;
  3739. l742:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3740. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
  3741. return 0;
  3742. }
  3743. YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G)
  3744. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3745. yyprintf((stderr, "%s\n", "HtmlBlockCloseTr")); if (!yymatchChar(G, '<')) goto l748; if (!yy_Spnl(G)) { goto l748; } if (!yymatchChar(G, '/')) goto l748;
  3746. { int yypos749= G->pos, yythunkpos749= G->thunkpos; if (!yymatchString(G, "tr")) goto l750; goto l749;
  3747. l750:; G->pos= yypos749; G->thunkpos= yythunkpos749; if (!yymatchString(G, "TR")) goto l748;
  3748. }
  3749. l749:; if (!yy_Spnl(G)) { goto l748; } if (!yymatchChar(G, '>')) goto l748;
  3750. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  3751. return 1;
  3752. l748:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3753. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
  3754. return 0;
  3755. }
  3756. YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G)
  3757. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3758. yyprintf((stderr, "%s\n", "HtmlBlockOpenTr")); if (!yymatchChar(G, '<')) goto l751; if (!yy_Spnl(G)) { goto l751; }
  3759. { int yypos752= G->pos, yythunkpos752= G->thunkpos; if (!yymatchString(G, "tr")) goto l753; goto l752;
  3760. l753:; G->pos= yypos752; G->thunkpos= yythunkpos752; if (!yymatchString(G, "TR")) goto l751;
  3761. }
  3762. l752:; if (!yy_Spnl(G)) { goto l751; }
  3763. l754:;
  3764. { int yypos755= G->pos, yythunkpos755= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l755; } goto l754;
  3765. l755:; G->pos= yypos755; G->thunkpos= yythunkpos755;
  3766. } if (!yymatchChar(G, '>')) goto l751;
  3767. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  3768. return 1;
  3769. l751:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3770. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
  3771. return 0;
  3772. }
  3773. YY_RULE(int) yy_HtmlBlockThead(GREG *G)
  3774. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3775. yyprintf((stderr, "%s\n", "HtmlBlockThead")); if (!yy_HtmlBlockOpenThead(G)) { goto l756; }
  3776. l757:;
  3777. { int yypos758= G->pos, yythunkpos758= G->thunkpos;
  3778. { int yypos759= G->pos, yythunkpos759= G->thunkpos; if (!yy_HtmlBlockThead(G)) { goto l760; } goto l759;
  3779. l760:; G->pos= yypos759; G->thunkpos= yythunkpos759;
  3780. { int yypos761= G->pos, yythunkpos761= G->thunkpos; if (!yy_HtmlBlockCloseThead(G)) { goto l761; } goto l758;
  3781. l761:; G->pos= yypos761; G->thunkpos= yythunkpos761;
  3782. } if (!yymatchDot(G)) goto l758;
  3783. }
  3784. l759:; goto l757;
  3785. l758:; G->pos= yypos758; G->thunkpos= yythunkpos758;
  3786. } if (!yy_HtmlBlockCloseThead(G)) { goto l756; }
  3787. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  3788. return 1;
  3789. l756:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3790. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
  3791. return 0;
  3792. }
  3793. YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G)
  3794. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3795. yyprintf((stderr, "%s\n", "HtmlBlockCloseThead")); if (!yymatchChar(G, '<')) goto l762; if (!yy_Spnl(G)) { goto l762; } if (!yymatchChar(G, '/')) goto l762;
  3796. { int yypos763= G->pos, yythunkpos763= G->thunkpos; if (!yymatchString(G, "thead")) goto l764; goto l763;
  3797. l764:; G->pos= yypos763; G->thunkpos= yythunkpos763; if (!yymatchString(G, "THEAD")) goto l762;
  3798. }
  3799. l763:; if (!yy_Spnl(G)) { goto l762; } if (!yymatchChar(G, '>')) goto l762;
  3800. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  3801. return 1;
  3802. l762:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3803. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
  3804. return 0;
  3805. }
  3806. YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G)
  3807. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3808. yyprintf((stderr, "%s\n", "HtmlBlockOpenThead")); if (!yymatchChar(G, '<')) goto l765; if (!yy_Spnl(G)) { goto l765; }
  3809. { int yypos766= G->pos, yythunkpos766= G->thunkpos; if (!yymatchString(G, "thead")) goto l767; goto l766;
  3810. l767:; G->pos= yypos766; G->thunkpos= yythunkpos766; if (!yymatchString(G, "THEAD")) goto l765;
  3811. }
  3812. l766:; if (!yy_Spnl(G)) { goto l765; }
  3813. l768:;
  3814. { int yypos769= G->pos, yythunkpos769= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l769; } goto l768;
  3815. l769:; G->pos= yypos769; G->thunkpos= yythunkpos769;
  3816. } if (!yymatchChar(G, '>')) goto l765;
  3817. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  3818. return 1;
  3819. l765:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3820. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
  3821. return 0;
  3822. }
  3823. YY_RULE(int) yy_HtmlBlockTh(GREG *G)
  3824. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3825. yyprintf((stderr, "%s\n", "HtmlBlockTh")); if (!yy_HtmlBlockOpenTh(G)) { goto l770; }
  3826. l771:;
  3827. { int yypos772= G->pos, yythunkpos772= G->thunkpos;
  3828. { int yypos773= G->pos, yythunkpos773= G->thunkpos; if (!yy_HtmlBlockTh(G)) { goto l774; } goto l773;
  3829. l774:; G->pos= yypos773; G->thunkpos= yythunkpos773;
  3830. { int yypos775= G->pos, yythunkpos775= G->thunkpos; if (!yy_HtmlBlockCloseTh(G)) { goto l775; } goto l772;
  3831. l775:; G->pos= yypos775; G->thunkpos= yythunkpos775;
  3832. } if (!yymatchDot(G)) goto l772;
  3833. }
  3834. l773:; goto l771;
  3835. l772:; G->pos= yypos772; G->thunkpos= yythunkpos772;
  3836. } if (!yy_HtmlBlockCloseTh(G)) { goto l770; }
  3837. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  3838. return 1;
  3839. l770:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3840. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
  3841. return 0;
  3842. }
  3843. YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G)
  3844. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3845. yyprintf((stderr, "%s\n", "HtmlBlockCloseTh")); if (!yymatchChar(G, '<')) goto l776; if (!yy_Spnl(G)) { goto l776; } if (!yymatchChar(G, '/')) goto l776;
  3846. { int yypos777= G->pos, yythunkpos777= G->thunkpos; if (!yymatchString(G, "th")) goto l778; goto l777;
  3847. l778:; G->pos= yypos777; G->thunkpos= yythunkpos777; if (!yymatchString(G, "TH")) goto l776;
  3848. }
  3849. l777:; if (!yy_Spnl(G)) { goto l776; } if (!yymatchChar(G, '>')) goto l776;
  3850. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  3851. return 1;
  3852. l776:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3853. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
  3854. return 0;
  3855. }
  3856. YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G)
  3857. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3858. yyprintf((stderr, "%s\n", "HtmlBlockOpenTh")); if (!yymatchChar(G, '<')) goto l779; if (!yy_Spnl(G)) { goto l779; }
  3859. { int yypos780= G->pos, yythunkpos780= G->thunkpos; if (!yymatchString(G, "th")) goto l781; goto l780;
  3860. l781:; G->pos= yypos780; G->thunkpos= yythunkpos780; if (!yymatchString(G, "TH")) goto l779;
  3861. }
  3862. l780:; if (!yy_Spnl(G)) { goto l779; }
  3863. l782:;
  3864. { int yypos783= G->pos, yythunkpos783= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l783; } goto l782;
  3865. l783:; G->pos= yypos783; G->thunkpos= yythunkpos783;
  3866. } if (!yymatchChar(G, '>')) goto l779;
  3867. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  3868. return 1;
  3869. l779:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3870. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
  3871. return 0;
  3872. }
  3873. YY_RULE(int) yy_HtmlBlockTfoot(GREG *G)
  3874. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3875. yyprintf((stderr, "%s\n", "HtmlBlockTfoot")); if (!yy_HtmlBlockOpenTfoot(G)) { goto l784; }
  3876. l785:;
  3877. { int yypos786= G->pos, yythunkpos786= G->thunkpos;
  3878. { int yypos787= G->pos, yythunkpos787= G->thunkpos; if (!yy_HtmlBlockTfoot(G)) { goto l788; } goto l787;
  3879. l788:; G->pos= yypos787; G->thunkpos= yythunkpos787;
  3880. { int yypos789= G->pos, yythunkpos789= G->thunkpos; if (!yy_HtmlBlockCloseTfoot(G)) { goto l789; } goto l786;
  3881. l789:; G->pos= yypos789; G->thunkpos= yythunkpos789;
  3882. } if (!yymatchDot(G)) goto l786;
  3883. }
  3884. l787:; goto l785;
  3885. l786:; G->pos= yypos786; G->thunkpos= yythunkpos786;
  3886. } if (!yy_HtmlBlockCloseTfoot(G)) { goto l784; }
  3887. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  3888. return 1;
  3889. l784:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3890. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
  3891. return 0;
  3892. }
  3893. YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G)
  3894. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3895. yyprintf((stderr, "%s\n", "HtmlBlockCloseTfoot")); if (!yymatchChar(G, '<')) goto l790; if (!yy_Spnl(G)) { goto l790; } if (!yymatchChar(G, '/')) goto l790;
  3896. { int yypos791= G->pos, yythunkpos791= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l792; goto l791;
  3897. l792:; G->pos= yypos791; G->thunkpos= yythunkpos791; if (!yymatchString(G, "TFOOT")) goto l790;
  3898. }
  3899. l791:; if (!yy_Spnl(G)) { goto l790; } if (!yymatchChar(G, '>')) goto l790;
  3900. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  3901. return 1;
  3902. l790:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3903. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
  3904. return 0;
  3905. }
  3906. YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G)
  3907. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3908. yyprintf((stderr, "%s\n", "HtmlBlockOpenTfoot")); if (!yymatchChar(G, '<')) goto l793; if (!yy_Spnl(G)) { goto l793; }
  3909. { int yypos794= G->pos, yythunkpos794= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l795; goto l794;
  3910. l795:; G->pos= yypos794; G->thunkpos= yythunkpos794; if (!yymatchString(G, "TFOOT")) goto l793;
  3911. }
  3912. l794:; if (!yy_Spnl(G)) { goto l793; }
  3913. l796:;
  3914. { int yypos797= G->pos, yythunkpos797= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l797; } goto l796;
  3915. l797:; G->pos= yypos797; G->thunkpos= yythunkpos797;
  3916. } if (!yymatchChar(G, '>')) goto l793;
  3917. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  3918. return 1;
  3919. l793:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3920. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
  3921. return 0;
  3922. }
  3923. YY_RULE(int) yy_HtmlBlockTd(GREG *G)
  3924. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3925. yyprintf((stderr, "%s\n", "HtmlBlockTd")); if (!yy_HtmlBlockOpenTd(G)) { goto l798; }
  3926. l799:;
  3927. { int yypos800= G->pos, yythunkpos800= G->thunkpos;
  3928. { int yypos801= G->pos, yythunkpos801= G->thunkpos; if (!yy_HtmlBlockTd(G)) { goto l802; } goto l801;
  3929. l802:; G->pos= yypos801; G->thunkpos= yythunkpos801;
  3930. { int yypos803= G->pos, yythunkpos803= G->thunkpos; if (!yy_HtmlBlockCloseTd(G)) { goto l803; } goto l800;
  3931. l803:; G->pos= yypos803; G->thunkpos= yythunkpos803;
  3932. } if (!yymatchDot(G)) goto l800;
  3933. }
  3934. l801:; goto l799;
  3935. l800:; G->pos= yypos800; G->thunkpos= yythunkpos800;
  3936. } if (!yy_HtmlBlockCloseTd(G)) { goto l798; }
  3937. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  3938. return 1;
  3939. l798:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3940. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
  3941. return 0;
  3942. }
  3943. YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G)
  3944. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3945. yyprintf((stderr, "%s\n", "HtmlBlockCloseTd")); if (!yymatchChar(G, '<')) goto l804; if (!yy_Spnl(G)) { goto l804; } if (!yymatchChar(G, '/')) goto l804;
  3946. { int yypos805= G->pos, yythunkpos805= G->thunkpos; if (!yymatchString(G, "td")) goto l806; goto l805;
  3947. l806:; G->pos= yypos805; G->thunkpos= yythunkpos805; if (!yymatchString(G, "TD")) goto l804;
  3948. }
  3949. l805:; if (!yy_Spnl(G)) { goto l804; } if (!yymatchChar(G, '>')) goto l804;
  3950. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  3951. return 1;
  3952. l804:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3953. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
  3954. return 0;
  3955. }
  3956. YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G)
  3957. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3958. yyprintf((stderr, "%s\n", "HtmlBlockOpenTd")); if (!yymatchChar(G, '<')) goto l807; if (!yy_Spnl(G)) { goto l807; }
  3959. { int yypos808= G->pos, yythunkpos808= G->thunkpos; if (!yymatchString(G, "td")) goto l809; goto l808;
  3960. l809:; G->pos= yypos808; G->thunkpos= yythunkpos808; if (!yymatchString(G, "TD")) goto l807;
  3961. }
  3962. l808:; if (!yy_Spnl(G)) { goto l807; }
  3963. l810:;
  3964. { int yypos811= G->pos, yythunkpos811= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l811; } goto l810;
  3965. l811:; G->pos= yypos811; G->thunkpos= yythunkpos811;
  3966. } if (!yymatchChar(G, '>')) goto l807;
  3967. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  3968. return 1;
  3969. l807:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3970. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
  3971. return 0;
  3972. }
  3973. YY_RULE(int) yy_HtmlBlockTbody(GREG *G)
  3974. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3975. yyprintf((stderr, "%s\n", "HtmlBlockTbody")); if (!yy_HtmlBlockOpenTbody(G)) { goto l812; }
  3976. l813:;
  3977. { int yypos814= G->pos, yythunkpos814= G->thunkpos;
  3978. { int yypos815= G->pos, yythunkpos815= G->thunkpos; if (!yy_HtmlBlockTbody(G)) { goto l816; } goto l815;
  3979. l816:; G->pos= yypos815; G->thunkpos= yythunkpos815;
  3980. { int yypos817= G->pos, yythunkpos817= G->thunkpos; if (!yy_HtmlBlockCloseTbody(G)) { goto l817; } goto l814;
  3981. l817:; G->pos= yypos817; G->thunkpos= yythunkpos817;
  3982. } if (!yymatchDot(G)) goto l814;
  3983. }
  3984. l815:; goto l813;
  3985. l814:; G->pos= yypos814; G->thunkpos= yythunkpos814;
  3986. } if (!yy_HtmlBlockCloseTbody(G)) { goto l812; }
  3987. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  3988. return 1;
  3989. l812:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  3990. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
  3991. return 0;
  3992. }
  3993. YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G)
  3994. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  3995. yyprintf((stderr, "%s\n", "HtmlBlockCloseTbody")); if (!yymatchChar(G, '<')) goto l818; if (!yy_Spnl(G)) { goto l818; } if (!yymatchChar(G, '/')) goto l818;
  3996. { int yypos819= G->pos, yythunkpos819= G->thunkpos; if (!yymatchString(G, "tbody")) goto l820; goto l819;
  3997. l820:; G->pos= yypos819; G->thunkpos= yythunkpos819; if (!yymatchString(G, "TBODY")) goto l818;
  3998. }
  3999. l819:; if (!yy_Spnl(G)) { goto l818; } if (!yymatchChar(G, '>')) goto l818;
  4000. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4001. return 1;
  4002. l818:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4003. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
  4004. return 0;
  4005. }
  4006. YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G)
  4007. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4008. yyprintf((stderr, "%s\n", "HtmlBlockOpenTbody")); if (!yymatchChar(G, '<')) goto l821; if (!yy_Spnl(G)) { goto l821; }
  4009. { int yypos822= G->pos, yythunkpos822= G->thunkpos; if (!yymatchString(G, "tbody")) goto l823; goto l822;
  4010. l823:; G->pos= yypos822; G->thunkpos= yythunkpos822; if (!yymatchString(G, "TBODY")) goto l821;
  4011. }
  4012. l822:; if (!yy_Spnl(G)) { goto l821; }
  4013. l824:;
  4014. { int yypos825= G->pos, yythunkpos825= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l825; } goto l824;
  4015. l825:; G->pos= yypos825; G->thunkpos= yythunkpos825;
  4016. } if (!yymatchChar(G, '>')) goto l821;
  4017. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4018. return 1;
  4019. l821:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4020. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
  4021. return 0;
  4022. }
  4023. YY_RULE(int) yy_HtmlBlockLi(GREG *G)
  4024. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4025. yyprintf((stderr, "%s\n", "HtmlBlockLi")); if (!yy_HtmlBlockOpenLi(G)) { goto l826; }
  4026. l827:;
  4027. { int yypos828= G->pos, yythunkpos828= G->thunkpos;
  4028. { int yypos829= G->pos, yythunkpos829= G->thunkpos; if (!yy_HtmlBlockLi(G)) { goto l830; } goto l829;
  4029. l830:; G->pos= yypos829; G->thunkpos= yythunkpos829;
  4030. { int yypos831= G->pos, yythunkpos831= G->thunkpos; if (!yy_HtmlBlockCloseLi(G)) { goto l831; } goto l828;
  4031. l831:; G->pos= yypos831; G->thunkpos= yythunkpos831;
  4032. } if (!yymatchDot(G)) goto l828;
  4033. }
  4034. l829:; goto l827;
  4035. l828:; G->pos= yypos828; G->thunkpos= yythunkpos828;
  4036. } if (!yy_HtmlBlockCloseLi(G)) { goto l826; }
  4037. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4038. return 1;
  4039. l826:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4040. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
  4041. return 0;
  4042. }
  4043. YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G)
  4044. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4045. yyprintf((stderr, "%s\n", "HtmlBlockCloseLi")); if (!yymatchChar(G, '<')) goto l832; if (!yy_Spnl(G)) { goto l832; } if (!yymatchChar(G, '/')) goto l832;
  4046. { int yypos833= G->pos, yythunkpos833= G->thunkpos; if (!yymatchString(G, "li")) goto l834; goto l833;
  4047. l834:; G->pos= yypos833; G->thunkpos= yythunkpos833; if (!yymatchString(G, "LI")) goto l832;
  4048. }
  4049. l833:; if (!yy_Spnl(G)) { goto l832; } if (!yymatchChar(G, '>')) goto l832;
  4050. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4051. return 1;
  4052. l832:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4053. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
  4054. return 0;
  4055. }
  4056. YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G)
  4057. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4058. yyprintf((stderr, "%s\n", "HtmlBlockOpenLi")); if (!yymatchChar(G, '<')) goto l835; if (!yy_Spnl(G)) { goto l835; }
  4059. { int yypos836= G->pos, yythunkpos836= G->thunkpos; if (!yymatchString(G, "li")) goto l837; goto l836;
  4060. l837:; G->pos= yypos836; G->thunkpos= yythunkpos836; if (!yymatchString(G, "LI")) goto l835;
  4061. }
  4062. l836:; if (!yy_Spnl(G)) { goto l835; }
  4063. l838:;
  4064. { int yypos839= G->pos, yythunkpos839= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l839; } goto l838;
  4065. l839:; G->pos= yypos839; G->thunkpos= yythunkpos839;
  4066. } if (!yymatchChar(G, '>')) goto l835;
  4067. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4068. return 1;
  4069. l835:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4070. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
  4071. return 0;
  4072. }
  4073. YY_RULE(int) yy_HtmlBlockFrameset(GREG *G)
  4074. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4075. yyprintf((stderr, "%s\n", "HtmlBlockFrameset")); if (!yy_HtmlBlockOpenFrameset(G)) { goto l840; }
  4076. l841:;
  4077. { int yypos842= G->pos, yythunkpos842= G->thunkpos;
  4078. { int yypos843= G->pos, yythunkpos843= G->thunkpos; if (!yy_HtmlBlockFrameset(G)) { goto l844; } goto l843;
  4079. l844:; G->pos= yypos843; G->thunkpos= yythunkpos843;
  4080. { int yypos845= G->pos, yythunkpos845= G->thunkpos; if (!yy_HtmlBlockCloseFrameset(G)) { goto l845; } goto l842;
  4081. l845:; G->pos= yypos845; G->thunkpos= yythunkpos845;
  4082. } if (!yymatchDot(G)) goto l842;
  4083. }
  4084. l843:; goto l841;
  4085. l842:; G->pos= yypos842; G->thunkpos= yythunkpos842;
  4086. } if (!yy_HtmlBlockCloseFrameset(G)) { goto l840; }
  4087. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4088. return 1;
  4089. l840:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4090. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
  4091. return 0;
  4092. }
  4093. YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G)
  4094. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4095. yyprintf((stderr, "%s\n", "HtmlBlockCloseFrameset")); if (!yymatchChar(G, '<')) goto l846; if (!yy_Spnl(G)) { goto l846; } if (!yymatchChar(G, '/')) goto l846;
  4096. { int yypos847= G->pos, yythunkpos847= G->thunkpos; if (!yymatchString(G, "frameset")) goto l848; goto l847;
  4097. l848:; G->pos= yypos847; G->thunkpos= yythunkpos847; if (!yymatchString(G, "FRAMESET")) goto l846;
  4098. }
  4099. l847:; if (!yy_Spnl(G)) { goto l846; } if (!yymatchChar(G, '>')) goto l846;
  4100. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4101. return 1;
  4102. l846:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4103. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
  4104. return 0;
  4105. }
  4106. YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G)
  4107. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4108. yyprintf((stderr, "%s\n", "HtmlBlockOpenFrameset")); if (!yymatchChar(G, '<')) goto l849; if (!yy_Spnl(G)) { goto l849; }
  4109. { int yypos850= G->pos, yythunkpos850= G->thunkpos; if (!yymatchString(G, "frameset")) goto l851; goto l850;
  4110. l851:; G->pos= yypos850; G->thunkpos= yythunkpos850; if (!yymatchString(G, "FRAMESET")) goto l849;
  4111. }
  4112. l850:; if (!yy_Spnl(G)) { goto l849; }
  4113. l852:;
  4114. { int yypos853= G->pos, yythunkpos853= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l853; } goto l852;
  4115. l853:; G->pos= yypos853; G->thunkpos= yythunkpos853;
  4116. } if (!yymatchChar(G, '>')) goto l849;
  4117. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4118. return 1;
  4119. l849:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4120. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
  4121. return 0;
  4122. }
  4123. YY_RULE(int) yy_HtmlBlockDt(GREG *G)
  4124. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4125. yyprintf((stderr, "%s\n", "HtmlBlockDt")); if (!yy_HtmlBlockOpenDt(G)) { goto l854; }
  4126. l855:;
  4127. { int yypos856= G->pos, yythunkpos856= G->thunkpos;
  4128. { int yypos857= G->pos, yythunkpos857= G->thunkpos; if (!yy_HtmlBlockDt(G)) { goto l858; } goto l857;
  4129. l858:; G->pos= yypos857; G->thunkpos= yythunkpos857;
  4130. { int yypos859= G->pos, yythunkpos859= G->thunkpos; if (!yy_HtmlBlockCloseDt(G)) { goto l859; } goto l856;
  4131. l859:; G->pos= yypos859; G->thunkpos= yythunkpos859;
  4132. } if (!yymatchDot(G)) goto l856;
  4133. }
  4134. l857:; goto l855;
  4135. l856:; G->pos= yypos856; G->thunkpos= yythunkpos856;
  4136. } if (!yy_HtmlBlockCloseDt(G)) { goto l854; }
  4137. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4138. return 1;
  4139. l854:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4140. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
  4141. return 0;
  4142. }
  4143. YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G)
  4144. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4145. yyprintf((stderr, "%s\n", "HtmlBlockCloseDt")); if (!yymatchChar(G, '<')) goto l860; if (!yy_Spnl(G)) { goto l860; } if (!yymatchChar(G, '/')) goto l860;
  4146. { int yypos861= G->pos, yythunkpos861= G->thunkpos; if (!yymatchString(G, "dt")) goto l862; goto l861;
  4147. l862:; G->pos= yypos861; G->thunkpos= yythunkpos861; if (!yymatchString(G, "DT")) goto l860;
  4148. }
  4149. l861:; if (!yy_Spnl(G)) { goto l860; } if (!yymatchChar(G, '>')) goto l860;
  4150. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4151. return 1;
  4152. l860:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4153. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
  4154. return 0;
  4155. }
  4156. YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G)
  4157. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4158. yyprintf((stderr, "%s\n", "HtmlBlockOpenDt")); if (!yymatchChar(G, '<')) goto l863; if (!yy_Spnl(G)) { goto l863; }
  4159. { int yypos864= G->pos, yythunkpos864= G->thunkpos; if (!yymatchString(G, "dt")) goto l865; goto l864;
  4160. l865:; G->pos= yypos864; G->thunkpos= yythunkpos864; if (!yymatchString(G, "DT")) goto l863;
  4161. }
  4162. l864:; if (!yy_Spnl(G)) { goto l863; }
  4163. l866:;
  4164. { int yypos867= G->pos, yythunkpos867= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l867; } goto l866;
  4165. l867:; G->pos= yypos867; G->thunkpos= yythunkpos867;
  4166. } if (!yymatchChar(G, '>')) goto l863;
  4167. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4168. return 1;
  4169. l863:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4170. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
  4171. return 0;
  4172. }
  4173. YY_RULE(int) yy_HtmlBlockDd(GREG *G)
  4174. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4175. yyprintf((stderr, "%s\n", "HtmlBlockDd")); if (!yy_HtmlBlockOpenDd(G)) { goto l868; }
  4176. l869:;
  4177. { int yypos870= G->pos, yythunkpos870= G->thunkpos;
  4178. { int yypos871= G->pos, yythunkpos871= G->thunkpos; if (!yy_HtmlBlockDd(G)) { goto l872; } goto l871;
  4179. l872:; G->pos= yypos871; G->thunkpos= yythunkpos871;
  4180. { int yypos873= G->pos, yythunkpos873= G->thunkpos; if (!yy_HtmlBlockCloseDd(G)) { goto l873; } goto l870;
  4181. l873:; G->pos= yypos873; G->thunkpos= yythunkpos873;
  4182. } if (!yymatchDot(G)) goto l870;
  4183. }
  4184. l871:; goto l869;
  4185. l870:; G->pos= yypos870; G->thunkpos= yythunkpos870;
  4186. } if (!yy_HtmlBlockCloseDd(G)) { goto l868; }
  4187. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4188. return 1;
  4189. l868:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4190. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
  4191. return 0;
  4192. }
  4193. YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G)
  4194. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4195. yyprintf((stderr, "%s\n", "HtmlBlockCloseDd")); if (!yymatchChar(G, '<')) goto l874; if (!yy_Spnl(G)) { goto l874; } if (!yymatchChar(G, '/')) goto l874;
  4196. { int yypos875= G->pos, yythunkpos875= G->thunkpos; if (!yymatchString(G, "dd")) goto l876; goto l875;
  4197. l876:; G->pos= yypos875; G->thunkpos= yythunkpos875; if (!yymatchString(G, "DD")) goto l874;
  4198. }
  4199. l875:; if (!yy_Spnl(G)) { goto l874; } if (!yymatchChar(G, '>')) goto l874;
  4200. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4201. return 1;
  4202. l874:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4203. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
  4204. return 0;
  4205. }
  4206. YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G)
  4207. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4208. yyprintf((stderr, "%s\n", "HtmlBlockOpenDd")); if (!yymatchChar(G, '<')) goto l877; if (!yy_Spnl(G)) { goto l877; }
  4209. { int yypos878= G->pos, yythunkpos878= G->thunkpos; if (!yymatchString(G, "dd")) goto l879; goto l878;
  4210. l879:; G->pos= yypos878; G->thunkpos= yythunkpos878; if (!yymatchString(G, "DD")) goto l877;
  4211. }
  4212. l878:; if (!yy_Spnl(G)) { goto l877; }
  4213. l880:;
  4214. { int yypos881= G->pos, yythunkpos881= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l881; } goto l880;
  4215. l881:; G->pos= yypos881; G->thunkpos= yythunkpos881;
  4216. } if (!yymatchChar(G, '>')) goto l877;
  4217. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4218. return 1;
  4219. l877:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4220. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
  4221. return 0;
  4222. }
  4223. YY_RULE(int) yy_HtmlBlockUl(GREG *G)
  4224. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4225. yyprintf((stderr, "%s\n", "HtmlBlockUl")); if (!yy_HtmlBlockOpenUl(G)) { goto l882; }
  4226. l883:;
  4227. { int yypos884= G->pos, yythunkpos884= G->thunkpos;
  4228. { int yypos885= G->pos, yythunkpos885= G->thunkpos; if (!yy_HtmlBlockUl(G)) { goto l886; } goto l885;
  4229. l886:; G->pos= yypos885; G->thunkpos= yythunkpos885;
  4230. { int yypos887= G->pos, yythunkpos887= G->thunkpos; if (!yy_HtmlBlockCloseUl(G)) { goto l887; } goto l884;
  4231. l887:; G->pos= yypos887; G->thunkpos= yythunkpos887;
  4232. } if (!yymatchDot(G)) goto l884;
  4233. }
  4234. l885:; goto l883;
  4235. l884:; G->pos= yypos884; G->thunkpos= yythunkpos884;
  4236. } if (!yy_HtmlBlockCloseUl(G)) { goto l882; }
  4237. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4238. return 1;
  4239. l882:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4240. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
  4241. return 0;
  4242. }
  4243. YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G)
  4244. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4245. yyprintf((stderr, "%s\n", "HtmlBlockCloseUl")); if (!yymatchChar(G, '<')) goto l888; if (!yy_Spnl(G)) { goto l888; } if (!yymatchChar(G, '/')) goto l888;
  4246. { int yypos889= G->pos, yythunkpos889= G->thunkpos; if (!yymatchString(G, "ul")) goto l890; goto l889;
  4247. l890:; G->pos= yypos889; G->thunkpos= yythunkpos889; if (!yymatchString(G, "UL")) goto l888;
  4248. }
  4249. l889:; if (!yy_Spnl(G)) { goto l888; } if (!yymatchChar(G, '>')) goto l888;
  4250. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4251. return 1;
  4252. l888:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4253. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
  4254. return 0;
  4255. }
  4256. YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G)
  4257. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4258. yyprintf((stderr, "%s\n", "HtmlBlockOpenUl")); if (!yymatchChar(G, '<')) goto l891; if (!yy_Spnl(G)) { goto l891; }
  4259. { int yypos892= G->pos, yythunkpos892= G->thunkpos; if (!yymatchString(G, "ul")) goto l893; goto l892;
  4260. l893:; G->pos= yypos892; G->thunkpos= yythunkpos892; if (!yymatchString(G, "UL")) goto l891;
  4261. }
  4262. l892:; if (!yy_Spnl(G)) { goto l891; }
  4263. l894:;
  4264. { int yypos895= G->pos, yythunkpos895= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l895; } goto l894;
  4265. l895:; G->pos= yypos895; G->thunkpos= yythunkpos895;
  4266. } if (!yymatchChar(G, '>')) goto l891;
  4267. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4268. return 1;
  4269. l891:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4270. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
  4271. return 0;
  4272. }
  4273. YY_RULE(int) yy_HtmlBlockTable(GREG *G)
  4274. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4275. yyprintf((stderr, "%s\n", "HtmlBlockTable")); if (!yy_HtmlBlockOpenTable(G)) { goto l896; }
  4276. l897:;
  4277. { int yypos898= G->pos, yythunkpos898= G->thunkpos;
  4278. { int yypos899= G->pos, yythunkpos899= G->thunkpos; if (!yy_HtmlBlockTable(G)) { goto l900; } goto l899;
  4279. l900:; G->pos= yypos899; G->thunkpos= yythunkpos899;
  4280. { int yypos901= G->pos, yythunkpos901= G->thunkpos; if (!yy_HtmlBlockCloseTable(G)) { goto l901; } goto l898;
  4281. l901:; G->pos= yypos901; G->thunkpos= yythunkpos901;
  4282. } if (!yymatchDot(G)) goto l898;
  4283. }
  4284. l899:; goto l897;
  4285. l898:; G->pos= yypos898; G->thunkpos= yythunkpos898;
  4286. } if (!yy_HtmlBlockCloseTable(G)) { goto l896; }
  4287. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4288. return 1;
  4289. l896:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4290. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
  4291. return 0;
  4292. }
  4293. YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G)
  4294. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4295. yyprintf((stderr, "%s\n", "HtmlBlockCloseTable")); if (!yymatchChar(G, '<')) goto l902; if (!yy_Spnl(G)) { goto l902; } if (!yymatchChar(G, '/')) goto l902;
  4296. { int yypos903= G->pos, yythunkpos903= G->thunkpos; if (!yymatchString(G, "table")) goto l904; goto l903;
  4297. l904:; G->pos= yypos903; G->thunkpos= yythunkpos903; if (!yymatchString(G, "TABLE")) goto l902;
  4298. }
  4299. l903:; if (!yy_Spnl(G)) { goto l902; } if (!yymatchChar(G, '>')) goto l902;
  4300. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4301. return 1;
  4302. l902:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4303. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
  4304. return 0;
  4305. }
  4306. YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G)
  4307. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4308. yyprintf((stderr, "%s\n", "HtmlBlockOpenTable")); if (!yymatchChar(G, '<')) goto l905; if (!yy_Spnl(G)) { goto l905; }
  4309. { int yypos906= G->pos, yythunkpos906= G->thunkpos; if (!yymatchString(G, "table")) goto l907; goto l906;
  4310. l907:; G->pos= yypos906; G->thunkpos= yythunkpos906; if (!yymatchString(G, "TABLE")) goto l905;
  4311. }
  4312. l906:; if (!yy_Spnl(G)) { goto l905; }
  4313. l908:;
  4314. { int yypos909= G->pos, yythunkpos909= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l909; } goto l908;
  4315. l909:; G->pos= yypos909; G->thunkpos= yythunkpos909;
  4316. } if (!yymatchChar(G, '>')) goto l905;
  4317. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4318. return 1;
  4319. l905:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4320. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
  4321. return 0;
  4322. }
  4323. YY_RULE(int) yy_HtmlBlockPre(GREG *G)
  4324. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4325. yyprintf((stderr, "%s\n", "HtmlBlockPre")); if (!yy_HtmlBlockOpenPre(G)) { goto l910; }
  4326. l911:;
  4327. { int yypos912= G->pos, yythunkpos912= G->thunkpos;
  4328. { int yypos913= G->pos, yythunkpos913= G->thunkpos; if (!yy_HtmlBlockPre(G)) { goto l914; } goto l913;
  4329. l914:; G->pos= yypos913; G->thunkpos= yythunkpos913;
  4330. { int yypos915= G->pos, yythunkpos915= G->thunkpos; if (!yy_HtmlBlockClosePre(G)) { goto l915; } goto l912;
  4331. l915:; G->pos= yypos915; G->thunkpos= yythunkpos915;
  4332. } if (!yymatchDot(G)) goto l912;
  4333. }
  4334. l913:; goto l911;
  4335. l912:; G->pos= yypos912; G->thunkpos= yythunkpos912;
  4336. } if (!yy_HtmlBlockClosePre(G)) { goto l910; }
  4337. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4338. return 1;
  4339. l910:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4340. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
  4341. return 0;
  4342. }
  4343. YY_RULE(int) yy_HtmlBlockClosePre(GREG *G)
  4344. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4345. yyprintf((stderr, "%s\n", "HtmlBlockClosePre")); if (!yymatchChar(G, '<')) goto l916; if (!yy_Spnl(G)) { goto l916; } if (!yymatchChar(G, '/')) goto l916;
  4346. { int yypos917= G->pos, yythunkpos917= G->thunkpos; if (!yymatchString(G, "pre")) goto l918; goto l917;
  4347. l918:; G->pos= yypos917; G->thunkpos= yythunkpos917; if (!yymatchString(G, "PRE")) goto l916;
  4348. }
  4349. l917:; if (!yy_Spnl(G)) { goto l916; } if (!yymatchChar(G, '>')) goto l916;
  4350. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4351. return 1;
  4352. l916:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4353. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
  4354. return 0;
  4355. }
  4356. YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G)
  4357. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4358. yyprintf((stderr, "%s\n", "HtmlBlockOpenPre")); if (!yymatchChar(G, '<')) goto l919; if (!yy_Spnl(G)) { goto l919; }
  4359. { int yypos920= G->pos, yythunkpos920= G->thunkpos; if (!yymatchString(G, "pre")) goto l921; goto l920;
  4360. l921:; G->pos= yypos920; G->thunkpos= yythunkpos920; if (!yymatchString(G, "PRE")) goto l919;
  4361. }
  4362. l920:; if (!yy_Spnl(G)) { goto l919; }
  4363. l922:;
  4364. { int yypos923= G->pos, yythunkpos923= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l923; } goto l922;
  4365. l923:; G->pos= yypos923; G->thunkpos= yythunkpos923;
  4366. } if (!yymatchChar(G, '>')) goto l919;
  4367. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4368. return 1;
  4369. l919:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4370. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
  4371. return 0;
  4372. }
  4373. YY_RULE(int) yy_HtmlBlockP(GREG *G)
  4374. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4375. yyprintf((stderr, "%s\n", "HtmlBlockP")); if (!yy_HtmlBlockOpenP(G)) { goto l924; }
  4376. l925:;
  4377. { int yypos926= G->pos, yythunkpos926= G->thunkpos;
  4378. { int yypos927= G->pos, yythunkpos927= G->thunkpos; if (!yy_HtmlBlockP(G)) { goto l928; } goto l927;
  4379. l928:; G->pos= yypos927; G->thunkpos= yythunkpos927;
  4380. { int yypos929= G->pos, yythunkpos929= G->thunkpos; if (!yy_HtmlBlockCloseP(G)) { goto l929; } goto l926;
  4381. l929:; G->pos= yypos929; G->thunkpos= yythunkpos929;
  4382. } if (!yymatchDot(G)) goto l926;
  4383. }
  4384. l927:; goto l925;
  4385. l926:; G->pos= yypos926; G->thunkpos= yythunkpos926;
  4386. } if (!yy_HtmlBlockCloseP(G)) { goto l924; }
  4387. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4388. return 1;
  4389. l924:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4390. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
  4391. return 0;
  4392. }
  4393. YY_RULE(int) yy_HtmlBlockCloseP(GREG *G)
  4394. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4395. yyprintf((stderr, "%s\n", "HtmlBlockCloseP")); if (!yymatchChar(G, '<')) goto l930; if (!yy_Spnl(G)) { goto l930; } if (!yymatchChar(G, '/')) goto l930;
  4396. { int yypos931= G->pos, yythunkpos931= G->thunkpos; if (!yymatchChar(G, 'p')) goto l932; goto l931;
  4397. l932:; G->pos= yypos931; G->thunkpos= yythunkpos931; if (!yymatchChar(G, 'P')) goto l930;
  4398. }
  4399. l931:; if (!yy_Spnl(G)) { goto l930; } if (!yymatchChar(G, '>')) goto l930;
  4400. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4401. return 1;
  4402. l930:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4403. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
  4404. return 0;
  4405. }
  4406. YY_RULE(int) yy_HtmlBlockOpenP(GREG *G)
  4407. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4408. yyprintf((stderr, "%s\n", "HtmlBlockOpenP")); if (!yymatchChar(G, '<')) goto l933; if (!yy_Spnl(G)) { goto l933; }
  4409. { int yypos934= G->pos, yythunkpos934= G->thunkpos; if (!yymatchChar(G, 'p')) goto l935; goto l934;
  4410. l935:; G->pos= yypos934; G->thunkpos= yythunkpos934; if (!yymatchChar(G, 'P')) goto l933;
  4411. }
  4412. l934:; if (!yy_Spnl(G)) { goto l933; }
  4413. l936:;
  4414. { int yypos937= G->pos, yythunkpos937= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l937; } goto l936;
  4415. l937:; G->pos= yypos937; G->thunkpos= yythunkpos937;
  4416. } if (!yymatchChar(G, '>')) goto l933;
  4417. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4418. return 1;
  4419. l933:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4420. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
  4421. return 0;
  4422. }
  4423. YY_RULE(int) yy_HtmlBlockOl(GREG *G)
  4424. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4425. yyprintf((stderr, "%s\n", "HtmlBlockOl")); if (!yy_HtmlBlockOpenOl(G)) { goto l938; }
  4426. l939:;
  4427. { int yypos940= G->pos, yythunkpos940= G->thunkpos;
  4428. { int yypos941= G->pos, yythunkpos941= G->thunkpos; if (!yy_HtmlBlockOl(G)) { goto l942; } goto l941;
  4429. l942:; G->pos= yypos941; G->thunkpos= yythunkpos941;
  4430. { int yypos943= G->pos, yythunkpos943= G->thunkpos; if (!yy_HtmlBlockCloseOl(G)) { goto l943; } goto l940;
  4431. l943:; G->pos= yypos943; G->thunkpos= yythunkpos943;
  4432. } if (!yymatchDot(G)) goto l940;
  4433. }
  4434. l941:; goto l939;
  4435. l940:; G->pos= yypos940; G->thunkpos= yythunkpos940;
  4436. } if (!yy_HtmlBlockCloseOl(G)) { goto l938; }
  4437. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4438. return 1;
  4439. l938:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4440. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
  4441. return 0;
  4442. }
  4443. YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G)
  4444. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4445. yyprintf((stderr, "%s\n", "HtmlBlockCloseOl")); if (!yymatchChar(G, '<')) goto l944; if (!yy_Spnl(G)) { goto l944; } if (!yymatchChar(G, '/')) goto l944;
  4446. { int yypos945= G->pos, yythunkpos945= G->thunkpos; if (!yymatchString(G, "ol")) goto l946; goto l945;
  4447. l946:; G->pos= yypos945; G->thunkpos= yythunkpos945; if (!yymatchString(G, "OL")) goto l944;
  4448. }
  4449. l945:; if (!yy_Spnl(G)) { goto l944; } if (!yymatchChar(G, '>')) goto l944;
  4450. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4451. return 1;
  4452. l944:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4453. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
  4454. return 0;
  4455. }
  4456. YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G)
  4457. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4458. yyprintf((stderr, "%s\n", "HtmlBlockOpenOl")); if (!yymatchChar(G, '<')) goto l947; if (!yy_Spnl(G)) { goto l947; }
  4459. { int yypos948= G->pos, yythunkpos948= G->thunkpos; if (!yymatchString(G, "ol")) goto l949; goto l948;
  4460. l949:; G->pos= yypos948; G->thunkpos= yythunkpos948; if (!yymatchString(G, "OL")) goto l947;
  4461. }
  4462. l948:; if (!yy_Spnl(G)) { goto l947; }
  4463. l950:;
  4464. { int yypos951= G->pos, yythunkpos951= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l951; } goto l950;
  4465. l951:; G->pos= yypos951; G->thunkpos= yythunkpos951;
  4466. } if (!yymatchChar(G, '>')) goto l947;
  4467. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4468. return 1;
  4469. l947:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4470. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
  4471. return 0;
  4472. }
  4473. YY_RULE(int) yy_HtmlBlockNoscript(GREG *G)
  4474. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4475. yyprintf((stderr, "%s\n", "HtmlBlockNoscript")); if (!yy_HtmlBlockOpenNoscript(G)) { goto l952; }
  4476. l953:;
  4477. { int yypos954= G->pos, yythunkpos954= G->thunkpos;
  4478. { int yypos955= G->pos, yythunkpos955= G->thunkpos; if (!yy_HtmlBlockNoscript(G)) { goto l956; } goto l955;
  4479. l956:; G->pos= yypos955; G->thunkpos= yythunkpos955;
  4480. { int yypos957= G->pos, yythunkpos957= G->thunkpos; if (!yy_HtmlBlockCloseNoscript(G)) { goto l957; } goto l954;
  4481. l957:; G->pos= yypos957; G->thunkpos= yythunkpos957;
  4482. } if (!yymatchDot(G)) goto l954;
  4483. }
  4484. l955:; goto l953;
  4485. l954:; G->pos= yypos954; G->thunkpos= yythunkpos954;
  4486. } if (!yy_HtmlBlockCloseNoscript(G)) { goto l952; }
  4487. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4488. return 1;
  4489. l952:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4490. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
  4491. return 0;
  4492. }
  4493. YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G)
  4494. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4495. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoscript")); if (!yymatchChar(G, '<')) goto l958; if (!yy_Spnl(G)) { goto l958; } if (!yymatchChar(G, '/')) goto l958;
  4496. { int yypos959= G->pos, yythunkpos959= G->thunkpos; if (!yymatchString(G, "noscript")) goto l960; goto l959;
  4497. l960:; G->pos= yypos959; G->thunkpos= yythunkpos959; if (!yymatchString(G, "NOSCRIPT")) goto l958;
  4498. }
  4499. l959:; if (!yy_Spnl(G)) { goto l958; } if (!yymatchChar(G, '>')) goto l958;
  4500. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4501. return 1;
  4502. l958:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4503. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
  4504. return 0;
  4505. }
  4506. YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G)
  4507. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4508. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoscript")); if (!yymatchChar(G, '<')) goto l961; if (!yy_Spnl(G)) { goto l961; }
  4509. { int yypos962= G->pos, yythunkpos962= G->thunkpos; if (!yymatchString(G, "noscript")) goto l963; goto l962;
  4510. l963:; G->pos= yypos962; G->thunkpos= yythunkpos962; if (!yymatchString(G, "NOSCRIPT")) goto l961;
  4511. }
  4512. l962:; if (!yy_Spnl(G)) { goto l961; }
  4513. l964:;
  4514. { int yypos965= G->pos, yythunkpos965= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l965; } goto l964;
  4515. l965:; G->pos= yypos965; G->thunkpos= yythunkpos965;
  4516. } if (!yymatchChar(G, '>')) goto l961;
  4517. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4518. return 1;
  4519. l961:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4520. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
  4521. return 0;
  4522. }
  4523. YY_RULE(int) yy_HtmlBlockNoframes(GREG *G)
  4524. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4525. yyprintf((stderr, "%s\n", "HtmlBlockNoframes")); if (!yy_HtmlBlockOpenNoframes(G)) { goto l966; }
  4526. l967:;
  4527. { int yypos968= G->pos, yythunkpos968= G->thunkpos;
  4528. { int yypos969= G->pos, yythunkpos969= G->thunkpos; if (!yy_HtmlBlockNoframes(G)) { goto l970; } goto l969;
  4529. l970:; G->pos= yypos969; G->thunkpos= yythunkpos969;
  4530. { int yypos971= G->pos, yythunkpos971= G->thunkpos; if (!yy_HtmlBlockCloseNoframes(G)) { goto l971; } goto l968;
  4531. l971:; G->pos= yypos971; G->thunkpos= yythunkpos971;
  4532. } if (!yymatchDot(G)) goto l968;
  4533. }
  4534. l969:; goto l967;
  4535. l968:; G->pos= yypos968; G->thunkpos= yythunkpos968;
  4536. } if (!yy_HtmlBlockCloseNoframes(G)) { goto l966; }
  4537. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4538. return 1;
  4539. l966:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4540. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
  4541. return 0;
  4542. }
  4543. YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G)
  4544. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4545. yyprintf((stderr, "%s\n", "HtmlBlockCloseNoframes")); if (!yymatchChar(G, '<')) goto l972; if (!yy_Spnl(G)) { goto l972; } if (!yymatchChar(G, '/')) goto l972;
  4546. { int yypos973= G->pos, yythunkpos973= G->thunkpos; if (!yymatchString(G, "noframes")) goto l974; goto l973;
  4547. l974:; G->pos= yypos973; G->thunkpos= yythunkpos973; if (!yymatchString(G, "NOFRAMES")) goto l972;
  4548. }
  4549. l973:; if (!yy_Spnl(G)) { goto l972; } if (!yymatchChar(G, '>')) goto l972;
  4550. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4551. return 1;
  4552. l972:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4553. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
  4554. return 0;
  4555. }
  4556. YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G)
  4557. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4558. yyprintf((stderr, "%s\n", "HtmlBlockOpenNoframes")); if (!yymatchChar(G, '<')) goto l975; if (!yy_Spnl(G)) { goto l975; }
  4559. { int yypos976= G->pos, yythunkpos976= G->thunkpos; if (!yymatchString(G, "noframes")) goto l977; goto l976;
  4560. l977:; G->pos= yypos976; G->thunkpos= yythunkpos976; if (!yymatchString(G, "NOFRAMES")) goto l975;
  4561. }
  4562. l976:; if (!yy_Spnl(G)) { goto l975; }
  4563. l978:;
  4564. { int yypos979= G->pos, yythunkpos979= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l979; } goto l978;
  4565. l979:; G->pos= yypos979; G->thunkpos= yythunkpos979;
  4566. } if (!yymatchChar(G, '>')) goto l975;
  4567. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4568. return 1;
  4569. l975:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4570. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
  4571. return 0;
  4572. }
  4573. YY_RULE(int) yy_HtmlBlockMenu(GREG *G)
  4574. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4575. yyprintf((stderr, "%s\n", "HtmlBlockMenu")); if (!yy_HtmlBlockOpenMenu(G)) { goto l980; }
  4576. l981:;
  4577. { int yypos982= G->pos, yythunkpos982= G->thunkpos;
  4578. { int yypos983= G->pos, yythunkpos983= G->thunkpos; if (!yy_HtmlBlockMenu(G)) { goto l984; } goto l983;
  4579. l984:; G->pos= yypos983; G->thunkpos= yythunkpos983;
  4580. { int yypos985= G->pos, yythunkpos985= G->thunkpos; if (!yy_HtmlBlockCloseMenu(G)) { goto l985; } goto l982;
  4581. l985:; G->pos= yypos985; G->thunkpos= yythunkpos985;
  4582. } if (!yymatchDot(G)) goto l982;
  4583. }
  4584. l983:; goto l981;
  4585. l982:; G->pos= yypos982; G->thunkpos= yythunkpos982;
  4586. } if (!yy_HtmlBlockCloseMenu(G)) { goto l980; }
  4587. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4588. return 1;
  4589. l980:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4590. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
  4591. return 0;
  4592. }
  4593. YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G)
  4594. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4595. yyprintf((stderr, "%s\n", "HtmlBlockCloseMenu")); if (!yymatchChar(G, '<')) goto l986; if (!yy_Spnl(G)) { goto l986; } if (!yymatchChar(G, '/')) goto l986;
  4596. { int yypos987= G->pos, yythunkpos987= G->thunkpos; if (!yymatchString(G, "menu")) goto l988; goto l987;
  4597. l988:; G->pos= yypos987; G->thunkpos= yythunkpos987; if (!yymatchString(G, "MENU")) goto l986;
  4598. }
  4599. l987:; if (!yy_Spnl(G)) { goto l986; } if (!yymatchChar(G, '>')) goto l986;
  4600. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4601. return 1;
  4602. l986:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4603. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
  4604. return 0;
  4605. }
  4606. YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G)
  4607. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4608. yyprintf((stderr, "%s\n", "HtmlBlockOpenMenu")); if (!yymatchChar(G, '<')) goto l989; if (!yy_Spnl(G)) { goto l989; }
  4609. { int yypos990= G->pos, yythunkpos990= G->thunkpos; if (!yymatchString(G, "menu")) goto l991; goto l990;
  4610. l991:; G->pos= yypos990; G->thunkpos= yythunkpos990; if (!yymatchString(G, "MENU")) goto l989;
  4611. }
  4612. l990:; if (!yy_Spnl(G)) { goto l989; }
  4613. l992:;
  4614. { int yypos993= G->pos, yythunkpos993= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l993; } goto l992;
  4615. l993:; G->pos= yypos993; G->thunkpos= yythunkpos993;
  4616. } if (!yymatchChar(G, '>')) goto l989;
  4617. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4618. return 1;
  4619. l989:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4620. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
  4621. return 0;
  4622. }
  4623. YY_RULE(int) yy_HtmlBlockH6(GREG *G)
  4624. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4625. yyprintf((stderr, "%s\n", "HtmlBlockH6")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l994; if (!yy_LocMarker(G)) { goto l994; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH6(G)) { goto l994; }
  4626. l995:;
  4627. { int yypos996= G->pos, yythunkpos996= G->thunkpos;
  4628. { int yypos997= G->pos, yythunkpos997= G->thunkpos; if (!yy_HtmlBlockH6(G)) { goto l998; } goto l997;
  4629. l998:; G->pos= yypos997; G->thunkpos= yythunkpos997;
  4630. { int yypos999= G->pos, yythunkpos999= G->thunkpos; if (!yy_HtmlBlockCloseH6(G)) { goto l999; } goto l996;
  4631. l999:; G->pos= yypos999; G->thunkpos= yythunkpos999;
  4632. } if (!yymatchDot(G)) goto l996;
  4633. }
  4634. l997:; goto l995;
  4635. l996:; G->pos= yypos996; G->thunkpos= yythunkpos996;
  4636. } if (!yy_HtmlBlockCloseH6(G)) { goto l994; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l994; yyDo(G, yy_1_HtmlBlockH6, G->begin, G->end);
  4637. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH6", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4638. return 1;
  4639. l994:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4640. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH6", G->buf+G->pos));
  4641. return 0;
  4642. }
  4643. YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G)
  4644. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4645. yyprintf((stderr, "%s\n", "HtmlBlockCloseH6")); if (!yymatchChar(G, '<')) goto l1000; if (!yy_Spnl(G)) { goto l1000; } if (!yymatchChar(G, '/')) goto l1000;
  4646. { int yypos1001= G->pos, yythunkpos1001= G->thunkpos; if (!yymatchString(G, "h6")) goto l1002; goto l1001;
  4647. l1002:; G->pos= yypos1001; G->thunkpos= yythunkpos1001; if (!yymatchString(G, "H6")) goto l1000;
  4648. }
  4649. l1001:; if (!yy_Spnl(G)) { goto l1000; } if (!yymatchChar(G, '>')) goto l1000;
  4650. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4651. return 1;
  4652. l1000:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4653. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
  4654. return 0;
  4655. }
  4656. YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G)
  4657. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4658. yyprintf((stderr, "%s\n", "HtmlBlockOpenH6")); if (!yymatchChar(G, '<')) goto l1003; if (!yy_Spnl(G)) { goto l1003; }
  4659. { int yypos1004= G->pos, yythunkpos1004= G->thunkpos; if (!yymatchString(G, "h6")) goto l1005; goto l1004;
  4660. l1005:; G->pos= yypos1004; G->thunkpos= yythunkpos1004; if (!yymatchString(G, "H6")) goto l1003;
  4661. }
  4662. l1004:; if (!yy_Spnl(G)) { goto l1003; }
  4663. l1006:;
  4664. { int yypos1007= G->pos, yythunkpos1007= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1007; } goto l1006;
  4665. l1007:; G->pos= yypos1007; G->thunkpos= yythunkpos1007;
  4666. } if (!yymatchChar(G, '>')) goto l1003;
  4667. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4668. return 1;
  4669. l1003:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4670. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
  4671. return 0;
  4672. }
  4673. YY_RULE(int) yy_HtmlBlockH5(GREG *G)
  4674. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4675. yyprintf((stderr, "%s\n", "HtmlBlockH5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1008; if (!yy_LocMarker(G)) { goto l1008; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH5(G)) { goto l1008; }
  4676. l1009:;
  4677. { int yypos1010= G->pos, yythunkpos1010= G->thunkpos;
  4678. { int yypos1011= G->pos, yythunkpos1011= G->thunkpos; if (!yy_HtmlBlockH5(G)) { goto l1012; } goto l1011;
  4679. l1012:; G->pos= yypos1011; G->thunkpos= yythunkpos1011;
  4680. { int yypos1013= G->pos, yythunkpos1013= G->thunkpos; if (!yy_HtmlBlockCloseH5(G)) { goto l1013; } goto l1010;
  4681. l1013:; G->pos= yypos1013; G->thunkpos= yythunkpos1013;
  4682. } if (!yymatchDot(G)) goto l1010;
  4683. }
  4684. l1011:; goto l1009;
  4685. l1010:; G->pos= yypos1010; G->thunkpos= yythunkpos1010;
  4686. } if (!yy_HtmlBlockCloseH5(G)) { goto l1008; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1008; yyDo(G, yy_1_HtmlBlockH5, G->begin, G->end);
  4687. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH5", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4688. return 1;
  4689. l1008:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4690. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH5", G->buf+G->pos));
  4691. return 0;
  4692. }
  4693. YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G)
  4694. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4695. yyprintf((stderr, "%s\n", "HtmlBlockCloseH5")); if (!yymatchChar(G, '<')) goto l1014; if (!yy_Spnl(G)) { goto l1014; } if (!yymatchChar(G, '/')) goto l1014;
  4696. { int yypos1015= G->pos, yythunkpos1015= G->thunkpos; if (!yymatchString(G, "h5")) goto l1016; goto l1015;
  4697. l1016:; G->pos= yypos1015; G->thunkpos= yythunkpos1015; if (!yymatchString(G, "H5")) goto l1014;
  4698. }
  4699. l1015:; if (!yy_Spnl(G)) { goto l1014; } if (!yymatchChar(G, '>')) goto l1014;
  4700. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  4701. return 1;
  4702. l1014:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4703. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
  4704. return 0;
  4705. }
  4706. YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G)
  4707. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4708. yyprintf((stderr, "%s\n", "HtmlBlockOpenH5")); if (!yymatchChar(G, '<')) goto l1017; if (!yy_Spnl(G)) { goto l1017; }
  4709. { int yypos1018= G->pos, yythunkpos1018= G->thunkpos; if (!yymatchString(G, "h5")) goto l1019; goto l1018;
  4710. l1019:; G->pos= yypos1018; G->thunkpos= yythunkpos1018; if (!yymatchString(G, "H5")) goto l1017;
  4711. }
  4712. l1018:; if (!yy_Spnl(G)) { goto l1017; }
  4713. l1020:;
  4714. { int yypos1021= G->pos, yythunkpos1021= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1021; } goto l1020;
  4715. l1021:; G->pos= yypos1021; G->thunkpos= yythunkpos1021;
  4716. } if (!yymatchChar(G, '>')) goto l1017;
  4717. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  4718. return 1;
  4719. l1017:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4720. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
  4721. return 0;
  4722. }
  4723. YY_RULE(int) yy_HtmlBlockH4(GREG *G)
  4724. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4725. yyprintf((stderr, "%s\n", "HtmlBlockH4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1022; if (!yy_LocMarker(G)) { goto l1022; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH4(G)) { goto l1022; }
  4726. l1023:;
  4727. { int yypos1024= G->pos, yythunkpos1024= G->thunkpos;
  4728. { int yypos1025= G->pos, yythunkpos1025= G->thunkpos; if (!yy_HtmlBlockH4(G)) { goto l1026; } goto l1025;
  4729. l1026:; G->pos= yypos1025; G->thunkpos= yythunkpos1025;
  4730. { int yypos1027= G->pos, yythunkpos1027= G->thunkpos; if (!yy_HtmlBlockCloseH4(G)) { goto l1027; } goto l1024;
  4731. l1027:; G->pos= yypos1027; G->thunkpos= yythunkpos1027;
  4732. } if (!yymatchDot(G)) goto l1024;
  4733. }
  4734. l1025:; goto l1023;
  4735. l1024:; G->pos= yypos1024; G->thunkpos= yythunkpos1024;
  4736. } if (!yy_HtmlBlockCloseH4(G)) { goto l1022; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1022; yyDo(G, yy_1_HtmlBlockH4, G->begin, G->end);
  4737. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH4", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4738. return 1;
  4739. l1022:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4740. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH4", G->buf+G->pos));
  4741. return 0;
  4742. }
  4743. YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G)
  4744. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4745. yyprintf((stderr, "%s\n", "HtmlBlockCloseH4")); if (!yymatchChar(G, '<')) goto l1028; if (!yy_Spnl(G)) { goto l1028; } if (!yymatchChar(G, '/')) goto l1028;
  4746. { int yypos1029= G->pos, yythunkpos1029= G->thunkpos; if (!yymatchString(G, "h4")) goto l1030; goto l1029;
  4747. l1030:; G->pos= yypos1029; G->thunkpos= yythunkpos1029; if (!yymatchString(G, "H4")) goto l1028;
  4748. }
  4749. l1029:; if (!yy_Spnl(G)) { goto l1028; } if (!yymatchChar(G, '>')) goto l1028;
  4750. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  4751. return 1;
  4752. l1028:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4753. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
  4754. return 0;
  4755. }
  4756. YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G)
  4757. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4758. yyprintf((stderr, "%s\n", "HtmlBlockOpenH4")); if (!yymatchChar(G, '<')) goto l1031; if (!yy_Spnl(G)) { goto l1031; }
  4759. { int yypos1032= G->pos, yythunkpos1032= G->thunkpos; if (!yymatchString(G, "h4")) goto l1033; goto l1032;
  4760. l1033:; G->pos= yypos1032; G->thunkpos= yythunkpos1032; if (!yymatchString(G, "H4")) goto l1031;
  4761. }
  4762. l1032:; if (!yy_Spnl(G)) { goto l1031; }
  4763. l1034:;
  4764. { int yypos1035= G->pos, yythunkpos1035= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1035; } goto l1034;
  4765. l1035:; G->pos= yypos1035; G->thunkpos= yythunkpos1035;
  4766. } if (!yymatchChar(G, '>')) goto l1031;
  4767. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  4768. return 1;
  4769. l1031:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4770. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
  4771. return 0;
  4772. }
  4773. YY_RULE(int) yy_HtmlBlockH3(GREG *G)
  4774. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4775. yyprintf((stderr, "%s\n", "HtmlBlockH3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1036; if (!yy_LocMarker(G)) { goto l1036; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH3(G)) { goto l1036; }
  4776. l1037:;
  4777. { int yypos1038= G->pos, yythunkpos1038= G->thunkpos;
  4778. { int yypos1039= G->pos, yythunkpos1039= G->thunkpos; if (!yy_HtmlBlockH3(G)) { goto l1040; } goto l1039;
  4779. l1040:; G->pos= yypos1039; G->thunkpos= yythunkpos1039;
  4780. { int yypos1041= G->pos, yythunkpos1041= G->thunkpos; if (!yy_HtmlBlockCloseH3(G)) { goto l1041; } goto l1038;
  4781. l1041:; G->pos= yypos1041; G->thunkpos= yythunkpos1041;
  4782. } if (!yymatchDot(G)) goto l1038;
  4783. }
  4784. l1039:; goto l1037;
  4785. l1038:; G->pos= yypos1038; G->thunkpos= yythunkpos1038;
  4786. } if (!yy_HtmlBlockCloseH3(G)) { goto l1036; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1036; yyDo(G, yy_1_HtmlBlockH3, G->begin, G->end);
  4787. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH3", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4788. return 1;
  4789. l1036:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4790. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH3", G->buf+G->pos));
  4791. return 0;
  4792. }
  4793. YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G)
  4794. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4795. yyprintf((stderr, "%s\n", "HtmlBlockCloseH3")); if (!yymatchChar(G, '<')) goto l1042; if (!yy_Spnl(G)) { goto l1042; } if (!yymatchChar(G, '/')) goto l1042;
  4796. { int yypos1043= G->pos, yythunkpos1043= G->thunkpos; if (!yymatchString(G, "h3")) goto l1044; goto l1043;
  4797. l1044:; G->pos= yypos1043; G->thunkpos= yythunkpos1043; if (!yymatchString(G, "H3")) goto l1042;
  4798. }
  4799. l1043:; if (!yy_Spnl(G)) { goto l1042; } if (!yymatchChar(G, '>')) goto l1042;
  4800. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  4801. return 1;
  4802. l1042:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4803. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
  4804. return 0;
  4805. }
  4806. YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G)
  4807. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4808. yyprintf((stderr, "%s\n", "HtmlBlockOpenH3")); if (!yymatchChar(G, '<')) goto l1045; if (!yy_Spnl(G)) { goto l1045; }
  4809. { int yypos1046= G->pos, yythunkpos1046= G->thunkpos; if (!yymatchString(G, "h3")) goto l1047; goto l1046;
  4810. l1047:; G->pos= yypos1046; G->thunkpos= yythunkpos1046; if (!yymatchString(G, "H3")) goto l1045;
  4811. }
  4812. l1046:; if (!yy_Spnl(G)) { goto l1045; }
  4813. l1048:;
  4814. { int yypos1049= G->pos, yythunkpos1049= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1049; } goto l1048;
  4815. l1049:; G->pos= yypos1049; G->thunkpos= yythunkpos1049;
  4816. } if (!yymatchChar(G, '>')) goto l1045;
  4817. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  4818. return 1;
  4819. l1045:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4820. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
  4821. return 0;
  4822. }
  4823. YY_RULE(int) yy_HtmlBlockH2(GREG *G)
  4824. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4825. yyprintf((stderr, "%s\n", "HtmlBlockH2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1050; if (!yy_LocMarker(G)) { goto l1050; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH2(G)) { goto l1050; }
  4826. l1051:;
  4827. { int yypos1052= G->pos, yythunkpos1052= G->thunkpos;
  4828. { int yypos1053= G->pos, yythunkpos1053= G->thunkpos; if (!yy_HtmlBlockH2(G)) { goto l1054; } goto l1053;
  4829. l1054:; G->pos= yypos1053; G->thunkpos= yythunkpos1053;
  4830. { int yypos1055= G->pos, yythunkpos1055= G->thunkpos; if (!yy_HtmlBlockCloseH2(G)) { goto l1055; } goto l1052;
  4831. l1055:; G->pos= yypos1055; G->thunkpos= yythunkpos1055;
  4832. } if (!yymatchDot(G)) goto l1052;
  4833. }
  4834. l1053:; goto l1051;
  4835. l1052:; G->pos= yypos1052; G->thunkpos= yythunkpos1052;
  4836. } if (!yy_HtmlBlockCloseH2(G)) { goto l1050; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1050; yyDo(G, yy_1_HtmlBlockH2, G->begin, G->end);
  4837. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4838. return 1;
  4839. l1050:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4840. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH2", G->buf+G->pos));
  4841. return 0;
  4842. }
  4843. YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G)
  4844. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4845. yyprintf((stderr, "%s\n", "HtmlBlockCloseH2")); if (!yymatchChar(G, '<')) goto l1056; if (!yy_Spnl(G)) { goto l1056; } if (!yymatchChar(G, '/')) goto l1056;
  4846. { int yypos1057= G->pos, yythunkpos1057= G->thunkpos; if (!yymatchString(G, "h2")) goto l1058; goto l1057;
  4847. l1058:; G->pos= yypos1057; G->thunkpos= yythunkpos1057; if (!yymatchString(G, "H2")) goto l1056;
  4848. }
  4849. l1057:; if (!yy_Spnl(G)) { goto l1056; } if (!yymatchChar(G, '>')) goto l1056;
  4850. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  4851. return 1;
  4852. l1056:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4853. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
  4854. return 0;
  4855. }
  4856. YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G)
  4857. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4858. yyprintf((stderr, "%s\n", "HtmlBlockOpenH2")); if (!yymatchChar(G, '<')) goto l1059; if (!yy_Spnl(G)) { goto l1059; }
  4859. { int yypos1060= G->pos, yythunkpos1060= G->thunkpos; if (!yymatchString(G, "h2")) goto l1061; goto l1060;
  4860. l1061:; G->pos= yypos1060; G->thunkpos= yythunkpos1060; if (!yymatchString(G, "H2")) goto l1059;
  4861. }
  4862. l1060:; if (!yy_Spnl(G)) { goto l1059; }
  4863. l1062:;
  4864. { int yypos1063= G->pos, yythunkpos1063= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1063; } goto l1062;
  4865. l1063:; G->pos= yypos1063; G->thunkpos= yythunkpos1063;
  4866. } if (!yymatchChar(G, '>')) goto l1059;
  4867. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  4868. return 1;
  4869. l1059:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4870. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
  4871. return 0;
  4872. }
  4873. YY_RULE(int) yy_HtmlBlockH1(GREG *G)
  4874. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  4875. yyprintf((stderr, "%s\n", "HtmlBlockH1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1064; if (!yy_LocMarker(G)) { goto l1064; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH1(G)) { goto l1064; }
  4876. l1065:;
  4877. { int yypos1066= G->pos, yythunkpos1066= G->thunkpos;
  4878. { int yypos1067= G->pos, yythunkpos1067= G->thunkpos; if (!yy_HtmlBlockH1(G)) { goto l1068; } goto l1067;
  4879. l1068:; G->pos= yypos1067; G->thunkpos= yythunkpos1067;
  4880. { int yypos1069= G->pos, yythunkpos1069= G->thunkpos; if (!yy_HtmlBlockCloseH1(G)) { goto l1069; } goto l1066;
  4881. l1069:; G->pos= yypos1069; G->thunkpos= yythunkpos1069;
  4882. } if (!yymatchDot(G)) goto l1066;
  4883. }
  4884. l1067:; goto l1065;
  4885. l1066:; G->pos= yypos1066; G->thunkpos= yythunkpos1066;
  4886. } if (!yy_HtmlBlockCloseH1(G)) { goto l1064; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1064; yyDo(G, yy_1_HtmlBlockH1, G->begin, G->end);
  4887. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  4888. return 1;
  4889. l1064:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4890. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH1", G->buf+G->pos));
  4891. return 0;
  4892. }
  4893. YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G)
  4894. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4895. yyprintf((stderr, "%s\n", "HtmlBlockCloseH1")); if (!yymatchChar(G, '<')) goto l1070; if (!yy_Spnl(G)) { goto l1070; } if (!yymatchChar(G, '/')) goto l1070;
  4896. { int yypos1071= G->pos, yythunkpos1071= G->thunkpos; if (!yymatchString(G, "h1")) goto l1072; goto l1071;
  4897. l1072:; G->pos= yypos1071; G->thunkpos= yythunkpos1071; if (!yymatchString(G, "H1")) goto l1070;
  4898. }
  4899. l1071:; if (!yy_Spnl(G)) { goto l1070; } if (!yymatchChar(G, '>')) goto l1070;
  4900. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  4901. return 1;
  4902. l1070:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4903. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
  4904. return 0;
  4905. }
  4906. YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G)
  4907. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4908. yyprintf((stderr, "%s\n", "HtmlBlockOpenH1")); if (!yymatchChar(G, '<')) goto l1073; if (!yy_Spnl(G)) { goto l1073; }
  4909. { int yypos1074= G->pos, yythunkpos1074= G->thunkpos; if (!yymatchString(G, "h1")) goto l1075; goto l1074;
  4910. l1075:; G->pos= yypos1074; G->thunkpos= yythunkpos1074; if (!yymatchString(G, "H1")) goto l1073;
  4911. }
  4912. l1074:; if (!yy_Spnl(G)) { goto l1073; }
  4913. l1076:;
  4914. { int yypos1077= G->pos, yythunkpos1077= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1077; } goto l1076;
  4915. l1077:; G->pos= yypos1077; G->thunkpos= yythunkpos1077;
  4916. } if (!yymatchChar(G, '>')) goto l1073;
  4917. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  4918. return 1;
  4919. l1073:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4920. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
  4921. return 0;
  4922. }
  4923. YY_RULE(int) yy_HtmlBlockForm(GREG *G)
  4924. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4925. yyprintf((stderr, "%s\n", "HtmlBlockForm")); if (!yy_HtmlBlockOpenForm(G)) { goto l1078; }
  4926. l1079:;
  4927. { int yypos1080= G->pos, yythunkpos1080= G->thunkpos;
  4928. { int yypos1081= G->pos, yythunkpos1081= G->thunkpos; if (!yy_HtmlBlockForm(G)) { goto l1082; } goto l1081;
  4929. l1082:; G->pos= yypos1081; G->thunkpos= yythunkpos1081;
  4930. { int yypos1083= G->pos, yythunkpos1083= G->thunkpos; if (!yy_HtmlBlockCloseForm(G)) { goto l1083; } goto l1080;
  4931. l1083:; G->pos= yypos1083; G->thunkpos= yythunkpos1083;
  4932. } if (!yymatchDot(G)) goto l1080;
  4933. }
  4934. l1081:; goto l1079;
  4935. l1080:; G->pos= yypos1080; G->thunkpos= yythunkpos1080;
  4936. } if (!yy_HtmlBlockCloseForm(G)) { goto l1078; }
  4937. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  4938. return 1;
  4939. l1078:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4940. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
  4941. return 0;
  4942. }
  4943. YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G)
  4944. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4945. yyprintf((stderr, "%s\n", "HtmlBlockCloseForm")); if (!yymatchChar(G, '<')) goto l1084; if (!yy_Spnl(G)) { goto l1084; } if (!yymatchChar(G, '/')) goto l1084;
  4946. { int yypos1085= G->pos, yythunkpos1085= G->thunkpos; if (!yymatchString(G, "form")) goto l1086; goto l1085;
  4947. l1086:; G->pos= yypos1085; G->thunkpos= yythunkpos1085; if (!yymatchString(G, "FORM")) goto l1084;
  4948. }
  4949. l1085:; if (!yy_Spnl(G)) { goto l1084; } if (!yymatchChar(G, '>')) goto l1084;
  4950. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  4951. return 1;
  4952. l1084:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4953. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
  4954. return 0;
  4955. }
  4956. YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G)
  4957. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4958. yyprintf((stderr, "%s\n", "HtmlBlockOpenForm")); if (!yymatchChar(G, '<')) goto l1087; if (!yy_Spnl(G)) { goto l1087; }
  4959. { int yypos1088= G->pos, yythunkpos1088= G->thunkpos; if (!yymatchString(G, "form")) goto l1089; goto l1088;
  4960. l1089:; G->pos= yypos1088; G->thunkpos= yythunkpos1088; if (!yymatchString(G, "FORM")) goto l1087;
  4961. }
  4962. l1088:; if (!yy_Spnl(G)) { goto l1087; }
  4963. l1090:;
  4964. { int yypos1091= G->pos, yythunkpos1091= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1091; } goto l1090;
  4965. l1091:; G->pos= yypos1091; G->thunkpos= yythunkpos1091;
  4966. } if (!yymatchChar(G, '>')) goto l1087;
  4967. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  4968. return 1;
  4969. l1087:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4970. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
  4971. return 0;
  4972. }
  4973. YY_RULE(int) yy_HtmlBlockFieldset(GREG *G)
  4974. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4975. yyprintf((stderr, "%s\n", "HtmlBlockFieldset")); if (!yy_HtmlBlockOpenFieldset(G)) { goto l1092; }
  4976. l1093:;
  4977. { int yypos1094= G->pos, yythunkpos1094= G->thunkpos;
  4978. { int yypos1095= G->pos, yythunkpos1095= G->thunkpos; if (!yy_HtmlBlockFieldset(G)) { goto l1096; } goto l1095;
  4979. l1096:; G->pos= yypos1095; G->thunkpos= yythunkpos1095;
  4980. { int yypos1097= G->pos, yythunkpos1097= G->thunkpos; if (!yy_HtmlBlockCloseFieldset(G)) { goto l1097; } goto l1094;
  4981. l1097:; G->pos= yypos1097; G->thunkpos= yythunkpos1097;
  4982. } if (!yymatchDot(G)) goto l1094;
  4983. }
  4984. l1095:; goto l1093;
  4985. l1094:; G->pos= yypos1094; G->thunkpos= yythunkpos1094;
  4986. } if (!yy_HtmlBlockCloseFieldset(G)) { goto l1092; }
  4987. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  4988. return 1;
  4989. l1092:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  4990. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
  4991. return 0;
  4992. }
  4993. YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G)
  4994. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  4995. yyprintf((stderr, "%s\n", "HtmlBlockCloseFieldset")); if (!yymatchChar(G, '<')) goto l1098; if (!yy_Spnl(G)) { goto l1098; } if (!yymatchChar(G, '/')) goto l1098;
  4996. { int yypos1099= G->pos, yythunkpos1099= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1100; goto l1099;
  4997. l1100:; G->pos= yypos1099; G->thunkpos= yythunkpos1099; if (!yymatchString(G, "FIELDSET")) goto l1098;
  4998. }
  4999. l1099:; if (!yy_Spnl(G)) { goto l1098; } if (!yymatchChar(G, '>')) goto l1098;
  5000. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5001. return 1;
  5002. l1098:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5003. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
  5004. return 0;
  5005. }
  5006. YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G)
  5007. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5008. yyprintf((stderr, "%s\n", "HtmlBlockOpenFieldset")); if (!yymatchChar(G, '<')) goto l1101; if (!yy_Spnl(G)) { goto l1101; }
  5009. { int yypos1102= G->pos, yythunkpos1102= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1103; goto l1102;
  5010. l1103:; G->pos= yypos1102; G->thunkpos= yythunkpos1102; if (!yymatchString(G, "FIELDSET")) goto l1101;
  5011. }
  5012. l1102:; if (!yy_Spnl(G)) { goto l1101; }
  5013. l1104:;
  5014. { int yypos1105= G->pos, yythunkpos1105= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1105; } goto l1104;
  5015. l1105:; G->pos= yypos1105; G->thunkpos= yythunkpos1105;
  5016. } if (!yymatchChar(G, '>')) goto l1101;
  5017. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5018. return 1;
  5019. l1101:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5020. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
  5021. return 0;
  5022. }
  5023. YY_RULE(int) yy_HtmlBlockDl(GREG *G)
  5024. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5025. yyprintf((stderr, "%s\n", "HtmlBlockDl")); if (!yy_HtmlBlockOpenDl(G)) { goto l1106; }
  5026. l1107:;
  5027. { int yypos1108= G->pos, yythunkpos1108= G->thunkpos;
  5028. { int yypos1109= G->pos, yythunkpos1109= G->thunkpos; if (!yy_HtmlBlockDl(G)) { goto l1110; } goto l1109;
  5029. l1110:; G->pos= yypos1109; G->thunkpos= yythunkpos1109;
  5030. { int yypos1111= G->pos, yythunkpos1111= G->thunkpos; if (!yy_HtmlBlockCloseDl(G)) { goto l1111; } goto l1108;
  5031. l1111:; G->pos= yypos1111; G->thunkpos= yythunkpos1111;
  5032. } if (!yymatchDot(G)) goto l1108;
  5033. }
  5034. l1109:; goto l1107;
  5035. l1108:; G->pos= yypos1108; G->thunkpos= yythunkpos1108;
  5036. } if (!yy_HtmlBlockCloseDl(G)) { goto l1106; }
  5037. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5038. return 1;
  5039. l1106:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5040. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
  5041. return 0;
  5042. }
  5043. YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G)
  5044. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5045. yyprintf((stderr, "%s\n", "HtmlBlockCloseDl")); if (!yymatchChar(G, '<')) goto l1112; if (!yy_Spnl(G)) { goto l1112; } if (!yymatchChar(G, '/')) goto l1112;
  5046. { int yypos1113= G->pos, yythunkpos1113= G->thunkpos; if (!yymatchString(G, "dl")) goto l1114; goto l1113;
  5047. l1114:; G->pos= yypos1113; G->thunkpos= yythunkpos1113; if (!yymatchString(G, "DL")) goto l1112;
  5048. }
  5049. l1113:; if (!yy_Spnl(G)) { goto l1112; } if (!yymatchChar(G, '>')) goto l1112;
  5050. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5051. return 1;
  5052. l1112:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5053. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
  5054. return 0;
  5055. }
  5056. YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G)
  5057. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5058. yyprintf((stderr, "%s\n", "HtmlBlockOpenDl")); if (!yymatchChar(G, '<')) goto l1115; if (!yy_Spnl(G)) { goto l1115; }
  5059. { int yypos1116= G->pos, yythunkpos1116= G->thunkpos; if (!yymatchString(G, "dl")) goto l1117; goto l1116;
  5060. l1117:; G->pos= yypos1116; G->thunkpos= yythunkpos1116; if (!yymatchString(G, "DL")) goto l1115;
  5061. }
  5062. l1116:; if (!yy_Spnl(G)) { goto l1115; }
  5063. l1118:;
  5064. { int yypos1119= G->pos, yythunkpos1119= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1119; } goto l1118;
  5065. l1119:; G->pos= yypos1119; G->thunkpos= yythunkpos1119;
  5066. } if (!yymatchChar(G, '>')) goto l1115;
  5067. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5068. return 1;
  5069. l1115:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5070. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
  5071. return 0;
  5072. }
  5073. YY_RULE(int) yy_HtmlBlockDiv(GREG *G)
  5074. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5075. yyprintf((stderr, "%s\n", "HtmlBlockDiv")); if (!yy_HtmlBlockOpenDiv(G)) { goto l1120; }
  5076. l1121:;
  5077. { int yypos1122= G->pos, yythunkpos1122= G->thunkpos;
  5078. { int yypos1123= G->pos, yythunkpos1123= G->thunkpos; if (!yy_HtmlBlockDiv(G)) { goto l1124; } goto l1123;
  5079. l1124:; G->pos= yypos1123; G->thunkpos= yythunkpos1123;
  5080. { int yypos1125= G->pos, yythunkpos1125= G->thunkpos; if (!yy_HtmlBlockCloseDiv(G)) { goto l1125; } goto l1122;
  5081. l1125:; G->pos= yypos1125; G->thunkpos= yythunkpos1125;
  5082. } if (!yymatchDot(G)) goto l1122;
  5083. }
  5084. l1123:; goto l1121;
  5085. l1122:; G->pos= yypos1122; G->thunkpos= yythunkpos1122;
  5086. } if (!yy_HtmlBlockCloseDiv(G)) { goto l1120; }
  5087. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5088. return 1;
  5089. l1120:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5090. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
  5091. return 0;
  5092. }
  5093. YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G)
  5094. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5095. yyprintf((stderr, "%s\n", "HtmlBlockCloseDiv")); if (!yymatchChar(G, '<')) goto l1126; if (!yy_Spnl(G)) { goto l1126; } if (!yymatchChar(G, '/')) goto l1126;
  5096. { int yypos1127= G->pos, yythunkpos1127= G->thunkpos; if (!yymatchString(G, "div")) goto l1128; goto l1127;
  5097. l1128:; G->pos= yypos1127; G->thunkpos= yythunkpos1127; if (!yymatchString(G, "DIV")) goto l1126;
  5098. }
  5099. l1127:; if (!yy_Spnl(G)) { goto l1126; } if (!yymatchChar(G, '>')) goto l1126;
  5100. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5101. return 1;
  5102. l1126:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5103. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
  5104. return 0;
  5105. }
  5106. YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G)
  5107. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5108. yyprintf((stderr, "%s\n", "HtmlBlockOpenDiv")); if (!yymatchChar(G, '<')) goto l1129; if (!yy_Spnl(G)) { goto l1129; }
  5109. { int yypos1130= G->pos, yythunkpos1130= G->thunkpos; if (!yymatchString(G, "div")) goto l1131; goto l1130;
  5110. l1131:; G->pos= yypos1130; G->thunkpos= yythunkpos1130; if (!yymatchString(G, "DIV")) goto l1129;
  5111. }
  5112. l1130:; if (!yy_Spnl(G)) { goto l1129; }
  5113. l1132:;
  5114. { int yypos1133= G->pos, yythunkpos1133= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1133; } goto l1132;
  5115. l1133:; G->pos= yypos1133; G->thunkpos= yythunkpos1133;
  5116. } if (!yymatchChar(G, '>')) goto l1129;
  5117. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5118. return 1;
  5119. l1129:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5120. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
  5121. return 0;
  5122. }
  5123. YY_RULE(int) yy_HtmlBlockDir(GREG *G)
  5124. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5125. yyprintf((stderr, "%s\n", "HtmlBlockDir")); if (!yy_HtmlBlockOpenDir(G)) { goto l1134; }
  5126. l1135:;
  5127. { int yypos1136= G->pos, yythunkpos1136= G->thunkpos;
  5128. { int yypos1137= G->pos, yythunkpos1137= G->thunkpos; if (!yy_HtmlBlockDir(G)) { goto l1138; } goto l1137;
  5129. l1138:; G->pos= yypos1137; G->thunkpos= yythunkpos1137;
  5130. { int yypos1139= G->pos, yythunkpos1139= G->thunkpos; if (!yy_HtmlBlockCloseDir(G)) { goto l1139; } goto l1136;
  5131. l1139:; G->pos= yypos1139; G->thunkpos= yythunkpos1139;
  5132. } if (!yymatchDot(G)) goto l1136;
  5133. }
  5134. l1137:; goto l1135;
  5135. l1136:; G->pos= yypos1136; G->thunkpos= yythunkpos1136;
  5136. } if (!yy_HtmlBlockCloseDir(G)) { goto l1134; }
  5137. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5138. return 1;
  5139. l1134:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5140. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
  5141. return 0;
  5142. }
  5143. YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G)
  5144. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5145. yyprintf((stderr, "%s\n", "HtmlBlockCloseDir")); if (!yymatchChar(G, '<')) goto l1140; if (!yy_Spnl(G)) { goto l1140; } if (!yymatchChar(G, '/')) goto l1140;
  5146. { int yypos1141= G->pos, yythunkpos1141= G->thunkpos; if (!yymatchString(G, "dir")) goto l1142; goto l1141;
  5147. l1142:; G->pos= yypos1141; G->thunkpos= yythunkpos1141; if (!yymatchString(G, "DIR")) goto l1140;
  5148. }
  5149. l1141:; if (!yy_Spnl(G)) { goto l1140; } if (!yymatchChar(G, '>')) goto l1140;
  5150. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5151. return 1;
  5152. l1140:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5153. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
  5154. return 0;
  5155. }
  5156. YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G)
  5157. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5158. yyprintf((stderr, "%s\n", "HtmlBlockOpenDir")); if (!yymatchChar(G, '<')) goto l1143; if (!yy_Spnl(G)) { goto l1143; }
  5159. { int yypos1144= G->pos, yythunkpos1144= G->thunkpos; if (!yymatchString(G, "dir")) goto l1145; goto l1144;
  5160. l1145:; G->pos= yypos1144; G->thunkpos= yythunkpos1144; if (!yymatchString(G, "DIR")) goto l1143;
  5161. }
  5162. l1144:; if (!yy_Spnl(G)) { goto l1143; }
  5163. l1146:;
  5164. { int yypos1147= G->pos, yythunkpos1147= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1147; } goto l1146;
  5165. l1147:; G->pos= yypos1147; G->thunkpos= yythunkpos1147;
  5166. } if (!yymatchChar(G, '>')) goto l1143;
  5167. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5168. return 1;
  5169. l1143:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5170. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
  5171. return 0;
  5172. }
  5173. YY_RULE(int) yy_HtmlBlockCenter(GREG *G)
  5174. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5175. yyprintf((stderr, "%s\n", "HtmlBlockCenter")); if (!yy_HtmlBlockOpenCenter(G)) { goto l1148; }
  5176. l1149:;
  5177. { int yypos1150= G->pos, yythunkpos1150= G->thunkpos;
  5178. { int yypos1151= G->pos, yythunkpos1151= G->thunkpos; if (!yy_HtmlBlockCenter(G)) { goto l1152; } goto l1151;
  5179. l1152:; G->pos= yypos1151; G->thunkpos= yythunkpos1151;
  5180. { int yypos1153= G->pos, yythunkpos1153= G->thunkpos; if (!yy_HtmlBlockCloseCenter(G)) { goto l1153; } goto l1150;
  5181. l1153:; G->pos= yypos1153; G->thunkpos= yythunkpos1153;
  5182. } if (!yymatchDot(G)) goto l1150;
  5183. }
  5184. l1151:; goto l1149;
  5185. l1150:; G->pos= yypos1150; G->thunkpos= yythunkpos1150;
  5186. } if (!yy_HtmlBlockCloseCenter(G)) { goto l1148; }
  5187. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5188. return 1;
  5189. l1148:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5190. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
  5191. return 0;
  5192. }
  5193. YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G)
  5194. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5195. yyprintf((stderr, "%s\n", "HtmlBlockCloseCenter")); if (!yymatchChar(G, '<')) goto l1154; if (!yy_Spnl(G)) { goto l1154; } if (!yymatchChar(G, '/')) goto l1154;
  5196. { int yypos1155= G->pos, yythunkpos1155= G->thunkpos; if (!yymatchString(G, "center")) goto l1156; goto l1155;
  5197. l1156:; G->pos= yypos1155; G->thunkpos= yythunkpos1155; if (!yymatchString(G, "CENTER")) goto l1154;
  5198. }
  5199. l1155:; if (!yy_Spnl(G)) { goto l1154; } if (!yymatchChar(G, '>')) goto l1154;
  5200. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5201. return 1;
  5202. l1154:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5203. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
  5204. return 0;
  5205. }
  5206. YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G)
  5207. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5208. yyprintf((stderr, "%s\n", "HtmlBlockOpenCenter")); if (!yymatchChar(G, '<')) goto l1157; if (!yy_Spnl(G)) { goto l1157; }
  5209. { int yypos1158= G->pos, yythunkpos1158= G->thunkpos; if (!yymatchString(G, "center")) goto l1159; goto l1158;
  5210. l1159:; G->pos= yypos1158; G->thunkpos= yythunkpos1158; if (!yymatchString(G, "CENTER")) goto l1157;
  5211. }
  5212. l1158:; if (!yy_Spnl(G)) { goto l1157; }
  5213. l1160:;
  5214. { int yypos1161= G->pos, yythunkpos1161= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1161; } goto l1160;
  5215. l1161:; G->pos= yypos1161; G->thunkpos= yythunkpos1161;
  5216. } if (!yymatchChar(G, '>')) goto l1157;
  5217. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5218. return 1;
  5219. l1157:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5220. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
  5221. return 0;
  5222. }
  5223. YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G)
  5224. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5225. yyprintf((stderr, "%s\n", "HtmlBlockBlockquote")); if (!yy_HtmlBlockOpenBlockquote(G)) { goto l1162; }
  5226. l1163:;
  5227. { int yypos1164= G->pos, yythunkpos1164= G->thunkpos;
  5228. { int yypos1165= G->pos, yythunkpos1165= G->thunkpos; if (!yy_HtmlBlockBlockquote(G)) { goto l1166; } goto l1165;
  5229. l1166:; G->pos= yypos1165; G->thunkpos= yythunkpos1165;
  5230. { int yypos1167= G->pos, yythunkpos1167= G->thunkpos; if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1167; } goto l1164;
  5231. l1167:; G->pos= yypos1167; G->thunkpos= yythunkpos1167;
  5232. } if (!yymatchDot(G)) goto l1164;
  5233. }
  5234. l1165:; goto l1163;
  5235. l1164:; G->pos= yypos1164; G->thunkpos= yythunkpos1164;
  5236. } if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1162; }
  5237. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5238. return 1;
  5239. l1162:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5240. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
  5241. return 0;
  5242. }
  5243. YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G)
  5244. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5245. yyprintf((stderr, "%s\n", "HtmlBlockCloseBlockquote")); if (!yymatchChar(G, '<')) goto l1168; if (!yy_Spnl(G)) { goto l1168; } if (!yymatchChar(G, '/')) goto l1168;
  5246. { int yypos1169= G->pos, yythunkpos1169= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1170; goto l1169;
  5247. l1170:; G->pos= yypos1169; G->thunkpos= yythunkpos1169; if (!yymatchString(G, "BLOCKQUOTE")) goto l1168;
  5248. }
  5249. l1169:; if (!yy_Spnl(G)) { goto l1168; } if (!yymatchChar(G, '>')) goto l1168;
  5250. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5251. return 1;
  5252. l1168:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5253. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
  5254. return 0;
  5255. }
  5256. YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G)
  5257. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5258. yyprintf((stderr, "%s\n", "HtmlBlockOpenBlockquote")); if (!yymatchChar(G, '<')) goto l1171; if (!yy_Spnl(G)) { goto l1171; }
  5259. { int yypos1172= G->pos, yythunkpos1172= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1173; goto l1172;
  5260. l1173:; G->pos= yypos1172; G->thunkpos= yythunkpos1172; if (!yymatchString(G, "BLOCKQUOTE")) goto l1171;
  5261. }
  5262. l1172:; if (!yy_Spnl(G)) { goto l1171; }
  5263. l1174:;
  5264. { int yypos1175= G->pos, yythunkpos1175= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1175; } goto l1174;
  5265. l1175:; G->pos= yypos1175; G->thunkpos= yythunkpos1175;
  5266. } if (!yymatchChar(G, '>')) goto l1171;
  5267. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5268. return 1;
  5269. l1171:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5270. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
  5271. return 0;
  5272. }
  5273. YY_RULE(int) yy_HtmlBlockAddress(GREG *G)
  5274. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5275. yyprintf((stderr, "%s\n", "HtmlBlockAddress")); if (!yy_HtmlBlockOpenAddress(G)) { goto l1176; }
  5276. l1177:;
  5277. { int yypos1178= G->pos, yythunkpos1178= G->thunkpos;
  5278. { int yypos1179= G->pos, yythunkpos1179= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l1180; } goto l1179;
  5279. l1180:; G->pos= yypos1179; G->thunkpos= yythunkpos1179;
  5280. { int yypos1181= G->pos, yythunkpos1181= G->thunkpos; if (!yy_HtmlBlockCloseAddress(G)) { goto l1181; } goto l1178;
  5281. l1181:; G->pos= yypos1181; G->thunkpos= yythunkpos1181;
  5282. } if (!yymatchDot(G)) goto l1178;
  5283. }
  5284. l1179:; goto l1177;
  5285. l1178:; G->pos= yypos1178; G->thunkpos= yythunkpos1178;
  5286. } if (!yy_HtmlBlockCloseAddress(G)) { goto l1176; }
  5287. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5288. return 1;
  5289. l1176:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5290. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
  5291. return 0;
  5292. }
  5293. YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G)
  5294. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5295. yyprintf((stderr, "%s\n", "HtmlBlockCloseAddress")); if (!yymatchChar(G, '<')) goto l1182; if (!yy_Spnl(G)) { goto l1182; } if (!yymatchChar(G, '/')) goto l1182;
  5296. { int yypos1183= G->pos, yythunkpos1183= G->thunkpos; if (!yymatchString(G, "address")) goto l1184; goto l1183;
  5297. l1184:; G->pos= yypos1183; G->thunkpos= yythunkpos1183; if (!yymatchString(G, "ADDRESS")) goto l1182;
  5298. }
  5299. l1183:; if (!yy_Spnl(G)) { goto l1182; } if (!yymatchChar(G, '>')) goto l1182;
  5300. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5301. return 1;
  5302. l1182:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5303. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
  5304. return 0;
  5305. }
  5306. YY_RULE(int) yy_HtmlAttribute(GREG *G)
  5307. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5308. yyprintf((stderr, "%s\n", "HtmlAttribute"));
  5309. { int yypos1188= G->pos, yythunkpos1188= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1189; } goto l1188;
  5310. l1189:; G->pos= yypos1188; G->thunkpos= yythunkpos1188; if (!yymatchChar(G, '-')) goto l1185;
  5311. }
  5312. l1188:;
  5313. l1186:;
  5314. { int yypos1187= G->pos, yythunkpos1187= G->thunkpos;
  5315. { int yypos1190= G->pos, yythunkpos1190= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1191; } goto l1190;
  5316. l1191:; G->pos= yypos1190; G->thunkpos= yythunkpos1190; if (!yymatchChar(G, '-')) goto l1187;
  5317. }
  5318. l1190:; goto l1186;
  5319. l1187:; G->pos= yypos1187; G->thunkpos= yythunkpos1187;
  5320. } if (!yy_Spnl(G)) { goto l1185; }
  5321. { int yypos1192= G->pos, yythunkpos1192= G->thunkpos; if (!yymatchChar(G, '=')) goto l1192; if (!yy_Spnl(G)) { goto l1192; }
  5322. { int yypos1194= G->pos, yythunkpos1194= G->thunkpos; if (!yy_Quoted(G)) { goto l1195; } goto l1194;
  5323. l1195:; G->pos= yypos1194; G->thunkpos= yythunkpos1194;
  5324. { int yypos1198= G->pos, yythunkpos1198= G->thunkpos; if (!yymatchChar(G, '>')) goto l1198; goto l1192;
  5325. l1198:; G->pos= yypos1198; G->thunkpos= yythunkpos1198;
  5326. } if (!yy_Nonspacechar(G)) { goto l1192; }
  5327. l1196:;
  5328. { int yypos1197= G->pos, yythunkpos1197= G->thunkpos;
  5329. { int yypos1199= G->pos, yythunkpos1199= G->thunkpos; if (!yymatchChar(G, '>')) goto l1199; goto l1197;
  5330. l1199:; G->pos= yypos1199; G->thunkpos= yythunkpos1199;
  5331. } if (!yy_Nonspacechar(G)) { goto l1197; } goto l1196;
  5332. l1197:; G->pos= yypos1197; G->thunkpos= yythunkpos1197;
  5333. }
  5334. }
  5335. l1194:; goto l1193;
  5336. l1192:; G->pos= yypos1192; G->thunkpos= yythunkpos1192;
  5337. }
  5338. l1193:; if (!yy_Spnl(G)) { goto l1185; }
  5339. yyprintf((stderr, " ok %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5340. return 1;
  5341. l1185:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5342. yyprintf((stderr, " fail %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
  5343. return 0;
  5344. }
  5345. YY_RULE(int) yy_Spnl(GREG *G)
  5346. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5347. yyprintf((stderr, "%s\n", "Spnl")); if (!yy_Sp(G)) { goto l1200; }
  5348. { int yypos1201= G->pos, yythunkpos1201= G->thunkpos; if (!yy_Newline(G)) { goto l1201; } if (!yy_Sp(G)) { goto l1201; } goto l1202;
  5349. l1201:; G->pos= yypos1201; G->thunkpos= yythunkpos1201;
  5350. }
  5351. l1202:;
  5352. yyprintf((stderr, " ok %s @ %s\n", "Spnl", G->buf+G->pos));
  5353. return 1;
  5354. l1200:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5355. yyprintf((stderr, " fail %s @ %s\n", "Spnl", G->buf+G->pos));
  5356. return 0;
  5357. }
  5358. YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G)
  5359. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5360. yyprintf((stderr, "%s\n", "HtmlBlockOpenAddress")); if (!yymatchChar(G, '<')) goto l1203; if (!yy_Spnl(G)) { goto l1203; }
  5361. { int yypos1204= G->pos, yythunkpos1204= G->thunkpos; if (!yymatchString(G, "address")) goto l1205; goto l1204;
  5362. l1205:; G->pos= yypos1204; G->thunkpos= yythunkpos1204; if (!yymatchString(G, "ADDRESS")) goto l1203;
  5363. }
  5364. l1204:; if (!yy_Spnl(G)) { goto l1203; }
  5365. l1206:;
  5366. { int yypos1207= G->pos, yythunkpos1207= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1207; } goto l1206;
  5367. l1207:; G->pos= yypos1207; G->thunkpos= yythunkpos1207;
  5368. } if (!yymatchChar(G, '>')) goto l1203;
  5369. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5370. return 1;
  5371. l1203:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5372. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
  5373. return 0;
  5374. }
  5375. YY_RULE(int) yy_OptionallyIndentedLine(GREG *G)
  5376. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5377. yyprintf((stderr, "%s\n", "OptionallyIndentedLine"));
  5378. { int yypos1209= G->pos, yythunkpos1209= G->thunkpos; if (!yy_Indent(G)) { goto l1209; } goto l1210;
  5379. l1209:; G->pos= yypos1209; G->thunkpos= yythunkpos1209;
  5380. }
  5381. l1210:; if (!yy_Line(G)) { goto l1208; }
  5382. yyprintf((stderr, " ok %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5383. return 1;
  5384. l1208:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5385. yyprintf((stderr, " fail %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
  5386. return 0;
  5387. }
  5388. YY_RULE(int) yy_Indent(GREG *G)
  5389. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5390. yyprintf((stderr, "%s\n", "Indent"));
  5391. { int yypos1212= G->pos, yythunkpos1212= G->thunkpos; if (!yymatchChar(G, '\t')) goto l1213; goto l1212;
  5392. l1213:; G->pos= yypos1212; G->thunkpos= yythunkpos1212; if (!yymatchString(G, " ")) goto l1211;
  5393. }
  5394. l1212:;
  5395. yyprintf((stderr, " ok %s @ %s\n", "Indent", G->buf+G->pos));
  5396. return 1;
  5397. l1211:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5398. yyprintf((stderr, " fail %s @ %s\n", "Indent", G->buf+G->pos));
  5399. return 0;
  5400. }
  5401. YY_RULE(int) yy_ListBlockLine(GREG *G)
  5402. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5403. yyprintf((stderr, "%s\n", "ListBlockLine"));
  5404. { int yypos1215= G->pos, yythunkpos1215= G->thunkpos; if (!yy_BlankLine(G)) { goto l1215; } goto l1214;
  5405. l1215:; G->pos= yypos1215; G->thunkpos= yythunkpos1215;
  5406. }
  5407. { int yypos1216= G->pos, yythunkpos1216= G->thunkpos;
  5408. { int yypos1217= G->pos, yythunkpos1217= G->thunkpos; if (!yy_Indent(G)) { goto l1217; } goto l1218;
  5409. l1217:; G->pos= yypos1217; G->thunkpos= yythunkpos1217;
  5410. }
  5411. l1218:;
  5412. { int yypos1219= G->pos, yythunkpos1219= G->thunkpos; if (!yy_Bullet(G)) { goto l1220; } goto l1219;
  5413. l1220:; G->pos= yypos1219; G->thunkpos= yythunkpos1219; if (!yy_Enumerator(G)) { goto l1216; }
  5414. }
  5415. l1219:; goto l1214;
  5416. l1216:; G->pos= yypos1216; G->thunkpos= yythunkpos1216;
  5417. }
  5418. { int yypos1221= G->pos, yythunkpos1221= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1221; } goto l1214;
  5419. l1221:; G->pos= yypos1221; G->thunkpos= yythunkpos1221;
  5420. } if (!yy_OptionallyIndentedLine(G)) { goto l1214; }
  5421. yyprintf((stderr, " ok %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5422. return 1;
  5423. l1214:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5424. yyprintf((stderr, " fail %s @ %s\n", "ListBlockLine", G->buf+G->pos));
  5425. return 0;
  5426. }
  5427. YY_RULE(int) yy_ListContinuationBlock(GREG *G)
  5428. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5429. yyprintf((stderr, "%s\n", "ListContinuationBlock")); if (!yy_StartList(G)) { goto l1222; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1222;
  5430. l1223:;
  5431. { int yypos1224= G->pos, yythunkpos1224= G->thunkpos; if (!yy_BlankLine(G)) { goto l1224; } goto l1223;
  5432. l1224:; G->pos= yypos1224; G->thunkpos= yythunkpos1224;
  5433. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1222; yyDo(G, yy_1_ListContinuationBlock, G->begin, G->end); if (!yy_Indent(G)) { goto l1222; } if (!yy_ListBlock(G)) { goto l1222; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end);
  5434. l1225:;
  5435. { int yypos1226= G->pos, yythunkpos1226= G->thunkpos; if (!yy_Indent(G)) { goto l1226; } if (!yy_ListBlock(G)) { goto l1226; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end); goto l1225;
  5436. l1226:; G->pos= yypos1226; G->thunkpos= yythunkpos1226;
  5437. } yyDo(G, yy_3_ListContinuationBlock, G->begin, G->end);
  5438. yyprintf((stderr, " ok %s @ %s\n", "ListContinuationBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5439. return 1;
  5440. l1222:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5441. yyprintf((stderr, " fail %s @ %s\n", "ListContinuationBlock", G->buf+G->pos));
  5442. return 0;
  5443. }
  5444. YY_RULE(int) yy_ListBlock(GREG *G)
  5445. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5446. yyprintf((stderr, "%s\n", "ListBlock")); if (!yy_StartList(G)) { goto l1227; } yyDo(G, yySet, -1, 0);
  5447. { int yypos1228= G->pos, yythunkpos1228= G->thunkpos; if (!yy_BlankLine(G)) { goto l1228; } goto l1227;
  5448. l1228:; G->pos= yypos1228; G->thunkpos= yythunkpos1228;
  5449. } if (!yy_Line(G)) { goto l1227; } yyDo(G, yy_1_ListBlock, G->begin, G->end);
  5450. l1229:;
  5451. { int yypos1230= G->pos, yythunkpos1230= G->thunkpos; if (!yy_ListBlockLine(G)) { goto l1230; } yyDo(G, yy_2_ListBlock, G->begin, G->end); goto l1229;
  5452. l1230:; G->pos= yypos1230; G->thunkpos= yythunkpos1230;
  5453. } yyDo(G, yy_3_ListBlock, G->begin, G->end);
  5454. yyprintf((stderr, " ok %s @ %s\n", "ListBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5455. return 1;
  5456. l1227:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5457. yyprintf((stderr, " fail %s @ %s\n", "ListBlock", G->buf+G->pos));
  5458. return 0;
  5459. }
  5460. YY_RULE(int) yy_ListItem(GREG *G)
  5461. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5462. yyprintf((stderr, "%s\n", "ListItem"));
  5463. { int yypos1232= G->pos, yythunkpos1232= G->thunkpos; if (!yy_Bullet(G)) { goto l1233; } goto l1232;
  5464. l1233:; G->pos= yypos1232; G->thunkpos= yythunkpos1232; if (!yy_Enumerator(G)) { goto l1231; }
  5465. }
  5466. l1232:; if (!yy_StartList(G)) { goto l1231; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1231; } yyDo(G, yy_1_ListItem, G->begin, G->end);
  5467. l1234:;
  5468. { int yypos1235= G->pos, yythunkpos1235= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1235; } yyDo(G, yy_2_ListItem, G->begin, G->end); goto l1234;
  5469. l1235:; G->pos= yypos1235; G->thunkpos= yythunkpos1235;
  5470. } yyDo(G, yy_3_ListItem, G->begin, G->end);
  5471. yyprintf((stderr, " ok %s @ %s\n", "ListItem", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5472. return 1;
  5473. l1231:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5474. yyprintf((stderr, " fail %s @ %s\n", "ListItem", G->buf+G->pos));
  5475. return 0;
  5476. }
  5477. YY_RULE(int) yy_Enumerator(GREG *G)
  5478. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5479. yyprintf((stderr, "%s\n", "Enumerator")); if (!yy_NonindentSpace(G)) { goto l1236; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1236; 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 l1236;
  5480. l1237:;
  5481. { int yypos1238= G->pos, yythunkpos1238= 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 l1238; goto l1237;
  5482. l1238:; G->pos= yypos1238; G->thunkpos= yythunkpos1238;
  5483. } if (!yymatchChar(G, '.')) goto l1236; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1236; if (!yy_Spacechar(G)) { goto l1236; }
  5484. l1239:;
  5485. { int yypos1240= G->pos, yythunkpos1240= G->thunkpos; if (!yy_Spacechar(G)) { goto l1240; } goto l1239;
  5486. l1240:; G->pos= yypos1240; G->thunkpos= yythunkpos1240;
  5487. } yyDo(G, yy_1_Enumerator, G->begin, G->end);
  5488. yyprintf((stderr, " ok %s @ %s\n", "Enumerator", G->buf+G->pos));
  5489. return 1;
  5490. l1236:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5491. yyprintf((stderr, " fail %s @ %s\n", "Enumerator", G->buf+G->pos));
  5492. return 0;
  5493. }
  5494. YY_RULE(int) yy_ListItemTight(GREG *G)
  5495. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5496. yyprintf((stderr, "%s\n", "ListItemTight"));
  5497. { int yypos1242= G->pos, yythunkpos1242= G->thunkpos; if (!yy_Bullet(G)) { goto l1243; } goto l1242;
  5498. l1243:; G->pos= yypos1242; G->thunkpos= yythunkpos1242; if (!yy_Enumerator(G)) { goto l1241; }
  5499. }
  5500. l1242:; if (!yy_StartList(G)) { goto l1241; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1241; } yyDo(G, yy_1_ListItemTight, G->begin, G->end);
  5501. l1244:;
  5502. { int yypos1245= G->pos, yythunkpos1245= G->thunkpos;
  5503. { int yypos1246= G->pos, yythunkpos1246= G->thunkpos; if (!yy_BlankLine(G)) { goto l1246; } goto l1245;
  5504. l1246:; G->pos= yypos1246; G->thunkpos= yythunkpos1246;
  5505. } if (!yy_ListContinuationBlock(G)) { goto l1245; } yyDo(G, yy_2_ListItemTight, G->begin, G->end); goto l1244;
  5506. l1245:; G->pos= yypos1245; G->thunkpos= yythunkpos1245;
  5507. }
  5508. { int yypos1247= G->pos, yythunkpos1247= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1247; } goto l1241;
  5509. l1247:; G->pos= yypos1247; G->thunkpos= yythunkpos1247;
  5510. } yyDo(G, yy_3_ListItemTight, G->begin, G->end);
  5511. yyprintf((stderr, " ok %s @ %s\n", "ListItemTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5512. return 1;
  5513. l1241:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5514. yyprintf((stderr, " fail %s @ %s\n", "ListItemTight", G->buf+G->pos));
  5515. return 0;
  5516. }
  5517. YY_RULE(int) yy_ListLoose(GREG *G)
  5518. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
  5519. yyprintf((stderr, "%s\n", "ListLoose")); if (!yy_StartList(G)) { goto l1248; } yyDo(G, yySet, -2, 0); if (!yy_ListItem(G)) { goto l1248; } yyDo(G, yySet, -1, 0);
  5520. l1251:;
  5521. { int yypos1252= G->pos, yythunkpos1252= G->thunkpos; if (!yy_BlankLine(G)) { goto l1252; } goto l1251;
  5522. l1252:; G->pos= yypos1252; G->thunkpos= yythunkpos1252;
  5523. } yyDo(G, yy_1_ListLoose, G->begin, G->end);
  5524. l1249:;
  5525. { int yypos1250= G->pos, yythunkpos1250= G->thunkpos; if (!yy_ListItem(G)) { goto l1250; } yyDo(G, yySet, -1, 0);
  5526. l1253:;
  5527. { int yypos1254= G->pos, yythunkpos1254= G->thunkpos; if (!yy_BlankLine(G)) { goto l1254; } goto l1253;
  5528. l1254:; G->pos= yypos1254; G->thunkpos= yythunkpos1254;
  5529. } yyDo(G, yy_1_ListLoose, G->begin, G->end); goto l1249;
  5530. l1250:; G->pos= yypos1250; G->thunkpos= yythunkpos1250;
  5531. } yyDo(G, yy_2_ListLoose, G->begin, G->end);
  5532. yyprintf((stderr, " ok %s @ %s\n", "ListLoose", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
  5533. return 1;
  5534. l1248:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5535. yyprintf((stderr, " fail %s @ %s\n", "ListLoose", G->buf+G->pos));
  5536. return 0;
  5537. }
  5538. YY_RULE(int) yy_ListTight(GREG *G)
  5539. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5540. yyprintf((stderr, "%s\n", "ListTight")); if (!yy_StartList(G)) { goto l1255; } yyDo(G, yySet, -1, 0); if (!yy_ListItemTight(G)) { goto l1255; } yyDo(G, yy_1_ListTight, G->begin, G->end);
  5541. l1256:;
  5542. { int yypos1257= G->pos, yythunkpos1257= G->thunkpos; if (!yy_ListItemTight(G)) { goto l1257; } yyDo(G, yy_1_ListTight, G->begin, G->end); goto l1256;
  5543. l1257:; G->pos= yypos1257; G->thunkpos= yythunkpos1257;
  5544. }
  5545. l1258:;
  5546. { int yypos1259= G->pos, yythunkpos1259= G->thunkpos; if (!yy_BlankLine(G)) { goto l1259; } goto l1258;
  5547. l1259:; G->pos= yypos1259; G->thunkpos= yythunkpos1259;
  5548. }
  5549. { int yypos1260= G->pos, yythunkpos1260= G->thunkpos;
  5550. { int yypos1261= G->pos, yythunkpos1261= G->thunkpos; if (!yy_Bullet(G)) { goto l1262; } goto l1261;
  5551. l1262:; G->pos= yypos1261; G->thunkpos= yythunkpos1261; if (!yy_Enumerator(G)) { goto l1260; }
  5552. }
  5553. l1261:; goto l1255;
  5554. l1260:; G->pos= yypos1260; G->thunkpos= yythunkpos1260;
  5555. } yyDo(G, yy_2_ListTight, G->begin, G->end);
  5556. yyprintf((stderr, " ok %s @ %s\n", "ListTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5557. return 1;
  5558. l1255:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5559. yyprintf((stderr, " fail %s @ %s\n", "ListTight", G->buf+G->pos));
  5560. return 0;
  5561. }
  5562. YY_RULE(int) yy_Spacechar(GREG *G)
  5563. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5564. yyprintf((stderr, "%s\n", "Spacechar"));
  5565. { int yypos1264= G->pos, yythunkpos1264= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1265; goto l1264;
  5566. l1265:; G->pos= yypos1264; G->thunkpos= yythunkpos1264; if (!yymatchChar(G, '\t')) goto l1263;
  5567. }
  5568. l1264:;
  5569. yyprintf((stderr, " ok %s @ %s\n", "Spacechar", G->buf+G->pos));
  5570. return 1;
  5571. l1263:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5572. yyprintf((stderr, " fail %s @ %s\n", "Spacechar", G->buf+G->pos));
  5573. return 0;
  5574. }
  5575. YY_RULE(int) yy_Bullet(GREG *G)
  5576. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5577. yyprintf((stderr, "%s\n", "Bullet"));
  5578. { int yypos1267= G->pos, yythunkpos1267= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1267; } goto l1266;
  5579. l1267:; G->pos= yypos1267; G->thunkpos= yythunkpos1267;
  5580. } if (!yy_NonindentSpace(G)) { goto l1266; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1266;
  5581. { int yypos1268= G->pos, yythunkpos1268= G->thunkpos; if (!yymatchChar(G, '+')) goto l1269; goto l1268;
  5582. l1269:; G->pos= yypos1268; G->thunkpos= yythunkpos1268; if (!yymatchChar(G, '*')) goto l1270; goto l1268;
  5583. l1270:; G->pos= yypos1268; G->thunkpos= yythunkpos1268; if (!yymatchChar(G, '-')) goto l1266;
  5584. }
  5585. l1268:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1266; if (!yy_Spacechar(G)) { goto l1266; }
  5586. l1271:;
  5587. { int yypos1272= G->pos, yythunkpos1272= G->thunkpos; if (!yy_Spacechar(G)) { goto l1272; } goto l1271;
  5588. l1272:; G->pos= yypos1272; G->thunkpos= yythunkpos1272;
  5589. } yyDo(G, yy_1_Bullet, G->begin, G->end);
  5590. yyprintf((stderr, " ok %s @ %s\n", "Bullet", G->buf+G->pos));
  5591. return 1;
  5592. l1266:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5593. yyprintf((stderr, " fail %s @ %s\n", "Bullet", G->buf+G->pos));
  5594. return 0;
  5595. }
  5596. YY_RULE(int) yy_VerbatimChunk(GREG *G)
  5597. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5598. yyprintf((stderr, "%s\n", "VerbatimChunk"));
  5599. l1274:;
  5600. { int yypos1275= G->pos, yythunkpos1275= G->thunkpos; if (!yy_BlankLine(G)) { goto l1275; } goto l1274;
  5601. l1275:; G->pos= yypos1275; G->thunkpos= yythunkpos1275;
  5602. } if (!yy_NonblankIndentedLine(G)) { goto l1273; }
  5603. l1276:;
  5604. { int yypos1277= G->pos, yythunkpos1277= G->thunkpos; if (!yy_NonblankIndentedLine(G)) { goto l1277; } goto l1276;
  5605. l1277:; G->pos= yypos1277; G->thunkpos= yythunkpos1277;
  5606. }
  5607. yyprintf((stderr, " ok %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  5608. return 1;
  5609. l1273:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5610. yyprintf((stderr, " fail %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
  5611. return 0;
  5612. }
  5613. YY_RULE(int) yy_IndentedLine(GREG *G)
  5614. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5615. yyprintf((stderr, "%s\n", "IndentedLine")); if (!yy_Indent(G)) { goto l1278; } if (!yy_Line(G)) { goto l1278; }
  5616. yyprintf((stderr, " ok %s @ %s\n", "IndentedLine", G->buf+G->pos));
  5617. return 1;
  5618. l1278:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5619. yyprintf((stderr, " fail %s @ %s\n", "IndentedLine", G->buf+G->pos));
  5620. return 0;
  5621. }
  5622. YY_RULE(int) yy_NonblankIndentedLine(GREG *G)
  5623. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5624. yyprintf((stderr, "%s\n", "NonblankIndentedLine"));
  5625. { int yypos1280= G->pos, yythunkpos1280= G->thunkpos; if (!yy_BlankLine(G)) { goto l1280; } goto l1279;
  5626. l1280:; G->pos= yypos1280; G->thunkpos= yythunkpos1280;
  5627. } if (!yy_IndentedLine(G)) { goto l1279; }
  5628. yyprintf((stderr, " ok %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  5629. return 1;
  5630. l1279:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5631. yyprintf((stderr, " fail %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
  5632. return 0;
  5633. }
  5634. YY_RULE(int) yy_Line(GREG *G)
  5635. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5636. yyprintf((stderr, "%s\n", "Line")); if (!yy_RawLine(G)) { goto l1281; } yyDo(G, yy_1_Line, G->begin, G->end);
  5637. yyprintf((stderr, " ok %s @ %s\n", "Line", G->buf+G->pos));
  5638. return 1;
  5639. l1281:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5640. yyprintf((stderr, " fail %s @ %s\n", "Line", G->buf+G->pos));
  5641. return 0;
  5642. }
  5643. YY_RULE(int) yy_StartList(GREG *G)
  5644. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5645. yyprintf((stderr, "%s\n", "StartList"));
  5646. { int yypos1283= G->pos, yythunkpos1283= G->thunkpos; if (!yymatchDot(G)) goto l1282; G->pos= yypos1283; G->thunkpos= yythunkpos1283;
  5647. } yyDo(G, yy_1_StartList, G->begin, G->end);
  5648. yyprintf((stderr, " ok %s @ %s\n", "StartList", G->buf+G->pos));
  5649. return 1;
  5650. l1282:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5651. yyprintf((stderr, " fail %s @ %s\n", "StartList", G->buf+G->pos));
  5652. return 0;
  5653. }
  5654. YY_RULE(int) yy_BlockQuoteRaw(GREG *G)
  5655. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5656. yyprintf((stderr, "%s\n", "BlockQuoteRaw")); if (!yy_StartList(G)) { goto l1284; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1284; if (!yymatchChar(G, '>')) goto l1284;
  5657. { int yypos1287= G->pos, yythunkpos1287= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1287; goto l1288;
  5658. l1287:; G->pos= yypos1287; G->thunkpos= yythunkpos1287;
  5659. }
  5660. l1288:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1284; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1284; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  5661. l1289:;
  5662. { int yypos1290= G->pos, yythunkpos1290= G->thunkpos;
  5663. { int yypos1291= G->pos, yythunkpos1291= G->thunkpos; if (!yymatchChar(G, '>')) goto l1291; goto l1290;
  5664. l1291:; G->pos= yypos1291; G->thunkpos= yythunkpos1291;
  5665. }
  5666. { int yypos1292= G->pos, yythunkpos1292= G->thunkpos; if (!yy_BlankLine(G)) { goto l1292; } goto l1290;
  5667. l1292:; G->pos= yypos1292; G->thunkpos= yythunkpos1292;
  5668. } if (!yy_Line(G)) { goto l1290; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1289;
  5669. l1290:; G->pos= yypos1290; G->thunkpos= yythunkpos1290;
  5670. }
  5671. l1293:;
  5672. { int yypos1294= G->pos, yythunkpos1294= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1294; if (!yy_BlankLine(G)) { goto l1294; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1294; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1293;
  5673. l1294:; G->pos= yypos1294; G->thunkpos= yythunkpos1294;
  5674. }
  5675. l1285:;
  5676. { int yypos1286= G->pos, yythunkpos1286= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1286; if (!yymatchChar(G, '>')) goto l1286;
  5677. { int yypos1295= G->pos, yythunkpos1295= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1295; goto l1296;
  5678. l1295:; G->pos= yypos1295; G->thunkpos= yythunkpos1295;
  5679. }
  5680. l1296:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1286; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1286; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
  5681. l1297:;
  5682. { int yypos1298= G->pos, yythunkpos1298= G->thunkpos;
  5683. { int yypos1299= G->pos, yythunkpos1299= G->thunkpos; if (!yymatchChar(G, '>')) goto l1299; goto l1298;
  5684. l1299:; G->pos= yypos1299; G->thunkpos= yythunkpos1299;
  5685. }
  5686. { int yypos1300= G->pos, yythunkpos1300= G->thunkpos; if (!yy_BlankLine(G)) { goto l1300; } goto l1298;
  5687. l1300:; G->pos= yypos1300; G->thunkpos= yythunkpos1300;
  5688. } if (!yy_Line(G)) { goto l1298; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1297;
  5689. l1298:; G->pos= yypos1298; G->thunkpos= yythunkpos1298;
  5690. }
  5691. l1301:;
  5692. { int yypos1302= G->pos, yythunkpos1302= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1302; if (!yy_BlankLine(G)) { goto l1302; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1302; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1301;
  5693. l1302:; G->pos= yypos1302; G->thunkpos= yythunkpos1302;
  5694. } goto l1285;
  5695. l1286:; G->pos= yypos1286; G->thunkpos= yythunkpos1286;
  5696. } yyDo(G, yy_5_BlockQuoteRaw, G->begin, G->end);
  5697. yyprintf((stderr, " ok %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5698. return 1;
  5699. l1284:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5700. yyprintf((stderr, " fail %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos));
  5701. return 0;
  5702. }
  5703. YY_RULE(int) yy_Endline(GREG *G)
  5704. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5705. yyprintf((stderr, "%s\n", "Endline"));
  5706. { int yypos1304= G->pos, yythunkpos1304= G->thunkpos; if (!yy_LineBreak(G)) { goto l1305; } goto l1304;
  5707. l1305:; G->pos= yypos1304; G->thunkpos= yythunkpos1304; if (!yy_TerminalEndline(G)) { goto l1306; } goto l1304;
  5708. l1306:; G->pos= yypos1304; G->thunkpos= yythunkpos1304; if (!yy_NormalEndline(G)) { goto l1303; }
  5709. }
  5710. l1304:;
  5711. yyprintf((stderr, " ok %s @ %s\n", "Endline", G->buf+G->pos));
  5712. return 1;
  5713. l1303:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5714. yyprintf((stderr, " fail %s @ %s\n", "Endline", G->buf+G->pos));
  5715. return 0;
  5716. }
  5717. YY_RULE(int) yy_RawLine(GREG *G)
  5718. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5719. yyprintf((stderr, "%s\n", "RawLine"));
  5720. { int yypos1308= G->pos, yythunkpos1308= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1309;
  5721. l1310:;
  5722. { int yypos1311= G->pos, yythunkpos1311= G->thunkpos;
  5723. { int yypos1312= G->pos, yythunkpos1312= G->thunkpos; if (!yymatchChar(G, '\r')) goto l1312; goto l1311;
  5724. l1312:; G->pos= yypos1312; G->thunkpos= yythunkpos1312;
  5725. }
  5726. { int yypos1313= G->pos, yythunkpos1313= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1313; goto l1311;
  5727. l1313:; G->pos= yypos1313; G->thunkpos= yythunkpos1313;
  5728. } if (!yymatchDot(G)) goto l1311; goto l1310;
  5729. l1311:; G->pos= yypos1311; G->thunkpos= yythunkpos1311;
  5730. } if (!yy_Newline(G)) { goto l1309; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1309; goto l1308;
  5731. l1309:; G->pos= yypos1308; G->thunkpos= yythunkpos1308; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1307; if (!yymatchDot(G)) goto l1307;
  5732. l1314:;
  5733. { int yypos1315= G->pos, yythunkpos1315= G->thunkpos; if (!yymatchDot(G)) goto l1315; goto l1314;
  5734. l1315:; G->pos= yypos1315; G->thunkpos= yythunkpos1315;
  5735. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1307; if (!yy_Eof(G)) { goto l1307; }
  5736. }
  5737. l1308:; yyDo(G, yy_1_RawLine, G->begin, G->end);
  5738. yyprintf((stderr, " ok %s @ %s\n", "RawLine", G->buf+G->pos));
  5739. return 1;
  5740. l1307:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5741. yyprintf((stderr, " fail %s @ %s\n", "RawLine", G->buf+G->pos));
  5742. return 0;
  5743. }
  5744. YY_RULE(int) yy_SetextBottom2(GREG *G)
  5745. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5746. yyprintf((stderr, "%s\n", "SetextBottom2")); if (!yymatchChar(G, '-')) goto l1316;
  5747. l1317:;
  5748. { int yypos1318= G->pos, yythunkpos1318= G->thunkpos; if (!yymatchChar(G, '-')) goto l1318; goto l1317;
  5749. l1318:; G->pos= yypos1318; G->thunkpos= yythunkpos1318;
  5750. } if (!yy_Newline(G)) { goto l1316; }
  5751. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  5752. return 1;
  5753. l1316:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5754. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom2", G->buf+G->pos));
  5755. return 0;
  5756. }
  5757. YY_RULE(int) yy_SetextBottom1(GREG *G)
  5758. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5759. yyprintf((stderr, "%s\n", "SetextBottom1")); if (!yymatchChar(G, '=')) goto l1319;
  5760. l1320:;
  5761. { int yypos1321= G->pos, yythunkpos1321= G->thunkpos; if (!yymatchChar(G, '=')) goto l1321; goto l1320;
  5762. l1321:; G->pos= yypos1321; G->thunkpos= yythunkpos1321;
  5763. } if (!yy_Newline(G)) { goto l1319; }
  5764. yyprintf((stderr, " ok %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  5765. return 1;
  5766. l1319:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5767. yyprintf((stderr, " fail %s @ %s\n", "SetextBottom1", G->buf+G->pos));
  5768. return 0;
  5769. }
  5770. YY_RULE(int) yy_SetextHeading2(GREG *G)
  5771. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5772. yyprintf((stderr, "%s\n", "SetextHeading2"));
  5773. { int yypos1323= G->pos, yythunkpos1323= G->thunkpos; if (!yy_RawLine(G)) { goto l1322; } if (!yy_SetextBottom2(G)) { goto l1322; } G->pos= yypos1323; G->thunkpos= yythunkpos1323;
  5774. } if (!yy_LocMarker(G)) { goto l1322; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1322;
  5775. { int yypos1326= G->pos, yythunkpos1326= G->thunkpos; if (!yy_Endline(G)) { goto l1326; } goto l1322;
  5776. l1326:; G->pos= yypos1326; G->thunkpos= yythunkpos1326;
  5777. } if (!yy_Inline(G)) { goto l1322; }
  5778. l1324:;
  5779. { int yypos1325= G->pos, yythunkpos1325= G->thunkpos;
  5780. { int yypos1327= G->pos, yythunkpos1327= G->thunkpos; if (!yy_Endline(G)) { goto l1327; } goto l1325;
  5781. l1327:; G->pos= yypos1327; G->thunkpos= yythunkpos1327;
  5782. } if (!yy_Inline(G)) { goto l1325; } goto l1324;
  5783. l1325:; G->pos= yypos1325; G->thunkpos= yythunkpos1325;
  5784. } if (!yy_Sp(G)) { goto l1322; } if (!yy_Newline(G)) { goto l1322; } if (!yy_SetextBottom2(G)) { goto l1322; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1322; yyDo(G, yy_1_SetextHeading2, G->begin, G->end);
  5785. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5786. return 1;
  5787. l1322:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5788. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading2", G->buf+G->pos));
  5789. return 0;
  5790. }
  5791. YY_RULE(int) yy_SetextHeading1(GREG *G)
  5792. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5793. yyprintf((stderr, "%s\n", "SetextHeading1"));
  5794. { int yypos1329= G->pos, yythunkpos1329= G->thunkpos; if (!yy_RawLine(G)) { goto l1328; } if (!yy_SetextBottom1(G)) { goto l1328; } G->pos= yypos1329; G->thunkpos= yythunkpos1329;
  5795. } if (!yy_LocMarker(G)) { goto l1328; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1328;
  5796. { int yypos1332= G->pos, yythunkpos1332= G->thunkpos; if (!yy_Endline(G)) { goto l1332; } goto l1328;
  5797. l1332:; G->pos= yypos1332; G->thunkpos= yythunkpos1332;
  5798. } if (!yy_Inline(G)) { goto l1328; }
  5799. l1330:;
  5800. { int yypos1331= G->pos, yythunkpos1331= G->thunkpos;
  5801. { int yypos1333= G->pos, yythunkpos1333= G->thunkpos; if (!yy_Endline(G)) { goto l1333; } goto l1331;
  5802. l1333:; G->pos= yypos1333; G->thunkpos= yythunkpos1333;
  5803. } if (!yy_Inline(G)) { goto l1331; } goto l1330;
  5804. l1331:; G->pos= yypos1331; G->thunkpos= yythunkpos1331;
  5805. } if (!yy_Sp(G)) { goto l1328; } if (!yy_Newline(G)) { goto l1328; } if (!yy_SetextBottom1(G)) { goto l1328; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1328; yyDo(G, yy_1_SetextHeading1, G->begin, G->end);
  5806. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5807. return 1;
  5808. l1328:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5809. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading1", G->buf+G->pos));
  5810. return 0;
  5811. }
  5812. YY_RULE(int) yy_SetextHeading(GREG *G)
  5813. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5814. yyprintf((stderr, "%s\n", "SetextHeading"));
  5815. { int yypos1335= G->pos, yythunkpos1335= G->thunkpos; if (!yy_SetextHeading1(G)) { goto l1336; } goto l1335;
  5816. l1336:; G->pos= yypos1335; G->thunkpos= yythunkpos1335; if (!yy_SetextHeading2(G)) { goto l1334; }
  5817. }
  5818. l1335:;
  5819. yyprintf((stderr, " ok %s @ %s\n", "SetextHeading", G->buf+G->pos));
  5820. return 1;
  5821. l1334:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5822. yyprintf((stderr, " fail %s @ %s\n", "SetextHeading", G->buf+G->pos));
  5823. return 0;
  5824. }
  5825. YY_RULE(int) yy_Space(GREG *G)
  5826. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5827. yyprintf((stderr, "%s\n", "Space")); if (!yy_Spacechar(G)) { goto l1337; }
  5828. l1338:;
  5829. { int yypos1339= G->pos, yythunkpos1339= G->thunkpos; if (!yy_Spacechar(G)) { goto l1339; } goto l1338;
  5830. l1339:; G->pos= yypos1339; G->thunkpos= yythunkpos1339;
  5831. }
  5832. yyprintf((stderr, " ok %s @ %s\n", "Space", G->buf+G->pos));
  5833. return 1;
  5834. l1337:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5835. yyprintf((stderr, " fail %s @ %s\n", "Space", G->buf+G->pos));
  5836. return 0;
  5837. }
  5838. YY_RULE(int) yy_AtxHeading(GREG *G)
  5839. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  5840. yyprintf((stderr, "%s\n", "AtxHeading")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1340; if (!yy_AtxStart(G)) { goto l1340; } yyDo(G, yySet, -1, 0); if (!yy_Space(G)) { goto l1340; } if (!yy_AtxInline(G)) { goto l1340; }
  5841. l1341:;
  5842. { int yypos1342= G->pos, yythunkpos1342= G->thunkpos; if (!yy_AtxInline(G)) { goto l1342; } goto l1341;
  5843. l1342:; G->pos= yypos1342; G->thunkpos= yythunkpos1342;
  5844. }
  5845. { int yypos1343= G->pos, yythunkpos1343= G->thunkpos; if (!yy_Sp(G)) { goto l1343; }
  5846. l1345:;
  5847. { int yypos1346= G->pos, yythunkpos1346= G->thunkpos; if (!yymatchChar(G, '#')) goto l1346; goto l1345;
  5848. l1346:; G->pos= yypos1346; G->thunkpos= yythunkpos1346;
  5849. } if (!yy_Sp(G)) { goto l1343; } goto l1344;
  5850. l1343:; G->pos= yypos1343; G->thunkpos= yythunkpos1343;
  5851. }
  5852. l1344:; if (!yy_Newline(G)) { goto l1340; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1340; yyDo(G, yy_1_AtxHeading, G->begin, G->end);
  5853. yyprintf((stderr, " ok %s @ %s\n", "AtxHeading", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  5854. return 1;
  5855. l1340:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5856. yyprintf((stderr, " fail %s @ %s\n", "AtxHeading", G->buf+G->pos));
  5857. return 0;
  5858. }
  5859. YY_RULE(int) yy_AtxStart(GREG *G)
  5860. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5861. yyprintf((stderr, "%s\n", "AtxStart")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1347;
  5862. { int yypos1348= G->pos, yythunkpos1348= G->thunkpos; if (!yymatchString(G, "######")) goto l1349; goto l1348;
  5863. l1349:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "#####")) goto l1350; goto l1348;
  5864. l1350:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "####")) goto l1351; goto l1348;
  5865. l1351:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "###")) goto l1352; goto l1348;
  5866. l1352:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchString(G, "##")) goto l1353; goto l1348;
  5867. l1353:; G->pos= yypos1348; G->thunkpos= yythunkpos1348; if (!yymatchChar(G, '#')) goto l1347;
  5868. }
  5869. l1348:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1347; yyDo(G, yy_1_AtxStart, G->begin, G->end);
  5870. yyprintf((stderr, " ok %s @ %s\n", "AtxStart", G->buf+G->pos));
  5871. return 1;
  5872. l1347:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5873. yyprintf((stderr, " fail %s @ %s\n", "AtxStart", G->buf+G->pos));
  5874. return 0;
  5875. }
  5876. YY_RULE(int) yy_Inline(GREG *G)
  5877. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5878. yyprintf((stderr, "%s\n", "Inline"));
  5879. { int yypos1355= G->pos, yythunkpos1355= G->thunkpos; if (!yy_Str(G)) { goto l1356; } goto l1355;
  5880. l1356:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Endline(G)) { goto l1357; } goto l1355;
  5881. l1357:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_UlOrStarLine(G)) { goto l1358; } goto l1355;
  5882. l1358:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Space(G)) { goto l1359; } goto l1355;
  5883. l1359:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Strong(G)) { goto l1360; } goto l1355;
  5884. l1360:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Emph(G)) { goto l1361; } goto l1355;
  5885. l1361:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Strike(G)) { goto l1362; } goto l1355;
  5886. l1362:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Image(G)) { goto l1363; } goto l1355;
  5887. l1363:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Link(G)) { goto l1364; } goto l1355;
  5888. l1364:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_NoteReference(G)) { goto l1365; } goto l1355;
  5889. l1365:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_InlineNote(G)) { goto l1366; } goto l1355;
  5890. l1366:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Code(G)) { goto l1367; } goto l1355;
  5891. l1367:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_RawHtml(G)) { goto l1368; } goto l1355;
  5892. l1368:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Entity(G)) { goto l1369; } goto l1355;
  5893. l1369:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_EscapedChar(G)) { goto l1370; } goto l1355;
  5894. l1370:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; if (!yy_Symbol(G)) { goto l1354; }
  5895. }
  5896. l1355:;
  5897. yyprintf((stderr, " ok %s @ %s\n", "Inline", G->buf+G->pos));
  5898. return 1;
  5899. l1354:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5900. yyprintf((stderr, " fail %s @ %s\n", "Inline", G->buf+G->pos));
  5901. return 0;
  5902. }
  5903. YY_RULE(int) yy_Sp(GREG *G)
  5904. {
  5905. yyprintf((stderr, "%s\n", "Sp"));
  5906. l1372:;
  5907. { int yypos1373= G->pos, yythunkpos1373= G->thunkpos; if (!yy_Spacechar(G)) { goto l1373; } goto l1372;
  5908. l1373:; G->pos= yypos1373; G->thunkpos= yythunkpos1373;
  5909. }
  5910. yyprintf((stderr, " ok %s @ %s\n", "Sp", G->buf+G->pos));
  5911. return 1;
  5912. }
  5913. YY_RULE(int) yy_Newline(GREG *G)
  5914. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5915. yyprintf((stderr, "%s\n", "Newline"));
  5916. { int yypos1375= G->pos, yythunkpos1375= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1376; goto l1375;
  5917. l1376:; G->pos= yypos1375; G->thunkpos= yythunkpos1375; if (!yymatchChar(G, '\r')) goto l1374;
  5918. { int yypos1377= G->pos, yythunkpos1377= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1377; goto l1378;
  5919. l1377:; G->pos= yypos1377; G->thunkpos= yythunkpos1377;
  5920. }
  5921. l1378:;
  5922. }
  5923. l1375:;
  5924. yyprintf((stderr, " ok %s @ %s\n", "Newline", G->buf+G->pos));
  5925. return 1;
  5926. l1374:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5927. yyprintf((stderr, " fail %s @ %s\n", "Newline", G->buf+G->pos));
  5928. return 0;
  5929. }
  5930. YY_RULE(int) yy_AtxInline(GREG *G)
  5931. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5932. yyprintf((stderr, "%s\n", "AtxInline"));
  5933. { int yypos1380= G->pos, yythunkpos1380= G->thunkpos; if (!yy_Newline(G)) { goto l1380; } goto l1379;
  5934. l1380:; G->pos= yypos1380; G->thunkpos= yythunkpos1380;
  5935. }
  5936. { int yypos1381= G->pos, yythunkpos1381= G->thunkpos; if (!yy_Sp(G)) { goto l1381; }
  5937. l1382:;
  5938. { int yypos1383= G->pos, yythunkpos1383= G->thunkpos; if (!yymatchChar(G, '#')) goto l1383; goto l1382;
  5939. l1383:; G->pos= yypos1383; G->thunkpos= yythunkpos1383;
  5940. } if (!yy_Sp(G)) { goto l1381; } if (!yy_Newline(G)) { goto l1381; } goto l1379;
  5941. l1381:; G->pos= yypos1381; G->thunkpos= yythunkpos1381;
  5942. } if (!yy_Inline(G)) { goto l1379; }
  5943. yyprintf((stderr, " ok %s @ %s\n", "AtxInline", G->buf+G->pos));
  5944. return 1;
  5945. l1379:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5946. yyprintf((stderr, " fail %s @ %s\n", "AtxInline", G->buf+G->pos));
  5947. return 0;
  5948. }
  5949. YY_RULE(int) yy_Inlines(GREG *G)
  5950. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5951. yyprintf((stderr, "%s\n", "Inlines"));
  5952. { int yypos1387= G->pos, yythunkpos1387= G->thunkpos;
  5953. { int yypos1389= G->pos, yythunkpos1389= G->thunkpos; if (!yy_Endline(G)) { goto l1389; } goto l1388;
  5954. l1389:; G->pos= yypos1389; G->thunkpos= yythunkpos1389;
  5955. } if (!yy_Inline(G)) { goto l1388; } goto l1387;
  5956. l1388:; G->pos= yypos1387; G->thunkpos= yythunkpos1387; if (!yy_Endline(G)) { goto l1384; }
  5957. { int yypos1390= G->pos, yythunkpos1390= G->thunkpos; if (!yy_Inline(G)) { goto l1384; } G->pos= yypos1390; G->thunkpos= yythunkpos1390;
  5958. }
  5959. }
  5960. l1387:;
  5961. l1385:;
  5962. { int yypos1386= G->pos, yythunkpos1386= G->thunkpos;
  5963. { int yypos1391= G->pos, yythunkpos1391= G->thunkpos;
  5964. { int yypos1393= G->pos, yythunkpos1393= G->thunkpos; if (!yy_Endline(G)) { goto l1393; } goto l1392;
  5965. l1393:; G->pos= yypos1393; G->thunkpos= yythunkpos1393;
  5966. } if (!yy_Inline(G)) { goto l1392; } goto l1391;
  5967. l1392:; G->pos= yypos1391; G->thunkpos= yythunkpos1391; if (!yy_Endline(G)) { goto l1386; }
  5968. { int yypos1394= G->pos, yythunkpos1394= G->thunkpos; if (!yy_Inline(G)) { goto l1386; } G->pos= yypos1394; G->thunkpos= yythunkpos1394;
  5969. }
  5970. }
  5971. l1391:; goto l1385;
  5972. l1386:; G->pos= yypos1386; G->thunkpos= yythunkpos1386;
  5973. }
  5974. { int yypos1395= G->pos, yythunkpos1395= G->thunkpos; if (!yy_Endline(G)) { goto l1395; } goto l1396;
  5975. l1395:; G->pos= yypos1395; G->thunkpos= yythunkpos1395;
  5976. }
  5977. l1396:;
  5978. yyprintf((stderr, " ok %s @ %s\n", "Inlines", G->buf+G->pos));
  5979. return 1;
  5980. l1384:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5981. yyprintf((stderr, " fail %s @ %s\n", "Inlines", G->buf+G->pos));
  5982. return 0;
  5983. }
  5984. YY_RULE(int) yy_NonindentSpace(GREG *G)
  5985. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  5986. yyprintf((stderr, "%s\n", "NonindentSpace"));
  5987. { int yypos1398= G->pos, yythunkpos1398= G->thunkpos; if (!yymatchString(G, " ")) goto l1399; goto l1398;
  5988. l1399:; G->pos= yypos1398; G->thunkpos= yythunkpos1398; if (!yymatchString(G, " ")) goto l1400; goto l1398;
  5989. l1400:; G->pos= yypos1398; G->thunkpos= yythunkpos1398; if (!yymatchChar(G, ' ')) goto l1401; goto l1398;
  5990. l1401:; G->pos= yypos1398; G->thunkpos= yythunkpos1398; if (!yymatchString(G, "")) goto l1397;
  5991. }
  5992. l1398:;
  5993. yyprintf((stderr, " ok %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  5994. return 1;
  5995. l1397:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  5996. yyprintf((stderr, " fail %s @ %s\n", "NonindentSpace", G->buf+G->pos));
  5997. return 0;
  5998. }
  5999. YY_RULE(int) yy_Plain(GREG *G)
  6000. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6001. yyprintf((stderr, "%s\n", "Plain")); if (!yy_Inlines(G)) { goto l1402; }
  6002. yyprintf((stderr, " ok %s @ %s\n", "Plain", G->buf+G->pos));
  6003. return 1;
  6004. l1402:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6005. yyprintf((stderr, " fail %s @ %s\n", "Plain", G->buf+G->pos));
  6006. return 0;
  6007. }
  6008. YY_RULE(int) yy_Para(GREG *G)
  6009. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6010. yyprintf((stderr, "%s\n", "Para")); if (!yy_NonindentSpace(G)) { goto l1403; } if (!yy_Inlines(G)) { goto l1403; } if (!yy_BlankLine(G)) { goto l1403; }
  6011. l1404:;
  6012. { int yypos1405= G->pos, yythunkpos1405= G->thunkpos; if (!yy_BlankLine(G)) { goto l1405; } goto l1404;
  6013. l1405:; G->pos= yypos1405; G->thunkpos= yythunkpos1405;
  6014. }
  6015. yyprintf((stderr, " ok %s @ %s\n", "Para", G->buf+G->pos));
  6016. return 1;
  6017. l1403:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6018. yyprintf((stderr, " fail %s @ %s\n", "Para", G->buf+G->pos));
  6019. return 0;
  6020. }
  6021. YY_RULE(int) yy_StyleBlock(GREG *G)
  6022. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6023. yyprintf((stderr, "%s\n", "StyleBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1406; if (!yy_LocMarker(G)) { goto l1406; } yyDo(G, yySet, -1, 0); if (!yy_InStyleTags(G)) { goto l1406; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1406;
  6024. l1407:;
  6025. { int yypos1408= G->pos, yythunkpos1408= G->thunkpos; if (!yy_BlankLine(G)) { goto l1408; } goto l1407;
  6026. l1408:; G->pos= yypos1408; G->thunkpos= yythunkpos1408;
  6027. } yyDo(G, yy_1_StyleBlock, G->begin, G->end);
  6028. yyprintf((stderr, " ok %s @ %s\n", "StyleBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6029. return 1;
  6030. l1406:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6031. yyprintf((stderr, " fail %s @ %s\n", "StyleBlock", G->buf+G->pos));
  6032. return 0;
  6033. }
  6034. YY_RULE(int) yy_HtmlBlock(GREG *G)
  6035. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6036. yyprintf((stderr, "%s\n", "HtmlBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1409; if (!yy_LocMarker(G)) { goto l1409; } yyDo(G, yySet, -1, 0);
  6037. { int yypos1410= G->pos, yythunkpos1410= G->thunkpos; if (!yy_HtmlBlockInTags(G)) { goto l1411; } goto l1410;
  6038. l1411:; G->pos= yypos1410; G->thunkpos= yythunkpos1410; if (!yy_HtmlComment(G)) { goto l1412; } goto l1410;
  6039. l1412:; G->pos= yypos1410; G->thunkpos= yythunkpos1410; if (!yy_HtmlBlockSelfClosing(G)) { goto l1409; }
  6040. }
  6041. l1410:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1409; if (!yy_BlankLine(G)) { goto l1409; }
  6042. l1413:;
  6043. { int yypos1414= G->pos, yythunkpos1414= G->thunkpos; if (!yy_BlankLine(G)) { goto l1414; } goto l1413;
  6044. l1414:; G->pos= yypos1414; G->thunkpos= yythunkpos1414;
  6045. } yyDo(G, yy_1_HtmlBlock, G->begin, G->end);
  6046. yyprintf((stderr, " ok %s @ %s\n", "HtmlBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6047. return 1;
  6048. l1409:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6049. yyprintf((stderr, " fail %s @ %s\n", "HtmlBlock", G->buf+G->pos));
  6050. return 0;
  6051. }
  6052. YY_RULE(int) yy_BulletList(GREG *G)
  6053. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6054. yyprintf((stderr, "%s\n", "BulletList"));
  6055. { int yypos1416= G->pos, yythunkpos1416= G->thunkpos; if (!yy_Bullet(G)) { goto l1415; } G->pos= yypos1416; G->thunkpos= yythunkpos1416;
  6056. }
  6057. { int yypos1417= G->pos, yythunkpos1417= G->thunkpos; if (!yy_ListTight(G)) { goto l1418; } goto l1417;
  6058. l1418:; G->pos= yypos1417; G->thunkpos= yythunkpos1417; if (!yy_ListLoose(G)) { goto l1415; }
  6059. }
  6060. l1417:;
  6061. yyprintf((stderr, " ok %s @ %s\n", "BulletList", G->buf+G->pos));
  6062. return 1;
  6063. l1415:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6064. yyprintf((stderr, " fail %s @ %s\n", "BulletList", G->buf+G->pos));
  6065. return 0;
  6066. }
  6067. YY_RULE(int) yy_OrderedList(GREG *G)
  6068. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6069. yyprintf((stderr, "%s\n", "OrderedList"));
  6070. { int yypos1420= G->pos, yythunkpos1420= G->thunkpos; if (!yy_Enumerator(G)) { goto l1419; } G->pos= yypos1420; G->thunkpos= yythunkpos1420;
  6071. }
  6072. { int yypos1421= G->pos, yythunkpos1421= G->thunkpos; if (!yy_ListTight(G)) { goto l1422; } goto l1421;
  6073. l1422:; G->pos= yypos1421; G->thunkpos= yythunkpos1421; if (!yy_ListLoose(G)) { goto l1419; }
  6074. }
  6075. l1421:;
  6076. yyprintf((stderr, " ok %s @ %s\n", "OrderedList", G->buf+G->pos));
  6077. return 1;
  6078. l1419:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6079. yyprintf((stderr, " fail %s @ %s\n", "OrderedList", G->buf+G->pos));
  6080. return 0;
  6081. }
  6082. YY_RULE(int) yy_Heading(GREG *G)
  6083. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6084. yyprintf((stderr, "%s\n", "Heading"));
  6085. { int yypos1424= G->pos, yythunkpos1424= G->thunkpos; if (!yy_SetextHeading(G)) { goto l1425; } goto l1424;
  6086. l1425:; G->pos= yypos1424; G->thunkpos= yythunkpos1424; if (!yy_AtxHeading(G)) { goto l1423; }
  6087. }
  6088. l1424:;
  6089. yyprintf((stderr, " ok %s @ %s\n", "Heading", G->buf+G->pos));
  6090. return 1;
  6091. l1423:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6092. yyprintf((stderr, " fail %s @ %s\n", "Heading", G->buf+G->pos));
  6093. return 0;
  6094. }
  6095. YY_RULE(int) yy_HorizontalRule(GREG *G)
  6096. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6097. yyprintf((stderr, "%s\n", "HorizontalRule")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1426; if (!yy_NonindentSpace(G)) { goto l1426; }
  6098. { int yypos1427= G->pos, yythunkpos1427= G->thunkpos; if (!yymatchChar(G, '*')) goto l1428; if (!yy_Sp(G)) { goto l1428; } if (!yymatchChar(G, '*')) goto l1428; if (!yy_Sp(G)) { goto l1428; } if (!yymatchChar(G, '*')) goto l1428;
  6099. l1429:;
  6100. { int yypos1430= G->pos, yythunkpos1430= G->thunkpos; if (!yy_Sp(G)) { goto l1430; } if (!yymatchChar(G, '*')) goto l1430; goto l1429;
  6101. l1430:; G->pos= yypos1430; G->thunkpos= yythunkpos1430;
  6102. } goto l1427;
  6103. l1428:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yymatchChar(G, '-')) goto l1431; if (!yy_Sp(G)) { goto l1431; } if (!yymatchChar(G, '-')) goto l1431; if (!yy_Sp(G)) { goto l1431; } if (!yymatchChar(G, '-')) goto l1431;
  6104. l1432:;
  6105. { int yypos1433= G->pos, yythunkpos1433= G->thunkpos; if (!yy_Sp(G)) { goto l1433; } if (!yymatchChar(G, '-')) goto l1433; goto l1432;
  6106. l1433:; G->pos= yypos1433; G->thunkpos= yythunkpos1433;
  6107. } goto l1427;
  6108. l1431:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yymatchChar(G, '_')) goto l1426; if (!yy_Sp(G)) { goto l1426; } if (!yymatchChar(G, '_')) goto l1426; if (!yy_Sp(G)) { goto l1426; } if (!yymatchChar(G, '_')) goto l1426;
  6109. l1434:;
  6110. { int yypos1435= G->pos, yythunkpos1435= G->thunkpos; if (!yy_Sp(G)) { goto l1435; } if (!yymatchChar(G, '_')) goto l1435; goto l1434;
  6111. l1435:; G->pos= yypos1435; G->thunkpos= yythunkpos1435;
  6112. }
  6113. }
  6114. l1427:; if (!yy_Sp(G)) { goto l1426; } if (!yy_Newline(G)) { goto l1426; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1426; if (!yy_BlankLine(G)) { goto l1426; }
  6115. l1436:;
  6116. { int yypos1437= G->pos, yythunkpos1437= G->thunkpos; if (!yy_BlankLine(G)) { goto l1437; } goto l1436;
  6117. l1437:; G->pos= yypos1437; G->thunkpos= yythunkpos1437;
  6118. } yyDo(G, yy_1_HorizontalRule, G->begin, G->end);
  6119. yyprintf((stderr, " ok %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6120. return 1;
  6121. l1426:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6122. yyprintf((stderr, " fail %s @ %s\n", "HorizontalRule", G->buf+G->pos));
  6123. return 0;
  6124. }
  6125. YY_RULE(int) yy_Reference(GREG *G)
  6126. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 3, 0);
  6127. yyprintf((stderr, "%s\n", "Reference")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1438; if (!yy_LocMarker(G)) { goto l1438; } yyDo(G, yySet, -3, 0); if (!yy_NonindentSpace(G)) { goto l1438; }
  6128. { int yypos1439= G->pos, yythunkpos1439= G->thunkpos; if (!yymatchString(G, "[]")) goto l1439; goto l1438;
  6129. l1439:; G->pos= yypos1439; G->thunkpos= yythunkpos1439;
  6130. } if (!yy_Label(G)) { goto l1438; } yyDo(G, yySet, -2, 0); if (!yymatchChar(G, ':')) goto l1438; if (!yy_Spnl(G)) { goto l1438; } if (!yy_RefSrc(G)) { goto l1438; } yyDo(G, yySet, -1, 0); if (!yy_RefTitle(G)) { goto l1438; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1438; if (!yy_BlankLine(G)) { goto l1438; }
  6131. l1440:;
  6132. { int yypos1441= G->pos, yythunkpos1441= G->thunkpos; if (!yy_BlankLine(G)) { goto l1441; } goto l1440;
  6133. l1441:; G->pos= yypos1441; G->thunkpos= yythunkpos1441;
  6134. } yyDo(G, yy_1_Reference, G->begin, G->end);
  6135. yyprintf((stderr, " ok %s @ %s\n", "Reference", G->buf+G->pos)); yyDo(G, yyPop, 3, 0);
  6136. return 1;
  6137. l1438:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6138. yyprintf((stderr, " fail %s @ %s\n", "Reference", G->buf+G->pos));
  6139. return 0;
  6140. }
  6141. YY_RULE(int) yy_Note(GREG *G)
  6142. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6143. yyprintf((stderr, "%s\n", "Note")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l1442; if (!yy_NonindentSpace(G)) { goto l1442; } if (!yy_RawNoteReference(G)) { goto l1442; } if (!yymatchChar(G, ':')) goto l1442; if (!yy_Sp(G)) { goto l1442; } if (!yy_RawNoteBlock(G)) { goto l1442; }
  6144. l1443:;
  6145. { int yypos1444= G->pos, yythunkpos1444= G->thunkpos;
  6146. { int yypos1445= G->pos, yythunkpos1445= G->thunkpos; if (!yy_Indent(G)) { goto l1444; } G->pos= yypos1445; G->thunkpos= yythunkpos1445;
  6147. } if (!yy_RawNoteBlock(G)) { goto l1444; } goto l1443;
  6148. l1444:; G->pos= yypos1444; G->thunkpos= yythunkpos1444;
  6149. }
  6150. yyprintf((stderr, " ok %s @ %s\n", "Note", G->buf+G->pos));
  6151. return 1;
  6152. l1442:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6153. yyprintf((stderr, " fail %s @ %s\n", "Note", G->buf+G->pos));
  6154. return 0;
  6155. }
  6156. YY_RULE(int) yy_Verbatim(GREG *G)
  6157. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6158. yyprintf((stderr, "%s\n", "Verbatim")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1446; if (!yy_LocMarker(G)) { goto l1446; } yyDo(G, yySet, -1, 0); if (!yy_VerbatimChunk(G)) { goto l1446; }
  6159. l1447:;
  6160. { int yypos1448= G->pos, yythunkpos1448= G->thunkpos; if (!yy_VerbatimChunk(G)) { goto l1448; } goto l1447;
  6161. l1448:; G->pos= yypos1448; G->thunkpos= yythunkpos1448;
  6162. } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1446; yyDo(G, yy_1_Verbatim, G->begin, G->end);
  6163. yyprintf((stderr, " ok %s @ %s\n", "Verbatim", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6164. return 1;
  6165. l1446:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6166. yyprintf((stderr, " fail %s @ %s\n", "Verbatim", G->buf+G->pos));
  6167. return 0;
  6168. }
  6169. YY_RULE(int) yy_BlockQuote(GREG *G)
  6170. { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
  6171. yyprintf((stderr, "%s\n", "BlockQuote")); if (!yy_BlockQuoteRaw(G)) { goto l1449; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_BlockQuote, G->begin, G->end);
  6172. yyprintf((stderr, " ok %s @ %s\n", "BlockQuote", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
  6173. return 1;
  6174. l1449:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6175. yyprintf((stderr, " fail %s @ %s\n", "BlockQuote", G->buf+G->pos));
  6176. return 0;
  6177. }
  6178. YY_RULE(int) yy_BlankLine(GREG *G)
  6179. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6180. yyprintf((stderr, "%s\n", "BlankLine")); if (!yy_Sp(G)) { goto l1450; } if (!yy_Newline(G)) { goto l1450; }
  6181. yyprintf((stderr, " ok %s @ %s\n", "BlankLine", G->buf+G->pos));
  6182. return 1;
  6183. l1450:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6184. yyprintf((stderr, " fail %s @ %s\n", "BlankLine", G->buf+G->pos));
  6185. return 0;
  6186. }
  6187. YY_RULE(int) yy_LocMarker(GREG *G)
  6188. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6189. yyprintf((stderr, "%s\n", "LocMarker"));
  6190. { int yypos1452= G->pos, yythunkpos1452= G->thunkpos; if (!yymatchDot(G)) goto l1451; G->pos= yypos1452; G->thunkpos= yythunkpos1452;
  6191. } yyDo(G, yy_1_LocMarker, G->begin, G->end);
  6192. yyprintf((stderr, " ok %s @ %s\n", "LocMarker", G->buf+G->pos));
  6193. return 1;
  6194. l1451:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6195. yyprintf((stderr, " fail %s @ %s\n", "LocMarker", G->buf+G->pos));
  6196. return 0;
  6197. }
  6198. YY_RULE(int) yy_Block(GREG *G)
  6199. { int yypos0= G->pos, yythunkpos0= G->thunkpos;
  6200. yyprintf((stderr, "%s\n", "Block"));
  6201. l1454:;
  6202. { int yypos1455= G->pos, yythunkpos1455= G->thunkpos; if (!yy_BlankLine(G)) { goto l1455; } goto l1454;
  6203. l1455:; G->pos= yypos1455; G->thunkpos= yythunkpos1455;
  6204. }
  6205. { int yypos1456= G->pos, yythunkpos1456= G->thunkpos; if (!yy_BlockQuote(G)) { goto l1457; } goto l1456;
  6206. l1457:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Verbatim(G)) { goto l1458; } goto l1456;
  6207. l1458:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Note(G)) { goto l1459; } goto l1456;
  6208. l1459:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Reference(G)) { goto l1460; } goto l1456;
  6209. l1460:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_HorizontalRule(G)) { goto l1461; } goto l1456;
  6210. l1461:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Heading(G)) { goto l1462; } goto l1456;
  6211. l1462:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_OrderedList(G)) { goto l1463; } goto l1456;
  6212. l1463:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_BulletList(G)) { goto l1464; } goto l1456;
  6213. l1464:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_HtmlBlock(G)) { goto l1465; } goto l1456;
  6214. l1465:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_StyleBlock(G)) { goto l1466; } goto l1456;
  6215. l1466:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Para(G)) { goto l1467; } goto l1456;
  6216. l1467:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yy_Plain(G)) { goto l1453; }
  6217. }
  6218. l1456:;
  6219. yyprintf((stderr, " ok %s @ %s\n", "Block", G->buf+G->pos));
  6220. return 1;
  6221. l1453:; G->pos= yypos0; G->thunkpos= yythunkpos0;
  6222. yyprintf((stderr, " fail %s @ %s\n", "Block", G->buf+G->pos));
  6223. return 0;
  6224. }
  6225. YY_RULE(int) yy_Doc(GREG *G)
  6226. {
  6227. yyprintf((stderr, "%s\n", "Doc"));
  6228. l1469:;
  6229. { int yypos1470= G->pos, yythunkpos1470= G->thunkpos; if (!yy_Block(G)) { goto l1470; } goto l1469;
  6230. l1470:; G->pos= yypos1470; G->thunkpos= yythunkpos1470;
  6231. }
  6232. yyprintf((stderr, " ok %s @ %s\n", "Doc", G->buf+G->pos));
  6233. return 1;
  6234. }
  6235. #ifndef YY_PART
  6236. typedef int (*yyrule)(GREG *G);
  6237. YY_PARSE(int) YY_NAME(parse_from)(GREG *G, yyrule yystart)
  6238. {
  6239. int yyok;
  6240. if (!G->buflen)
  6241. {
  6242. G->buflen= YY_BUFFER_START_SIZE;
  6243. G->buf= (char *)YY_ALLOC(G->buflen, G->data);
  6244. G->textlen= YY_BUFFER_START_SIZE;
  6245. G->text= (char *)YY_ALLOC(G->textlen, G->data);
  6246. G->thunkslen= YY_STACK_SIZE;
  6247. G->thunks= (yythunk *)YY_ALLOC(sizeof(yythunk) * G->thunkslen, G->data);
  6248. G->valslen= YY_STACK_SIZE;
  6249. G->vals= (YYSTYPE*)YY_ALLOC(sizeof(YYSTYPE) * G->valslen, G->data);
  6250. G->begin= G->end= G->pos= G->limit= G->thunkpos= 0;
  6251. }
  6252. G->pos = 0;
  6253. G->begin= G->end= G->pos;
  6254. G->thunkpos= 0;
  6255. G->val= G->vals;
  6256. yyok= yystart(G);
  6257. if (yyok) yyDone(G);
  6258. yyCommit(G);
  6259. return yyok;
  6260. (void)yyrefill(NULL);
  6261. (void)yymatchDot(NULL);
  6262. (void)yymatchChar(NULL, 0);
  6263. (void)yymatchString(NULL, NULL);
  6264. (void)yymatchClass(NULL, NULL);
  6265. (void)yyDo(NULL, NULL, 0, 0);
  6266. (void)yyText(NULL, 0, 0);
  6267. (void)yyDone(NULL);
  6268. (void)yyCommit(NULL);
  6269. (void)yyAccept(NULL, 0);
  6270. (void)yyPush(NULL, NULL, 0, NULL, NULL);
  6271. (void)yyPop(NULL, NULL, 0, NULL, NULL);
  6272. (void)yySet(NULL, NULL, 0, NULL, NULL);
  6273. }
  6274. YY_PARSE(int) YY_NAME(parse)(GREG *G)
  6275. {
  6276. return YY_NAME(parse_from)(G, yy_Doc);
  6277. }
  6278. YY_PARSE(GREG *) YY_NAME(parse_new)(YY_XTYPE data)
  6279. {
  6280. GREG *G = (GREG *)YY_CALLOC(1, sizeof(GREG), G->data);
  6281. G->data = data;
  6282. return G;
  6283. }
  6284. YY_PARSE(void) YY_NAME(parse_free)(GREG *G)
  6285. {
  6286. YY_FREE(G->buf);
  6287. YY_FREE(G->text);
  6288. YY_FREE(G->thunks);
  6289. YY_FREE(G->vals);
  6290. YY_FREE(G);
  6291. }
  6292. #endif
  6293. /* PEG Markdown Highlight
  6294. * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
  6295. * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
  6296. *
  6297. * pmh_parser_foot.c
  6298. *
  6299. * Code to be appended to the end of the parser code generated from the
  6300. * PEG grammar.
  6301. */
  6302. static void _parse(parser_data *p_data, yyrule start_rule)
  6303. {
  6304. GREG *g = YY_NAME(parse_new)(p_data);
  6305. if (start_rule == NULL)
  6306. YY_NAME(parse)(g);
  6307. else
  6308. YY_NAME(parse_from)(g, start_rule);
  6309. YY_NAME(parse_free)(g);
  6310. pmh_PRINTF("\n\n");
  6311. }
  6312. static void parse_markdown(parser_data *p_data)
  6313. {
  6314. pmh_PRINTF("\nPARSING DOCUMENT: ");
  6315. _parse(p_data, NULL);
  6316. }
  6317. static void parse_references(parser_data *p_data)
  6318. {
  6319. pmh_PRINTF("\nPARSING REFERENCES: ");
  6320. p_data->parsing_only_references = true;
  6321. _parse(p_data, yy_References);
  6322. p_data->parsing_only_references = false;
  6323. p_data->references = p_data->head_elems[pmh_REFERENCE];
  6324. p_data->head_elems[pmh_REFERENCE] = NULL;
  6325. }