home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_200 / 285_02 / lex.h < prev    next >
Text File  |  1990-07-09  |  2KB  |  62 lines

  1. /*
  2.     LEX.H header
  3.     [bison]
  4.     DrH 1/4/88
  5. */
  6. /* Token type definitions for bison's input reader,
  7.    Copyright (C) 1984 Bob Corbett and Free Software Foundation, Inc.
  8.  
  9. BISON is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY.  No author or distributor accepts responsibility to anyone
  11. for the consequences of using it or for whether it serves any
  12. particular purpose or works at all, unless he says so in writing.
  13. Refer to the BISON General Public License for full details.
  14.  
  15. Everyone is granted permission to copy, modify and redistribute BISON,
  16. but only under the conditions described in the BISON General Public
  17. License.  A copy of this license is supposed to have been given to you
  18. along with BISON so you can know your rights and responsibilities.  It
  19. should be in a file named COPYING.  Among other things, the copyright
  20. notice and this notice must be preserved on all copies.
  21.  
  22.  In other words, you are welcome to use, share and improve this program.
  23.  You are forbidden to forbid anyone else to use, share and improve
  24.  what you give them.   Help stamp out software-hoarding!  */
  25.  
  26. #define ENDFILE     0
  27. #define IDENTIFIER  1
  28. #define COMMA       2
  29. #define COLON       3
  30. #define SEMICOLON   4
  31. #define BAR     5
  32. #define LEFT_CURLY  6
  33. #define TWO_PERCENTS    7
  34. #define PERCENT_LEFT_CURLY  8
  35. #define TOKEN       9
  36. #define NTERM       10
  37. #define GUARD          11
  38. #define TYPE           12
  39. #define UNION          13
  40. #define START          14
  41. #define LEFT           15
  42. #define RIGHT          16
  43. #define NONASSOC       17
  44. #define PREC           18
  45. #define SEMANTIC_PARSER 19
  46. #define PURE_PARSER    20
  47. #define TYPENAME       21
  48. #define NUMBER         22
  49. #define EXPECT         23
  50. #define ILLEGAL        24
  51.  
  52. #define MAXTOKEN    1024
  53.  
  54.  
  55. /*------------------------- FUNCTION DECLARATIONS --------------------------*/
  56.  
  57. extern  void init_lex(void );
  58. extern  int skip_white_space(void );
  59. extern  void unlex(int token);
  60. extern  int lex(void );
  61. extern  int parse_percent_token(void );
  62.