%{
#include "system.h"
+#include "error.h"
+#include "getargs.h"
#include "files.h"
-int skel_lex PARAMS ((void));
+int skel_lex (void);
static int yylineno = 1;
static char *yyoutname = NULL;
%}
yylineno = 1;
}
-"@<:@" fputc ('[', yyout);
-"@:>@" fputc (']', yyout);
+"@<:@" fputc ('[', yyout);
+"@:>@" fputc (']', yyout);
"__oline__" fprintf (yyout, "%d", yylineno+1);
"__ofile__" fprintf (yyout, "%s", yyoutname);
\n+ yylineno += yyleng; ECHO;
. ECHO;
+<<EOF>> xfclose (yyout); free (yyoutname); return EOF;
%%
+
+/*------------------------.
+| Scan a Bison skeleton. |
+`------------------------*/
+
+void scan_skel (FILE *);
+
+void
+scan_skel (FILE *in)
+{
+ skel_in = in;
+ skel_lex ();
+
+ /* Reclaim Flex's buffers. */
+ yy_delete_buffer (YY_CURRENT_BUFFER);
+}