1 /* A Bison parser, made by GNU Bison 3.6.4. */ 2 3 /* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 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 <http://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_TRACEFS_SQLHIST_TAB_H_INCLUDED 39 # define YY_TRACEFS_SQLHIST_TAB_H_INCLUDED 40 /* Debug traces. */ 41 #ifndef TRACEFS_DEBUG 42 # if defined YYDEBUG 43 #if YYDEBUG 44 # define TRACEFS_DEBUG 1 45 # else 46 # define TRACEFS_DEBUG 0 47 # endif 48 # else /* ! defined YYDEBUG */ 49 # define TRACEFS_DEBUG 1 50 # endif /* ! defined YYDEBUG */ 51 #endif /* ! defined TRACEFS_DEBUG */ 52 #if TRACEFS_DEBUG 53 extern int tracefs_debug; 54 #endif 55 56 /* Token kinds. */ 57 #ifndef TRACEFS_TOKENTYPE 58 # define TRACEFS_TOKENTYPE 59 enum tracefs_tokentype 60 { 61 TRACEFS_EMPTY = -2, 62 TRACEFS_EOF = 0, /* "end of file" */ 63 TRACEFS_error = 256, /* error */ 64 TRACEFS_UNDEF = 257, /* "invalid token" */ 65 AS = 258, /* AS */ 66 SELECT = 259, /* SELECT */ 67 FROM = 260, /* FROM */ 68 JOIN = 261, /* JOIN */ 69 ON = 262, /* ON */ 70 WHERE = 263, /* WHERE */ 71 PARSE_ERROR = 264, /* PARSE_ERROR */ 72 CAST = 265, /* CAST */ 73 NUMBER = 266, /* NUMBER */ 74 field_type = 267, /* field_type */ 75 STRING = 268, /* STRING */ 76 FIELD = 269, /* FIELD */ 77 LE = 270, /* LE */ 78 GE = 271, /* GE */ 79 EQ = 272, /* EQ */ 80 NEQ = 273, /* NEQ */ 81 AND = 274, /* AND */ 82 OR = 275 /* OR */ 83 }; 84 typedef enum tracefs_tokentype tracefs_token_kind_t; 85 #endif 86 87 /* Value type. */ 88 #if ! defined TRACEFS_STYPE && ! defined TRACEFS_STYPE_IS_DECLARED 89 union TRACEFS_STYPE 90 { 91 #line 46 "sqlhist.y" 92 93 int s32; 94 char *string; 95 long number; 96 void *expr; 97 98 #line 99 "sqlhist.tab.h" 99 100 }; 101 typedef union TRACEFS_STYPE TRACEFS_STYPE; 102 # define TRACEFS_STYPE_IS_TRIVIAL 1 103 # define TRACEFS_STYPE_IS_DECLARED 1 104 #endif 105 106 107 108 int tracefs_parse (struct sqlhist_bison *sb); 109 /* "%code provides" blocks. */ 110 #line 37 "sqlhist.y" 111 112 #define YYSTYPE TRACEFS_STYPE 113 #define yylex tracefs_lex 114 #define yyerror tracefs_error 115 116 #line 117 "sqlhist.tab.h" 117 118 #endif /* !YY_TRACEFS_SQLHIST_TAB_H_INCLUDED */ 119