(file) Return to WQLYACC.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / WQL

File: [Pegasus] / pegasus / src / Pegasus / WQL / WQLYACC.cpp (download)
Revision: 1.11, Mon Feb 14 23:22:47 2005 UTC (19 years, 4 months ago) by karl
Branch: MAIN
CVS Tags: PEP214ROOT, PEP214BRANCH, PEP214-root, PEP214-branch, PEP-214B-root, PEG25_IBM_5_16_05
Changes since 1.10: +597 -1052 lines
BUG#: 2731
TITLE: Correct Compile Failure buiding WQLYACC.cpp on HP-UX

DESCRIPTION: the yacc output was putting in a pragma with
the file name changed from uppercase to lower case. This was
corrected by using a different version of bison/flex.  Note that
there were a number of other differences that showed up when
this was compiled with an up-to-date version of the utilities.
The resulting files pass the included parser tests.

#ifndef lint
static char const 
yyrcsid[] = "$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.28 2000/01/17 02:04:06 bde Exp $";
#endif
#include <stdlib.h>
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYLEX yylex()
#define YYEMPTY -1
#define yyclearin (yychar=(YYEMPTY))
#define yyerrok (yyerrflag=0)
#define YYRECOVERING() (yyerrflag!=0)
static int yygrowstack();
#define yyparse WQL_parse
#define yylex WQL_lex
#define yyerror WQL_error
#define yychar WQL_char
#define yyval WQL_val
#define yylval WQL_lval
#define yydebug WQL_debug
#define yynerrs WQL_nerrs
#define yyerrflag WQL_errflag
#define yyss WQL_ss
#define yyssp WQL_ssp
#define yyvs WQL_vs
#define yyvsp WQL_vsp
#define yylhs WQL_lhs
#define yylen WQL_len
#define yydefred WQL_defred
#define yydgoto WQL_dgoto
#define yysindex WQL_sindex
#define yyrindex WQL_rindex
#define yygindex WQL_gindex
#define yytable WQL_table
#define yycheck WQL_check
#define yyname WQL_name
#define yyrule WQL_rule
#define yysslim WQL_sslim
#define yystacksize WQL_stacksize
#define YYPREFIX "WQL_"
#line 38 "WQL.y"

#include <Pegasus/Common/Config.h>
#include <Pegasus/WQL/WQLOperation.h>
#include <Pegasus/WQL/WQLOperand.h>
#include <Pegasus/WQL/WQLParserState.h>
#include <Pegasus/WQL/WQLSelectStatement.h>
#include <string.h>
#include <stdlib.h>

#ifdef PEGASUS_OS_TYPE_WINDOWS
# include <malloc.h>
#endif

#if defined(PEGASUS_COMPILER_ACC) && defined(PEGASUS_OS_HPUX)
# include <alloca.h>
#endif

#if 0
# define WQL_TRACE(X) printf X
#else
# define WQL_TRACE(X)
#endif

extern int WQL_lex();
extern int WQL_error(const char*);

/**/
/* Define the global parser state object:*/
/**/

PEGASUS_USING_PEGASUS;

PEGASUS_NAMESPACE_BEGIN

extern WQLParserState* globalParserState;

PEGASUS_NAMESPACE_END

#line 86 "WQL.y"
typedef union 
{
   int intValue;
   double doubleValue;
   char* strValue;
   void* nodeValue;
} YYSTYPE;
#line 90 "y.tab.c"
#define YYERRCODE 256
#define TOK_INTEGER 257
#define TOK_DOUBLE 258
#define TOK_STRING 259
#define TOK_TRUE 260
#define TOK_FALSE 261
#define TOK_NULL 262
#define TOK_ISA 263
#define TOK_EQ 264
#define TOK_NE 265
#define TOK_LT 266
#define TOK_LE 267
#define TOK_GT 268
#define TOK_GE 269
#define TOK_NOT 270
#define TOK_OR 271
#define TOK_AND 272
#define TOK_IS 273
#define TOK_IDENTIFIER 274
#define TOK_SELECT 275
#define TOK_WHERE 276
#define TOK_FROM 277
#define TOK_UNEXPECTED_CHAR 278
const short WQL_lhs[] = {                                        -1,
    0,    9,   10,   10,    2,    2,   11,   11,    7,    8,
    6,    6,    6,    6,    6,    6,    6,    3,    3,    4,
    4,    4,    4,    4,    4,    4,    5,    5,   13,   13,
    1,   12,   14,   14,   14,   14,   14,
};
const short WQL_len[] = {                                         2,
    1,    3,    1,    1,    1,    3,    2,    1,    2,    2,
    3,    3,    2,    3,    1,    3,    4,    1,    1,    3,
    3,    3,    3,    3,    3,    3,    3,    4,    1,    1,
    1,    1,    1,    1,    1,    1,    1,
};
const short WQL_defred[] = {                                      0,
    0,    0,    1,   31,    3,    5,    0,    0,    0,    0,
    0,    2,    6,   32,    9,    0,    7,   34,   35,   36,
   29,   30,    0,    0,    0,    0,   18,   19,    0,   37,
    0,   13,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,   14,   26,    0,   16,    0,   12,
   33,   24,   25,   20,   22,   21,   23,   27,    0,   17,
   28,
};
const short WQL_dgoto[] = {                                       2,
   51,    7,   26,   27,   28,   29,   11,   17,    3,    8,
   12,   15,   30,   31,
};
const short WQL_sindex[] = {                                   -246,
  -38,    0,    0,    0,    0,    0,  -25, -247, -242, -241,
 -224,    0,    0,    0,    0,  -40,    0,    0,    0,    0,
    0,    0,  -40,  -40, -210, -218,    0,    0, -256,    0,
 -230,    0,  -39, -241, -239,  -40,  -40, -251, -251, -251,
 -251, -251, -251, -211,    0,    0, -243,    0, -216,    0,
    0,    0,    0,    0,    0,    0,    0,    0, -205,    0,
    0,
};
const short WQL_rindex[] = {                                      0,
    0,    0,    0,    0,    0,    0, -209,    0,    0,    0,
   58,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0, -219,    1,    0,    0,   66,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    3,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,
};
const short WQL_gindex[] = {                                      0,
    4,    0,    0,    0,    0,  -12,    0,    0,    0,    0,
    0,   33,  -21,   22,
};
#define YYTABLESIZE 274
const short WQL_table[] = {                                      24,
   15,   45,   11,    5,    6,   18,   19,   20,   21,   22,
   32,   33,   13,   48,   36,   37,   21,   22,    9,   25,
   21,   22,    4,   49,   50,   60,   25,   25,    1,   10,
   47,    4,   14,   38,   39,   40,   41,   42,   43,   25,
   25,   15,   44,   11,   33,   33,   33,   33,   33,   33,
   58,   16,   34,   33,   35,   37,   61,    8,   59,   52,
   53,   54,   55,   56,   57,   10,   46,    4,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,   18,   19,   20,   21,
   22,    0,    0,    0,    0,    0,    0,    0,    0,   23,
    0,   36,   37,    4,    0,    4,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,   15,   15,   11,
};
const short WQL_check[] = {                                      40,
    0,   41,    0,   42,    1,  257,  258,  259,  260,  261,
   23,   24,    9,   35,  271,  272,  260,  261,   44,   16,
  260,  261,  274,   36,   37,   47,   23,   24,  275,  277,
  270,  274,  274,  264,  265,  266,  267,  268,  269,   36,
   37,   41,  273,   41,  264,  265,  266,  267,  268,  269,
  262,  276,  263,  273,  273,  272,  262,    0,  270,   38,
   39,   40,   41,   42,   43,    0,   34,  277,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,  257,  258,  259,  260,
  261,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  270,
   -1,  271,  272,  274,   -1,  274,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,  271,  272,  271,
};
#define YYFINAL 2
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
#define YYMAXTOKEN 278
#if YYDEBUG
const char * const WQL_name[] = {
"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,"'('","')'","'*'",0,"','",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"TOK_INTEGER",
"TOK_DOUBLE","TOK_STRING","TOK_TRUE","TOK_FALSE","TOK_NULL","TOK_ISA","TOK_EQ",
"TOK_NE","TOK_LT","TOK_LE","TOK_GT","TOK_GE","TOK_NOT","TOK_OR","TOK_AND",
"TOK_IS","TOK_IDENTIFIER","TOK_SELECT","TOK_WHERE","TOK_FROM",
"TOK_UNEXPECTED_CHAR",
};
const char * const WQL_rule[] = {
"$accept : start",
"start : selectStatement",
"selectStatement : TOK_SELECT selectList selectExpression",
"selectList : '*'",
"selectList : propertyList",
"propertyList : propertyName",
"propertyList : propertyList ',' propertyName",
"selectExpression : fromClause whereClause",
"selectExpression : fromClause",
"fromClause : TOK_FROM className",
"whereClause : TOK_WHERE searchCondition",
"searchCondition : searchCondition TOK_OR searchCondition",
"searchCondition : searchCondition TOK_AND searchCondition",
"searchCondition : TOK_NOT searchCondition",
"searchCondition : '(' searchCondition ')'",
"searchCondition : predicate",
"searchCondition : predicate TOK_IS truthValue",
"searchCondition : predicate TOK_IS TOK_NOT truthValue",
"predicate : comparisonPredicate",
"predicate : nullPredicate",
"comparisonPredicate : comparisonTerm TOK_LT comparisonTerm",
"comparisonPredicate : comparisonTerm TOK_GT comparisonTerm",
"comparisonPredicate : comparisonTerm TOK_LE comparisonTerm",
"comparisonPredicate : comparisonTerm TOK_GE comparisonTerm",
"comparisonPredicate : comparisonTerm TOK_EQ comparisonTerm",
"comparisonPredicate : comparisonTerm TOK_NE comparisonTerm",
"comparisonPredicate : propertyName TOK_ISA className",
"nullPredicate : comparisonTerm TOK_IS TOK_NULL",
"nullPredicate : comparisonTerm TOK_IS TOK_NOT TOK_NULL",
"truthValue : TOK_TRUE",
"truthValue : TOK_FALSE",
"propertyName : TOK_IDENTIFIER",
"className : TOK_IDENTIFIER",
"comparisonTerm : propertyName",
"comparisonTerm : TOK_INTEGER",
"comparisonTerm : TOK_DOUBLE",
"comparisonTerm : TOK_STRING",
"comparisonTerm : truthValue",
};
#endif
#if YYDEBUG
#include <stdio.h>
#endif
#ifdef YYSTACKSIZE
#undef YYMAXDEPTH
#define YYMAXDEPTH YYSTACKSIZE
#else
#ifdef YYMAXDEPTH
#define YYSTACKSIZE YYMAXDEPTH
#else
#define YYSTACKSIZE 10000
#define YYMAXDEPTH 10000
#endif
#endif
#define YYINITSTACKSIZE 200
int yydebug;
int yynerrs;
int yyerrflag;
int yychar;
short *yyssp;
YYSTYPE *yyvsp;
YYSTYPE yyval;
YYSTYPE yylval;
short *yyss;
short *yysslim;
YYSTYPE *yyvs;
int yystacksize;
/* allocate initial stack or double stack size, up to YYMAXDEPTH */
static int yygrowstack()
{
    int newsize, i;
    short *newss;
    YYSTYPE *newvs;

    if ((newsize = yystacksize) == 0)
        newsize = YYINITSTACKSIZE;
    else if (newsize >= YYMAXDEPTH)
        return -1;
    else if ((newsize *= 2) > YYMAXDEPTH)
        newsize = YYMAXDEPTH;
    i = yyssp - yyss;
    newss = yyss ? (short *)realloc(yyss, newsize * sizeof *newss) :
      (short *)malloc(newsize * sizeof *newss);
    if (newss == NULL)
        return -1;
    yyss = newss;
    yyssp = newss + i;
    newvs = yyvs ? (YYSTYPE *)realloc(yyvs, newsize * sizeof *newvs) :
      (YYSTYPE *)malloc(newsize * sizeof *newvs);
    if (newvs == NULL)
        return -1;
    yyvs = newvs;
    yyvsp = newvs + i;
    yystacksize = newsize;
    yysslim = yyss + newsize - 1;
    return 0;
}

#define YYABORT goto yyabort
#define YYREJECT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab

#ifndef YYPARSE_PARAM
#if defined(__cplusplus) || __STDC__
#define YYPARSE_PARAM_ARG void
#define YYPARSE_PARAM_DECL
#else	/* ! ANSI-C/C++ */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif	/* ANSI-C/C++ */
#else	/* YYPARSE_PARAM */
#ifndef YYPARSE_PARAM_TYPE
#define YYPARSE_PARAM_TYPE void *
#endif
#if defined(__cplusplus) || __STDC__
#define YYPARSE_PARAM_ARG YYPARSE_PARAM_TYPE YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#else	/* ! ANSI-C/C++ */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL YYPARSE_PARAM_TYPE YYPARSE_PARAM;
#endif	/* ANSI-C/C++ */
#endif	/* ! YYPARSE_PARAM */

int
yyparse (YYPARSE_PARAM_ARG)
    YYPARSE_PARAM_DECL
{
    register int yym, yyn, yystate;
#if YYDEBUG
    register const char *yys;

    if ((yys = getenv("YYDEBUG")))
    {
        yyn = *yys;
        if (yyn >= '0' && yyn <= '9')
            yydebug = yyn - '0';
    }
#endif

    yynerrs = 0;
    yyerrflag = 0;
    yychar = (-1);

    if (yyss == NULL && yygrowstack()) goto yyoverflow;
    yyssp = yyss;
    yyvsp = yyvs;
    *yyssp = yystate = 0;

yyloop:
    if ((yyn = yydefred[yystate])) goto yyreduce;
    if (yychar < 0)
    {
        if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
        if (yydebug)
        {
            yys = 0;
            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
            if (!yys) yys = "illegal-symbol";
            printf("%sdebug: state %d, reading %d (%s)\n",
                    YYPREFIX, yystate, yychar, yys);
        }
#endif
    }
    if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
    {
#if YYDEBUG
        if (yydebug)
            printf("%sdebug: state %d, shifting to state %d\n",
                    YYPREFIX, yystate, yytable[yyn]);
#endif
        if (yyssp >= yysslim && yygrowstack())
        {
            goto yyoverflow;
        }
        *++yyssp = yystate = yytable[yyn];
        *++yyvsp = yylval;
        yychar = (-1);
        if (yyerrflag > 0)  --yyerrflag;
        goto yyloop;
    }
    if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
    {
        yyn = yytable[yyn];
        goto yyreduce;
    }
    if (yyerrflag) goto yyinrecovery;
#if defined(lint) || defined(__GNUC__)
    goto yynewerror;
#endif
yynewerror:
    yyerror("syntax error");
#if defined(lint) || defined(__GNUC__)
    goto yyerrlab;
#endif
yyerrlab:
    ++yynerrs;
yyinrecovery:
    if (yyerrflag < 3)
    {
        yyerrflag = 3;
        for (;;)
        {
            if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 &&
                    yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)
            {
#if YYDEBUG
                if (yydebug)
                    printf("%sdebug: state %d, error recovery shifting\
 to state %d\n", YYPREFIX, *yyssp, yytable[yyn]);
#endif
                if (yyssp >= yysslim && yygrowstack())
                {
                    goto yyoverflow;
                }
                *++yyssp = yystate = yytable[yyn];
                *++yyvsp = yylval;
                goto yyloop;
            }
            else
            {
#if YYDEBUG
                if (yydebug)
                    printf("%sdebug: error recovery discarding state %d\n",
                            YYPREFIX, *yyssp);
#endif
                if (yyssp <= yyss) goto yyabort;
                --yyssp;
                --yyvsp;
            }
        }
    }
    else
    {
        if (yychar == 0) goto yyabort;
#if YYDEBUG
        if (yydebug)
        {
            yys = 0;
            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
            if (!yys) yys = "illegal-symbol";
            printf("%sdebug: state %d, error recovery discards token %d (%s)\n",
                    YYPREFIX, yystate, yychar, yys);
        }
#endif
        yychar = (-1);
        goto yyloop;
    }
yyreduce:
#if YYDEBUG
    if (yydebug)
        printf("%sdebug: state %d, reducing by rule %d (%s)\n",
                YYPREFIX, yystate, yyn, yyrule[yyn]);
#endif
    yym = yylen[yyn];
    yyval = yyvsp[1-yym];
    switch (yyn)
    {
case 1:
#line 160 "WQL.y"
{
	WQL_TRACE(("YACC: start\n"));
    }
break;
case 2:
#line 166 "WQL.y"
{

    }
break;
case 3:
#line 172 "WQL.y"
{
	globalParserState->statement->setAllProperties(true);
    }
break;
case 4:
#line 176 "WQL.y"
{

    }
break;
case 5:
#line 182 "WQL.y"
{
	globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue));
    }
break;
case 6:
#line 186 "WQL.y"
{
	globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue));
    }
break;
case 7:
#line 192 "WQL.y"
{

    }
break;
case 8:
#line 196 "WQL.y"
{

    }
break;
case 9:
#line 202 "WQL.y"
{
	WQL_TRACE(("YACC: fromClause: TOK_FROM className(%s)\n", yyvsp[0].strValue));
	globalParserState->statement->setClassName(CIMName(yyvsp[0].strValue));
    }
break;
case 10:
#line 209 "WQL.y"
{

    }
break;
case 11:
#line 215 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_OR\n"));
	globalParserState->statement->appendOperation(WQL_OR);
    }
break;
case 12:
#line 220 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_AND\n"));
	globalParserState->statement->appendOperation(WQL_AND);
    }
break;
case 13:
#line 225 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_NOT\n"));

	globalParserState->statement->appendOperation(WQL_NOT);
    }
break;
case 14:
#line 231 "WQL.y"
{

    }
break;
case 15:
#line 235 "WQL.y"
{

    }
break;
case 16:
#line 239 "WQL.y"
{
	WQLOperation op = yyvsp[0].intValue ? WQL_IS_TRUE : WQL_IS_FALSE;
	globalParserState->statement->appendOperation(op);
    }
break;
case 17:
#line 244 "WQL.y"
{
	WQLOperation op = yyvsp[0].intValue ? WQL_IS_NOT_TRUE : WQL_IS_NOT_FALSE;
	globalParserState->statement->appendOperation(op);
    }
break;
case 18:
#line 253 "WQL.y"
{

    }
break;
case 19:
#line 257 "WQL.y"
{

    }
break;
case 20:
#line 263 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_LT\n"));
	globalParserState->statement->appendOperation(WQL_LT);
    }
break;
case 21:
#line 268 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_GT\n"));
	globalParserState->statement->appendOperation(WQL_GT);
    }
break;
case 22:
#line 273 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_LE\n"));
	globalParserState->statement->appendOperation(WQL_LE);
    }
break;
case 23:
#line 278 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_GE\n"));
	globalParserState->statement->appendOperation(WQL_GE);
    }
break;
case 24:
#line 283 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_EQ\n"));
	globalParserState->statement->appendOperation(WQL_EQ);
    }
break;
case 25:
#line 288 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_NE\n"));
	globalParserState->statement->appendOperation(WQL_NE);
    }
break;
case 26:
#line 293 "WQL.y"
{

    	WQL_TRACE(("YACC: TOK_ISA\n"));
        /* ADD statement phrase.*/
    }
break;
case 27:
#line 301 "WQL.y"
{
	WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NULL\n"));
	globalParserState->statement->appendOperation(WQL_IS_NULL);
    }
break;
case 28:
#line 306 "WQL.y"
{
	WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NOT NULL\n"));
	globalParserState->statement->appendOperation(WQL_IS_NOT_NULL);
    }
break;
case 29:
#line 313 "WQL.y"
{
	yyval.intValue = 1;
    }
break;
case 30:
#line 317 "WQL.y"
{
	yyval.intValue = 0;
    }
break;
case 31:
#line 323 "WQL.y"
{
	WQL_TRACE(("YACC: propertyName : TOK_IDENTIFIER(%s)\n", yyvsp[0].strValue));
	yyval.strValue = yyvsp[0].strValue;
    }
break;
case 32:
#line 329 "WQL.y"
{
	WQL_TRACE(("YACC: TOK_IDENTIFIER %s\n", yyvsp[0].strValue));
	yyval.strValue = yyvsp[0].strValue;
    }
break;
case 33:
#line 336 "WQL.y"
{
	globalParserState->statement->appendOperand(
	    WQLOperand(yyvsp[0].strValue, WQL_PROPERTY_NAME_TAG));
	globalParserState->statement->appendWherePropertyName(CIMName(yyvsp[0].strValue));
    }
break;
case 34:
#line 342 "WQL.y"
{
	globalParserState->statement->appendOperand(
	    WQLOperand(yyvsp[0].intValue, WQL_INTEGER_VALUE_TAG));
    }
break;
case 35:
#line 347 "WQL.y"
{
	globalParserState->statement->appendOperand(
	    WQLOperand(yyvsp[0].doubleValue, WQL_DOUBLE_VALUE_TAG));
    }
break;
case 36:
#line 352 "WQL.y"
{
	globalParserState->statement->appendOperand(
	    WQLOperand(yyvsp[0].strValue, WQL_STRING_VALUE_TAG));
    }
break;
case 37:
#line 357 "WQL.y"
{
	globalParserState->statement->appendOperand(
	    WQLOperand(yyvsp[0].intValue != 0, WQL_BOOLEAN_VALUE_TAG));
    }
break;
#line 750 "y.tab.c"
    }
    yyssp -= yym;
    yystate = *yyssp;
    yyvsp -= yym;
    yym = yylhs[yyn];
    if (yystate == 0 && yym == 0)
    {
#if YYDEBUG
        if (yydebug)
            printf("%sdebug: after reduction, shifting from state 0 to\
 state %d\n", YYPREFIX, YYFINAL);
#endif
        yystate = YYFINAL;
        *++yyssp = YYFINAL;
        *++yyvsp = yyval;
        if (yychar < 0)
        {
            if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
            if (yydebug)
            {
                yys = 0;
                if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
                if (!yys) yys = "illegal-symbol";
                printf("%sdebug: state %d, reading %d (%s)\n",
                        YYPREFIX, YYFINAL, yychar, yys);
            }
#endif
        }
        if (yychar == 0) goto yyaccept;
        goto yyloop;
    }
    if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
        yystate = yytable[yyn];
    else
        yystate = yydgoto[yym];
#if YYDEBUG
    if (yydebug)
        printf("%sdebug: after reduction, shifting from state %d \
to state %d\n", YYPREFIX, *yyssp, yystate);
#endif
    if (yyssp >= yysslim && yygrowstack())
    {
        goto yyoverflow;
    }
    *++yyssp = yystate;
    *++yyvsp = yyval;
    goto yyloop;
yyoverflow:
    yyerror("yacc stack overflow");
yyabort:
    return (1);
yyaccept:
    return (0);
}

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2