home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gwm18a.zip / yacc.h < prev   
C/C++ Source or Header  |  1995-07-03  |  1KB  |  59 lines

  1. /* Copyright 1989 GROUPE BULL -- See license conditions in file COPYRIGHT
  2.  * Copyright 1989 Massachusetts Institute of Technology
  3.  */
  4. /***********************\
  5. *                 *
  6. *  parsing definitions  *
  7. *                 *
  8. \***********************/
  9.  
  10. #ifndef INCLUDE_YACC_H
  11. #define INCLUDE_YACC_H
  12.  
  13. typedef struct _WOOL_STRING_STREAM {
  14.     char           *buffer;
  15.     char           *ptr;
  16.     char           *last;
  17.     int             (*overflow_handler) ();
  18. }              *WOOL_STRING_STREAM;
  19.  
  20. #define AHEAD_BUF_SIZE 16
  21.  
  22. /* max token length */
  23.  
  24. #define MAX_TOKEN_LENGTH 1024
  25.  
  26. /* exported objects */
  27.  
  28. EXT char       *wool_pool_buffer 
  29. INIT(NULL);
  30. EXT int wool_pool_buffer_size 
  31. INIT(252);
  32. EXT int wool_pool_parentheses_level 
  33. INIT(0);
  34. EXT char       *wool_is_reading_file 
  35. INIT(NULL);
  36.  
  37. /* exported functions */
  38.  
  39. EXT char       *strip_string();
  40. EXT WOOL_OBJECT make_quoted_expression();
  41. EXT int         wool_input_redirect();
  42. EXT int         wool_output_redirect();
  43. EXT void         wool_puts();
  44. EXT void         wool_putchar();
  45. EXT void         yyoutflush();
  46. EXT void         yyinflush();
  47.  
  48. #ifdef DO_INIT
  49. #ifndef atol /* dont declare if it is a macro ! */
  50. extern long     atol();
  51. #endif
  52.  
  53. #else
  54. #define END_OF_FILE 257
  55. extern int      yylineno;
  56.  
  57. #endif
  58. #endif /* INCLUDE_YACC_H */
  59.