18 |
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
19 |
02111-1307, USA. */ |
02111-1307, USA. */ |
20 |
|
|
21 |
%option nodefault noyywrap nounput never-interactive |
%option nodefault noyywrap nounput never-interactive debug |
22 |
%option prefix="skel_" outfile="lex.yy.c" |
%option prefix="skel_" outfile="lex.yy.c" |
23 |
|
|
24 |
%{ |
%{ |
30 |
|
|
31 |
int skel_lex (void); |
int skel_lex (void); |
32 |
|
|
33 |
|
#define QPUTS(String) \ |
34 |
|
fputs (quotearg_style (c_quoting_style, (String)), yyout); |
35 |
|
|
36 |
%} |
%} |
37 |
%% |
%% |
38 |
|
|
66 |
"@}" fputc (']', yyout); |
"@}" fputc (']', yyout); |
67 |
|
|
68 |
"@oline@" fprintf (yyout, "%d", lineno); |
"@oline@" fprintf (yyout, "%d", lineno); |
69 |
"@ofile@" fputs (quotearg_style (c_quoting_style, outname), yyout); |
"@ofile@" QPUTS (outname); |
70 |
|
"@output_parser_name@" QPUTS (parser_file_name); |
71 |
|
"@output_header_name@" QPUTS (spec_defines_file); |
72 |
|
|
73 |
"@" abort (); |
"@" abort (); |
74 |
\n lineno++; ECHO; |
\n lineno++; ECHO; |
75 |
. ECHO; |
[^@\n]+ ECHO; |
76 |
|
|
77 |
<<EOF>> xfclose (yyout); free (outname); return EOF; |
<<EOF>> xfclose (yyout); free (outname); return EOF; |
78 |
%% |
%% |
87 |
scan_skel (FILE *in) |
scan_skel (FILE *in) |
88 |
{ |
{ |
89 |
skel_in = in; |
skel_in = in; |
90 |
|
skel__flex_debug = trace_flag & trace_skeleton; |
91 |
skel_lex (); |
skel_lex (); |
|
|
|
92 |
/* Reclaim Flex's buffers. */ |
/* Reclaim Flex's buffers. */ |
93 |
yy_delete_buffer (YY_CURRENT_BUFFER); |
yy_delete_buffer (YY_CURRENT_BUFFER); |
94 |
} |
} |