/[bison]/bison/src/scan-gram.c
ViewVC logotype

Diff of /bison/src/scan-gram.c

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

revision 1.17 by hilfinger, Fri Jun 28 02:26:44 2002 UTC revision 1.18 by akim, Sun Jun 30 17:27:57 2002 UTC
# Line 15  Line 15 
15  #define yyrestart gram_restart  #define yyrestart gram_restart
16  #define yytext gram_text  #define yytext gram_text
17    
18  #line 19 "scan-gram.c"  #line 19 "lex.yy.c"
19  /* A lexical scanner generated by flex */  /* A lexical scanner generated by flex */
20    
21  /* Scanner skeleton version:  /* Scanner skeleton version:
# Line 27  Line 27 
27  #define YY_FLEX_MINOR_VERSION 5  #define YY_FLEX_MINOR_VERSION 5
28    
29  #include <stdio.h>  #include <stdio.h>
30    #include <errno.h>
31    
32  /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */  /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
33  #ifdef c_plusplus  #ifdef c_plusplus
# Line 40  Line 40 
40  #ifdef __cplusplus  #ifdef __cplusplus
41    
42  #include <stdlib.h>  #include <stdlib.h>
43    #ifndef _WIN32
44  #include <unistd.h>  #include <unistd.h>
45    #endif
46    
47  /* Use prototypes in function declarations. */  /* Use prototypes in function declarations. */
48  #define YY_USE_PROTOS  #define YY_USE_PROTOS
# Line 823  static void handle_at PARAMS ((braced_co Line 825  static void handle_at PARAMS ((braced_co
825  #define SC_PROLOGUE 7  #define SC_PROLOGUE 7
826  #define SC_EPILOGUE 8  #define SC_EPILOGUE 8
827    
828  #line 827 "scan-gram.c"  #line 829 "lex.yy.c"
829    
830  /* Macros after this point can all be overridden by user definitions in  /* Macros after this point can all be overridden by user definitions in
831   * section 1.   * section 1.
# Line 923  YY_MALLOC_DECL Line 925  YY_MALLOC_DECL
925                          YY_FATAL_ERROR( "input in flex scanner failed" ); \                          YY_FATAL_ERROR( "input in flex scanner failed" ); \
926                  result = n; \                  result = n; \
927                  } \                  } \
928          else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \          else \
929                    && ferror( yyin ) ) \                  { \
930                  YY_FATAL_ERROR( "input in flex scanner failed" );                  errno=0; \
931                    while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
932                            { \
933                            if( errno != EINTR) \
934                                    { \
935                                    YY_FATAL_ERROR( "input in flex scanner failed" ); \
936                                    break; \
937                                    } \
938                            errno=0; \
939                            clearerr(yyin); \
940                            } \
941                    }
942  #endif  #endif
943    
944  /* No semi-colon after return; correct usage is to write "yyterminate();" -  /* No semi-colon after return; correct usage is to write "yyterminate();" -
# Line 997  YY_DECL Line 1010  YY_DECL
1010    /*----------------------------.    /*----------------------------.
1011    | Scanning Bison directives.  |    | Scanning Bison directives.  |
1012    `----------------------------*/    `----------------------------*/
1013  #line 1001 "scan-gram.c"  #line 1014 "lex.yy.c"
1014    
1015          if ( yy_init )          if ( yy_init )
1016                  {                  {
# Line 1291  case 39: Line 1304  case 39:
1304  YY_RULE_SETUP  YY_RULE_SETUP
1305  #line 162 "scan-gram.l"  #line 162 "scan-gram.l"
1306  {  {
1307      yylval->symbol = getsym (yytext, *yylloc);      yylval->symbol = symbol_get (yytext, *yylloc);
1308      return ID;      return ID;
1309    }    }
1310          YY_BREAK          YY_BREAK
# Line 1482  YY_RULE_SETUP Line 1495  YY_RULE_SETUP
1495      assert (yy_top_state () == INITIAL);      assert (yy_top_state () == INITIAL);
1496      {      {
1497        YY_OBS_FINISH;        YY_OBS_FINISH;
1498        yylval->symbol = getsym (last_string, *yylloc);        yylval->symbol = symbol_get (last_string, *yylloc);
1499        symbol_class_set (yylval->symbol, token_sym, *yylloc);        symbol_class_set (yylval->symbol, token_sym, *yylloc);
1500        symbol_user_token_number_set (yylval->symbol, last_string[1], *yylloc);        symbol_user_token_number_set (yylval->symbol, last_string[1], *yylloc);
1501        YY_OBS_FREE;        YY_OBS_FREE;
# Line 1857  YY_RULE_SETUP Line 1870  YY_RULE_SETUP
1870  #line 528 "scan-gram.l"  #line 528 "scan-gram.l"
1871  YY_FATAL_ERROR( "flex scanner jammed" );  YY_FATAL_ERROR( "flex scanner jammed" );
1872          YY_BREAK          YY_BREAK
1873  #line 1861 "scan-gram.c"  #line 1874 "lex.yy.c"
1874  case YY_STATE_EOF(INITIAL):  case YY_STATE_EOF(INITIAL):
1875          yyterminate();          yyterminate();
1876    
# Line 2421  YY_BUFFER_STATE b; Line 2434  YY_BUFFER_STATE b;
2434          }          }
2435    
2436    
2437    #ifndef _WIN32
2438    #include <unistd.h>
2439    #else
2440  #ifndef YY_ALWAYS_INTERACTIVE  #ifndef YY_ALWAYS_INTERACTIVE
2441  #ifndef YY_NEVER_INTERACTIVE  #ifndef YY_NEVER_INTERACTIVE
2442  extern int isatty YY_PROTO(( int ));  extern int isatty YY_PROTO(( int ));
2443  #endif  #endif
2444  #endif  #endif
2445    #endif
2446    
2447  #ifdef YY_USE_PROTOS  #ifdef YY_USE_PROTOS
2448  void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )  void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )

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