LEFT | RIGHT |
(no file at all) | |
1 /* A Bison parser, made by GNU Bison 2.6.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-2012 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 | |
33 #ifndef YY_YY_Y_TAB_H_INCLUDED | |
34 # define YY_YY_Y_TAB_H_INCLUDED | |
35 /* Enabling traces. */ | |
36 #ifndef YYDEBUG | |
37 # define YYDEBUG 0 | |
38 #endif | |
39 #if YYDEBUG | |
40 extern int yydebug; | |
41 #endif | |
42 | 35 |
43 /* Tokens. */ | 36 /* Tokens. */ |
44 #ifndef YYTOKENTYPE | 37 #ifndef YYTOKENTYPE |
45 # define YYTOKENTYPE | 38 # define YYTOKENTYPE |
46 /* 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 |
47 know about them. */ | 40 know about them. */ |
48 enum yytokentype { | 41 enum yytokentype { |
49 LLITERAL = 258, | 42 LLITERAL = 258, |
50 LASOP = 259, | 43 LASOP = 259, |
51 LCOLAS = 260, | 44 LCOLAS = 260, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 #define LLT 300 | 136 #define LLT 300 |
144 #define LNE 301 | 137 #define LNE 301 |
145 #define LOROR 302 | 138 #define LOROR 302 |
146 #define LRSH 303 | 139 #define LRSH 303 |
147 #define NotPackage 304 | 140 #define NotPackage 304 |
148 #define NotParen 305 | 141 #define NotParen 305 |
149 #define PreferToRightParen 306 | 142 #define PreferToRightParen 306 |
150 | 143 |
151 | 144 |
152 | 145 |
| 146 |
153 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED | 147 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
154 typedef union YYSTYPE | 148 typedef union YYSTYPE |
| 149 #line 28 "go.y" |
155 { | 150 { |
156 /* Line 2042 of yacc.c */ | |
157 #line 28 "go.y" | |
158 | |
159 Node* node; | 151 Node* node; |
160 NodeList* list; | 152 NodeList* list; |
161 Type* type; | 153 Type* type; |
162 Sym* sym; | 154 Sym* sym; |
163 struct Val val; | 155 struct Val val; |
164 int i; | 156 int i; |
165 | 157 } |
166 | 158 /* Line 1529 of yacc.c. */ |
167 /* Line 2042 of yacc.c */ | 159 #line 160 "y.tab.h" |
168 #line 169 "y.tab.h" | 160 » YYSTYPE; |
169 } YYSTYPE; | |
170 # define YYSTYPE_IS_TRIVIAL 1 | |
171 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ | 161 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
172 # define YYSTYPE_IS_DECLARED 1 | 162 # define YYSTYPE_IS_DECLARED 1 |
| 163 # define YYSTYPE_IS_TRIVIAL 1 |
173 #endif | 164 #endif |
174 | 165 |
175 extern YYSTYPE yylval; | 166 extern YYSTYPE yylval; |
176 | 167 |
177 #ifdef YYPARSE_PARAM | |
178 #if defined __STDC__ || defined __cplusplus | |
179 int yyparse (void *YYPARSE_PARAM); | |
180 #else | |
181 int yyparse (); | |
182 #endif | |
183 #else /* ! YYPARSE_PARAM */ | |
184 #if defined __STDC__ || defined __cplusplus | |
185 int yyparse (void); | |
186 #else | |
187 int yyparse (); | |
188 #endif | |
189 #endif /* ! YYPARSE_PARAM */ | |
190 | |
191 #endif /* !YY_YY_Y_TAB_H_INCLUDED */ | |
LEFT | RIGHT |