137 lines
3.2 KiB
C
137 lines
3.2 KiB
C
/* A Bison parser, made by GNU Bison 3.0.4. */
|
|
|
|
/* Bison interface for Yacc-like parsers in C
|
|
|
|
Copyright (C) 1984, 1989-1990, 2000-2015 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */
|
|
|
|
/* 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. */
|
|
|
|
#ifndef YY_YY_Y_TAB_H_INCLUDED
|
|
# define YY_YY_Y_TAB_H_INCLUDED
|
|
/* Debug traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 1
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int yydebug;
|
|
#endif
|
|
|
|
/* Token type. */
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
enum yytokentype
|
|
{
|
|
tENTIER = 258,
|
|
tADD = 259,
|
|
tSUB = 260,
|
|
tMUL = 261,
|
|
tDIV = 262,
|
|
tPO = 263,
|
|
tPF = 264,
|
|
tAO = 265,
|
|
tAF = 266,
|
|
tERROR = 267,
|
|
tPV = 268,
|
|
tVIRGULE = 269,
|
|
tAFFECTATION = 270,
|
|
tEGAL = 271,
|
|
tDIFF = 272,
|
|
tLT = 273,
|
|
tGT = 274,
|
|
tGTE = 275,
|
|
tLTE = 276,
|
|
tMAIN = 277,
|
|
tINT = 278,
|
|
tPRINT = 279,
|
|
tRETURN = 280,
|
|
tOR = 281,
|
|
tAND = 282,
|
|
tIF = 283,
|
|
tELSE = 284,
|
|
tWHILE = 285,
|
|
tCONST = 286,
|
|
tVAR = 287,
|
|
tNOT = 288
|
|
};
|
|
#endif
|
|
/* Tokens. */
|
|
#define tENTIER 258
|
|
#define tADD 259
|
|
#define tSUB 260
|
|
#define tMUL 261
|
|
#define tDIV 262
|
|
#define tPO 263
|
|
#define tPF 264
|
|
#define tAO 265
|
|
#define tAF 266
|
|
#define tERROR 267
|
|
#define tPV 268
|
|
#define tVIRGULE 269
|
|
#define tAFFECTATION 270
|
|
#define tEGAL 271
|
|
#define tDIFF 272
|
|
#define tLT 273
|
|
#define tGT 274
|
|
#define tGTE 275
|
|
#define tLTE 276
|
|
#define tMAIN 277
|
|
#define tINT 278
|
|
#define tPRINT 279
|
|
#define tRETURN 280
|
|
#define tOR 281
|
|
#define tAND 282
|
|
#define tIF 283
|
|
#define tELSE 284
|
|
#define tWHILE 285
|
|
#define tCONST 286
|
|
#define tVAR 287
|
|
#define tNOT 288
|
|
|
|
/* Value type. */
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
|
|
union YYSTYPE
|
|
{
|
|
#line 1 "analyse_syntaxique.y" /* yacc.c:1909 */
|
|
|
|
int nombre;
|
|
char id[30];
|
|
|
|
#line 125 "y.tab.h" /* yacc.c:1909 */
|
|
};
|
|
|
|
typedef union YYSTYPE YYSTYPE;
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
#endif
|
|
|
|
|
|
extern YYSTYPE yylval;
|
|
|
|
int yyparse (void);
|
|
|
|
#endif /* !YY_YY_Y_TAB_H_INCLUDED */
|