/* A Bison parser, made by GNU Bison 1.875a. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 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 { EOS = 258, EOL = 259, KW_IF = 260, KW_ELSE = 261, KW_FOR = 262, KW_DO = 263, KW_WHILE = 264, KW_BREAK = 265, KW_CONTINUE = 266, SY_ASSGIN_MUL = 267, SY_ASSGIN_DIV = 268, SY_ASSGIN_MIN = 269, SY_ASSGIN_PLUS = 270, SY_ASSGIN = 271, NUM = 272, FUNC = 273, VAR = 274, SY_NEQ = 275, SY_EQ = 276, SY_LE = 277, SY_GE = 278, SY_LS = 279, SY_GR = 280, SY_ANDAND = 281, SY_OROR = 282, SY_XOR = 283, SY_AND = 284, SY_OR = 285, SY_MOD = 286, SY_LNOT = 287, SY_NOT = 288, NEG = 289 }; #endif #define EOS 258 #define EOL 259 #define KW_IF 260 #define KW_ELSE 261 #define KW_FOR 262 #define KW_DO 263 #define KW_WHILE 264 #define KW_BREAK 265 #define KW_CONTINUE 266 #define SY_ASSGIN_MUL 267 #define SY_ASSGIN_DIV 268 #define SY_ASSGIN_MIN 269 #define SY_ASSGIN_PLUS 270 #define SY_ASSGIN 271 #define NUM 272 #define FUNC 273 #define VAR 274 #define SY_NEQ 275 #define SY_EQ 276 #define SY_LE 277 #define SY_GE 278 #define SY_LS 279 #define SY_GR 280 #define SY_ANDAND 281 #define SY_OROR 282 #define SY_XOR 283 #define SY_AND 284 #define SY_OR 285 #define SY_MOD 286 #define SY_LNOT 287 #define SY_NOT 288 #define NEG 289 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) #line 43 "mathparse.y" typedef union YYSTYPE { struct { int line; /* union'ify these */ void *exp; float num; char *str; /* buffer is malloc'd by code in lex-file */ } d; } YYSTYPE; /* Line 1240 of yacc.c. */ #line 115 "mathparse.tab.h" # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif extern YYSTYPE mathlval;