/[bison]/bison/src/scan-skel.l
ViewVC logotype

Diff of /bison/src/scan-skel.l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by eggert, Tue Nov 12 07:27:51 2002 UTC revision 1.18 by akim, Sat Nov 16 12:31:36 2002 UTC
# Line 18  Line 18 
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  %{  %{
# Line 30  Line 30 
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    
# Line 63  int skel_lex (void); Line 66  int skel_lex (void);
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  %%  %%
# Line 82  void Line 87  void
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  }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26