vnote/peg-highlight/pmh_parser.c
Le Tan 6a470ba2f4 PegParser: update PegMarkdownHighlight for MathJax
1. Support $ in $$..$$;
2. Support raw display formula \begin{}...\end{}
2018-11-01 19:55:31 +08:00

7242 lines
356 KiB
C

/* A recursive-descent parser generated by greg 0.4.3 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct _GREG;
#define YYRULECOUNT 255
/* PEG Markdown Highlight
* Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
* Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
*
* pmh_grammar.leg
*
* This is a slightly adapted version of the PEG grammar from John MacFarlane's
* peg-markdown compiler.
*/
/* PEG Markdown Highlight
* Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
* Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
*
* pmh_parser_head.c
*
* Code to be inserted into the beginning of the parser code generated
* from the PEG grammar.
*/
#include "pmh_parser.h"
#ifndef pmh_DEBUG_OUTPUT
#define pmh_DEBUG_OUTPUT 0
#endif
#if pmh_DEBUG_OUTPUT
#define pmh_IF(x) if (x)
#define pmh_PRINTF(x, ...) fprintf(stderr, x, ##__VA_ARGS__)
#define pmh_PUTCHAR(x) putchar(x)
#else
#define pmh_IF(x)
#define pmh_PRINTF(x, ...)
#define pmh_PUTCHAR(x)
#endif
// Alias strdup to _strdup on MSVC:
#ifdef _MSC_VER
#define strdup _strdup
#endif
char *strdup_or_null(char *s)
{
return (s == NULL) ? NULL : strdup(s);
}
// Internal language element occurrence structure, containing
// both public and private members:
struct pmh_RealElement
{
// "Public" members:
// (these must match what's defined in pmh_definitions.h)
// -----------------------------------------------
pmh_element_type type;
unsigned long pos;
unsigned long end;
struct pmh_RealElement *next;
char *label;
char *address;
// "Private" members for use by the parser itself:
// -----------------------------------------------
// next element in list of all elements:
struct pmh_RealElement *all_elems_next;
// offset to text (for elements of type pmh_EXTRA_TEXT, used when the
// parser reads the value of 'text'):
int text_offset;
// text content (for elements of type pmh_EXTRA_TEXT):
char *text;
// children of element (for elements of type pmh_RAW_LIST)
struct pmh_RealElement *children;
};
typedef struct pmh_RealElement pmh_realelement;
// Parser state data:
typedef struct
{
/* The original, unmodified UTF-8 input: */
char *original_input;
/* The offsets of the bytes we have stripped from original_input: */
unsigned long *strip_positions;
size_t strip_positions_len;
/* Buffer of characters to be parsed: */
char *charbuf;
/* Linked list of {start, end} offset pairs determining which parts */
/* of charbuf to actually parse: */
pmh_realelement *current_elem;
pmh_realelement *elem_head;
/* Current parsing offset within charbuf: */
unsigned long offset;
/* The extensions to use for parsing (bitfield */
/* of enum pmh_extensions): */
int extensions;
/* Array of parsing result elements, indexed by type: */
pmh_realelement **head_elems;
/* Whether we are parsing only references: */
bool parsing_only_references;
/* List of reference elements: */
pmh_realelement *references;
} parser_data;
static parser_data *mk_parser_data(char *original_input,
unsigned long *strip_positions,
size_t strip_positions_len,
char *charbuf,
pmh_realelement *parsing_elems,
unsigned long offset,
int extensions,
pmh_realelement **head_elems,
pmh_realelement *references)
{
parser_data *p_data = (parser_data *)malloc(sizeof(parser_data));
p_data->extensions = extensions;
p_data->original_input = original_input;
p_data->strip_positions = strip_positions;
p_data->strip_positions_len = strip_positions_len;
p_data->charbuf = charbuf;
p_data->offset = offset;
p_data->elem_head = p_data->current_elem = parsing_elems;
p_data->references = references;
p_data->parsing_only_references = false;
if (head_elems != NULL)
p_data->head_elems = head_elems;
else {
p_data->head_elems = (pmh_realelement **)
malloc(sizeof(pmh_realelement *) * pmh_NUM_TYPES);
int i;
for (i = 0; i < pmh_NUM_TYPES; i++)
p_data->head_elems[i] = NULL;
}
return p_data;
}
// Forward declarations
static void parse_markdown(parser_data *p_data);
static void parse_references(parser_data *p_data);
static char **get_element_type_names()
{
static char **elem_type_names = NULL;
if (elem_type_names == NULL)
{
elem_type_names = (char **)malloc(sizeof(char*) * pmh_NUM_LANG_TYPES);
int i;
for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
elem_type_names[i] = NULL;
elem_type_names[pmh_LINK] = "LINK";
elem_type_names[pmh_AUTO_LINK_URL] = "AUTO_LINK_URL";
elem_type_names[pmh_AUTO_LINK_EMAIL] = "AUTO_LINK_EMAIL";
elem_type_names[pmh_IMAGE] = "IMAGE";
elem_type_names[pmh_CODE] = "CODE";
elem_type_names[pmh_HTML] = "HTML";
elem_type_names[pmh_HTML_ENTITY] = "HTML_ENTITY";
elem_type_names[pmh_EMPH] = "EMPH";
elem_type_names[pmh_STRONG] = "STRONG";
elem_type_names[pmh_LIST_BULLET] = "LIST_BULLET";
elem_type_names[pmh_LIST_ENUMERATOR] = "LIST_ENUMERATOR";
elem_type_names[pmh_COMMENT] = "COMMENT";
elem_type_names[pmh_H1] = "H1";
elem_type_names[pmh_H2] = "H2";
elem_type_names[pmh_H3] = "H3";
elem_type_names[pmh_H4] = "H4";
elem_type_names[pmh_H5] = "H5";
elem_type_names[pmh_H6] = "H6";
elem_type_names[pmh_BLOCKQUOTE] = "BLOCKQUOTE";
elem_type_names[pmh_VERBATIM] = "VERBATIM";
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";
elem_type_names[pmh_DISPLAYFORMULA] = "DISPLAYFORMULA";
elem_type_names[pmh_INLINEEQUATION] = "INLINEEQUATION";
elem_type_names[pmh_MARK] = "MARK";
}
return elem_type_names;
}
pmh_element_type pmh_element_type_from_name(char *name)
{
char **elem_type_names = get_element_type_names();
int i;
for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
{
char *i_name = elem_type_names[i];
if (i_name == NULL)
continue;
if (strcmp(i_name, name) == 0)
return i;
}
return pmh_NO_TYPE;
}
char *pmh_element_name_from_type(pmh_element_type type)
{
char **elem_type_names = get_element_type_names();
char* ret = elem_type_names[type];
if (ret == NULL)
return "unknown type";
return ret;
}
/*
Remove pmh_RAW elements with zero length; return pointer
to new head.
*/
static pmh_realelement *remove_zero_length_raw_spans(pmh_realelement *elem)
{
pmh_realelement *head = elem;
pmh_realelement *parent = NULL;
pmh_realelement *c = head;
while (c != NULL)
{
if (c->type == pmh_RAW && c->pos >= c->end)
{
if (parent != NULL)
parent->next = c->next;
else
head = c->next;
parent = c;
c = c->next;
continue;
}
parent = c;
c = c->next;
}
return head;
}
#if pmh_DEBUG_OUTPUT
/*
Print null-terminated string s.t. some characters are
represented by their corresponding espace sequences
*/
static void print_str_literal_escapes(char *str)
{
char *c = str;
pmh_PRINTF("'");
while (*c != '\0')
{
if (*c == '\n') pmh_PRINTF("\\n");
else if (*c == '\t') pmh_PRINTF("\\t");
else putchar(*c);
c++;
}
pmh_PRINTF("'");
}
#endif
#if pmh_DEBUG_OUTPUT
/*
Print elements in a linked list of
pmh_RAW, pmh_SEPARATOR, pmh_EXTRA_TEXT elements
*/
static void print_raw_spans_inline(pmh_realelement *elem)
{
pmh_realelement *cur = elem;
while (cur != NULL)
{
if (cur->type == pmh_SEPARATOR)
pmh_PRINTF("<pmh_SEP %ld> ", cur->pos);
else if (cur->type == pmh_EXTRA_TEXT) {
pmh_PRINTF("{pmh_ETEXT ");
print_str_literal_escapes(cur->text);
pmh_PRINTF("}");
}
else
pmh_PRINTF("(%ld-%ld) ", cur->pos, cur->end);
cur = cur->next;
}
}
#endif
/*
Perform postprocessing parsing runs for pmh_RAW_LIST elements in `elem`,
iteratively until no such elements exist.
*/
static void process_raw_blocks(parser_data *p_data)
{
pmh_PRINTF("--------process_raw_blocks---------\n");
while (p_data->head_elems[pmh_RAW_LIST] != NULL)
{
pmh_PRINTF("new iteration.\n");
pmh_realelement *cursor = p_data->head_elems[pmh_RAW_LIST];
p_data->head_elems[pmh_RAW_LIST] = NULL;
while (cursor != NULL)
{
pmh_realelement *span_list = (pmh_realelement*)cursor->children;
span_list = remove_zero_length_raw_spans(span_list);
#if pmh_DEBUG_OUTPUT
pmh_PRINTF(" process: ");
print_raw_spans_inline(span_list);
pmh_PRINTF("\n");
#endif
while (span_list != NULL)
{
pmh_PRINTF("next: span_list: %ld-%ld\n",
span_list->pos, span_list->end);
// Skip separators in the beginning, as well as
// separators after another separator:
if (span_list->type == pmh_SEPARATOR) {
span_list = span_list->next;
continue;
}
// Store list of spans until next separator in subspan_list:
pmh_realelement *subspan_list = span_list;
pmh_realelement *previous = NULL;
while (span_list != NULL && span_list->type != pmh_SEPARATOR) {
previous = span_list;
span_list = span_list->next;
}
if (span_list != NULL && span_list->type == pmh_SEPARATOR) {
span_list = span_list->next;
previous->next = NULL;
}
#if pmh_DEBUG_OUTPUT
pmh_PRINTF(" subspan process: ");
print_raw_spans_inline(subspan_list);
pmh_PRINTF("\n");
#endif
// Process subspan_list:
parser_data *raw_p_data = mk_parser_data(
p_data->original_input,
p_data->strip_positions,
p_data->strip_positions_len,
p_data->charbuf,
subspan_list,
subspan_list->pos,
p_data->extensions,
p_data->head_elems,
p_data->references
);
parse_markdown(raw_p_data);
free(raw_p_data);
pmh_PRINTF("parse over\n");
}
cursor = cursor->next;
}
}
}
#if pmh_DEBUG_OUTPUT
static void print_raw_blocks(char *text, pmh_realelement *elem[])
{
pmh_PRINTF("--------print_raw_blocks---------\n");
pmh_PRINTF("block:\n");
pmh_realelement *cursor = elem[pmh_RAW_LIST];
while (cursor != NULL)
{
print_raw_spans_inline(cursor->children);
cursor = cursor->next;
}
}
#endif
/* Free all elements created while parsing */
void pmh_free_elements(pmh_element **elems)
{
pmh_realelement *cursor = (pmh_realelement*)elems[pmh_ALL];
while (cursor != NULL) {
pmh_realelement *tofree = cursor;
cursor = cursor->all_elems_next;
if (tofree->text != NULL)
free(tofree->text);
if (tofree->label != NULL)
free(tofree->label);
if (tofree->address != NULL)
free(tofree->address);
free(tofree);
}
elems[pmh_ALL] = NULL;
free(elems);
}
#define IS_CONTINUATION_BYTE(x) ((x & 0xC0) == 0x80)
#define HAS_UTF8_BOM(x) ( ((*x & 0xFF) == 0xEF)\
&& ((*(x+1) & 0xFF) == 0xBB)\
&& ((*(x+2) & 0xFF) == 0xBF) )
#define ADD_STRIP_POS(x) \
/* reallocate more space for the array, if needed: */ \
if (strip_positions_size <= strip_positions_pos) { \
size_t new_size = strip_positions_size * 2; \
unsigned long *new_arr = (unsigned long *) \
calloc(new_size, \
sizeof(unsigned long)); \
memcpy(new_arr, strip_positions, \
(sizeof(unsigned long) * strip_positions_size)); \
strip_positions_size = new_size; \
free(strip_positions); \
strip_positions = new_arr; \
} \
strip_positions[strip_positions_pos] = x; \
strip_positions_pos++;
/*
Copy `str` to `out`, while doing the following:
- remove UTF-8 continuation bytes
- remove possible UTF-8 BOM (byte order mark)
- append two newlines to the end (like peg-markdown does)
- keep track of which bytes we have stripped (in strip_positions)
*/
static int strcpy_preformat(char *str, char **out,
unsigned long **out_strip_positions,
size_t *out_strip_positions_len)
{
size_t strip_positions_size = 1024;
size_t strip_positions_pos = 0;
unsigned long *strip_positions = (unsigned long *)
calloc(strip_positions_size,
sizeof(unsigned long));
// +2 in the following is due to the "\n\n" suffix:
char *new_str = (char *)malloc(sizeof(char) * strlen(str) + 1 + 2);
char *c = str;
int i = 0;
if (HAS_UTF8_BOM(c)) {
c += 3;
ADD_STRIP_POS(0);
ADD_STRIP_POS(1);
ADD_STRIP_POS(2);
}
while (*c != '\0')
{
if (!IS_CONTINUATION_BYTE(*c)) {
*(new_str+i) = *c, i++;
} else {
ADD_STRIP_POS((int)(c-str));
}
c++;
}
*(new_str+(i++)) = '\n';
*(new_str+(i++)) = '\n';
*(new_str+i) = '\0';
*out = new_str;
*out_strip_positions = strip_positions;
*out_strip_positions_len = strip_positions_pos;
return i;
}
void pmh_markdown_to_elements(char *text, int extensions,
pmh_element **out_result[])
{
char *text_copy = NULL;
unsigned long *strip_positions = NULL;
size_t strip_positions_len = 0;
int text_copy_len = strcpy_preformat(text, &text_copy, &strip_positions,
&strip_positions_len);
pmh_realelement *parsing_elem = (pmh_realelement *)
malloc(sizeof(pmh_realelement));
parsing_elem->type = pmh_RAW;
parsing_elem->pos = 0;
parsing_elem->end = text_copy_len;
parsing_elem->next = NULL;
parser_data *p_data = mk_parser_data(
text,
strip_positions,
strip_positions_len,
text_copy,
parsing_elem,
0,
extensions,
NULL,
NULL
);
pmh_realelement **result = p_data->head_elems;
if (*text_copy != '\0')
{
// Get reference definitions into p_data->references
parse_references(p_data);
// Reset parser state to beginning of input
p_data->offset = 0;
p_data->current_elem = p_data->elem_head;
// Parse whole document
parse_markdown(p_data);
#if pmh_DEBUG_OUTPUT
print_raw_blocks(text_copy, result);
#endif
process_raw_blocks(p_data);
}
free(strip_positions);
free(p_data);
free(parsing_elem);
free(text_copy);
*out_result = (pmh_element**)result;
}
/*
Mergesort linked list of elements (using comparison function `compare`),
return new head. (Adapted slightly from Simon Tatham's algorithm.)
*/
static pmh_element *ll_mergesort(pmh_element *list,
int (*compare)(const pmh_element*,
const pmh_element*))
{
if (!list)
return NULL;
pmh_element *out_head = list;
/* Merge widths of doubling size until done */
int merge_width = 1;
while (1)
{
pmh_element *l, *r; /* left & right segment pointers */
pmh_element *tail = NULL; /* tail of sorted section */
l = out_head;
out_head = NULL;
int merge_count = 0;
while (l)
{
merge_count++;
/* Position r, determine lsize & rsize */
r = l;
int lsize = 0;
int i;
for (i = 0; i < merge_width; i++) {
lsize++;
r = r->next;
if (!r)
break;
}
int rsize = merge_width;
/* Merge l & r */
while (lsize > 0 || (rsize > 0 && r))
{
bool get_from_left = false;
if (lsize == 0) get_from_left = false;
else if (rsize == 0 || !r) get_from_left = true;
else if (compare(l,r) <= 0) get_from_left = true;
pmh_element *e;
if (get_from_left) {
e = l; l = l->next; lsize--;
} else {
e = r; r = r->next; rsize--;
}
/* add the next pmh_element to the merged list */
if (tail)
tail->next = e;
else
out_head = e;
tail = e;
}
l = r;
}
tail->next = NULL;
if (merge_count <= 1)
return out_head;
merge_width *= 2;
}
}
static int elem_compare_by_pos(const pmh_element *a, const pmh_element *b)
{
return a->pos - b->pos;
}
void pmh_sort_elements_by_pos(pmh_element *element_lists[])
{
int i;
for (i = 0; i < pmh_NUM_LANG_TYPES; i++)
element_lists[i] = ll_mergesort(element_lists[i], &elem_compare_by_pos);
}
/* return true if extension is selected */
static bool extension(parser_data *p_data, int ext)
{
return ((p_data->extensions & ext) != 0);
}
/* return reference pmh_realelement for a given label */
static pmh_realelement *get_reference(parser_data *p_data, char *label)
{
if (!label)
return NULL;
pmh_realelement *cursor = p_data->references;
while (cursor != NULL)
{
if (cursor->label && strcmp(label, cursor->label) == 0)
return cursor;
cursor = cursor->next;
}
return NULL;
}
/* cons an element/list onto a list, returning pointer to new head */
static pmh_realelement *cons(pmh_realelement *elem, pmh_realelement *list)
{
assert(elem != NULL);
pmh_realelement *cur = elem;
while (cur->next != NULL) {
cur = cur->next;
}
cur->next = list;
return elem;
}
/* reverse a list, returning pointer to new list */
static pmh_realelement *reverse(pmh_realelement *list)
{
pmh_realelement *new_head = NULL;
pmh_realelement *next = NULL;
while (list != NULL) {
next = list->next;
list->next = new_head;
new_head = list;
list = next;
}
return new_head;
}
/* construct pmh_realelement */
static pmh_realelement *mk_element(parser_data *p_data, pmh_element_type type,
long pos, long end)
{
pmh_realelement *result = (pmh_realelement *)malloc(sizeof(pmh_realelement));
memset(result, 0, sizeof(*result));
result->type = type;
result->pos = pos;
result->end = end;
pmh_realelement *old_all_elements_head = p_data->head_elems[pmh_ALL];
p_data->head_elems[pmh_ALL] = result;
result->all_elems_next = old_all_elements_head;
//pmh_PRINTF(" mk_element: %s [%ld - %ld]\n", pmh_element_name_from_type(type), pos, end);
return result;
}
static pmh_realelement *copy_element(parser_data *p_data, pmh_realelement *elem)
{
pmh_realelement *result = mk_element(p_data, elem->type, elem->pos, elem->end);
result->label = strdup_or_null(elem->label);
result->text = strdup_or_null(elem->text);
result->address = strdup_or_null(elem->address);
return result;
}
/* construct pmh_EXTRA_TEXT pmh_realelement */
static pmh_realelement *mk_etext(parser_data *p_data, char *string)
{
pmh_realelement *result;
assert(string != NULL);
result = mk_element(p_data, pmh_EXTRA_TEXT, 0,0);
result->text = strdup_or_null(string);
return result;
}
/*
Given an element where the offsets {pos, end} represent
locations in the *parsed text* (defined by the linked list of pmh_RAW and
pmh_EXTRA_TEXT elements in p_data->current_elem), fix these offsets to represent
corresponding offsets in the parse buffer (p_data->charbuf). Also split
the given pmh_realelement into multiple parts if its offsets span multiple
p_data->current_elem elements. Return the (list of) elements with real offsets.
*/
static pmh_realelement *fix_offsets(parser_data *p_data, pmh_realelement *elem)
{
if (elem->type == pmh_EXTRA_TEXT)
return mk_etext(p_data, elem->text);
pmh_realelement *new_head = copy_element(p_data, elem);
pmh_realelement *tail = new_head;
pmh_realelement *prev = NULL;
bool found_start = false;
bool found_end = false;
bool tail_needs_pos = false;
unsigned long previous_end = 0;
unsigned long c = 0;
pmh_realelement *cursor = p_data->elem_head;
while (cursor != NULL)
{
int thislen = (cursor->type == pmh_EXTRA_TEXT)
? strlen(cursor->text)
: cursor->end - cursor->pos;
if (tail_needs_pos && cursor->type != pmh_EXTRA_TEXT) {
tail->pos = cursor->pos;
tail_needs_pos = false;
}
unsigned int this_pos = cursor->pos;
if (!found_start && (c <= elem->pos && elem->pos <= c+thislen)) {
tail->pos = (cursor->type == pmh_EXTRA_TEXT)
? previous_end
: cursor->pos + (elem->pos - c);
this_pos = tail->pos;
found_start = true;
}
if (!found_end && (c <= elem->end && elem->end <= c+thislen)) {
tail->end = (cursor->type == pmh_EXTRA_TEXT)
? previous_end
: cursor->pos + (elem->end - c);
found_end = true;
}
if (found_start && found_end)
break;
if (cursor->type != pmh_EXTRA_TEXT)
previous_end = cursor->end;
if (found_start) {
pmh_realelement *new_elem = copy_element(p_data, tail);
new_elem->pos = this_pos;
new_elem->end = cursor->end;
new_elem->next = tail;
if (prev != NULL)
prev->next = new_elem;
if (new_head == tail)
new_head = new_elem;
prev = new_elem;
tail_needs_pos = true;
}
c += thislen;
cursor = cursor->next;
}
return new_head;
}
/* Add an element to p_data->head_elems. */
static void add(parser_data *p_data, pmh_realelement *elem)
{
if (elem->type != pmh_RAW_LIST)
{
pmh_PRINTF(" add: %s [%ld - %ld]\n",
pmh_element_name_from_type(elem->type), elem->pos, elem->end);
elem = fix_offsets(p_data, elem);
pmh_PRINTF(" > %s [%ld - %ld]\n",
pmh_element_name_from_type(elem->type), elem->pos, elem->end);
}
else
{
pmh_PRINTF(" add: pmh_RAW_LIST ");
pmh_realelement *cursor = elem->children;
pmh_realelement *previous = NULL;
while (cursor != NULL)
{
pmh_realelement *next = cursor->next;
pmh_PRINTF("(%ld-%ld)>", cursor->pos, cursor->end);
pmh_realelement *new_cursor = fix_offsets(p_data, cursor);
if (previous != NULL)
previous->next = new_cursor;
else
elem->children = new_cursor;
pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
while (new_cursor->next != NULL) {
new_cursor = new_cursor->next;
pmh_PRINTF("(%ld-%ld)", new_cursor->pos, new_cursor->end);
}
pmh_PRINTF(" ");
if (next != NULL)
new_cursor->next = next;
previous = new_cursor;
cursor = next;
}
pmh_PRINTF("\n");
}
if (p_data->head_elems[elem->type] == NULL)
p_data->head_elems[elem->type] = elem;
else
{
pmh_realelement *last = elem;
while (last->next != NULL)
last = last->next;
last->next = p_data->head_elems[elem->type];
p_data->head_elems[elem->type] = elem;
}
}
// Given a range in the list of spans we use for parsing (pos, end), return
// a copy of the corresponding section in the original input, with all of
// the UTF-8 bytes intact:
static char *copy_input_span(parser_data *p_data,
unsigned long pos, unsigned long end)
{
if (end <= pos)
return NULL;
char *ret = NULL;
// Adjust (pos,end) to match actual indexes in charbuf:
pmh_realelement *dummy = mk_element(p_data, pmh_NO_TYPE, pos, end);
pmh_realelement *fixed_dummies = fix_offsets(p_data, dummy);
pmh_realelement *cursor = fixed_dummies;
while (cursor != NULL)
{
if (cursor->end <= cursor->pos)
{
cursor = cursor->next;
continue;
}
// Adjust cursor's span to take bytes stripped from the original
// input into account (i.e. match the corresponding span in
// p_data->original_input):
unsigned long adjusted_pos = cursor->pos;
unsigned long adjusted_end = cursor->end;
size_t i;
for (i = 0; i < p_data->strip_positions_len; i++)
{
unsigned long strip_position = p_data->strip_positions[i];
if (strip_position <= adjusted_pos)
adjusted_pos++;
if (strip_position <= adjusted_end)
adjusted_end++;
else
break;
}
// Copy span from original input:
size_t adjusted_len = adjusted_end - adjusted_pos;
char *str = (char *)malloc(sizeof(char)*adjusted_len + 1);
*str = '\0';
strncat(str, (p_data->original_input + adjusted_pos), adjusted_len);
if (ret == NULL)
ret = str;
else
{
// append str to ret:
char *new_ret = (char *)malloc(sizeof(char)
*(strlen(str) + strlen(ret)) + 1);
*new_ret = '\0';
strcat(new_ret, ret);
strcat(new_ret, str);
free(ret);
free(str);
ret = new_ret;
}
cursor = cursor->next;
}
return ret;
}
# define YYSTYPE pmh_realelement *
#ifdef __DEBUG__
# define YY_DEBUG 1
#endif
#define YY_INPUT(buf, result, max_size)\
yy_input_func(buf, &result, max_size, (parser_data *)G->data)
static void yy_input_func(char *buf, int *result, int max_size,
parser_data *p_data)
{
if (p_data->current_elem == NULL)
{
(*result) = 0;
return;
}
if (p_data->current_elem->type == pmh_EXTRA_TEXT)
{
int yyc;
bool moreToRead = (p_data->current_elem->text
&& *(p_data->current_elem->text
+ p_data->current_elem->text_offset) != '\0');
if (moreToRead)
{
yyc = *(p_data->current_elem->text + p_data->current_elem->text_offset++);
pmh_PRINTF("\e[47;30m"); pmh_PUTCHAR(yyc); pmh_PRINTF("\e[0m");
pmh_IF(yyc == '\n') pmh_PRINTF("\e[47m \e[0m");
}
else
{
yyc = EOF;
p_data->current_elem = p_data->current_elem->next;
pmh_PRINTF("\e[41m \e[0m");
if (p_data->current_elem != NULL)
p_data->offset = p_data->current_elem->pos;
}
(*result) = (EOF == yyc) ? 0 : (*(buf) = yyc, 1);
return;
}
*(buf) = *(p_data->charbuf + p_data->offset);
(*result) = (*buf != '\0');
p_data->offset++;
pmh_PRINTF("\e[43;30m"); pmh_PUTCHAR(*buf); pmh_PRINTF("\e[0m");
pmh_IF(*buf == '\n') pmh_PRINTF("\e[42m \e[0m");
if (p_data->offset >= p_data->current_elem->end)
{
p_data->current_elem = p_data->current_elem->next;
pmh_PRINTF("\e[41m \e[0m");
if (p_data->current_elem != NULL)
p_data->offset = p_data->current_elem->pos;
}
}
#define elem(x) mk_element((parser_data *)G->data, x, thunk->begin, thunk->end)
#define elem_s(x) mk_element((parser_data *)G->data, x, s->pos, thunk->end)
#define mk_sep mk_element((parser_data *)G->data, pmh_SEPARATOR, 0,0)
#define mk_notype mk_element((parser_data *)G->data, pmh_NO_TYPE, 0,0)
#define etext(x) mk_etext((parser_data *)G->data, x)
#define ADD(x) add((parser_data *)G->data, x)
#define EXT(x) extension((parser_data *)G->data, x)
#define REF_EXISTS(x) reference_exists((parser_data *)G->data, x)
#define GET_REF(x) get_reference((parser_data *)G->data, x)
#define PARSING_REFERENCES ((parser_data *)G->data)->parsing_only_references
#define FREE_LABEL(l) { free(l->label); l->label = NULL; }
#define FREE_ADDRESS(l) { free(l->address); l->address = NULL; }
// This gives us the text matched with < > as it appears in the original input:
#define COPY_YYTEXT_ORIG() copy_input_span((parser_data *)G->data, thunk->begin, thunk->end)
// pos is the postition of next char to parse after matching one $
// Do not allow $, digit, and \ before opening $
bool inline_equation_predict_pre(char *buf, int pos)
{
if (pos < 2) {
return true;
}
unsigned char ch = buf[pos - 2];
return ch != '$' && (ch < '0' || ch > '9') && ch != '\\';
}
// Do not allow \, space before ending $
bool inline_equation_predict_post(char *buf, int pos)
{
unsigned char ch = buf[pos - 2];
return ch != '\\' && ch != ' ' && ch != '\t';
}
#define IEP_PRE inline_equation_predict_pre(G->buf, G->pos)
#define IEP_POST inline_equation_predict_post(G->buf, G->pos)
// Number of display formula raw opening
unsigned char nr_dfr = 0;
bool start_dfr()
{
nr_dfr = 1;
return true;
}
bool inc_dfr()
{
++nr_dfr;
return true;
}
bool dec_dfr()
{
--nr_dfr;
return true;
}
bool nested_dfr()
{
return nr_dfr > 1;
}
#ifndef YY_ALLOC
#define YY_ALLOC(N, D) malloc(N)
#endif
#ifndef YY_CALLOC
#define YY_CALLOC(N, S, D) calloc(N, S)
#endif
#ifndef YY_REALLOC
#define YY_REALLOC(B, N, D) realloc(B, N)
#endif
#ifndef YY_FREE
#define YY_FREE free
#endif
#ifndef YY_LOCAL
#define YY_LOCAL(T) static T
#endif
#ifndef YY_ACTION
#define YY_ACTION(T) static T
#endif
#ifndef YY_RULE
#define YY_RULE(T) static T
#endif
#ifndef YY_PARSE
#define YY_PARSE(T) T
#endif
#ifndef YY_NAME
#define YY_NAME(N) yy##N
#endif
#ifndef YY_INPUT
#define YY_INPUT(buf, result, max_size) \
{ \
int yyc= getchar(); \
result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \
yyprintf((stderr, "<%c>", yyc)); \
}
#endif
#ifndef YY_BEGIN
#define YY_BEGIN ( G->begin= G->pos, 1)
#endif
#ifndef YY_END
#define YY_END ( G->end= G->pos, 1)
#endif
#ifdef YY_DEBUG
# define yyprintf(args) fprintf args
#else
# define yyprintf(args)
#endif
#ifndef YYSTYPE
#define YYSTYPE int
#endif
#ifndef YY_XTYPE
#define YY_XTYPE void *
#endif
#ifndef YY_XVAR
#define YY_XVAR yyxvar
#endif
#ifndef YY_STACK_SIZE
#define YY_STACK_SIZE 128
#endif
#ifndef YY_BUFFER_START_SIZE
#define YY_BUFFER_START_SIZE 1024
#endif
#ifndef YY_PART
#define yydata G->data
#define yy G->ss
struct _yythunk; // forward declaration
typedef void (*yyaction)(struct _GREG *G, char *yytext, int yyleng, struct _yythunk *thunkpos, YY_XTYPE YY_XVAR);
typedef struct _yythunk { int begin, end; yyaction action; struct _yythunk *next; } yythunk;
typedef struct _GREG {
char *buf;
int buflen;
int offset;
int pos;
int limit;
char *text;
int textlen;
int begin;
int end;
yythunk *thunks;
int thunkslen;
int thunkpos;
YYSTYPE ss;
YYSTYPE *val;
YYSTYPE *vals;
int valslen;
YY_XTYPE data;
} GREG;
YY_LOCAL(int) yyrefill(GREG *G)
{
int yyn;
while (G->buflen - G->pos < 512)
{
G->buflen *= 2;
G->buf= (char *)YY_REALLOC(G->buf, G->buflen, G->data);
}
YY_INPUT((G->buf + G->pos), yyn, (G->buflen - G->pos));
if (!yyn) return 0;
G->limit += yyn;
return 1;
}
YY_LOCAL(int) yymatchDot(GREG *G)
{
if (G->pos >= G->limit && !yyrefill(G)) return 0;
++G->pos;
return 1;
}
YY_LOCAL(int) yymatchChar(GREG *G, int c)
{
if (G->pos >= G->limit && !yyrefill(G)) return 0;
if ((unsigned char)G->buf[G->pos] == c)
{
++G->pos;
yyprintf((stderr, " ok yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
return 1;
}
yyprintf((stderr, " fail yymatchChar(%c) @ %s\n", c, G->buf+G->pos));
return 0;
}
YY_LOCAL(int) yymatchString(GREG *G, char *s)
{
int yysav= G->pos;
while (*s)
{
if (G->pos >= G->limit && !yyrefill(G)) return 0;
if (G->buf[G->pos] != *s)
{
G->pos= yysav;
return 0;
}
++s;
++G->pos;
}
return 1;
}
YY_LOCAL(int) yymatchClass(GREG *G, unsigned char *bits)
{
int c;
if (G->pos >= G->limit && !yyrefill(G)) return 0;
c= (unsigned char)G->buf[G->pos];
if (bits[c >> 3] & (1 << (c & 7)))
{
++G->pos;
yyprintf((stderr, " ok yymatchClass @ %s\n", G->buf+G->pos));
return 1;
}
yyprintf((stderr, " fail yymatchClass @ %s\n", G->buf+G->pos));
return 0;
}
YY_LOCAL(void) yyDo(GREG *G, yyaction action, int begin, int end)
{
while (G->thunkpos >= G->thunkslen)
{
G->thunkslen *= 2;
G->thunks= (yythunk *)YY_REALLOC(G->thunks, sizeof(yythunk) * G->thunkslen, G->data);
}
G->thunks[G->thunkpos].begin= begin;
G->thunks[G->thunkpos].end= end;
G->thunks[G->thunkpos].action= action;
++G->thunkpos;
}
YY_LOCAL(int) yyText(GREG *G, int begin, int end)
{
int yyleng= end - begin;
if (yyleng <= 0)
yyleng= 0;
else
{
while (G->textlen < (yyleng + 1))
{
G->textlen *= 2;
G->text= (char *)YY_REALLOC(G->text, G->textlen, G->data);
}
memcpy(G->text, G->buf + begin, yyleng);
}
G->text[yyleng]= '\0';
return yyleng;
}
YY_LOCAL(void) yyDone(GREG *G)
{
int pos;
for (pos= 0; pos < G->thunkpos; ++pos)
{
yythunk *thunk= &G->thunks[pos];
int yyleng= thunk->end ? yyText(G, thunk->begin, thunk->end) : thunk->begin;
yyprintf((stderr, "DO [%d] %p %s\n", pos, thunk->action, G->text));
thunk->action(G, G->text, yyleng, thunk, G->data);
}
G->thunkpos= 0;
}
YY_LOCAL(void) yyCommit(GREG *G)
{
if ((G->limit -= G->pos))
{
memmove(G->buf, G->buf + G->pos, G->limit);
}
G->offset += G->pos;
G->begin -= G->pos;
G->end -= G->pos;
G->pos= G->thunkpos= 0;
}
YY_LOCAL(int) yyAccept(GREG *G, int tp0)
{
if (tp0)
{
fprintf(stderr, "accept denied at %d\n", tp0);
return 0;
}
else
{
yyDone(G);
yyCommit(G);
}
return 1;
}
YY_LOCAL(void) yyPush(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val += count; }
YY_LOCAL(void) yyPop(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val -= count; }
YY_LOCAL(void) yySet(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val[count]= G->ss; }
#endif /* YY_PART */
#define YYACCEPT yyAccept(G, yythunkpos0)
YY_RULE(int) yy_RawNoteBlock(GREG *G); /* 255 */
YY_RULE(int) yy_RawNoteReference(GREG *G); /* 254 */
YY_RULE(int) yy_ExtendedSpecialChar(GREG *G); /* 253 */
YY_RULE(int) yy_AlphanumericAscii(GREG *G); /* 252 */
YY_RULE(int) yy_Quoted(GREG *G); /* 251 */
YY_RULE(int) yy_HtmlTag(GREG *G); /* 250 */
YY_RULE(int) yy_MarkTagClose(GREG *G); /* 249 */
YY_RULE(int) yy_MarkTagText(GREG *G); /* 248 */
YY_RULE(int) yy_MarkTagOpen(GREG *G); /* 247 */
YY_RULE(int) yy_Ticks5(GREG *G); /* 246 */
YY_RULE(int) yy_Ticks4(GREG *G); /* 245 */
YY_RULE(int) yy_Ticks3(GREG *G); /* 244 */
YY_RULE(int) yy_Ticks2(GREG *G); /* 243 */
YY_RULE(int) yy_Ticks1(GREG *G); /* 242 */
YY_RULE(int) yy_SkipBlock(GREG *G); /* 241 */
YY_RULE(int) yy_References(GREG *G); /* 240 */
YY_RULE(int) yy_EmptyTitle(GREG *G); /* 239 */
YY_RULE(int) yy_RefTitleParens(GREG *G); /* 238 */
YY_RULE(int) yy_RefTitleDouble(GREG *G); /* 237 */
YY_RULE(int) yy_RefTitleSingle(GREG *G); /* 236 */
YY_RULE(int) yy_LabelInline(GREG *G); /* 235 */
YY_RULE(int) yy_RefTitle(GREG *G); /* 234 */
YY_RULE(int) yy_RefSrc(GREG *G); /* 233 */
YY_RULE(int) yy_AutoLinkEmail(GREG *G); /* 232 */
YY_RULE(int) yy_AutoLinkUrl(GREG *G); /* 231 */
YY_RULE(int) yy_ImageSizeHeight(GREG *G); /* 230 */
YY_RULE(int) yy_ImageSizeWidth(GREG *G); /* 229 */
YY_RULE(int) yy_ImageSizeComplete(GREG *G); /* 228 */
YY_RULE(int) yy_TitleDoubleExt(GREG *G); /* 227 */
YY_RULE(int) yy_TitleSingleExt(GREG *G); /* 226 */
YY_RULE(int) yy_TitleDouble(GREG *G); /* 225 */
YY_RULE(int) yy_TitleSingle(GREG *G); /* 224 */
YY_RULE(int) yy_SourceContents(GREG *G); /* 223 */
YY_RULE(int) yy_ImageSize(GREG *G); /* 222 */
YY_RULE(int) yy_TitleExt(GREG *G); /* 221 */
YY_RULE(int) yy_Title(GREG *G); /* 220 */
YY_RULE(int) yy_Source(GREG *G); /* 219 */
YY_RULE(int) yy_Label(GREG *G); /* 218 */
YY_RULE(int) yy_ReferenceLinkSingle(GREG *G); /* 217 */
YY_RULE(int) yy_ReferenceLinkDouble(GREG *G); /* 216 */
YY_RULE(int) yy_AutoLink(GREG *G); /* 215 */
YY_RULE(int) yy_ReferenceLink(GREG *G); /* 214 */
YY_RULE(int) yy_ExplicitLinkSize(GREG *G); /* 213 */
YY_RULE(int) yy_ExplicitLink(GREG *G); /* 212 */
YY_RULE(int) yy_StrongUl(GREG *G); /* 211 */
YY_RULE(int) yy_StrongStar(GREG *G); /* 210 */
YY_RULE(int) yy_Whitespace(GREG *G); /* 209 */
YY_RULE(int) yy_EmphUl(GREG *G); /* 208 */
YY_RULE(int) yy_EmphStar(GREG *G); /* 207 */
YY_RULE(int) yy_StarLine(GREG *G); /* 206 */
YY_RULE(int) yy_UlLine(GREG *G); /* 205 */
YY_RULE(int) yy_SpecialChar(GREG *G); /* 204 */
YY_RULE(int) yy_Eof(GREG *G); /* 203 */
YY_RULE(int) yy_NormalEndline(GREG *G); /* 202 */
YY_RULE(int) yy_TerminalEndline(GREG *G); /* 201 */
YY_RULE(int) yy_LineBreak(GREG *G); /* 200 */
YY_RULE(int) yy_CharEntity(GREG *G); /* 199 */
YY_RULE(int) yy_DecEntity(GREG *G); /* 198 */
YY_RULE(int) yy_HexEntity(GREG *G); /* 197 */
YY_RULE(int) yy_Alphanumeric(GREG *G); /* 196 */
YY_RULE(int) yy_NormalChar(GREG *G); /* 195 */
YY_RULE(int) yy_Symbol(GREG *G); /* 194 */
YY_RULE(int) yy_EscapedChar(GREG *G); /* 193 */
YY_RULE(int) yy_Entity(GREG *G); /* 192 */
YY_RULE(int) yy_RawHtml(GREG *G); /* 191 */
YY_RULE(int) yy_Mark(GREG *G); /* 190 */
YY_RULE(int) yy_Code(GREG *G); /* 189 */
YY_RULE(int) yy_InlineNote(GREG *G); /* 188 */
YY_RULE(int) yy_NoteReference(GREG *G); /* 187 */
YY_RULE(int) yy_Link(GREG *G); /* 186 */
YY_RULE(int) yy_Image(GREG *G); /* 185 */
YY_RULE(int) yy_Strike(GREG *G); /* 184 */
YY_RULE(int) yy_Emph(GREG *G); /* 183 */
YY_RULE(int) yy_Strong(GREG *G); /* 182 */
YY_RULE(int) yy_UlOrStarLine(GREG *G); /* 181 */
YY_RULE(int) yy_Str(GREG *G); /* 180 */
YY_RULE(int) yy_InStyleTags(GREG *G); /* 179 */
YY_RULE(int) yy_StyleClose(GREG *G); /* 178 */
YY_RULE(int) yy_StyleOpen(GREG *G); /* 177 */
YY_RULE(int) yy_HtmlBlockType(GREG *G); /* 176 */
YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G); /* 175 */
YY_RULE(int) yy_HtmlComment(GREG *G); /* 174 */
YY_RULE(int) yy_HtmlBlockInTags(GREG *G); /* 173 */
YY_RULE(int) yy_HtmlBlockHead(GREG *G); /* 172 */
YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G); /* 171 */
YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G); /* 170 */
YY_RULE(int) yy_HtmlBlockScript(GREG *G); /* 169 */
YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G); /* 168 */
YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G); /* 167 */
YY_RULE(int) yy_HtmlBlockTr(GREG *G); /* 166 */
YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G); /* 165 */
YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G); /* 164 */
YY_RULE(int) yy_HtmlBlockThead(GREG *G); /* 163 */
YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G); /* 162 */
YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G); /* 161 */
YY_RULE(int) yy_HtmlBlockTh(GREG *G); /* 160 */
YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G); /* 159 */
YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G); /* 158 */
YY_RULE(int) yy_HtmlBlockTfoot(GREG *G); /* 157 */
YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G); /* 156 */
YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G); /* 155 */
YY_RULE(int) yy_HtmlBlockTd(GREG *G); /* 154 */
YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G); /* 153 */
YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G); /* 152 */
YY_RULE(int) yy_HtmlBlockTbody(GREG *G); /* 151 */
YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G); /* 150 */
YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G); /* 149 */
YY_RULE(int) yy_HtmlBlockLi(GREG *G); /* 148 */
YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G); /* 147 */
YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G); /* 146 */
YY_RULE(int) yy_HtmlBlockFrameset(GREG *G); /* 145 */
YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G); /* 144 */
YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G); /* 143 */
YY_RULE(int) yy_HtmlBlockDt(GREG *G); /* 142 */
YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G); /* 141 */
YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G); /* 140 */
YY_RULE(int) yy_HtmlBlockDd(GREG *G); /* 139 */
YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G); /* 138 */
YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G); /* 137 */
YY_RULE(int) yy_HtmlBlockUl(GREG *G); /* 136 */
YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G); /* 135 */
YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G); /* 134 */
YY_RULE(int) yy_HtmlBlockTable(GREG *G); /* 133 */
YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G); /* 132 */
YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G); /* 131 */
YY_RULE(int) yy_HtmlBlockPre(GREG *G); /* 130 */
YY_RULE(int) yy_HtmlBlockClosePre(GREG *G); /* 129 */
YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G); /* 128 */
YY_RULE(int) yy_HtmlBlockP(GREG *G); /* 127 */
YY_RULE(int) yy_HtmlBlockCloseP(GREG *G); /* 126 */
YY_RULE(int) yy_HtmlBlockOpenP(GREG *G); /* 125 */
YY_RULE(int) yy_HtmlBlockOl(GREG *G); /* 124 */
YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G); /* 123 */
YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G); /* 122 */
YY_RULE(int) yy_HtmlBlockNoscript(GREG *G); /* 121 */
YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G); /* 120 */
YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G); /* 119 */
YY_RULE(int) yy_HtmlBlockNoframes(GREG *G); /* 118 */
YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G); /* 117 */
YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G); /* 116 */
YY_RULE(int) yy_HtmlBlockMenu(GREG *G); /* 115 */
YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G); /* 114 */
YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G); /* 113 */
YY_RULE(int) yy_HtmlBlockH6(GREG *G); /* 112 */
YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G); /* 111 */
YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G); /* 110 */
YY_RULE(int) yy_HtmlBlockH5(GREG *G); /* 109 */
YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G); /* 108 */
YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G); /* 107 */
YY_RULE(int) yy_HtmlBlockH4(GREG *G); /* 106 */
YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G); /* 105 */
YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G); /* 104 */
YY_RULE(int) yy_HtmlBlockH3(GREG *G); /* 103 */
YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G); /* 102 */
YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G); /* 101 */
YY_RULE(int) yy_HtmlBlockH2(GREG *G); /* 100 */
YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G); /* 99 */
YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G); /* 98 */
YY_RULE(int) yy_HtmlBlockH1(GREG *G); /* 97 */
YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G); /* 96 */
YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G); /* 95 */
YY_RULE(int) yy_HtmlBlockForm(GREG *G); /* 94 */
YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G); /* 93 */
YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G); /* 92 */
YY_RULE(int) yy_HtmlBlockFieldset(GREG *G); /* 91 */
YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G); /* 90 */
YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G); /* 89 */
YY_RULE(int) yy_HtmlBlockDl(GREG *G); /* 88 */
YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G); /* 87 */
YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G); /* 86 */
YY_RULE(int) yy_HtmlBlockDiv(GREG *G); /* 85 */
YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G); /* 84 */
YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G); /* 83 */
YY_RULE(int) yy_HtmlBlockDir(GREG *G); /* 82 */
YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G); /* 81 */
YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G); /* 80 */
YY_RULE(int) yy_HtmlBlockCenter(GREG *G); /* 79 */
YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G); /* 78 */
YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G); /* 77 */
YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G); /* 76 */
YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G); /* 75 */
YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G); /* 74 */
YY_RULE(int) yy_HtmlBlockAddress(GREG *G); /* 73 */
YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G); /* 72 */
YY_RULE(int) yy_HtmlAttribute(GREG *G); /* 71 */
YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G); /* 70 */
YY_RULE(int) yy_OptionallyIndentedLine(GREG *G); /* 69 */
YY_RULE(int) yy_Indent(GREG *G); /* 68 */
YY_RULE(int) yy_ListBlockLine(GREG *G); /* 67 */
YY_RULE(int) yy_ListContinuationBlock(GREG *G); /* 66 */
YY_RULE(int) yy_ListBlock(GREG *G); /* 65 */
YY_RULE(int) yy_ListItem(GREG *G); /* 64 */
YY_RULE(int) yy_Enumerator(GREG *G); /* 63 */
YY_RULE(int) yy_ListItemTight(GREG *G); /* 62 */
YY_RULE(int) yy_ListLoose(GREG *G); /* 61 */
YY_RULE(int) yy_ListTight(GREG *G); /* 60 */
YY_RULE(int) yy_Bullet(GREG *G); /* 59 */
YY_RULE(int) yy_InlineEquationMultiple(GREG *G); /* 58 */
YY_RULE(int) yy_InlineEquationSingle(GREG *G); /* 57 */
YY_RULE(int) yy_InlineEquation(GREG *G); /* 56 */
YY_RULE(int) yy_Nonspacechar(GREG *G); /* 55 */
YY_RULE(int) yy_DisplayFormulaRawMark(GREG *G); /* 54 */
YY_RULE(int) yy_DisplayFormulaRawEnd(GREG *G); /* 53 */
YY_RULE(int) yy_Spnl(GREG *G); /* 52 */
YY_RULE(int) yy_DisplayFormulaRawStart(GREG *G); /* 51 */
YY_RULE(int) yy_FormulaNumber(GREG *G); /* 50 */
YY_RULE(int) yy_DisplayFormulaRaw(GREG *G); /* 49 */
YY_RULE(int) yy_DisplayFormulaDollar(GREG *G); /* 48 */
YY_RULE(int) yy_Spacechar(GREG *G); /* 47 */
YY_RULE(int) yy_FencedCodeBlockEnd(GREG *G); /* 46 */
YY_RULE(int) yy_FencedCodeBlockChunk(GREG *G); /* 45 */
YY_RULE(int) yy_FencedCodeBlockStart(GREG *G); /* 44 */
YY_RULE(int) yy_VerbatimChunk(GREG *G); /* 43 */
YY_RULE(int) yy_IndentedLine(GREG *G); /* 42 */
YY_RULE(int) yy_NonblankIndentedLine(GREG *G); /* 41 */
YY_RULE(int) yy_Line(GREG *G); /* 40 */
YY_RULE(int) yy_StartList(GREG *G); /* 39 */
YY_RULE(int) yy_BlockQuoteRaw(GREG *G); /* 38 */
YY_RULE(int) yy_Endline(GREG *G); /* 37 */
YY_RULE(int) yy_RawLine(GREG *G); /* 36 */
YY_RULE(int) yy_SetextBottom2(GREG *G); /* 35 */
YY_RULE(int) yy_SetextBottom1(GREG *G); /* 34 */
YY_RULE(int) yy_SetextHeading2(GREG *G); /* 33 */
YY_RULE(int) yy_SetextHeading1(GREG *G); /* 32 */
YY_RULE(int) yy_SetextHeading(GREG *G); /* 31 */
YY_RULE(int) yy_Space(GREG *G); /* 30 */
YY_RULE(int) yy_AtxHeading(GREG *G); /* 29 */
YY_RULE(int) yy_AtxStart(GREG *G); /* 28 */
YY_RULE(int) yy_Inline(GREG *G); /* 27 */
YY_RULE(int) yy_Sp(GREG *G); /* 26 */
YY_RULE(int) yy_AtxInline(GREG *G); /* 25 */
YY_RULE(int) yy_Inlines(GREG *G); /* 24 */
YY_RULE(int) yy_NonindentSpace(GREG *G); /* 23 */
YY_RULE(int) yy_Plain(GREG *G); /* 22 */
YY_RULE(int) yy_Para(GREG *G); /* 21 */
YY_RULE(int) yy_StyleBlock(GREG *G); /* 20 */
YY_RULE(int) yy_HtmlBlock(GREG *G); /* 19 */
YY_RULE(int) yy_BulletList(GREG *G); /* 18 */
YY_RULE(int) yy_OrderedList(GREG *G); /* 17 */
YY_RULE(int) yy_Heading(GREG *G); /* 16 */
YY_RULE(int) yy_HorizontalRule(GREG *G); /* 15 */
YY_RULE(int) yy_Reference(GREG *G); /* 14 */
YY_RULE(int) yy_Note(GREG *G); /* 13 */
YY_RULE(int) yy_DisplayFormula(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 */
YY_RULE(int) yy_FrontMatterEndMark(GREG *G); /* 7 */
YY_RULE(int) yy_FrontMatterBlock(GREG *G); /* 6 */
YY_RULE(int) yy_Newline(GREG *G); /* 5 */
YY_RULE(int) yy_LocMarker(GREG *G); /* 4 */
YY_RULE(int) yy_Block(GREG *G); /* 3 */
YY_RULE(int) yy_FrontMatter(GREG *G); /* 2 */
YY_RULE(int) yy_Doc(GREG *G); /* 1 */
YY_ACTION(void) yy_1_InlineNote(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_InlineNote\n"));
ADD(elem_s(pmh_NOTE)); ;
#undef s
}
YY_ACTION(void) yy_1_Note(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_Note\n"));
ADD(elem_s(pmh_NOTE)); ;
#undef s
}
YY_ACTION(void) yy_1_NoteReference(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_NoteReference\n"));
ADD(elem(pmh_NOTE)); ;
}
YY_ACTION(void) yy_1_RawLine(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_RawLine\n"));
yy = elem(pmh_RAW); ;
}
YY_ACTION(void) yy_1_Line(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Line\n"));
yy = mk_element((parser_data *)G->data, pmh_RAW, yy->pos, yy->end); ;
}
YY_ACTION(void) yy_1_StartList(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_StartList\n"));
yy = NULL; ;
}
YY_ACTION(void) yy_1_HtmlComment(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlComment\n"));
ADD(elem_s(pmh_COMMENT)); ;
#undef s
}
YY_ACTION(void) yy_1_RawHtml(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_RawHtml\n"));
ADD(elem_s(pmh_HTML)); ;
#undef s
}
YY_ACTION(void) yy_1_MarkTagClose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_MarkTagClose\n"));
yy = elem_s(pmh_HTML); ;
#undef s
}
YY_ACTION(void) yy_1_MarkTagOpen(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_MarkTagOpen\n"));
yy = elem_s(pmh_HTML); ;
#undef s
}
YY_ACTION(void) yy_1_Mark(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define c G->val[-1]
#define o G->val[-2]
yyprintf((stderr, "do yy_1_Mark\n"));
ADD(o);
ADD(mk_element((parser_data *)G->data, pmh_MARK, o->end, c->pos));
ADD(c);
;
#undef c
#undef o
}
YY_ACTION(void) yy_1_Code(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_Code\n"));
ADD(elem_s(pmh_CODE)); ;
#undef s
}
YY_ACTION(void) yy_1_Ticks5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Ticks5\n"));
yy = elem(pmh_NO_TYPE); ;
}
YY_ACTION(void) yy_1_Ticks4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Ticks4\n"));
yy = elem(pmh_NO_TYPE); ;
}
YY_ACTION(void) yy_1_Ticks3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Ticks3\n"));
yy = elem(pmh_NO_TYPE); ;
}
YY_ACTION(void) yy_1_Ticks2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Ticks2\n"));
yy = elem(pmh_NO_TYPE); ;
}
YY_ACTION(void) yy_1_Ticks1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Ticks1\n"));
yy = elem(pmh_NO_TYPE); ;
}
YY_ACTION(void) yy_1_RefSrc(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_RefSrc\n"));
yy = mk_notype; yy->address = COPY_YYTEXT_ORIG(); ;
}
YY_ACTION(void) yy_2_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_2_Label\n"));
s->pos = s->pos;
s->end = thunk->end;
yy = s;
;
#undef s
}
YY_ACTION(void) yy_1_Label(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_Label\n"));
s->label = COPY_YYTEXT_ORIG(); ;
#undef s
}
YY_ACTION(void) yy_1_Reference(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define r G->val[-1]
#define l G->val[-2]
#define s G->val[-3]
yyprintf((stderr, "do yy_1_Reference\n"));
pmh_realelement *el = elem_s(pmh_REFERENCE);
el->label = strdup_or_null(l->label);
el->address = strdup_or_null(r->address);
ADD(el);
FREE_LABEL(l);
FREE_ADDRESS(r);
;
#undef r
#undef l
#undef s
}
YY_ACTION(void) yy_3_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_3_AutoLinkEmail\n"));
s->end = thunk->end;
ADD(s);
;
#undef s
}
YY_ACTION(void) yy_2_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_2_AutoLinkEmail\n"));
s->address = COPY_YYTEXT_ORIG(); ;
#undef s
}
YY_ACTION(void) yy_1_AutoLinkEmail(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_AutoLinkEmail\n"));
s->type = pmh_AUTO_LINK_EMAIL; ;
#undef s
}
YY_ACTION(void) yy_3_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_3_AutoLinkUrl\n"));
s->end = thunk->end;
ADD(s);
;
#undef s
}
YY_ACTION(void) yy_2_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_2_AutoLinkUrl\n"));
s->address = COPY_YYTEXT_ORIG(); ;
#undef s
}
YY_ACTION(void) yy_1_AutoLinkUrl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_AutoLinkUrl\n"));
s->type = pmh_AUTO_LINK_URL; ;
#undef s
}
YY_ACTION(void) yy_3_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_3_Source\n"));
yy->address = COPY_YYTEXT_ORIG(); ;
}
YY_ACTION(void) yy_2_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_2_Source\n"));
yy->address = COPY_YYTEXT_ORIG(); ;
}
YY_ACTION(void) yy_1_Source(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Source\n"));
yy = mk_notype; ;
}
YY_ACTION(void) yy_1_ExplicitLinkSize(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define l G->val[-1]
#define s G->val[-2]
yyprintf((stderr, "do yy_1_ExplicitLinkSize\n"));
yy = elem_s(pmh_LINK);
if (l->address != NULL)
yy->address = strdup_or_null(l->address);
FREE_LABEL(s);
FREE_ADDRESS(l);
;
#undef l
#undef s
}
YY_ACTION(void) yy_1_ExplicitLink(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define l G->val[-1]
#define s G->val[-2]
yyprintf((stderr, "do yy_1_ExplicitLink\n"));
yy = elem_s(pmh_LINK);
if (l->address != NULL)
yy->address = strdup_or_null(l->address);
FREE_LABEL(s);
FREE_ADDRESS(l);
;
#undef l
#undef s
}
YY_ACTION(void) yy_1_ReferenceLinkSingle(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_ReferenceLinkSingle\n"));
pmh_realelement *reference = GET_REF(s->label);
if (reference) {
yy = elem_s(pmh_LINK);
yy->label = strdup_or_null(s->label);
yy->address = strdup_or_null(reference->address);
} else
yy = NULL;
FREE_LABEL(s);
;
#undef s
}
YY_ACTION(void) yy_1_ReferenceLinkDouble(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define l G->val[-1]
#define s G->val[-2]
yyprintf((stderr, "do yy_1_ReferenceLinkDouble\n"));
pmh_realelement *reference = GET_REF(l->label);
if (reference) {
yy = elem_s(pmh_LINK);
yy->label = strdup_or_null(l->label);
yy->address = strdup_or_null(reference->address);
} else
yy = NULL;
FREE_LABEL(s);
FREE_LABEL(l);
;
#undef l
#undef s
}
YY_ACTION(void) yy_1_Link(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Link\n"));
if (yy) ADD(yy); ;
}
YY_ACTION(void) yy_1_Image(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Image\n"));
if (yy != NULL) {
yy->type = pmh_IMAGE;
yy->pos -= 1;
ADD(yy);
}
;
}
YY_ACTION(void) yy_1_Strike(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_Strike\n"));
ADD(elem_s(pmh_STRIKE)); ;
#undef s
}
YY_ACTION(void) yy_1_StrongUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_StrongUl\n"));
ADD(elem_s(pmh_STRONG)); ;
#undef s
}
YY_ACTION(void) yy_1_StrongStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_StrongStar\n"));
ADD(elem_s(pmh_STRONG)); ;
#undef s
}
YY_ACTION(void) yy_1_EmphUl(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_EmphUl\n"));
ADD(elem_s(pmh_EMPH)); ;
#undef s
}
YY_ACTION(void) yy_1_EmphStar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_EmphStar\n"));
ADD(elem_s(pmh_EMPH)); ;
#undef s
}
YY_ACTION(void) yy_1_Entity(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_Entity\n"));
ADD(elem_s(pmh_HTML_ENTITY)); ;
#undef s
}
YY_ACTION(void) yy_1_StyleBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_StyleBlock\n"));
ADD(elem_s(pmh_HTMLBLOCK)); ;
#undef s
}
YY_ACTION(void) yy_1_HtmlBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlBlock\n"));
ADD(elem_s(pmh_HTMLBLOCK)); ;
#undef s
}
YY_ACTION(void) yy_1_HtmlBlockH6(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlBlockH6\n"));
ADD(elem_s(pmh_H6)); ;
#undef s
}
YY_ACTION(void) yy_1_HtmlBlockH5(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlBlockH5\n"));
ADD(elem_s(pmh_H5)); ;
#undef s
}
YY_ACTION(void) yy_1_HtmlBlockH4(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlBlockH4\n"));
ADD(elem_s(pmh_H4)); ;
#undef s
}
YY_ACTION(void) yy_1_HtmlBlockH3(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlBlockH3\n"));
ADD(elem_s(pmh_H3)); ;
#undef s
}
YY_ACTION(void) yy_1_HtmlBlockH2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlBlockH2\n"));
ADD(elem_s(pmh_H2)); ;
#undef s
}
YY_ACTION(void) yy_1_HtmlBlockH1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_HtmlBlockH1\n"));
ADD(elem_s(pmh_H1)); ;
#undef s
}
YY_ACTION(void) yy_1_Enumerator(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Enumerator\n"));
ADD(elem(pmh_LIST_ENUMERATOR)); ;
}
YY_ACTION(void) yy_3_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_3_ListContinuationBlock\n"));
yy = a; ;
#undef a
}
YY_ACTION(void) yy_2_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_2_ListContinuationBlock\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_1_ListContinuationBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_1_ListContinuationBlock\n"));
if (*yytext == '\0') /* if strlen(yytext) == 0 */
a = cons(elem(pmh_SEPARATOR), a);
else
a = cons(elem(pmh_RAW), a);
;
#undef a
}
YY_ACTION(void) yy_3_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_3_ListBlock\n"));
yy = a; ;
#undef a
}
YY_ACTION(void) yy_2_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_2_ListBlock\n"));
a = cons(elem(pmh_RAW), a); ;
#undef a
}
YY_ACTION(void) yy_1_ListBlock(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_1_ListBlock\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_3_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_3_ListItemTight\n"));
yy = a; ;
#undef a
}
YY_ACTION(void) yy_2_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_2_ListItemTight\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_1_ListItemTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_1_ListItemTight\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_3_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_3_ListItem\n"));
yy = a; ;
#undef a
}
YY_ACTION(void) yy_2_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_2_ListItem\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_1_ListItem(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_1_ListItem\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_2_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define b G->val[-1]
#define a G->val[-2]
yyprintf((stderr, "do yy_2_ListLoose\n"));
pmh_realelement *cur = a;
while (cur != NULL) {
pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
rawlist->children = reverse(cur->children);
ADD(rawlist);
cur = cur->next;
}
;
#undef b
#undef a
}
YY_ACTION(void) yy_1_ListLoose(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define b G->val[-1]
#define a G->val[-2]
yyprintf((stderr, "do yy_1_ListLoose\n"));
b = cons(etext("\n\n"), b); /* In loose list, \n\n added to end of each element */
pmh_realelement *el = mk_notype;
el->children = b;
a = cons(el, a);
;
#undef b
#undef a
}
YY_ACTION(void) yy_2_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_2_ListTight\n"));
pmh_realelement *cur = a;
while (cur != NULL) {
pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
rawlist->children = reverse(cur->children);
ADD(rawlist);
cur = cur->next;
}
;
#undef a
}
YY_ACTION(void) yy_1_ListTight(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_1_ListTight\n"));
pmh_realelement *el = mk_notype;
el->children = yy;
a = cons(el, a);
;
#undef a
}
YY_ACTION(void) yy_1_Bullet(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_Bullet\n"));
ADD(elem(pmh_LIST_BULLET)); ;
}
YY_ACTION(void) yy_1_HorizontalRule(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_HorizontalRule\n"));
ADD(elem(pmh_HRULE)); ;
}
YY_ACTION(void) yy_1_InlineEquation(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_InlineEquation\n"));
ADD(elem(pmh_INLINEEQUATION)); ;
}
YY_ACTION(void) yy_1_DisplayFormulaRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_DisplayFormulaRaw\n"));
ADD(elem(pmh_DISPLAYFORMULA)); ;
}
YY_ACTION(void) yy_1_DisplayFormulaDollar(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_DisplayFormulaDollar\n"));
ADD(elem(pmh_DISPLAYFORMULA)); ;
}
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]
yyprintf((stderr, "do yy_1_Verbatim\n"));
ADD(elem_s(pmh_VERBATIM)); ;
#undef s
}
YY_ACTION(void) yy_5_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_5_BlockQuoteRaw\n"));
yy = a; ;
#undef a
}
YY_ACTION(void) yy_4_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_4_BlockQuoteRaw\n"));
a = cons(etext("\n"), a); ;
#undef a
}
YY_ACTION(void) yy_3_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_3_BlockQuoteRaw\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_2_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_2_BlockQuoteRaw\n"));
a = cons(yy, a); ;
#undef a
}
YY_ACTION(void) yy_1_BlockQuoteRaw(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_1_BlockQuoteRaw\n"));
ADD(elem(pmh_BLOCKQUOTE)); ;
#undef a
}
YY_ACTION(void) yy_1_BlockQuote(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define a G->val[-1]
yyprintf((stderr, "do yy_1_BlockQuote\n"));
pmh_realelement *rawlist = mk_element((parser_data *)G->data, pmh_RAW_LIST, 0,0);
rawlist->children = reverse(a);
ADD(rawlist);
;
#undef a
}
YY_ACTION(void) yy_1_SetextHeading2(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_SetextHeading2\n"));
ADD(elem_s(pmh_H2)); ;
#undef s
}
YY_ACTION(void) yy_1_SetextHeading1(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_SetextHeading1\n"));
ADD(elem_s(pmh_H1)); ;
#undef s
}
YY_ACTION(void) yy_1_AtxHeading(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_AtxHeading\n"));
ADD(elem_s(s->type)); ;
#undef s
}
YY_ACTION(void) yy_1_AtxStart(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_AtxStart\n"));
yy = elem((pmh_element_type)(pmh_H1 + (strlen(yytext) - 1))); ;
}
YY_ACTION(void) yy_1_FrontMatter(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_FrontMatter\n"));
ADD(elem(pmh_FRONTMATTER));
;
#undef s
}
YY_ACTION(void) yy_1_LocMarker(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_LocMarker\n"));
yy = elem(pmh_NO_TYPE); ;
}
YY_RULE(int) yy_RawNoteBlock(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "RawNoteBlock"));
{ int yypos4= G->pos, yythunkpos4= G->thunkpos; if (!yy_BlankLine(G)) { goto l4; } goto l1;
l4:; G->pos= yypos4; G->thunkpos= yythunkpos4;
} if (!yy_OptionallyIndentedLine(G)) { goto l1; }
l2:;
{ int yypos3= G->pos, yythunkpos3= G->thunkpos;
{ int yypos5= G->pos, yythunkpos5= G->thunkpos; if (!yy_BlankLine(G)) { goto l5; } goto l3;
l5:; G->pos= yypos5; G->thunkpos= yythunkpos5;
} if (!yy_OptionallyIndentedLine(G)) { goto l3; } goto l2;
l3:; G->pos= yypos3; G->thunkpos= yythunkpos3;
}
l6:;
{ int yypos7= G->pos, yythunkpos7= G->thunkpos; if (!yy_BlankLine(G)) { goto l7; } goto l6;
l7:; G->pos= yypos7; G->thunkpos= yythunkpos7;
}
yyprintf((stderr, " ok %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
return 1;
l1:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RawNoteBlock", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_RawNoteReference(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "RawNoteReference")); if (!yymatchString(G, "[^")) goto l8;
{ int yypos11= G->pos, yythunkpos11= G->thunkpos; if (!yy_Newline(G)) { goto l11; } goto l8;
l11:; G->pos= yypos11; G->thunkpos= yythunkpos11;
}
{ int yypos12= G->pos, yythunkpos12= G->thunkpos; if (!yymatchChar(G, ']')) goto l12; goto l8;
l12:; G->pos= yypos12; G->thunkpos= yythunkpos12;
} if (!yymatchDot(G)) goto l8;
l9:;
{ int yypos10= G->pos, yythunkpos10= G->thunkpos;
{ int yypos13= G->pos, yythunkpos13= G->thunkpos; if (!yy_Newline(G)) { goto l13; } goto l10;
l13:; G->pos= yypos13; G->thunkpos= yythunkpos13;
}
{ int yypos14= G->pos, yythunkpos14= G->thunkpos; if (!yymatchChar(G, ']')) goto l14; goto l10;
l14:; G->pos= yypos14; G->thunkpos= yythunkpos14;
} if (!yymatchDot(G)) goto l10; goto l9;
l10:; G->pos= yypos10; G->thunkpos= yythunkpos10;
} if (!yymatchChar(G, ']')) goto l8;
yyprintf((stderr, " ok %s @ %s\n", "RawNoteReference", G->buf+G->pos));
return 1;
l8:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RawNoteReference", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ExtendedSpecialChar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "ExtendedSpecialChar"));
{ int yypos16= G->pos, yythunkpos16= G->thunkpos; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l17; if (!yymatchChar(G, '^')) goto l17; goto l16;
l17:; G->pos= yypos16; G->thunkpos= yythunkpos16; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MATH) )) goto l15; if (!yymatchChar(G, '$')) goto l15;
}
l16:;
yyprintf((stderr, " ok %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
return 1;
l15:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ExtendedSpecialChar", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_AlphanumericAscii(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "AlphanumericAscii")); if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l18;
yyprintf((stderr, " ok %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
return 1;
l18:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "AlphanumericAscii", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Quoted(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Quoted"));
{ int yypos20= G->pos, yythunkpos20= G->thunkpos; if (!yymatchChar(G, '"')) goto l21;
l22:;
{ int yypos23= G->pos, yythunkpos23= G->thunkpos;
{ int yypos24= G->pos, yythunkpos24= G->thunkpos; if (!yymatchChar(G, '"')) goto l24; goto l23;
l24:; G->pos= yypos24; G->thunkpos= yythunkpos24;
} if (!yymatchDot(G)) goto l23; goto l22;
l23:; G->pos= yypos23; G->thunkpos= yythunkpos23;
} if (!yymatchChar(G, '"')) goto l21; goto l20;
l21:; G->pos= yypos20; G->thunkpos= yythunkpos20; if (!yymatchChar(G, '\'')) goto l19;
l25:;
{ int yypos26= G->pos, yythunkpos26= G->thunkpos;
{ int yypos27= G->pos, yythunkpos27= G->thunkpos; if (!yymatchChar(G, '\'')) goto l27; goto l26;
l27:; G->pos= yypos27; G->thunkpos= yythunkpos27;
} if (!yymatchDot(G)) goto l26; goto l25;
l26:; G->pos= yypos26; G->thunkpos= yythunkpos26;
} if (!yymatchChar(G, '\'')) goto l19;
}
l20:;
yyprintf((stderr, " ok %s @ %s\n", "Quoted", G->buf+G->pos));
return 1;
l19:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Quoted", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlTag(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlTag")); if (!yymatchChar(G, '<')) goto l28; if (!yy_Spnl(G)) { goto l28; }
{ int yypos29= G->pos, yythunkpos29= G->thunkpos; if (!yymatchChar(G, '/')) goto l29; goto l30;
l29:; G->pos= yypos29; G->thunkpos= yythunkpos29;
}
l30:; if (!yy_AlphanumericAscii(G)) { goto l28; }
l31:;
{ int yypos32= G->pos, yythunkpos32= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l32; } goto l31;
l32:; G->pos= yypos32; G->thunkpos= yythunkpos32;
} if (!yy_Spnl(G)) { goto l28; }
l33:;
{ int yypos34= G->pos, yythunkpos34= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l34; } goto l33;
l34:; G->pos= yypos34; G->thunkpos= yythunkpos34;
}
{ int yypos35= G->pos, yythunkpos35= G->thunkpos; if (!yymatchChar(G, '/')) goto l35; goto l36;
l35:; G->pos= yypos35; G->thunkpos= yythunkpos35;
}
l36:; if (!yy_Spnl(G)) { goto l28; } if (!yymatchChar(G, '>')) goto l28;
yyprintf((stderr, " ok %s @ %s\n", "HtmlTag", G->buf+G->pos));
return 1;
l28:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlTag", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_MarkTagClose(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "MarkTagClose")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l37; if (!yy_LocMarker(G)) { goto l37; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '<')) goto l37; if (!yy_Spnl(G)) { goto l37; } if (!yymatchChar(G, '/')) goto l37;
{ int yypos38= G->pos, yythunkpos38= G->thunkpos; if (!yymatchString(G, "mark")) goto l39; goto l38;
l39:; G->pos= yypos38; G->thunkpos= yythunkpos38; if (!yymatchString(G, "MARK")) goto l37;
}
l38:; if (!yy_Spnl(G)) { goto l37; } if (!yymatchChar(G, '>')) goto l37; yyText(G, G->begin, G->end); if (!(YY_END)) goto l37; yyDo(G, yy_1_MarkTagClose, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "MarkTagClose", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l37:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "MarkTagClose", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_MarkTagText(GREG *G)
{
yyprintf((stderr, "%s\n", "MarkTagText"));
l41:;
{ int yypos42= G->pos, yythunkpos42= G->thunkpos;
{ int yypos43= G->pos, yythunkpos43= G->thunkpos; if (!yy_MarkTagClose(G)) { goto l43; } goto l42;
l43:; G->pos= yypos43; G->thunkpos= yythunkpos43;
}
{ int yypos44= G->pos, yythunkpos44= G->thunkpos; if (!yy_RawHtml(G)) { goto l45; } goto l44;
l45:; G->pos= yypos44; G->thunkpos= yythunkpos44; if (!yymatchDot(G)) goto l42;
}
l44:; goto l41;
l42:; G->pos= yypos42; G->thunkpos= yythunkpos42;
}
yyprintf((stderr, " ok %s @ %s\n", "MarkTagText", G->buf+G->pos));
return 1;
}
YY_RULE(int) yy_MarkTagOpen(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "MarkTagOpen")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l46; if (!yy_LocMarker(G)) { goto l46; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '<')) goto l46; if (!yy_Spnl(G)) { goto l46; }
{ int yypos47= G->pos, yythunkpos47= G->thunkpos; if (!yymatchString(G, "mark")) goto l48; goto l47;
l48:; G->pos= yypos47; G->thunkpos= yythunkpos47; if (!yymatchString(G, "MARK")) goto l46;
}
l47:; if (!yy_Spnl(G)) { goto l46; }
l49:;
{ int yypos50= G->pos, yythunkpos50= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l50; } goto l49;
l50:; G->pos= yypos50; G->thunkpos= yythunkpos50;
} if (!yymatchChar(G, '>')) goto l46; yyText(G, G->begin, G->end); if (!(YY_END)) goto l46; yyDo(G, yy_1_MarkTagOpen, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "MarkTagOpen", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l46:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "MarkTagOpen", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Ticks5(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Ticks5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l51; if (!yymatchString(G, "`````")) goto l51; yyText(G, G->begin, G->end); if (!(YY_END)) goto l51;
{ int yypos52= G->pos, yythunkpos52= G->thunkpos; if (!yymatchChar(G, '`')) goto l52; goto l51;
l52:; G->pos= yypos52; G->thunkpos= yythunkpos52;
} yyDo(G, yy_1_Ticks5, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Ticks5", G->buf+G->pos));
return 1;
l51:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Ticks5", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Ticks4(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Ticks4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l53; if (!yymatchString(G, "````")) goto l53; yyText(G, G->begin, G->end); if (!(YY_END)) goto l53;
{ int yypos54= G->pos, yythunkpos54= G->thunkpos; if (!yymatchChar(G, '`')) goto l54; goto l53;
l54:; G->pos= yypos54; G->thunkpos= yythunkpos54;
} yyDo(G, yy_1_Ticks4, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Ticks4", G->buf+G->pos));
return 1;
l53:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Ticks4", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Ticks3(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Ticks3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l55; if (!yymatchString(G, "```")) goto l55; yyText(G, G->begin, G->end); if (!(YY_END)) goto l55;
{ int yypos56= G->pos, yythunkpos56= G->thunkpos; if (!yymatchChar(G, '`')) goto l56; goto l55;
l56:; G->pos= yypos56; G->thunkpos= yythunkpos56;
} yyDo(G, yy_1_Ticks3, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Ticks3", G->buf+G->pos));
return 1;
l55:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Ticks3", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Ticks2(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Ticks2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l57; if (!yymatchString(G, "``")) goto l57; yyText(G, G->begin, G->end); if (!(YY_END)) goto l57;
{ int yypos58= G->pos, yythunkpos58= G->thunkpos; if (!yymatchChar(G, '`')) goto l58; goto l57;
l58:; G->pos= yypos58; G->thunkpos= yythunkpos58;
} yyDo(G, yy_1_Ticks2, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Ticks2", G->buf+G->pos));
return 1;
l57:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Ticks2", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Ticks1(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Ticks1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l59; if (!yymatchChar(G, '`')) goto l59; yyText(G, G->begin, G->end); if (!(YY_END)) goto l59;
{ int yypos60= G->pos, yythunkpos60= G->thunkpos; if (!yymatchChar(G, '`')) goto l60; goto l59;
l60:; G->pos= yypos60; G->thunkpos= yythunkpos60;
} yyDo(G, yy_1_Ticks1, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Ticks1", G->buf+G->pos));
return 1;
l59:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Ticks1", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_SkipBlock(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "SkipBlock"));
{ int yypos62= G->pos, yythunkpos62= G->thunkpos;
{ int yypos66= G->pos, yythunkpos66= G->thunkpos; if (!yy_BlankLine(G)) { goto l66; } goto l63;
l66:; G->pos= yypos66; G->thunkpos= yythunkpos66;
} if (!yy_RawLine(G)) { goto l63; }
l64:;
{ int yypos65= G->pos, yythunkpos65= G->thunkpos;
{ int yypos67= G->pos, yythunkpos67= G->thunkpos; if (!yy_BlankLine(G)) { goto l67; } goto l65;
l67:; G->pos= yypos67; G->thunkpos= yythunkpos67;
} if (!yy_RawLine(G)) { goto l65; } goto l64;
l65:; G->pos= yypos65; G->thunkpos= yythunkpos65;
}
l68:;
{ int yypos69= G->pos, yythunkpos69= G->thunkpos; if (!yy_BlankLine(G)) { goto l69; } goto l68;
l69:; G->pos= yypos69; G->thunkpos= yythunkpos69;
} goto l62;
l63:; G->pos= yypos62; G->thunkpos= yythunkpos62; if (!yy_BlankLine(G)) { goto l61; }
l70:;
{ int yypos71= G->pos, yythunkpos71= G->thunkpos; if (!yy_BlankLine(G)) { goto l71; } goto l70;
l71:; G->pos= yypos71; G->thunkpos= yythunkpos71;
}
}
l62:;
yyprintf((stderr, " ok %s @ %s\n", "SkipBlock", G->buf+G->pos));
return 1;
l61:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "SkipBlock", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_References(GREG *G)
{
yyprintf((stderr, "%s\n", "References"));
l73:;
{ int yypos74= G->pos, yythunkpos74= G->thunkpos;
{ int yypos75= G->pos, yythunkpos75= G->thunkpos; if (!yy_Reference(G)) { goto l76; } goto l75;
l76:; G->pos= yypos75; G->thunkpos= yythunkpos75; if (!yy_SkipBlock(G)) { goto l74; }
}
l75:; goto l73;
l74:; G->pos= yypos74; G->thunkpos= yythunkpos74;
}
yyprintf((stderr, " ok %s @ %s\n", "References", G->buf+G->pos));
return 1;
}
YY_RULE(int) yy_EmptyTitle(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "EmptyTitle")); if (!yymatchString(G, "")) goto l77;
yyprintf((stderr, " ok %s @ %s\n", "EmptyTitle", G->buf+G->pos));
return 1;
l77:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "EmptyTitle", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_RefTitleParens(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "RefTitleParens")); if (!yy_Spnl(G)) { goto l78; } if (!yymatchChar(G, '(')) goto l78;
l79:;
{ int yypos80= G->pos, yythunkpos80= G->thunkpos;
{ int yypos81= G->pos, yythunkpos81= G->thunkpos;
{ int yypos82= G->pos, yythunkpos82= G->thunkpos; if (!yymatchChar(G, ')')) goto l83; if (!yy_Sp(G)) { goto l83; } if (!yy_Newline(G)) { goto l83; } goto l82;
l83:; G->pos= yypos82; G->thunkpos= yythunkpos82; if (!yy_Newline(G)) { goto l81; }
}
l82:; goto l80;
l81:; G->pos= yypos81; G->thunkpos= yythunkpos81;
} if (!yymatchDot(G)) goto l80; goto l79;
l80:; G->pos= yypos80; G->thunkpos= yythunkpos80;
} if (!yymatchChar(G, ')')) goto l78;
yyprintf((stderr, " ok %s @ %s\n", "RefTitleParens", G->buf+G->pos));
return 1;
l78:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RefTitleParens", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_RefTitleDouble(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "RefTitleDouble")); if (!yy_Spnl(G)) { goto l84; } if (!yymatchChar(G, '"')) goto l84;
l85:;
{ int yypos86= G->pos, yythunkpos86= G->thunkpos;
{ int yypos87= G->pos, yythunkpos87= G->thunkpos;
{ int yypos88= G->pos, yythunkpos88= G->thunkpos; if (!yymatchChar(G, '"')) goto l89; if (!yy_Sp(G)) { goto l89; } if (!yy_Newline(G)) { goto l89; } goto l88;
l89:; G->pos= yypos88; G->thunkpos= yythunkpos88; if (!yy_Newline(G)) { goto l87; }
}
l88:; goto l86;
l87:; G->pos= yypos87; G->thunkpos= yythunkpos87;
} if (!yymatchDot(G)) goto l86; goto l85;
l86:; G->pos= yypos86; G->thunkpos= yythunkpos86;
} if (!yymatchChar(G, '"')) goto l84;
yyprintf((stderr, " ok %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
return 1;
l84:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RefTitleDouble", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_RefTitleSingle(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "RefTitleSingle")); if (!yy_Spnl(G)) { goto l90; } if (!yymatchChar(G, '\'')) goto l90;
l91:;
{ int yypos92= G->pos, yythunkpos92= G->thunkpos;
{ int yypos93= G->pos, yythunkpos93= G->thunkpos;
{ int yypos94= G->pos, yythunkpos94= G->thunkpos; if (!yymatchChar(G, '\'')) goto l95; if (!yy_Sp(G)) { goto l95; } if (!yy_Newline(G)) { goto l95; } goto l94;
l95:; G->pos= yypos94; G->thunkpos= yythunkpos94; if (!yy_Newline(G)) { goto l93; }
}
l94:; goto l92;
l93:; G->pos= yypos93; G->thunkpos= yythunkpos93;
} if (!yymatchDot(G)) goto l92; goto l91;
l92:; G->pos= yypos92; G->thunkpos= yythunkpos92;
} if (!yymatchChar(G, '\'')) goto l90;
yyprintf((stderr, " ok %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
return 1;
l90:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RefTitleSingle", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_LabelInline(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "LabelInline"));
{ int yypos97= G->pos, yythunkpos97= G->thunkpos; if (!yy_Str(G)) { goto l98; } goto l97;
l98:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Endline(G)) { goto l99; } goto l97;
l99:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Space(G)) { goto l100; } goto l97;
l100:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_RawHtml(G)) { goto l101; } goto l97;
l101:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Entity(G)) { goto l102; } goto l97;
l102:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_EscapedChar(G)) { goto l103; } goto l97;
l103:; G->pos= yypos97; G->thunkpos= yythunkpos97; if (!yy_Symbol(G)) { goto l96; }
}
l97:;
yyprintf((stderr, " ok %s @ %s\n", "LabelInline", G->buf+G->pos));
return 1;
l96:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "LabelInline", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_RefTitle(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "RefTitle"));
{ int yypos105= G->pos, yythunkpos105= G->thunkpos; if (!yy_RefTitleSingle(G)) { goto l106; } goto l105;
l106:; G->pos= yypos105; G->thunkpos= yythunkpos105; if (!yy_RefTitleDouble(G)) { goto l107; } goto l105;
l107:; G->pos= yypos105; G->thunkpos= yythunkpos105; if (!yy_RefTitleParens(G)) { goto l108; } goto l105;
l108:; G->pos= yypos105; G->thunkpos= yythunkpos105; if (!yy_EmptyTitle(G)) { goto l104; }
}
l105:;
yyprintf((stderr, " ok %s @ %s\n", "RefTitle", G->buf+G->pos));
return 1;
l104:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RefTitle", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_RefSrc(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "RefSrc")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l109; if (!yy_Nonspacechar(G)) { goto l109; }
l110:;
{ int yypos111= G->pos, yythunkpos111= G->thunkpos; if (!yy_Nonspacechar(G)) { goto l111; } goto l110;
l111:; G->pos= yypos111; G->thunkpos= yythunkpos111;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l109; yyDo(G, yy_1_RefSrc, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "RefSrc", G->buf+G->pos));
return 1;
l109:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RefSrc", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_AutoLinkEmail(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "AutoLinkEmail")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l112; if (!yy_LocMarker(G)) { goto l112; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '<')) goto l112;
{ int yypos113= G->pos, yythunkpos113= G->thunkpos; if (!yymatchString(G, "mailto:")) goto l113; goto l114;
l113:; G->pos= yypos113; G->thunkpos= yythunkpos113;
}
l114:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l112; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\062\350\377\003\376\377\377\207\376\377\377\107\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l112;
l115:;
{ int yypos116= G->pos, yythunkpos116= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\062\350\377\003\376\377\377\207\376\377\377\107\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l116; goto l115;
l116:; G->pos= yypos116; G->thunkpos= yythunkpos116;
} if (!yymatchChar(G, '@')) goto l112;
{ int yypos119= G->pos, yythunkpos119= G->thunkpos; if (!yy_Newline(G)) { goto l119; } goto l112;
l119:; G->pos= yypos119; G->thunkpos= yythunkpos119;
}
{ int yypos120= G->pos, yythunkpos120= G->thunkpos; if (!yymatchChar(G, '>')) goto l120; goto l112;
l120:; G->pos= yypos120; G->thunkpos= yythunkpos120;
} if (!yymatchDot(G)) goto l112;
l117:;
{ int yypos118= G->pos, yythunkpos118= G->thunkpos;
{ int yypos121= G->pos, yythunkpos121= G->thunkpos; if (!yy_Newline(G)) { goto l121; } goto l118;
l121:; G->pos= yypos121; G->thunkpos= yythunkpos121;
}
{ int yypos122= G->pos, yythunkpos122= G->thunkpos; if (!yymatchChar(G, '>')) goto l122; goto l118;
l122:; G->pos= yypos122; G->thunkpos= yythunkpos122;
} if (!yymatchDot(G)) goto l118; goto l117;
l118:; G->pos= yypos118; G->thunkpos= yythunkpos118;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l112; yyDo(G, yy_2_AutoLinkEmail, G->begin, G->end); if (!yymatchChar(G, '>')) goto l112; yyText(G, G->begin, G->end); if (!(YY_END)) goto l112; yyDo(G, yy_3_AutoLinkEmail, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "AutoLinkEmail", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l112:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "AutoLinkEmail", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_AutoLinkUrl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "AutoLinkUrl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l123; if (!yy_LocMarker(G)) { goto l123; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '<')) goto l123; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l123; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l123;
l124:;
{ int yypos125= G->pos, yythunkpos125= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l125; goto l124;
l125:; G->pos= yypos125; G->thunkpos= yythunkpos125;
} if (!yymatchString(G, "://")) goto l123;
{ int yypos128= G->pos, yythunkpos128= G->thunkpos; if (!yy_Newline(G)) { goto l128; } goto l123;
l128:; G->pos= yypos128; G->thunkpos= yythunkpos128;
}
{ int yypos129= G->pos, yythunkpos129= G->thunkpos; if (!yymatchChar(G, '>')) goto l129; goto l123;
l129:; G->pos= yypos129; G->thunkpos= yythunkpos129;
} if (!yymatchDot(G)) goto l123;
l126:;
{ int yypos127= G->pos, yythunkpos127= G->thunkpos;
{ int yypos130= G->pos, yythunkpos130= G->thunkpos; if (!yy_Newline(G)) { goto l130; } goto l127;
l130:; G->pos= yypos130; G->thunkpos= yythunkpos130;
}
{ int yypos131= G->pos, yythunkpos131= G->thunkpos; if (!yymatchChar(G, '>')) goto l131; goto l127;
l131:; G->pos= yypos131; G->thunkpos= yythunkpos131;
} if (!yymatchDot(G)) goto l127; goto l126;
l127:; G->pos= yypos127; G->thunkpos= yythunkpos127;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l123; yyDo(G, yy_2_AutoLinkUrl, G->begin, G->end); if (!yymatchChar(G, '>')) goto l123; yyText(G, G->begin, G->end); if (!(YY_END)) goto l123; yyDo(G, yy_3_AutoLinkUrl, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "AutoLinkUrl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l123:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "AutoLinkUrl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ImageSizeHeight(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "ImageSizeHeight")); if (!yymatchString(G, "=x")) goto l132; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l132;
l133:;
{ int yypos134= G->pos, yythunkpos134= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l134; goto l133;
l134:; G->pos= yypos134; G->thunkpos= yythunkpos134;
}
yyprintf((stderr, " ok %s @ %s\n", "ImageSizeHeight", G->buf+G->pos));
return 1;
l132:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ImageSizeHeight", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ImageSizeWidth(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "ImageSizeWidth")); if (!yymatchChar(G, '=')) goto l135; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l135;
l136:;
{ int yypos137= G->pos, yythunkpos137= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l137; goto l136;
l137:; G->pos= yypos137; G->thunkpos= yythunkpos137;
} if (!yymatchChar(G, 'x')) goto l135;
yyprintf((stderr, " ok %s @ %s\n", "ImageSizeWidth", G->buf+G->pos));
return 1;
l135:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ImageSizeWidth", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ImageSizeComplete(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "ImageSizeComplete")); if (!yymatchChar(G, '=')) goto l138; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l138;
l139:;
{ int yypos140= G->pos, yythunkpos140= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l140; goto l139;
l140:; G->pos= yypos140; G->thunkpos= yythunkpos140;
} if (!yymatchChar(G, 'x')) goto l138; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l138;
l141:;
{ int yypos142= G->pos, yythunkpos142= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l142; goto l141;
l142:; G->pos= yypos142; G->thunkpos= yythunkpos142;
}
yyprintf((stderr, " ok %s @ %s\n", "ImageSizeComplete", G->buf+G->pos));
return 1;
l138:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ImageSizeComplete", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_TitleDoubleExt(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "TitleDoubleExt")); if (!yymatchChar(G, '"')) goto l143;
l144:;
{ int yypos145= G->pos, yythunkpos145= G->thunkpos;
{ int yypos146= G->pos, yythunkpos146= G->thunkpos;
{ int yypos147= G->pos, yythunkpos147= G->thunkpos; if (!yymatchChar(G, '"')) goto l148; goto l147;
l148:; G->pos= yypos147; G->thunkpos= yythunkpos147; if (!yy_Newline(G)) { goto l146; }
}
l147:; goto l145;
l146:; G->pos= yypos146; G->thunkpos= yythunkpos146;
} if (!yymatchDot(G)) goto l145; goto l144;
l145:; G->pos= yypos145; G->thunkpos= yythunkpos145;
} if (!yymatchChar(G, '"')) goto l143;
yyprintf((stderr, " ok %s @ %s\n", "TitleDoubleExt", G->buf+G->pos));
return 1;
l143:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "TitleDoubleExt", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_TitleSingleExt(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "TitleSingleExt")); if (!yymatchChar(G, '\'')) goto l149;
l150:;
{ int yypos151= G->pos, yythunkpos151= G->thunkpos;
{ int yypos152= G->pos, yythunkpos152= G->thunkpos;
{ int yypos153= G->pos, yythunkpos153= G->thunkpos; if (!yymatchChar(G, '\'')) goto l154; goto l153;
l154:; G->pos= yypos153; G->thunkpos= yythunkpos153; if (!yy_Newline(G)) { goto l152; }
}
l153:; goto l151;
l152:; G->pos= yypos152; G->thunkpos= yythunkpos152;
} if (!yymatchDot(G)) goto l151; goto l150;
l151:; G->pos= yypos151; G->thunkpos= yythunkpos151;
} if (!yymatchChar(G, '\'')) goto l149;
yyprintf((stderr, " ok %s @ %s\n", "TitleSingleExt", G->buf+G->pos));
return 1;
l149:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "TitleSingleExt", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_TitleDouble(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "TitleDouble")); if (!yymatchChar(G, '"')) goto l155;
l156:;
{ int yypos157= G->pos, yythunkpos157= G->thunkpos;
{ int yypos158= G->pos, yythunkpos158= G->thunkpos; if (!yymatchChar(G, '"')) goto l158; if (!yy_Sp(G)) { goto l158; }
{ int yypos159= G->pos, yythunkpos159= G->thunkpos; if (!yymatchChar(G, ')')) goto l160; goto l159;
l160:; G->pos= yypos159; G->thunkpos= yythunkpos159; if (!yy_Newline(G)) { goto l158; }
}
l159:; goto l157;
l158:; G->pos= yypos158; G->thunkpos= yythunkpos158;
} if (!yymatchDot(G)) goto l157; goto l156;
l157:; G->pos= yypos157; G->thunkpos= yythunkpos157;
} if (!yymatchChar(G, '"')) goto l155;
yyprintf((stderr, " ok %s @ %s\n", "TitleDouble", G->buf+G->pos));
return 1;
l155:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "TitleDouble", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_TitleSingle(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "TitleSingle")); if (!yymatchChar(G, '\'')) goto l161;
l162:;
{ int yypos163= G->pos, yythunkpos163= G->thunkpos;
{ int yypos164= G->pos, yythunkpos164= G->thunkpos; if (!yymatchChar(G, '\'')) goto l164; if (!yy_Sp(G)) { goto l164; }
{ int yypos165= G->pos, yythunkpos165= G->thunkpos; if (!yymatchChar(G, ')')) goto l166; goto l165;
l166:; G->pos= yypos165; G->thunkpos= yythunkpos165; if (!yy_Newline(G)) { goto l164; }
}
l165:; goto l163;
l164:; G->pos= yypos164; G->thunkpos= yythunkpos164;
} if (!yymatchDot(G)) goto l163; goto l162;
l163:; G->pos= yypos163; G->thunkpos= yythunkpos163;
} if (!yymatchChar(G, '\'')) goto l161;
yyprintf((stderr, " ok %s @ %s\n", "TitleSingle", G->buf+G->pos));
return 1;
l161:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "TitleSingle", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_SourceContents(GREG *G)
{
yyprintf((stderr, "%s\n", "SourceContents"));
l168:;
{ int yypos169= G->pos, yythunkpos169= G->thunkpos;
{ int yypos170= G->pos, yythunkpos170= G->thunkpos;
{ int yypos174= G->pos, yythunkpos174= G->thunkpos; if (!yymatchChar(G, '(')) goto l174; goto l171;
l174:; G->pos= yypos174; G->thunkpos= yythunkpos174;
}
{ int yypos175= G->pos, yythunkpos175= G->thunkpos; if (!yymatchChar(G, ')')) goto l175; goto l171;
l175:; G->pos= yypos175; G->thunkpos= yythunkpos175;
}
{ int yypos176= G->pos, yythunkpos176= G->thunkpos; if (!yymatchChar(G, '>')) goto l176; goto l171;
l176:; G->pos= yypos176; G->thunkpos= yythunkpos176;
} if (!yy_Nonspacechar(G)) { goto l171; }
l172:;
{ int yypos173= G->pos, yythunkpos173= G->thunkpos;
{ int yypos177= G->pos, yythunkpos177= G->thunkpos; if (!yymatchChar(G, '(')) goto l177; goto l173;
l177:; G->pos= yypos177; G->thunkpos= yythunkpos177;
}
{ int yypos178= G->pos, yythunkpos178= G->thunkpos; if (!yymatchChar(G, ')')) goto l178; goto l173;
l178:; G->pos= yypos178; G->thunkpos= yythunkpos178;
}
{ int yypos179= G->pos, yythunkpos179= G->thunkpos; if (!yymatchChar(G, '>')) goto l179; goto l173;
l179:; G->pos= yypos179; G->thunkpos= yythunkpos179;
} if (!yy_Nonspacechar(G)) { goto l173; } goto l172;
l173:; G->pos= yypos173; G->thunkpos= yythunkpos173;
} goto l170;
l171:; G->pos= yypos170; G->thunkpos= yythunkpos170; if (!yymatchChar(G, '(')) goto l169; if (!yy_SourceContents(G)) { goto l169; } if (!yymatchChar(G, ')')) goto l169;
}
l170:; goto l168;
l169:; G->pos= yypos169; G->thunkpos= yythunkpos169;
}
yyprintf((stderr, " ok %s @ %s\n", "SourceContents", G->buf+G->pos));
return 1;
}
YY_RULE(int) yy_ImageSize(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "ImageSize"));
{ int yypos181= G->pos, yythunkpos181= G->thunkpos; if (!yy_ImageSizeComplete(G)) { goto l182; } goto l181;
l182:; G->pos= yypos181; G->thunkpos= yythunkpos181; if (!yy_ImageSizeWidth(G)) { goto l183; } goto l181;
l183:; G->pos= yypos181; G->thunkpos= yythunkpos181; if (!yy_ImageSizeHeight(G)) { goto l184; } goto l181;
l184:; G->pos= yypos181; G->thunkpos= yythunkpos181; if (!yymatchString(G, "")) goto l180;
}
l181:;
yyprintf((stderr, " ok %s @ %s\n", "ImageSize", G->buf+G->pos));
return 1;
l180:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ImageSize", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_TitleExt(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "TitleExt"));
{ int yypos186= G->pos, yythunkpos186= G->thunkpos; if (!yy_TitleSingleExt(G)) { goto l187; } goto l186;
l187:; G->pos= yypos186; G->thunkpos= yythunkpos186; if (!yy_TitleDoubleExt(G)) { goto l188; } goto l186;
l188:; G->pos= yypos186; G->thunkpos= yythunkpos186; if (!yymatchString(G, "")) goto l185;
}
l186:;
yyprintf((stderr, " ok %s @ %s\n", "TitleExt", G->buf+G->pos));
return 1;
l185:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "TitleExt", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Title(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Title"));
{ int yypos190= G->pos, yythunkpos190= G->thunkpos; if (!yy_TitleSingle(G)) { goto l191; } goto l190;
l191:; G->pos= yypos190; G->thunkpos= yythunkpos190; if (!yy_TitleDouble(G)) { goto l192; } goto l190;
l192:; G->pos= yypos190; G->thunkpos= yythunkpos190; if (!yymatchString(G, "")) goto l189;
}
l190:;
yyprintf((stderr, " ok %s @ %s\n", "Title", G->buf+G->pos));
return 1;
l189:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Title", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Source(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Source")); yyDo(G, yy_1_Source, G->begin, G->end);
{ int yypos194= G->pos, yythunkpos194= G->thunkpos; if (!yymatchChar(G, '<')) goto l195; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l195; if (!yy_SourceContents(G)) { goto l195; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l195; yyDo(G, yy_2_Source, G->begin, G->end); if (!yymatchChar(G, '>')) goto l195; goto l194;
l195:; G->pos= yypos194; G->thunkpos= yythunkpos194; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l193; if (!yy_SourceContents(G)) { goto l193; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l193; yyDo(G, yy_3_Source, G->begin, G->end);
}
l194:;
yyprintf((stderr, " ok %s @ %s\n", "Source", G->buf+G->pos));
return 1;
l193:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Source", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Label(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "Label")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l196; if (!yy_LocMarker(G)) { goto l196; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '[')) goto l196;
{ int yypos197= G->pos, yythunkpos197= G->thunkpos;
{ int yypos199= G->pos, yythunkpos199= G->thunkpos; if (!yymatchChar(G, '^')) goto l199; goto l198;
l199:; G->pos= yypos199; G->thunkpos= yythunkpos199;
} yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l198; goto l197;
l198:; G->pos= yypos197; G->thunkpos= yythunkpos197;
{ int yypos200= G->pos, yythunkpos200= G->thunkpos; if (!yymatchDot(G)) goto l196; G->pos= yypos200; G->thunkpos= yythunkpos200;
} yyText(G, G->begin, G->end); if (!( !EXT(pmh_EXT_NOTES) )) goto l196;
}
l197:; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l196;
l201:;
{ int yypos202= G->pos, yythunkpos202= G->thunkpos;
{ int yypos203= G->pos, yythunkpos203= G->thunkpos; if (!yymatchChar(G, ']')) goto l203; goto l202;
l203:; G->pos= yypos203; G->thunkpos= yythunkpos203;
}
{ int yypos204= G->pos, yythunkpos204= G->thunkpos; if (!yymatchChar(G, '[')) goto l204; goto l202;
l204:; G->pos= yypos204; G->thunkpos= yythunkpos204;
} if (!yy_LabelInline(G)) { goto l202; } goto l201;
l202:; G->pos= yypos202; G->thunkpos= yythunkpos202;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l196; yyDo(G, yy_1_Label, G->begin, G->end); if (!yymatchChar(G, ']')) goto l196; yyText(G, G->begin, G->end); if (!(YY_END)) goto l196; yyDo(G, yy_2_Label, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Label", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l196:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Label", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ReferenceLinkSingle(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "ReferenceLinkSingle")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l205; if (!yy_Label(G)) { goto l205; } yyDo(G, yySet, -1, 0);
{ int yypos206= G->pos, yythunkpos206= G->thunkpos; if (!yy_Spnl(G)) { goto l206; } if (!yymatchString(G, "[]")) goto l206; goto l207;
l206:; G->pos= yypos206; G->thunkpos= yythunkpos206;
}
l207:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l205; yyDo(G, yy_1_ReferenceLinkSingle, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l205:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkSingle", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ReferenceLinkDouble(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
yyprintf((stderr, "%s\n", "ReferenceLinkDouble")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l208; if (!yy_Label(G)) { goto l208; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l208; }
{ int yypos209= G->pos, yythunkpos209= G->thunkpos; if (!yymatchString(G, "[]")) goto l209; goto l208;
l209:; G->pos= yypos209; G->thunkpos= yythunkpos209;
} if (!yy_Label(G)) { goto l208; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_END)) goto l208; yyDo(G, yy_1_ReferenceLinkDouble, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
return 1;
l208:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ReferenceLinkDouble", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_AutoLink(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "AutoLink"));
{ int yypos211= G->pos, yythunkpos211= G->thunkpos; if (!yy_AutoLinkUrl(G)) { goto l212; } goto l211;
l212:; G->pos= yypos211; G->thunkpos= yythunkpos211; if (!yy_AutoLinkEmail(G)) { goto l210; }
}
l211:;
yyprintf((stderr, " ok %s @ %s\n", "AutoLink", G->buf+G->pos));
return 1;
l210:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "AutoLink", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ReferenceLink(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "ReferenceLink"));
{ int yypos214= G->pos, yythunkpos214= G->thunkpos; if (!yy_ReferenceLinkDouble(G)) { goto l215; } goto l214;
l215:; G->pos= yypos214; G->thunkpos= yythunkpos214; if (!yy_ReferenceLinkSingle(G)) { goto l213; }
}
l214:;
yyprintf((stderr, " ok %s @ %s\n", "ReferenceLink", G->buf+G->pos));
return 1;
l213:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ReferenceLink", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ExplicitLinkSize(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
yyprintf((stderr, "%s\n", "ExplicitLinkSize")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l216; if (!yy_Label(G)) { goto l216; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l216; } if (!yymatchChar(G, '(')) goto l216; if (!yy_Sp(G)) { goto l216; } if (!yy_Source(G)) { goto l216; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l216; } if (!yy_TitleExt(G)) { goto l216; } if (!yy_Sp(G)) { goto l216; } if (!yy_ImageSize(G)) { goto l216; } if (!yy_Sp(G)) { goto l216; } if (!yymatchChar(G, ')')) goto l216; yyText(G, G->begin, G->end); if (!(YY_END)) goto l216; yyDo(G, yy_1_ExplicitLinkSize, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ExplicitLinkSize", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
return 1;
l216:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ExplicitLinkSize", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ExplicitLink(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
yyprintf((stderr, "%s\n", "ExplicitLink")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l217; if (!yy_Label(G)) { goto l217; } yyDo(G, yySet, -2, 0); if (!yy_Spnl(G)) { goto l217; } if (!yymatchChar(G, '(')) goto l217; if (!yy_Sp(G)) { goto l217; } if (!yy_Source(G)) { goto l217; } yyDo(G, yySet, -1, 0); if (!yy_Spnl(G)) { goto l217; } if (!yy_Title(G)) { goto l217; } if (!yy_Sp(G)) { goto l217; } if (!yymatchChar(G, ')')) goto l217; yyText(G, G->begin, G->end); if (!(YY_END)) goto l217; yyDo(G, yy_1_ExplicitLink, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ExplicitLink", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
return 1;
l217:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ExplicitLink", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_StrongUl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "StrongUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l218; if (!yy_LocMarker(G)) { goto l218; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "__")) goto l218;
{ int yypos219= G->pos, yythunkpos219= G->thunkpos; if (!yy_Whitespace(G)) { goto l219; } goto l218;
l219:; G->pos= yypos219; G->thunkpos= yythunkpos219;
}
{ int yypos222= G->pos, yythunkpos222= G->thunkpos; if (!yymatchString(G, "__")) goto l222; goto l218;
l222:; G->pos= yypos222; G->thunkpos= yythunkpos222;
} if (!yy_Inline(G)) { goto l218; }
l220:;
{ int yypos221= G->pos, yythunkpos221= G->thunkpos;
{ int yypos223= G->pos, yythunkpos223= G->thunkpos; if (!yymatchString(G, "__")) goto l223; goto l221;
l223:; G->pos= yypos223; G->thunkpos= yythunkpos223;
} if (!yy_Inline(G)) { goto l221; } goto l220;
l221:; G->pos= yypos221; G->thunkpos= yythunkpos221;
} if (!yymatchString(G, "__")) goto l218; yyText(G, G->begin, G->end); if (!(YY_END)) goto l218; yyDo(G, yy_1_StrongUl, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "StrongUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l218:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "StrongUl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_StrongStar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "StrongStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l224; if (!yy_LocMarker(G)) { goto l224; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "**")) goto l224;
{ int yypos225= G->pos, yythunkpos225= G->thunkpos; if (!yy_Whitespace(G)) { goto l225; } goto l224;
l225:; G->pos= yypos225; G->thunkpos= yythunkpos225;
}
{ int yypos228= G->pos, yythunkpos228= G->thunkpos; if (!yymatchString(G, "**")) goto l228; goto l224;
l228:; G->pos= yypos228; G->thunkpos= yythunkpos228;
} if (!yy_Inline(G)) { goto l224; }
l226:;
{ int yypos227= G->pos, yythunkpos227= G->thunkpos;
{ int yypos229= G->pos, yythunkpos229= G->thunkpos; if (!yymatchString(G, "**")) goto l229; goto l227;
l229:; G->pos= yypos229; G->thunkpos= yythunkpos229;
} if (!yy_Inline(G)) { goto l227; } goto l226;
l227:; G->pos= yypos227; G->thunkpos= yythunkpos227;
} if (!yymatchString(G, "**")) goto l224; yyText(G, G->begin, G->end); if (!(YY_END)) goto l224; yyDo(G, yy_1_StrongStar, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "StrongStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l224:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "StrongStar", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Whitespace(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Whitespace"));
{ int yypos231= G->pos, yythunkpos231= G->thunkpos; if (!yy_Spacechar(G)) { goto l232; } goto l231;
l232:; G->pos= yypos231; G->thunkpos= yythunkpos231; if (!yy_Newline(G)) { goto l230; }
}
l231:;
yyprintf((stderr, " ok %s @ %s\n", "Whitespace", G->buf+G->pos));
return 1;
l230:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Whitespace", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_EmphUl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "EmphUl")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l233; if (!yy_LocMarker(G)) { goto l233; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '_')) goto l233;
{ int yypos234= G->pos, yythunkpos234= G->thunkpos; if (!yy_Whitespace(G)) { goto l234; } goto l233;
l234:; G->pos= yypos234; G->thunkpos= yythunkpos234;
}
{ int yypos237= G->pos, yythunkpos237= G->thunkpos;
{ int yypos239= G->pos, yythunkpos239= G->thunkpos; if (!yymatchChar(G, '_')) goto l239; goto l238;
l239:; G->pos= yypos239; G->thunkpos= yythunkpos239;
} if (!yy_Inline(G)) { goto l238; } goto l237;
l238:; G->pos= yypos237; G->thunkpos= yythunkpos237; if (!yy_StrongUl(G)) { goto l233; }
}
l237:;
l235:;
{ int yypos236= G->pos, yythunkpos236= G->thunkpos;
{ int yypos240= G->pos, yythunkpos240= G->thunkpos;
{ int yypos242= G->pos, yythunkpos242= G->thunkpos; if (!yymatchChar(G, '_')) goto l242; goto l241;
l242:; G->pos= yypos242; G->thunkpos= yythunkpos242;
} if (!yy_Inline(G)) { goto l241; } goto l240;
l241:; G->pos= yypos240; G->thunkpos= yythunkpos240; if (!yy_StrongUl(G)) { goto l236; }
}
l240:; goto l235;
l236:; G->pos= yypos236; G->thunkpos= yythunkpos236;
} if (!yymatchChar(G, '_')) goto l233; yyText(G, G->begin, G->end); if (!(YY_END)) goto l233; yyDo(G, yy_1_EmphUl, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "EmphUl", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l233:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "EmphUl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_EmphStar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "EmphStar")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l243; if (!yy_LocMarker(G)) { goto l243; } yyDo(G, yySet, -1, 0); if (!yymatchChar(G, '*')) goto l243;
{ int yypos244= G->pos, yythunkpos244= G->thunkpos; if (!yy_Whitespace(G)) { goto l244; } goto l243;
l244:; G->pos= yypos244; G->thunkpos= yythunkpos244;
}
{ int yypos247= G->pos, yythunkpos247= G->thunkpos;
{ int yypos249= G->pos, yythunkpos249= G->thunkpos; if (!yymatchChar(G, '*')) goto l249; goto l248;
l249:; G->pos= yypos249; G->thunkpos= yythunkpos249;
} if (!yy_Inline(G)) { goto l248; } goto l247;
l248:; G->pos= yypos247; G->thunkpos= yythunkpos247; if (!yy_StrongStar(G)) { goto l243; }
}
l247:;
l245:;
{ int yypos246= G->pos, yythunkpos246= G->thunkpos;
{ int yypos250= G->pos, yythunkpos250= G->thunkpos;
{ int yypos252= G->pos, yythunkpos252= G->thunkpos; if (!yymatchChar(G, '*')) goto l252; goto l251;
l252:; G->pos= yypos252; G->thunkpos= yythunkpos252;
} if (!yy_Inline(G)) { goto l251; } goto l250;
l251:; G->pos= yypos250; G->thunkpos= yythunkpos250; if (!yy_StrongStar(G)) { goto l246; }
}
l250:; goto l245;
l246:; G->pos= yypos246; G->thunkpos= yythunkpos246;
} if (!yymatchChar(G, '*')) goto l243; yyText(G, G->begin, G->end); if (!(YY_END)) goto l243; yyDo(G, yy_1_EmphStar, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "EmphStar", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l243:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "EmphStar", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_StarLine(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "StarLine"));
{ int yypos254= G->pos, yythunkpos254= G->thunkpos; if (!yymatchString(G, "****")) goto l255;
l256:;
{ int yypos257= G->pos, yythunkpos257= G->thunkpos; if (!yymatchChar(G, '*')) goto l257; goto l256;
l257:; G->pos= yypos257; G->thunkpos= yythunkpos257;
} goto l254;
l255:; G->pos= yypos254; G->thunkpos= yythunkpos254; if (!yy_Spacechar(G)) { goto l253; } if (!yymatchChar(G, '*')) goto l253;
l258:;
{ int yypos259= G->pos, yythunkpos259= G->thunkpos; if (!yymatchChar(G, '*')) goto l259; goto l258;
l259:; G->pos= yypos259; G->thunkpos= yythunkpos259;
}
{ int yypos260= G->pos, yythunkpos260= G->thunkpos; if (!yy_Spacechar(G)) { goto l253; } G->pos= yypos260; G->thunkpos= yythunkpos260;
}
}
l254:;
yyprintf((stderr, " ok %s @ %s\n", "StarLine", G->buf+G->pos));
return 1;
l253:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "StarLine", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_UlLine(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "UlLine"));
{ int yypos262= G->pos, yythunkpos262= G->thunkpos; if (!yymatchString(G, "____")) goto l263;
l264:;
{ int yypos265= G->pos, yythunkpos265= G->thunkpos; if (!yymatchChar(G, '_')) goto l265; goto l264;
l265:; G->pos= yypos265; G->thunkpos= yythunkpos265;
} goto l262;
l263:; G->pos= yypos262; G->thunkpos= yythunkpos262; if (!yy_Spacechar(G)) { goto l261; } if (!yymatchChar(G, '_')) goto l261;
l266:;
{ int yypos267= G->pos, yythunkpos267= G->thunkpos; if (!yymatchChar(G, '_')) goto l267; goto l266;
l267:; G->pos= yypos267; G->thunkpos= yythunkpos267;
}
{ int yypos268= G->pos, yythunkpos268= G->thunkpos; if (!yy_Spacechar(G)) { goto l261; } G->pos= yypos268; G->thunkpos= yythunkpos268;
}
}
l262:;
yyprintf((stderr, " ok %s @ %s\n", "UlLine", G->buf+G->pos));
return 1;
l261:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "UlLine", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_SpecialChar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "SpecialChar"));
{ int yypos270= G->pos, yythunkpos270= G->thunkpos; if (!yymatchChar(G, '~')) goto l271; goto l270;
l271:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '*')) goto l272; goto l270;
l272:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '_')) goto l273; goto l270;
l273:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '`')) goto l274; goto l270;
l274:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '&')) goto l275; goto l270;
l275:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '[')) goto l276; goto l270;
l276:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, ']')) goto l277; goto l270;
l277:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '(')) goto l278; goto l270;
l278:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, ')')) goto l279; goto l270;
l279:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '<')) goto l280; goto l270;
l280:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '!')) goto l281; goto l270;
l281:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '#')) goto l282; goto l270;
l282:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '\\')) goto l283; goto l270;
l283:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '\'')) goto l284; goto l270;
l284:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yymatchChar(G, '"')) goto l285; goto l270;
l285:; G->pos= yypos270; G->thunkpos= yythunkpos270; if (!yy_ExtendedSpecialChar(G)) { goto l269; }
}
l270:;
yyprintf((stderr, " ok %s @ %s\n", "SpecialChar", G->buf+G->pos));
return 1;
l269:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "SpecialChar", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Eof(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Eof"));
{ int yypos287= G->pos, yythunkpos287= G->thunkpos; if (!yymatchDot(G)) goto l287; goto l286;
l287:; G->pos= yypos287; G->thunkpos= yythunkpos287;
}
yyprintf((stderr, " ok %s @ %s\n", "Eof", G->buf+G->pos));
return 1;
l286:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Eof", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_NormalEndline(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "NormalEndline")); if (!yy_Sp(G)) { goto l288; } if (!yy_Newline(G)) { goto l288; }
{ int yypos289= G->pos, yythunkpos289= G->thunkpos; if (!yy_BlankLine(G)) { goto l289; } goto l288;
l289:; G->pos= yypos289; G->thunkpos= yythunkpos289;
}
{ int yypos290= G->pos, yythunkpos290= G->thunkpos; if (!yymatchChar(G, '>')) goto l290; goto l288;
l290:; G->pos= yypos290; G->thunkpos= yythunkpos290;
}
{ int yypos291= G->pos, yythunkpos291= G->thunkpos; if (!yy_AtxStart(G)) { goto l291; } goto l288;
l291:; G->pos= yypos291; G->thunkpos= yythunkpos291;
}
{ int yypos292= G->pos, yythunkpos292= G->thunkpos; if (!yy_Line(G)) { goto l292; }
{ int yypos293= G->pos, yythunkpos293= G->thunkpos; if (!yymatchChar(G, '=')) goto l294;
l295:;
{ int yypos296= G->pos, yythunkpos296= G->thunkpos; if (!yymatchChar(G, '=')) goto l296; goto l295;
l296:; G->pos= yypos296; G->thunkpos= yythunkpos296;
} goto l293;
l294:; G->pos= yypos293; G->thunkpos= yythunkpos293; if (!yymatchChar(G, '-')) goto l292;
l297:;
{ int yypos298= G->pos, yythunkpos298= G->thunkpos; if (!yymatchChar(G, '-')) goto l298; goto l297;
l298:; G->pos= yypos298; G->thunkpos= yythunkpos298;
}
}
l293:; if (!yy_Newline(G)) { goto l292; } goto l288;
l292:; G->pos= yypos292; G->thunkpos= yythunkpos292;
}
yyprintf((stderr, " ok %s @ %s\n", "NormalEndline", G->buf+G->pos));
return 1;
l288:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "NormalEndline", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_TerminalEndline(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "TerminalEndline")); if (!yy_Sp(G)) { goto l299; } if (!yy_Newline(G)) { goto l299; } if (!yy_Eof(G)) { goto l299; }
yyprintf((stderr, " ok %s @ %s\n", "TerminalEndline", G->buf+G->pos));
return 1;
l299:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "TerminalEndline", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_LineBreak(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "LineBreak")); if (!yymatchString(G, " ")) goto l300; if (!yy_NormalEndline(G)) { goto l300; }
yyprintf((stderr, " ok %s @ %s\n", "LineBreak", G->buf+G->pos));
return 1;
l300:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "LineBreak", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_CharEntity(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "CharEntity")); if (!yymatchChar(G, '&')) goto l301; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l301;
l302:;
{ int yypos303= G->pos, yythunkpos303= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l303; goto l302;
l303:; G->pos= yypos303; G->thunkpos= yythunkpos303;
} if (!yymatchChar(G, ';')) goto l301;
yyprintf((stderr, " ok %s @ %s\n", "CharEntity", G->buf+G->pos));
return 1;
l301:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "CharEntity", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_DecEntity(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "DecEntity")); if (!yymatchChar(G, '&')) goto l304; if (!yymatchChar(G, '#')) goto l304; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l304;
l305:;
{ int yypos306= G->pos, yythunkpos306= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l306; goto l305;
l306:; G->pos= yypos306; G->thunkpos= yythunkpos306;
} if (!yymatchChar(G, ';')) goto l304;
yyprintf((stderr, " ok %s @ %s\n", "DecEntity", G->buf+G->pos));
return 1;
l304:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "DecEntity", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HexEntity(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HexEntity")); if (!yymatchChar(G, '&')) goto l307; if (!yymatchChar(G, '#')) goto l307; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l307; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\176\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l307;
l308:;
{ int yypos309= G->pos, yythunkpos309= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\176\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l309; goto l308;
l309:; G->pos= yypos309; G->thunkpos= yythunkpos309;
} if (!yymatchChar(G, ';')) goto l307;
yyprintf((stderr, " ok %s @ %s\n", "HexEntity", G->buf+G->pos));
return 1;
l307:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HexEntity", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Alphanumeric(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Alphanumeric"));
{ int yypos311= G->pos, yythunkpos311= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l312; goto l311;
l312:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\200")) goto l313; goto l311;
l313:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\201")) goto l314; goto l311;
l314:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\202")) goto l315; goto l311;
l315:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\203")) goto l316; goto l311;
l316:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\204")) goto l317; goto l311;
l317:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\205")) goto l318; goto l311;
l318:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\206")) goto l319; goto l311;
l319:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\207")) goto l320; goto l311;
l320:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\210")) goto l321; goto l311;
l321:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\211")) goto l322; goto l311;
l322:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\212")) goto l323; goto l311;
l323:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\213")) goto l324; goto l311;
l324:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\214")) goto l325; goto l311;
l325:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\215")) goto l326; goto l311;
l326:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\216")) goto l327; goto l311;
l327:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\217")) goto l328; goto l311;
l328:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\220")) goto l329; goto l311;
l329:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\221")) goto l330; goto l311;
l330:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\222")) goto l331; goto l311;
l331:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\223")) goto l332; goto l311;
l332:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\224")) goto l333; goto l311;
l333:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\225")) goto l334; goto l311;
l334:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\226")) goto l335; goto l311;
l335:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\227")) goto l336; goto l311;
l336:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\230")) goto l337; goto l311;
l337:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\231")) goto l338; goto l311;
l338:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\232")) goto l339; goto l311;
l339:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\233")) goto l340; goto l311;
l340:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\234")) goto l341; goto l311;
l341:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\235")) goto l342; goto l311;
l342:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\236")) goto l343; goto l311;
l343:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\237")) goto l344; goto l311;
l344:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\240")) goto l345; goto l311;
l345:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\241")) goto l346; goto l311;
l346:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\242")) goto l347; goto l311;
l347:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\243")) goto l348; goto l311;
l348:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\244")) goto l349; goto l311;
l349:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\245")) goto l350; goto l311;
l350:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\246")) goto l351; goto l311;
l351:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\247")) goto l352; goto l311;
l352:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\250")) goto l353; goto l311;
l353:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\251")) goto l354; goto l311;
l354:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\252")) goto l355; goto l311;
l355:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\253")) goto l356; goto l311;
l356:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\254")) goto l357; goto l311;
l357:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\255")) goto l358; goto l311;
l358:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\256")) goto l359; goto l311;
l359:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\257")) goto l360; goto l311;
l360:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\260")) goto l361; goto l311;
l361:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\261")) goto l362; goto l311;
l362:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\262")) goto l363; goto l311;
l363:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\263")) goto l364; goto l311;
l364:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\264")) goto l365; goto l311;
l365:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\265")) goto l366; goto l311;
l366:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\266")) goto l367; goto l311;
l367:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\267")) goto l368; goto l311;
l368:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\270")) goto l369; goto l311;
l369:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\271")) goto l370; goto l311;
l370:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\272")) goto l371; goto l311;
l371:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\273")) goto l372; goto l311;
l372:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\274")) goto l373; goto l311;
l373:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\275")) goto l374; goto l311;
l374:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\276")) goto l375; goto l311;
l375:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\277")) goto l376; goto l311;
l376:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\300")) goto l377; goto l311;
l377:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\301")) goto l378; goto l311;
l378:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\302")) goto l379; goto l311;
l379:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\303")) goto l380; goto l311;
l380:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\304")) goto l381; goto l311;
l381:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\305")) goto l382; goto l311;
l382:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\306")) goto l383; goto l311;
l383:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\307")) goto l384; goto l311;
l384:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\310")) goto l385; goto l311;
l385:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\311")) goto l386; goto l311;
l386:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\312")) goto l387; goto l311;
l387:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\313")) goto l388; goto l311;
l388:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\314")) goto l389; goto l311;
l389:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\315")) goto l390; goto l311;
l390:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\316")) goto l391; goto l311;
l391:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\317")) goto l392; goto l311;
l392:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\320")) goto l393; goto l311;
l393:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\321")) goto l394; goto l311;
l394:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\322")) goto l395; goto l311;
l395:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\323")) goto l396; goto l311;
l396:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\324")) goto l397; goto l311;
l397:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\325")) goto l398; goto l311;
l398:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\326")) goto l399; goto l311;
l399:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\327")) goto l400; goto l311;
l400:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\330")) goto l401; goto l311;
l401:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\331")) goto l402; goto l311;
l402:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\332")) goto l403; goto l311;
l403:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\333")) goto l404; goto l311;
l404:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\334")) goto l405; goto l311;
l405:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\335")) goto l406; goto l311;
l406:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\336")) goto l407; goto l311;
l407:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\337")) goto l408; goto l311;
l408:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\340")) goto l409; goto l311;
l409:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\341")) goto l410; goto l311;
l410:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\342")) goto l411; goto l311;
l411:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\343")) goto l412; goto l311;
l412:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\344")) goto l413; goto l311;
l413:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\345")) goto l414; goto l311;
l414:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\346")) goto l415; goto l311;
l415:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\347")) goto l416; goto l311;
l416:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\350")) goto l417; goto l311;
l417:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\351")) goto l418; goto l311;
l418:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\352")) goto l419; goto l311;
l419:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\353")) goto l420; goto l311;
l420:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\354")) goto l421; goto l311;
l421:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\355")) goto l422; goto l311;
l422:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\356")) goto l423; goto l311;
l423:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\357")) goto l424; goto l311;
l424:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\360")) goto l425; goto l311;
l425:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\361")) goto l426; goto l311;
l426:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\362")) goto l427; goto l311;
l427:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\363")) goto l428; goto l311;
l428:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\364")) goto l429; goto l311;
l429:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\365")) goto l430; goto l311;
l430:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\366")) goto l431; goto l311;
l431:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\367")) goto l432; goto l311;
l432:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\370")) goto l433; goto l311;
l433:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\371")) goto l434; goto l311;
l434:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\372")) goto l435; goto l311;
l435:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\373")) goto l436; goto l311;
l436:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\374")) goto l437; goto l311;
l437:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\375")) goto l438; goto l311;
l438:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\376")) goto l439; goto l311;
l439:; G->pos= yypos311; G->thunkpos= yythunkpos311; if (!yymatchString(G, "\377")) goto l310;
}
l311:;
yyprintf((stderr, " ok %s @ %s\n", "Alphanumeric", G->buf+G->pos));
return 1;
l310:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Alphanumeric", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_NormalChar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "NormalChar"));
{ int yypos441= G->pos, yythunkpos441= G->thunkpos;
{ int yypos442= G->pos, yythunkpos442= G->thunkpos; if (!yy_SpecialChar(G)) { goto l443; } goto l442;
l443:; G->pos= yypos442; G->thunkpos= yythunkpos442; if (!yy_Spacechar(G)) { goto l444; } goto l442;
l444:; G->pos= yypos442; G->thunkpos= yythunkpos442; if (!yy_Newline(G)) { goto l441; }
}
l442:; goto l440;
l441:; G->pos= yypos441; G->thunkpos= yythunkpos441;
} if (!yymatchDot(G)) goto l440;
yyprintf((stderr, " ok %s @ %s\n", "NormalChar", G->buf+G->pos));
return 1;
l440:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "NormalChar", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Symbol(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Symbol")); if (!yy_SpecialChar(G)) { goto l445; }
yyprintf((stderr, " ok %s @ %s\n", "Symbol", G->buf+G->pos));
return 1;
l445:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Symbol", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_EscapedChar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "EscapedChar")); if (!yymatchChar(G, '\\')) goto l446;
{ int yypos447= G->pos, yythunkpos447= G->thunkpos; if (!yy_Newline(G)) { goto l447; } goto l446;
l447:; G->pos= yypos447; G->thunkpos= yythunkpos447;
} if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\012\157\000\120\000\000\000\270\001\000\000\070\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l446;
yyprintf((stderr, " ok %s @ %s\n", "EscapedChar", G->buf+G->pos));
return 1;
l446:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "EscapedChar", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Entity(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "Entity")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l448; if (!yy_LocMarker(G)) { goto l448; } yyDo(G, yySet, -1, 0);
{ int yypos449= G->pos, yythunkpos449= G->thunkpos; if (!yy_HexEntity(G)) { goto l450; } goto l449;
l450:; G->pos= yypos449; G->thunkpos= yythunkpos449; if (!yy_DecEntity(G)) { goto l451; } goto l449;
l451:; G->pos= yypos449; G->thunkpos= yythunkpos449; if (!yy_CharEntity(G)) { goto l448; }
}
l449:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l448; yyDo(G, yy_1_Entity, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Entity", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l448:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Entity", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_RawHtml(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "RawHtml")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l452; if (!yy_LocMarker(G)) { goto l452; } yyDo(G, yySet, -1, 0);
{ int yypos453= G->pos, yythunkpos453= G->thunkpos; if (!yy_HtmlComment(G)) { goto l454; } goto l453;
l454:; G->pos= yypos453; G->thunkpos= yythunkpos453; if (!yy_HtmlBlockScript(G)) { goto l455; } goto l453;
l455:; G->pos= yypos453; G->thunkpos= yythunkpos453; if (!yy_HtmlTag(G)) { goto l452; }
}
l453:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l452; yyDo(G, yy_1_RawHtml, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "RawHtml", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l452:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "RawHtml", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Mark(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
yyprintf((stderr, "%s\n", "Mark")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MARK) )) goto l456; if (!yy_MarkTagOpen(G)) { goto l456; } yyDo(G, yySet, -2, 0); if (!yy_MarkTagText(G)) { goto l456; } if (!yy_MarkTagClose(G)) { goto l456; } yyDo(G, yySet, -1, 0); yyDo(G, yy_1_Mark, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Mark", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
return 1;
l456:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Mark", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Code(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "Code")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l457;
{ int yypos458= G->pos, yythunkpos458= G->thunkpos; if (!yy_Ticks1(G)) { goto l459; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l459; }
{ int yypos462= G->pos, yythunkpos462= G->thunkpos;
{ int yypos466= G->pos, yythunkpos466= G->thunkpos; if (!yymatchChar(G, '`')) goto l466; goto l463;
l466:; G->pos= yypos466; G->thunkpos= yythunkpos466;
} if (!yy_Nonspacechar(G)) { goto l463; }
l464:;
{ int yypos465= G->pos, yythunkpos465= G->thunkpos;
{ int yypos467= G->pos, yythunkpos467= G->thunkpos; if (!yymatchChar(G, '`')) goto l467; goto l465;
l467:; G->pos= yypos467; G->thunkpos= yythunkpos467;
} if (!yy_Nonspacechar(G)) { goto l465; } goto l464;
l465:; G->pos= yypos465; G->thunkpos= yythunkpos465;
} goto l462;
l463:; G->pos= yypos462; G->thunkpos= yythunkpos462;
{ int yypos469= G->pos, yythunkpos469= G->thunkpos; if (!yy_Ticks1(G)) { goto l469; } goto l468;
l469:; G->pos= yypos469; G->thunkpos= yythunkpos469;
} if (!yymatchChar(G, '`')) goto l468;
l470:;
{ int yypos471= G->pos, yythunkpos471= G->thunkpos; if (!yymatchChar(G, '`')) goto l471; goto l470;
l471:; G->pos= yypos471; G->thunkpos= yythunkpos471;
} goto l462;
l468:; G->pos= yypos462; G->thunkpos= yythunkpos462;
{ int yypos472= G->pos, yythunkpos472= G->thunkpos; if (!yy_Sp(G)) { goto l472; } if (!yy_Ticks1(G)) { goto l472; } goto l459;
l472:; G->pos= yypos472; G->thunkpos= yythunkpos472;
}
{ int yypos473= G->pos, yythunkpos473= G->thunkpos; if (!yy_Spacechar(G)) { goto l474; } goto l473;
l474:; G->pos= yypos473; G->thunkpos= yythunkpos473; if (!yy_Newline(G)) { goto l459; }
{ int yypos475= G->pos, yythunkpos475= G->thunkpos; if (!yy_BlankLine(G)) { goto l475; } goto l459;
l475:; G->pos= yypos475; G->thunkpos= yythunkpos475;
}
}
l473:;
}
l462:;
l460:;
{ int yypos461= G->pos, yythunkpos461= G->thunkpos;
{ int yypos476= G->pos, yythunkpos476= G->thunkpos;
{ int yypos480= G->pos, yythunkpos480= G->thunkpos; if (!yymatchChar(G, '`')) goto l480; goto l477;
l480:; G->pos= yypos480; G->thunkpos= yythunkpos480;
} if (!yy_Nonspacechar(G)) { goto l477; }
l478:;
{ int yypos479= G->pos, yythunkpos479= G->thunkpos;
{ int yypos481= G->pos, yythunkpos481= G->thunkpos; if (!yymatchChar(G, '`')) goto l481; goto l479;
l481:; G->pos= yypos481; G->thunkpos= yythunkpos481;
} if (!yy_Nonspacechar(G)) { goto l479; } goto l478;
l479:; G->pos= yypos479; G->thunkpos= yythunkpos479;
} goto l476;
l477:; G->pos= yypos476; G->thunkpos= yythunkpos476;
{ int yypos483= G->pos, yythunkpos483= G->thunkpos; if (!yy_Ticks1(G)) { goto l483; } goto l482;
l483:; G->pos= yypos483; G->thunkpos= yythunkpos483;
} if (!yymatchChar(G, '`')) goto l482;
l484:;
{ int yypos485= G->pos, yythunkpos485= G->thunkpos; if (!yymatchChar(G, '`')) goto l485; goto l484;
l485:; G->pos= yypos485; G->thunkpos= yythunkpos485;
} goto l476;
l482:; G->pos= yypos476; G->thunkpos= yythunkpos476;
{ int yypos486= G->pos, yythunkpos486= G->thunkpos; if (!yy_Sp(G)) { goto l486; } if (!yy_Ticks1(G)) { goto l486; } goto l461;
l486:; G->pos= yypos486; G->thunkpos= yythunkpos486;
}
{ int yypos487= G->pos, yythunkpos487= G->thunkpos; if (!yy_Spacechar(G)) { goto l488; } goto l487;
l488:; G->pos= yypos487; G->thunkpos= yythunkpos487; if (!yy_Newline(G)) { goto l461; }
{ int yypos489= G->pos, yythunkpos489= G->thunkpos; if (!yy_BlankLine(G)) { goto l489; } goto l461;
l489:; G->pos= yypos489; G->thunkpos= yythunkpos489;
}
}
l487:;
}
l476:; goto l460;
l461:; G->pos= yypos461; G->thunkpos= yythunkpos461;
} if (!yy_Sp(G)) { goto l459; } if (!yy_Ticks1(G)) { goto l459; } goto l458;
l459:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks2(G)) { goto l490; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l490; }
{ int yypos493= G->pos, yythunkpos493= G->thunkpos;
{ int yypos497= G->pos, yythunkpos497= G->thunkpos; if (!yymatchChar(G, '`')) goto l497; goto l494;
l497:; G->pos= yypos497; G->thunkpos= yythunkpos497;
} if (!yy_Nonspacechar(G)) { goto l494; }
l495:;
{ int yypos496= G->pos, yythunkpos496= G->thunkpos;
{ int yypos498= G->pos, yythunkpos498= G->thunkpos; if (!yymatchChar(G, '`')) goto l498; goto l496;
l498:; G->pos= yypos498; G->thunkpos= yythunkpos498;
} if (!yy_Nonspacechar(G)) { goto l496; } goto l495;
l496:; G->pos= yypos496; G->thunkpos= yythunkpos496;
} goto l493;
l494:; G->pos= yypos493; G->thunkpos= yythunkpos493;
{ int yypos500= G->pos, yythunkpos500= G->thunkpos; if (!yy_Ticks2(G)) { goto l500; } goto l499;
l500:; G->pos= yypos500; G->thunkpos= yythunkpos500;
} if (!yymatchChar(G, '`')) goto l499;
l501:;
{ int yypos502= G->pos, yythunkpos502= G->thunkpos; if (!yymatchChar(G, '`')) goto l502; goto l501;
l502:; G->pos= yypos502; G->thunkpos= yythunkpos502;
} goto l493;
l499:; G->pos= yypos493; G->thunkpos= yythunkpos493;
{ int yypos503= G->pos, yythunkpos503= G->thunkpos; if (!yy_Sp(G)) { goto l503; } if (!yy_Ticks2(G)) { goto l503; } goto l490;
l503:; G->pos= yypos503; G->thunkpos= yythunkpos503;
}
{ int yypos504= G->pos, yythunkpos504= G->thunkpos; if (!yy_Spacechar(G)) { goto l505; } goto l504;
l505:; G->pos= yypos504; G->thunkpos= yythunkpos504; if (!yy_Newline(G)) { goto l490; }
{ int yypos506= G->pos, yythunkpos506= G->thunkpos; if (!yy_BlankLine(G)) { goto l506; } goto l490;
l506:; G->pos= yypos506; G->thunkpos= yythunkpos506;
}
}
l504:;
}
l493:;
l491:;
{ int yypos492= G->pos, yythunkpos492= G->thunkpos;
{ int yypos507= G->pos, yythunkpos507= G->thunkpos;
{ int yypos511= G->pos, yythunkpos511= G->thunkpos; if (!yymatchChar(G, '`')) goto l511; goto l508;
l511:; G->pos= yypos511; G->thunkpos= yythunkpos511;
} if (!yy_Nonspacechar(G)) { goto l508; }
l509:;
{ int yypos510= G->pos, yythunkpos510= G->thunkpos;
{ int yypos512= G->pos, yythunkpos512= G->thunkpos; if (!yymatchChar(G, '`')) goto l512; goto l510;
l512:; G->pos= yypos512; G->thunkpos= yythunkpos512;
} if (!yy_Nonspacechar(G)) { goto l510; } goto l509;
l510:; G->pos= yypos510; G->thunkpos= yythunkpos510;
} goto l507;
l508:; G->pos= yypos507; G->thunkpos= yythunkpos507;
{ int yypos514= G->pos, yythunkpos514= G->thunkpos; if (!yy_Ticks2(G)) { goto l514; } goto l513;
l514:; G->pos= yypos514; G->thunkpos= yythunkpos514;
} if (!yymatchChar(G, '`')) goto l513;
l515:;
{ int yypos516= G->pos, yythunkpos516= G->thunkpos; if (!yymatchChar(G, '`')) goto l516; goto l515;
l516:; G->pos= yypos516; G->thunkpos= yythunkpos516;
} goto l507;
l513:; G->pos= yypos507; G->thunkpos= yythunkpos507;
{ int yypos517= G->pos, yythunkpos517= G->thunkpos; if (!yy_Sp(G)) { goto l517; } if (!yy_Ticks2(G)) { goto l517; } goto l492;
l517:; G->pos= yypos517; G->thunkpos= yythunkpos517;
}
{ int yypos518= G->pos, yythunkpos518= G->thunkpos; if (!yy_Spacechar(G)) { goto l519; } goto l518;
l519:; G->pos= yypos518; G->thunkpos= yythunkpos518; if (!yy_Newline(G)) { goto l492; }
{ int yypos520= G->pos, yythunkpos520= G->thunkpos; if (!yy_BlankLine(G)) { goto l520; } goto l492;
l520:; G->pos= yypos520; G->thunkpos= yythunkpos520;
}
}
l518:;
}
l507:; goto l491;
l492:; G->pos= yypos492; G->thunkpos= yythunkpos492;
} if (!yy_Sp(G)) { goto l490; } if (!yy_Ticks2(G)) { goto l490; } goto l458;
l490:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks3(G)) { goto l521; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l521; }
{ int yypos524= G->pos, yythunkpos524= G->thunkpos;
{ int yypos528= G->pos, yythunkpos528= G->thunkpos; if (!yymatchChar(G, '`')) goto l528; goto l525;
l528:; G->pos= yypos528; G->thunkpos= yythunkpos528;
} if (!yy_Nonspacechar(G)) { goto l525; }
l526:;
{ int yypos527= G->pos, yythunkpos527= G->thunkpos;
{ int yypos529= G->pos, yythunkpos529= G->thunkpos; if (!yymatchChar(G, '`')) goto l529; goto l527;
l529:; G->pos= yypos529; G->thunkpos= yythunkpos529;
} if (!yy_Nonspacechar(G)) { goto l527; } goto l526;
l527:; G->pos= yypos527; G->thunkpos= yythunkpos527;
} goto l524;
l525:; G->pos= yypos524; G->thunkpos= yythunkpos524;
{ int yypos531= G->pos, yythunkpos531= G->thunkpos; if (!yy_Ticks3(G)) { goto l531; } goto l530;
l531:; G->pos= yypos531; G->thunkpos= yythunkpos531;
} if (!yymatchChar(G, '`')) goto l530;
l532:;
{ int yypos533= G->pos, yythunkpos533= G->thunkpos; if (!yymatchChar(G, '`')) goto l533; goto l532;
l533:; G->pos= yypos533; G->thunkpos= yythunkpos533;
} goto l524;
l530:; G->pos= yypos524; G->thunkpos= yythunkpos524;
{ int yypos534= G->pos, yythunkpos534= G->thunkpos; if (!yy_Sp(G)) { goto l534; } if (!yy_Ticks3(G)) { goto l534; } goto l521;
l534:; G->pos= yypos534; G->thunkpos= yythunkpos534;
}
{ int yypos535= G->pos, yythunkpos535= G->thunkpos; if (!yy_Spacechar(G)) { goto l536; } goto l535;
l536:; G->pos= yypos535; G->thunkpos= yythunkpos535; if (!yy_Newline(G)) { goto l521; }
{ int yypos537= G->pos, yythunkpos537= G->thunkpos; if (!yy_BlankLine(G)) { goto l537; } goto l521;
l537:; G->pos= yypos537; G->thunkpos= yythunkpos537;
}
}
l535:;
}
l524:;
l522:;
{ int yypos523= G->pos, yythunkpos523= G->thunkpos;
{ int yypos538= G->pos, yythunkpos538= G->thunkpos;
{ int yypos542= G->pos, yythunkpos542= G->thunkpos; if (!yymatchChar(G, '`')) goto l542; goto l539;
l542:; G->pos= yypos542; G->thunkpos= yythunkpos542;
} if (!yy_Nonspacechar(G)) { goto l539; }
l540:;
{ int yypos541= G->pos, yythunkpos541= G->thunkpos;
{ int yypos543= G->pos, yythunkpos543= G->thunkpos; if (!yymatchChar(G, '`')) goto l543; goto l541;
l543:; G->pos= yypos543; G->thunkpos= yythunkpos543;
} if (!yy_Nonspacechar(G)) { goto l541; } goto l540;
l541:; G->pos= yypos541; G->thunkpos= yythunkpos541;
} goto l538;
l539:; G->pos= yypos538; G->thunkpos= yythunkpos538;
{ int yypos545= G->pos, yythunkpos545= G->thunkpos; if (!yy_Ticks3(G)) { goto l545; } goto l544;
l545:; G->pos= yypos545; G->thunkpos= yythunkpos545;
} if (!yymatchChar(G, '`')) goto l544;
l546:;
{ int yypos547= G->pos, yythunkpos547= G->thunkpos; if (!yymatchChar(G, '`')) goto l547; goto l546;
l547:; G->pos= yypos547; G->thunkpos= yythunkpos547;
} goto l538;
l544:; G->pos= yypos538; G->thunkpos= yythunkpos538;
{ int yypos548= G->pos, yythunkpos548= G->thunkpos; if (!yy_Sp(G)) { goto l548; } if (!yy_Ticks3(G)) { goto l548; } goto l523;
l548:; G->pos= yypos548; G->thunkpos= yythunkpos548;
}
{ int yypos549= G->pos, yythunkpos549= G->thunkpos; if (!yy_Spacechar(G)) { goto l550; } goto l549;
l550:; G->pos= yypos549; G->thunkpos= yythunkpos549; if (!yy_Newline(G)) { goto l523; }
{ int yypos551= G->pos, yythunkpos551= G->thunkpos; if (!yy_BlankLine(G)) { goto l551; } goto l523;
l551:; G->pos= yypos551; G->thunkpos= yythunkpos551;
}
}
l549:;
}
l538:; goto l522;
l523:; G->pos= yypos523; G->thunkpos= yythunkpos523;
} if (!yy_Sp(G)) { goto l521; } if (!yy_Ticks3(G)) { goto l521; } goto l458;
l521:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks4(G)) { goto l552; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l552; }
{ int yypos555= G->pos, yythunkpos555= G->thunkpos;
{ int yypos559= G->pos, yythunkpos559= G->thunkpos; if (!yymatchChar(G, '`')) goto l559; goto l556;
l559:; G->pos= yypos559; G->thunkpos= yythunkpos559;
} if (!yy_Nonspacechar(G)) { goto l556; }
l557:;
{ int yypos558= G->pos, yythunkpos558= G->thunkpos;
{ int yypos560= G->pos, yythunkpos560= G->thunkpos; if (!yymatchChar(G, '`')) goto l560; goto l558;
l560:; G->pos= yypos560; G->thunkpos= yythunkpos560;
} if (!yy_Nonspacechar(G)) { goto l558; } goto l557;
l558:; G->pos= yypos558; G->thunkpos= yythunkpos558;
} goto l555;
l556:; G->pos= yypos555; G->thunkpos= yythunkpos555;
{ int yypos562= G->pos, yythunkpos562= G->thunkpos; if (!yy_Ticks4(G)) { goto l562; } goto l561;
l562:; G->pos= yypos562; G->thunkpos= yythunkpos562;
} if (!yymatchChar(G, '`')) goto l561;
l563:;
{ int yypos564= G->pos, yythunkpos564= G->thunkpos; if (!yymatchChar(G, '`')) goto l564; goto l563;
l564:; G->pos= yypos564; G->thunkpos= yythunkpos564;
} goto l555;
l561:; G->pos= yypos555; G->thunkpos= yythunkpos555;
{ int yypos565= G->pos, yythunkpos565= G->thunkpos; if (!yy_Sp(G)) { goto l565; } if (!yy_Ticks4(G)) { goto l565; } goto l552;
l565:; G->pos= yypos565; G->thunkpos= yythunkpos565;
}
{ int yypos566= G->pos, yythunkpos566= G->thunkpos; if (!yy_Spacechar(G)) { goto l567; } goto l566;
l567:; G->pos= yypos566; G->thunkpos= yythunkpos566; if (!yy_Newline(G)) { goto l552; }
{ int yypos568= G->pos, yythunkpos568= G->thunkpos; if (!yy_BlankLine(G)) { goto l568; } goto l552;
l568:; G->pos= yypos568; G->thunkpos= yythunkpos568;
}
}
l566:;
}
l555:;
l553:;
{ int yypos554= G->pos, yythunkpos554= G->thunkpos;
{ int yypos569= G->pos, yythunkpos569= G->thunkpos;
{ int yypos573= G->pos, yythunkpos573= G->thunkpos; if (!yymatchChar(G, '`')) goto l573; goto l570;
l573:; G->pos= yypos573; G->thunkpos= yythunkpos573;
} if (!yy_Nonspacechar(G)) { goto l570; }
l571:;
{ int yypos572= G->pos, yythunkpos572= G->thunkpos;
{ int yypos574= G->pos, yythunkpos574= G->thunkpos; if (!yymatchChar(G, '`')) goto l574; goto l572;
l574:; G->pos= yypos574; G->thunkpos= yythunkpos574;
} if (!yy_Nonspacechar(G)) { goto l572; } goto l571;
l572:; G->pos= yypos572; G->thunkpos= yythunkpos572;
} goto l569;
l570:; G->pos= yypos569; G->thunkpos= yythunkpos569;
{ int yypos576= G->pos, yythunkpos576= G->thunkpos; if (!yy_Ticks4(G)) { goto l576; } goto l575;
l576:; G->pos= yypos576; G->thunkpos= yythunkpos576;
} if (!yymatchChar(G, '`')) goto l575;
l577:;
{ int yypos578= G->pos, yythunkpos578= G->thunkpos; if (!yymatchChar(G, '`')) goto l578; goto l577;
l578:; G->pos= yypos578; G->thunkpos= yythunkpos578;
} goto l569;
l575:; G->pos= yypos569; G->thunkpos= yythunkpos569;
{ int yypos579= G->pos, yythunkpos579= G->thunkpos; if (!yy_Sp(G)) { goto l579; } if (!yy_Ticks4(G)) { goto l579; } goto l554;
l579:; G->pos= yypos579; G->thunkpos= yythunkpos579;
}
{ int yypos580= G->pos, yythunkpos580= G->thunkpos; if (!yy_Spacechar(G)) { goto l581; } goto l580;
l581:; G->pos= yypos580; G->thunkpos= yythunkpos580; if (!yy_Newline(G)) { goto l554; }
{ int yypos582= G->pos, yythunkpos582= G->thunkpos; if (!yy_BlankLine(G)) { goto l582; } goto l554;
l582:; G->pos= yypos582; G->thunkpos= yythunkpos582;
}
}
l580:;
}
l569:; goto l553;
l554:; G->pos= yypos554; G->thunkpos= yythunkpos554;
} if (!yy_Sp(G)) { goto l552; } if (!yy_Ticks4(G)) { goto l552; } goto l458;
l552:; G->pos= yypos458; G->thunkpos= yythunkpos458; if (!yy_Ticks5(G)) { goto l457; } yyDo(G, yySet, -1, 0); if (!yy_Sp(G)) { goto l457; }
{ int yypos585= G->pos, yythunkpos585= G->thunkpos;
{ int yypos589= G->pos, yythunkpos589= G->thunkpos; if (!yymatchChar(G, '`')) goto l589; goto l586;
l589:; G->pos= yypos589; G->thunkpos= yythunkpos589;
} if (!yy_Nonspacechar(G)) { goto l586; }
l587:;
{ int yypos588= G->pos, yythunkpos588= G->thunkpos;
{ int yypos590= G->pos, yythunkpos590= G->thunkpos; if (!yymatchChar(G, '`')) goto l590; goto l588;
l590:; G->pos= yypos590; G->thunkpos= yythunkpos590;
} if (!yy_Nonspacechar(G)) { goto l588; } goto l587;
l588:; G->pos= yypos588; G->thunkpos= yythunkpos588;
} goto l585;
l586:; G->pos= yypos585; G->thunkpos= yythunkpos585;
{ int yypos592= G->pos, yythunkpos592= G->thunkpos; if (!yy_Ticks5(G)) { goto l592; } goto l591;
l592:; G->pos= yypos592; G->thunkpos= yythunkpos592;
} if (!yymatchChar(G, '`')) goto l591;
l593:;
{ int yypos594= G->pos, yythunkpos594= G->thunkpos; if (!yymatchChar(G, '`')) goto l594; goto l593;
l594:; G->pos= yypos594; G->thunkpos= yythunkpos594;
} goto l585;
l591:; G->pos= yypos585; G->thunkpos= yythunkpos585;
{ int yypos595= G->pos, yythunkpos595= G->thunkpos; if (!yy_Sp(G)) { goto l595; } if (!yy_Ticks5(G)) { goto l595; } goto l457;
l595:; G->pos= yypos595; G->thunkpos= yythunkpos595;
}
{ int yypos596= G->pos, yythunkpos596= G->thunkpos; if (!yy_Spacechar(G)) { goto l597; } goto l596;
l597:; G->pos= yypos596; G->thunkpos= yythunkpos596; if (!yy_Newline(G)) { goto l457; }
{ int yypos598= G->pos, yythunkpos598= G->thunkpos; if (!yy_BlankLine(G)) { goto l598; } goto l457;
l598:; G->pos= yypos598; G->thunkpos= yythunkpos598;
}
}
l596:;
}
l585:;
l583:;
{ int yypos584= G->pos, yythunkpos584= G->thunkpos;
{ int yypos599= G->pos, yythunkpos599= G->thunkpos;
{ int yypos603= G->pos, yythunkpos603= G->thunkpos; if (!yymatchChar(G, '`')) goto l603; goto l600;
l603:; G->pos= yypos603; G->thunkpos= yythunkpos603;
} if (!yy_Nonspacechar(G)) { goto l600; }
l601:;
{ int yypos602= G->pos, yythunkpos602= G->thunkpos;
{ int yypos604= G->pos, yythunkpos604= G->thunkpos; if (!yymatchChar(G, '`')) goto l604; goto l602;
l604:; G->pos= yypos604; G->thunkpos= yythunkpos604;
} if (!yy_Nonspacechar(G)) { goto l602; } goto l601;
l602:; G->pos= yypos602; G->thunkpos= yythunkpos602;
} goto l599;
l600:; G->pos= yypos599; G->thunkpos= yythunkpos599;
{ int yypos606= G->pos, yythunkpos606= G->thunkpos; if (!yy_Ticks5(G)) { goto l606; } goto l605;
l606:; G->pos= yypos606; G->thunkpos= yythunkpos606;
} if (!yymatchChar(G, '`')) goto l605;
l607:;
{ int yypos608= G->pos, yythunkpos608= G->thunkpos; if (!yymatchChar(G, '`')) goto l608; goto l607;
l608:; G->pos= yypos608; G->thunkpos= yythunkpos608;
} goto l599;
l605:; G->pos= yypos599; G->thunkpos= yythunkpos599;
{ int yypos609= G->pos, yythunkpos609= G->thunkpos; if (!yy_Sp(G)) { goto l609; } if (!yy_Ticks5(G)) { goto l609; } goto l584;
l609:; G->pos= yypos609; G->thunkpos= yythunkpos609;
}
{ int yypos610= G->pos, yythunkpos610= G->thunkpos; if (!yy_Spacechar(G)) { goto l611; } goto l610;
l611:; G->pos= yypos610; G->thunkpos= yythunkpos610; if (!yy_Newline(G)) { goto l584; }
{ int yypos612= G->pos, yythunkpos612= G->thunkpos; if (!yy_BlankLine(G)) { goto l612; } goto l584;
l612:; G->pos= yypos612; G->thunkpos= yythunkpos612;
}
}
l610:;
}
l599:; goto l583;
l584:; G->pos= yypos584; G->thunkpos= yythunkpos584;
} if (!yy_Sp(G)) { goto l457; } if (!yy_Ticks5(G)) { goto l457; }
}
l458:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l457; yyDo(G, yy_1_Code, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Code", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l457:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Code", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_InlineNote(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "InlineNote")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l613; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l613; if (!yy_LocMarker(G)) { goto l613; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "^[")) goto l613;
{ int yypos616= G->pos, yythunkpos616= G->thunkpos; if (!yymatchChar(G, ']')) goto l616; goto l613;
l616:; G->pos= yypos616; G->thunkpos= yythunkpos616;
} if (!yy_Inline(G)) { goto l613; }
l614:;
{ int yypos615= G->pos, yythunkpos615= G->thunkpos;
{ int yypos617= G->pos, yythunkpos617= G->thunkpos; if (!yymatchChar(G, ']')) goto l617; goto l615;
l617:; G->pos= yypos617; G->thunkpos= yythunkpos617;
} if (!yy_Inline(G)) { goto l615; } goto l614;
l615:; G->pos= yypos615; G->thunkpos= yythunkpos615;
} if (!yymatchChar(G, ']')) goto l613; yyText(G, G->begin, G->end); if (!(YY_END)) goto l613; yyDo(G, yy_1_InlineNote, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "InlineNote", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l613:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "InlineNote", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_NoteReference(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "NoteReference")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l618; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l618; if (!yy_RawNoteReference(G)) { goto l618; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l618; yyDo(G, yy_1_NoteReference, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "NoteReference", G->buf+G->pos));
return 1;
l618:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "NoteReference", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Link(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Link"));
{ int yypos620= G->pos, yythunkpos620= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l621; } goto l620;
l621:; G->pos= yypos620; G->thunkpos= yythunkpos620; if (!yy_ReferenceLink(G)) { goto l622; } goto l620;
l622:; G->pos= yypos620; G->thunkpos= yythunkpos620; if (!yy_AutoLink(G)) { goto l619; }
}
l620:; yyDo(G, yy_1_Link, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Link", G->buf+G->pos));
return 1;
l619:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Link", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Image(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Image")); if (!yymatchChar(G, '!')) goto l623;
{ int yypos624= G->pos, yythunkpos624= G->thunkpos; if (!yy_ExplicitLink(G)) { goto l625; } goto l624;
l625:; G->pos= yypos624; G->thunkpos= yythunkpos624; if (!yy_ExplicitLinkSize(G)) { goto l626; } goto l624;
l626:; G->pos= yypos624; G->thunkpos= yythunkpos624; if (!yy_ReferenceLink(G)) { goto l623; }
}
l624:; yyDo(G, yy_1_Image, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Image", G->buf+G->pos));
return 1;
l623:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Image", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Strike(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "Strike")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_STRIKE) )) goto l627; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l627; if (!yy_LocMarker(G)) { goto l627; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "~~")) goto l627;
{ int yypos628= G->pos, yythunkpos628= G->thunkpos; if (!yy_Whitespace(G)) { goto l628; } goto l627;
l628:; G->pos= yypos628; G->thunkpos= yythunkpos628;
}
{ int yypos631= G->pos, yythunkpos631= G->thunkpos; if (!yymatchString(G, "~~")) goto l631; goto l627;
l631:; G->pos= yypos631; G->thunkpos= yythunkpos631;
} if (!yy_Inline(G)) { goto l627; }
l629:;
{ int yypos630= G->pos, yythunkpos630= G->thunkpos;
{ int yypos632= G->pos, yythunkpos632= G->thunkpos; if (!yymatchString(G, "~~")) goto l632; goto l630;
l632:; G->pos= yypos632; G->thunkpos= yythunkpos632;
} if (!yy_Inline(G)) { goto l630; } goto l629;
l630:; G->pos= yypos630; G->thunkpos= yythunkpos630;
} if (!yymatchString(G, "~~")) goto l627; yyText(G, G->begin, G->end); if (!(YY_END)) goto l627; yyDo(G, yy_1_Strike, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Strike", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l627:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Strike", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Emph(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Emph"));
{ int yypos634= G->pos, yythunkpos634= G->thunkpos; if (!yy_EmphStar(G)) { goto l635; } goto l634;
l635:; G->pos= yypos634; G->thunkpos= yythunkpos634; if (!yy_EmphUl(G)) { goto l633; }
}
l634:;
yyprintf((stderr, " ok %s @ %s\n", "Emph", G->buf+G->pos));
return 1;
l633:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Emph", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Strong(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Strong"));
{ int yypos637= G->pos, yythunkpos637= G->thunkpos; if (!yy_StrongStar(G)) { goto l638; } goto l637;
l638:; G->pos= yypos637; G->thunkpos= yythunkpos637; if (!yy_StrongUl(G)) { goto l636; }
}
l637:;
yyprintf((stderr, " ok %s @ %s\n", "Strong", G->buf+G->pos));
return 1;
l636:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Strong", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_UlOrStarLine(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "UlOrStarLine"));
{ int yypos640= G->pos, yythunkpos640= G->thunkpos; if (!yy_UlLine(G)) { goto l641; } goto l640;
l641:; G->pos= yypos640; G->thunkpos= yythunkpos640; if (!yy_StarLine(G)) { goto l639; }
}
l640:;
yyprintf((stderr, " ok %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
return 1;
l639:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "UlOrStarLine", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Str(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Str")); if (!yy_NormalChar(G)) { goto l642; }
l643:;
{ int yypos644= G->pos, yythunkpos644= G->thunkpos;
{ int yypos645= G->pos, yythunkpos645= G->thunkpos; if (!yy_NormalChar(G)) { goto l646; } goto l645;
l646:; G->pos= yypos645; G->thunkpos= yythunkpos645; if (!yymatchChar(G, '_')) goto l644;
l647:;
{ int yypos648= G->pos, yythunkpos648= G->thunkpos; if (!yymatchChar(G, '_')) goto l648; goto l647;
l648:; G->pos= yypos648; G->thunkpos= yythunkpos648;
}
{ int yypos649= G->pos, yythunkpos649= G->thunkpos; if (!yy_Alphanumeric(G)) { goto l644; } G->pos= yypos649; G->thunkpos= yythunkpos649;
}
}
l645:; goto l643;
l644:; G->pos= yypos644; G->thunkpos= yythunkpos644;
}
yyprintf((stderr, " ok %s @ %s\n", "Str", G->buf+G->pos));
return 1;
l642:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Str", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_InStyleTags(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "InStyleTags")); if (!yy_StyleOpen(G)) { goto l650; }
l651:;
{ int yypos652= G->pos, yythunkpos652= G->thunkpos;
{ int yypos653= G->pos, yythunkpos653= G->thunkpos; if (!yy_StyleClose(G)) { goto l653; } goto l652;
l653:; G->pos= yypos653; G->thunkpos= yythunkpos653;
} if (!yymatchDot(G)) goto l652; goto l651;
l652:; G->pos= yypos652; G->thunkpos= yythunkpos652;
} if (!yy_StyleClose(G)) { goto l650; }
yyprintf((stderr, " ok %s @ %s\n", "InStyleTags", G->buf+G->pos));
return 1;
l650:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "InStyleTags", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_StyleClose(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "StyleClose")); if (!yymatchChar(G, '<')) goto l654; if (!yy_Spnl(G)) { goto l654; } if (!yymatchChar(G, '/')) goto l654;
{ int yypos655= G->pos, yythunkpos655= G->thunkpos; if (!yymatchString(G, "style")) goto l656; goto l655;
l656:; G->pos= yypos655; G->thunkpos= yythunkpos655; if (!yymatchString(G, "STYLE")) goto l654;
}
l655:; if (!yy_Spnl(G)) { goto l654; } if (!yymatchChar(G, '>')) goto l654;
yyprintf((stderr, " ok %s @ %s\n", "StyleClose", G->buf+G->pos));
return 1;
l654:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "StyleClose", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_StyleOpen(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "StyleOpen")); if (!yymatchChar(G, '<')) goto l657; if (!yy_Spnl(G)) { goto l657; }
{ int yypos658= G->pos, yythunkpos658= G->thunkpos; if (!yymatchString(G, "style")) goto l659; goto l658;
l659:; G->pos= yypos658; G->thunkpos= yythunkpos658; if (!yymatchString(G, "STYLE")) goto l657;
}
l658:; if (!yy_Spnl(G)) { goto l657; }
l660:;
{ int yypos661= G->pos, yythunkpos661= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l661; } goto l660;
l661:; G->pos= yypos661; G->thunkpos= yythunkpos661;
} if (!yymatchChar(G, '>')) goto l657;
yyprintf((stderr, " ok %s @ %s\n", "StyleOpen", G->buf+G->pos));
return 1;
l657:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "StyleOpen", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockType(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockType"));
{ int yypos663= G->pos, yythunkpos663= G->thunkpos; if (!yymatchString(G, "address")) goto l664; goto l663;
l664:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "blockquote")) goto l665; goto l663;
l665:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "center")) goto l666; goto l663;
l666:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dir")) goto l667; goto l663;
l667:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "div")) goto l668; goto l663;
l668:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dl")) goto l669; goto l663;
l669:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "fieldset")) goto l670; goto l663;
l670:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "form")) goto l671; goto l663;
l671:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h1")) goto l672; goto l663;
l672:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h2")) goto l673; goto l663;
l673:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h3")) goto l674; goto l663;
l674:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h4")) goto l675; goto l663;
l675:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h5")) goto l676; goto l663;
l676:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "h6")) goto l677; goto l663;
l677:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "hr")) goto l678; goto l663;
l678:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "isindex")) goto l679; goto l663;
l679:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "menu")) goto l680; goto l663;
l680:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "noframes")) goto l681; goto l663;
l681:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "noscript")) goto l682; goto l663;
l682:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ol")) goto l683; goto l663;
l683:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchChar(G, 'p')) goto l684; goto l663;
l684:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "pre")) goto l685; goto l663;
l685:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "table")) goto l686; goto l663;
l686:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ul")) goto l687; goto l663;
l687:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dd")) goto l688; goto l663;
l688:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "dt")) goto l689; goto l663;
l689:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "frameset")) goto l690; goto l663;
l690:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "li")) goto l691; goto l663;
l691:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "tbody")) goto l692; goto l663;
l692:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "td")) goto l693; goto l663;
l693:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "tfoot")) goto l694; goto l663;
l694:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "th")) goto l695; goto l663;
l695:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "thead")) goto l696; goto l663;
l696:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "tr")) goto l697; goto l663;
l697:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "script")) goto l698; goto l663;
l698:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ADDRESS")) goto l699; goto l663;
l699:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "BLOCKQUOTE")) goto l700; goto l663;
l700:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "CENTER")) goto l701; goto l663;
l701:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DIR")) goto l702; goto l663;
l702:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DIV")) goto l703; goto l663;
l703:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DL")) goto l704; goto l663;
l704:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "FIELDSET")) goto l705; goto l663;
l705:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "FORM")) goto l706; goto l663;
l706:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H1")) goto l707; goto l663;
l707:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H2")) goto l708; goto l663;
l708:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H3")) goto l709; goto l663;
l709:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H4")) goto l710; goto l663;
l710:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H5")) goto l711; goto l663;
l711:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "H6")) goto l712; goto l663;
l712:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "HR")) goto l713; goto l663;
l713:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "ISINDEX")) goto l714; goto l663;
l714:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "MENU")) goto l715; goto l663;
l715:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "NOFRAMES")) goto l716; goto l663;
l716:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "NOSCRIPT")) goto l717; goto l663;
l717:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "OL")) goto l718; goto l663;
l718:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchChar(G, 'P')) goto l719; goto l663;
l719:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "PRE")) goto l720; goto l663;
l720:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TABLE")) goto l721; goto l663;
l721:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "UL")) goto l722; goto l663;
l722:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DD")) goto l723; goto l663;
l723:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "DT")) goto l724; goto l663;
l724:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "FRAMESET")) goto l725; goto l663;
l725:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "LI")) goto l726; goto l663;
l726:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TBODY")) goto l727; goto l663;
l727:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TD")) goto l728; goto l663;
l728:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TFOOT")) goto l729; goto l663;
l729:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TH")) goto l730; goto l663;
l730:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "THEAD")) goto l731; goto l663;
l731:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "TR")) goto l732; goto l663;
l732:; G->pos= yypos663; G->thunkpos= yythunkpos663; if (!yymatchString(G, "SCRIPT")) goto l662;
}
l663:;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
return 1;
l662:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockType", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockSelfClosing(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockSelfClosing")); if (!yymatchChar(G, '<')) goto l733; if (!yy_Spnl(G)) { goto l733; } if (!yy_HtmlBlockType(G)) { goto l733; } if (!yy_Spnl(G)) { goto l733; }
l734:;
{ int yypos735= G->pos, yythunkpos735= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l735; } goto l734;
l735:; G->pos= yypos735; G->thunkpos= yythunkpos735;
} if (!yymatchChar(G, '/')) goto l733; if (!yy_Spnl(G)) { goto l733; } if (!yymatchChar(G, '>')) goto l733;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
return 1;
l733:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockSelfClosing", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlComment(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "HtmlComment")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l736; if (!yy_LocMarker(G)) { goto l736; } yyDo(G, yySet, -1, 0); if (!yymatchString(G, "<!--")) goto l736;
l737:;
{ int yypos738= G->pos, yythunkpos738= G->thunkpos;
{ int yypos739= G->pos, yythunkpos739= G->thunkpos; if (!yymatchString(G, "-->")) goto l739; goto l738;
l739:; G->pos= yypos739; G->thunkpos= yythunkpos739;
} if (!yymatchDot(G)) goto l738; goto l737;
l738:; G->pos= yypos738; G->thunkpos= yythunkpos738;
} if (!yymatchString(G, "-->")) goto l736; yyText(G, G->begin, G->end); if (!(YY_END)) goto l736; yyDo(G, yy_1_HtmlComment, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HtmlComment", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l736:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlComment", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockInTags(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockInTags"));
{ int yypos741= G->pos, yythunkpos741= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l742; } goto l741;
l742:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockBlockquote(G)) { goto l743; } goto l741;
l743:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockCenter(G)) { goto l744; } goto l741;
l744:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDir(G)) { goto l745; } goto l741;
l745:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDiv(G)) { goto l746; } goto l741;
l746:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDl(G)) { goto l747; } goto l741;
l747:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockFieldset(G)) { goto l748; } goto l741;
l748:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockForm(G)) { goto l749; } goto l741;
l749:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH1(G)) { goto l750; } goto l741;
l750:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH2(G)) { goto l751; } goto l741;
l751:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH3(G)) { goto l752; } goto l741;
l752:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH4(G)) { goto l753; } goto l741;
l753:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH5(G)) { goto l754; } goto l741;
l754:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockH6(G)) { goto l755; } goto l741;
l755:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockMenu(G)) { goto l756; } goto l741;
l756:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockNoframes(G)) { goto l757; } goto l741;
l757:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockNoscript(G)) { goto l758; } goto l741;
l758:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockOl(G)) { goto l759; } goto l741;
l759:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockP(G)) { goto l760; } goto l741;
l760:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockPre(G)) { goto l761; } goto l741;
l761:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTable(G)) { goto l762; } goto l741;
l762:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockUl(G)) { goto l763; } goto l741;
l763:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDd(G)) { goto l764; } goto l741;
l764:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockDt(G)) { goto l765; } goto l741;
l765:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockFrameset(G)) { goto l766; } goto l741;
l766:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockLi(G)) { goto l767; } goto l741;
l767:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTbody(G)) { goto l768; } goto l741;
l768:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTd(G)) { goto l769; } goto l741;
l769:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTfoot(G)) { goto l770; } goto l741;
l770:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTh(G)) { goto l771; } goto l741;
l771:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockThead(G)) { goto l772; } goto l741;
l772:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockTr(G)) { goto l773; } goto l741;
l773:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockScript(G)) { goto l774; } goto l741;
l774:; G->pos= yypos741; G->thunkpos= yythunkpos741; if (!yy_HtmlBlockHead(G)) { goto l740; }
}
l741:;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
return 1;
l740:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockInTags", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockHead(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockHead")); if (!yy_HtmlBlockOpenHead(G)) { goto l775; }
l776:;
{ int yypos777= G->pos, yythunkpos777= G->thunkpos;
{ int yypos778= G->pos, yythunkpos778= G->thunkpos; if (!yy_HtmlBlockCloseHead(G)) { goto l778; } goto l777;
l778:; G->pos= yypos778; G->thunkpos= yythunkpos778;
} if (!yymatchDot(G)) goto l777; goto l776;
l777:; G->pos= yypos777; G->thunkpos= yythunkpos777;
} if (!yy_HtmlBlockCloseHead(G)) { goto l775; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
return 1;
l775:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockHead", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseHead(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseHead")); if (!yymatchChar(G, '<')) goto l779; if (!yy_Spnl(G)) { goto l779; } if (!yymatchChar(G, '/')) goto l779;
{ int yypos780= G->pos, yythunkpos780= G->thunkpos; if (!yymatchString(G, "head")) goto l781; goto l780;
l781:; G->pos= yypos780; G->thunkpos= yythunkpos780; if (!yymatchString(G, "HEAD")) goto l779;
}
l780:; if (!yy_Spnl(G)) { goto l779; } if (!yymatchChar(G, '>')) goto l779;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
return 1;
l779:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseHead", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenHead(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenHead")); if (!yymatchChar(G, '<')) goto l782; if (!yy_Spnl(G)) { goto l782; }
{ int yypos783= G->pos, yythunkpos783= G->thunkpos; if (!yymatchString(G, "head")) goto l784; goto l783;
l784:; G->pos= yypos783; G->thunkpos= yythunkpos783; if (!yymatchString(G, "HEAD")) goto l782;
}
l783:; if (!yy_Spnl(G)) { goto l782; }
l785:;
{ int yypos786= G->pos, yythunkpos786= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l786; } goto l785;
l786:; G->pos= yypos786; G->thunkpos= yythunkpos786;
} if (!yymatchChar(G, '>')) goto l782;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
return 1;
l782:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenHead", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockScript(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockScript")); if (!yy_HtmlBlockOpenScript(G)) { goto l787; }
l788:;
{ int yypos789= G->pos, yythunkpos789= G->thunkpos;
{ int yypos790= G->pos, yythunkpos790= G->thunkpos; if (!yy_HtmlBlockCloseScript(G)) { goto l790; } goto l789;
l790:; G->pos= yypos790; G->thunkpos= yythunkpos790;
} if (!yymatchDot(G)) goto l789; goto l788;
l789:; G->pos= yypos789; G->thunkpos= yythunkpos789;
} if (!yy_HtmlBlockCloseScript(G)) { goto l787; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
return 1;
l787:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockScript", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseScript(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseScript")); if (!yymatchChar(G, '<')) goto l791; if (!yy_Spnl(G)) { goto l791; } if (!yymatchChar(G, '/')) goto l791;
{ int yypos792= G->pos, yythunkpos792= G->thunkpos; if (!yymatchString(G, "script")) goto l793; goto l792;
l793:; G->pos= yypos792; G->thunkpos= yythunkpos792; if (!yymatchString(G, "SCRIPT")) goto l791;
}
l792:; if (!yy_Spnl(G)) { goto l791; } if (!yymatchChar(G, '>')) goto l791;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
return 1;
l791:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseScript", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenScript(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenScript")); if (!yymatchChar(G, '<')) goto l794; if (!yy_Spnl(G)) { goto l794; }
{ int yypos795= G->pos, yythunkpos795= G->thunkpos; if (!yymatchString(G, "script")) goto l796; goto l795;
l796:; G->pos= yypos795; G->thunkpos= yythunkpos795; if (!yymatchString(G, "SCRIPT")) goto l794;
}
l795:; if (!yy_Spnl(G)) { goto l794; }
l797:;
{ int yypos798= G->pos, yythunkpos798= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l798; } goto l797;
l798:; G->pos= yypos798; G->thunkpos= yythunkpos798;
} if (!yymatchChar(G, '>')) goto l794;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
return 1;
l794:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenScript", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockTr(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockTr")); if (!yy_HtmlBlockOpenTr(G)) { goto l799; }
l800:;
{ int yypos801= G->pos, yythunkpos801= G->thunkpos;
{ int yypos802= G->pos, yythunkpos802= G->thunkpos; if (!yy_HtmlBlockTr(G)) { goto l803; } goto l802;
l803:; G->pos= yypos802; G->thunkpos= yythunkpos802;
{ int yypos804= G->pos, yythunkpos804= G->thunkpos; if (!yy_HtmlBlockCloseTr(G)) { goto l804; } goto l801;
l804:; G->pos= yypos804; G->thunkpos= yythunkpos804;
} if (!yymatchDot(G)) goto l801;
}
l802:; goto l800;
l801:; G->pos= yypos801; G->thunkpos= yythunkpos801;
} if (!yy_HtmlBlockCloseTr(G)) { goto l799; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
return 1;
l799:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTr", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseTr(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseTr")); if (!yymatchChar(G, '<')) goto l805; if (!yy_Spnl(G)) { goto l805; } if (!yymatchChar(G, '/')) goto l805;
{ int yypos806= G->pos, yythunkpos806= G->thunkpos; if (!yymatchString(G, "tr")) goto l807; goto l806;
l807:; G->pos= yypos806; G->thunkpos= yythunkpos806; if (!yymatchString(G, "TR")) goto l805;
}
l806:; if (!yy_Spnl(G)) { goto l805; } if (!yymatchChar(G, '>')) goto l805;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
return 1;
l805:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTr", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenTr(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenTr")); if (!yymatchChar(G, '<')) goto l808; if (!yy_Spnl(G)) { goto l808; }
{ int yypos809= G->pos, yythunkpos809= G->thunkpos; if (!yymatchString(G, "tr")) goto l810; goto l809;
l810:; G->pos= yypos809; G->thunkpos= yythunkpos809; if (!yymatchString(G, "TR")) goto l808;
}
l809:; if (!yy_Spnl(G)) { goto l808; }
l811:;
{ int yypos812= G->pos, yythunkpos812= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l812; } goto l811;
l812:; G->pos= yypos812; G->thunkpos= yythunkpos812;
} if (!yymatchChar(G, '>')) goto l808;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
return 1;
l808:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTr", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockThead(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockThead")); if (!yy_HtmlBlockOpenThead(G)) { goto l813; }
l814:;
{ int yypos815= G->pos, yythunkpos815= G->thunkpos;
{ int yypos816= G->pos, yythunkpos816= G->thunkpos; if (!yy_HtmlBlockThead(G)) { goto l817; } goto l816;
l817:; G->pos= yypos816; G->thunkpos= yythunkpos816;
{ int yypos818= G->pos, yythunkpos818= G->thunkpos; if (!yy_HtmlBlockCloseThead(G)) { goto l818; } goto l815;
l818:; G->pos= yypos818; G->thunkpos= yythunkpos818;
} if (!yymatchDot(G)) goto l815;
}
l816:; goto l814;
l815:; G->pos= yypos815; G->thunkpos= yythunkpos815;
} if (!yy_HtmlBlockCloseThead(G)) { goto l813; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
return 1;
l813:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockThead", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseThead(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseThead")); if (!yymatchChar(G, '<')) goto l819; if (!yy_Spnl(G)) { goto l819; } if (!yymatchChar(G, '/')) goto l819;
{ int yypos820= G->pos, yythunkpos820= G->thunkpos; if (!yymatchString(G, "thead")) goto l821; goto l820;
l821:; G->pos= yypos820; G->thunkpos= yythunkpos820; if (!yymatchString(G, "THEAD")) goto l819;
}
l820:; if (!yy_Spnl(G)) { goto l819; } if (!yymatchChar(G, '>')) goto l819;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
return 1;
l819:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseThead", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenThead(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenThead")); if (!yymatchChar(G, '<')) goto l822; if (!yy_Spnl(G)) { goto l822; }
{ int yypos823= G->pos, yythunkpos823= G->thunkpos; if (!yymatchString(G, "thead")) goto l824; goto l823;
l824:; G->pos= yypos823; G->thunkpos= yythunkpos823; if (!yymatchString(G, "THEAD")) goto l822;
}
l823:; if (!yy_Spnl(G)) { goto l822; }
l825:;
{ int yypos826= G->pos, yythunkpos826= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l826; } goto l825;
l826:; G->pos= yypos826; G->thunkpos= yythunkpos826;
} if (!yymatchChar(G, '>')) goto l822;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
return 1;
l822:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenThead", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockTh(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockTh")); if (!yy_HtmlBlockOpenTh(G)) { goto l827; }
l828:;
{ int yypos829= G->pos, yythunkpos829= G->thunkpos;
{ int yypos830= G->pos, yythunkpos830= G->thunkpos; if (!yy_HtmlBlockTh(G)) { goto l831; } goto l830;
l831:; G->pos= yypos830; G->thunkpos= yythunkpos830;
{ int yypos832= G->pos, yythunkpos832= G->thunkpos; if (!yy_HtmlBlockCloseTh(G)) { goto l832; } goto l829;
l832:; G->pos= yypos832; G->thunkpos= yythunkpos832;
} if (!yymatchDot(G)) goto l829;
}
l830:; goto l828;
l829:; G->pos= yypos829; G->thunkpos= yythunkpos829;
} if (!yy_HtmlBlockCloseTh(G)) { goto l827; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
return 1;
l827:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTh", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseTh(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseTh")); if (!yymatchChar(G, '<')) goto l833; if (!yy_Spnl(G)) { goto l833; } if (!yymatchChar(G, '/')) goto l833;
{ int yypos834= G->pos, yythunkpos834= G->thunkpos; if (!yymatchString(G, "th")) goto l835; goto l834;
l835:; G->pos= yypos834; G->thunkpos= yythunkpos834; if (!yymatchString(G, "TH")) goto l833;
}
l834:; if (!yy_Spnl(G)) { goto l833; } if (!yymatchChar(G, '>')) goto l833;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
return 1;
l833:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTh", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenTh(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenTh")); if (!yymatchChar(G, '<')) goto l836; if (!yy_Spnl(G)) { goto l836; }
{ int yypos837= G->pos, yythunkpos837= G->thunkpos; if (!yymatchString(G, "th")) goto l838; goto l837;
l838:; G->pos= yypos837; G->thunkpos= yythunkpos837; if (!yymatchString(G, "TH")) goto l836;
}
l837:; if (!yy_Spnl(G)) { goto l836; }
l839:;
{ int yypos840= G->pos, yythunkpos840= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l840; } goto l839;
l840:; G->pos= yypos840; G->thunkpos= yythunkpos840;
} if (!yymatchChar(G, '>')) goto l836;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
return 1;
l836:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTh", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockTfoot(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockTfoot")); if (!yy_HtmlBlockOpenTfoot(G)) { goto l841; }
l842:;
{ int yypos843= G->pos, yythunkpos843= G->thunkpos;
{ int yypos844= G->pos, yythunkpos844= G->thunkpos; if (!yy_HtmlBlockTfoot(G)) { goto l845; } goto l844;
l845:; G->pos= yypos844; G->thunkpos= yythunkpos844;
{ int yypos846= G->pos, yythunkpos846= G->thunkpos; if (!yy_HtmlBlockCloseTfoot(G)) { goto l846; } goto l843;
l846:; G->pos= yypos846; G->thunkpos= yythunkpos846;
} if (!yymatchDot(G)) goto l843;
}
l844:; goto l842;
l843:; G->pos= yypos843; G->thunkpos= yythunkpos843;
} if (!yy_HtmlBlockCloseTfoot(G)) { goto l841; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
return 1;
l841:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTfoot", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseTfoot(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseTfoot")); if (!yymatchChar(G, '<')) goto l847; if (!yy_Spnl(G)) { goto l847; } if (!yymatchChar(G, '/')) goto l847;
{ int yypos848= G->pos, yythunkpos848= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l849; goto l848;
l849:; G->pos= yypos848; G->thunkpos= yythunkpos848; if (!yymatchString(G, "TFOOT")) goto l847;
}
l848:; if (!yy_Spnl(G)) { goto l847; } if (!yymatchChar(G, '>')) goto l847;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
return 1;
l847:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTfoot", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenTfoot(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenTfoot")); if (!yymatchChar(G, '<')) goto l850; if (!yy_Spnl(G)) { goto l850; }
{ int yypos851= G->pos, yythunkpos851= G->thunkpos; if (!yymatchString(G, "tfoot")) goto l852; goto l851;
l852:; G->pos= yypos851; G->thunkpos= yythunkpos851; if (!yymatchString(G, "TFOOT")) goto l850;
}
l851:; if (!yy_Spnl(G)) { goto l850; }
l853:;
{ int yypos854= G->pos, yythunkpos854= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l854; } goto l853;
l854:; G->pos= yypos854; G->thunkpos= yythunkpos854;
} if (!yymatchChar(G, '>')) goto l850;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
return 1;
l850:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTfoot", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockTd(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockTd")); if (!yy_HtmlBlockOpenTd(G)) { goto l855; }
l856:;
{ int yypos857= G->pos, yythunkpos857= G->thunkpos;
{ int yypos858= G->pos, yythunkpos858= G->thunkpos; if (!yy_HtmlBlockTd(G)) { goto l859; } goto l858;
l859:; G->pos= yypos858; G->thunkpos= yythunkpos858;
{ int yypos860= G->pos, yythunkpos860= G->thunkpos; if (!yy_HtmlBlockCloseTd(G)) { goto l860; } goto l857;
l860:; G->pos= yypos860; G->thunkpos= yythunkpos860;
} if (!yymatchDot(G)) goto l857;
}
l858:; goto l856;
l857:; G->pos= yypos857; G->thunkpos= yythunkpos857;
} if (!yy_HtmlBlockCloseTd(G)) { goto l855; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
return 1;
l855:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTd", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseTd(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseTd")); if (!yymatchChar(G, '<')) goto l861; if (!yy_Spnl(G)) { goto l861; } if (!yymatchChar(G, '/')) goto l861;
{ int yypos862= G->pos, yythunkpos862= G->thunkpos; if (!yymatchString(G, "td")) goto l863; goto l862;
l863:; G->pos= yypos862; G->thunkpos= yythunkpos862; if (!yymatchString(G, "TD")) goto l861;
}
l862:; if (!yy_Spnl(G)) { goto l861; } if (!yymatchChar(G, '>')) goto l861;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
return 1;
l861:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTd", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenTd(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenTd")); if (!yymatchChar(G, '<')) goto l864; if (!yy_Spnl(G)) { goto l864; }
{ int yypos865= G->pos, yythunkpos865= G->thunkpos; if (!yymatchString(G, "td")) goto l866; goto l865;
l866:; G->pos= yypos865; G->thunkpos= yythunkpos865; if (!yymatchString(G, "TD")) goto l864;
}
l865:; if (!yy_Spnl(G)) { goto l864; }
l867:;
{ int yypos868= G->pos, yythunkpos868= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l868; } goto l867;
l868:; G->pos= yypos868; G->thunkpos= yythunkpos868;
} if (!yymatchChar(G, '>')) goto l864;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
return 1;
l864:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTd", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockTbody(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockTbody")); if (!yy_HtmlBlockOpenTbody(G)) { goto l869; }
l870:;
{ int yypos871= G->pos, yythunkpos871= G->thunkpos;
{ int yypos872= G->pos, yythunkpos872= G->thunkpos; if (!yy_HtmlBlockTbody(G)) { goto l873; } goto l872;
l873:; G->pos= yypos872; G->thunkpos= yythunkpos872;
{ int yypos874= G->pos, yythunkpos874= G->thunkpos; if (!yy_HtmlBlockCloseTbody(G)) { goto l874; } goto l871;
l874:; G->pos= yypos874; G->thunkpos= yythunkpos874;
} if (!yymatchDot(G)) goto l871;
}
l872:; goto l870;
l871:; G->pos= yypos871; G->thunkpos= yythunkpos871;
} if (!yy_HtmlBlockCloseTbody(G)) { goto l869; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
return 1;
l869:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTbody", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseTbody(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseTbody")); if (!yymatchChar(G, '<')) goto l875; if (!yy_Spnl(G)) { goto l875; } if (!yymatchChar(G, '/')) goto l875;
{ int yypos876= G->pos, yythunkpos876= G->thunkpos; if (!yymatchString(G, "tbody")) goto l877; goto l876;
l877:; G->pos= yypos876; G->thunkpos= yythunkpos876; if (!yymatchString(G, "TBODY")) goto l875;
}
l876:; if (!yy_Spnl(G)) { goto l875; } if (!yymatchChar(G, '>')) goto l875;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
return 1;
l875:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTbody", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenTbody(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenTbody")); if (!yymatchChar(G, '<')) goto l878; if (!yy_Spnl(G)) { goto l878; }
{ int yypos879= G->pos, yythunkpos879= G->thunkpos; if (!yymatchString(G, "tbody")) goto l880; goto l879;
l880:; G->pos= yypos879; G->thunkpos= yythunkpos879; if (!yymatchString(G, "TBODY")) goto l878;
}
l879:; if (!yy_Spnl(G)) { goto l878; }
l881:;
{ int yypos882= G->pos, yythunkpos882= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l882; } goto l881;
l882:; G->pos= yypos882; G->thunkpos= yythunkpos882;
} if (!yymatchChar(G, '>')) goto l878;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
return 1;
l878:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTbody", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockLi(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockLi")); if (!yy_HtmlBlockOpenLi(G)) { goto l883; }
l884:;
{ int yypos885= G->pos, yythunkpos885= G->thunkpos;
{ int yypos886= G->pos, yythunkpos886= G->thunkpos; if (!yy_HtmlBlockLi(G)) { goto l887; } goto l886;
l887:; G->pos= yypos886; G->thunkpos= yythunkpos886;
{ int yypos888= G->pos, yythunkpos888= G->thunkpos; if (!yy_HtmlBlockCloseLi(G)) { goto l888; } goto l885;
l888:; G->pos= yypos888; G->thunkpos= yythunkpos888;
} if (!yymatchDot(G)) goto l885;
}
l886:; goto l884;
l885:; G->pos= yypos885; G->thunkpos= yythunkpos885;
} if (!yy_HtmlBlockCloseLi(G)) { goto l883; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
return 1;
l883:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockLi", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseLi(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseLi")); if (!yymatchChar(G, '<')) goto l889; if (!yy_Spnl(G)) { goto l889; } if (!yymatchChar(G, '/')) goto l889;
{ int yypos890= G->pos, yythunkpos890= G->thunkpos; if (!yymatchString(G, "li")) goto l891; goto l890;
l891:; G->pos= yypos890; G->thunkpos= yythunkpos890; if (!yymatchString(G, "LI")) goto l889;
}
l890:; if (!yy_Spnl(G)) { goto l889; } if (!yymatchChar(G, '>')) goto l889;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
return 1;
l889:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseLi", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenLi(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenLi")); if (!yymatchChar(G, '<')) goto l892; if (!yy_Spnl(G)) { goto l892; }
{ int yypos893= G->pos, yythunkpos893= G->thunkpos; if (!yymatchString(G, "li")) goto l894; goto l893;
l894:; G->pos= yypos893; G->thunkpos= yythunkpos893; if (!yymatchString(G, "LI")) goto l892;
}
l893:; if (!yy_Spnl(G)) { goto l892; }
l895:;
{ int yypos896= G->pos, yythunkpos896= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l896; } goto l895;
l896:; G->pos= yypos896; G->thunkpos= yythunkpos896;
} if (!yymatchChar(G, '>')) goto l892;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
return 1;
l892:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenLi", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockFrameset(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockFrameset")); if (!yy_HtmlBlockOpenFrameset(G)) { goto l897; }
l898:;
{ int yypos899= G->pos, yythunkpos899= G->thunkpos;
{ int yypos900= G->pos, yythunkpos900= G->thunkpos; if (!yy_HtmlBlockFrameset(G)) { goto l901; } goto l900;
l901:; G->pos= yypos900; G->thunkpos= yythunkpos900;
{ int yypos902= G->pos, yythunkpos902= G->thunkpos; if (!yy_HtmlBlockCloseFrameset(G)) { goto l902; } goto l899;
l902:; G->pos= yypos902; G->thunkpos= yythunkpos902;
} if (!yymatchDot(G)) goto l899;
}
l900:; goto l898;
l899:; G->pos= yypos899; G->thunkpos= yythunkpos899;
} if (!yy_HtmlBlockCloseFrameset(G)) { goto l897; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
return 1;
l897:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFrameset", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseFrameset(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseFrameset")); if (!yymatchChar(G, '<')) goto l903; if (!yy_Spnl(G)) { goto l903; } if (!yymatchChar(G, '/')) goto l903;
{ int yypos904= G->pos, yythunkpos904= G->thunkpos; if (!yymatchString(G, "frameset")) goto l905; goto l904;
l905:; G->pos= yypos904; G->thunkpos= yythunkpos904; if (!yymatchString(G, "FRAMESET")) goto l903;
}
l904:; if (!yy_Spnl(G)) { goto l903; } if (!yymatchChar(G, '>')) goto l903;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
return 1;
l903:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFrameset", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenFrameset(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenFrameset")); if (!yymatchChar(G, '<')) goto l906; if (!yy_Spnl(G)) { goto l906; }
{ int yypos907= G->pos, yythunkpos907= G->thunkpos; if (!yymatchString(G, "frameset")) goto l908; goto l907;
l908:; G->pos= yypos907; G->thunkpos= yythunkpos907; if (!yymatchString(G, "FRAMESET")) goto l906;
}
l907:; if (!yy_Spnl(G)) { goto l906; }
l909:;
{ int yypos910= G->pos, yythunkpos910= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l910; } goto l909;
l910:; G->pos= yypos910; G->thunkpos= yythunkpos910;
} if (!yymatchChar(G, '>')) goto l906;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
return 1;
l906:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFrameset", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockDt(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockDt")); if (!yy_HtmlBlockOpenDt(G)) { goto l911; }
l912:;
{ int yypos913= G->pos, yythunkpos913= G->thunkpos;
{ int yypos914= G->pos, yythunkpos914= G->thunkpos; if (!yy_HtmlBlockDt(G)) { goto l915; } goto l914;
l915:; G->pos= yypos914; G->thunkpos= yythunkpos914;
{ int yypos916= G->pos, yythunkpos916= G->thunkpos; if (!yy_HtmlBlockCloseDt(G)) { goto l916; } goto l913;
l916:; G->pos= yypos916; G->thunkpos= yythunkpos916;
} if (!yymatchDot(G)) goto l913;
}
l914:; goto l912;
l913:; G->pos= yypos913; G->thunkpos= yythunkpos913;
} if (!yy_HtmlBlockCloseDt(G)) { goto l911; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
return 1;
l911:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDt", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseDt(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseDt")); if (!yymatchChar(G, '<')) goto l917; if (!yy_Spnl(G)) { goto l917; } if (!yymatchChar(G, '/')) goto l917;
{ int yypos918= G->pos, yythunkpos918= G->thunkpos; if (!yymatchString(G, "dt")) goto l919; goto l918;
l919:; G->pos= yypos918; G->thunkpos= yythunkpos918; if (!yymatchString(G, "DT")) goto l917;
}
l918:; if (!yy_Spnl(G)) { goto l917; } if (!yymatchChar(G, '>')) goto l917;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
return 1;
l917:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDt", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenDt(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenDt")); if (!yymatchChar(G, '<')) goto l920; if (!yy_Spnl(G)) { goto l920; }
{ int yypos921= G->pos, yythunkpos921= G->thunkpos; if (!yymatchString(G, "dt")) goto l922; goto l921;
l922:; G->pos= yypos921; G->thunkpos= yythunkpos921; if (!yymatchString(G, "DT")) goto l920;
}
l921:; if (!yy_Spnl(G)) { goto l920; }
l923:;
{ int yypos924= G->pos, yythunkpos924= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l924; } goto l923;
l924:; G->pos= yypos924; G->thunkpos= yythunkpos924;
} if (!yymatchChar(G, '>')) goto l920;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
return 1;
l920:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDt", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockDd(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockDd")); if (!yy_HtmlBlockOpenDd(G)) { goto l925; }
l926:;
{ int yypos927= G->pos, yythunkpos927= G->thunkpos;
{ int yypos928= G->pos, yythunkpos928= G->thunkpos; if (!yy_HtmlBlockDd(G)) { goto l929; } goto l928;
l929:; G->pos= yypos928; G->thunkpos= yythunkpos928;
{ int yypos930= G->pos, yythunkpos930= G->thunkpos; if (!yy_HtmlBlockCloseDd(G)) { goto l930; } goto l927;
l930:; G->pos= yypos930; G->thunkpos= yythunkpos930;
} if (!yymatchDot(G)) goto l927;
}
l928:; goto l926;
l927:; G->pos= yypos927; G->thunkpos= yythunkpos927;
} if (!yy_HtmlBlockCloseDd(G)) { goto l925; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
return 1;
l925:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDd", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseDd(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseDd")); if (!yymatchChar(G, '<')) goto l931; if (!yy_Spnl(G)) { goto l931; } if (!yymatchChar(G, '/')) goto l931;
{ int yypos932= G->pos, yythunkpos932= G->thunkpos; if (!yymatchString(G, "dd")) goto l933; goto l932;
l933:; G->pos= yypos932; G->thunkpos= yythunkpos932; if (!yymatchString(G, "DD")) goto l931;
}
l932:; if (!yy_Spnl(G)) { goto l931; } if (!yymatchChar(G, '>')) goto l931;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
return 1;
l931:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDd", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenDd(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenDd")); if (!yymatchChar(G, '<')) goto l934; if (!yy_Spnl(G)) { goto l934; }
{ int yypos935= G->pos, yythunkpos935= G->thunkpos; if (!yymatchString(G, "dd")) goto l936; goto l935;
l936:; G->pos= yypos935; G->thunkpos= yythunkpos935; if (!yymatchString(G, "DD")) goto l934;
}
l935:; if (!yy_Spnl(G)) { goto l934; }
l937:;
{ int yypos938= G->pos, yythunkpos938= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l938; } goto l937;
l938:; G->pos= yypos938; G->thunkpos= yythunkpos938;
} if (!yymatchChar(G, '>')) goto l934;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
return 1;
l934:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDd", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockUl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockUl")); if (!yy_HtmlBlockOpenUl(G)) { goto l939; }
l940:;
{ int yypos941= G->pos, yythunkpos941= G->thunkpos;
{ int yypos942= G->pos, yythunkpos942= G->thunkpos; if (!yy_HtmlBlockUl(G)) { goto l943; } goto l942;
l943:; G->pos= yypos942; G->thunkpos= yythunkpos942;
{ int yypos944= G->pos, yythunkpos944= G->thunkpos; if (!yy_HtmlBlockCloseUl(G)) { goto l944; } goto l941;
l944:; G->pos= yypos944; G->thunkpos= yythunkpos944;
} if (!yymatchDot(G)) goto l941;
}
l942:; goto l940;
l941:; G->pos= yypos941; G->thunkpos= yythunkpos941;
} if (!yy_HtmlBlockCloseUl(G)) { goto l939; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
return 1;
l939:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockUl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseUl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseUl")); if (!yymatchChar(G, '<')) goto l945; if (!yy_Spnl(G)) { goto l945; } if (!yymatchChar(G, '/')) goto l945;
{ int yypos946= G->pos, yythunkpos946= G->thunkpos; if (!yymatchString(G, "ul")) goto l947; goto l946;
l947:; G->pos= yypos946; G->thunkpos= yythunkpos946; if (!yymatchString(G, "UL")) goto l945;
}
l946:; if (!yy_Spnl(G)) { goto l945; } if (!yymatchChar(G, '>')) goto l945;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
return 1;
l945:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseUl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenUl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenUl")); if (!yymatchChar(G, '<')) goto l948; if (!yy_Spnl(G)) { goto l948; }
{ int yypos949= G->pos, yythunkpos949= G->thunkpos; if (!yymatchString(G, "ul")) goto l950; goto l949;
l950:; G->pos= yypos949; G->thunkpos= yythunkpos949; if (!yymatchString(G, "UL")) goto l948;
}
l949:; if (!yy_Spnl(G)) { goto l948; }
l951:;
{ int yypos952= G->pos, yythunkpos952= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l952; } goto l951;
l952:; G->pos= yypos952; G->thunkpos= yythunkpos952;
} if (!yymatchChar(G, '>')) goto l948;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
return 1;
l948:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenUl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockTable(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockTable")); if (!yy_HtmlBlockOpenTable(G)) { goto l953; }
l954:;
{ int yypos955= G->pos, yythunkpos955= G->thunkpos;
{ int yypos956= G->pos, yythunkpos956= G->thunkpos; if (!yy_HtmlBlockTable(G)) { goto l957; } goto l956;
l957:; G->pos= yypos956; G->thunkpos= yythunkpos956;
{ int yypos958= G->pos, yythunkpos958= G->thunkpos; if (!yy_HtmlBlockCloseTable(G)) { goto l958; } goto l955;
l958:; G->pos= yypos958; G->thunkpos= yythunkpos958;
} if (!yymatchDot(G)) goto l955;
}
l956:; goto l954;
l955:; G->pos= yypos955; G->thunkpos= yythunkpos955;
} if (!yy_HtmlBlockCloseTable(G)) { goto l953; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
return 1;
l953:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockTable", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseTable(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseTable")); if (!yymatchChar(G, '<')) goto l959; if (!yy_Spnl(G)) { goto l959; } if (!yymatchChar(G, '/')) goto l959;
{ int yypos960= G->pos, yythunkpos960= G->thunkpos; if (!yymatchString(G, "table")) goto l961; goto l960;
l961:; G->pos= yypos960; G->thunkpos= yythunkpos960; if (!yymatchString(G, "TABLE")) goto l959;
}
l960:; if (!yy_Spnl(G)) { goto l959; } if (!yymatchChar(G, '>')) goto l959;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
return 1;
l959:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseTable", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenTable(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenTable")); if (!yymatchChar(G, '<')) goto l962; if (!yy_Spnl(G)) { goto l962; }
{ int yypos963= G->pos, yythunkpos963= G->thunkpos; if (!yymatchString(G, "table")) goto l964; goto l963;
l964:; G->pos= yypos963; G->thunkpos= yythunkpos963; if (!yymatchString(G, "TABLE")) goto l962;
}
l963:; if (!yy_Spnl(G)) { goto l962; }
l965:;
{ int yypos966= G->pos, yythunkpos966= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l966; } goto l965;
l966:; G->pos= yypos966; G->thunkpos= yythunkpos966;
} if (!yymatchChar(G, '>')) goto l962;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
return 1;
l962:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenTable", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockPre(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockPre")); if (!yy_HtmlBlockOpenPre(G)) { goto l967; }
l968:;
{ int yypos969= G->pos, yythunkpos969= G->thunkpos;
{ int yypos970= G->pos, yythunkpos970= G->thunkpos; if (!yy_HtmlBlockPre(G)) { goto l971; } goto l970;
l971:; G->pos= yypos970; G->thunkpos= yythunkpos970;
{ int yypos972= G->pos, yythunkpos972= G->thunkpos; if (!yy_HtmlBlockClosePre(G)) { goto l972; } goto l969;
l972:; G->pos= yypos972; G->thunkpos= yythunkpos972;
} if (!yymatchDot(G)) goto l969;
}
l970:; goto l968;
l969:; G->pos= yypos969; G->thunkpos= yythunkpos969;
} if (!yy_HtmlBlockClosePre(G)) { goto l967; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
return 1;
l967:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockPre", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockClosePre(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockClosePre")); if (!yymatchChar(G, '<')) goto l973; if (!yy_Spnl(G)) { goto l973; } if (!yymatchChar(G, '/')) goto l973;
{ int yypos974= G->pos, yythunkpos974= G->thunkpos; if (!yymatchString(G, "pre")) goto l975; goto l974;
l975:; G->pos= yypos974; G->thunkpos= yythunkpos974; if (!yymatchString(G, "PRE")) goto l973;
}
l974:; if (!yy_Spnl(G)) { goto l973; } if (!yymatchChar(G, '>')) goto l973;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
return 1;
l973:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockClosePre", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenPre(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenPre")); if (!yymatchChar(G, '<')) goto l976; if (!yy_Spnl(G)) { goto l976; }
{ int yypos977= G->pos, yythunkpos977= G->thunkpos; if (!yymatchString(G, "pre")) goto l978; goto l977;
l978:; G->pos= yypos977; G->thunkpos= yythunkpos977; if (!yymatchString(G, "PRE")) goto l976;
}
l977:; if (!yy_Spnl(G)) { goto l976; }
l979:;
{ int yypos980= G->pos, yythunkpos980= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l980; } goto l979;
l980:; G->pos= yypos980; G->thunkpos= yythunkpos980;
} if (!yymatchChar(G, '>')) goto l976;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
return 1;
l976:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenPre", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockP(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockP")); if (!yy_HtmlBlockOpenP(G)) { goto l981; }
l982:;
{ int yypos983= G->pos, yythunkpos983= G->thunkpos;
{ int yypos984= G->pos, yythunkpos984= G->thunkpos; if (!yy_HtmlBlockP(G)) { goto l985; } goto l984;
l985:; G->pos= yypos984; G->thunkpos= yythunkpos984;
{ int yypos986= G->pos, yythunkpos986= G->thunkpos; if (!yy_HtmlBlockCloseP(G)) { goto l986; } goto l983;
l986:; G->pos= yypos986; G->thunkpos= yythunkpos986;
} if (!yymatchDot(G)) goto l983;
}
l984:; goto l982;
l983:; G->pos= yypos983; G->thunkpos= yythunkpos983;
} if (!yy_HtmlBlockCloseP(G)) { goto l981; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
return 1;
l981:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockP", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseP(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseP")); if (!yymatchChar(G, '<')) goto l987; if (!yy_Spnl(G)) { goto l987; } if (!yymatchChar(G, '/')) goto l987;
{ int yypos988= G->pos, yythunkpos988= G->thunkpos; if (!yymatchChar(G, 'p')) goto l989; goto l988;
l989:; G->pos= yypos988; G->thunkpos= yythunkpos988; if (!yymatchChar(G, 'P')) goto l987;
}
l988:; if (!yy_Spnl(G)) { goto l987; } if (!yymatchChar(G, '>')) goto l987;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
return 1;
l987:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseP", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenP(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenP")); if (!yymatchChar(G, '<')) goto l990; if (!yy_Spnl(G)) { goto l990; }
{ int yypos991= G->pos, yythunkpos991= G->thunkpos; if (!yymatchChar(G, 'p')) goto l992; goto l991;
l992:; G->pos= yypos991; G->thunkpos= yythunkpos991; if (!yymatchChar(G, 'P')) goto l990;
}
l991:; if (!yy_Spnl(G)) { goto l990; }
l993:;
{ int yypos994= G->pos, yythunkpos994= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l994; } goto l993;
l994:; G->pos= yypos994; G->thunkpos= yythunkpos994;
} if (!yymatchChar(G, '>')) goto l990;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
return 1;
l990:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenP", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOl")); if (!yy_HtmlBlockOpenOl(G)) { goto l995; }
l996:;
{ int yypos997= G->pos, yythunkpos997= G->thunkpos;
{ int yypos998= G->pos, yythunkpos998= G->thunkpos; if (!yy_HtmlBlockOl(G)) { goto l999; } goto l998;
l999:; G->pos= yypos998; G->thunkpos= yythunkpos998;
{ int yypos1000= G->pos, yythunkpos1000= G->thunkpos; if (!yy_HtmlBlockCloseOl(G)) { goto l1000; } goto l997;
l1000:; G->pos= yypos1000; G->thunkpos= yythunkpos1000;
} if (!yymatchDot(G)) goto l997;
}
l998:; goto l996;
l997:; G->pos= yypos997; G->thunkpos= yythunkpos997;
} if (!yy_HtmlBlockCloseOl(G)) { goto l995; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
return 1;
l995:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseOl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseOl")); if (!yymatchChar(G, '<')) goto l1001; if (!yy_Spnl(G)) { goto l1001; } if (!yymatchChar(G, '/')) goto l1001;
{ int yypos1002= G->pos, yythunkpos1002= G->thunkpos; if (!yymatchString(G, "ol")) goto l1003; goto l1002;
l1003:; G->pos= yypos1002; G->thunkpos= yythunkpos1002; if (!yymatchString(G, "OL")) goto l1001;
}
l1002:; if (!yy_Spnl(G)) { goto l1001; } if (!yymatchChar(G, '>')) goto l1001;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
return 1;
l1001:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseOl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenOl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenOl")); if (!yymatchChar(G, '<')) goto l1004; if (!yy_Spnl(G)) { goto l1004; }
{ int yypos1005= G->pos, yythunkpos1005= G->thunkpos; if (!yymatchString(G, "ol")) goto l1006; goto l1005;
l1006:; G->pos= yypos1005; G->thunkpos= yythunkpos1005; if (!yymatchString(G, "OL")) goto l1004;
}
l1005:; if (!yy_Spnl(G)) { goto l1004; }
l1007:;
{ int yypos1008= G->pos, yythunkpos1008= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1008; } goto l1007;
l1008:; G->pos= yypos1008; G->thunkpos= yythunkpos1008;
} if (!yymatchChar(G, '>')) goto l1004;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
return 1;
l1004:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenOl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockNoscript(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockNoscript")); if (!yy_HtmlBlockOpenNoscript(G)) { goto l1009; }
l1010:;
{ int yypos1011= G->pos, yythunkpos1011= G->thunkpos;
{ int yypos1012= G->pos, yythunkpos1012= G->thunkpos; if (!yy_HtmlBlockNoscript(G)) { goto l1013; } goto l1012;
l1013:; G->pos= yypos1012; G->thunkpos= yythunkpos1012;
{ int yypos1014= G->pos, yythunkpos1014= G->thunkpos; if (!yy_HtmlBlockCloseNoscript(G)) { goto l1014; } goto l1011;
l1014:; G->pos= yypos1014; G->thunkpos= yythunkpos1014;
} if (!yymatchDot(G)) goto l1011;
}
l1012:; goto l1010;
l1011:; G->pos= yypos1011; G->thunkpos= yythunkpos1011;
} if (!yy_HtmlBlockCloseNoscript(G)) { goto l1009; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
return 1;
l1009:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoscript", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseNoscript(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseNoscript")); if (!yymatchChar(G, '<')) goto l1015; if (!yy_Spnl(G)) { goto l1015; } if (!yymatchChar(G, '/')) goto l1015;
{ int yypos1016= G->pos, yythunkpos1016= G->thunkpos; if (!yymatchString(G, "noscript")) goto l1017; goto l1016;
l1017:; G->pos= yypos1016; G->thunkpos= yythunkpos1016; if (!yymatchString(G, "NOSCRIPT")) goto l1015;
}
l1016:; if (!yy_Spnl(G)) { goto l1015; } if (!yymatchChar(G, '>')) goto l1015;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
return 1;
l1015:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoscript", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenNoscript(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenNoscript")); if (!yymatchChar(G, '<')) goto l1018; if (!yy_Spnl(G)) { goto l1018; }
{ int yypos1019= G->pos, yythunkpos1019= G->thunkpos; if (!yymatchString(G, "noscript")) goto l1020; goto l1019;
l1020:; G->pos= yypos1019; G->thunkpos= yythunkpos1019; if (!yymatchString(G, "NOSCRIPT")) goto l1018;
}
l1019:; if (!yy_Spnl(G)) { goto l1018; }
l1021:;
{ int yypos1022= G->pos, yythunkpos1022= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1022; } goto l1021;
l1022:; G->pos= yypos1022; G->thunkpos= yythunkpos1022;
} if (!yymatchChar(G, '>')) goto l1018;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
return 1;
l1018:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoscript", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockNoframes(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockNoframes")); if (!yy_HtmlBlockOpenNoframes(G)) { goto l1023; }
l1024:;
{ int yypos1025= G->pos, yythunkpos1025= G->thunkpos;
{ int yypos1026= G->pos, yythunkpos1026= G->thunkpos; if (!yy_HtmlBlockNoframes(G)) { goto l1027; } goto l1026;
l1027:; G->pos= yypos1026; G->thunkpos= yythunkpos1026;
{ int yypos1028= G->pos, yythunkpos1028= G->thunkpos; if (!yy_HtmlBlockCloseNoframes(G)) { goto l1028; } goto l1025;
l1028:; G->pos= yypos1028; G->thunkpos= yythunkpos1028;
} if (!yymatchDot(G)) goto l1025;
}
l1026:; goto l1024;
l1025:; G->pos= yypos1025; G->thunkpos= yythunkpos1025;
} if (!yy_HtmlBlockCloseNoframes(G)) { goto l1023; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
return 1;
l1023:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockNoframes", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseNoframes(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseNoframes")); if (!yymatchChar(G, '<')) goto l1029; if (!yy_Spnl(G)) { goto l1029; } if (!yymatchChar(G, '/')) goto l1029;
{ int yypos1030= G->pos, yythunkpos1030= G->thunkpos; if (!yymatchString(G, "noframes")) goto l1031; goto l1030;
l1031:; G->pos= yypos1030; G->thunkpos= yythunkpos1030; if (!yymatchString(G, "NOFRAMES")) goto l1029;
}
l1030:; if (!yy_Spnl(G)) { goto l1029; } if (!yymatchChar(G, '>')) goto l1029;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
return 1;
l1029:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseNoframes", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenNoframes(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenNoframes")); if (!yymatchChar(G, '<')) goto l1032; if (!yy_Spnl(G)) { goto l1032; }
{ int yypos1033= G->pos, yythunkpos1033= G->thunkpos; if (!yymatchString(G, "noframes")) goto l1034; goto l1033;
l1034:; G->pos= yypos1033; G->thunkpos= yythunkpos1033; if (!yymatchString(G, "NOFRAMES")) goto l1032;
}
l1033:; if (!yy_Spnl(G)) { goto l1032; }
l1035:;
{ int yypos1036= G->pos, yythunkpos1036= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1036; } goto l1035;
l1036:; G->pos= yypos1036; G->thunkpos= yythunkpos1036;
} if (!yymatchChar(G, '>')) goto l1032;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
return 1;
l1032:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenNoframes", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockMenu(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockMenu")); if (!yy_HtmlBlockOpenMenu(G)) { goto l1037; }
l1038:;
{ int yypos1039= G->pos, yythunkpos1039= G->thunkpos;
{ int yypos1040= G->pos, yythunkpos1040= G->thunkpos; if (!yy_HtmlBlockMenu(G)) { goto l1041; } goto l1040;
l1041:; G->pos= yypos1040; G->thunkpos= yythunkpos1040;
{ int yypos1042= G->pos, yythunkpos1042= G->thunkpos; if (!yy_HtmlBlockCloseMenu(G)) { goto l1042; } goto l1039;
l1042:; G->pos= yypos1042; G->thunkpos= yythunkpos1042;
} if (!yymatchDot(G)) goto l1039;
}
l1040:; goto l1038;
l1039:; G->pos= yypos1039; G->thunkpos= yythunkpos1039;
} if (!yy_HtmlBlockCloseMenu(G)) { goto l1037; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
return 1;
l1037:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockMenu", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseMenu(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseMenu")); if (!yymatchChar(G, '<')) goto l1043; if (!yy_Spnl(G)) { goto l1043; } if (!yymatchChar(G, '/')) goto l1043;
{ int yypos1044= G->pos, yythunkpos1044= G->thunkpos; if (!yymatchString(G, "menu")) goto l1045; goto l1044;
l1045:; G->pos= yypos1044; G->thunkpos= yythunkpos1044; if (!yymatchString(G, "MENU")) goto l1043;
}
l1044:; if (!yy_Spnl(G)) { goto l1043; } if (!yymatchChar(G, '>')) goto l1043;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
return 1;
l1043:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseMenu", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenMenu(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenMenu")); if (!yymatchChar(G, '<')) goto l1046; if (!yy_Spnl(G)) { goto l1046; }
{ int yypos1047= G->pos, yythunkpos1047= G->thunkpos; if (!yymatchString(G, "menu")) goto l1048; goto l1047;
l1048:; G->pos= yypos1047; G->thunkpos= yythunkpos1047; if (!yymatchString(G, "MENU")) goto l1046;
}
l1047:; if (!yy_Spnl(G)) { goto l1046; }
l1049:;
{ int yypos1050= G->pos, yythunkpos1050= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1050; } goto l1049;
l1050:; G->pos= yypos1050; G->thunkpos= yythunkpos1050;
} if (!yymatchChar(G, '>')) goto l1046;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
return 1;
l1046:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenMenu", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockH6(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "HtmlBlockH6")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1051; if (!yy_LocMarker(G)) { goto l1051; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH6(G)) { goto l1051; }
l1052:;
{ int yypos1053= G->pos, yythunkpos1053= G->thunkpos;
{ int yypos1054= G->pos, yythunkpos1054= G->thunkpos; if (!yy_HtmlBlockH6(G)) { goto l1055; } goto l1054;
l1055:; G->pos= yypos1054; G->thunkpos= yythunkpos1054;
{ int yypos1056= G->pos, yythunkpos1056= G->thunkpos; if (!yy_HtmlBlockCloseH6(G)) { goto l1056; } goto l1053;
l1056:; G->pos= yypos1056; G->thunkpos= yythunkpos1056;
} if (!yymatchDot(G)) goto l1053;
}
l1054:; goto l1052;
l1053:; G->pos= yypos1053; G->thunkpos= yythunkpos1053;
} if (!yy_HtmlBlockCloseH6(G)) { goto l1051; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1051; yyDo(G, yy_1_HtmlBlockH6, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH6", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1051:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH6", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseH6(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseH6")); if (!yymatchChar(G, '<')) goto l1057; if (!yy_Spnl(G)) { goto l1057; } if (!yymatchChar(G, '/')) goto l1057;
{ int yypos1058= G->pos, yythunkpos1058= G->thunkpos; if (!yymatchString(G, "h6")) goto l1059; goto l1058;
l1059:; G->pos= yypos1058; G->thunkpos= yythunkpos1058; if (!yymatchString(G, "H6")) goto l1057;
}
l1058:; if (!yy_Spnl(G)) { goto l1057; } if (!yymatchChar(G, '>')) goto l1057;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
return 1;
l1057:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH6", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenH6(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenH6")); if (!yymatchChar(G, '<')) goto l1060; if (!yy_Spnl(G)) { goto l1060; }
{ int yypos1061= G->pos, yythunkpos1061= G->thunkpos; if (!yymatchString(G, "h6")) goto l1062; goto l1061;
l1062:; G->pos= yypos1061; G->thunkpos= yythunkpos1061; if (!yymatchString(G, "H6")) goto l1060;
}
l1061:; if (!yy_Spnl(G)) { goto l1060; }
l1063:;
{ int yypos1064= G->pos, yythunkpos1064= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1064; } goto l1063;
l1064:; G->pos= yypos1064; G->thunkpos= yythunkpos1064;
} if (!yymatchChar(G, '>')) goto l1060;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
return 1;
l1060:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH6", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockH5(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "HtmlBlockH5")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1065; if (!yy_LocMarker(G)) { goto l1065; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH5(G)) { goto l1065; }
l1066:;
{ int yypos1067= G->pos, yythunkpos1067= G->thunkpos;
{ int yypos1068= G->pos, yythunkpos1068= G->thunkpos; if (!yy_HtmlBlockH5(G)) { goto l1069; } goto l1068;
l1069:; G->pos= yypos1068; G->thunkpos= yythunkpos1068;
{ int yypos1070= G->pos, yythunkpos1070= G->thunkpos; if (!yy_HtmlBlockCloseH5(G)) { goto l1070; } goto l1067;
l1070:; G->pos= yypos1070; G->thunkpos= yythunkpos1070;
} if (!yymatchDot(G)) goto l1067;
}
l1068:; goto l1066;
l1067:; G->pos= yypos1067; G->thunkpos= yythunkpos1067;
} if (!yy_HtmlBlockCloseH5(G)) { goto l1065; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1065; yyDo(G, yy_1_HtmlBlockH5, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH5", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1065:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH5", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseH5(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseH5")); if (!yymatchChar(G, '<')) goto l1071; if (!yy_Spnl(G)) { goto l1071; } if (!yymatchChar(G, '/')) goto l1071;
{ int yypos1072= G->pos, yythunkpos1072= G->thunkpos; if (!yymatchString(G, "h5")) goto l1073; goto l1072;
l1073:; G->pos= yypos1072; G->thunkpos= yythunkpos1072; if (!yymatchString(G, "H5")) goto l1071;
}
l1072:; if (!yy_Spnl(G)) { goto l1071; } if (!yymatchChar(G, '>')) goto l1071;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
return 1;
l1071:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH5", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenH5(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenH5")); if (!yymatchChar(G, '<')) goto l1074; if (!yy_Spnl(G)) { goto l1074; }
{ int yypos1075= G->pos, yythunkpos1075= G->thunkpos; if (!yymatchString(G, "h5")) goto l1076; goto l1075;
l1076:; G->pos= yypos1075; G->thunkpos= yythunkpos1075; if (!yymatchString(G, "H5")) goto l1074;
}
l1075:; if (!yy_Spnl(G)) { goto l1074; }
l1077:;
{ int yypos1078= G->pos, yythunkpos1078= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1078; } goto l1077;
l1078:; G->pos= yypos1078; G->thunkpos= yythunkpos1078;
} if (!yymatchChar(G, '>')) goto l1074;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
return 1;
l1074:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH5", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockH4(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "HtmlBlockH4")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1079; if (!yy_LocMarker(G)) { goto l1079; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH4(G)) { goto l1079; }
l1080:;
{ int yypos1081= G->pos, yythunkpos1081= G->thunkpos;
{ int yypos1082= G->pos, yythunkpos1082= G->thunkpos; if (!yy_HtmlBlockH4(G)) { goto l1083; } goto l1082;
l1083:; G->pos= yypos1082; G->thunkpos= yythunkpos1082;
{ int yypos1084= G->pos, yythunkpos1084= G->thunkpos; if (!yy_HtmlBlockCloseH4(G)) { goto l1084; } goto l1081;
l1084:; G->pos= yypos1084; G->thunkpos= yythunkpos1084;
} if (!yymatchDot(G)) goto l1081;
}
l1082:; goto l1080;
l1081:; G->pos= yypos1081; G->thunkpos= yythunkpos1081;
} if (!yy_HtmlBlockCloseH4(G)) { goto l1079; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1079; yyDo(G, yy_1_HtmlBlockH4, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH4", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1079:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH4", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseH4(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseH4")); if (!yymatchChar(G, '<')) goto l1085; if (!yy_Spnl(G)) { goto l1085; } if (!yymatchChar(G, '/')) goto l1085;
{ int yypos1086= G->pos, yythunkpos1086= G->thunkpos; if (!yymatchString(G, "h4")) goto l1087; goto l1086;
l1087:; G->pos= yypos1086; G->thunkpos= yythunkpos1086; if (!yymatchString(G, "H4")) goto l1085;
}
l1086:; if (!yy_Spnl(G)) { goto l1085; } if (!yymatchChar(G, '>')) goto l1085;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
return 1;
l1085:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH4", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenH4(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenH4")); if (!yymatchChar(G, '<')) goto l1088; if (!yy_Spnl(G)) { goto l1088; }
{ int yypos1089= G->pos, yythunkpos1089= G->thunkpos; if (!yymatchString(G, "h4")) goto l1090; goto l1089;
l1090:; G->pos= yypos1089; G->thunkpos= yythunkpos1089; if (!yymatchString(G, "H4")) goto l1088;
}
l1089:; if (!yy_Spnl(G)) { goto l1088; }
l1091:;
{ int yypos1092= G->pos, yythunkpos1092= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1092; } goto l1091;
l1092:; G->pos= yypos1092; G->thunkpos= yythunkpos1092;
} if (!yymatchChar(G, '>')) goto l1088;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
return 1;
l1088:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH4", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockH3(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "HtmlBlockH3")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1093; if (!yy_LocMarker(G)) { goto l1093; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH3(G)) { goto l1093; }
l1094:;
{ int yypos1095= G->pos, yythunkpos1095= G->thunkpos;
{ int yypos1096= G->pos, yythunkpos1096= G->thunkpos; if (!yy_HtmlBlockH3(G)) { goto l1097; } goto l1096;
l1097:; G->pos= yypos1096; G->thunkpos= yythunkpos1096;
{ int yypos1098= G->pos, yythunkpos1098= G->thunkpos; if (!yy_HtmlBlockCloseH3(G)) { goto l1098; } goto l1095;
l1098:; G->pos= yypos1098; G->thunkpos= yythunkpos1098;
} if (!yymatchDot(G)) goto l1095;
}
l1096:; goto l1094;
l1095:; G->pos= yypos1095; G->thunkpos= yythunkpos1095;
} if (!yy_HtmlBlockCloseH3(G)) { goto l1093; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1093; yyDo(G, yy_1_HtmlBlockH3, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH3", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1093:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH3", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseH3(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseH3")); if (!yymatchChar(G, '<')) goto l1099; if (!yy_Spnl(G)) { goto l1099; } if (!yymatchChar(G, '/')) goto l1099;
{ int yypos1100= G->pos, yythunkpos1100= G->thunkpos; if (!yymatchString(G, "h3")) goto l1101; goto l1100;
l1101:; G->pos= yypos1100; G->thunkpos= yythunkpos1100; if (!yymatchString(G, "H3")) goto l1099;
}
l1100:; if (!yy_Spnl(G)) { goto l1099; } if (!yymatchChar(G, '>')) goto l1099;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
return 1;
l1099:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH3", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenH3(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenH3")); if (!yymatchChar(G, '<')) goto l1102; if (!yy_Spnl(G)) { goto l1102; }
{ int yypos1103= G->pos, yythunkpos1103= G->thunkpos; if (!yymatchString(G, "h3")) goto l1104; goto l1103;
l1104:; G->pos= yypos1103; G->thunkpos= yythunkpos1103; if (!yymatchString(G, "H3")) goto l1102;
}
l1103:; if (!yy_Spnl(G)) { goto l1102; }
l1105:;
{ int yypos1106= G->pos, yythunkpos1106= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1106; } goto l1105;
l1106:; G->pos= yypos1106; G->thunkpos= yythunkpos1106;
} if (!yymatchChar(G, '>')) goto l1102;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
return 1;
l1102:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH3", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockH2(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "HtmlBlockH2")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1107; if (!yy_LocMarker(G)) { goto l1107; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH2(G)) { goto l1107; }
l1108:;
{ int yypos1109= G->pos, yythunkpos1109= G->thunkpos;
{ int yypos1110= G->pos, yythunkpos1110= G->thunkpos; if (!yy_HtmlBlockH2(G)) { goto l1111; } goto l1110;
l1111:; G->pos= yypos1110; G->thunkpos= yythunkpos1110;
{ int yypos1112= G->pos, yythunkpos1112= G->thunkpos; if (!yy_HtmlBlockCloseH2(G)) { goto l1112; } goto l1109;
l1112:; G->pos= yypos1112; G->thunkpos= yythunkpos1112;
} if (!yymatchDot(G)) goto l1109;
}
l1110:; goto l1108;
l1109:; G->pos= yypos1109; G->thunkpos= yythunkpos1109;
} if (!yy_HtmlBlockCloseH2(G)) { goto l1107; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1107; yyDo(G, yy_1_HtmlBlockH2, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH2", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1107:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH2", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseH2(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseH2")); if (!yymatchChar(G, '<')) goto l1113; if (!yy_Spnl(G)) { goto l1113; } if (!yymatchChar(G, '/')) goto l1113;
{ int yypos1114= G->pos, yythunkpos1114= G->thunkpos; if (!yymatchString(G, "h2")) goto l1115; goto l1114;
l1115:; G->pos= yypos1114; G->thunkpos= yythunkpos1114; if (!yymatchString(G, "H2")) goto l1113;
}
l1114:; if (!yy_Spnl(G)) { goto l1113; } if (!yymatchChar(G, '>')) goto l1113;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
return 1;
l1113:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH2", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenH2(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenH2")); if (!yymatchChar(G, '<')) goto l1116; if (!yy_Spnl(G)) { goto l1116; }
{ int yypos1117= G->pos, yythunkpos1117= G->thunkpos; if (!yymatchString(G, "h2")) goto l1118; goto l1117;
l1118:; G->pos= yypos1117; G->thunkpos= yythunkpos1117; if (!yymatchString(G, "H2")) goto l1116;
}
l1117:; if (!yy_Spnl(G)) { goto l1116; }
l1119:;
{ int yypos1120= G->pos, yythunkpos1120= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1120; } goto l1119;
l1120:; G->pos= yypos1120; G->thunkpos= yythunkpos1120;
} if (!yymatchChar(G, '>')) goto l1116;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
return 1;
l1116:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH2", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockH1(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "HtmlBlockH1")); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1121; if (!yy_LocMarker(G)) { goto l1121; } yyDo(G, yySet, -1, 0); if (!yy_HtmlBlockOpenH1(G)) { goto l1121; }
l1122:;
{ int yypos1123= G->pos, yythunkpos1123= G->thunkpos;
{ int yypos1124= G->pos, yythunkpos1124= G->thunkpos; if (!yy_HtmlBlockH1(G)) { goto l1125; } goto l1124;
l1125:; G->pos= yypos1124; G->thunkpos= yythunkpos1124;
{ int yypos1126= G->pos, yythunkpos1126= G->thunkpos; if (!yy_HtmlBlockCloseH1(G)) { goto l1126; } goto l1123;
l1126:; G->pos= yypos1126; G->thunkpos= yythunkpos1126;
} if (!yymatchDot(G)) goto l1123;
}
l1124:; goto l1122;
l1123:; G->pos= yypos1123; G->thunkpos= yythunkpos1123;
} if (!yy_HtmlBlockCloseH1(G)) { goto l1121; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1121; yyDo(G, yy_1_HtmlBlockH1, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockH1", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1121:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockH1", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseH1(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseH1")); if (!yymatchChar(G, '<')) goto l1127; if (!yy_Spnl(G)) { goto l1127; } if (!yymatchChar(G, '/')) goto l1127;
{ int yypos1128= G->pos, yythunkpos1128= G->thunkpos; if (!yymatchString(G, "h1")) goto l1129; goto l1128;
l1129:; G->pos= yypos1128; G->thunkpos= yythunkpos1128; if (!yymatchString(G, "H1")) goto l1127;
}
l1128:; if (!yy_Spnl(G)) { goto l1127; } if (!yymatchChar(G, '>')) goto l1127;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
return 1;
l1127:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseH1", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenH1(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenH1")); if (!yymatchChar(G, '<')) goto l1130; if (!yy_Spnl(G)) { goto l1130; }
{ int yypos1131= G->pos, yythunkpos1131= G->thunkpos; if (!yymatchString(G, "h1")) goto l1132; goto l1131;
l1132:; G->pos= yypos1131; G->thunkpos= yythunkpos1131; if (!yymatchString(G, "H1")) goto l1130;
}
l1131:; if (!yy_Spnl(G)) { goto l1130; }
l1133:;
{ int yypos1134= G->pos, yythunkpos1134= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1134; } goto l1133;
l1134:; G->pos= yypos1134; G->thunkpos= yythunkpos1134;
} if (!yymatchChar(G, '>')) goto l1130;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
return 1;
l1130:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenH1", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockForm(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockForm")); if (!yy_HtmlBlockOpenForm(G)) { goto l1135; }
l1136:;
{ int yypos1137= G->pos, yythunkpos1137= G->thunkpos;
{ int yypos1138= G->pos, yythunkpos1138= G->thunkpos; if (!yy_HtmlBlockForm(G)) { goto l1139; } goto l1138;
l1139:; G->pos= yypos1138; G->thunkpos= yythunkpos1138;
{ int yypos1140= G->pos, yythunkpos1140= G->thunkpos; if (!yy_HtmlBlockCloseForm(G)) { goto l1140; } goto l1137;
l1140:; G->pos= yypos1140; G->thunkpos= yythunkpos1140;
} if (!yymatchDot(G)) goto l1137;
}
l1138:; goto l1136;
l1137:; G->pos= yypos1137; G->thunkpos= yythunkpos1137;
} if (!yy_HtmlBlockCloseForm(G)) { goto l1135; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
return 1;
l1135:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockForm", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseForm(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseForm")); if (!yymatchChar(G, '<')) goto l1141; if (!yy_Spnl(G)) { goto l1141; } if (!yymatchChar(G, '/')) goto l1141;
{ int yypos1142= G->pos, yythunkpos1142= G->thunkpos; if (!yymatchString(G, "form")) goto l1143; goto l1142;
l1143:; G->pos= yypos1142; G->thunkpos= yythunkpos1142; if (!yymatchString(G, "FORM")) goto l1141;
}
l1142:; if (!yy_Spnl(G)) { goto l1141; } if (!yymatchChar(G, '>')) goto l1141;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
return 1;
l1141:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseForm", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenForm(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenForm")); if (!yymatchChar(G, '<')) goto l1144; if (!yy_Spnl(G)) { goto l1144; }
{ int yypos1145= G->pos, yythunkpos1145= G->thunkpos; if (!yymatchString(G, "form")) goto l1146; goto l1145;
l1146:; G->pos= yypos1145; G->thunkpos= yythunkpos1145; if (!yymatchString(G, "FORM")) goto l1144;
}
l1145:; if (!yy_Spnl(G)) { goto l1144; }
l1147:;
{ int yypos1148= G->pos, yythunkpos1148= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1148; } goto l1147;
l1148:; G->pos= yypos1148; G->thunkpos= yythunkpos1148;
} if (!yymatchChar(G, '>')) goto l1144;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
return 1;
l1144:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenForm", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockFieldset(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockFieldset")); if (!yy_HtmlBlockOpenFieldset(G)) { goto l1149; }
l1150:;
{ int yypos1151= G->pos, yythunkpos1151= G->thunkpos;
{ int yypos1152= G->pos, yythunkpos1152= G->thunkpos; if (!yy_HtmlBlockFieldset(G)) { goto l1153; } goto l1152;
l1153:; G->pos= yypos1152; G->thunkpos= yythunkpos1152;
{ int yypos1154= G->pos, yythunkpos1154= G->thunkpos; if (!yy_HtmlBlockCloseFieldset(G)) { goto l1154; } goto l1151;
l1154:; G->pos= yypos1154; G->thunkpos= yythunkpos1154;
} if (!yymatchDot(G)) goto l1151;
}
l1152:; goto l1150;
l1151:; G->pos= yypos1151; G->thunkpos= yythunkpos1151;
} if (!yy_HtmlBlockCloseFieldset(G)) { goto l1149; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
return 1;
l1149:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockFieldset", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseFieldset(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseFieldset")); if (!yymatchChar(G, '<')) goto l1155; if (!yy_Spnl(G)) { goto l1155; } if (!yymatchChar(G, '/')) goto l1155;
{ int yypos1156= G->pos, yythunkpos1156= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1157; goto l1156;
l1157:; G->pos= yypos1156; G->thunkpos= yythunkpos1156; if (!yymatchString(G, "FIELDSET")) goto l1155;
}
l1156:; if (!yy_Spnl(G)) { goto l1155; } if (!yymatchChar(G, '>')) goto l1155;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
return 1;
l1155:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseFieldset", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenFieldset(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenFieldset")); if (!yymatchChar(G, '<')) goto l1158; if (!yy_Spnl(G)) { goto l1158; }
{ int yypos1159= G->pos, yythunkpos1159= G->thunkpos; if (!yymatchString(G, "fieldset")) goto l1160; goto l1159;
l1160:; G->pos= yypos1159; G->thunkpos= yythunkpos1159; if (!yymatchString(G, "FIELDSET")) goto l1158;
}
l1159:; if (!yy_Spnl(G)) { goto l1158; }
l1161:;
{ int yypos1162= G->pos, yythunkpos1162= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1162; } goto l1161;
l1162:; G->pos= yypos1162; G->thunkpos= yythunkpos1162;
} if (!yymatchChar(G, '>')) goto l1158;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
return 1;
l1158:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenFieldset", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockDl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockDl")); if (!yy_HtmlBlockOpenDl(G)) { goto l1163; }
l1164:;
{ int yypos1165= G->pos, yythunkpos1165= G->thunkpos;
{ int yypos1166= G->pos, yythunkpos1166= G->thunkpos; if (!yy_HtmlBlockDl(G)) { goto l1167; } goto l1166;
l1167:; G->pos= yypos1166; G->thunkpos= yythunkpos1166;
{ int yypos1168= G->pos, yythunkpos1168= G->thunkpos; if (!yy_HtmlBlockCloseDl(G)) { goto l1168; } goto l1165;
l1168:; G->pos= yypos1168; G->thunkpos= yythunkpos1168;
} if (!yymatchDot(G)) goto l1165;
}
l1166:; goto l1164;
l1165:; G->pos= yypos1165; G->thunkpos= yythunkpos1165;
} if (!yy_HtmlBlockCloseDl(G)) { goto l1163; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
return 1;
l1163:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseDl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseDl")); if (!yymatchChar(G, '<')) goto l1169; if (!yy_Spnl(G)) { goto l1169; } if (!yymatchChar(G, '/')) goto l1169;
{ int yypos1170= G->pos, yythunkpos1170= G->thunkpos; if (!yymatchString(G, "dl")) goto l1171; goto l1170;
l1171:; G->pos= yypos1170; G->thunkpos= yythunkpos1170; if (!yymatchString(G, "DL")) goto l1169;
}
l1170:; if (!yy_Spnl(G)) { goto l1169; } if (!yymatchChar(G, '>')) goto l1169;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
return 1;
l1169:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenDl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenDl")); if (!yymatchChar(G, '<')) goto l1172; if (!yy_Spnl(G)) { goto l1172; }
{ int yypos1173= G->pos, yythunkpos1173= G->thunkpos; if (!yymatchString(G, "dl")) goto l1174; goto l1173;
l1174:; G->pos= yypos1173; G->thunkpos= yythunkpos1173; if (!yymatchString(G, "DL")) goto l1172;
}
l1173:; if (!yy_Spnl(G)) { goto l1172; }
l1175:;
{ int yypos1176= G->pos, yythunkpos1176= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1176; } goto l1175;
l1176:; G->pos= yypos1176; G->thunkpos= yythunkpos1176;
} if (!yymatchChar(G, '>')) goto l1172;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
return 1;
l1172:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockDiv(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockDiv")); if (!yy_HtmlBlockOpenDiv(G)) { goto l1177; }
l1178:;
{ int yypos1179= G->pos, yythunkpos1179= G->thunkpos;
{ int yypos1180= G->pos, yythunkpos1180= G->thunkpos; if (!yy_HtmlBlockDiv(G)) { goto l1181; } goto l1180;
l1181:; G->pos= yypos1180; G->thunkpos= yythunkpos1180;
{ int yypos1182= G->pos, yythunkpos1182= G->thunkpos; if (!yy_HtmlBlockCloseDiv(G)) { goto l1182; } goto l1179;
l1182:; G->pos= yypos1182; G->thunkpos= yythunkpos1182;
} if (!yymatchDot(G)) goto l1179;
}
l1180:; goto l1178;
l1179:; G->pos= yypos1179; G->thunkpos= yythunkpos1179;
} if (!yy_HtmlBlockCloseDiv(G)) { goto l1177; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
return 1;
l1177:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDiv", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseDiv(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseDiv")); if (!yymatchChar(G, '<')) goto l1183; if (!yy_Spnl(G)) { goto l1183; } if (!yymatchChar(G, '/')) goto l1183;
{ int yypos1184= G->pos, yythunkpos1184= G->thunkpos; if (!yymatchString(G, "div")) goto l1185; goto l1184;
l1185:; G->pos= yypos1184; G->thunkpos= yythunkpos1184; if (!yymatchString(G, "DIV")) goto l1183;
}
l1184:; if (!yy_Spnl(G)) { goto l1183; } if (!yymatchChar(G, '>')) goto l1183;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
return 1;
l1183:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDiv", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenDiv(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenDiv")); if (!yymatchChar(G, '<')) goto l1186; if (!yy_Spnl(G)) { goto l1186; }
{ int yypos1187= G->pos, yythunkpos1187= G->thunkpos; if (!yymatchString(G, "div")) goto l1188; goto l1187;
l1188:; G->pos= yypos1187; G->thunkpos= yythunkpos1187; if (!yymatchString(G, "DIV")) goto l1186;
}
l1187:; if (!yy_Spnl(G)) { goto l1186; }
l1189:;
{ int yypos1190= G->pos, yythunkpos1190= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1190; } goto l1189;
l1190:; G->pos= yypos1190; G->thunkpos= yythunkpos1190;
} if (!yymatchChar(G, '>')) goto l1186;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
return 1;
l1186:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDiv", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockDir(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockDir")); if (!yy_HtmlBlockOpenDir(G)) { goto l1191; }
l1192:;
{ int yypos1193= G->pos, yythunkpos1193= G->thunkpos;
{ int yypos1194= G->pos, yythunkpos1194= G->thunkpos; if (!yy_HtmlBlockDir(G)) { goto l1195; } goto l1194;
l1195:; G->pos= yypos1194; G->thunkpos= yythunkpos1194;
{ int yypos1196= G->pos, yythunkpos1196= G->thunkpos; if (!yy_HtmlBlockCloseDir(G)) { goto l1196; } goto l1193;
l1196:; G->pos= yypos1196; G->thunkpos= yythunkpos1196;
} if (!yymatchDot(G)) goto l1193;
}
l1194:; goto l1192;
l1193:; G->pos= yypos1193; G->thunkpos= yythunkpos1193;
} if (!yy_HtmlBlockCloseDir(G)) { goto l1191; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
return 1;
l1191:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockDir", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseDir(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseDir")); if (!yymatchChar(G, '<')) goto l1197; if (!yy_Spnl(G)) { goto l1197; } if (!yymatchChar(G, '/')) goto l1197;
{ int yypos1198= G->pos, yythunkpos1198= G->thunkpos; if (!yymatchString(G, "dir")) goto l1199; goto l1198;
l1199:; G->pos= yypos1198; G->thunkpos= yythunkpos1198; if (!yymatchString(G, "DIR")) goto l1197;
}
l1198:; if (!yy_Spnl(G)) { goto l1197; } if (!yymatchChar(G, '>')) goto l1197;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
return 1;
l1197:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseDir", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenDir(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenDir")); if (!yymatchChar(G, '<')) goto l1200; if (!yy_Spnl(G)) { goto l1200; }
{ int yypos1201= G->pos, yythunkpos1201= G->thunkpos; if (!yymatchString(G, "dir")) goto l1202; goto l1201;
l1202:; G->pos= yypos1201; G->thunkpos= yythunkpos1201; if (!yymatchString(G, "DIR")) goto l1200;
}
l1201:; if (!yy_Spnl(G)) { goto l1200; }
l1203:;
{ int yypos1204= G->pos, yythunkpos1204= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1204; } goto l1203;
l1204:; G->pos= yypos1204; G->thunkpos= yythunkpos1204;
} if (!yymatchChar(G, '>')) goto l1200;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
return 1;
l1200:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenDir", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCenter(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCenter")); if (!yy_HtmlBlockOpenCenter(G)) { goto l1205; }
l1206:;
{ int yypos1207= G->pos, yythunkpos1207= G->thunkpos;
{ int yypos1208= G->pos, yythunkpos1208= G->thunkpos; if (!yy_HtmlBlockCenter(G)) { goto l1209; } goto l1208;
l1209:; G->pos= yypos1208; G->thunkpos= yythunkpos1208;
{ int yypos1210= G->pos, yythunkpos1210= G->thunkpos; if (!yy_HtmlBlockCloseCenter(G)) { goto l1210; } goto l1207;
l1210:; G->pos= yypos1210; G->thunkpos= yythunkpos1210;
} if (!yymatchDot(G)) goto l1207;
}
l1208:; goto l1206;
l1207:; G->pos= yypos1207; G->thunkpos= yythunkpos1207;
} if (!yy_HtmlBlockCloseCenter(G)) { goto l1205; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
return 1;
l1205:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCenter", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseCenter(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseCenter")); if (!yymatchChar(G, '<')) goto l1211; if (!yy_Spnl(G)) { goto l1211; } if (!yymatchChar(G, '/')) goto l1211;
{ int yypos1212= G->pos, yythunkpos1212= G->thunkpos; if (!yymatchString(G, "center")) goto l1213; goto l1212;
l1213:; G->pos= yypos1212; G->thunkpos= yythunkpos1212; if (!yymatchString(G, "CENTER")) goto l1211;
}
l1212:; if (!yy_Spnl(G)) { goto l1211; } if (!yymatchChar(G, '>')) goto l1211;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
return 1;
l1211:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseCenter", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenCenter(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenCenter")); if (!yymatchChar(G, '<')) goto l1214; if (!yy_Spnl(G)) { goto l1214; }
{ int yypos1215= G->pos, yythunkpos1215= G->thunkpos; if (!yymatchString(G, "center")) goto l1216; goto l1215;
l1216:; G->pos= yypos1215; G->thunkpos= yythunkpos1215; if (!yymatchString(G, "CENTER")) goto l1214;
}
l1215:; if (!yy_Spnl(G)) { goto l1214; }
l1217:;
{ int yypos1218= G->pos, yythunkpos1218= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1218; } goto l1217;
l1218:; G->pos= yypos1218; G->thunkpos= yythunkpos1218;
} if (!yymatchChar(G, '>')) goto l1214;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
return 1;
l1214:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenCenter", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockBlockquote(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockBlockquote")); if (!yy_HtmlBlockOpenBlockquote(G)) { goto l1219; }
l1220:;
{ int yypos1221= G->pos, yythunkpos1221= G->thunkpos;
{ int yypos1222= G->pos, yythunkpos1222= G->thunkpos; if (!yy_HtmlBlockBlockquote(G)) { goto l1223; } goto l1222;
l1223:; G->pos= yypos1222; G->thunkpos= yythunkpos1222;
{ int yypos1224= G->pos, yythunkpos1224= G->thunkpos; if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1224; } goto l1221;
l1224:; G->pos= yypos1224; G->thunkpos= yythunkpos1224;
} if (!yymatchDot(G)) goto l1221;
}
l1222:; goto l1220;
l1221:; G->pos= yypos1221; G->thunkpos= yythunkpos1221;
} if (!yy_HtmlBlockCloseBlockquote(G)) { goto l1219; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
return 1;
l1219:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockBlockquote", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseBlockquote(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseBlockquote")); if (!yymatchChar(G, '<')) goto l1225; if (!yy_Spnl(G)) { goto l1225; } if (!yymatchChar(G, '/')) goto l1225;
{ int yypos1226= G->pos, yythunkpos1226= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1227; goto l1226;
l1227:; G->pos= yypos1226; G->thunkpos= yythunkpos1226; if (!yymatchString(G, "BLOCKQUOTE")) goto l1225;
}
l1226:; if (!yy_Spnl(G)) { goto l1225; } if (!yymatchChar(G, '>')) goto l1225;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
return 1;
l1225:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseBlockquote", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenBlockquote(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenBlockquote")); if (!yymatchChar(G, '<')) goto l1228; if (!yy_Spnl(G)) { goto l1228; }
{ int yypos1229= G->pos, yythunkpos1229= G->thunkpos; if (!yymatchString(G, "blockquote")) goto l1230; goto l1229;
l1230:; G->pos= yypos1229; G->thunkpos= yythunkpos1229; if (!yymatchString(G, "BLOCKQUOTE")) goto l1228;
}
l1229:; if (!yy_Spnl(G)) { goto l1228; }
l1231:;
{ int yypos1232= G->pos, yythunkpos1232= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1232; } goto l1231;
l1232:; G->pos= yypos1232; G->thunkpos= yythunkpos1232;
} if (!yymatchChar(G, '>')) goto l1228;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
return 1;
l1228:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenBlockquote", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockAddress(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockAddress")); if (!yy_HtmlBlockOpenAddress(G)) { goto l1233; }
l1234:;
{ int yypos1235= G->pos, yythunkpos1235= G->thunkpos;
{ int yypos1236= G->pos, yythunkpos1236= G->thunkpos; if (!yy_HtmlBlockAddress(G)) { goto l1237; } goto l1236;
l1237:; G->pos= yypos1236; G->thunkpos= yythunkpos1236;
{ int yypos1238= G->pos, yythunkpos1238= G->thunkpos; if (!yy_HtmlBlockCloseAddress(G)) { goto l1238; } goto l1235;
l1238:; G->pos= yypos1238; G->thunkpos= yythunkpos1238;
} if (!yymatchDot(G)) goto l1235;
}
l1236:; goto l1234;
l1235:; G->pos= yypos1235; G->thunkpos= yythunkpos1235;
} if (!yy_HtmlBlockCloseAddress(G)) { goto l1233; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
return 1;
l1233:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockAddress", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockCloseAddress(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockCloseAddress")); if (!yymatchChar(G, '<')) goto l1239; if (!yy_Spnl(G)) { goto l1239; } if (!yymatchChar(G, '/')) goto l1239;
{ int yypos1240= G->pos, yythunkpos1240= G->thunkpos; if (!yymatchString(G, "address")) goto l1241; goto l1240;
l1241:; G->pos= yypos1240; G->thunkpos= yythunkpos1240; if (!yymatchString(G, "ADDRESS")) goto l1239;
}
l1240:; if (!yy_Spnl(G)) { goto l1239; } if (!yymatchChar(G, '>')) goto l1239;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
return 1;
l1239:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockCloseAddress", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlAttribute(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlAttribute"));
{ int yypos1245= G->pos, yythunkpos1245= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1246; } goto l1245;
l1246:; G->pos= yypos1245; G->thunkpos= yythunkpos1245; if (!yymatchChar(G, '-')) goto l1242;
}
l1245:;
l1243:;
{ int yypos1244= G->pos, yythunkpos1244= G->thunkpos;
{ int yypos1247= G->pos, yythunkpos1247= G->thunkpos; if (!yy_AlphanumericAscii(G)) { goto l1248; } goto l1247;
l1248:; G->pos= yypos1247; G->thunkpos= yythunkpos1247; if (!yymatchChar(G, '-')) goto l1244;
}
l1247:; goto l1243;
l1244:; G->pos= yypos1244; G->thunkpos= yythunkpos1244;
} if (!yy_Spnl(G)) { goto l1242; }
{ int yypos1249= G->pos, yythunkpos1249= G->thunkpos; if (!yymatchChar(G, '=')) goto l1249; if (!yy_Spnl(G)) { goto l1249; }
{ int yypos1251= G->pos, yythunkpos1251= G->thunkpos; if (!yy_Quoted(G)) { goto l1252; } goto l1251;
l1252:; G->pos= yypos1251; G->thunkpos= yythunkpos1251;
{ int yypos1255= G->pos, yythunkpos1255= G->thunkpos; if (!yymatchChar(G, '>')) goto l1255; goto l1249;
l1255:; G->pos= yypos1255; G->thunkpos= yythunkpos1255;
} if (!yy_Nonspacechar(G)) { goto l1249; }
l1253:;
{ int yypos1254= G->pos, yythunkpos1254= G->thunkpos;
{ int yypos1256= G->pos, yythunkpos1256= G->thunkpos; if (!yymatchChar(G, '>')) goto l1256; goto l1254;
l1256:; G->pos= yypos1256; G->thunkpos= yythunkpos1256;
} if (!yy_Nonspacechar(G)) { goto l1254; } goto l1253;
l1254:; G->pos= yypos1254; G->thunkpos= yythunkpos1254;
}
}
l1251:; goto l1250;
l1249:; G->pos= yypos1249; G->thunkpos= yythunkpos1249;
}
l1250:; if (!yy_Spnl(G)) { goto l1242; }
yyprintf((stderr, " ok %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
return 1;
l1242:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlAttribute", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_HtmlBlockOpenAddress(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "HtmlBlockOpenAddress")); if (!yymatchChar(G, '<')) goto l1257; if (!yy_Spnl(G)) { goto l1257; }
{ int yypos1258= G->pos, yythunkpos1258= G->thunkpos; if (!yymatchString(G, "address")) goto l1259; goto l1258;
l1259:; G->pos= yypos1258; G->thunkpos= yythunkpos1258; if (!yymatchString(G, "ADDRESS")) goto l1257;
}
l1258:; if (!yy_Spnl(G)) { goto l1257; }
l1260:;
{ int yypos1261= G->pos, yythunkpos1261= G->thunkpos; if (!yy_HtmlAttribute(G)) { goto l1261; } goto l1260;
l1261:; G->pos= yypos1261; G->thunkpos= yythunkpos1261;
} if (!yymatchChar(G, '>')) goto l1257;
yyprintf((stderr, " ok %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
return 1;
l1257:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "HtmlBlockOpenAddress", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_OptionallyIndentedLine(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "OptionallyIndentedLine"));
{ int yypos1263= G->pos, yythunkpos1263= G->thunkpos; if (!yy_Indent(G)) { goto l1263; } goto l1264;
l1263:; G->pos= yypos1263; G->thunkpos= yythunkpos1263;
}
l1264:; if (!yy_Line(G)) { goto l1262; }
yyprintf((stderr, " ok %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
return 1;
l1262:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "OptionallyIndentedLine", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Indent(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Indent"));
{ int yypos1266= G->pos, yythunkpos1266= G->thunkpos; if (!yymatchChar(G, '\t')) goto l1267; goto l1266;
l1267:; G->pos= yypos1266; G->thunkpos= yythunkpos1266; if (!yymatchString(G, " ")) goto l1265;
}
l1266:;
yyprintf((stderr, " ok %s @ %s\n", "Indent", G->buf+G->pos));
return 1;
l1265:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Indent", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ListBlockLine(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "ListBlockLine"));
{ int yypos1269= G->pos, yythunkpos1269= G->thunkpos; if (!yy_BlankLine(G)) { goto l1269; } goto l1268;
l1269:; G->pos= yypos1269; G->thunkpos= yythunkpos1269;
}
{ int yypos1270= G->pos, yythunkpos1270= G->thunkpos;
{ int yypos1271= G->pos, yythunkpos1271= G->thunkpos; if (!yy_Indent(G)) { goto l1271; } goto l1272;
l1271:; G->pos= yypos1271; G->thunkpos= yythunkpos1271;
}
l1272:;
{ int yypos1273= G->pos, yythunkpos1273= G->thunkpos; if (!yy_Bullet(G)) { goto l1274; } goto l1273;
l1274:; G->pos= yypos1273; G->thunkpos= yythunkpos1273; if (!yy_Enumerator(G)) { goto l1270; }
}
l1273:; goto l1268;
l1270:; G->pos= yypos1270; G->thunkpos= yythunkpos1270;
}
{ int yypos1275= G->pos, yythunkpos1275= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1275; } goto l1268;
l1275:; G->pos= yypos1275; G->thunkpos= yythunkpos1275;
} if (!yy_OptionallyIndentedLine(G)) { goto l1268; }
yyprintf((stderr, " ok %s @ %s\n", "ListBlockLine", G->buf+G->pos));
return 1;
l1268:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ListBlockLine", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ListContinuationBlock(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "ListContinuationBlock")); if (!yy_StartList(G)) { goto l1276; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1276;
l1277:;
{ int yypos1278= G->pos, yythunkpos1278= G->thunkpos; if (!yy_BlankLine(G)) { goto l1278; } goto l1277;
l1278:; G->pos= yypos1278; G->thunkpos= yythunkpos1278;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l1276; yyDo(G, yy_1_ListContinuationBlock, G->begin, G->end); if (!yy_Indent(G)) { goto l1276; } if (!yy_ListBlock(G)) { goto l1276; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end);
l1279:;
{ int yypos1280= G->pos, yythunkpos1280= G->thunkpos; if (!yy_Indent(G)) { goto l1280; } if (!yy_ListBlock(G)) { goto l1280; } yyDo(G, yy_2_ListContinuationBlock, G->begin, G->end); goto l1279;
l1280:; G->pos= yypos1280; G->thunkpos= yythunkpos1280;
} yyDo(G, yy_3_ListContinuationBlock, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ListContinuationBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1276:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ListContinuationBlock", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ListBlock(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "ListBlock")); if (!yy_StartList(G)) { goto l1281; } yyDo(G, yySet, -1, 0);
{ int yypos1282= G->pos, yythunkpos1282= G->thunkpos; if (!yy_BlankLine(G)) { goto l1282; } goto l1281;
l1282:; G->pos= yypos1282; G->thunkpos= yythunkpos1282;
} if (!yy_Line(G)) { goto l1281; } yyDo(G, yy_1_ListBlock, G->begin, G->end);
l1283:;
{ int yypos1284= G->pos, yythunkpos1284= G->thunkpos; if (!yy_ListBlockLine(G)) { goto l1284; } yyDo(G, yy_2_ListBlock, G->begin, G->end); goto l1283;
l1284:; G->pos= yypos1284; G->thunkpos= yythunkpos1284;
} yyDo(G, yy_3_ListBlock, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ListBlock", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1281:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ListBlock", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ListItem(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "ListItem"));
{ int yypos1286= G->pos, yythunkpos1286= G->thunkpos; if (!yy_Bullet(G)) { goto l1287; } goto l1286;
l1287:; G->pos= yypos1286; G->thunkpos= yythunkpos1286; if (!yy_Enumerator(G)) { goto l1285; }
}
l1286:; if (!yy_StartList(G)) { goto l1285; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1285; } yyDo(G, yy_1_ListItem, G->begin, G->end);
l1288:;
{ int yypos1289= G->pos, yythunkpos1289= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1289; } yyDo(G, yy_2_ListItem, G->begin, G->end); goto l1288;
l1289:; G->pos= yypos1289; G->thunkpos= yythunkpos1289;
} yyDo(G, yy_3_ListItem, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ListItem", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1285:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ListItem", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Enumerator(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Enumerator")); if (!yy_NonindentSpace(G)) { goto l1290; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1290; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l1290;
l1291:;
{ int yypos1292= G->pos, yythunkpos1292= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l1292; goto l1291;
l1292:; G->pos= yypos1292; G->thunkpos= yythunkpos1292;
} if (!yymatchChar(G, '.')) goto l1290; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1290; if (!yy_Spacechar(G)) { goto l1290; }
l1293:;
{ int yypos1294= G->pos, yythunkpos1294= G->thunkpos; if (!yy_Spacechar(G)) { goto l1294; } goto l1293;
l1294:; G->pos= yypos1294; G->thunkpos= yythunkpos1294;
} yyDo(G, yy_1_Enumerator, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Enumerator", G->buf+G->pos));
return 1;
l1290:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Enumerator", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ListItemTight(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "ListItemTight"));
{ int yypos1296= G->pos, yythunkpos1296= G->thunkpos; if (!yy_Bullet(G)) { goto l1297; } goto l1296;
l1297:; G->pos= yypos1296; G->thunkpos= yythunkpos1296; if (!yy_Enumerator(G)) { goto l1295; }
}
l1296:; if (!yy_StartList(G)) { goto l1295; } yyDo(G, yySet, -1, 0); if (!yy_ListBlock(G)) { goto l1295; } yyDo(G, yy_1_ListItemTight, G->begin, G->end);
l1298:;
{ int yypos1299= G->pos, yythunkpos1299= G->thunkpos;
{ int yypos1300= G->pos, yythunkpos1300= G->thunkpos; if (!yy_BlankLine(G)) { goto l1300; } goto l1299;
l1300:; G->pos= yypos1300; G->thunkpos= yythunkpos1300;
} if (!yy_ListContinuationBlock(G)) { goto l1299; } yyDo(G, yy_2_ListItemTight, G->begin, G->end); goto l1298;
l1299:; G->pos= yypos1299; G->thunkpos= yythunkpos1299;
}
{ int yypos1301= G->pos, yythunkpos1301= G->thunkpos; if (!yy_ListContinuationBlock(G)) { goto l1301; } goto l1295;
l1301:; G->pos= yypos1301; G->thunkpos= yythunkpos1301;
} yyDo(G, yy_3_ListItemTight, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ListItemTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1295:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ListItemTight", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ListLoose(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 2, 0);
yyprintf((stderr, "%s\n", "ListLoose")); if (!yy_StartList(G)) { goto l1302; } yyDo(G, yySet, -2, 0); if (!yy_ListItem(G)) { goto l1302; } yyDo(G, yySet, -1, 0);
l1305:;
{ int yypos1306= G->pos, yythunkpos1306= G->thunkpos; if (!yy_BlankLine(G)) { goto l1306; } goto l1305;
l1306:; G->pos= yypos1306; G->thunkpos= yythunkpos1306;
} yyDo(G, yy_1_ListLoose, G->begin, G->end);
l1303:;
{ int yypos1304= G->pos, yythunkpos1304= G->thunkpos; if (!yy_ListItem(G)) { goto l1304; } yyDo(G, yySet, -1, 0);
l1307:;
{ int yypos1308= G->pos, yythunkpos1308= G->thunkpos; if (!yy_BlankLine(G)) { goto l1308; } goto l1307;
l1308:; G->pos= yypos1308; G->thunkpos= yythunkpos1308;
} yyDo(G, yy_1_ListLoose, G->begin, G->end); goto l1303;
l1304:; G->pos= yypos1304; G->thunkpos= yythunkpos1304;
} yyDo(G, yy_2_ListLoose, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ListLoose", G->buf+G->pos)); yyDo(G, yyPop, 2, 0);
return 1;
l1302:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ListLoose", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_ListTight(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "ListTight")); if (!yy_StartList(G)) { goto l1309; } yyDo(G, yySet, -1, 0); if (!yy_ListItemTight(G)) { goto l1309; } yyDo(G, yy_1_ListTight, G->begin, G->end);
l1310:;
{ int yypos1311= G->pos, yythunkpos1311= G->thunkpos; if (!yy_ListItemTight(G)) { goto l1311; } yyDo(G, yy_1_ListTight, G->begin, G->end); goto l1310;
l1311:; G->pos= yypos1311; G->thunkpos= yythunkpos1311;
}
l1312:;
{ int yypos1313= G->pos, yythunkpos1313= G->thunkpos; if (!yy_BlankLine(G)) { goto l1313; } goto l1312;
l1313:; G->pos= yypos1313; G->thunkpos= yythunkpos1313;
}
{ int yypos1314= G->pos, yythunkpos1314= G->thunkpos;
{ int yypos1315= G->pos, yythunkpos1315= G->thunkpos; if (!yy_Bullet(G)) { goto l1316; } goto l1315;
l1316:; G->pos= yypos1315; G->thunkpos= yythunkpos1315; if (!yy_Enumerator(G)) { goto l1314; }
}
l1315:; goto l1309;
l1314:; G->pos= yypos1314; G->thunkpos= yythunkpos1314;
} yyDo(G, yy_2_ListTight, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "ListTight", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1309:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "ListTight", 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 yypos1318= G->pos, yythunkpos1318= G->thunkpos; if (!yy_HorizontalRule(G)) { goto l1318; } goto l1317;
l1318:; G->pos= yypos1318; G->thunkpos= yythunkpos1318;
} if (!yy_NonindentSpace(G)) { goto l1317; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1317;
{ int yypos1319= G->pos, yythunkpos1319= G->thunkpos; if (!yymatchChar(G, '+')) goto l1320; goto l1319;
l1320:; G->pos= yypos1319; G->thunkpos= yythunkpos1319; if (!yymatchChar(G, '*')) goto l1321; goto l1319;
l1321:; G->pos= yypos1319; G->thunkpos= yythunkpos1319; if (!yymatchChar(G, '-')) goto l1317;
}
l1319:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1317; if (!yy_Spacechar(G)) { goto l1317; }
l1322:;
{ int yypos1323= G->pos, yythunkpos1323= G->thunkpos; if (!yy_Spacechar(G)) { goto l1323; } goto l1322;
l1323:; G->pos= yypos1323; G->thunkpos= yythunkpos1323;
} yyDo(G, yy_1_Bullet, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Bullet", G->buf+G->pos));
return 1;
l1317:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Bullet", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_InlineEquationMultiple(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "InlineEquationMultiple"));
{ int yypos1325= G->pos, yythunkpos1325= G->thunkpos; if (!yymatchChar(G, '$')) goto l1325; goto l1324;
l1325:; G->pos= yypos1325; G->thunkpos= yythunkpos1325;
} if (!yy_Nonspacechar(G)) { goto l1324; }
{ int yypos1328= G->pos, yythunkpos1328= G->thunkpos; if (!yymatchChar(G, '$')) goto l1328; goto l1324;
l1328:; G->pos= yypos1328; G->thunkpos= yythunkpos1328;
}
{ int yypos1329= G->pos, yythunkpos1329= G->thunkpos; if (!yy_Newline(G)) { goto l1329; } goto l1324;
l1329:; G->pos= yypos1329; G->thunkpos= yythunkpos1329;
} if (!yymatchDot(G)) goto l1324;
l1326:;
{ int yypos1327= G->pos, yythunkpos1327= G->thunkpos;
{ int yypos1330= G->pos, yythunkpos1330= G->thunkpos; if (!yymatchChar(G, '$')) goto l1330; goto l1327;
l1330:; G->pos= yypos1330; G->thunkpos= yythunkpos1330;
}
{ int yypos1331= G->pos, yythunkpos1331= G->thunkpos; if (!yy_Newline(G)) { goto l1331; } goto l1327;
l1331:; G->pos= yypos1331; G->thunkpos= yythunkpos1331;
} if (!yymatchDot(G)) goto l1327; goto l1326;
l1327:; G->pos= yypos1327; G->thunkpos= yythunkpos1327;
} if (!yymatchChar(G, '$')) goto l1324; yyText(G, G->begin, G->end); if (!( IEP_POST )) goto l1324;
yyprintf((stderr, " ok %s @ %s\n", "InlineEquationMultiple", G->buf+G->pos));
return 1;
l1324:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "InlineEquationMultiple", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_InlineEquationSingle(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "InlineEquationSingle"));
{ 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 (!yymatchChar(G, '\\')) goto l1334; goto l1332;
l1334:; G->pos= yypos1334; G->thunkpos= yythunkpos1334;
} if (!yy_Nonspacechar(G)) { goto l1332; } if (!yymatchChar(G, '$')) goto l1332;
yyprintf((stderr, " ok %s @ %s\n", "InlineEquationSingle", G->buf+G->pos));
return 1;
l1332:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "InlineEquationSingle", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_InlineEquation(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "InlineEquation")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MATH) )) goto l1335; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1335; if (!yymatchChar(G, '$')) goto l1335; yyText(G, G->begin, G->end); if (!( IEP_PRE )) goto l1335;
{ int yypos1336= G->pos, yythunkpos1336= G->thunkpos; if (!yy_InlineEquationSingle(G)) { goto l1337; } goto l1336;
l1337:; G->pos= yypos1336; G->thunkpos= yythunkpos1336; if (!yy_InlineEquationMultiple(G)) { goto l1335; }
}
l1336:;
{ int yypos1338= G->pos, yythunkpos1338= G->thunkpos; if (!yymatchClass(G, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l1338; goto l1335;
l1338:; G->pos= yypos1338; G->thunkpos= yythunkpos1338;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l1335; yyDo(G, yy_1_InlineEquation, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "InlineEquation", G->buf+G->pos));
return 1;
l1335:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "InlineEquation", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Nonspacechar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Nonspacechar"));
{ int yypos1340= G->pos, yythunkpos1340= G->thunkpos; if (!yy_Spacechar(G)) { goto l1340; } goto l1339;
l1340:; G->pos= yypos1340; G->thunkpos= yythunkpos1340;
}
{ int yypos1341= G->pos, yythunkpos1341= G->thunkpos; if (!yy_Newline(G)) { goto l1341; } goto l1339;
l1341:; G->pos= yypos1341; G->thunkpos= yythunkpos1341;
} if (!yymatchDot(G)) goto l1339;
yyprintf((stderr, " ok %s @ %s\n", "Nonspacechar", G->buf+G->pos));
return 1;
l1339:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Nonspacechar", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_DisplayFormulaRawMark(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "DisplayFormulaRawMark"));
{ int yypos1345= G->pos, yythunkpos1345= G->thunkpos; if (!yymatchChar(G, '{')) goto l1345; goto l1342;
l1345:; G->pos= yypos1345; G->thunkpos= yythunkpos1345;
}
{ int yypos1346= G->pos, yythunkpos1346= G->thunkpos; if (!yymatchChar(G, '}')) goto l1346; goto l1342;
l1346:; G->pos= yypos1346; G->thunkpos= yythunkpos1346;
} if (!yy_Nonspacechar(G)) { goto l1342; }
l1343:;
{ int yypos1344= G->pos, yythunkpos1344= G->thunkpos;
{ int yypos1347= G->pos, yythunkpos1347= G->thunkpos; if (!yymatchChar(G, '{')) goto l1347; goto l1344;
l1347:; G->pos= yypos1347; G->thunkpos= yythunkpos1347;
}
{ int yypos1348= G->pos, yythunkpos1348= G->thunkpos; if (!yymatchChar(G, '}')) goto l1348; goto l1344;
l1348:; G->pos= yypos1348; G->thunkpos= yythunkpos1348;
} if (!yy_Nonspacechar(G)) { goto l1344; } goto l1343;
l1344:; G->pos= yypos1344; G->thunkpos= yythunkpos1344;
}
yyprintf((stderr, " ok %s @ %s\n", "DisplayFormulaRawMark", G->buf+G->pos));
return 1;
l1342:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "DisplayFormulaRawMark", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_DisplayFormulaRawEnd(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "DisplayFormulaRawEnd")); if (!yymatchString(G, "\\end")) goto l1349; if (!yymatchChar(G, '{')) goto l1349; if (!yy_DisplayFormulaRawMark(G)) { goto l1349; } if (!yymatchChar(G, '}')) goto l1349;
yyprintf((stderr, " ok %s @ %s\n", "DisplayFormulaRawEnd", G->buf+G->pos));
return 1;
l1349:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "DisplayFormulaRawEnd", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_Spnl(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "Spnl")); if (!yy_Sp(G)) { goto l1350; }
{ int yypos1351= G->pos, yythunkpos1351= G->thunkpos; if (!yy_Newline(G)) { goto l1351; } if (!yy_Sp(G)) { goto l1351; } goto l1352;
l1351:; G->pos= yypos1351; G->thunkpos= yythunkpos1351;
}
l1352:;
yyprintf((stderr, " ok %s @ %s\n", "Spnl", G->buf+G->pos));
return 1;
l1350:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Spnl", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_DisplayFormulaRawStart(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "DisplayFormulaRawStart")); if (!yymatchString(G, "\\begin")) goto l1353; if (!yymatchChar(G, '{')) goto l1353; if (!yy_DisplayFormulaRawMark(G)) { goto l1353; } if (!yymatchChar(G, '}')) goto l1353;
yyprintf((stderr, " ok %s @ %s\n", "DisplayFormulaRawStart", G->buf+G->pos));
return 1;
l1353:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "DisplayFormulaRawStart", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_FormulaNumber(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "FormulaNumber")); if (!yymatchChar(G, '(')) goto l1354;
{ int yypos1357= G->pos, yythunkpos1357= G->thunkpos; if (!yymatchChar(G, ')')) goto l1357; goto l1354;
l1357:; G->pos= yypos1357; G->thunkpos= yythunkpos1357;
}
{ int yypos1358= G->pos, yythunkpos1358= G->thunkpos; if (!yymatchChar(G, '$')) goto l1358; goto l1354;
l1358:; G->pos= yypos1358; G->thunkpos= yythunkpos1358;
}
{ int yypos1359= G->pos, yythunkpos1359= G->thunkpos; if (!yy_Newline(G)) { goto l1359; } goto l1354;
l1359:; G->pos= yypos1359; G->thunkpos= yythunkpos1359;
} if (!yymatchDot(G)) goto l1354;
l1355:;
{ int yypos1356= G->pos, yythunkpos1356= G->thunkpos;
{ int yypos1360= G->pos, yythunkpos1360= G->thunkpos; if (!yymatchChar(G, ')')) goto l1360; goto l1356;
l1360:; G->pos= yypos1360; G->thunkpos= yythunkpos1360;
}
{ int yypos1361= G->pos, yythunkpos1361= G->thunkpos; if (!yymatchChar(G, '$')) goto l1361; goto l1356;
l1361:; G->pos= yypos1361; G->thunkpos= yythunkpos1361;
}
{ int yypos1362= G->pos, yythunkpos1362= G->thunkpos; if (!yy_Newline(G)) { goto l1362; } goto l1356;
l1362:; G->pos= yypos1362; G->thunkpos= yythunkpos1362;
} if (!yymatchDot(G)) goto l1356; goto l1355;
l1356:; G->pos= yypos1356; G->thunkpos= yythunkpos1356;
} if (!yymatchChar(G, ')')) goto l1354;
yyprintf((stderr, " ok %s @ %s\n", "FormulaNumber", G->buf+G->pos));
return 1;
l1354:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "FormulaNumber", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_DisplayFormulaRaw(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "DisplayFormulaRaw")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MATH_RAW) )) goto l1363; if (!yy_NonindentSpace(G)) { goto l1363; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1363; if (!yy_DisplayFormulaRawStart(G)) { goto l1363; } yyText(G, G->begin, G->end); if (!( start_dfr() )) goto l1363; if (!yy_Spnl(G)) { goto l1363; }
l1364:;
{ int yypos1365= G->pos, yythunkpos1365= G->thunkpos;
{ int yypos1366= G->pos, yythunkpos1366= G->thunkpos; if (!yy_DisplayFormulaRawStart(G)) { goto l1367; } yyText(G, G->begin, G->end); if (!( inc_dfr() )) goto l1367; goto l1366;
l1367:; G->pos= yypos1366; G->thunkpos= yythunkpos1366; yyText(G, G->begin, G->end); if (!( nested_dfr() )) goto l1368; if (!yy_DisplayFormulaRawEnd(G)) { goto l1368; } yyText(G, G->begin, G->end); if (!( dec_dfr() )) goto l1368; goto l1366;
l1368:; G->pos= yypos1366; G->thunkpos= yythunkpos1366;
{ int yypos1369= G->pos, yythunkpos1369= G->thunkpos; if (!yy_DisplayFormulaRawEnd(G)) { goto l1369; } goto l1365;
l1369:; G->pos= yypos1369; G->thunkpos= yythunkpos1369;
}
{ int yypos1370= G->pos, yythunkpos1370= G->thunkpos; if (!yy_DisplayFormulaRawStart(G)) { goto l1370; } goto l1365;
l1370:; G->pos= yypos1370; G->thunkpos= yythunkpos1370;
}
{ int yypos1371= G->pos, yythunkpos1371= G->thunkpos; if (!yy_Newline(G)) { goto l1371; } if (!yy_Newline(G)) { goto l1371; }
l1372:;
{ int yypos1373= G->pos, yythunkpos1373= G->thunkpos; if (!yy_Newline(G)) { goto l1373; } goto l1372;
l1373:; G->pos= yypos1373; G->thunkpos= yythunkpos1373;
} goto l1365;
l1371:; G->pos= yypos1371; G->thunkpos= yythunkpos1371;
} if (!yymatchDot(G)) goto l1365;
}
l1366:; goto l1364;
l1365:; G->pos= yypos1365; G->thunkpos= yythunkpos1365;
} yyText(G, G->begin, G->end); if (!( !nested_dfr() )) goto l1363; if (!yy_DisplayFormulaRawEnd(G)) { goto l1363; } yyText(G, G->begin, G->end); if (!( dec_dfr() )) goto l1363; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1363; if (!yy_Sp(G)) { goto l1363; } if (!yy_Newline(G)) { goto l1363; } yyDo(G, yy_1_DisplayFormulaRaw, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "DisplayFormulaRaw", G->buf+G->pos));
return 1;
l1363:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "DisplayFormulaRaw", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_DisplayFormulaDollar(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "DisplayFormulaDollar")); if (!yy_NonindentSpace(G)) { goto l1374; } yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1374; if (!yymatchString(G, "$$")) goto l1374;
l1375:;
{ int yypos1376= G->pos, yythunkpos1376= G->thunkpos;
{ int yypos1377= G->pos, yythunkpos1377= G->thunkpos; if (!yymatchString(G, "$$")) goto l1377; goto l1376;
l1377:; G->pos= yypos1377; G->thunkpos= yythunkpos1377;
} if (!yymatchDot(G)) goto l1376; goto l1375;
l1376:; G->pos= yypos1376; G->thunkpos= yythunkpos1376;
} if (!yymatchString(G, "$$")) goto l1374; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1374; if (!yy_Sp(G)) { goto l1374; }
{ int yypos1378= G->pos, yythunkpos1378= G->thunkpos; if (!yy_FormulaNumber(G)) { goto l1378; } goto l1379;
l1378:; G->pos= yypos1378; G->thunkpos= yythunkpos1378;
}
l1379:; if (!yy_Sp(G)) { goto l1374; } if (!yy_Newline(G)) { goto l1374; } yyDo(G, yy_1_DisplayFormulaDollar, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "DisplayFormulaDollar", G->buf+G->pos));
return 1;
l1374:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "DisplayFormulaDollar", 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 yypos1381= G->pos, yythunkpos1381= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1382; goto l1381;
l1382:; G->pos= yypos1381; G->thunkpos= yythunkpos1381; if (!yymatchChar(G, '\t')) goto l1380;
}
l1381:;
yyprintf((stderr, " ok %s @ %s\n", "Spacechar", G->buf+G->pos));
return 1;
l1380:; 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 l1383;
l1384:;
{ int yypos1385= G->pos, yythunkpos1385= G->thunkpos; if (!yy_Spacechar(G)) { goto l1385; } goto l1384;
l1385:; G->pos= yypos1385; G->thunkpos= yythunkpos1385;
} if (!yy_Newline(G)) { goto l1383; }
yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockEnd", G->buf+G->pos));
return 1;
l1383:; 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 yypos1387= G->pos, yythunkpos1387= G->thunkpos; if (!yy_FencedCodeBlockEnd(G)) { goto l1387; } goto l1386;
l1387:; G->pos= yypos1387; G->thunkpos= yythunkpos1387;
}
l1388:;
{ int yypos1389= G->pos, yythunkpos1389= G->thunkpos;
{ int yypos1390= G->pos, yythunkpos1390= G->thunkpos; if (!yy_Newline(G)) { goto l1390; } goto l1389;
l1390:; G->pos= yypos1390; G->thunkpos= yythunkpos1390;
} if (!yymatchDot(G)) goto l1389; goto l1388;
l1389:; G->pos= yypos1389; G->thunkpos= yythunkpos1389;
} if (!yy_Newline(G)) { goto l1386; }
yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockChunk", G->buf+G->pos));
return 1;
l1386:; 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 l1391;
l1392:;
{ int yypos1393= G->pos, yythunkpos1393= G->thunkpos;
{ int yypos1394= G->pos, yythunkpos1394= G->thunkpos; if (!yy_Newline(G)) { goto l1394; } goto l1393;
l1394:; G->pos= yypos1394; G->thunkpos= yythunkpos1394;
}
{ int yypos1395= G->pos, yythunkpos1395= G->thunkpos; if (!yymatchChar(G, '`')) goto l1395; goto l1393;
l1395:; G->pos= yypos1395; G->thunkpos= yythunkpos1395;
} if (!yymatchDot(G)) goto l1393; goto l1392;
l1393:; G->pos= yypos1393; G->thunkpos= yythunkpos1393;
} if (!yy_Newline(G)) { goto l1391; }
yyprintf((stderr, " ok %s @ %s\n", "FencedCodeBlockStart", G->buf+G->pos));
return 1;
l1391:; 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"));
l1397:;
{ int yypos1398= G->pos, yythunkpos1398= G->thunkpos; if (!yy_BlankLine(G)) { goto l1398; } goto l1397;
l1398:; G->pos= yypos1398; G->thunkpos= yythunkpos1398;
} if (!yy_NonblankIndentedLine(G)) { goto l1396; }
l1399:;
{ int yypos1400= G->pos, yythunkpos1400= G->thunkpos; if (!yy_NonblankIndentedLine(G)) { goto l1400; } goto l1399;
l1400:; G->pos= yypos1400; G->thunkpos= yythunkpos1400;
}
yyprintf((stderr, " ok %s @ %s\n", "VerbatimChunk", G->buf+G->pos));
return 1;
l1396:; 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 l1401; } if (!yy_Line(G)) { goto l1401; }
yyprintf((stderr, " ok %s @ %s\n", "IndentedLine", G->buf+G->pos));
return 1;
l1401:; 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 yypos1403= G->pos, yythunkpos1403= G->thunkpos; if (!yy_BlankLine(G)) { goto l1403; } goto l1402;
l1403:; G->pos= yypos1403; G->thunkpos= yythunkpos1403;
} if (!yy_IndentedLine(G)) { goto l1402; }
yyprintf((stderr, " ok %s @ %s\n", "NonblankIndentedLine", G->buf+G->pos));
return 1;
l1402:; 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 l1404; } yyDo(G, yy_1_Line, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Line", G->buf+G->pos));
return 1;
l1404:; 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 yypos1406= G->pos, yythunkpos1406= G->thunkpos; if (!yymatchDot(G)) goto l1405; G->pos= yypos1406; G->thunkpos= yythunkpos1406;
} yyDo(G, yy_1_StartList, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "StartList", G->buf+G->pos));
return 1;
l1405:; 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 l1407; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1407; if (!yymatchChar(G, '>')) goto l1407;
{ int yypos1410= G->pos, yythunkpos1410= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1410; goto l1411;
l1410:; G->pos= yypos1410; G->thunkpos= yythunkpos1410;
}
l1411:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1407; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1407; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
l1412:;
{ int yypos1413= G->pos, yythunkpos1413= G->thunkpos;
{ int yypos1414= G->pos, yythunkpos1414= G->thunkpos; if (!yymatchChar(G, '>')) goto l1414; goto l1413;
l1414:; G->pos= yypos1414; G->thunkpos= yythunkpos1414;
}
{ int yypos1415= G->pos, yythunkpos1415= G->thunkpos; if (!yy_BlankLine(G)) { goto l1415; } goto l1413;
l1415:; G->pos= yypos1415; G->thunkpos= yythunkpos1415;
} if (!yy_Line(G)) { goto l1413; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1412;
l1413:; G->pos= yypos1413; G->thunkpos= yythunkpos1413;
}
l1416:;
{ int yypos1417= G->pos, yythunkpos1417= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1417; if (!yy_BlankLine(G)) { goto l1417; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1417; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1416;
l1417:; G->pos= yypos1417; G->thunkpos= yythunkpos1417;
}
l1408:;
{ int yypos1409= G->pos, yythunkpos1409= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1409; if (!yymatchChar(G, '>')) goto l1409;
{ int yypos1418= G->pos, yythunkpos1418= G->thunkpos; if (!yymatchChar(G, ' ')) goto l1418; goto l1419;
l1418:; G->pos= yypos1418; G->thunkpos= yythunkpos1418;
}
l1419:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1409; yyDo(G, yy_1_BlockQuoteRaw, G->begin, G->end); if (!yy_Line(G)) { goto l1409; } yyDo(G, yy_2_BlockQuoteRaw, G->begin, G->end);
l1420:;
{ int yypos1421= G->pos, yythunkpos1421= G->thunkpos;
{ int yypos1422= G->pos, yythunkpos1422= G->thunkpos; if (!yymatchChar(G, '>')) goto l1422; goto l1421;
l1422:; G->pos= yypos1422; G->thunkpos= yythunkpos1422;
}
{ int yypos1423= G->pos, yythunkpos1423= G->thunkpos; if (!yy_BlankLine(G)) { goto l1423; } goto l1421;
l1423:; G->pos= yypos1423; G->thunkpos= yythunkpos1423;
} if (!yy_Line(G)) { goto l1421; } yyDo(G, yy_3_BlockQuoteRaw, G->begin, G->end); goto l1420;
l1421:; G->pos= yypos1421; G->thunkpos= yythunkpos1421;
}
l1424:;
{ int yypos1425= G->pos, yythunkpos1425= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1425; if (!yy_BlankLine(G)) { goto l1425; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1425; yyDo(G, yy_4_BlockQuoteRaw, G->begin, G->end); goto l1424;
l1425:; G->pos= yypos1425; G->thunkpos= yythunkpos1425;
} goto l1408;
l1409:; G->pos= yypos1409; G->thunkpos= yythunkpos1409;
} 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;
l1407:; 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 yypos1427= G->pos, yythunkpos1427= G->thunkpos; if (!yy_LineBreak(G)) { goto l1428; } goto l1427;
l1428:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yy_TerminalEndline(G)) { goto l1429; } goto l1427;
l1429:; G->pos= yypos1427; G->thunkpos= yythunkpos1427; if (!yy_NormalEndline(G)) { goto l1426; }
}
l1427:;
yyprintf((stderr, " ok %s @ %s\n", "Endline", G->buf+G->pos));
return 1;
l1426:; 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 yypos1431= G->pos, yythunkpos1431= G->thunkpos; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1432;
l1433:;
{ int yypos1434= G->pos, yythunkpos1434= G->thunkpos;
{ int yypos1435= G->pos, yythunkpos1435= G->thunkpos; if (!yymatchChar(G, '\r')) goto l1435; goto l1434;
l1435:; G->pos= yypos1435; G->thunkpos= yythunkpos1435;
}
{ int yypos1436= G->pos, yythunkpos1436= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1436; goto l1434;
l1436:; G->pos= yypos1436; G->thunkpos= yythunkpos1436;
} if (!yymatchDot(G)) goto l1434; goto l1433;
l1434:; G->pos= yypos1434; G->thunkpos= yythunkpos1434;
} if (!yy_Newline(G)) { goto l1432; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1432; goto l1431;
l1432:; G->pos= yypos1431; G->thunkpos= yythunkpos1431; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1430; if (!yymatchDot(G)) goto l1430;
l1437:;
{ int yypos1438= G->pos, yythunkpos1438= G->thunkpos; if (!yymatchDot(G)) goto l1438; goto l1437;
l1438:; G->pos= yypos1438; G->thunkpos= yythunkpos1438;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l1430; if (!yy_Eof(G)) { goto l1430; }
}
l1431:; yyDo(G, yy_1_RawLine, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "RawLine", G->buf+G->pos));
return 1;
l1430:; 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 l1439;
l1440:;
{ int yypos1441= G->pos, yythunkpos1441= G->thunkpos; if (!yymatchChar(G, '-')) goto l1441; goto l1440;
l1441:; G->pos= yypos1441; G->thunkpos= yythunkpos1441;
} if (!yy_Newline(G)) { goto l1439; }
yyprintf((stderr, " ok %s @ %s\n", "SetextBottom2", G->buf+G->pos));
return 1;
l1439:; 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 l1442;
l1443:;
{ int yypos1444= G->pos, yythunkpos1444= G->thunkpos; if (!yymatchChar(G, '=')) goto l1444; goto l1443;
l1444:; G->pos= yypos1444; G->thunkpos= yythunkpos1444;
} if (!yy_Newline(G)) { goto l1442; }
yyprintf((stderr, " ok %s @ %s\n", "SetextBottom1", G->buf+G->pos));
return 1;
l1442:; 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 yypos1446= G->pos, yythunkpos1446= G->thunkpos; if (!yy_RawLine(G)) { goto l1445; } if (!yy_SetextBottom2(G)) { goto l1445; } G->pos= yypos1446; G->thunkpos= yythunkpos1446;
} if (!yy_LocMarker(G)) { goto l1445; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1445;
{ int yypos1449= G->pos, yythunkpos1449= G->thunkpos; if (!yy_Endline(G)) { goto l1449; } goto l1445;
l1449:; G->pos= yypos1449; G->thunkpos= yythunkpos1449;
} if (!yy_Inline(G)) { goto l1445; }
l1447:;
{ int yypos1448= G->pos, yythunkpos1448= G->thunkpos;
{ int yypos1450= G->pos, yythunkpos1450= G->thunkpos; if (!yy_Endline(G)) { goto l1450; } goto l1448;
l1450:; G->pos= yypos1450; G->thunkpos= yythunkpos1450;
} if (!yy_Inline(G)) { goto l1448; } goto l1447;
l1448:; G->pos= yypos1448; G->thunkpos= yythunkpos1448;
} if (!yy_Sp(G)) { goto l1445; } if (!yy_Newline(G)) { goto l1445; } if (!yy_SetextBottom2(G)) { goto l1445; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1445; 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;
l1445:; 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 yypos1452= G->pos, yythunkpos1452= G->thunkpos; if (!yy_RawLine(G)) { goto l1451; } if (!yy_SetextBottom1(G)) { goto l1451; } G->pos= yypos1452; G->thunkpos= yythunkpos1452;
} if (!yy_LocMarker(G)) { goto l1451; } yyDo(G, yySet, -1, 0); yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1451;
{ int yypos1455= G->pos, yythunkpos1455= G->thunkpos; if (!yy_Endline(G)) { goto l1455; } goto l1451;
l1455:; G->pos= yypos1455; G->thunkpos= yythunkpos1455;
} if (!yy_Inline(G)) { goto l1451; }
l1453:;
{ int yypos1454= G->pos, yythunkpos1454= G->thunkpos;
{ int yypos1456= G->pos, yythunkpos1456= G->thunkpos; if (!yy_Endline(G)) { goto l1456; } goto l1454;
l1456:; G->pos= yypos1456; G->thunkpos= yythunkpos1456;
} if (!yy_Inline(G)) { goto l1454; } goto l1453;
l1454:; G->pos= yypos1454; G->thunkpos= yythunkpos1454;
} if (!yy_Sp(G)) { goto l1451; } if (!yy_Newline(G)) { goto l1451; } if (!yy_SetextBottom1(G)) { goto l1451; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1451; 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;
l1451:; 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 yypos1458= G->pos, yythunkpos1458= G->thunkpos; if (!yy_SetextHeading1(G)) { goto l1459; } goto l1458;
l1459:; G->pos= yypos1458; G->thunkpos= yythunkpos1458; if (!yy_SetextHeading2(G)) { goto l1457; }
}
l1458:;
yyprintf((stderr, " ok %s @ %s\n", "SetextHeading", G->buf+G->pos));
return 1;
l1457:; 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 l1460; }
l1461:;
{ int yypos1462= G->pos, yythunkpos1462= G->thunkpos; if (!yy_Spacechar(G)) { goto l1462; } goto l1461;
l1462:; G->pos= yypos1462; G->thunkpos= yythunkpos1462;
}
yyprintf((stderr, " ok %s @ %s\n", "Space", G->buf+G->pos));
return 1;
l1460:; 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 l1463; if (!yy_AtxStart(G)) { goto l1463; } yyDo(G, yySet, -1, 0); if (!yy_Space(G)) { goto l1463; } if (!yy_AtxInline(G)) { goto l1463; }
l1464:;
{ int yypos1465= G->pos, yythunkpos1465= G->thunkpos; if (!yy_AtxInline(G)) { goto l1465; } goto l1464;
l1465:; G->pos= yypos1465; G->thunkpos= yythunkpos1465;
}
{ int yypos1466= G->pos, yythunkpos1466= G->thunkpos; if (!yy_Sp(G)) { goto l1466; }
l1468:;
{ int yypos1469= G->pos, yythunkpos1469= G->thunkpos; if (!yymatchChar(G, '#')) goto l1469; goto l1468;
l1469:; G->pos= yypos1469; G->thunkpos= yythunkpos1469;
} if (!yy_Sp(G)) { goto l1466; } goto l1467;
l1466:; G->pos= yypos1466; G->thunkpos= yythunkpos1466;
}
l1467:; if (!yy_Newline(G)) { goto l1463; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1463; 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;
l1463:; 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 l1470;
{ int yypos1471= G->pos, yythunkpos1471= G->thunkpos; if (!yymatchString(G, "######")) goto l1472; goto l1471;
l1472:; G->pos= yypos1471; G->thunkpos= yythunkpos1471; if (!yymatchString(G, "#####")) goto l1473; goto l1471;
l1473:; G->pos= yypos1471; G->thunkpos= yythunkpos1471; if (!yymatchString(G, "####")) goto l1474; goto l1471;
l1474:; G->pos= yypos1471; G->thunkpos= yythunkpos1471; if (!yymatchString(G, "###")) goto l1475; goto l1471;
l1475:; G->pos= yypos1471; G->thunkpos= yythunkpos1471; if (!yymatchString(G, "##")) goto l1476; goto l1471;
l1476:; G->pos= yypos1471; G->thunkpos= yythunkpos1471; if (!yymatchChar(G, '#')) goto l1470;
}
l1471:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1470; yyDo(G, yy_1_AtxStart, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "AtxStart", G->buf+G->pos));
return 1;
l1470:; 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 yypos1478= G->pos, yythunkpos1478= G->thunkpos; if (!yy_Str(G)) { goto l1479; } goto l1478;
l1479:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Endline(G)) { goto l1480; } goto l1478;
l1480:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_UlOrStarLine(G)) { goto l1481; } goto l1478;
l1481:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Space(G)) { goto l1482; } goto l1478;
l1482:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Strong(G)) { goto l1483; } goto l1478;
l1483:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Emph(G)) { goto l1484; } goto l1478;
l1484:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Strike(G)) { goto l1485; } goto l1478;
l1485:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Image(G)) { goto l1486; } goto l1478;
l1486:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Link(G)) { goto l1487; } goto l1478;
l1487:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_NoteReference(G)) { goto l1488; } goto l1478;
l1488:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_InlineNote(G)) { goto l1489; } goto l1478;
l1489:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Code(G)) { goto l1490; } goto l1478;
l1490:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_InlineEquation(G)) { goto l1491; } goto l1478;
l1491:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Mark(G)) { goto l1492; } goto l1478;
l1492:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_RawHtml(G)) { goto l1493; } goto l1478;
l1493:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Entity(G)) { goto l1494; } goto l1478;
l1494:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_EscapedChar(G)) { goto l1495; } goto l1478;
l1495:; G->pos= yypos1478; G->thunkpos= yythunkpos1478; if (!yy_Symbol(G)) { goto l1477; }
}
l1478:;
yyprintf((stderr, " ok %s @ %s\n", "Inline", G->buf+G->pos));
return 1;
l1477:; 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"));
l1497:;
{ int yypos1498= G->pos, yythunkpos1498= G->thunkpos; if (!yy_Spacechar(G)) { goto l1498; } goto l1497;
l1498:; G->pos= yypos1498; G->thunkpos= yythunkpos1498;
}
yyprintf((stderr, " ok %s @ %s\n", "Sp", G->buf+G->pos));
return 1;
}
YY_RULE(int) yy_AtxInline(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "AtxInline"));
{ int yypos1500= G->pos, yythunkpos1500= G->thunkpos; if (!yy_Newline(G)) { goto l1500; } goto l1499;
l1500:; G->pos= yypos1500; G->thunkpos= yythunkpos1500;
}
{ int yypos1501= G->pos, yythunkpos1501= G->thunkpos; if (!yy_Sp(G)) { goto l1501; }
l1502:;
{ int yypos1503= G->pos, yythunkpos1503= G->thunkpos; if (!yymatchChar(G, '#')) goto l1503; goto l1502;
l1503:; G->pos= yypos1503; G->thunkpos= yythunkpos1503;
} if (!yy_Sp(G)) { goto l1501; } if (!yy_Newline(G)) { goto l1501; } goto l1499;
l1501:; G->pos= yypos1501; G->thunkpos= yythunkpos1501;
} if (!yy_Inline(G)) { goto l1499; }
yyprintf((stderr, " ok %s @ %s\n", "AtxInline", G->buf+G->pos));
return 1;
l1499:; 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 yypos1507= G->pos, yythunkpos1507= G->thunkpos;
{ int yypos1509= G->pos, yythunkpos1509= G->thunkpos; if (!yy_Endline(G)) { goto l1509; } goto l1508;
l1509:; G->pos= yypos1509; G->thunkpos= yythunkpos1509;
} if (!yy_Inline(G)) { goto l1508; } goto l1507;
l1508:; G->pos= yypos1507; G->thunkpos= yythunkpos1507; if (!yy_Endline(G)) { goto l1504; }
{ int yypos1510= G->pos, yythunkpos1510= G->thunkpos; if (!yy_Inline(G)) { goto l1504; } G->pos= yypos1510; G->thunkpos= yythunkpos1510;
}
}
l1507:;
l1505:;
{ int yypos1506= G->pos, yythunkpos1506= G->thunkpos;
{ int yypos1511= G->pos, yythunkpos1511= G->thunkpos;
{ int yypos1513= G->pos, yythunkpos1513= G->thunkpos; if (!yy_Endline(G)) { goto l1513; } goto l1512;
l1513:; G->pos= yypos1513; G->thunkpos= yythunkpos1513;
} if (!yy_Inline(G)) { goto l1512; } goto l1511;
l1512:; G->pos= yypos1511; G->thunkpos= yythunkpos1511; if (!yy_Endline(G)) { goto l1506; }
{ int yypos1514= G->pos, yythunkpos1514= G->thunkpos; if (!yy_Inline(G)) { goto l1506; } G->pos= yypos1514; G->thunkpos= yythunkpos1514;
}
}
l1511:; goto l1505;
l1506:; G->pos= yypos1506; G->thunkpos= yythunkpos1506;
}
{ int yypos1515= G->pos, yythunkpos1515= G->thunkpos; if (!yy_Endline(G)) { goto l1515; } goto l1516;
l1515:; G->pos= yypos1515; G->thunkpos= yythunkpos1515;
}
l1516:;
yyprintf((stderr, " ok %s @ %s\n", "Inlines", G->buf+G->pos));
return 1;
l1504:; 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 yypos1518= G->pos, yythunkpos1518= G->thunkpos; if (!yymatchString(G, " ")) goto l1519; goto l1518;
l1519:; G->pos= yypos1518; G->thunkpos= yythunkpos1518; if (!yymatchString(G, " ")) goto l1520; goto l1518;
l1520:; G->pos= yypos1518; G->thunkpos= yythunkpos1518; if (!yymatchChar(G, ' ')) goto l1521; goto l1518;
l1521:; G->pos= yypos1518; G->thunkpos= yythunkpos1518; if (!yymatchString(G, "")) goto l1517;
}
l1518:;
yyprintf((stderr, " ok %s @ %s\n", "NonindentSpace", G->buf+G->pos));
return 1;
l1517:; 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 l1522; }
yyprintf((stderr, " ok %s @ %s\n", "Plain", G->buf+G->pos));
return 1;
l1522:; 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 l1523; } if (!yy_Inlines(G)) { goto l1523; } if (!yy_BlankLine(G)) { goto l1523; }
l1524:;
{ int yypos1525= G->pos, yythunkpos1525= G->thunkpos; if (!yy_BlankLine(G)) { goto l1525; } goto l1524;
l1525:; G->pos= yypos1525; G->thunkpos= yythunkpos1525;
}
yyprintf((stderr, " ok %s @ %s\n", "Para", G->buf+G->pos));
return 1;
l1523:; 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 l1526; if (!yy_LocMarker(G)) { goto l1526; } yyDo(G, yySet, -1, 0); if (!yy_InStyleTags(G)) { goto l1526; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1526;
l1527:;
{ int yypos1528= G->pos, yythunkpos1528= G->thunkpos; if (!yy_BlankLine(G)) { goto l1528; } goto l1527;
l1528:; G->pos= yypos1528; G->thunkpos= yythunkpos1528;
} 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;
l1526:; 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 l1529; if (!yy_LocMarker(G)) { goto l1529; } yyDo(G, yySet, -1, 0);
{ int yypos1530= G->pos, yythunkpos1530= G->thunkpos; if (!yy_HtmlBlockInTags(G)) { goto l1531; } goto l1530;
l1531:; G->pos= yypos1530; G->thunkpos= yythunkpos1530; if (!yy_HtmlComment(G)) { goto l1532; } goto l1530;
l1532:; G->pos= yypos1530; G->thunkpos= yythunkpos1530; if (!yy_HtmlBlockSelfClosing(G)) { goto l1529; }
}
l1530:; yyText(G, G->begin, G->end); if (!(YY_END)) goto l1529; if (!yy_BlankLine(G)) { goto l1529; }
l1533:;
{ int yypos1534= G->pos, yythunkpos1534= G->thunkpos; if (!yy_BlankLine(G)) { goto l1534; } goto l1533;
l1534:; G->pos= yypos1534; G->thunkpos= yythunkpos1534;
} 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;
l1529:; 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 yypos1536= G->pos, yythunkpos1536= G->thunkpos; if (!yy_Bullet(G)) { goto l1535; } G->pos= yypos1536; G->thunkpos= yythunkpos1536;
}
{ int yypos1537= G->pos, yythunkpos1537= G->thunkpos; if (!yy_ListTight(G)) { goto l1538; } goto l1537;
l1538:; G->pos= yypos1537; G->thunkpos= yythunkpos1537; if (!yy_ListLoose(G)) { goto l1535; }
}
l1537:;
yyprintf((stderr, " ok %s @ %s\n", "BulletList", G->buf+G->pos));
return 1;
l1535:; 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 yypos1540= G->pos, yythunkpos1540= G->thunkpos; if (!yy_Enumerator(G)) { goto l1539; } G->pos= yypos1540; G->thunkpos= yythunkpos1540;
}
{ int yypos1541= G->pos, yythunkpos1541= G->thunkpos; if (!yy_ListTight(G)) { goto l1542; } goto l1541;
l1542:; G->pos= yypos1541; G->thunkpos= yythunkpos1541; if (!yy_ListLoose(G)) { goto l1539; }
}
l1541:;
yyprintf((stderr, " ok %s @ %s\n", "OrderedList", G->buf+G->pos));
return 1;
l1539:; 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 yypos1544= G->pos, yythunkpos1544= G->thunkpos; if (!yy_SetextHeading(G)) { goto l1545; } goto l1544;
l1545:; G->pos= yypos1544; G->thunkpos= yythunkpos1544; if (!yy_AtxHeading(G)) { goto l1543; }
}
l1544:;
yyprintf((stderr, " ok %s @ %s\n", "Heading", G->buf+G->pos));
return 1;
l1543:; 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 l1546; if (!yy_NonindentSpace(G)) { goto l1546; }
{ int yypos1547= G->pos, yythunkpos1547= G->thunkpos; if (!yymatchChar(G, '*')) goto l1548; if (!yy_Sp(G)) { goto l1548; } if (!yymatchChar(G, '*')) goto l1548; if (!yy_Sp(G)) { goto l1548; } if (!yymatchChar(G, '*')) goto l1548;
l1549:;
{ int yypos1550= G->pos, yythunkpos1550= G->thunkpos; if (!yy_Sp(G)) { goto l1550; } if (!yymatchChar(G, '*')) goto l1550; goto l1549;
l1550:; G->pos= yypos1550; G->thunkpos= yythunkpos1550;
} goto l1547;
l1548:; G->pos= yypos1547; G->thunkpos= yythunkpos1547; if (!yymatchChar(G, '-')) goto l1551; if (!yy_Sp(G)) { goto l1551; } if (!yymatchChar(G, '-')) goto l1551; if (!yy_Sp(G)) { goto l1551; } if (!yymatchChar(G, '-')) goto l1551;
l1552:;
{ int yypos1553= G->pos, yythunkpos1553= G->thunkpos; if (!yy_Sp(G)) { goto l1553; } if (!yymatchChar(G, '-')) goto l1553; goto l1552;
l1553:; G->pos= yypos1553; G->thunkpos= yythunkpos1553;
} goto l1547;
l1551:; G->pos= yypos1547; G->thunkpos= yythunkpos1547; if (!yymatchChar(G, '_')) goto l1546; if (!yy_Sp(G)) { goto l1546; } if (!yymatchChar(G, '_')) goto l1546; if (!yy_Sp(G)) { goto l1546; } if (!yymatchChar(G, '_')) goto l1546;
l1554:;
{ int yypos1555= G->pos, yythunkpos1555= G->thunkpos; if (!yy_Sp(G)) { goto l1555; } if (!yymatchChar(G, '_')) goto l1555; goto l1554;
l1555:; G->pos= yypos1555; G->thunkpos= yythunkpos1555;
}
}
l1547:; if (!yy_Sp(G)) { goto l1546; } if (!yy_Newline(G)) { goto l1546; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1546; yyDo(G, yy_1_HorizontalRule, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "HorizontalRule", G->buf+G->pos));
return 1;
l1546:; 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 l1556; if (!yy_LocMarker(G)) { goto l1556; } yyDo(G, yySet, -3, 0); if (!yy_NonindentSpace(G)) { goto l1556; }
{ int yypos1557= G->pos, yythunkpos1557= G->thunkpos; if (!yymatchString(G, "[]")) goto l1557; goto l1556;
l1557:; G->pos= yypos1557; G->thunkpos= yythunkpos1557;
} if (!yy_Label(G)) { goto l1556; } yyDo(G, yySet, -2, 0); if (!yymatchChar(G, ':')) goto l1556; if (!yy_Spnl(G)) { goto l1556; } if (!yy_RefSrc(G)) { goto l1556; } yyDo(G, yySet, -1, 0); if (!yy_RefTitle(G)) { goto l1556; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1556; if (!yy_BlankLine(G)) { goto l1556; }
l1558:;
{ int yypos1559= G->pos, yythunkpos1559= G->thunkpos; if (!yy_BlankLine(G)) { goto l1559; } goto l1558;
l1559:; G->pos= yypos1559; G->thunkpos= yythunkpos1559;
} 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;
l1556:; 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; yyDo(G, yyPush, 1, 0);
yyprintf((stderr, "%s\n", "Note")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_NOTES) )) goto l1560; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1560; if (!yy_LocMarker(G)) { goto l1560; } yyDo(G, yySet, -1, 0); if (!yy_NonindentSpace(G)) { goto l1560; } if (!yy_RawNoteReference(G)) { goto l1560; } if (!yymatchChar(G, ':')) goto l1560; if (!yy_Sp(G)) { goto l1560; } if (!yy_RawNoteBlock(G)) { goto l1560; }
l1561:;
{ int yypos1562= G->pos, yythunkpos1562= G->thunkpos;
{ int yypos1563= G->pos, yythunkpos1563= G->thunkpos; if (!yy_Indent(G)) { goto l1562; } G->pos= yypos1563; G->thunkpos= yythunkpos1563;
} if (!yy_RawNoteBlock(G)) { goto l1562; } goto l1561;
l1562:; G->pos= yypos1562; G->thunkpos= yythunkpos1562;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l1560; yyDo(G, yy_1_Note, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "Note", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1560:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Note", G->buf+G->pos));
return 0;
}
YY_RULE(int) yy_DisplayFormula(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos;
yyprintf((stderr, "%s\n", "DisplayFormula")); yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_MATH) )) goto l1564;
{ int yypos1565= G->pos, yythunkpos1565= G->thunkpos; if (!yy_DisplayFormulaDollar(G)) { goto l1566; } goto l1565;
l1566:; G->pos= yypos1565; G->thunkpos= yythunkpos1565; if (!yy_DisplayFormulaRaw(G)) { goto l1564; }
}
l1565:;
yyprintf((stderr, " ok %s @ %s\n", "DisplayFormula", G->buf+G->pos));
return 1;
l1564:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "DisplayFormula", 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 l1567; if (!yy_LocMarker(G)) { goto l1567; } yyDo(G, yySet, -1, 0); if (!yy_FencedCodeBlockStart(G)) { goto l1567; }
l1568:;
{ int yypos1569= G->pos, yythunkpos1569= G->thunkpos; if (!yy_FencedCodeBlockChunk(G)) { goto l1569; } goto l1568;
l1569:; G->pos= yypos1569; G->thunkpos= yythunkpos1569;
} if (!yy_FencedCodeBlockEnd(G)) { goto l1567; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1567; 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;
l1567:; 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 l1570; if (!yy_LocMarker(G)) { goto l1570; } yyDo(G, yySet, -1, 0); if (!yy_VerbatimChunk(G)) { goto l1570; }
l1571:;
{ int yypos1572= G->pos, yythunkpos1572= G->thunkpos; if (!yy_VerbatimChunk(G)) { goto l1572; } goto l1571;
l1572:; G->pos= yypos1572; G->thunkpos= yythunkpos1572;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l1570; 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;
l1570:; 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 l1573; } 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;
l1573:; 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 l1574; } if (!yy_Newline(G)) { goto l1574; }
yyprintf((stderr, " ok %s @ %s\n", "BlankLine", G->buf+G->pos));
return 1;
l1574:; 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 yypos1576= G->pos, yythunkpos1576= G->thunkpos; if (!yymatchString(G, "---")) goto l1577; goto l1576;
l1577:; G->pos= yypos1576; G->thunkpos= yythunkpos1576; if (!yymatchString(G, "...")) goto l1575;
}
l1576:;
yyprintf((stderr, " ok %s @ %s\n", "FrontMatterEndMark", G->buf+G->pos));
return 1;
l1575:; 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 yypos1579= G->pos, yythunkpos1579= G->thunkpos; if (!yy_FrontMatterEndMark(G)) { goto l1579; } goto l1578;
l1579:; G->pos= yypos1579; G->thunkpos= yythunkpos1579;
}
l1580:;
{ int yypos1581= G->pos, yythunkpos1581= G->thunkpos;
{ int yypos1582= G->pos, yythunkpos1582= G->thunkpos; if (!yy_Newline(G)) { goto l1582; } goto l1581;
l1582:; G->pos= yypos1582; G->thunkpos= yythunkpos1582;
} if (!yymatchDot(G)) goto l1581; goto l1580;
l1581:; G->pos= yypos1581; G->thunkpos= yythunkpos1581;
} if (!yy_Newline(G)) { goto l1578; }
yyprintf((stderr, " ok %s @ %s\n", "FrontMatterBlock", G->buf+G->pos));
return 1;
l1578:; 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 yypos1584= G->pos, yythunkpos1584= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1585; goto l1584;
l1585:; G->pos= yypos1584; G->thunkpos= yythunkpos1584; if (!yymatchChar(G, '\r')) goto l1583;
{ int yypos1586= G->pos, yythunkpos1586= G->thunkpos; if (!yymatchChar(G, '\n')) goto l1586; goto l1587;
l1586:; G->pos= yypos1586; G->thunkpos= yythunkpos1586;
}
l1587:;
}
l1584:;
yyprintf((stderr, " ok %s @ %s\n", "Newline", G->buf+G->pos));
return 1;
l1583:; 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 yypos1589= G->pos, yythunkpos1589= G->thunkpos; if (!yymatchDot(G)) goto l1588; G->pos= yypos1589; G->thunkpos= yythunkpos1589;
} yyDo(G, yy_1_LocMarker, G->begin, G->end);
yyprintf((stderr, " ok %s @ %s\n", "LocMarker", G->buf+G->pos));
return 1;
l1588:; 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"));
l1591:;
{ int yypos1592= G->pos, yythunkpos1592= G->thunkpos; if (!yy_BlankLine(G)) { goto l1592; } goto l1591;
l1592:; G->pos= yypos1592; G->thunkpos= yythunkpos1592;
}
{ int yypos1593= G->pos, yythunkpos1593= G->thunkpos; if (!yy_BlockQuote(G)) { goto l1594; } goto l1593;
l1594:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_Verbatim(G)) { goto l1595; } goto l1593;
l1595:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_FencedCodeBlock(G)) { goto l1596; } goto l1593;
l1596:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_DisplayFormula(G)) { goto l1597; } goto l1593;
l1597:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_Note(G)) { goto l1598; } goto l1593;
l1598:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_Reference(G)) { goto l1599; } goto l1593;
l1599:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_HorizontalRule(G)) { goto l1600; } goto l1593;
l1600:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_Heading(G)) { goto l1601; } goto l1593;
l1601:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_OrderedList(G)) { goto l1602; } goto l1593;
l1602:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_BulletList(G)) { goto l1603; } goto l1593;
l1603:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_HtmlBlock(G)) { goto l1604; } goto l1593;
l1604:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_StyleBlock(G)) { goto l1605; } goto l1593;
l1605:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_Para(G)) { goto l1606; } goto l1593;
l1606:; G->pos= yypos1593; G->thunkpos= yythunkpos1593; if (!yy_Plain(G)) { goto l1590; }
}
l1593:;
yyprintf((stderr, " ok %s @ %s\n", "Block", G->buf+G->pos));
return 1;
l1590:; 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 l1607; } yyDo(G, yySet, -1, 0);
{ int yypos1608= G->pos, yythunkpos1608= G->thunkpos; yyText(G, G->begin, G->end); if (!( EXT(pmh_EXT_FRONTMATTER) )) goto l1608; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l1608; if (!yymatchString(G, "---")) goto l1608; if (!yy_Newline(G)) { goto l1608; }
l1610:;
{ int yypos1611= G->pos, yythunkpos1611= G->thunkpos; if (!yy_FrontMatterBlock(G)) { goto l1611; } goto l1610;
l1611:; G->pos= yypos1611; G->thunkpos= yythunkpos1611;
} if (!yy_FrontMatterEndMark(G)) { goto l1608; } if (!yy_Newline(G)) { goto l1608; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l1608; yyDo(G, yy_1_FrontMatter, G->begin, G->end); goto l1609;
l1608:; G->pos= yypos1608; G->thunkpos= yythunkpos1608;
}
l1609:;
yyprintf((stderr, " ok %s @ %s\n", "FrontMatter", G->buf+G->pos)); yyDo(G, yyPop, 1, 0);
return 1;
l1607:; 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 l1612; }
l1613:;
{ int yypos1614= G->pos, yythunkpos1614= G->thunkpos; if (!yy_Block(G)) { goto l1614; } goto l1613;
l1614:; G->pos= yypos1614; G->thunkpos= yythunkpos1614;
}
yyprintf((stderr, " ok %s @ %s\n", "Doc", G->buf+G->pos));
return 1;
l1612:; G->pos= yypos0; G->thunkpos= yythunkpos0;
yyprintf((stderr, " fail %s @ %s\n", "Doc", G->buf+G->pos));
return 0;
}
#ifndef YY_PART
typedef int (*yyrule)(GREG *G);
YY_PARSE(int) YY_NAME(parse_from)(GREG *G, yyrule yystart)
{
int yyok;
if (!G->buflen)
{
G->buflen= YY_BUFFER_START_SIZE;
G->buf= (char *)YY_ALLOC(G->buflen, G->data);
G->textlen= YY_BUFFER_START_SIZE;
G->text= (char *)YY_ALLOC(G->textlen, G->data);
G->thunkslen= YY_STACK_SIZE;
G->thunks= (yythunk *)YY_ALLOC(sizeof(yythunk) * G->thunkslen, G->data);
G->valslen= YY_STACK_SIZE;
G->vals= (YYSTYPE*)YY_ALLOC(sizeof(YYSTYPE) * G->valslen, G->data);
G->begin= G->end= G->pos= G->limit= G->thunkpos= 0;
}
G->pos = 0;
G->begin= G->end= G->pos;
G->thunkpos= 0;
G->val= G->vals;
yyok= yystart(G);
if (yyok) yyDone(G);
yyCommit(G);
return yyok;
(void)yyrefill(NULL);
(void)yymatchDot(NULL);
(void)yymatchChar(NULL, 0);
(void)yymatchString(NULL, NULL);
(void)yymatchClass(NULL, NULL);
(void)yyDo(NULL, NULL, 0, 0);
(void)yyText(NULL, 0, 0);
(void)yyDone(NULL);
(void)yyCommit(NULL);
(void)yyAccept(NULL, 0);
(void)yyPush(NULL, NULL, 0, NULL, NULL);
(void)yyPop(NULL, NULL, 0, NULL, NULL);
(void)yySet(NULL, NULL, 0, NULL, NULL);
}
YY_PARSE(int) YY_NAME(parse)(GREG *G)
{
return YY_NAME(parse_from)(G, yy_Doc);
}
YY_PARSE(GREG *) YY_NAME(parse_new)(YY_XTYPE data)
{
GREG *G = (GREG *)YY_CALLOC(1, sizeof(GREG), G->data);
G->data = data;
return G;
}
YY_PARSE(void) YY_NAME(parse_free)(GREG *G)
{
YY_FREE(G->buf);
YY_FREE(G->text);
YY_FREE(G->thunks);
YY_FREE(G->vals);
YY_FREE(G);
}
#endif
/* PEG Markdown Highlight
* Copyright 2011-2016 Ali Rantakari -- http://hasseg.org
* Licensed under the GPL2+ and MIT licenses (see LICENSE for more info).
*
* pmh_parser_foot.c
*
* Code to be appended to the end of the parser code generated from the
* PEG grammar.
*/
static void _parse(parser_data *p_data, yyrule start_rule)
{
GREG *g = YY_NAME(parse_new)(p_data);
if (start_rule == NULL)
YY_NAME(parse)(g);
else
YY_NAME(parse_from)(g, start_rule);
YY_NAME(parse_free)(g);
pmh_PRINTF("\n\n");
}
static void parse_markdown(parser_data *p_data)
{
pmh_PRINTF("\nPARSING DOCUMENT: ");
_parse(p_data, NULL);
}
static void parse_references(parser_data *p_data)
{
pmh_PRINTF("\nPARSING REFERENCES: ");
p_data->parsing_only_references = true;
_parse(p_data, yy_References);
p_data->parsing_only_references = false;
p_data->references = p_data->head_elems[pmh_REFERENCE];
p_data->head_elems[pmh_REFERENCE] = NULL;
}