1 /* A Bison parser, made by GNU Bison 3.4.1. */ 2 3 /* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 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 /* Undocumented macros, especially those whose name start with YY_, 35 are private implementation details. Do not rely on them. */ 36 37 #ifndef YY_YY_SURVEYTARGETEXPRESSIONPARSER_P_H_INCLUDED 38 # define YY_YY_SURVEYTARGETEXPRESSIONPARSER_P_H_INCLUDED 39 /* Debug traces. */ 40 #ifndef YYDEBUG 41 # define YYDEBUG 0 42 #endif 43 #if YYDEBUG 44 extern int yydebug; 45 #endif 46 /* "%code requires" blocks. */ 47 #line 42 "surveytargetexpressionparser.y" 48 49 50 #ifndef YY_TYPEDEF_YY_SCANNER_T 51 #define YY_TYPEDEF_YY_SCANNER_T 52 typedef void* yyscan_t; 53 #endif 54 55 56 #line 57 "surveytargetexpressionparser_p.h" 57 58 /* Token type. */ 59 #ifndef YYTOKENTYPE 60 # define YYTOKENTYPE 61 enum yytokentype 62 { 63 T_OP_OR = 258, 64 T_OP_AND = 259, 65 T_OP_EQ = 260, 66 T_OP_NEQ = 261, 67 T_OP_GT = 262, 68 T_OP_GE = 263, 69 T_OP_LT = 264, 70 T_OP_LE = 265, 71 T_DOT = 266, 72 T_LPAREN = 267, 73 T_RPAREN = 268, 74 T_LBRACKET = 269, 75 T_RBRACKET = 270, 76 T_DOUBLE = 271, 77 T_INTEGER = 272, 78 T_BOOLEAN = 273, 79 T_STRING = 274, 80 T_IDENTIFIER = 275 81 }; 82 #endif 83 84 /* Value type. */ 85 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 86 union YYSTYPE 87 { 88 #line 56 "surveytargetexpressionparser.y" 89 90 int intVal; 91 double doubleVal; 92 bool boolVal; 93 char *str; 94 KUserFeedback::SurveyTargetExpression *expression; 95 96 #line 97 "surveytargetexpressionparser_p.h" 97 98 }; 99 typedef union YYSTYPE YYSTYPE; 100 # define YYSTYPE_IS_TRIVIAL 1 101 # define YYSTYPE_IS_DECLARED 1 102 #endif 103 104 105 106 int yyparse (KUserFeedback::SurveyTargetExpression **expression, yyscan_t scanner); 107 108 #endif /* !YY_YY_SURVEYTARGETEXPRESSIONPARSER_P_H_INCLUDED */ 109