OLD | NEW |
1 /* A Bison parser, made by GNU Bison 2.5. */ | 1 /* A Bison parser, made by GNU Bison 2.3. */ |
2 | 2 |
3 /* Bison interface for Yacc-like parsers in C | 3 /* Skeleton interface for Bison's Yacc-like parsers in C |
4 | 4 |
5 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. | 5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
6 | 6 Free Software Foundation, Inc. |
7 This program is free software: you can redistribute it and/or modify | 7 |
| 8 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation, either version 3 of the License, or | 10 the Free Software Foundation; either version 2, or (at your option) |
10 (at your option) any later version. | 11 any later version. |
11 | 12 |
12 This program is distributed in the hope that it will be useful, | 13 This program is distributed in the hope that it will be useful, |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 GNU General Public License for more details. | 16 GNU General Public License for more details. |
16 | 17 |
17 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 19 along with this program; if not, write to the Free Software |
| 20 Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 Boston, MA 02110-1301, USA. */ |
19 | 22 |
20 /* As a special exception, you may create a larger work that contains | 23 /* As a special exception, you may create a larger work that contains |
21 part or all of the Bison parser skeleton and distribute that work | 24 part or all of the Bison parser skeleton and distribute that work |
22 under terms of your choice, so long as that work isn't itself a | 25 under terms of your choice, so long as that work isn't itself a |
23 parser generator using the skeleton or a modified version thereof | 26 parser generator using the skeleton or a modified version thereof |
24 as a parser skeleton. Alternatively, if you modify or redistribute | 27 as a parser skeleton. Alternatively, if you modify or redistribute |
25 the parser skeleton itself, you may (at your option) remove this | 28 the parser skeleton itself, you may (at your option) remove this |
26 special exception, which will cause the skeleton and the resulting | 29 special exception, which will cause the skeleton and the resulting |
27 Bison output files to be licensed under the GNU General Public | 30 Bison output files to be licensed under the GNU General Public |
28 License without this special exception. | 31 License without this special exception. |
29 | 32 |
30 This special exception was added by the Free Software Foundation in | 33 This special exception was added by the Free Software Foundation in |
31 version 2.2 of Bison. */ | 34 version 2.2 of Bison. */ |
32 | 35 |
33 | |
34 /* Tokens. */ | 36 /* Tokens. */ |
35 #ifndef YYTOKENTYPE | 37 #ifndef YYTOKENTYPE |
36 # define YYTOKENTYPE | 38 # define YYTOKENTYPE |
37 /* Put the tokens into the symbol table, so that GDB and other debuggers | 39 /* Put the tokens into the symbol table, so that GDB and other debuggers |
38 know about them. */ | 40 know about them. */ |
39 enum yytokentype { | 41 enum yytokentype { |
40 LLITERAL = 258, | 42 LLITERAL = 258, |
41 LASOP = 259, | 43 LASOP = 259, |
42 LCOLAS = 260, | 44 LCOLAS = 260, |
43 LBREAK = 261, | 45 LBREAK = 261, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 #define LRSH 303 | 139 #define LRSH 303 |
138 #define NotPackage 304 | 140 #define NotPackage 304 |
139 #define NotParen 305 | 141 #define NotParen 305 |
140 #define PreferToRightParen 306 | 142 #define PreferToRightParen 306 |
141 | 143 |
142 | 144 |
143 | 145 |
144 | 146 |
145 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED | 147 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
146 typedef union YYSTYPE | 148 typedef union YYSTYPE |
| 149 #line 28 "go.y" |
147 { | 150 { |
148 | |
149 /* Line 2068 of yacc.c */ | |
150 #line 28 "go.y" | |
151 | |
152 Node* node; | 151 Node* node; |
153 NodeList* list; | 152 NodeList* list; |
154 Type* type; | 153 Type* type; |
155 Sym* sym; | 154 Sym* sym; |
156 struct Val val; | 155 struct Val val; |
157 int i; | 156 int i; |
158 | 157 } |
159 | 158 /* Line 1529 of yacc.c. */ |
160 | 159 #line 160 "y.tab.h" |
161 /* Line 2068 of yacc.c */ | 160 » YYSTYPE; |
162 #line 163 "y.tab.h" | |
163 } YYSTYPE; | |
164 # define YYSTYPE_IS_TRIVIAL 1 | |
165 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ | 161 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
166 # define YYSTYPE_IS_DECLARED 1 | 162 # define YYSTYPE_IS_DECLARED 1 |
| 163 # define YYSTYPE_IS_TRIVIAL 1 |
167 #endif | 164 #endif |
168 | 165 |
169 extern YYSTYPE yylval; | 166 extern YYSTYPE yylval; |
170 | 167 |
171 | |
OLD | NEW |