]> git.saurik.com Git - bison.git/blame - src/parse-gram.h
Change %merge result type clash warnings to errors. Discussed at
[bison.git] / src / parse-gram.h
CommitLineData
d2a1a60a 1/* A Bison parser, made by GNU Bison 2.3+. */
04b6e11e 2
04c12cb8
PE
3/* Skeleton interface for Bison's Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
04b6e11e
PE
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
0fb669f9
PE
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
04b6e11e 22
04c12cb8
PE
23/* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
32
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
04b6e11e 35
9bc0dd67 36
1921f1d7
AD
37/* Tokens. */
38#ifndef YYTOKENTYPE
ae7453f2 39# define YYTOKENTYPE
1921f1d7
AD
40 /* Put the tokens into the symbol table, so that GDB and other debuggers
41 know about them. */
42 enum yytokentype {
43 GRAM_EOF = 0,
44 STRING = 258,
62ddaef6
PE
45 INT = 259,
46 PERCENT_TOKEN = 260,
47 PERCENT_NTERM = 261,
48 PERCENT_TYPE = 262,
49 PERCENT_DESTRUCTOR = 263,
50 PERCENT_PRINTER = 264,
58d7a1a1
AD
51 PERCENT_LEFT = 265,
52 PERCENT_RIGHT = 266,
53 PERCENT_NONASSOC = 267,
54 PERCENT_PREC = 268,
55 PERCENT_DPREC = 269,
56 PERCENT_MERGE = 270,
34f98f46
JD
57 PERCENT_AFTER_HEADER = 271,
58 PERCENT_BEFORE_HEADER = 272,
9bc0dd67
JD
59 PERCENT_DEBUG = 273,
60 PERCENT_DEFAULT_PREC = 274,
61 PERCENT_DEFINE = 275,
62 PERCENT_DEFINES = 276,
34f98f46
JD
63 PERCENT_END_HEADER = 277,
64 PERCENT_ERROR_VERBOSE = 278,
65 PERCENT_EXPECT = 279,
66 PERCENT_EXPECT_RR = 280,
67 PERCENT_FILE_PREFIX = 281,
68 PERCENT_GLR_PARSER = 282,
69 PERCENT_INITIAL_ACTION = 283,
70 PERCENT_LEX_PARAM = 284,
71 PERCENT_LOCATIONS = 285,
72 PERCENT_NAME_PREFIX = 286,
73 PERCENT_NO_DEFAULT_PREC = 287,
74 PERCENT_NO_LINES = 288,
75 PERCENT_NONDETERMINISTIC_PARSER = 289,
76 PERCENT_OUTPUT = 290,
77 PERCENT_PARSE_PARAM = 291,
78 PERCENT_PURE_PARSER = 292,
79 PERCENT_REQUIRE = 293,
80 PERCENT_SKELETON = 294,
81 PERCENT_START = 295,
82 PERCENT_START_HEADER = 296,
83 PERCENT_TOKEN_TABLE = 297,
84 PERCENT_VERBOSE = 298,
85 PERCENT_YACC = 299,
86 BRACED_CODE = 300,
87 CHAR = 301,
88 EPILOGUE = 302,
89 EQUAL = 303,
90 ID = 304,
91 ID_COLON = 305,
92 PERCENT_PERCENT = 306,
93 PIPE = 307,
94 PROLOGUE = 308,
95 SEMICOLON = 309,
96 TYPE = 310,
97 PERCENT_UNION = 311
1921f1d7 98 };
ae7453f2 99#endif
1921f1d7
AD
100
101
102
bf8b3d98
PE
103#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
104typedef union YYSTYPE
3b452f4e 105/* Line 1535 of yacc.c. */
b3d9b5ba 106#line 90 "parse-gram.y"
f52b276c 107{
05d18c24
PE
108 symbol *symbol;
109 symbol_list *list;
e9955c83 110 int integer;
05d18c24
PE
111 char *chars;
112 assoc assoc;
113 uniqstr uniqstr;
58d7a1a1 114 unsigned char character;
f52b276c 115}
3b452f4e
JD
116/* Line 1535 of yacc.c. */
117#line 118 "parse-gram.h"
f52b276c 118 YYSTYPE;
73521d9f
PE
119# define yystype YYSTYPE /* obsolescent; will be withdrawn */
120# define YYSTYPE_IS_DECLARED 1
886b69d1 121# define YYSTYPE_IS_TRIVIAL 1
e9955c83
AD
122#endif
123
1921f1d7
AD
124
125
bf8b3d98 126#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
73521d9f 127typedef struct YYLTYPE
e9955c83
AD
128{
129 int first_line;
130 int first_column;
131 int last_line;
132 int last_column;
73521d9f
PE
133} YYLTYPE;
134# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
135# define YYLTYPE_IS_DECLARED 1
136# define YYLTYPE_IS_TRIVIAL 1
e9955c83
AD
137#endif
138
139
9bc0dd67 140