home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / hl10osrc.lzh / Lib / ParseExpr.tab.h < prev    next >
Text File  |  1994-04-23  |  874b  |  52 lines

  1. // This may look like C code, but it is really -*- C++ -*-
  2.  
  3. // A Bison++ parser, made from ParseExpr.y 
  4.  
  5. #ifndef PARSEEXPR_Y 
  6.  
  7. #define PARSEEXPR_Y 
  8.  
  9. typedef union {
  10.     int ival;
  11.     char* sval;
  12.     Fields fval;
  13.     CardType tval;
  14.     Tree* trval;
  15.     Node* nval;
  16. } ParseExpr_YYSTYPE;
  17.  
  18. typedef
  19.   struct ParseExpr_YYLTYPE {
  20.    int timestamp;
  21.    int first_line;
  22.    int first_column;
  23.    int last_line;
  24.    int last_column;
  25.    char *text;
  26. };
  27.  
  28. class ParseExpr {
  29. private:
  30.    int yychar;
  31.    ParseExpr_YYSTYPE yylval;
  32.    ParseExpr_YYLTYPE yylloc;
  33.    int yynerrs;
  34. protected:
  35. public:
  36.   ParseExpr() {};
  37.   int yyparse();
  38.   void yyerror(char *);
  39.   int yylex();
  40.   static const int    INTEGER;
  41.   static const int    STRING;
  42.   static const int    FIELD;
  43.   static const int    CARDTYPE;
  44.   static const int    BADWORD;
  45.   static const int    NOTEQ;
  46.   static const int    LESSEQ;
  47.   static const int    GREATEREQ;
  48.  
  49. };
  50.  
  51. #endif PARSEEXPR_Y
  52.