#if 1
void piece_append(const char *str);
- piece_append("<RefList><PLexSpecification ref=\"0\"><Section1>");
+ piece_append("<RefList><PLex ref=\"0\"><PLex_Section1>");
#endif
readin ();
make_tables ();
#if 1
/* at this point flexscan() has been called to copy section 3 to the output */
- piece_append("</PLexSpecification></RefList>");
+ piece_append("</PLex></RefList>");
extern char *piece[];
extern int piece1;
case 4:
#line 156 "parse.y" /* yacc.c:1646 */
{
- insert_after(2, "</Section1_StartConditions>");
- sprintf(piece_temp, "<Section1_StartConditions exclusive=\"%s\">", xcluflg ? "true" : "false");
+ insert_after(2, "</PLex_Section1_StartConditions>");
+ sprintf(piece_temp, "<PLex_Section1_StartConditions exclusive=\"%s\">", xcluflg ? "true" : "false");
insert_before(1, piece_temp);
}
#line 1532 "parse.c" /* yacc.c:1646 */
case 5:
#line 162 "parse.y" /* yacc.c:1646 */
{
- insert_after(1, "</Section1_Options>");
- insert_before(1, "<Section1_Options>");
+ insert_after(1, "</PLex_Section1_Options>");
+ insert_before(1, "<PLex_Section1_Options>");
}
#line 1541 "parse.c" /* yacc.c:1646 */
break;
case 23:
#line 246 "parse.y" /* yacc.c:1646 */
{ scon_stk_ptr = (yyvsp[-3]); /*}*/
- insert_after(4, "</Section2_Rule>");
- insert_before(1, "<Section2_Rule>");
+ insert_after(4, "</PLex_Section2_Rule>");
+ insert_before(1, "<PLex_Section2_Rule>");
}
#line 1660 "parse.c" /* yacc.c:1646 */
break;
case 24:
#line 251 "parse.y" /* yacc.c:1646 */
{ scon_stk_ptr = (yyvsp[-3]); /*}*/
- insert_after(4, "</Section2_CompoundRule>");
- insert_before(1, "<Section2_CompoundRule>");
+ insert_after(4, "</PLex_Section2_CompoundRule>");
+ insert_before(1, "<PLex_Section2_CompoundRule>");
}
#line 1669 "parse.c" /* yacc.c:1646 */
break;
pinpoint_message(
"'^' operator results in sub-optimal performance" );
}
- insert_after(1, "</Section2_Rule_BOLRule>");
- insert_before(0, "<Section2_Rule_BOLRule>");
+ insert_after(1, "</PLex_Section2_Rule_BOLRule>");
+ insert_before(0, "<PLex_Section2_Rule_BOLRule>");
}
#line 1725 "parse.c" /* yacc.c:1646 */
break;
else
build_eof_action();
}
- insert_after(0, "</Section2_Rule_EOFRule><RegexNone />");
- insert_before(0, "<Section2_Rule_EOFRule>");
+ insert_after(0, "</PLex_Section2_Rule_EOFRule><RegexNone />");
+ insert_before(0, "<PLex_Section2_Rule_EOFRule>");
}
#line 1780 "parse.c" /* yacc.c:1646 */
break;
case 32:
#line 367 "parse.y" /* yacc.c:1646 */
{ (yyval) = (yyvsp[-2]); /*}*/
- insert_after(3, "</Section2_StartConditions>");
- insert_before(0, "<Section2_StartConditions>");
+ insert_after(3, "</PLex_Section2_StartConditions>");
+ insert_before(0, "<PLex_Section2_StartConditions>");
}
#line 1801 "parse.c" /* yacc.c:1646 */
break;
if ( j > scon_stk_ptr )
scon_stk[++scon_stk_ptr] = i;
}
- insert_after(2, "</Section2_StartConditions>");
- insert_before(0, "<Section2_StartConditions wildcard=\"true\">");
+ insert_after(2, "</PLex_Section2_StartConditions>");
+ insert_before(0, "<PLex_Section2_StartConditions wildcard=\"true\">");
}
#line 1823 "parse.c" /* yacc.c:1646 */
break;
piece[piece2 + 1] = piece[piece2]; /* empty */
piece[piece2] = piece[piece2 - 1]; /* empty */
piece[piece2 - 1] = temp;
- insert_before(0, "<Section2_StartConditions />");
+ insert_before(0, "<PLex_Section2_StartConditions />");
}
#line 1839 "parse.c" /* yacc.c:1646 */
break;
sect1 : sect1 startconddecl namelist1
{
- insert_after(2, "</Section1_StartConditions>");
- sprintf(piece_temp, "<Section1_StartConditions exclusive=\"%s\">", xcluflg ? "true" : "false");
+ insert_after(2, "</PLex_Section1_StartConditions>");
+ sprintf(piece_temp, "<PLex_Section1_StartConditions exclusive=\"%s\">", xcluflg ? "true" : "false");
insert_before(1, piece_temp);
}
| sect1 options
{
- insert_after(1, "</Section1_Options>");
- insert_before(1, "<Section1_Options>");
+ insert_after(1, "</PLex_Section1_Options>");
+ insert_before(1, "<PLex_Section1_Options>");
}
|
| error
sect2 : sect2 scon initforrule flexrule '\n'
{ scon_stk_ptr = $2; /*}*/
- insert_after(4, "</Section2_Rule>");
- insert_before(1, "<Section2_Rule>");
+ insert_after(4, "</PLex_Section2_Rule>");
+ insert_before(1, "<PLex_Section2_Rule>");
}
| sect2 scon '{' sect2 '}'
{ scon_stk_ptr = $2; /*}*/
- insert_after(4, "</Section2_CompoundRule>");
- insert_before(1, "<Section2_CompoundRule>");
+ insert_after(4, "</PLex_Section2_CompoundRule>");
+ insert_before(1, "<PLex_Section2_CompoundRule>");
}
|
;
pinpoint_message(
"'^' operator results in sub-optimal performance" );
}
- insert_after(1, "</Section2_Rule_BOLRule>");
- insert_before(0, "<Section2_Rule_BOLRule>");
+ insert_after(1, "</PLex_Section2_Rule_BOLRule>");
+ insert_before(0, "<PLex_Section2_Rule_BOLRule>");
}
| rule
else
build_eof_action();
}
- insert_after(0, "</Section2_Rule_EOFRule><RegexNone />");
- insert_before(0, "<Section2_Rule_EOFRule>");
+ insert_after(0, "</PLex_Section2_Rule_EOFRule><RegexNone />");
+ insert_before(0, "<PLex_Section2_Rule_EOFRule>");
}
| error
scon : '<' scon_stk_ptr namelist2 '>'
{ $$ = $2; /*}*/
- insert_after(3, "</Section2_StartConditions>");
- insert_before(0, "<Section2_StartConditions>");
+ insert_after(3, "</PLex_Section2_StartConditions>");
+ insert_before(0, "<PLex_Section2_StartConditions>");
}
| '<' '*' '>'
if ( j > scon_stk_ptr )
scon_stk[++scon_stk_ptr] = i;
}
- insert_after(2, "</Section2_StartConditions>");
- insert_before(0, "<Section2_StartConditions wildcard=\"true\">");
+ insert_after(2, "</PLex_Section2_StartConditions>");
+ insert_before(0, "<PLex_Section2_StartConditions wildcard=\"true\">");
}
|
piece[piece2 + 1] = piece[piece2]; /* empty */
piece[piece2] = piece[piece2 - 1]; /* empty */
piece[piece2 - 1] = temp;
- insert_before(0, "<Section2_StartConditions />");
+ insert_before(0, "<PLex_Section2_StartConditions />");
}
;
if(yyleng < MAXLINE) \
{ \
strncpy( nmstr, yytext, sizeof(nmstr) ); \
- piece_append("<Name>"); \
+ piece_append("<PLex_Name>"); \
flush(); \
- piece_append("</Name>"); \
+ piece_append("</PLex_Name>"); \
return NAME; \
} \
else \
yy_push_state(CODEBLOCK); \
if ((indented_code = x)) ACTION_ECHO; \
flush(); \
- piece_append("<CodeBlock>"); \
+ piece_append("<PLex_CodeBlock>"); \
} while(0)
#define END_CODEBLOCK do { \
yy_pop_state();\
add_action(M4QEND); \
if (!indented_code) line_directive_out(NULL, 0);\
- piece_append("</CodeBlock>"); \
+ piece_append("</PLex_CodeBlock>"); \
} while (0)
/* Nick */
line_directive_out(NULL, 1);
BEGIN(SECT2PROLOG);
#if 1
- piece_append("</Section1>");
+ piece_append("</PLex_Section1>");
piece_pack();
#if 1
piece_esc(yytext, strlen(yytext));
piece_esc(yytext, strlen(yytext));
piece_append("</token>");
#endif
- piece_append("<Section2>");
+ piece_append("<PLex_Section2>");
piece_pack();
return ~SECTEND;
#else
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section2>");
+ piece_append("</PLex_Section2>");
#if 0
piece_append("<token value=\"0\" />");
#endif
bracelevel = 1;
BEGIN(PERCENT_BRACE_ACTION);
flush();
- piece_append("<PercentBraceAction>");
+ piece_append("<PLex_PercentBraceAction>");
}
YY_BREAK
case 139:
piece_append("</token>");
#endif
piece_pack();
- piece_append("<PercentBraceAction>");
+ piece_append("<PLex_PercentBraceAction>");
return ~'\n';
#else
return '\n';
#endif
}
flush();
- piece_append("<PercentBraceAction>");
+ piece_append("<PLex_PercentBraceAction>");
}
YY_BREAK
case 145:
piece_append("</token>");
#endif
piece_pack();
- piece_append("<Section2_Rule_Action>");
+ piece_append("<PLex_Section2_Rule_Action>");
return ~'\n';
#else
return '\n';
piece_append("</token>");
#endif
piece_pack();
- piece_append("<Section2_Rule_Action>");
+ piece_append("<PLex_Section2_Rule_Action>");
return ~'\n';
#else
return '\n';
outn("/* Begin user sect3 */");
#if 1
piece_pack();
- piece_append("</Section2>");
+ piece_append("</PLex_Section2>");
#if 1
piece_esc(yytext, strlen(yytext));
#else
piece_append("</token>");
#endif
piece_pack();
- piece_append("<Section3>");
+ piece_append("<PLex_Section3>");
return ~YY_NULL;
#else
yyterminate(); /* to stop the parser */
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section2>");
+ piece_append("</PLex_Section2>");
#if 0
piece_append("<token value=\"0\" />");
#endif
doing_rule_action = doing_codeblock = false;
BEGIN(SECT2);
- piece_append("</PercentBraceAction>");
+ piece_append("</PLex_PercentBraceAction>");
}
}
YY_BREAK
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section3>");
+ piece_append("</PLex_Section3>");
#if 0
piece_append("<token value=\"0\" />");
#endif
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section3>");
+ piece_append("</PLex_Section3>");
#if 0
piece_append("<token value=\"0\" />");
#endif
/* Nick */
static void markup_action(void) {
- /* append to last token text so it appears inside <Section2_Rule>..</Section2_Rule> */
+ /* append to last token text so it appears inside <PLex_Section2_Rule>..</PLex_Section2_Rule> */
/* a problem here is that Rule has already been reduced (marked up), */
/* because we returned a '\n' token when we detected start of action, */
- /* hence we need to move the closing </Section2_Rule> tag over to our right */
+ /* hence we need to move the closing </PLex_Section2_Rule> tag over to our right */
int i = strlen(piece[--piece0]);
- if (i < 16 || strcmp(piece[piece0] + i - 16, "</Section2_Rule>") != 0)
+ if (i < 21 || strcmp(piece[piece0] + i - 21, "</PLex_Section2_Rule>") != 0)
abort();
- piece[piece0][i - 16] = 0;
- piece_append("</Section2_Rule_Action></Section2_Rule>");
+ piece[piece0][i - 21] = 0;
+ piece_append("</PLex_Section2_Rule_Action></PLex_Section2_Rule>");
piece_pack();
}
int i = piece1;
while (--i >= piece0 && strcmp(piece[i], "no") == 0)
;
- sprintf(piece_temp, "<Section1_Options_%s%s>", name, sense ? " value=\"true\"" : "");
+ sprintf(piece_temp, "<PLex_Section1_Options_%s%s>", name, sense ? " value=\"true\"" : "");
piece_insert(i + 1, piece_temp);
flush();
- sprintf(piece_temp, "</Section1_Options_%s>", name);
+ sprintf(piece_temp, "</PLex_Section1_Options_%s>", name);
piece_append(piece_temp);
- /* append to last token text so it appears inside <Section1_Options>..</Section1_Options> */
+ /* append to last token text so it appears inside <PLex_Section1_Options>..</PLex_Section1_Options> */
--piece0;
piece_pack();
}
if(yyleng < MAXLINE) \
{ \
strncpy( nmstr, yytext, sizeof(nmstr) ); \
- piece_append("<Name>"); \
+ piece_append("<PLex_Name>"); \
flush(); \
- piece_append("</Name>"); \
+ piece_append("</PLex_Name>"); \
return NAME; \
} \
else \
yy_push_state(CODEBLOCK); \
if ((indented_code = x)) ACTION_ECHO; \
flush(); \
- piece_append("<CodeBlock>"); \
+ piece_append("<PLex_CodeBlock>"); \
} while(0)
#define END_CODEBLOCK do { \
yy_pop_state();\
add_action(M4QEND); \
if (!indented_code) line_directive_out(NULL, 0);\
- piece_append("</CodeBlock>"); \
+ piece_append("</PLex_CodeBlock>"); \
} while (0)
/* Nick */
line_directive_out(NULL, 1);
BEGIN(SECT2PROLOG);
#if 1
- piece_append("</Section1>");
+ piece_append("</PLex_Section1>");
piece_pack();
#if 1
piece_esc(yytext, strlen(yytext));
piece_esc(yytext, strlen(yytext));
piece_append("</token>");
#endif
- piece_append("<Section2>");
+ piece_append("<PLex_Section2>");
piece_pack();
return ~SECTEND;
#else
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section2>");
+ piece_append("</PLex_Section2>");
#if 0
piece_append("<token value=\"0\" />");
#endif
bracelevel = 1;
BEGIN(PERCENT_BRACE_ACTION);
flush();
- piece_append("<PercentBraceAction>");
+ piece_append("<PLex_PercentBraceAction>");
}
^{OPTWS}"<" {
piece_append("</token>");
#endif
piece_pack();
- piece_append("<PercentBraceAction>");
+ piece_append("<PLex_PercentBraceAction>");
return ~'\n';
#else
return '\n';
#endif
}
flush();
- piece_append("<PercentBraceAction>");
+ piece_append("<PLex_PercentBraceAction>");
}
{WS}"|".*{NL} {
if (sf_skip_ws()){
piece_append("</token>");
#endif
piece_pack();
- piece_append("<Section2_Rule_Action>");
+ piece_append("<PLex_Section2_Rule_Action>");
return ~'\n';
#else
return '\n';
piece_append("</token>");
#endif
piece_pack();
- piece_append("<Section2_Rule_Action>");
+ piece_append("<PLex_Section2_Rule_Action>");
return ~'\n';
#else
return '\n';
outn("/* Begin user sect3 */");
#if 1
piece_pack();
- piece_append("</Section2>");
+ piece_append("</PLex_Section2>");
#if 1
piece_esc(yytext, strlen(yytext));
#else
piece_append("</token>");
#endif
piece_pack();
- piece_append("<Section3>");
+ piece_append("<PLex_Section3>");
return ~YY_NULL;
#else
yyterminate(); /* to stop the parser */
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section2>");
+ piece_append("</PLex_Section2>");
#if 0
piece_append("<token value=\"0\" />");
#endif
doing_rule_action = doing_codeblock = false;
BEGIN(SECT2);
- piece_append("</PercentBraceAction>");
+ piece_append("</PLex_PercentBraceAction>");
}
}
}
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section3>");
+ piece_append("</PLex_Section3>");
#if 0
piece_append("<token value=\"0\" />");
#endif
sectnum = 0;
#if 1
piece_pack();
- piece_append("</Section3>");
+ piece_append("</PLex_Section3>");
#if 0
piece_append("<token value=\"0\" />");
#endif
/* Nick */
static void markup_action(void) {
- /* append to last token text so it appears inside <Section2_Rule>..</Section2_Rule> */
+ /* append to last token text so it appears inside <PLex_Section2_Rule>..</PLex_Section2_Rule> */
/* a problem here is that Rule has already been reduced (marked up), */
/* because we returned a '\n' token when we detected start of action, */
- /* hence we need to move the closing </Section2_Rule> tag over to our right */
+ /* hence we need to move the closing </PLex_Section2_Rule> tag over to our right */
int i = strlen(piece[--piece0]);
- if (i < 16 || strcmp(piece[piece0] + i - 16, "</Section2_Rule>") != 0)
+ if (i < 21 || strcmp(piece[piece0] + i - 21, "</PLex_Section2_Rule>") != 0)
abort();
- piece[piece0][i - 16] = 0;
- piece_append("</Section2_Rule_Action></Section2_Rule>");
+ piece[piece0][i - 21] = 0;
+ piece_append("</PLex_Section2_Rule_Action></PLex_Section2_Rule>");
piece_pack();
}
int i = piece1;
while (--i >= piece0 && strcmp(piece[i], "no") == 0)
;
- sprintf(piece_temp, "<Section1_Options_%s%s>", name, sense ? " value=\"true\"" : "");
+ sprintf(piece_temp, "<PLex_Section1_Options_%s%s>", name, sense ? " value=\"true\"" : "");
piece_insert(i + 1, piece_temp);
flush();
- sprintf(piece_temp, "</Section1_Options_%s>", name);
+ sprintf(piece_temp, "</PLex_Section1_Options_%s>", name);
piece_append(piece_temp);
- /* append to last token text so it appears inside <Section1_Options>..</Section1_Options> */
+ /* append to last token text so it appears inside <PLex_Section1_Options>..</PLex_Section1_Options> */
--piece0;
piece_pack();
}