home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / OS2_LEX.ZIP / IMPURE.C < prev    next >
C/C++ Source or Header  |  1980-01-01  |  1KB  |  68 lines

  1. /*
  2.  * impure.c  -- Impure data for ytab.c and min.c
  3.  *
  4.  * Created 02-Dec-80 Bob Denny -- Impure data from ytab.c and min.c moved
  5.  *                                     here so they can reside in overlays.
  6.  * More    19-Mar-82 Bob Denny -- New C library & compiler
  7.  * More       20-Nov-83 Scott Guthery -- Adapt for IBM PC & DeSmet C    
  8.  */
  9.  
  10. #include <stdio.h>
  11. #include "lexlex.h"
  12. #include "ytab.h"
  13.  
  14. /*
  15.  * min's
  16.  */
  17. struct set **oldpart;
  18. int **newpart;
  19. int nold;
  20. int nnew;
  21.  
  22. /*
  23.  * ytab's
  24.  */
  25.  
  26. struct nlist {
  27.         struct  nlist   *nl_next;
  28.         struct  nfa     *nl_base;
  29.         struct  nfa     *nl_end;
  30.         struct  nfa     *nl_start;
  31.         struct  nfa     *nl_final;
  32.              } *nlist;
  33.  
  34. #ifndef YYSTYPE
  35. #define YYSTYPE int
  36. #endif
  37.  
  38. YYSTYPE yyval = 0;
  39. YYSTYPE *yypv;
  40. YYSTYPE yylval = 0;
  41.  
  42. int nlook = 0;
  43. int yyline = 0;
  44. char *breakc;
  45. char *ignore;
  46. char *illeg;
  47.  
  48. char buffer[150];
  49. int str_length;
  50.  
  51. char ccl[(NCHARS+1)/NBPC];
  52.  
  53. /*
  54.  * Copied from ytab.c just before yyparse() ... kludgy.
  55.  */
  56. #define YYMAXDEPTH 150
  57.  
  58. /*
  59.  * These are impure data for the parser driver yyparse().
  60.  */
  61.  
  62. int yydebug = 0;                /* Make this 1 for yyparse() debugging  */
  63. YYSTYPE yyv[YYMAXDEPTH];
  64. int yychar = -1;
  65. int yynerrs = 0;
  66. int yyerrflag = 0;
  67.  
  68.