home *** CD-ROM | disk | FTP | other *** search
/ ftp.disi.unige.it / 2015-02-11.ftp.disi.unige.it.tar / ftp.disi.unige.it / pub / .person / CataniaB / teach-act / esempi / Comp-Sep / getsym.h < prev    next >
Text File  |  1999-05-13  |  206b  |  14 lines

  1.  
  2. #define NOFSYM 8
  3.  
  4.  
  5. typedef enum{NOTREC = -2,PLUS = 0, MINUS, TIMES, DIV, MOD, EQUAL, 
  6.          LPAR, RPAR, NUMBER} symkind;
  7.          
  8. typedef struct {symkind kind; int value;} symbol;
  9.         
  10. symbol getsym();
  11.  
  12.  
  13.  
  14.