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

  1. /*
  2.  * Created by IBM PC LEX from file "lex.lxi"
  3.  *    - for use with standard I/O
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <lex.h>
  8. #define LL16BIT int
  9. extern int _lmovb();
  10. extern struct lextab *_tabp;
  11. int lexval, yyline;
  12. char llbuf[], *llend;
  13.  
  14. LL16BIT _Flextab[] =
  15.    {
  16.    -1, -1,
  17.    };
  18.  
  19. #line 1
  20.  
  21. #define    LLTYPE1    char
  22.  
  23. LLTYPE1 _Nlextab[] =
  24.    {
  25.    1,
  26.    };
  27.  
  28. LLTYPE1 _Clextab[] =
  29.    {
  30.    -1,
  31.    };
  32.  
  33. LLTYPE1 _Dlextab[] =
  34.    {
  35.    1,
  36.    };
  37.  
  38. LL16BIT _Blextab[] =
  39.    {
  40.    0, 0,
  41.    };
  42.  
  43. struct lextab lextab =    {
  44.             1,        /* Highest state */
  45.             _Dlextab,    /* --> "Default state" table */
  46.             _Nlextab,    /* --> "Next state" table */
  47.             _Clextab,    /* --> "Check value" table */
  48.             _Blextab,    /* --> "Base" table */
  49.             0,        /* Index of last entry in "next" */
  50.             _lmovb,        /* --> Byte-int move routine */
  51.             _Flextab,    /* --> "Final state" table */
  52.             _Alextab,    /* --> Action routine */
  53.  
  54.             NULL,       /* Look-ahead vector */
  55.             0,        /* No Ignore class */
  56.             0,        /* No Break class */
  57.             0,        /* No Illegal class */
  58.             };
  59.  
  60. /* Standard I/O selected */
  61. FILE *lexin;
  62.  
  63. llstin()
  64.    {
  65.    if(lexin == NULL)
  66.       lexin = stdin;
  67.    if(_tabp == NULL)
  68.       lexswitch(&lextab);
  69.    }
  70.  
  71.