version 1.6.32.1, 2007/07/19 03:23:43
|
version 1.7, 2007/06/05 18:17:23
|
|
|
//%2006//////////////////////////////////////////////////////////////////////// |
/* A Bison parser, made by GNU Bison 2.3. */ |
// |
|
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
/* Skeleton interface for Bison's Yacc-like parsers in C |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
// IBM Corp.; EMC Corporation, The Open Group. |
Free Software Foundation, Inc. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
This program is free software; you can redistribute it and/or modify |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
it under the terms of the GNU General Public License as published by |
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
the Free Software Foundation; either version 2, or (at your option) |
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
any later version. |
// EMC Corporation; Symantec Corporation; The Open Group. |
|
// |
This program is distributed in the hope that it will be useful, |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
// of this software and associated documentation files (the "Software"), to |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// deal in the Software without restriction, including without limitation the |
GNU General Public License for more details. |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
|
// sell copies of the Software, and to permit persons to whom the Software is |
You should have received a copy of the GNU General Public License |
// furnished to do so, subject to the following conditions: |
along with this program; if not, write to the Free Software |
// |
Foundation, Inc., 51 Franklin Street, Fifth Floor, |
// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
Boston, MA 02110-1301, USA. */ |
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
|
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
/* As a special exception, you may create a larger work that contains |
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
part or all of the Bison parser skeleton and distribute that work |
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
under terms of your choice, so long as that work isn't itself a |
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
parser generator using the skeleton or a modified version thereof |
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
as a parser skeleton. Alternatively, if you modify or redistribute |
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
the parser skeleton itself, you may (at your option) remove this |
// |
special exception, which will cause the skeleton and the resulting |
//============================================================================== |
Bison output files to be licensed under the GNU General Public |
// NOCHKSRC |
License without this special exception. |
#ifndef YYERRCODE |
|
#define YYERRCODE 256 |
This special exception was added by the Free Software Foundation in |
|
version 2.2 of Bison. */ |
|
|
|
/* Tokens. */ |
|
#ifndef YYTOKENTYPE |
|
# define YYTOKENTYPE |
|
/* Put the tokens into the symbol table, so that GDB and other debuggers |
|
know about them. */ |
|
enum yytokentype { |
|
TOK_IDENTIFIER = 258, |
|
TOK_STRING_LITERAL = 259, |
|
TOK_BINARY = 260, |
|
TOK_NEGATIVE_BINARY = 261, |
|
TOK_HEXADECIMAL = 262, |
|
TOK_NEGATIVE_HEXADECIMAL = 263, |
|
TOK_INTEGER = 264, |
|
TOK_NEGATIVE_INTEGER = 265, |
|
TOK_REAL = 266, |
|
TOK_NEGATIVE_REAL = 267, |
|
TOK_TRUE = 268, |
|
TOK_FALSE = 269, |
|
TOK_SCOPED_PROPERTY = 270, |
|
TOK_LPAR = 271, |
|
TOK_RPAR = 272, |
|
TOK_HASH = 273, |
|
TOK_DOT = 274, |
|
TOK_LBRKT = 275, |
|
TOK_RBRKT = 276, |
|
TOK_UNDERSCORE = 277, |
|
TOK_COMMA = 278, |
|
TOK_CONCAT = 279, |
|
TOK_DBL_PIPE = 280, |
|
TOK_PLUS = 281, |
|
TOK_MINUS = 282, |
|
TOK_TIMES = 283, |
|
TOK_DIV = 284, |
|
TOK_IS = 285, |
|
TOK_NULL = 286, |
|
TOK_EQ = 287, |
|
TOK_NE = 288, |
|
TOK_GT = 289, |
|
TOK_LT = 290, |
|
TOK_GE = 291, |
|
TOK_LE = 292, |
|
TOK_ISA = 293, |
|
TOK_LIKE = 294, |
|
TOK_NOT = 295, |
|
TOK_AND = 296, |
|
TOK_OR = 297, |
|
TOK_SCOPE = 298, |
|
TOK_ANY = 299, |
|
TOK_EVERY = 300, |
|
TOK_IN = 301, |
|
TOK_SATISFIES = 302, |
|
TOK_STAR = 303, |
|
TOK_DOTDOT = 304, |
|
TOK_SHARP = 305, |
|
TOK_DISTINCT = 306, |
|
TOK_SELECT = 307, |
|
TOK_FIRST = 308, |
|
TOK_FROM = 309, |
|
TOK_WHERE = 310, |
|
TOK_ORDER = 311, |
|
TOK_BY = 312, |
|
TOK_ASC = 313, |
|
TOK_DESC = 314, |
|
TOK_AS = 315, |
|
TOK_UNEXPECTED_CHAR = 316 |
|
}; |
#endif | #endif |
|
/* Tokens. */ |
|
#define TOK_IDENTIFIER 258 |
|
#define TOK_STRING_LITERAL 259 |
|
#define TOK_BINARY 260 |
|
#define TOK_NEGATIVE_BINARY 261 |
|
#define TOK_HEXADECIMAL 262 |
|
#define TOK_NEGATIVE_HEXADECIMAL 263 |
|
#define TOK_INTEGER 264 |
|
#define TOK_NEGATIVE_INTEGER 265 |
|
#define TOK_REAL 266 |
|
#define TOK_NEGATIVE_REAL 267 |
|
#define TOK_TRUE 268 |
|
#define TOK_FALSE 269 |
|
#define TOK_SCOPED_PROPERTY 270 |
|
#define TOK_LPAR 271 |
|
#define TOK_RPAR 272 |
|
#define TOK_HASH 273 |
|
#define TOK_DOT 274 |
|
#define TOK_LBRKT 275 |
|
#define TOK_RBRKT 276 |
|
#define TOK_UNDERSCORE 277 |
|
#define TOK_COMMA 278 |
|
#define TOK_CONCAT 279 |
|
#define TOK_DBL_PIPE 280 |
|
#define TOK_PLUS 281 |
|
#define TOK_MINUS 282 |
|
#define TOK_TIMES 283 |
|
#define TOK_DIV 284 |
|
#define TOK_IS 285 |
|
#define TOK_NULL 286 |
|
#define TOK_EQ 287 |
|
#define TOK_NE 288 |
|
#define TOK_GT 289 |
|
#define TOK_LT 290 |
|
#define TOK_GE 291 |
|
#define TOK_LE 292 |
|
#define TOK_ISA 293 |
|
#define TOK_LIKE 294 |
|
#define TOK_NOT 295 |
|
#define TOK_AND 296 |
|
#define TOK_OR 297 |
|
#define TOK_SCOPE 298 |
|
#define TOK_ANY 299 |
|
#define TOK_EVERY 300 |
|
#define TOK_IN 301 |
|
#define TOK_SATISFIES 302 |
|
#define TOK_STAR 303 |
|
#define TOK_DOTDOT 304 |
|
#define TOK_SHARP 305 |
|
#define TOK_DISTINCT 306 |
|
#define TOK_SELECT 307 |
|
#define TOK_FIRST 308 |
|
#define TOK_FROM 309 |
|
#define TOK_WHERE 310 |
|
#define TOK_ORDER 311 |
|
#define TOK_BY 312 |
|
#define TOK_ASC 313 |
|
#define TOK_DESC 314 |
|
#define TOK_AS 315 |
|
#define TOK_UNEXPECTED_CHAR 316 |
|
|
|
|
|
|
| |
#define IDENTIFIER 257 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
#define STRING_LITERAL 258 |
typedef union YYSTYPE |
#define BINARY 259 |
#line 171 "CQL.y" |
#define NEGATIVE_BINARY 260 |
{ |
#define HEXADECIMAL 261 |
|
#define NEGATIVE_HEXADECIMAL 262 |
|
#define INTEGER 263 |
|
#define NEGATIVE_INTEGER 264 |
|
#define REAL 265 |
|
#define NEGATIVE_REAL 266 |
|
#define _TRUE 267 |
|
#define _FALSE 268 |
|
#define SCOPED_PROPERTY 269 |
|
#define LPAR 270 |
|
#define RPAR 271 |
|
#define HASH 272 |
|
#define DOT 273 |
|
#define LBRKT 274 |
|
#define RBRKT 275 |
|
#define UNDERSCORE 276 |
|
#define COMMA 277 |
|
#define CONCAT 278 |
|
#define DBL_PIPE 279 |
|
#define PLUS 280 |
|
#define MINUS 281 |
|
#define TIMES 282 |
|
#define DIV 283 |
|
#define IS 284 |
|
#define _NULL 285 |
|
#define _EQ 286 |
|
#define _NE 287 |
|
#define _GT 288 |
|
#define _LT 289 |
|
#define _GE 290 |
|
#define _LE 291 |
|
#define _ISA 292 |
|
#define _LIKE 293 |
|
#define NOT 294 |
|
#define _AND 295 |
|
#define _OR 296 |
|
#define SCOPE 297 |
|
#define ANY 298 |
|
#define EVERY 299 |
|
#define IN 300 |
|
#define SATISFIES 301 |
|
#define STAR 302 |
|
#define DOTDOT 303 |
|
#define SHARP 304 |
|
#define DISTINCT 305 |
|
#define SELECT 306 |
|
#define FIRST 307 |
|
#define FROM 308 |
|
#define WHERE 309 |
|
#define ORDER 310 |
|
#define BY 311 |
|
#define ASC 312 |
|
#define DESC 313 |
|
#define AS 314 |
|
#define UNEXPECTED_CHAR 315 |
|
typedef union { |
|
char * strValue; | char * strValue; |
String * _string; | String * _string; |
CQLValue * _value; | CQLValue * _value; |
|
|
CQLPredicate * _predicate; | CQLPredicate * _predicate; |
ExpressionOpType _opType; | ExpressionOpType _opType; |
void * _node; | void * _node; |
} YYSTYPE; |
} |
|
/* Line 1489 of yacc.c. */ |
|
#line 182 "CQLtemp.h" |
|
YYSTYPE; |
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
|
# define YYSTYPE_IS_DECLARED 1 |
|
# define YYSTYPE_IS_TRIVIAL 1 |
|
#endif |
|
|
extern YYSTYPE CQL_lval; | extern YYSTYPE CQL_lval; |
|
|