/* 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 { PROGRAM = 258, ID = 259, VAR = 260, NUM = 261, INTEGER = 262, REAL = 263, FUNCTION = 264, PROCEDURE = 265, PASCALBEGIN = 266, END = 267, ADDOP = 268, ASSIGNOP = 269, IF = 270, THEN = 271, ELSE = 272, WHILE = 273, DO = 274, RELOP = 275, MULOP = 276, NOT = 277, PROG_PARAMETER = 278, IRRELEVANT = 279, UMINUS = 280 }; #endif /* Tokens. */ #define PROGRAM 258 #define ID 259 #define VAR 260 #define NUM 261 #define INTEGER 262 #define REAL 263 #define FUNCTION 264 #define PROCEDURE 265 #define PASCALBEGIN 266 #define END 267 #define ADDOP 268 #define ASSIGNOP 269 #define IF 270 #define THEN 271 #define ELSE 272 #define WHILE 273 #define DO 274 #define RELOP 275 #define MULOP 276 #define NOT 277 #define PROG_PARAMETER 278 #define IRRELEVANT 279 #define UMINUS 280 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE #line 48 "comp.y" { Node *node; } /* Line 1529 of yacc.c. */ #line 103 "gen/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;