www.pudn.com > FUN_2V.rar > calc_yacc.h
/* 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,
CONSTANT_S = 259,
CONSTANT_C = 260,
CONSTANT_I = 261,
CONSTANT_R = 262,
ASS = 263,
IF = 264,
IFX = 265,
ELSE = 266,
DO = 267,
FOR = 268,
WHILE = 269,
BREAK = 270,
CONTI = 271,
GOTO = 272,
LABEL = 273,
CALL = 274,
INCB = 275,
INCA = 276,
DECB = 277,
DECA = 278,
ASSSHR = 279,
ASSSHL = 280,
ASSOOR = 281,
ASSXOR = 282,
ASSAND = 283,
ASSBAL = 284,
ASSDIV = 285,
ASSMUL = 286,
ASSSUB = 287,
ASSADD = 288,
ASSIGN = 289,
OOR = 290,
AND = 291,
CNE = 292,
CEQ = 293,
CLE = 294,
CGE = 295,
SHR = 296,
SHL = 297,
UMI = 298,
DEC = 299,
INC = 300
};
#endif
/* Tokens. */
#define IDENTIFIER 258
#define CONSTANT_S 259
#define CONSTANT_C 260
#define CONSTANT_I 261
#define CONSTANT_R 262
#define ASS 263
#define IF 264
#define IFX 265
#define ELSE 266
#define DO 267
#define FOR 268
#define WHILE 269
#define BREAK 270
#define CONTI 271
#define GOTO 272
#define LABEL 273
#define CALL 274
#define INCB 275
#define INCA 276
#define DECB 277
#define DECA 278
#define ASSSHR 279
#define ASSSHL 280
#define ASSOOR 281
#define ASSXOR 282
#define ASSAND 283
#define ASSBAL 284
#define ASSDIV 285
#define ASSMUL 286
#define ASSSUB 287
#define ASSADD 288
#define ASSIGN 289
#define OOR 290
#define AND 291
#define CNE 292
#define CEQ 293
#define CLE 294
#define CGE 295
#define SHR 296
#define SHL 297
#define UMI 298
#define DEC 299
#define INC 300
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 23 "calc_yacc.y"
{
char c_value;
long i_value;
Real r_value;
char *s_value;
Node *n_point;
}
/* Line 1489 of yacc.c. */
#line 147 "calc_yacc.h"
YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE yylval;