1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
|
/* A Bison parser, made by GNU Bison 3.0.2. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
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
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef YY_YY_LIBCODA_CODA_EXPR_PARSER_H_INCLUDED
# define YY_YY_LIBCODA_CODA_EXPR_PARSER_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
INT_VALUE = 258,
FLOAT_VALUE = 259,
STRING_VALUE = 260,
NAME = 261,
INDEX_VAR = 262,
LOGICAL_AND = 263,
LOGICAL_OR = 264,
NOT = 265,
GREATER_EQUAL = 266,
LESS_EQUAL = 267,
EQUAL = 268,
NOT_EQUAL = 269,
AND = 270,
OR = 271,
UNARY = 272,
GOTO_PARENT = 273,
RAW_PREFIX = 274,
ASCIILINE = 275,
DO = 276,
FOR = 277,
STEP = 278,
TO = 279,
NAN_VALUE = 280,
INF_VALUE = 281,
TRUE_VALUE = 282,
FALSE_VALUE = 283,
FUNC_ABS = 284,
FUNC_ADD = 285,
FUNC_ALL = 286,
FUNC_AT = 287,
FUNC_BITOFFSET = 288,
FUNC_BITSIZE = 289,
FUNC_BOOL = 290,
FUNC_BYTES = 291,
FUNC_BYTEOFFSET = 292,
FUNC_BYTESIZE = 293,
FUNC_CEIL = 294,
FUNC_COUNT = 295,
FUNC_DIM = 296,
FUNC_EXISTS = 297,
FUNC_FILENAME = 298,
FUNC_FILESIZE = 299,
FUNC_FLOAT = 300,
FUNC_FLOOR = 301,
FUNC_GOTO = 302,
FUNC_IF = 303,
FUNC_INDEX = 304,
FUNC_INT = 305,
FUNC_ISNAN = 306,
FUNC_ISINF = 307,
FUNC_ISPLUSINF = 308,
FUNC_ISMININF = 309,
FUNC_LENGTH = 310,
FUNC_LTRIM = 311,
FUNC_NUMDIMS = 312,
FUNC_NUMELEMENTS = 313,
FUNC_MAX = 314,
FUNC_MIN = 315,
FUNC_PRODUCTCLASS = 316,
FUNC_PRODUCTFORMAT = 317,
FUNC_PRODUCTTYPE = 318,
FUNC_PRODUCTVERSION = 319,
FUNC_REGEX = 320,
FUNC_ROUND = 321,
FUNC_RTRIM = 322,
FUNC_STR = 323,
FUNC_STRTIME = 324,
FUNC_SUBSTR = 325,
FUNC_TIME = 326,
FUNC_TRIM = 327,
FUNC_UNBOUNDINDEX = 328,
FUNC_WITH = 329
};
#endif
/* Tokens. */
#define INT_VALUE 258
#define FLOAT_VALUE 259
#define STRING_VALUE 260
#define NAME 261
#define INDEX_VAR 262
#define LOGICAL_AND 263
#define LOGICAL_OR 264
#define NOT 265
#define GREATER_EQUAL 266
#define LESS_EQUAL 267
#define EQUAL 268
#define NOT_EQUAL 269
#define AND 270
#define OR 271
#define UNARY 272
#define GOTO_PARENT 273
#define RAW_PREFIX 274
#define ASCIILINE 275
#define DO 276
#define FOR 277
#define STEP 278
#define TO 279
#define NAN_VALUE 280
#define INF_VALUE 281
#define TRUE_VALUE 282
#define FALSE_VALUE 283
#define FUNC_ABS 284
#define FUNC_ADD 285
#define FUNC_ALL 286
#define FUNC_AT 287
#define FUNC_BITOFFSET 288
#define FUNC_BITSIZE 289
#define FUNC_BOOL 290
#define FUNC_BYTES 291
#define FUNC_BYTEOFFSET 292
#define FUNC_BYTESIZE 293
#define FUNC_CEIL 294
#define FUNC_COUNT 295
#define FUNC_DIM 296
#define FUNC_EXISTS 297
#define FUNC_FILENAME 298
#define FUNC_FILESIZE 299
#define FUNC_FLOAT 300
#define FUNC_FLOOR 301
#define FUNC_GOTO 302
#define FUNC_IF 303
#define FUNC_INDEX 304
#define FUNC_INT 305
#define FUNC_ISNAN 306
#define FUNC_ISINF 307
#define FUNC_ISPLUSINF 308
#define FUNC_ISMININF 309
#define FUNC_LENGTH 310
#define FUNC_LTRIM 311
#define FUNC_NUMDIMS 312
#define FUNC_NUMELEMENTS 313
#define FUNC_MAX 314
#define FUNC_MIN 315
#define FUNC_PRODUCTCLASS 316
#define FUNC_PRODUCTFORMAT 317
#define FUNC_PRODUCTTYPE 318
#define FUNC_PRODUCTVERSION 319
#define FUNC_REGEX 320
#define FUNC_ROUND 321
#define FUNC_RTRIM 322
#define FUNC_STR 323
#define FUNC_STRTIME 324
#define FUNC_SUBSTR 325
#define FUNC_TIME 326
#define FUNC_TRIM 327
#define FUNC_UNBOUNDINDEX 328
#define FUNC_WITH 329
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
{
#line 79 "../coda/libcoda/coda-expr-parser.y" /* yacc.c:1909 */
char *stringval;
struct coda_expression_struct *expr;
#line 207 "libcoda/coda-expr-parser.h" /* yacc.c:1909 */
};
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int yyparse (void *scanner);
#endif /* !YY_YY_LIBCODA_CODA_EXPR_PARSER_H_INCLUDED */
|