| 1 |
/* A Bison parser, made by GNU Bison 3.8.2. */ |
| 2 |
|
| 3 |
/* Bison interface for Yacc-like parsers in C |
| 4 |
|
| 5 |
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, |
| 6 |
Inc. |
| 7 |
|
| 8 |
This program is free software: you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation, either version 3 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
/* As a special exception, you may create a larger work that contains |
| 22 |
part or all of the Bison parser skeleton and distribute that work |
| 23 |
under terms of your choice, so long as that work isn't itself a |
| 24 |
parser generator using the skeleton or a modified version thereof |
| 25 |
as a parser skeleton. Alternatively, if you modify or redistribute |
| 26 |
the parser skeleton itself, you may (at your option) remove this |
| 27 |
special exception, which will cause the skeleton and the resulting |
| 28 |
Bison output files to be licensed under the GNU General Public |
| 29 |
License without this special exception. |
| 30 |
|
| 31 |
This special exception was added by the Free Software Foundation in |
| 32 |
version 2.2 of Bison. */ |
| 33 |
|
| 34 |
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, |
| 35 |
especially those whose name start with YY_ or yy_. They are |
| 36 |
private implementation details that can be changed or removed. */ |
| 37 |
|
| 38 |
#ifndef YY_YY_LIBSMARTCOLS_SRC_FILTER_PARSER_H_INCLUDED |
| 39 |
# define YY_YY_LIBSMARTCOLS_SRC_FILTER_PARSER_H_INCLUDED |
| 40 |
/* Debug traces. */ |
| 41 |
#ifndef YYDEBUG |
| 42 |
# define YYDEBUG 0 |
| 43 |
#endif |
| 44 |
#if YYDEBUG |
| 45 |
extern int yydebug; |
| 46 |
#endif |
| 47 |
/* "%code requires" blocks. */ |
| 48 |
#line 30 "libsmartcols/src/filter-parser.y" |
| 49 |
|
| 50 |
|
| 51 |
#line 52 "libsmartcols/src/filter-parser.h" |
| 52 |
|
| 53 |
/* Token kinds. */ |
| 54 |
#ifndef YYTOKENTYPE |
| 55 |
# define YYTOKENTYPE |
| 56 |
enum yytokentype |
| 57 |
{ |
| 58 |
YYEMPTY = -2, |
| 59 |
YYEOF = 0, /* "end of file" */ |
| 60 |
YYerror = 256, /* error */ |
| 61 |
YYUNDEF = 257, /* "invalid token" */ |
| 62 |
T_NUMBER = 258, /* T_NUMBER */ |
| 63 |
T_STRING = 259, /* T_STRING */ |
| 64 |
T_HOLDER = 260, /* T_HOLDER */ |
| 65 |
T_FLOAT = 261, /* T_FLOAT */ |
| 66 |
T_OR = 262, /* T_OR */ |
| 67 |
T_AND = 263, /* T_AND */ |
| 68 |
T_EQ = 264, /* T_EQ */ |
| 69 |
T_NE = 265, /* T_NE */ |
| 70 |
T_LT = 266, /* T_LT */ |
| 71 |
T_LE = 267, /* T_LE */ |
| 72 |
T_GT = 268, /* T_GT */ |
| 73 |
T_GE = 269, /* T_GE */ |
| 74 |
T_REG = 270, /* T_REG */ |
| 75 |
T_NREG = 271, /* T_NREG */ |
| 76 |
T_TRUE = 272, /* T_TRUE */ |
| 77 |
T_FALSE = 273, /* T_FALSE */ |
| 78 |
T_NEG = 274, /* T_NEG */ |
| 79 |
T_INVALID_NUMBER = 275 /* T_INVALID_NUMBER */ |
| 80 |
}; |
| 81 |
typedef enum yytokentype yytoken_kind_t; |
| 82 |
#endif |
| 83 |
|
| 84 |
/* Value type. */ |
| 85 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 86 |
union YYSTYPE |
| 87 |
{ |
| 88 |
#line 43 "libsmartcols/src/filter-parser.y" |
| 89 |
|
| 90 |
unsigned long long param_number; |
| 91 |
const char* param_string; |
| 92 |
const char* param_name; |
| 93 |
long double param_float; |
| 94 |
struct filter_node *param; |
| 95 |
struct filter_node *expr; |
| 96 |
|
| 97 |
#line 98 "libsmartcols/src/filter-parser.h" |
| 98 |
|
| 99 |
}; |
| 100 |
typedef union YYSTYPE YYSTYPE; |
| 101 |
# define YYSTYPE_IS_TRIVIAL 1 |
| 102 |
# define YYSTYPE_IS_DECLARED 1 |
| 103 |
#endif |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
int yyparse (void *scanner, struct libscols_filter *fltr); |
| 109 |
|
| 110 |
|
| 111 |
#endif /* !YY_YY_LIBSMARTCOLS_SRC_FILTER_PARSER_H_INCLUDED */ |