From a20d306aab54dfc5b88bf02de1277ffdb05f363b Mon Sep 17 00:00:00 2001 From: Le Tan Date: Thu, 12 Jul 2018 20:18:24 +0800 Subject: [PATCH] peg-markdown-highlight: update to c3fd99c8fe6a7041b3c01f607b602aba1aa36416 For fenced code block support. --- peg-highlight/pmh_definitions.h | 8 +- peg-highlight/pmh_parser.c | 1257 ++++++++++++++++--------------- 2 files changed, 671 insertions(+), 594 deletions(-) diff --git a/peg-highlight/pmh_definitions.h b/peg-highlight/pmh_definitions.h index 5ce7e4ab..964bbc84 100755 --- a/peg-highlight/pmh_definitions.h +++ b/peg-highlight/pmh_definitions.h @@ -51,13 +51,13 @@ typedef enum pmh_HTMLBLOCK, /**< Block of HTML */ pmh_HRULE, /**< Horizontal rule */ pmh_REFERENCE, /**< Reference */ + pmh_FENCEDCODEBLOCK, /**< Fenced code block */ pmh_NOTE, /**< Note */ pmh_STRIKE, /**< Strike-through */ - pmh_FRONTMATTER, /**< Front matter */ - + // Utility types used by the parser itself: - + // List of pmh_RAW element lists, each to be processed separately from // others (for each element in linked lists of this type, `children` points // to a linked list of pmh_RAW elements): @@ -86,7 +86,7 @@ typedef enum * \brief Number of types in pmh_element_type. * \sa pmh_element_type */ -#define pmh_NUM_TYPES 32 +#define pmh_NUM_TYPES 33 /** * \brief Number of *language element* types in pmh_element_type. diff --git a/peg-highlight/pmh_parser.c b/peg-highlight/pmh_parser.c index 8c08d4d4..67d067e4 100644 --- a/peg-highlight/pmh_parser.c +++ b/peg-highlight/pmh_parser.c @@ -4,7 +4,7 @@ #include #include struct _GREG; -#define YYRULECOUNT 236 +#define YYRULECOUNT 240 /* PEG Markdown Highlight * Copyright 2011-2016 Ali Rantakari -- http://hasseg.org @@ -199,6 +199,7 @@ static char **get_element_type_names() elem_type_names[pmh_HTMLBLOCK] = "HTMLBLOCK"; elem_type_names[pmh_HRULE] = "HRULE"; elem_type_names[pmh_REFERENCE] = "REFERENCE"; + elem_type_names[pmh_FENCEDCODEBLOCK] = "FENCEDCODEBLOCK"; elem_type_names[pmh_NOTE] = "NOTE"; elem_type_names[pmh_STRIKE] = "STRIKE"; elem_type_names[pmh_FRONTMATTER] = "FRONTMATTER"; @@ -1260,232 +1261,236 @@ YY_LOCAL(void) yySet(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY #define YYACCEPT yyAccept(G, yythunkpos0) -YY_RULE(int) yy_RawNoteBlock(GREG *G); /* 236 */ -YY_RULE(int) yy_RawNoteReference(GREG *G); /* 235 */ -YY_RULE(int) yy_ExtendedSpecialChar(GREG *G); /* 234 */ -YY_RULE(int) yy_AlphanumericAscii(GREG *G); /* 233 */ -YY_RULE(int) yy_Quoted(GREG *G); /* 232 */ -YY_RULE(int) yy_HtmlTag(GREG *G); /* 231 */ -YY_RULE(int) yy_Ticks5(GREG *G); /* 230 */ -YY_RULE(int) yy_Ticks4(GREG *G); /* 229 */ -YY_RULE(int) yy_Ticks3(GREG *G); /* 228 */ -YY_RULE(int) yy_Ticks2(GREG *G); /* 227 */ -YY_RULE(int) yy_Ticks1(GREG *G); /* 226 */ -YY_RULE(int) yy_SkipBlock(GREG *G); /* 225 */ -YY_RULE(int) yy_References(GREG *G); /* 224 */ -YY_RULE(int) yy_EmptyTitle(GREG *G); /* 223 */ -YY_RULE(int) yy_RefTitleParens(GREG *G); /* 222 */ -YY_RULE(int) yy_RefTitleDouble(GREG *G); /* 221 */ -YY_RULE(int) yy_RefTitleSingle(GREG *G); /* 220 */ -YY_RULE(int) yy_RefTitle(GREG *G); /* 219 */ -YY_RULE(int) yy_RefSrc(GREG *G); /* 218 */ -YY_RULE(int) yy_AutoLinkEmail(GREG *G); /* 217 */ -YY_RULE(int) yy_AutoLinkUrl(GREG *G); /* 216 */ -YY_RULE(int) yy_ImageSizeHeight(GREG *G); /* 215 */ -YY_RULE(int) yy_ImageSizeWidth(GREG *G); /* 214 */ -YY_RULE(int) yy_ImageSizeComplete(GREG *G); /* 213 */ -YY_RULE(int) yy_TitleDoubleExt(GREG *G); /* 212 */ -YY_RULE(int) yy_TitleSingleExt(GREG *G); /* 211 */ -YY_RULE(int) yy_TitleDouble(GREG *G); /* 210 */ -YY_RULE(int) yy_TitleSingle(GREG *G); /* 209 */ -YY_RULE(int) yy_Nonspacechar(GREG *G); /* 208 */ -YY_RULE(int) yy_SourceContents(GREG *G); /* 207 */ -YY_RULE(int) yy_ImageSize(GREG *G); /* 206 */ -YY_RULE(int) yy_TitleExt(GREG *G); /* 205 */ -YY_RULE(int) yy_Title(GREG *G); /* 204 */ -YY_RULE(int) yy_Source(GREG *G); /* 203 */ -YY_RULE(int) yy_Label(GREG *G); /* 202 */ -YY_RULE(int) yy_ReferenceLinkSingle(GREG *G); /* 201 */ -YY_RULE(int) yy_ReferenceLinkDouble(GREG *G); /* 200 */ -YY_RULE(int) yy_AutoLink(GREG *G); /* 199 */ -YY_RULE(int) yy_ReferenceLink(GREG *G); /* 198 */ -YY_RULE(int) yy_ExplicitLinkSize(GREG *G); /* 197 */ -YY_RULE(int) yy_ExplicitLink(GREG *G); /* 196 */ -YY_RULE(int) yy_StrongUl(GREG *G); /* 195 */ -YY_RULE(int) yy_StrongStar(GREG *G); /* 194 */ -YY_RULE(int) yy_Whitespace(GREG *G); /* 193 */ -YY_RULE(int) yy_EmphUl(GREG *G); /* 192 */ -YY_RULE(int) yy_EmphStar(GREG *G); /* 191 */ -YY_RULE(int) yy_StarLine(GREG *G); /* 190 */ -YY_RULE(int) yy_UlLine(GREG *G); /* 189 */ -YY_RULE(int) yy_SpecialChar(GREG *G); /* 188 */ -YY_RULE(int) yy_Eof(GREG *G); /* 187 */ -YY_RULE(int) yy_NormalEndline(GREG *G); /* 186 */ -YY_RULE(int) yy_TerminalEndline(GREG *G); /* 185 */ -YY_RULE(int) yy_LineBreak(GREG *G); /* 184 */ -YY_RULE(int) yy_CharEntity(GREG *G); /* 183 */ -YY_RULE(int) yy_DecEntity(GREG *G); /* 182 */ -YY_RULE(int) yy_HexEntity(GREG *G); /* 181 */ -YY_RULE(int) yy_Alphanumeric(GREG *G); /* 180 */ -YY_RULE(int) yy_NormalChar(GREG *G); /* 179 */ -YY_RULE(int) yy_Symbol(GREG *G); /* 178 */ -YY_RULE(int) yy_EscapedChar(GREG *G); /* 177 */ -YY_RULE(int) yy_Entity(GREG *G); /* 176 */ -YY_RULE(int) yy_RawHtml(GREG *G); /* 175 */ -YY_RULE(int) yy_Code(GREG *G); /* 174 */ -YY_RULE(int) yy_InlineNote(GREG *G); /* 173 */ -YY_RULE(int) yy_NoteReference(GREG *G); /* 172 */ -YY_RULE(int) yy_Link(GREG *G); /* 171 */ -YY_RULE(int) yy_Image(GREG *G); /* 170 */ -YY_RULE(int) yy_Strike(GREG *G); /* 169 */ -YY_RULE(int) yy_Emph(GREG *G); /* 168 */ -YY_RULE(int) yy_Strong(GREG *G); /* 167 */ -YY_RULE(int) yy_UlOrStarLine(GREG *G); /* 166 */ -YY_RULE(int) yy_Str(GREG *G); /* 165 */ -YY_RULE(int) yy_InStyleTags(GREG *G); /* 164 */ -YY_RULE(int) yy_StyleClose(GREG *G); /* 163 */ -YY_RULE(int) yy_StyleOpen(GREG *G); /* 162 */ -YY_RULE(int) yy_HtmlBlockType(GREG *G); /* 161 */ -YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G); /* 160 */ -YY_RULE(int) yy_HtmlComment(GREG *G); /* 159 */ -YY_RULE(int) yy_HtmlBlockInTags(GREG *G); /* 158 */ -YY_RULE(int) yy_HtmlBlockHead(GREG *G); /* 157 */ -YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G); /* 156 */ -YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G); /* 155 */ -YY_RULE(int) yy_HtmlBlockScript(GREG *G); /* 154 */ -YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G); /* 153 */ -YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G); /* 152 */ -YY_RULE(int) yy_HtmlBlockTr(GREG *G); /* 151 */ -YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G); /* 150 */ -YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G); /* 149 */ -YY_RULE(int) yy_HtmlBlockThead(GREG *G); /* 148 */ -YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G); /* 147 */ -YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G); /* 146 */ -YY_RULE(int) yy_HtmlBlockTh(GREG *G); /* 145 */ -YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G); /* 144 */ -YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G); /* 143 */ -YY_RULE(int) yy_HtmlBlockTfoot(GREG *G); /* 142 */ -YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G); /* 141 */ -YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G); /* 140 */ -YY_RULE(int) yy_HtmlBlockTd(GREG *G); /* 139 */ -YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G); /* 138 */ -YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G); /* 137 */ -YY_RULE(int) yy_HtmlBlockTbody(GREG *G); /* 136 */ -YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G); /* 135 */ -YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G); /* 134 */ -YY_RULE(int) yy_HtmlBlockLi(GREG *G); /* 133 */ -YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G); /* 132 */ -YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G); /* 131 */ -YY_RULE(int) yy_HtmlBlockFrameset(GREG *G); /* 130 */ -YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G); /* 129 */ -YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G); /* 128 */ -YY_RULE(int) yy_HtmlBlockDt(GREG *G); /* 127 */ -YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G); /* 126 */ -YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G); /* 125 */ -YY_RULE(int) yy_HtmlBlockDd(GREG *G); /* 124 */ -YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G); /* 123 */ -YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G); /* 122 */ -YY_RULE(int) yy_HtmlBlockUl(GREG *G); /* 121 */ -YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G); /* 120 */ -YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G); /* 119 */ -YY_RULE(int) yy_HtmlBlockTable(GREG *G); /* 118 */ -YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G); /* 117 */ -YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G); /* 116 */ -YY_RULE(int) yy_HtmlBlockPre(GREG *G); /* 115 */ -YY_RULE(int) yy_HtmlBlockClosePre(GREG *G); /* 114 */ -YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G); /* 113 */ -YY_RULE(int) yy_HtmlBlockP(GREG *G); /* 112 */ -YY_RULE(int) yy_HtmlBlockCloseP(GREG *G); /* 111 */ -YY_RULE(int) yy_HtmlBlockOpenP(GREG *G); /* 110 */ -YY_RULE(int) yy_HtmlBlockOl(GREG *G); /* 109 */ -YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G); /* 108 */ -YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G); /* 107 */ -YY_RULE(int) yy_HtmlBlockNoscript(GREG *G); /* 106 */ -YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G); /* 105 */ -YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G); /* 104 */ -YY_RULE(int) yy_HtmlBlockNoframes(GREG *G); /* 103 */ -YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G); /* 102 */ -YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G); /* 101 */ -YY_RULE(int) yy_HtmlBlockMenu(GREG *G); /* 100 */ -YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G); /* 99 */ -YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G); /* 98 */ -YY_RULE(int) yy_HtmlBlockH6(GREG *G); /* 97 */ -YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G); /* 96 */ -YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G); /* 95 */ -YY_RULE(int) yy_HtmlBlockH5(GREG *G); /* 94 */ -YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G); /* 93 */ -YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G); /* 92 */ -YY_RULE(int) yy_HtmlBlockH4(GREG *G); /* 91 */ -YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G); /* 90 */ -YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G); /* 89 */ -YY_RULE(int) yy_HtmlBlockH3(GREG *G); /* 88 */ -YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G); /* 87 */ -YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G); /* 86 */ -YY_RULE(int) yy_HtmlBlockH2(GREG *G); /* 85 */ -YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G); /* 84 */ -YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G); /* 83 */ -YY_RULE(int) yy_HtmlBlockH1(GREG *G); /* 82 */ -YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G); /* 81 */ -YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G); /* 80 */ -YY_RULE(int) yy_HtmlBlockForm(GREG *G); /* 79 */ -YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G); /* 78 */ -YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G); /* 77 */ -YY_RULE(int) yy_HtmlBlockFieldset(GREG *G); /* 76 */ -YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G); /* 75 */ -YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G); /* 74 */ -YY_RULE(int) yy_HtmlBlockDl(GREG *G); /* 73 */ -YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G); /* 72 */ -YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G); /* 71 */ -YY_RULE(int) yy_HtmlBlockDiv(GREG *G); /* 70 */ -YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G); /* 69 */ -YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G); /* 68 */ -YY_RULE(int) yy_HtmlBlockDir(GREG *G); /* 67 */ -YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G); /* 66 */ -YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G); /* 65 */ -YY_RULE(int) yy_HtmlBlockCenter(GREG *G); /* 64 */ -YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G); /* 63 */ -YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G); /* 62 */ -YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G); /* 61 */ -YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G); /* 60 */ -YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G); /* 59 */ -YY_RULE(int) yy_HtmlBlockAddress(GREG *G); /* 58 */ -YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G); /* 57 */ -YY_RULE(int) yy_HtmlAttribute(GREG *G); /* 56 */ -YY_RULE(int) yy_Spnl(GREG *G); /* 55 */ -YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G); /* 54 */ -YY_RULE(int) yy_OptionallyIndentedLine(GREG *G); /* 53 */ -YY_RULE(int) yy_Indent(GREG *G); /* 52 */ -YY_RULE(int) yy_ListBlockLine(GREG *G); /* 51 */ -YY_RULE(int) yy_ListContinuationBlock(GREG *G); /* 50 */ -YY_RULE(int) yy_ListBlock(GREG *G); /* 49 */ -YY_RULE(int) yy_ListItem(GREG *G); /* 48 */ -YY_RULE(int) yy_Enumerator(GREG *G); /* 47 */ -YY_RULE(int) yy_ListItemTight(GREG *G); /* 46 */ -YY_RULE(int) yy_ListLoose(GREG *G); /* 45 */ -YY_RULE(int) yy_ListTight(GREG *G); /* 44 */ -YY_RULE(int) yy_Spacechar(GREG *G); /* 43 */ -YY_RULE(int) yy_Bullet(GREG *G); /* 42 */ -YY_RULE(int) yy_VerbatimChunk(GREG *G); /* 41 */ -YY_RULE(int) yy_IndentedLine(GREG *G); /* 40 */ -YY_RULE(int) yy_NonblankIndentedLine(GREG *G); /* 39 */ -YY_RULE(int) yy_Line(GREG *G); /* 38 */ -YY_RULE(int) yy_StartList(GREG *G); /* 37 */ -YY_RULE(int) yy_BlockQuoteRaw(GREG *G); /* 36 */ -YY_RULE(int) yy_Endline(GREG *G); /* 35 */ -YY_RULE(int) yy_RawLine(GREG *G); /* 34 */ -YY_RULE(int) yy_SetextBottom2(GREG *G); /* 33 */ -YY_RULE(int) yy_SetextBottom1(GREG *G); /* 32 */ -YY_RULE(int) yy_SetextHeading2(GREG *G); /* 31 */ -YY_RULE(int) yy_SetextHeading1(GREG *G); /* 30 */ -YY_RULE(int) yy_SetextHeading(GREG *G); /* 29 */ -YY_RULE(int) yy_Space(GREG *G); /* 28 */ -YY_RULE(int) yy_AtxHeading(GREG *G); /* 27 */ -YY_RULE(int) yy_AtxStart(GREG *G); /* 26 */ -YY_RULE(int) yy_Inline(GREG *G); /* 25 */ -YY_RULE(int) yy_Sp(GREG *G); /* 24 */ -YY_RULE(int) yy_AtxInline(GREG *G); /* 23 */ -YY_RULE(int) yy_Inlines(GREG *G); /* 22 */ -YY_RULE(int) yy_NonindentSpace(GREG *G); /* 21 */ -YY_RULE(int) yy_Plain(GREG *G); /* 20 */ -YY_RULE(int) yy_Para(GREG *G); /* 19 */ -YY_RULE(int) yy_StyleBlock(GREG *G); /* 18 */ -YY_RULE(int) yy_HtmlBlock(GREG *G); /* 17 */ -YY_RULE(int) yy_BulletList(GREG *G); /* 16 */ -YY_RULE(int) yy_OrderedList(GREG *G); /* 15 */ -YY_RULE(int) yy_Heading(GREG *G); /* 14 */ -YY_RULE(int) yy_HorizontalRule(GREG *G); /* 13 */ -YY_RULE(int) yy_Reference(GREG *G); /* 12 */ -YY_RULE(int) yy_Note(GREG *G); /* 11 */ +YY_RULE(int) yy_RawNoteBlock(GREG *G); /* 240 */ +YY_RULE(int) yy_RawNoteReference(GREG *G); /* 239 */ +YY_RULE(int) yy_ExtendedSpecialChar(GREG *G); /* 238 */ +YY_RULE(int) yy_AlphanumericAscii(GREG *G); /* 237 */ +YY_RULE(int) yy_Quoted(GREG *G); /* 236 */ +YY_RULE(int) yy_HtmlTag(GREG *G); /* 235 */ +YY_RULE(int) yy_Ticks5(GREG *G); /* 234 */ +YY_RULE(int) yy_Ticks4(GREG *G); /* 233 */ +YY_RULE(int) yy_Ticks3(GREG *G); /* 232 */ +YY_RULE(int) yy_Ticks2(GREG *G); /* 231 */ +YY_RULE(int) yy_Ticks1(GREG *G); /* 230 */ +YY_RULE(int) yy_SkipBlock(GREG *G); /* 229 */ +YY_RULE(int) yy_References(GREG *G); /* 228 */ +YY_RULE(int) yy_EmptyTitle(GREG *G); /* 227 */ +YY_RULE(int) yy_RefTitleParens(GREG *G); /* 226 */ +YY_RULE(int) yy_RefTitleDouble(GREG *G); /* 225 */ +YY_RULE(int) yy_RefTitleSingle(GREG *G); /* 224 */ +YY_RULE(int) yy_RefTitle(GREG *G); /* 223 */ +YY_RULE(int) yy_RefSrc(GREG *G); /* 222 */ +YY_RULE(int) yy_AutoLinkEmail(GREG *G); /* 221 */ +YY_RULE(int) yy_AutoLinkUrl(GREG *G); /* 220 */ +YY_RULE(int) yy_ImageSizeHeight(GREG *G); /* 219 */ +YY_RULE(int) yy_ImageSizeWidth(GREG *G); /* 218 */ +YY_RULE(int) yy_ImageSizeComplete(GREG *G); /* 217 */ +YY_RULE(int) yy_TitleDoubleExt(GREG *G); /* 216 */ +YY_RULE(int) yy_TitleSingleExt(GREG *G); /* 215 */ +YY_RULE(int) yy_TitleDouble(GREG *G); /* 214 */ +YY_RULE(int) yy_TitleSingle(GREG *G); /* 213 */ +YY_RULE(int) yy_Nonspacechar(GREG *G); /* 212 */ +YY_RULE(int) yy_SourceContents(GREG *G); /* 211 */ +YY_RULE(int) yy_ImageSize(GREG *G); /* 210 */ +YY_RULE(int) yy_TitleExt(GREG *G); /* 209 */ +YY_RULE(int) yy_Title(GREG *G); /* 208 */ +YY_RULE(int) yy_Source(GREG *G); /* 207 */ +YY_RULE(int) yy_Label(GREG *G); /* 206 */ +YY_RULE(int) yy_ReferenceLinkSingle(GREG *G); /* 205 */ +YY_RULE(int) yy_ReferenceLinkDouble(GREG *G); /* 204 */ +YY_RULE(int) yy_AutoLink(GREG *G); /* 203 */ +YY_RULE(int) yy_ReferenceLink(GREG *G); /* 202 */ +YY_RULE(int) yy_ExplicitLinkSize(GREG *G); /* 201 */ +YY_RULE(int) yy_ExplicitLink(GREG *G); /* 200 */ +YY_RULE(int) yy_StrongUl(GREG *G); /* 199 */ +YY_RULE(int) yy_StrongStar(GREG *G); /* 198 */ +YY_RULE(int) yy_Whitespace(GREG *G); /* 197 */ +YY_RULE(int) yy_EmphUl(GREG *G); /* 196 */ +YY_RULE(int) yy_EmphStar(GREG *G); /* 195 */ +YY_RULE(int) yy_StarLine(GREG *G); /* 194 */ +YY_RULE(int) yy_UlLine(GREG *G); /* 193 */ +YY_RULE(int) yy_SpecialChar(GREG *G); /* 192 */ +YY_RULE(int) yy_Eof(GREG *G); /* 191 */ +YY_RULE(int) yy_NormalEndline(GREG *G); /* 190 */ +YY_RULE(int) yy_TerminalEndline(GREG *G); /* 189 */ +YY_RULE(int) yy_LineBreak(GREG *G); /* 188 */ +YY_RULE(int) yy_CharEntity(GREG *G); /* 187 */ +YY_RULE(int) yy_DecEntity(GREG *G); /* 186 */ +YY_RULE(int) yy_HexEntity(GREG *G); /* 185 */ +YY_RULE(int) yy_Alphanumeric(GREG *G); /* 184 */ +YY_RULE(int) yy_NormalChar(GREG *G); /* 183 */ +YY_RULE(int) yy_Symbol(GREG *G); /* 182 */ +YY_RULE(int) yy_EscapedChar(GREG *G); /* 181 */ +YY_RULE(int) yy_Entity(GREG *G); /* 180 */ +YY_RULE(int) yy_RawHtml(GREG *G); /* 179 */ +YY_RULE(int) yy_Code(GREG *G); /* 178 */ +YY_RULE(int) yy_InlineNote(GREG *G); /* 177 */ +YY_RULE(int) yy_NoteReference(GREG *G); /* 176 */ +YY_RULE(int) yy_Link(GREG *G); /* 175 */ +YY_RULE(int) yy_Image(GREG *G); /* 174 */ +YY_RULE(int) yy_Strike(GREG *G); /* 173 */ +YY_RULE(int) yy_Emph(GREG *G); /* 172 */ +YY_RULE(int) yy_Strong(GREG *G); /* 171 */ +YY_RULE(int) yy_UlOrStarLine(GREG *G); /* 170 */ +YY_RULE(int) yy_Str(GREG *G); /* 169 */ +YY_RULE(int) yy_InStyleTags(GREG *G); /* 168 */ +YY_RULE(int) yy_StyleClose(GREG *G); /* 167 */ +YY_RULE(int) yy_StyleOpen(GREG *G); /* 166 */ +YY_RULE(int) yy_HtmlBlockType(GREG *G); /* 165 */ +YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G); /* 164 */ +YY_RULE(int) yy_HtmlComment(GREG *G); /* 163 */ +YY_RULE(int) yy_HtmlBlockInTags(GREG *G); /* 162 */ +YY_RULE(int) yy_HtmlBlockHead(GREG *G); /* 161 */ +YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G); /* 160 */ +YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G); /* 159 */ +YY_RULE(int) yy_HtmlBlockScript(GREG *G); /* 158 */ +YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G); /* 157 */ +YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G); /* 156 */ +YY_RULE(int) yy_HtmlBlockTr(GREG *G); /* 155 */ +YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G); /* 154 */ +YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G); /* 153 */ +YY_RULE(int) yy_HtmlBlockThead(GREG *G); /* 152 */ +YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G); /* 151 */ +YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G); /* 150 */ +YY_RULE(int) yy_HtmlBlockTh(GREG *G); /* 149 */ +YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G); /* 148 */ +YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G); /* 147 */ +YY_RULE(int) yy_HtmlBlockTfoot(GREG *G); /* 146 */ +YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G); /* 145 */ +YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G); /* 144 */ +YY_RULE(int) yy_HtmlBlockTd(GREG *G); /* 143 */ +YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G); /* 142 */ +YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G); /* 141 */ +YY_RULE(int) yy_HtmlBlockTbody(GREG *G); /* 140 */ +YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G); /* 139 */ +YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G); /* 138 */ +YY_RULE(int) yy_HtmlBlockLi(GREG *G); /* 137 */ +YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G); /* 136 */ +YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G); /* 135 */ +YY_RULE(int) yy_HtmlBlockFrameset(GREG *G); /* 134 */ +YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G); /* 133 */ +YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G); /* 132 */ +YY_RULE(int) yy_HtmlBlockDt(GREG *G); /* 131 */ +YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G); /* 130 */ +YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G); /* 129 */ +YY_RULE(int) yy_HtmlBlockDd(GREG *G); /* 128 */ +YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G); /* 127 */ +YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G); /* 126 */ +YY_RULE(int) yy_HtmlBlockUl(GREG *G); /* 125 */ +YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G); /* 124 */ +YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G); /* 123 */ +YY_RULE(int) yy_HtmlBlockTable(GREG *G); /* 122 */ +YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G); /* 121 */ +YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G); /* 120 */ +YY_RULE(int) yy_HtmlBlockPre(GREG *G); /* 119 */ +YY_RULE(int) yy_HtmlBlockClosePre(GREG *G); /* 118 */ +YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G); /* 117 */ +YY_RULE(int) yy_HtmlBlockP(GREG *G); /* 116 */ +YY_RULE(int) yy_HtmlBlockCloseP(GREG *G); /* 115 */ +YY_RULE(int) yy_HtmlBlockOpenP(GREG *G); /* 114 */ +YY_RULE(int) yy_HtmlBlockOl(GREG *G); /* 113 */ +YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G); /* 112 */ +YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G); /* 111 */ +YY_RULE(int) yy_HtmlBlockNoscript(GREG *G); /* 110 */ +YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G); /* 109 */ +YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G); /* 108 */ +YY_RULE(int) yy_HtmlBlockNoframes(GREG *G); /* 107 */ +YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G); /* 106 */ +YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G); /* 105 */ +YY_RULE(int) yy_HtmlBlockMenu(GREG *G); /* 104 */ +YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G); /* 103 */ +YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G); /* 102 */ +YY_RULE(int) yy_HtmlBlockH6(GREG *G); /* 101 */ +YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G); /* 100 */ +YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G); /* 99 */ +YY_RULE(int) yy_HtmlBlockH5(GREG *G); /* 98 */ +YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G); /* 97 */ +YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G); /* 96 */ +YY_RULE(int) yy_HtmlBlockH4(GREG *G); /* 95 */ +YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G); /* 94 */ +YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G); /* 93 */ +YY_RULE(int) yy_HtmlBlockH3(GREG *G); /* 92 */ +YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G); /* 91 */ +YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G); /* 90 */ +YY_RULE(int) yy_HtmlBlockH2(GREG *G); /* 89 */ +YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G); /* 88 */ +YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G); /* 87 */ +YY_RULE(int) yy_HtmlBlockH1(GREG *G); /* 86 */ +YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G); /* 85 */ +YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G); /* 84 */ +YY_RULE(int) yy_HtmlBlockForm(GREG *G); /* 83 */ +YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G); /* 82 */ +YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G); /* 81 */ +YY_RULE(int) yy_HtmlBlockFieldset(GREG *G); /* 80 */ +YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G); /* 79 */ +YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G); /* 78 */ +YY_RULE(int) yy_HtmlBlockDl(GREG *G); /* 77 */ +YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G); /* 76 */ +YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G); /* 75 */ +YY_RULE(int) yy_HtmlBlockDiv(GREG *G); /* 74 */ +YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G); /* 73 */ +YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G); /* 72 */ +YY_RULE(int) yy_HtmlBlockDir(GREG *G); /* 71 */ +YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G); /* 70 */ +YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G); /* 69 */ +YY_RULE(int) yy_HtmlBlockCenter(GREG *G); /* 68 */ +YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G); /* 67 */ +YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G); /* 66 */ +YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G); /* 65 */ +YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G); /* 64 */ +YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G); /* 63 */ +YY_RULE(int) yy_HtmlBlockAddress(GREG *G); /* 62 */ +YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G); /* 61 */ +YY_RULE(int) yy_HtmlAttribute(GREG *G); /* 60 */ +YY_RULE(int) yy_Spnl(GREG *G); /* 59 */ +YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G); /* 58 */ +YY_RULE(int) yy_OptionallyIndentedLine(GREG *G); /* 57 */ +YY_RULE(int) yy_Indent(GREG *G); /* 56 */ +YY_RULE(int) yy_ListBlockLine(GREG *G); /* 55 */ +YY_RULE(int) yy_ListContinuationBlock(GREG *G); /* 54 */ +YY_RULE(int) yy_ListBlock(GREG *G); /* 53 */ +YY_RULE(int) yy_ListItem(GREG *G); /* 52 */ +YY_RULE(int) yy_Enumerator(GREG *G); /* 51 */ +YY_RULE(int) yy_ListItemTight(GREG *G); /* 50 */ +YY_RULE(int) yy_ListLoose(GREG *G); /* 49 */ +YY_RULE(int) yy_ListTight(GREG *G); /* 48 */ +YY_RULE(int) yy_Bullet(GREG *G); /* 47 */ +YY_RULE(int) yy_Spacechar(GREG *G); /* 46 */ +YY_RULE(int) yy_FencedCodeBlockEnd(GREG *G); /* 45 */ +YY_RULE(int) yy_FencedCodeBlockChunk(GREG *G); /* 44 */ +YY_RULE(int) yy_FencedCodeBlockStart(GREG *G); /* 43 */ +YY_RULE(int) yy_VerbatimChunk(GREG *G); /* 42 */ +YY_RULE(int) yy_IndentedLine(GREG *G); /* 41 */ +YY_RULE(int) yy_NonblankIndentedLine(GREG *G); /* 40 */ +YY_RULE(int) yy_Line(GREG *G); /* 39 */ +YY_RULE(int) yy_StartList(GREG *G); /* 38 */ +YY_RULE(int) yy_BlockQuoteRaw(GREG *G); /* 37 */ +YY_RULE(int) yy_Endline(GREG *G); /* 36 */ +YY_RULE(int) yy_RawLine(GREG *G); /* 35 */ +YY_RULE(int) yy_SetextBottom2(GREG *G); /* 34 */ +YY_RULE(int) yy_SetextBottom1(GREG *G); /* 33 */ +YY_RULE(int) yy_SetextHeading2(GREG *G); /* 32 */ +YY_RULE(int) yy_SetextHeading1(GREG *G); /* 31 */ +YY_RULE(int) yy_SetextHeading(GREG *G); /* 30 */ +YY_RULE(int) yy_Space(GREG *G); /* 29 */ +YY_RULE(int) yy_AtxHeading(GREG *G); /* 28 */ +YY_RULE(int) yy_AtxStart(GREG *G); /* 27 */ +YY_RULE(int) yy_Inline(GREG *G); /* 26 */ +YY_RULE(int) yy_Sp(GREG *G); /* 25 */ +YY_RULE(int) yy_AtxInline(GREG *G); /* 24 */ +YY_RULE(int) yy_Inlines(GREG *G); /* 23 */ +YY_RULE(int) yy_NonindentSpace(GREG *G); /* 22 */ +YY_RULE(int) yy_Plain(GREG *G); /* 21 */ +YY_RULE(int) yy_Para(GREG *G); /* 20 */ +YY_RULE(int) yy_StyleBlock(GREG *G); /* 19 */ +YY_RULE(int) yy_HtmlBlock(GREG *G); /* 18 */ +YY_RULE(int) yy_BulletList(GREG *G); /* 17 */ +YY_RULE(int) yy_OrderedList(GREG *G); /* 16 */ +YY_RULE(int) yy_Heading(GREG *G); /* 15 */ +YY_RULE(int) yy_HorizontalRule(GREG *G); /* 14 */ +YY_RULE(int) yy_Reference(GREG *G); /* 13 */ +YY_RULE(int) yy_Note(GREG *G); /* 12 */ +YY_RULE(int) yy_FencedCodeBlock(GREG *G); /* 11 */ YY_RULE(int) yy_Verbatim(GREG *G); /* 10 */ YY_RULE(int) yy_BlockQuote(GREG *G); /* 9 */ YY_RULE(int) yy_BlankLine(GREG *G); /* 8 */ @@ -1997,6 +2002,13 @@ YY_ACTION(void) yy_1_HorizontalRule(GREG *G, char *yytext, int yyleng, yythunk * yyprintf((stderr, "do yy_1_HorizontalRule\n")); ADD(elem(pmh_HRULE)); ; } +YY_ACTION(void) yy_1_FencedCodeBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR) +{ +#define s G->val[-1] + yyprintf((stderr, "do yy_1_FencedCodeBlock\n")); + ADD(elem(pmh_FENCEDCODEBLOCK)); ; +#undef s +} YY_ACTION(void) yy_1_Verbatim(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR) { #define s G->val[-1] @@ -5922,353 +5934,404 @@ YY_RULE(int) yy_ListTight(GREG *G) yyprintf((stderr, " fail %s @ %s\n", "ListTight", G->buf+G->pos)); return 0; } -YY_RULE(int) yy_Spacechar(GREG *G) -{ int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "Spacechar")); - { int yypos1298= G->pos, yythunkpos1298= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1299; goto l1298; - l1299:; G->pos= yypos1298; G->thunkpos= yythunkpos1298; if (!yymatchChar(G, '\t')) goto l1297; - } - l1298:; - yyprintf((stderr, " ok %s @ %s\n", "Spacechar", G->buf+G->pos)); - return 1; - l1297:; G->pos= yypos0; G->thunkpos= yythunkpos0; - yyprintf((stderr, " fail %s @ %s\n", "Spacechar", G->buf+G->pos)); - return 0; -} YY_RULE(int) yy_Bullet(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "Bullet")); - { int yypos1301= G->pos, yythunkpos1301= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1301; } goto l1300; - l1301:; G->pos= yypos1301; G->thunkpos= yythunkpos1301; - } if (!yy_NonindentSpace(G)) { goto l1300; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1300; - { int yypos1302= G->pos, yythunkpos1302= G->thunkpos; if (!yymatchChar(G, '+')) goto l1303; goto l1302; - l1303:; G->pos= yypos1302; G->thunkpos= yythunkpos1302; if (!yymatchChar(G, '*')) goto l1304; goto l1302; - l1304:; G->pos= yypos1302; G->thunkpos= yythunkpos1302; if (!yymatchChar(G, '-')) goto l1300; + { int yypos1298= G->pos, yythunkpos1298= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1298; } goto l1297; + l1298:; G->pos= yypos1298; G->thunkpos= yythunkpos1298; + } if (!yy_NonindentSpace(G)) { goto l1297; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1297; + { int yypos1299= G->pos, yythunkpos1299= G->thunkpos; if (!yymatchChar(G, '+')) goto l1300; goto l1299; + l1300:; G->pos= yypos1299; G->thunkpos= yythunkpos1299; if (!yymatchChar(G, '*')) goto l1301; goto l1299; + l1301:; G->pos= yypos1299; G->thunkpos= yythunkpos1299; if (!yymatchChar(G, '-')) goto l1297; } - l1302:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1300; if (!yy_Spacechar(G)) { goto l1300; } - l1305:; - { int yypos1306= G->pos, yythunkpos1306= G->thunkpos; if (!yy_Spacechar(G)) { goto l1306; } goto l1305; - l1306:; G->pos= yypos1306; G->thunkpos= yythunkpos1306; + l1299:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1297; if (!yy_Spacechar(G)) { goto l1297; } + l1302:; + { int yypos1303= G->pos, yythunkpos1303= G->thunkpos; if (!yy_Spacechar(G)) { goto l1303; } goto l1302; + l1303:; G->pos= yypos1303; G->thunkpos= yythunkpos1303; } yyDo(G, yy_1_Bullet, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "Bullet", G->buf+G->pos)); return 1; - l1300:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1297:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Bullet", G->buf+G->pos)); return 0; } +YY_RULE(int) yy_Spacechar(GREG *G) +{ int yypos0= G->pos, yythunkpos0= G->thunkpos; + yyprintf((stderr, "%s\n", "Spacechar")); + { int yypos1305= G->pos, yythunkpos1305= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1306; goto l1305; + l1306:; G->pos= yypos1305; G->thunkpos= yythunkpos1305; if (!yymatchChar(G, '\t')) goto l1304; + } + l1305:; + yyprintf((stderr, " ok %s @ %s\n", "Spacechar", G->buf+G->pos)); + return 1; + l1304:; G->pos= yypos0; G->thunkpos= yythunkpos0; + yyprintf((stderr, " fail %s @ %s\n", "Spacechar", G->buf+G->pos)); + return 0; +} +YY_RULE(int) yy_FencedCodeBlockEnd(GREG *G) +{ int yypos0= G->pos, yythunkpos0= G->thunkpos; + yyprintf((stderr, "%s\n", "FencedCodeBlockEnd")); if (!yymatchString(G, "```")) goto l1307; + l1308:; + { int yypos1309= G->pos, yythunkpos1309= G->thunkpos; if (!yy_Spacechar(G)) { goto l1309; } goto l1308; + l1309:; G->pos= yypos1309; G->thunkpos= yythunkpos1309; + } if (!yy_Newline(G)) { goto l1307; } + yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockEnd", G->buf+G->pos)); + return 1; + l1307:; G->pos= yypos0; G->thunkpos= yythunkpos0; + yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlockEnd", G->buf+G->pos)); + return 0; +} +YY_RULE(int) yy_FencedCodeBlockChunk(GREG *G) +{ int yypos0= G->pos, yythunkpos0= G->thunkpos; + yyprintf((stderr, "%s\n", "FencedCodeBlockChunk")); + { int yypos1311= G->pos, yythunkpos1311= G->thunkpos; if (!yy_FencedCodeBlockEnd(G)) { goto l1311; } goto l1310; + l1311:; G->pos= yypos1311; G->thunkpos= yythunkpos1311; + } + l1312:; + { int yypos1313= G->pos, yythunkpos1313= G->thunkpos; + { int yypos1314= G->pos, yythunkpos1314= G->thunkpos; if (!yy_Newline(G)) { goto l1314; } goto l1313; + l1314:; G->pos= yypos1314; G->thunkpos= yythunkpos1314; + } if (!yymatchDot(G)) goto l1313; goto l1312; + l1313:; G->pos= yypos1313; G->thunkpos= yythunkpos1313; + } if (!yy_Newline(G)) { goto l1310; } + yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockChunk", G->buf+G->pos)); + return 1; + l1310:; G->pos= yypos0; G->thunkpos= yythunkpos0; + yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlockChunk", G->buf+G->pos)); + return 0; +} +YY_RULE(int) yy_FencedCodeBlockStart(GREG *G) +{ int yypos0= G->pos, yythunkpos0= G->thunkpos; + yyprintf((stderr, "%s\n", "FencedCodeBlockStart")); if (!yymatchString(G, "```")) goto l1315; + l1316:; + { int yypos1317= G->pos, yythunkpos1317= G->thunkpos; + { int yypos1318= G->pos, yythunkpos1318= G->thunkpos; if (!yy_Newline(G)) { goto l1318; } goto l1317; + l1318:; G->pos= yypos1318; G->thunkpos= yythunkpos1318; + } + { int yypos1319= G->pos, yythunkpos1319= G->thunkpos; if (!yymatchChar(G, '`')) goto l1319; goto l1317; + l1319:; G->pos= yypos1319; G->thunkpos= yythunkpos1319; + } if (!yymatchDot(G)) goto l1317; goto l1316; + l1317:; G->pos= yypos1317; G->thunkpos= yythunkpos1317; + } if (!yy_Newline(G)) { goto l1315; } + yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockStart", G->buf+G->pos)); + return 1; + l1315:; G->pos= yypos0; G->thunkpos= yythunkpos0; + yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlockStart", G->buf+G->pos)); + return 0; +} YY_RULE(int) yy_VerbatimChunk(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "VerbatimChunk")); - l1308:; - { int yypos1309= G->pos, yythunkpos1309= G->thunkpos; if (!yy_BlankLine(G)) { goto l1309; } goto l1308; - l1309:; G->pos= yypos1309; G->thunkpos= yythunkpos1309; - } if (!yy_NonblankIndentedLine(G)) { goto l1307; } - l1310:; - { int yypos1311= G->pos, yythunkpos1311= G->thunkpos; if (!yy_NonblankIndentedLine(G)) { goto l1311; } goto l1310; - l1311:; G->pos= yypos1311; G->thunkpos= yythunkpos1311; + l1321:; + { int yypos1322= G->pos, yythunkpos1322= G->thunkpos; if (!yy_BlankLine(G)) { goto l1322; } goto l1321; + l1322:; G->pos= yypos1322; G->thunkpos= yythunkpos1322; + } if (!yy_NonblankIndentedLine(G)) { goto l1320; } + l1323:; + { int yypos1324= G->pos, yythunkpos1324= G->thunkpos; if (!yy_NonblankIndentedLine(G)) { goto l1324; } goto l1323; + l1324:; G->pos= yypos1324; G->thunkpos= yythunkpos1324; } yyprintf((stderr, " ok %s @ %s\n", "VerbatimChunk", G->buf+G->pos)); return 1; - l1307:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1320:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "VerbatimChunk", G->buf+G->pos)); return 0; } YY_RULE(int) yy_IndentedLine(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "IndentedLine")); if (!yy_Indent(G)) { goto l1312; } if (!yy_Line(G)) { goto l1312; } + yyprintf((stderr, "%s\n", "IndentedLine")); if (!yy_Indent(G)) { goto l1325; } if (!yy_Line(G)) { goto l1325; } yyprintf((stderr, " ok %s @ %s\n", "IndentedLine", G->buf+G->pos)); return 1; - l1312:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1325:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "IndentedLine", G->buf+G->pos)); return 0; } YY_RULE(int) yy_NonblankIndentedLine(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "NonblankIndentedLine")); - { int yypos1314= G->pos, yythunkpos1314= G->thunkpos; if (!yy_BlankLine(G)) { goto l1314; } goto l1313; - l1314:; G->pos= yypos1314; G->thunkpos= yythunkpos1314; - } if (!yy_IndentedLine(G)) { goto l1313; } + { int yypos1327= G->pos, yythunkpos1327= G->thunkpos; if (!yy_BlankLine(G)) { goto l1327; } goto l1326; + l1327:; G->pos= yypos1327; G->thunkpos= yythunkpos1327; + } if (!yy_IndentedLine(G)) { goto l1326; } yyprintf((stderr, " ok %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos)); return 1; - l1313:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1326:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Line(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "Line")); if (!yy_RawLine(G)) { goto l1315; } yyDo(G, yy_1_Line, G->begin, G->end); + yyprintf((stderr, "%s\n", "Line")); if (!yy_RawLine(G)) { goto l1328; } yyDo(G, yy_1_Line, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "Line", G->buf+G->pos)); return 1; - l1315:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1328:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Line", G->buf+G->pos)); return 0; } YY_RULE(int) yy_StartList(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "StartList")); - { int yypos1317= G->pos, yythunkpos1317= G->thunkpos; if (!yymatchDot(G)) goto l1316; G->pos= yypos1317; G->thunkpos= yythunkpos1317; + { int yypos1330= G->pos, yythunkpos1330= G->thunkpos; if (!yymatchDot(G)) goto l1329; G->pos= yypos1330; G->thunkpos= yythunkpos1330; } yyDo(G, yy_1_StartList, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "StartList", G->buf+G->pos)); return 1; - l1316:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1329:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "StartList", G->buf+G->pos)); return 0; } YY_RULE(int) yy_BlockQuoteRaw(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); - yyprintf((stderr, "%s\n", "BlockQuoteRaw")); if (!yy_StartList(G)) { goto l1318; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1318; if (!yymatchChar(G, '>')) goto l1318; - { int yypos1321= G->pos, yythunkpos1321= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1321; goto l1322; - l1321:; G->pos= yypos1321; G->thunkpos= yythunkpos1321; - } - l1322:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1318; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1318; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end); - l1323:; - { int yypos1324= G->pos, yythunkpos1324= G->thunkpos; - { int yypos1325= G->pos, yythunkpos1325= G->thunkpos; if (!yymatchChar(G, '>')) goto l1325; goto l1324; - l1325:; G->pos= yypos1325; G->thunkpos= yythunkpos1325; - } - { int yypos1326= G->pos, yythunkpos1326= G->thunkpos; if (!yy_BlankLine(G)) { goto l1326; } goto l1324; - l1326:; G->pos= yypos1326; G->thunkpos= yythunkpos1326; - } if (!yy_Line(G)) { goto l1324; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1323; - l1324:; G->pos= yypos1324; G->thunkpos= yythunkpos1324; - } - l1327:; - { int yypos1328= G->pos, yythunkpos1328= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1328; if (!yy_BlankLine(G)) { goto l1328; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1328; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1327; - l1328:; G->pos= yypos1328; G->thunkpos= yythunkpos1328; - } - l1319:; - { int yypos1320= G->pos, yythunkpos1320= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1320; if (!yymatchChar(G, '>')) goto l1320; - { int yypos1329= G->pos, yythunkpos1329= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1329; goto l1330; - l1329:; G->pos= yypos1329; G->thunkpos= yythunkpos1329; - } - l1330:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1320; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1320; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end); - l1331:; - { int yypos1332= G->pos, yythunkpos1332= G->thunkpos; - { int yypos1333= G->pos, yythunkpos1333= G->thunkpos; if (!yymatchChar(G, '>')) goto l1333; goto l1332; - l1333:; G->pos= yypos1333; G->thunkpos= yythunkpos1333; - } - { int yypos1334= G->pos, yythunkpos1334= G->thunkpos; if (!yy_BlankLine(G)) { goto l1334; } goto l1332; + yyprintf((stderr, "%s\n", "BlockQuoteRaw")); if (!yy_StartList(G)) { goto l1331; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1331; if (!yymatchChar(G, '>')) goto l1331; + { int yypos1334= G->pos, yythunkpos1334= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1334; goto l1335; l1334:; G->pos= yypos1334; G->thunkpos= yythunkpos1334; - } if (!yy_Line(G)) { goto l1332; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1331; - l1332:; G->pos= yypos1332; G->thunkpos= yythunkpos1332; } - l1335:; - { int yypos1336= G->pos, yythunkpos1336= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1336; if (!yy_BlankLine(G)) { goto l1336; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1336; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1335; - l1336:; G->pos= yypos1336; G->thunkpos= yythunkpos1336; - } goto l1319; - l1320:; G->pos= yypos1320; G->thunkpos= yythunkpos1320; + l1335:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1331; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1331; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end); + l1336:; + { int yypos1337= G->pos, yythunkpos1337= G->thunkpos; + { int yypos1338= G->pos, yythunkpos1338= G->thunkpos; if (!yymatchChar(G, '>')) goto l1338; goto l1337; + l1338:; G->pos= yypos1338; G->thunkpos= yythunkpos1338; + } + { int yypos1339= G->pos, yythunkpos1339= G->thunkpos; if (!yy_BlankLine(G)) { goto l1339; } goto l1337; + l1339:; G->pos= yypos1339; G->thunkpos= yythunkpos1339; + } if (!yy_Line(G)) { goto l1337; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1336; + l1337:; G->pos= yypos1337; G->thunkpos= yythunkpos1337; + } + l1340:; + { int yypos1341= G->pos, yythunkpos1341= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1341; if (!yy_BlankLine(G)) { goto l1341; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1341; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1340; + l1341:; G->pos= yypos1341; G->thunkpos= yythunkpos1341; + } + l1332:; + { int yypos1333= G->pos, yythunkpos1333= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1333; if (!yymatchChar(G, '>')) goto l1333; + { int yypos1342= G->pos, yythunkpos1342= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1342; goto l1343; + l1342:; G->pos= yypos1342; G->thunkpos= yythunkpos1342; + } + l1343:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1333; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1333; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end); + l1344:; + { int yypos1345= G->pos, yythunkpos1345= G->thunkpos; + { int yypos1346= G->pos, yythunkpos1346= G->thunkpos; if (!yymatchChar(G, '>')) goto l1346; goto l1345; + l1346:; G->pos= yypos1346; G->thunkpos= yythunkpos1346; + } + { int yypos1347= G->pos, yythunkpos1347= G->thunkpos; if (!yy_BlankLine(G)) { goto l1347; } goto l1345; + l1347:; G->pos= yypos1347; G->thunkpos= yythunkpos1347; + } if (!yy_Line(G)) { goto l1345; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1344; + l1345:; G->pos= yypos1345; G->thunkpos= yythunkpos1345; + } + l1348:; + { int yypos1349= G->pos, yythunkpos1349= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1349; if (!yy_BlankLine(G)) { goto l1349; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1349; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1348; + l1349:; G->pos= yypos1349; G->thunkpos= yythunkpos1349; + } goto l1332; + l1333:; G->pos= yypos1333; G->thunkpos= yythunkpos1333; } yyDo(G, yy_5_BlockQuoteRaw, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1318:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1331:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "BlockQuoteRaw", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Endline(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "Endline")); - { int yypos1338= G->pos, yythunkpos1338= G->thunkpos; if (!yy_LineBreak(G)) { goto l1339; } goto l1338; - l1339:; G->pos= yypos1338; G->thunkpos= yythunkpos1338; if (!yy_TerminalEndline(G)) { goto l1340; } goto l1338; - l1340:; G->pos= yypos1338; G->thunkpos= yythunkpos1338; if (!yy_NormalEndline(G)) { goto l1337; } + { int yypos1351= G->pos, yythunkpos1351= G->thunkpos; if (!yy_LineBreak(G)) { goto l1352; } goto l1351; + l1352:; G->pos= yypos1351; G->thunkpos= yythunkpos1351; if (!yy_TerminalEndline(G)) { goto l1353; } goto l1351; + l1353:; G->pos= yypos1351; G->thunkpos= yythunkpos1351; if (!yy_NormalEndline(G)) { goto l1350; } } - l1338:; + l1351:; yyprintf((stderr, " ok %s @ %s\n", "Endline", G->buf+G->pos)); return 1; - l1337:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1350:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Endline", G->buf+G->pos)); return 0; } YY_RULE(int) yy_RawLine(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "RawLine")); - { int yypos1342= G->pos, yythunkpos1342= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1343; - l1344:; - { int yypos1345= G->pos, yythunkpos1345= G->thunkpos; - { int yypos1346= G->pos, yythunkpos1346= G->thunkpos; if (!yymatchChar(G, '\r')) goto l1346; goto l1345; - l1346:; G->pos= yypos1346; G->thunkpos= yythunkpos1346; + { int yypos1355= G->pos, yythunkpos1355= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1356; + l1357:; + { int yypos1358= G->pos, yythunkpos1358= G->thunkpos; + { int yypos1359= G->pos, yythunkpos1359= G->thunkpos; if (!yymatchChar(G, '\r')) goto l1359; goto l1358; + l1359:; G->pos= yypos1359; G->thunkpos= yythunkpos1359; } - { int yypos1347= G->pos, yythunkpos1347= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1347; goto l1345; - l1347:; G->pos= yypos1347; G->thunkpos= yythunkpos1347; - } if (!yymatchDot(G)) goto l1345; goto l1344; - l1345:; G->pos= yypos1345; G->thunkpos= yythunkpos1345; - } if (!yy_Newline(G)) { goto l1343; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1343; goto l1342; - l1343:; G->pos= yypos1342; G->thunkpos= yythunkpos1342; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1341; if (!yymatchDot(G)) goto l1341; - l1348:; - { int yypos1349= G->pos, yythunkpos1349= G->thunkpos; if (!yymatchDot(G)) goto l1349; goto l1348; - l1349:; G->pos= yypos1349; G->thunkpos= yythunkpos1349; - } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1341; if (!yy_Eof(G)) { goto l1341; } + { int yypos1360= G->pos, yythunkpos1360= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1360; goto l1358; + l1360:; G->pos= yypos1360; G->thunkpos= yythunkpos1360; + } if (!yymatchDot(G)) goto l1358; goto l1357; + l1358:; G->pos= yypos1358; G->thunkpos= yythunkpos1358; + } if (!yy_Newline(G)) { goto l1356; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1356; goto l1355; + l1356:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1354; if (!yymatchDot(G)) goto l1354; + l1361:; + { int yypos1362= G->pos, yythunkpos1362= G->thunkpos; if (!yymatchDot(G)) goto l1362; goto l1361; + l1362:; G->pos= yypos1362; G->thunkpos= yythunkpos1362; + } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1354; if (!yy_Eof(G)) { goto l1354; } } - l1342:; yyDo(G, yy_1_RawLine, G->begin, G->end); + l1355:; yyDo(G, yy_1_RawLine, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "RawLine", G->buf+G->pos)); return 1; - l1341:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1354:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "RawLine", G->buf+G->pos)); return 0; } YY_RULE(int) yy_SetextBottom2(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "SetextBottom2")); if (!yymatchChar(G, '-')) goto l1350; - l1351:; - { int yypos1352= G->pos, yythunkpos1352= G->thunkpos; if (!yymatchChar(G, '-')) goto l1352; goto l1351; - l1352:; G->pos= yypos1352; G->thunkpos= yythunkpos1352; - } if (!yy_Newline(G)) { goto l1350; } + yyprintf((stderr, "%s\n", "SetextBottom2")); if (!yymatchChar(G, '-')) goto l1363; + l1364:; + { int yypos1365= G->pos, yythunkpos1365= G->thunkpos; if (!yymatchChar(G, '-')) goto l1365; goto l1364; + l1365:; G->pos= yypos1365; G->thunkpos= yythunkpos1365; + } if (!yy_Newline(G)) { goto l1363; } yyprintf((stderr, " ok %s @ %s\n", "SetextBottom2", G->buf+G->pos)); return 1; - l1350:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1363:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "SetextBottom2", G->buf+G->pos)); return 0; } YY_RULE(int) yy_SetextBottom1(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "SetextBottom1")); if (!yymatchChar(G, '=')) goto l1353; - l1354:; - { int yypos1355= G->pos, yythunkpos1355= G->thunkpos; if (!yymatchChar(G, '=')) goto l1355; goto l1354; - l1355:; G->pos= yypos1355; G->thunkpos= yythunkpos1355; - } if (!yy_Newline(G)) { goto l1353; } + yyprintf((stderr, "%s\n", "SetextBottom1")); if (!yymatchChar(G, '=')) goto l1366; + l1367:; + { int yypos1368= G->pos, yythunkpos1368= G->thunkpos; if (!yymatchChar(G, '=')) goto l1368; goto l1367; + l1368:; G->pos= yypos1368; G->thunkpos= yythunkpos1368; + } if (!yy_Newline(G)) { goto l1366; } yyprintf((stderr, " ok %s @ %s\n", "SetextBottom1", G->buf+G->pos)); return 1; - l1353:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1366:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "SetextBottom1", G->buf+G->pos)); return 0; } YY_RULE(int) yy_SetextHeading2(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); yyprintf((stderr, "%s\n", "SetextHeading2")); - { int yypos1357= G->pos, yythunkpos1357= G->thunkpos; if (!yy_RawLine(G)) { goto l1356; } if (!yy_SetextBottom2(G)) { goto l1356; } G->pos= yypos1357; G->thunkpos= yythunkpos1357; - } if (!yy_LocMarker(G)) { goto l1356; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1356; - { int yypos1360= G->pos, yythunkpos1360= G->thunkpos; if (!yy_Endline(G)) { goto l1360; } goto l1356; - l1360:; G->pos= yypos1360; G->thunkpos= yythunkpos1360; - } if (!yy_Inline(G)) { goto l1356; } - l1358:; - { int yypos1359= G->pos, yythunkpos1359= G->thunkpos; - { int yypos1361= G->pos, yythunkpos1361= G->thunkpos; if (!yy_Endline(G)) { goto l1361; } goto l1359; - l1361:; G->pos= yypos1361; G->thunkpos= yythunkpos1361; - } if (!yy_Inline(G)) { goto l1359; } goto l1358; - l1359:; G->pos= yypos1359; G->thunkpos= yythunkpos1359; - } if (!yy_Sp(G)) { goto l1356; } if (!yy_Newline(G)) { goto l1356; } if (!yy_SetextBottom2(G)) { goto l1356; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1356; yyDo(G, yy_1_SetextHeading2, G->begin, G->end); + { int yypos1370= G->pos, yythunkpos1370= G->thunkpos; if (!yy_RawLine(G)) { goto l1369; } if (!yy_SetextBottom2(G)) { goto l1369; } G->pos= yypos1370; G->thunkpos= yythunkpos1370; + } if (!yy_LocMarker(G)) { goto l1369; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1369; + { int yypos1373= G->pos, yythunkpos1373= G->thunkpos; if (!yy_Endline(G)) { goto l1373; } goto l1369; + l1373:; G->pos= yypos1373; G->thunkpos= yythunkpos1373; + } if (!yy_Inline(G)) { goto l1369; } + l1371:; + { int yypos1372= G->pos, yythunkpos1372= G->thunkpos; + { int yypos1374= G->pos, yythunkpos1374= G->thunkpos; if (!yy_Endline(G)) { goto l1374; } goto l1372; + l1374:; G->pos= yypos1374; G->thunkpos= yythunkpos1374; + } if (!yy_Inline(G)) { goto l1372; } goto l1371; + l1372:; G->pos= yypos1372; G->thunkpos= yythunkpos1372; + } if (!yy_Sp(G)) { goto l1369; } if (!yy_Newline(G)) { goto l1369; } if (!yy_SetextBottom2(G)) { goto l1369; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1369; yyDo(G, yy_1_SetextHeading2, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "SetextHeading2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1356:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1369:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "SetextHeading2", G->buf+G->pos)); return 0; } YY_RULE(int) yy_SetextHeading1(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); yyprintf((stderr, "%s\n", "SetextHeading1")); - { int yypos1363= G->pos, yythunkpos1363= G->thunkpos; if (!yy_RawLine(G)) { goto l1362; } if (!yy_SetextBottom1(G)) { goto l1362; } G->pos= yypos1363; G->thunkpos= yythunkpos1363; - } if (!yy_LocMarker(G)) { goto l1362; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1362; - { int yypos1366= G->pos, yythunkpos1366= G->thunkpos; if (!yy_Endline(G)) { goto l1366; } goto l1362; - l1366:; G->pos= yypos1366; G->thunkpos= yythunkpos1366; - } if (!yy_Inline(G)) { goto l1362; } - l1364:; - { int yypos1365= G->pos, yythunkpos1365= G->thunkpos; - { int yypos1367= G->pos, yythunkpos1367= G->thunkpos; if (!yy_Endline(G)) { goto l1367; } goto l1365; - l1367:; G->pos= yypos1367; G->thunkpos= yythunkpos1367; - } if (!yy_Inline(G)) { goto l1365; } goto l1364; - l1365:; G->pos= yypos1365; G->thunkpos= yythunkpos1365; - } if (!yy_Sp(G)) { goto l1362; } if (!yy_Newline(G)) { goto l1362; } if (!yy_SetextBottom1(G)) { goto l1362; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1362; yyDo(G, yy_1_SetextHeading1, G->begin, G->end); + { int yypos1376= G->pos, yythunkpos1376= G->thunkpos; if (!yy_RawLine(G)) { goto l1375; } if (!yy_SetextBottom1(G)) { goto l1375; } G->pos= yypos1376; G->thunkpos= yythunkpos1376; + } if (!yy_LocMarker(G)) { goto l1375; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1375; + { int yypos1379= G->pos, yythunkpos1379= G->thunkpos; if (!yy_Endline(G)) { goto l1379; } goto l1375; + l1379:; G->pos= yypos1379; G->thunkpos= yythunkpos1379; + } if (!yy_Inline(G)) { goto l1375; } + l1377:; + { int yypos1378= G->pos, yythunkpos1378= G->thunkpos; + { int yypos1380= G->pos, yythunkpos1380= G->thunkpos; if (!yy_Endline(G)) { goto l1380; } goto l1378; + l1380:; G->pos= yypos1380; G->thunkpos= yythunkpos1380; + } if (!yy_Inline(G)) { goto l1378; } goto l1377; + l1378:; G->pos= yypos1378; G->thunkpos= yythunkpos1378; + } if (!yy_Sp(G)) { goto l1375; } if (!yy_Newline(G)) { goto l1375; } if (!yy_SetextBottom1(G)) { goto l1375; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1375; yyDo(G, yy_1_SetextHeading1, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "SetextHeading1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1362:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1375:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "SetextHeading1", G->buf+G->pos)); return 0; } YY_RULE(int) yy_SetextHeading(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "SetextHeading")); - { int yypos1369= G->pos, yythunkpos1369= G->thunkpos; if (!yy_SetextHeading1(G)) { goto l1370; } goto l1369; - l1370:; G->pos= yypos1369; G->thunkpos= yythunkpos1369; if (!yy_SetextHeading2(G)) { goto l1368; } + { int yypos1382= G->pos, yythunkpos1382= G->thunkpos; if (!yy_SetextHeading1(G)) { goto l1383; } goto l1382; + l1383:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yy_SetextHeading2(G)) { goto l1381; } } - l1369:; + l1382:; yyprintf((stderr, " ok %s @ %s\n", "SetextHeading", G->buf+G->pos)); return 1; - l1368:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1381:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "SetextHeading", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Space(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "Space")); if (!yy_Spacechar(G)) { goto l1371; } - l1372:; - { int yypos1373= G->pos, yythunkpos1373= G->thunkpos; if (!yy_Spacechar(G)) { goto l1373; } goto l1372; - l1373:; G->pos= yypos1373; G->thunkpos= yythunkpos1373; + yyprintf((stderr, "%s\n", "Space")); if (!yy_Spacechar(G)) { goto l1384; } + l1385:; + { int yypos1386= G->pos, yythunkpos1386= G->thunkpos; if (!yy_Spacechar(G)) { goto l1386; } goto l1385; + l1386:; G->pos= yypos1386; G->thunkpos= yythunkpos1386; } yyprintf((stderr, " ok %s @ %s\n", "Space", G->buf+G->pos)); return 1; - l1371:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1384:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Space", G->buf+G->pos)); return 0; } YY_RULE(int) yy_AtxHeading(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); - yyprintf((stderr, "%s\n", "AtxHeading")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1374; if (!yy_AtxStart(G)) { goto l1374; } yyDo(G, yySet, -1, 0); if (!yy_Space(G)) { goto l1374; } if (!yy_AtxInline(G)) { goto l1374; } - l1375:; - { int yypos1376= G->pos, yythunkpos1376= G->thunkpos; if (!yy_AtxInline(G)) { goto l1376; } goto l1375; - l1376:; G->pos= yypos1376; G->thunkpos= yythunkpos1376; + yyprintf((stderr, "%s\n", "AtxHeading")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1387; if (!yy_AtxStart(G)) { goto l1387; } yyDo(G, yySet, -1, 0); if (!yy_Space(G)) { goto l1387; } if (!yy_AtxInline(G)) { goto l1387; } + l1388:; + { int yypos1389= G->pos, yythunkpos1389= G->thunkpos; if (!yy_AtxInline(G)) { goto l1389; } goto l1388; + l1389:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; } - { int yypos1377= G->pos, yythunkpos1377= G->thunkpos; if (!yy_Sp(G)) { goto l1377; } - l1379:; - { int yypos1380= G->pos, yythunkpos1380= G->thunkpos; if (!yymatchChar(G, '#')) goto l1380; goto l1379; - l1380:; G->pos= yypos1380; G->thunkpos= yythunkpos1380; - } if (!yy_Sp(G)) { goto l1377; } goto l1378; - l1377:; G->pos= yypos1377; G->thunkpos= yythunkpos1377; + { int yypos1390= G->pos, yythunkpos1390= G->thunkpos; if (!yy_Sp(G)) { goto l1390; } + l1392:; + { int yypos1393= G->pos, yythunkpos1393= G->thunkpos; if (!yymatchChar(G, '#')) goto l1393; goto l1392; + l1393:; G->pos= yypos1393; G->thunkpos= yythunkpos1393; + } if (!yy_Sp(G)) { goto l1390; } goto l1391; + l1390:; G->pos= yypos1390; G->thunkpos= yythunkpos1390; } - l1378:; if (!yy_Newline(G)) { goto l1374; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1374; yyDo(G, yy_1_AtxHeading, G->begin, G->end); + l1391:; if (!yy_Newline(G)) { goto l1387; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1387; yyDo(G, yy_1_AtxHeading, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "AtxHeading", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1374:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1387:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "AtxHeading", G->buf+G->pos)); return 0; } YY_RULE(int) yy_AtxStart(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "AtxStart")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1381; - { int yypos1382= G->pos, yythunkpos1382= G->thunkpos; if (!yymatchString(G, "######")) goto l1383; goto l1382; - l1383:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "#####")) goto l1384; goto l1382; - l1384:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "####")) goto l1385; goto l1382; - l1385:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "###")) goto l1386; goto l1382; - l1386:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchString(G, "##")) goto l1387; goto l1382; - l1387:; G->pos= yypos1382; G->thunkpos= yythunkpos1382; if (!yymatchChar(G, '#')) goto l1381; + yyprintf((stderr, "%s\n", "AtxStart")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1394; + { int yypos1395= G->pos, yythunkpos1395= G->thunkpos; if (!yymatchString(G, "######")) goto l1396; goto l1395; + l1396:; G->pos= yypos1395; G->thunkpos= yythunkpos1395; if (!yymatchString(G, "#####")) goto l1397; goto l1395; + l1397:; G->pos= yypos1395; G->thunkpos= yythunkpos1395; if (!yymatchString(G, "####")) goto l1398; goto l1395; + l1398:; G->pos= yypos1395; G->thunkpos= yythunkpos1395; if (!yymatchString(G, "###")) goto l1399; goto l1395; + l1399:; G->pos= yypos1395; G->thunkpos= yythunkpos1395; if (!yymatchString(G, "##")) goto l1400; goto l1395; + l1400:; G->pos= yypos1395; G->thunkpos= yythunkpos1395; if (!yymatchChar(G, '#')) goto l1394; } - l1382:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1381; yyDo(G, yy_1_AtxStart, G->begin, G->end); + l1395:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1394; yyDo(G, yy_1_AtxStart, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "AtxStart", G->buf+G->pos)); return 1; - l1381:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1394:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "AtxStart", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Inline(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "Inline")); - { int yypos1389= G->pos, yythunkpos1389= G->thunkpos; if (!yy_Str(G)) { goto l1390; } goto l1389; - l1390:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Endline(G)) { goto l1391; } goto l1389; - l1391:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_UlOrStarLine(G)) { goto l1392; } goto l1389; - l1392:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Space(G)) { goto l1393; } goto l1389; - l1393:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Strong(G)) { goto l1394; } goto l1389; - l1394:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Emph(G)) { goto l1395; } goto l1389; - l1395:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Strike(G)) { goto l1396; } goto l1389; - l1396:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Image(G)) { goto l1397; } goto l1389; - l1397:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Link(G)) { goto l1398; } goto l1389; - l1398:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_NoteReference(G)) { goto l1399; } goto l1389; - l1399:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_InlineNote(G)) { goto l1400; } goto l1389; - l1400:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Code(G)) { goto l1401; } goto l1389; - l1401:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_RawHtml(G)) { goto l1402; } goto l1389; - l1402:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Entity(G)) { goto l1403; } goto l1389; - l1403:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_EscapedChar(G)) { goto l1404; } goto l1389; - l1404:; G->pos= yypos1389; G->thunkpos= yythunkpos1389; if (!yy_Symbol(G)) { goto l1388; } + { int yypos1402= G->pos, yythunkpos1402= G->thunkpos; if (!yy_Str(G)) { goto l1403; } goto l1402; + l1403:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Endline(G)) { goto l1404; } goto l1402; + l1404:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_UlOrStarLine(G)) { goto l1405; } goto l1402; + l1405:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Space(G)) { goto l1406; } goto l1402; + l1406:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Strong(G)) { goto l1407; } goto l1402; + l1407:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Emph(G)) { goto l1408; } goto l1402; + l1408:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Strike(G)) { goto l1409; } goto l1402; + l1409:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Image(G)) { goto l1410; } goto l1402; + l1410:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Link(G)) { goto l1411; } goto l1402; + l1411:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_NoteReference(G)) { goto l1412; } goto l1402; + l1412:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_InlineNote(G)) { goto l1413; } goto l1402; + l1413:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Code(G)) { goto l1414; } goto l1402; + l1414:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_RawHtml(G)) { goto l1415; } goto l1402; + l1415:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Entity(G)) { goto l1416; } goto l1402; + l1416:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_EscapedChar(G)) { goto l1417; } goto l1402; + l1417:; G->pos= yypos1402; G->thunkpos= yythunkpos1402; if (!yy_Symbol(G)) { goto l1401; } } - l1389:; + l1402:; yyprintf((stderr, " ok %s @ %s\n", "Inline", G->buf+G->pos)); return 1; - l1388:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1401:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Inline", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Sp(GREG *G) { yyprintf((stderr, "%s\n", "Sp")); - l1406:; - { int yypos1407= G->pos, yythunkpos1407= G->thunkpos; if (!yy_Spacechar(G)) { goto l1407; } goto l1406; - l1407:; G->pos= yypos1407; G->thunkpos= yythunkpos1407; + l1419:; + { int yypos1420= G->pos, yythunkpos1420= G->thunkpos; if (!yy_Spacechar(G)) { goto l1420; } goto l1419; + l1420:; G->pos= yypos1420; G->thunkpos= yythunkpos1420; } yyprintf((stderr, " ok %s @ %s\n", "Sp", G->buf+G->pos)); return 1; @@ -6276,374 +6339,388 @@ YY_RULE(int) yy_Sp(GREG *G) YY_RULE(int) yy_AtxInline(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "AtxInline")); - { int yypos1409= G->pos, yythunkpos1409= G->thunkpos; if (!yy_Newline(G)) { goto l1409; } goto l1408; - l1409:; G->pos= yypos1409; G->thunkpos= yythunkpos1409; + { int yypos1422= G->pos, yythunkpos1422= G->thunkpos; if (!yy_Newline(G)) { goto l1422; } goto l1421; + l1422:; G->pos= yypos1422; G->thunkpos= yythunkpos1422; } - { int yypos1410= G->pos, yythunkpos1410= G->thunkpos; if (!yy_Sp(G)) { goto l1410; } - l1411:; - { int yypos1412= G->pos, yythunkpos1412= G->thunkpos; if (!yymatchChar(G, '#')) goto l1412; goto l1411; - l1412:; G->pos= yypos1412; G->thunkpos= yythunkpos1412; - } if (!yy_Sp(G)) { goto l1410; } if (!yy_Newline(G)) { goto l1410; } goto l1408; - l1410:; G->pos= yypos1410; G->thunkpos= yythunkpos1410; - } if (!yy_Inline(G)) { goto l1408; } + { int yypos1423= G->pos, yythunkpos1423= G->thunkpos; if (!yy_Sp(G)) { goto l1423; } + l1424:; + { int yypos1425= G->pos, yythunkpos1425= G->thunkpos; if (!yymatchChar(G, '#')) goto l1425; goto l1424; + l1425:; G->pos= yypos1425; G->thunkpos= yythunkpos1425; + } if (!yy_Sp(G)) { goto l1423; } if (!yy_Newline(G)) { goto l1423; } goto l1421; + l1423:; G->pos= yypos1423; G->thunkpos= yythunkpos1423; + } if (!yy_Inline(G)) { goto l1421; } yyprintf((stderr, " ok %s @ %s\n", "AtxInline", G->buf+G->pos)); return 1; - l1408:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1421:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "AtxInline", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Inlines(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "Inlines")); - { int yypos1416= G->pos, yythunkpos1416= G->thunkpos; - { int yypos1418= G->pos, yythunkpos1418= G->thunkpos; if (!yy_Endline(G)) { goto l1418; } goto l1417; - l1418:; G->pos= yypos1418; G->thunkpos= yythunkpos1418; - } if (!yy_Inline(G)) { goto l1417; } goto l1416; - l1417:; G->pos= yypos1416; G->thunkpos= yythunkpos1416; if (!yy_Endline(G)) { goto l1413; } - { int yypos1419= G->pos, yythunkpos1419= G->thunkpos; if (!yy_Inline(G)) { goto l1413; } G->pos= yypos1419; G->thunkpos= yythunkpos1419; + { int yypos1429= G->pos, yythunkpos1429= G->thunkpos; + { int yypos1431= G->pos, yythunkpos1431= G->thunkpos; if (!yy_Endline(G)) { goto l1431; } goto l1430; + l1431:; G->pos= yypos1431; G->thunkpos= yythunkpos1431; + } if (!yy_Inline(G)) { goto l1430; } goto l1429; + l1430:; G->pos= yypos1429; G->thunkpos= yythunkpos1429; if (!yy_Endline(G)) { goto l1426; } + { int yypos1432= G->pos, yythunkpos1432= G->thunkpos; if (!yy_Inline(G)) { goto l1426; } G->pos= yypos1432; G->thunkpos= yythunkpos1432; } } - l1416:; - l1414:; - { int yypos1415= G->pos, yythunkpos1415= G->thunkpos; - { int yypos1420= G->pos, yythunkpos1420= G->thunkpos; - { int yypos1422= G->pos, yythunkpos1422= G->thunkpos; if (!yy_Endline(G)) { goto l1422; } goto l1421; - l1422:; G->pos= yypos1422; G->thunkpos= yythunkpos1422; - } if (!yy_Inline(G)) { goto l1421; } goto l1420; - l1421:; G->pos= yypos1420; G->thunkpos= yythunkpos1420; if (!yy_Endline(G)) { goto l1415; } - { int yypos1423= G->pos, yythunkpos1423= G->thunkpos; if (!yy_Inline(G)) { goto l1415; } G->pos= yypos1423; G->thunkpos= yythunkpos1423; + l1429:; + l1427:; + { int yypos1428= G->pos, yythunkpos1428= G->thunkpos; + { int yypos1433= G->pos, yythunkpos1433= G->thunkpos; + { int yypos1435= G->pos, yythunkpos1435= G->thunkpos; if (!yy_Endline(G)) { goto l1435; } goto l1434; + l1435:; G->pos= yypos1435; G->thunkpos= yythunkpos1435; + } if (!yy_Inline(G)) { goto l1434; } goto l1433; + l1434:; G->pos= yypos1433; G->thunkpos= yythunkpos1433; if (!yy_Endline(G)) { goto l1428; } + { int yypos1436= G->pos, yythunkpos1436= G->thunkpos; if (!yy_Inline(G)) { goto l1428; } G->pos= yypos1436; G->thunkpos= yythunkpos1436; } } - l1420:; goto l1414; - l1415:; G->pos= yypos1415; G->thunkpos= yythunkpos1415; + l1433:; goto l1427; + l1428:; G->pos= yypos1428; G->thunkpos= yythunkpos1428; } - { int yypos1424= G->pos, yythunkpos1424= G->thunkpos; if (!yy_Endline(G)) { goto l1424; } goto l1425; - l1424:; G->pos= yypos1424; G->thunkpos= yythunkpos1424; + { int yypos1437= G->pos, yythunkpos1437= G->thunkpos; if (!yy_Endline(G)) { goto l1437; } goto l1438; + l1437:; G->pos= yypos1437; G->thunkpos= yythunkpos1437; } - l1425:; + l1438:; yyprintf((stderr, " ok %s @ %s\n", "Inlines", G->buf+G->pos)); return 1; - l1413:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1426:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Inlines", G->buf+G->pos)); return 0; } YY_RULE(int) yy_NonindentSpace(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "NonindentSpace")); - { int yypos1427= G->pos, yythunkpos1427= G->thunkpos; if (!yymatchString(G, " ")) goto l1428; goto l1427; - l1428:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yymatchString(G, " ")) goto l1429; goto l1427; - l1429:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yymatchChar(G, ' ')) goto l1430; goto l1427; - l1430:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yymatchString(G, "")) goto l1426; + { int yypos1440= G->pos, yythunkpos1440= G->thunkpos; if (!yymatchString(G, " ")) goto l1441; goto l1440; + l1441:; G->pos= yypos1440; G->thunkpos= yythunkpos1440; if (!yymatchString(G, " ")) goto l1442; goto l1440; + l1442:; G->pos= yypos1440; G->thunkpos= yythunkpos1440; if (!yymatchChar(G, ' ')) goto l1443; goto l1440; + l1443:; G->pos= yypos1440; G->thunkpos= yythunkpos1440; if (!yymatchString(G, "")) goto l1439; } - l1427:; + l1440:; yyprintf((stderr, " ok %s @ %s\n", "NonindentSpace", G->buf+G->pos)); return 1; - l1426:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1439:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "NonindentSpace", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Plain(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "Plain")); if (!yy_Inlines(G)) { goto l1431; } + yyprintf((stderr, "%s\n", "Plain")); if (!yy_Inlines(G)) { goto l1444; } yyprintf((stderr, " ok %s @ %s\n", "Plain", G->buf+G->pos)); return 1; - l1431:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1444:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Plain", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Para(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "Para")); if (!yy_NonindentSpace(G)) { goto l1432; } if (!yy_Inlines(G)) { goto l1432; } if (!yy_BlankLine(G)) { goto l1432; } - l1433:; - { int yypos1434= G->pos, yythunkpos1434= G->thunkpos; if (!yy_BlankLine(G)) { goto l1434; } goto l1433; - l1434:; G->pos= yypos1434; G->thunkpos= yythunkpos1434; + yyprintf((stderr, "%s\n", "Para")); if (!yy_NonindentSpace(G)) { goto l1445; } if (!yy_Inlines(G)) { goto l1445; } if (!yy_BlankLine(G)) { goto l1445; } + l1446:; + { int yypos1447= G->pos, yythunkpos1447= G->thunkpos; if (!yy_BlankLine(G)) { goto l1447; } goto l1446; + l1447:; G->pos= yypos1447; G->thunkpos= yythunkpos1447; } yyprintf((stderr, " ok %s @ %s\n", "Para", G->buf+G->pos)); return 1; - l1432:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1445:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Para", G->buf+G->pos)); return 0; } YY_RULE(int) yy_StyleBlock(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); - yyprintf((stderr, "%s\n", "StyleBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1435; if (!yy_LocMarker(G)) { goto l1435; } yyDo(G, yySet, -1, 0); if (!yy_InStyleTags(G)) { goto l1435; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1435; - l1436:; - { int yypos1437= G->pos, yythunkpos1437= G->thunkpos; if (!yy_BlankLine(G)) { goto l1437; } goto l1436; - l1437:; G->pos= yypos1437; G->thunkpos= yythunkpos1437; + yyprintf((stderr, "%s\n", "StyleBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1448; if (!yy_LocMarker(G)) { goto l1448; } yyDo(G, yySet, -1, 0); if (!yy_InStyleTags(G)) { goto l1448; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1448; + l1449:; + { int yypos1450= G->pos, yythunkpos1450= G->thunkpos; if (!yy_BlankLine(G)) { goto l1450; } goto l1449; + l1450:; G->pos= yypos1450; G->thunkpos= yythunkpos1450; } yyDo(G, yy_1_StyleBlock, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "StyleBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1435:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1448:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "StyleBlock", G->buf+G->pos)); return 0; } YY_RULE(int) yy_HtmlBlock(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); - yyprintf((stderr, "%s\n", "HtmlBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1438; if (!yy_LocMarker(G)) { goto l1438; } yyDo(G, yySet, -1, 0); - { int yypos1439= G->pos, yythunkpos1439= G->thunkpos; if (!yy_HtmlBlockInTags(G)) { goto l1440; } goto l1439; - l1440:; G->pos= yypos1439; G->thunkpos= yythunkpos1439; if (!yy_HtmlComment(G)) { goto l1441; } goto l1439; - l1441:; G->pos= yypos1439; G->thunkpos= yythunkpos1439; if (!yy_HtmlBlockSelfClosing(G)) { goto l1438; } + yyprintf((stderr, "%s\n", "HtmlBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1451; if (!yy_LocMarker(G)) { goto l1451; } yyDo(G, yySet, -1, 0); + { int yypos1452= G->pos, yythunkpos1452= G->thunkpos; if (!yy_HtmlBlockInTags(G)) { goto l1453; } goto l1452; + l1453:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_HtmlComment(G)) { goto l1454; } goto l1452; + l1454:; G->pos= yypos1452; G->thunkpos= yythunkpos1452; if (!yy_HtmlBlockSelfClosing(G)) { goto l1451; } } - l1439:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1438; if (!yy_BlankLine(G)) { goto l1438; } - l1442:; - { int yypos1443= G->pos, yythunkpos1443= G->thunkpos; if (!yy_BlankLine(G)) { goto l1443; } goto l1442; - l1443:; G->pos= yypos1443; G->thunkpos= yythunkpos1443; + l1452:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1451; if (!yy_BlankLine(G)) { goto l1451; } + l1455:; + { int yypos1456= G->pos, yythunkpos1456= G->thunkpos; if (!yy_BlankLine(G)) { goto l1456; } goto l1455; + l1456:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; } yyDo(G, yy_1_HtmlBlock, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "HtmlBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1438:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1451:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "HtmlBlock", G->buf+G->pos)); return 0; } YY_RULE(int) yy_BulletList(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "BulletList")); - { int yypos1445= G->pos, yythunkpos1445= G->thunkpos; if (!yy_Bullet(G)) { goto l1444; } G->pos= yypos1445; G->thunkpos= yythunkpos1445; + { int yypos1458= G->pos, yythunkpos1458= G->thunkpos; if (!yy_Bullet(G)) { goto l1457; } G->pos= yypos1458; G->thunkpos= yythunkpos1458; } - { int yypos1446= G->pos, yythunkpos1446= G->thunkpos; if (!yy_ListTight(G)) { goto l1447; } goto l1446; - l1447:; G->pos= yypos1446; G->thunkpos= yythunkpos1446; if (!yy_ListLoose(G)) { goto l1444; } + { int yypos1459= G->pos, yythunkpos1459= G->thunkpos; if (!yy_ListTight(G)) { goto l1460; } goto l1459; + l1460:; G->pos= yypos1459; G->thunkpos= yythunkpos1459; if (!yy_ListLoose(G)) { goto l1457; } } - l1446:; + l1459:; yyprintf((stderr, " ok %s @ %s\n", "BulletList", G->buf+G->pos)); return 1; - l1444:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1457:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "BulletList", G->buf+G->pos)); return 0; } YY_RULE(int) yy_OrderedList(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "OrderedList")); - { int yypos1449= G->pos, yythunkpos1449= G->thunkpos; if (!yy_Enumerator(G)) { goto l1448; } G->pos= yypos1449; G->thunkpos= yythunkpos1449; + { int yypos1462= G->pos, yythunkpos1462= G->thunkpos; if (!yy_Enumerator(G)) { goto l1461; } G->pos= yypos1462; G->thunkpos= yythunkpos1462; } - { int yypos1450= G->pos, yythunkpos1450= G->thunkpos; if (!yy_ListTight(G)) { goto l1451; } goto l1450; - l1451:; G->pos= yypos1450; G->thunkpos= yythunkpos1450; if (!yy_ListLoose(G)) { goto l1448; } + { int yypos1463= G->pos, yythunkpos1463= G->thunkpos; if (!yy_ListTight(G)) { goto l1464; } goto l1463; + l1464:; G->pos= yypos1463; G->thunkpos= yythunkpos1463; if (!yy_ListLoose(G)) { goto l1461; } } - l1450:; + l1463:; yyprintf((stderr, " ok %s @ %s\n", "OrderedList", G->buf+G->pos)); return 1; - l1448:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1461:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "OrderedList", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Heading(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "Heading")); - { int yypos1453= G->pos, yythunkpos1453= G->thunkpos; if (!yy_SetextHeading(G)) { goto l1454; } goto l1453; - l1454:; G->pos= yypos1453; G->thunkpos= yythunkpos1453; if (!yy_AtxHeading(G)) { goto l1452; } + { int yypos1466= G->pos, yythunkpos1466= G->thunkpos; if (!yy_SetextHeading(G)) { goto l1467; } goto l1466; + l1467:; G->pos= yypos1466; G->thunkpos= yythunkpos1466; if (!yy_AtxHeading(G)) { goto l1465; } } - l1453:; + l1466:; yyprintf((stderr, " ok %s @ %s\n", "Heading", G->buf+G->pos)); return 1; - l1452:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1465:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Heading", G->buf+G->pos)); return 0; } YY_RULE(int) yy_HorizontalRule(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "HorizontalRule")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1455; if (!yy_NonindentSpace(G)) { goto l1455; } - { int yypos1456= G->pos, yythunkpos1456= G->thunkpos; if (!yymatchChar(G, '*')) goto l1457; if (!yy_Sp(G)) { goto l1457; } if (!yymatchChar(G, '*')) goto l1457; if (!yy_Sp(G)) { goto l1457; } if (!yymatchChar(G, '*')) goto l1457; - l1458:; - { int yypos1459= G->pos, yythunkpos1459= G->thunkpos; if (!yy_Sp(G)) { goto l1459; } if (!yymatchChar(G, '*')) goto l1459; goto l1458; - l1459:; G->pos= yypos1459; G->thunkpos= yythunkpos1459; - } goto l1456; - l1457:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yymatchChar(G, '-')) goto l1460; if (!yy_Sp(G)) { goto l1460; } if (!yymatchChar(G, '-')) goto l1460; if (!yy_Sp(G)) { goto l1460; } if (!yymatchChar(G, '-')) goto l1460; - l1461:; - { int yypos1462= G->pos, yythunkpos1462= G->thunkpos; if (!yy_Sp(G)) { goto l1462; } if (!yymatchChar(G, '-')) goto l1462; goto l1461; - l1462:; G->pos= yypos1462; G->thunkpos= yythunkpos1462; - } goto l1456; - l1460:; G->pos= yypos1456; G->thunkpos= yythunkpos1456; if (!yymatchChar(G, '_')) goto l1455; if (!yy_Sp(G)) { goto l1455; } if (!yymatchChar(G, '_')) goto l1455; if (!yy_Sp(G)) { goto l1455; } if (!yymatchChar(G, '_')) goto l1455; - l1463:; - { int yypos1464= G->pos, yythunkpos1464= G->thunkpos; if (!yy_Sp(G)) { goto l1464; } if (!yymatchChar(G, '_')) goto l1464; goto l1463; - l1464:; G->pos= yypos1464; G->thunkpos= yythunkpos1464; + yyprintf((stderr, "%s\n", "HorizontalRule")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1468; if (!yy_NonindentSpace(G)) { goto l1468; } + { int yypos1469= G->pos, yythunkpos1469= G->thunkpos; if (!yymatchChar(G, '*')) goto l1470; if (!yy_Sp(G)) { goto l1470; } if (!yymatchChar(G, '*')) goto l1470; if (!yy_Sp(G)) { goto l1470; } if (!yymatchChar(G, '*')) goto l1470; + l1471:; + { int yypos1472= G->pos, yythunkpos1472= G->thunkpos; if (!yy_Sp(G)) { goto l1472; } if (!yymatchChar(G, '*')) goto l1472; goto l1471; + l1472:; G->pos= yypos1472; G->thunkpos= yythunkpos1472; + } goto l1469; + l1470:; G->pos= yypos1469; G->thunkpos= yythunkpos1469; if (!yymatchChar(G, '-')) goto l1473; if (!yy_Sp(G)) { goto l1473; } if (!yymatchChar(G, '-')) goto l1473; if (!yy_Sp(G)) { goto l1473; } if (!yymatchChar(G, '-')) goto l1473; + l1474:; + { int yypos1475= G->pos, yythunkpos1475= G->thunkpos; if (!yy_Sp(G)) { goto l1475; } if (!yymatchChar(G, '-')) goto l1475; goto l1474; + l1475:; G->pos= yypos1475; G->thunkpos= yythunkpos1475; + } goto l1469; + l1473:; G->pos= yypos1469; G->thunkpos= yythunkpos1469; if (!yymatchChar(G, '_')) goto l1468; if (!yy_Sp(G)) { goto l1468; } if (!yymatchChar(G, '_')) goto l1468; if (!yy_Sp(G)) { goto l1468; } if (!yymatchChar(G, '_')) goto l1468; + l1476:; + { int yypos1477= G->pos, yythunkpos1477= G->thunkpos; if (!yy_Sp(G)) { goto l1477; } if (!yymatchChar(G, '_')) goto l1477; goto l1476; + l1477:; G->pos= yypos1477; G->thunkpos= yythunkpos1477; } } - l1456:; if (!yy_Sp(G)) { goto l1455; } if (!yy_Newline(G)) { goto l1455; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1455; if (!yy_BlankLine(G)) { goto l1455; } - l1465:; - { int yypos1466= G->pos, yythunkpos1466= G->thunkpos; if (!yy_BlankLine(G)) { goto l1466; } goto l1465; - l1466:; G->pos= yypos1466; G->thunkpos= yythunkpos1466; + l1469:; if (!yy_Sp(G)) { goto l1468; } if (!yy_Newline(G)) { goto l1468; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1468; if (!yy_BlankLine(G)) { goto l1468; } + l1478:; + { int yypos1479= G->pos, yythunkpos1479= G->thunkpos; if (!yy_BlankLine(G)) { goto l1479; } goto l1478; + l1479:; G->pos= yypos1479; G->thunkpos= yythunkpos1479; } yyDo(G, yy_1_HorizontalRule, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "HorizontalRule", G->buf+G->pos)); return 1; - l1455:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1468:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "HorizontalRule", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Reference(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 3, 0); - yyprintf((stderr, "%s\n", "Reference")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1467; if (!yy_LocMarker(G)) { goto l1467; } yyDo(G, yySet, -3, 0); if (!yy_NonindentSpace(G)) { goto l1467; } - { int yypos1468= G->pos, yythunkpos1468= G->thunkpos; if (!yymatchString(G, "[]")) goto l1468; goto l1467; - l1468:; G->pos= yypos1468; G->thunkpos= yythunkpos1468; - } if (!yy_Label(G)) { goto l1467; } yyDo(G, yySet, -2, 0); if (!yymatchChar(G, ':')) goto l1467; if (!yy_Spnl(G)) { goto l1467; } if (!yy_RefSrc(G)) { goto l1467; } yyDo(G, yySet, -1, 0); if (!yy_RefTitle(G)) { goto l1467; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1467; if (!yy_BlankLine(G)) { goto l1467; } - l1469:; - { int yypos1470= G->pos, yythunkpos1470= G->thunkpos; if (!yy_BlankLine(G)) { goto l1470; } goto l1469; - l1470:; G->pos= yypos1470; G->thunkpos= yythunkpos1470; + yyprintf((stderr, "%s\n", "Reference")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1480; if (!yy_LocMarker(G)) { goto l1480; } yyDo(G, yySet, -3, 0); if (!yy_NonindentSpace(G)) { goto l1480; } + { int yypos1481= G->pos, yythunkpos1481= G->thunkpos; if (!yymatchString(G, "[]")) goto l1481; goto l1480; + l1481:; G->pos= yypos1481; G->thunkpos= yythunkpos1481; + } if (!yy_Label(G)) { goto l1480; } yyDo(G, yySet, -2, 0); if (!yymatchChar(G, ':')) goto l1480; if (!yy_Spnl(G)) { goto l1480; } if (!yy_RefSrc(G)) { goto l1480; } yyDo(G, yySet, -1, 0); if (!yy_RefTitle(G)) { goto l1480; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1480; if (!yy_BlankLine(G)) { goto l1480; } + l1482:; + { int yypos1483= G->pos, yythunkpos1483= G->thunkpos; if (!yy_BlankLine(G)) { goto l1483; } goto l1482; + l1483:; G->pos= yypos1483; G->thunkpos= yythunkpos1483; } yyDo(G, yy_1_Reference, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "Reference", G->buf+G->pos)); yyDo(G, yyPop, 3, 0); return 1; - l1467:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1480:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Reference", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Note(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "Note")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l1471; if (!yy_NonindentSpace(G)) { goto l1471; } if (!yy_RawNoteReference(G)) { goto l1471; } if (!yymatchChar(G, ':')) goto l1471; if (!yy_Sp(G)) { goto l1471; } if (!yy_RawNoteBlock(G)) { goto l1471; } - l1472:; - { int yypos1473= G->pos, yythunkpos1473= G->thunkpos; - { int yypos1474= G->pos, yythunkpos1474= G->thunkpos; if (!yy_Indent(G)) { goto l1473; } G->pos= yypos1474; G->thunkpos= yythunkpos1474; - } if (!yy_RawNoteBlock(G)) { goto l1473; } goto l1472; - l1473:; G->pos= yypos1473; G->thunkpos= yythunkpos1473; + yyprintf((stderr, "%s\n", "Note")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l1484; if (!yy_NonindentSpace(G)) { goto l1484; } if (!yy_RawNoteReference(G)) { goto l1484; } if (!yymatchChar(G, ':')) goto l1484; if (!yy_Sp(G)) { goto l1484; } if (!yy_RawNoteBlock(G)) { goto l1484; } + l1485:; + { int yypos1486= G->pos, yythunkpos1486= G->thunkpos; + { int yypos1487= G->pos, yythunkpos1487= G->thunkpos; if (!yy_Indent(G)) { goto l1486; } G->pos= yypos1487; G->thunkpos= yythunkpos1487; + } if (!yy_RawNoteBlock(G)) { goto l1486; } goto l1485; + l1486:; G->pos= yypos1486; G->thunkpos= yythunkpos1486; } yyprintf((stderr, " ok %s @ %s\n", "Note", G->buf+G->pos)); return 1; - l1471:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1484:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Note", G->buf+G->pos)); return 0; } +YY_RULE(int) yy_FencedCodeBlock(GREG *G) +{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); + yyprintf((stderr, "%s\n", "FencedCodeBlock")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1488; if (!yy_LocMarker(G)) { goto l1488; } yyDo(G, yySet, -1, 0); if (!yy_FencedCodeBlockStart(G)) { goto l1488; } + l1489:; + { int yypos1490= G->pos, yythunkpos1490= G->thunkpos; if (!yy_FencedCodeBlockChunk(G)) { goto l1490; } goto l1489; + l1490:; G->pos= yypos1490; G->thunkpos= yythunkpos1490; + } if (!yy_FencedCodeBlockEnd(G)) { goto l1488; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1488; yyDo(G, yy_1_FencedCodeBlock, G->begin, G->end); + yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); + return 1; + l1488:; G->pos= yypos0; G->thunkpos= yythunkpos0; + yyprintf((stderr, " fail %s @ %s\n", "FencedCodeBlock", G->buf+G->pos)); + return 0; +} YY_RULE(int) yy_Verbatim(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); - yyprintf((stderr, "%s\n", "Verbatim")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1475; if (!yy_LocMarker(G)) { goto l1475; } yyDo(G, yySet, -1, 0); if (!yy_VerbatimChunk(G)) { goto l1475; } - l1476:; - { int yypos1477= G->pos, yythunkpos1477= G->thunkpos; if (!yy_VerbatimChunk(G)) { goto l1477; } goto l1476; - l1477:; G->pos= yypos1477; G->thunkpos= yythunkpos1477; - } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1475; yyDo(G, yy_1_Verbatim, G->begin, G->end); + yyprintf((stderr, "%s\n", "Verbatim")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1491; if (!yy_LocMarker(G)) { goto l1491; } yyDo(G, yySet, -1, 0); if (!yy_VerbatimChunk(G)) { goto l1491; } + l1492:; + { int yypos1493= G->pos, yythunkpos1493= G->thunkpos; if (!yy_VerbatimChunk(G)) { goto l1493; } goto l1492; + l1493:; G->pos= yypos1493; G->thunkpos= yythunkpos1493; + } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1491; yyDo(G, yy_1_Verbatim, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "Verbatim", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1475:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1491:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Verbatim", G->buf+G->pos)); return 0; } YY_RULE(int) yy_BlockQuote(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); - yyprintf((stderr, "%s\n", "BlockQuote")); if (!yy_BlockQuoteRaw(G)) { goto l1478; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_BlockQuote, G->begin, G->end); + yyprintf((stderr, "%s\n", "BlockQuote")); if (!yy_BlockQuoteRaw(G)) { goto l1494; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_BlockQuote, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "BlockQuote", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1478:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1494:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "BlockQuote", G->buf+G->pos)); return 0; } YY_RULE(int) yy_BlankLine(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "BlankLine")); if (!yy_Sp(G)) { goto l1479; } if (!yy_Newline(G)) { goto l1479; } + yyprintf((stderr, "%s\n", "BlankLine")); if (!yy_Sp(G)) { goto l1495; } if (!yy_Newline(G)) { goto l1495; } yyprintf((stderr, " ok %s @ %s\n", "BlankLine", G->buf+G->pos)); return 1; - l1479:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1495:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "BlankLine", G->buf+G->pos)); return 0; } YY_RULE(int) yy_FrontMatterEndMark(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "FrontMatterEndMark")); - { int yypos1481= G->pos, yythunkpos1481= G->thunkpos; if (!yymatchString(G, "---")) goto l1482; goto l1481; - l1482:; G->pos= yypos1481; G->thunkpos= yythunkpos1481; if (!yymatchString(G, "...")) goto l1480; + { int yypos1497= G->pos, yythunkpos1497= G->thunkpos; if (!yymatchString(G, "---")) goto l1498; goto l1497; + l1498:; G->pos= yypos1497; G->thunkpos= yythunkpos1497; if (!yymatchString(G, "...")) goto l1496; } - l1481:; + l1497:; yyprintf((stderr, " ok %s @ %s\n", "FrontMatterEndMark", G->buf+G->pos)); return 1; - l1480:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1496:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "FrontMatterEndMark", G->buf+G->pos)); return 0; } YY_RULE(int) yy_FrontMatterBlock(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "FrontMatterBlock")); - { int yypos1484= G->pos, yythunkpos1484= G->thunkpos; if (!yy_FrontMatterEndMark(G)) { goto l1484; } goto l1483; - l1484:; G->pos= yypos1484; G->thunkpos= yythunkpos1484; + { int yypos1500= G->pos, yythunkpos1500= G->thunkpos; if (!yy_FrontMatterEndMark(G)) { goto l1500; } goto l1499; + l1500:; G->pos= yypos1500; G->thunkpos= yythunkpos1500; } - l1485:; - { int yypos1486= G->pos, yythunkpos1486= G->thunkpos; - { int yypos1487= G->pos, yythunkpos1487= G->thunkpos; if (!yy_Newline(G)) { goto l1487; } goto l1486; - l1487:; G->pos= yypos1487; G->thunkpos= yythunkpos1487; - } if (!yymatchDot(G)) goto l1486; goto l1485; - l1486:; G->pos= yypos1486; G->thunkpos= yythunkpos1486; - } if (!yy_Newline(G)) { goto l1483; } + l1501:; + { int yypos1502= G->pos, yythunkpos1502= G->thunkpos; + { int yypos1503= G->pos, yythunkpos1503= G->thunkpos; if (!yy_Newline(G)) { goto l1503; } goto l1502; + l1503:; G->pos= yypos1503; G->thunkpos= yythunkpos1503; + } if (!yymatchDot(G)) goto l1502; goto l1501; + l1502:; G->pos= yypos1502; G->thunkpos= yythunkpos1502; + } if (!yy_Newline(G)) { goto l1499; } yyprintf((stderr, " ok %s @ %s\n", "FrontMatterBlock", G->buf+G->pos)); return 1; - l1483:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1499:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "FrontMatterBlock", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Newline(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "Newline")); - { int yypos1489= G->pos, yythunkpos1489= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1490; goto l1489; - l1490:; G->pos= yypos1489; G->thunkpos= yythunkpos1489; if (!yymatchChar(G, '\r')) goto l1488; - { int yypos1491= G->pos, yythunkpos1491= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1491; goto l1492; - l1491:; G->pos= yypos1491; G->thunkpos= yythunkpos1491; + { int yypos1505= G->pos, yythunkpos1505= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1506; goto l1505; + l1506:; G->pos= yypos1505; G->thunkpos= yythunkpos1505; if (!yymatchChar(G, '\r')) goto l1504; + { int yypos1507= G->pos, yythunkpos1507= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1507; goto l1508; + l1507:; G->pos= yypos1507; G->thunkpos= yythunkpos1507; } - l1492:; + l1508:; } - l1489:; + l1505:; yyprintf((stderr, " ok %s @ %s\n", "Newline", G->buf+G->pos)); return 1; - l1488:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1504:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Newline", G->buf+G->pos)); return 0; } YY_RULE(int) yy_LocMarker(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "LocMarker")); - { int yypos1494= G->pos, yythunkpos1494= G->thunkpos; if (!yymatchDot(G)) goto l1493; G->pos= yypos1494; G->thunkpos= yythunkpos1494; + { int yypos1510= G->pos, yythunkpos1510= G->thunkpos; if (!yymatchDot(G)) goto l1509; G->pos= yypos1510; G->thunkpos= yythunkpos1510; } yyDo(G, yy_1_LocMarker, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "LocMarker", G->buf+G->pos)); return 1; - l1493:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1509:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "LocMarker", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Block(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "Block")); - l1496:; - { int yypos1497= G->pos, yythunkpos1497= G->thunkpos; if (!yy_BlankLine(G)) { goto l1497; } goto l1496; - l1497:; G->pos= yypos1497; G->thunkpos= yythunkpos1497; + l1512:; + { int yypos1513= G->pos, yythunkpos1513= G->thunkpos; if (!yy_BlankLine(G)) { goto l1513; } goto l1512; + l1513:; G->pos= yypos1513; G->thunkpos= yythunkpos1513; } - { int yypos1498= G->pos, yythunkpos1498= G->thunkpos; if (!yy_BlockQuote(G)) { goto l1499; } goto l1498; - l1499:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_Verbatim(G)) { goto l1500; } goto l1498; - l1500:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_Note(G)) { goto l1501; } goto l1498; - l1501:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_Reference(G)) { goto l1502; } goto l1498; - l1502:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_HorizontalRule(G)) { goto l1503; } goto l1498; - l1503:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_Heading(G)) { goto l1504; } goto l1498; - l1504:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_OrderedList(G)) { goto l1505; } goto l1498; - l1505:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_BulletList(G)) { goto l1506; } goto l1498; - l1506:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_HtmlBlock(G)) { goto l1507; } goto l1498; - l1507:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_StyleBlock(G)) { goto l1508; } goto l1498; - l1508:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_Para(G)) { goto l1509; } goto l1498; - l1509:; G->pos= yypos1498; G->thunkpos= yythunkpos1498; if (!yy_Plain(G)) { goto l1495; } + { int yypos1514= G->pos, yythunkpos1514= G->thunkpos; if (!yy_BlockQuote(G)) { goto l1515; } goto l1514; + l1515:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_Verbatim(G)) { goto l1516; } goto l1514; + l1516:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_FencedCodeBlock(G)) { goto l1517; } goto l1514; + l1517:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_Note(G)) { goto l1518; } goto l1514; + l1518:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_Reference(G)) { goto l1519; } goto l1514; + l1519:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_HorizontalRule(G)) { goto l1520; } goto l1514; + l1520:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_Heading(G)) { goto l1521; } goto l1514; + l1521:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_OrderedList(G)) { goto l1522; } goto l1514; + l1522:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_BulletList(G)) { goto l1523; } goto l1514; + l1523:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_HtmlBlock(G)) { goto l1524; } goto l1514; + l1524:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_StyleBlock(G)) { goto l1525; } goto l1514; + l1525:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_Para(G)) { goto l1526; } goto l1514; + l1526:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; if (!yy_Plain(G)) { goto l1511; } } - l1498:; + l1514:; yyprintf((stderr, " ok %s @ %s\n", "Block", G->buf+G->pos)); return 1; - l1495:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1511:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Block", G->buf+G->pos)); return 0; } YY_RULE(int) yy_FrontMatter(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0); - yyprintf((stderr, "%s\n", "FrontMatter")); if (!yy_LocMarker(G)) { goto l1510; } yyDo(G, yySet, -1, 0); - { int yypos1511= G->pos, yythunkpos1511= G->thunkpos; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_FRONTMATTER) )) goto l1511; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1511; if (!yymatchString(G, "---")) goto l1511; if (!yy_Newline(G)) { goto l1511; } - l1513:; - { int yypos1514= G->pos, yythunkpos1514= G->thunkpos; if (!yy_FrontMatterBlock(G)) { goto l1514; } goto l1513; - l1514:; G->pos= yypos1514; G->thunkpos= yythunkpos1514; - } if (!yy_FrontMatterEndMark(G)) { goto l1511; } if (!yy_Newline(G)) { goto l1511; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1511; yyDo(G, yy_1_FrontMatter, G->begin, G->end); goto l1512; - l1511:; G->pos= yypos1511; G->thunkpos= yythunkpos1511; + yyprintf((stderr, "%s\n", "FrontMatter")); if (!yy_LocMarker(G)) { goto l1527; } yyDo(G, yySet, -1, 0); + { int yypos1528= G->pos, yythunkpos1528= G->thunkpos; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_FRONTMATTER) )) goto l1528; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1528; if (!yymatchString(G, "---")) goto l1528; if (!yy_Newline(G)) { goto l1528; } + l1530:; + { int yypos1531= G->pos, yythunkpos1531= G->thunkpos; if (!yy_FrontMatterBlock(G)) { goto l1531; } goto l1530; + l1531:; G->pos= yypos1531; G->thunkpos= yythunkpos1531; + } if (!yy_FrontMatterEndMark(G)) { goto l1528; } if (!yy_Newline(G)) { goto l1528; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1528; yyDo(G, yy_1_FrontMatter, G->begin, G->end); goto l1529; + l1528:; G->pos= yypos1528; G->thunkpos= yythunkpos1528; } - l1512:; + l1529:; yyprintf((stderr, " ok %s @ %s\n", "FrontMatter", G->buf+G->pos)); yyDo(G, yyPop, 1, 0); return 1; - l1510:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1527:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "FrontMatter", G->buf+G->pos)); return 0; } YY_RULE(int) yy_Doc(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; - yyprintf((stderr, "%s\n", "Doc")); if (!yy_FrontMatter(G)) { goto l1515; } - l1516:; - { int yypos1517= G->pos, yythunkpos1517= G->thunkpos; if (!yy_Block(G)) { goto l1517; } goto l1516; - l1517:; G->pos= yypos1517; G->thunkpos= yythunkpos1517; + yyprintf((stderr, "%s\n", "Doc")); if (!yy_FrontMatter(G)) { goto l1532; } + l1533:; + { int yypos1534= G->pos, yythunkpos1534= G->thunkpos; if (!yy_Block(G)) { goto l1534; } goto l1533; + l1534:; G->pos= yypos1534; G->thunkpos= yythunkpos1534; } yyprintf((stderr, " ok %s @ %s\n", "Doc", G->buf+G->pos)); return 1; - l1515:; G->pos= yypos0; G->thunkpos= yythunkpos0; + l1532:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Doc", G->buf+G->pos)); return 0; }