131 lines
3.1 KiB
C
131 lines
3.1 KiB
C
/* A Bison parser, made by GNU Bison 2.0. */
|
|
|
|
/* Skeleton parser for Yacc-like parsing with Bison,
|
|
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 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 {
|
|
tINTEGER = 258,
|
|
tOBJECT = 259,
|
|
tFLOAT = 260,
|
|
tSTRING = 261,
|
|
tID = 262,
|
|
tERROR = 263,
|
|
tIF = 264,
|
|
tELSE = 265,
|
|
tELSEIF = 266,
|
|
tENDIF = 267,
|
|
tFOR = 268,
|
|
tIN = 269,
|
|
tENDFOR = 270,
|
|
tRETURN = 271,
|
|
tFORK = 272,
|
|
tENDFORK = 273,
|
|
tWHILE = 274,
|
|
tENDWHILE = 275,
|
|
tTRY = 276,
|
|
tENDTRY = 277,
|
|
tEXCEPT = 278,
|
|
tFINALLY = 279,
|
|
tANY = 280,
|
|
tBREAK = 281,
|
|
tCONTINUE = 282,
|
|
tTO = 283,
|
|
tARROW = 284,
|
|
tAND = 285,
|
|
tOR = 286,
|
|
tGE = 287,
|
|
tLE = 288,
|
|
tNE = 289,
|
|
tEQ = 290,
|
|
tUNARYMINUS = 291
|
|
};
|
|
#endif
|
|
#define tINTEGER 258
|
|
#define tOBJECT 259
|
|
#define tFLOAT 260
|
|
#define tSTRING 261
|
|
#define tID 262
|
|
#define tERROR 263
|
|
#define tIF 264
|
|
#define tELSE 265
|
|
#define tELSEIF 266
|
|
#define tENDIF 267
|
|
#define tFOR 268
|
|
#define tIN 269
|
|
#define tENDFOR 270
|
|
#define tRETURN 271
|
|
#define tFORK 272
|
|
#define tENDFORK 273
|
|
#define tWHILE 274
|
|
#define tENDWHILE 275
|
|
#define tTRY 276
|
|
#define tENDTRY 277
|
|
#define tEXCEPT 278
|
|
#define tFINALLY 279
|
|
#define tANY 280
|
|
#define tBREAK 281
|
|
#define tCONTINUE 282
|
|
#define tTO 283
|
|
#define tARROW 284
|
|
#define tAND 285
|
|
#define tOR 286
|
|
#define tGE 287
|
|
#define tLE 288
|
|
#define tNE 289
|
|
#define tEQ 290
|
|
#define tUNARYMINUS 291
|
|
|
|
|
|
|
|
|
|
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
|
#line 68 "parser.y"
|
|
typedef union YYSTYPE {
|
|
Stmt *stmt;
|
|
Expr *expr;
|
|
int integer;
|
|
Objid object;
|
|
double *real;
|
|
char *string;
|
|
enum error error;
|
|
Arg_List *args;
|
|
Cond_Arm *arm;
|
|
Except_Arm *except;
|
|
Scatter *scatter;
|
|
} YYSTYPE;
|
|
/* Line 1318 of yacc.c. */
|
|
#line 123 "parser.h"
|
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
#endif
|
|
|
|
extern YYSTYPE yylval;
|
|
|
|
|
|
|