*.la
*.lo
*.o
-Makefile
-autom4te.cache/
-config.log
-config.status
-doc/Makefile
-doc/flex.taxi
-examples/Makefile
-examples/fastwc/Makefile
-examples/manual/Makefile
-lib/.deps/
-libtool
-po/Makefile
-po/Makefile.in
-po/POTFILES
-src/.deps/
-src/.libs/
-src/Makefile
-src/Makefile.orig
-src/config.h
-src/config.h.in~
-src/flex
-src/parse.c.orig
-src/parse.y.xml
-src/scan.c.orig
-src/scan.l.xml
-src/stage1flex
-src/stage1scan.c
-src/stage1scan.c.orig
-src/stamp-h1
-tests/.deps/
-tests/Makefile
-tools/Makefile
+/Makefile
+/autom4te.cache/
+/config.log
+/config.status
+/doc/Makefile
+/doc/flex.taxi
+/examples/Makefile
+/examples/fastwc/Makefile
+/examples/manual/Makefile
+/lib/.deps/
+/libtool
+/po/Makefile
+/po/Makefile.in
+/po/POTFILES
+/src/.deps/
+/src/.libs/
+/src/Makefile
+/src/Makefile.orig
+/src/config.h
+/src/config.h.in~
+/src/flex
+/src/parse.c.orig
+/src/parse.y.xml
+/src/scan.c.orig
+/src/scan.l.xml
+/src/stage1flex
+/src/stage1scan.c
+/src/stage1scan.c.orig
+/src/stamp-h1
+/tests/.deps/
+/tests/Makefile
+/tools/Makefile
#if 1
void piece_append(const char *str);
- piece_append("<root><AST ref=\"0\"><AST_Section1>");
+ piece_append("<root>\n <AST ref=\"0\"><AST_Section1>");
#endif
readin ();
make_tables ();
#if 1
/* at this point flexscan() has been called to copy section 3 to the output */
- piece_append("</AST></root>\n");
+ piece_append("</AST>\n</root>\n");
extern char *piece[];
extern int piece1;
BEGIN(SECT2);
#if 1
/* here we know yytext is not used by parser, so OK to destroy it */
- piece_flush(1);
piece_pack();
+ piece_flush(1);
piece_append("<RegexGroupName_Text>");
piece_flush(strlen(yytext) - 1);
piece_append("</RegexGroupName_Text>");
- piece_pack();
piece_flush(1);
+ piece_pack();
return ~NAME;
#else
return NAME;
BEGIN(SECT2);
#if 1
/* here we know yytext is not used by parser, so OK to destroy it */
- piece_flush(1);
piece_pack();
+ piece_flush(1);
piece_append("<RegexGroupName_Text>");
piece_flush(strlen(yytext) - 1);
piece_append("</RegexGroupName_Text>");
- piece_pack();
piece_flush(1);
+ piece_pack();
return ~NAME;
#else
return NAME;