00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef YYTOKENTYPE
00037 # define YYTOKENTYPE
00038
00039
00040 enum yytokentype {
00041 NOUNSTR = 258,
00042 NUMSEQ = 259,
00043 NUMSTR = 260,
00044 NUMHEX = 261,
00045 STRSEQ = 262,
00046 LITSTR = 263,
00047 NOTOP = 264,
00048 LEOP = 265,
00049 GEOP = 266,
00050 LTOP = 267,
00051 GTOP = 268,
00052 EQOP = 269,
00053 NEQOP = 270,
00054 ANDOP = 271,
00055 ANDNOTOP = 272,
00056 BETWEENOP = 273,
00057 INOP = 274,
00058 JOINOP = 275,
00059 ANYOP = 276,
00060 OROP = 277,
00061 XOROP = 278,
00062 BITOROP = 279,
00063 BITANDOP = 280,
00064 MINUSOP = 281,
00065 MULTOP = 282,
00066 DIVOP = 283,
00067 REMOP = 284,
00068 EXPOP = 285,
00069 ADDOP = 286,
00070 STRING_EXPRESSION = 287,
00071 UNOT = 288
00072 };
00073 #endif
00074
00075
00076
00077 #line 1 "predicate.y"
00078
00079
00080
00081
00082
00083
00084
00085
00086 #include "util.h"
00087 #include "qExpr.h"
00088 #include "predicate.h"
00089
00090 #include <stack>
00091 #include <deque>
00092 #include <vector>
00093
00094 #include <string.h>
00095 #include <stdio.h>
00096
00097 int yylex();
00098
00099
00100 static std::stack<ibis::qExpr*, std::deque<ibis::qExpr*> > qexpr_stack;
00101 static ibis::qExpr *pn1 = 0;
00102
00103
00104 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
00105 typedef union YYSTYPE
00106 #line 27 "predicate.y"
00107 {
00108 float fval;
00109 int ival;
00110 char *sval;
00111 }
00112
00113 #line 114 "predicate.tab.h"
00114 YYSTYPE;
00115 # define YYSTYPE_IS_DECLARED 1
00116 # define YYSTYPE_IS_TRIVIAL 1
00117 #endif
00118
00119 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
00120 typedef struct YYLTYPE
00121 {
00122
00123 char yydummy;
00124
00125 } YYLTYPE;
00126 # define YYLTYPE_IS_DECLARED 1
00127 # define YYLTYPE_IS_TRIVIAL 1
00128 #endif
00129
00130
00131 extern YYSTYPE yylval;
00132
00133
00134