home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume20 / rc / part04 / lex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-22  |  502 b   |  32 lines

  1. enum redirtype {
  2.     FROM, CREATE, APPEND, HEREDOC, HERESTRING
  3. };
  4.  
  5. typedef struct Pipe {
  6.     int left,right;
  7. } Pipe;
  8.  
  9. typedef struct Dup {
  10.     enum redirtype type;
  11.     int left,right;
  12. } Dup;
  13.  
  14. typedef struct Redir {
  15.     enum redirtype type;
  16.     int fd;
  17. } Redir;
  18.  
  19. typedef struct Word {
  20.     char *w;
  21.     char *m;
  22. } Word;
  23.  
  24. extern int yylex(void);
  25. extern void inityy(void);
  26. extern void skipnl(void);
  27. extern void yyerror(const char *);
  28. extern void scanerror(char *);
  29. extern void print_prompt2(void);
  30.  
  31. extern const char nw[], dnw[];
  32.