cint_c.tab.h (5915B)
1 /* 2 This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 4 Copyright 2007-2019 Broadcom Inc. All rights reserved. 5 */ 6 /* A Bison parser, made by GNU Bison 2.4.2. */ 7 8 /* Skeleton interface for Bison's Yacc-like parsers in C 9 10 Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software 11 Foundation, Inc. 12 13 This program is free software: you can redistribute it and/or modify 14 it under the terms of the GNU General Public License as published by 15 the Free Software Foundation, either version 3 of the License, or 16 (at your option) any later version. 17 18 This program is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 GNU General Public License for more details. 22 23 You should have received a copy of the GNU General Public License 24 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 25 26 /* As a special exception, you may create a larger work that contains 27 part or all of the Bison parser skeleton and distribute that work 28 under terms of your choice, so long as that work isn't itself a 29 parser generator using the skeleton or a modified version thereof 30 as a parser skeleton. Alternatively, if you modify or redistribute 31 the parser skeleton itself, you may (at your option) remove this 32 special exception, which will cause the skeleton and the resulting 33 Bison output files to be licensed under the GNU General Public 34 License without this special exception. 35 36 This special exception was added by the Free Software Foundation in 37 version 2.2 of Bison. */ 38 39 40 /* Tokens. */ 41 #ifndef YYTOKENTYPE 42 # define YYTOKENTYPE 43 /* Put the tokens into the symbol table, so that GDB and other debuggers 44 know about them. */ 45 enum yytokentype { 46 XEOF = 0, 47 IDENTIFIER = 258, 48 CONSTANT = 259, 49 STRING_LITERAL = 260, 50 SIZEOF = 261, 51 PTR_OP = 262, 52 INC_OP = 263, 53 DEC_OP = 264, 54 LEFT_OP = 265, 55 RIGHT_OP = 266, 56 LE_OP = 267, 57 GE_OP = 268, 58 EQ_OP = 269, 59 NE_OP = 270, 60 AND_OP = 271, 61 OR_OP = 272, 62 MUL_ASSIGN = 273, 63 DIV_ASSIGN = 274, 64 MOD_ASSIGN = 275, 65 ADD_ASSIGN = 276, 66 SUB_ASSIGN = 277, 67 LEFT_ASSIGN = 278, 68 RIGHT_ASSIGN = 279, 69 AND_ASSIGN = 280, 70 XOR_ASSIGN = 281, 71 OR_ASSIGN = 282, 72 TYPE_NAME = 283, 73 TYPEDEF = 284, 74 EXTERN = 285, 75 STATIC = 286, 76 AUTO = 287, 77 REGISTER = 288, 78 CHAR = 289, 79 SHORT = 290, 80 INT = 291, 81 LONG = 292, 82 SIGNED = 293, 83 UNSIGNED = 294, 84 FLOAT = 295, 85 DOUBLE = 296, 86 CONST = 297, 87 VOLATILE = 298, 88 T_VOID = 299, 89 STRUCT = 300, 90 UNION = 301, 91 ENUM = 302, 92 ELLIPSIS = 303, 93 CASE = 304, 94 DEFAULT = 305, 95 IF = 306, 96 ELSE = 307, 97 SWITCH = 308, 98 WHILE = 309, 99 DO = 310, 100 FOR = 311, 101 GOTO = 312, 102 CONTINUE = 313, 103 BREAK = 314, 104 RETURN = 315, 105 PRINT = 316, 106 CINT = 317, 107 ITERATOR = 318, 108 MACRO = 319 109 }; 110 #endif 111 /* Tokens. */ 112 #define XEOF 0 113 #define IDENTIFIER 258 114 #define CONSTANT 259 115 #define STRING_LITERAL 260 116 #define SIZEOF 261 117 #define PTR_OP 262 118 #define INC_OP 263 119 #define DEC_OP 264 120 #define LEFT_OP 265 121 #define RIGHT_OP 266 122 #define LE_OP 267 123 #define GE_OP 268 124 #define EQ_OP 269 125 #define NE_OP 270 126 #define AND_OP 271 127 #define OR_OP 272 128 #define MUL_ASSIGN 273 129 #define DIV_ASSIGN 274 130 #define MOD_ASSIGN 275 131 #define ADD_ASSIGN 276 132 #define SUB_ASSIGN 277 133 #define LEFT_ASSIGN 278 134 #define RIGHT_ASSIGN 279 135 #define AND_ASSIGN 280 136 #define XOR_ASSIGN 281 137 #define OR_ASSIGN 282 138 #define TYPE_NAME 283 139 #define TYPEDEF 284 140 #define EXTERN 285 141 #define STATIC 286 142 #define AUTO 287 143 #define REGISTER 288 144 #define CHAR 289 145 #define SHORT 290 146 #define INT 291 147 #define LONG 292 148 #define SIGNED 293 149 #define UNSIGNED 294 150 #define FLOAT 295 151 #define DOUBLE 296 152 #define CONST 297 153 #define VOLATILE 298 154 #define T_VOID 299 155 #define STRUCT 300 156 #define UNION 301 157 #define ENUM 302 158 #define ELLIPSIS 303 159 #define CASE 304 160 #define DEFAULT 305 161 #define IF 306 162 #define ELSE 307 163 #define SWITCH 308 164 #define WHILE 309 165 #define DO 310 166 #define FOR 311 167 #define GOTO 312 168 #define CONTINUE 313 169 #define BREAK 314 170 #define RETURN 315 171 #define PRINT 316 172 #define CINT 317 173 #define ITERATOR 318 174 #define MACRO 319 175 176 177 178 179 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 180 typedef int YYSTYPE; 181 # define YYSTYPE_IS_TRIVIAL 1 182 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 183 # define YYSTYPE_IS_DECLARED 1 184 #endif 185 186 187 188 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED 189 typedef struct YYLTYPE 190 { 191 int first_line; 192 int first_column; 193 int last_line; 194 int last_column; 195 } YYLTYPE; 196 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ 197 # define YYLTYPE_IS_DECLARED 1 198 # define YYLTYPE_IS_TRIVIAL 1 199 #endif 200 201 202 203 #ifndef YYPUSH_DECLS 204 # define YYPUSH_DECLS 205 struct cint_c_pstate; 206 typedef struct cint_c_pstate cint_c_pstate; 207 enum { YYPUSH_MORE = 4 }; 208 #if defined __STDC__ || defined __cplusplus 209 int cint_c_parse (yyscan_t yyscanner, cint_cparser_t* cparser); 210 #else 211 int cint_c_parse (); 212 #endif 213 #if defined __STDC__ || defined __cplusplus 214 int cint_c_push_parse (cint_c_pstate *yyps, int yypushed_char, YYSTYPE const *yypushed_val, YYLTYPE const *yypushed_loc, yyscan_t yyscanner, cint_cparser_t* cparser); 215 #else 216 int cint_c_push_parse (); 217 #endif 218 #if defined __STDC__ || defined __cplusplus 219 int cint_c_pull_parse (cint_c_pstate *yyps, yyscan_t yyscanner, cint_cparser_t* cparser); 220 #else 221 int cint_c_pull_parse (); 222 #endif 223 #if defined __STDC__ || defined __cplusplus 224 cint_c_pstate * cint_c_pstate_new (void); 225 #else 226 cint_c_pstate * cint_c_pstate_new (); 227 #endif 228 #if defined __STDC__ || defined __cplusplus 229 void cint_c_pstate_delete (cint_c_pstate *yyps); 230 #else 231 void cint_c_pstate_delete (); 232 #endif 233 #endif 234