/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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 2, 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* 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. */ /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { IDENTIFIER = 258, NUMBER = 259, SIZEOF = 260, PTR_OP = 261, GT_OP = 262, LT_OP = 263, GE_OP = 264, LE_OP = 265, NE_OP = 266, EQ_OP = 267, AND_OP = 268, OR_OP = 269, DOT_OP = 270, TYPEDEF = 271, INT = 272, CHAR = 273, VOID = 274, STRUCT = 275, IF = 276, ELSE = 277, WHILE = 278, RETURN = 279, ARRAY_OP = 280, FUNCTION = 281, DECLARATION = 282, TYPE_SPECIFIER = 283, DECLARATOR = 284, FUNCTION_DEFINITION = 285, TYPEDEF_STRUCT = 286, STRUCT_DECL_LIST = 287, DIRECT_DECL = 288, ARRAY_DECL = 289, PARAM = 290, COMPOUND = 291, DECL = 292, STATE = 293, NEG = 294, AST = 295, FUNC = 296, EXPR_LIST = 297, PROGRAM = 298, EXPR = 299, C_STATE = 300, IF_PREC = 301 }; #endif /* Tokens. */ #define IDENTIFIER 258 #define NUMBER 259 #define SIZEOF 260 #define PTR_OP 261 #define GT_OP 262 #define LT_OP 263 #define GE_OP 264 #define LE_OP 265 #define NE_OP 266 #define EQ_OP 267 #define AND_OP 268 #define OR_OP 269 #define DOT_OP 270 #define TYPEDEF 271 #define INT 272 #define CHAR 273 #define VOID 274 #define STRUCT 275 #define IF 276 #define ELSE 277 #define WHILE 278 #define RETURN 279 #define ARRAY_OP 280 #define FUNCTION 281 #define DECLARATION 282 #define TYPE_SPECIFIER 283 #define DECLARATOR 284 #define FUNCTION_DEFINITION 285 #define TYPEDEF_STRUCT 286 #define STRUCT_DECL_LIST 287 #define DIRECT_DECL 288 #define ARRAY_DECL 289 #define PARAM 290 #define COMPOUND 291 #define DECL 292 #define STATE 293 #define NEG 294 #define AST 295 #define FUNC 296 #define EXPR_LIST 297 #define PROGRAM 298 #define EXPR 299 #define C_STATE 300 #define IF_PREC 301 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE #line 41 "yacc2.y" { int i; char* s; struct typeNode *n; } /* Line 1529 of yacc.c. */ #line 147 "y.tab.h" YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif extern YYSTYPE yylval;