blob: d01fbe1987ff7a3fe8b8dbdea06f109a30015aeb [file] [log] [blame]
Brent Austinba3052e2015-04-21 16:08:23 -07001/* A Bison parser, made by GNU Bison 2.3. */
2
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.
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
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
22
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. */
35
36/* Tokens. */
37#ifndef YYTOKENTYPE
38# define YYTOKENTYPE
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
40 know about them. */
41 enum yytokentype {
42 LLITERAL = 258,
43 LASOP = 259,
44 LCOLAS = 260,
45 LBREAK = 261,
46 LCASE = 262,
47 LCHAN = 263,
48 LCONST = 264,
49 LCONTINUE = 265,
50 LDDD = 266,
51 LDEFAULT = 267,
52 LDEFER = 268,
53 LELSE = 269,
54 LFALL = 270,
55 LFOR = 271,
56 LFUNC = 272,
57 LGO = 273,
58 LGOTO = 274,
59 LIF = 275,
60 LIMPORT = 276,
61 LINTERFACE = 277,
62 LMAP = 278,
63 LNAME = 279,
64 LPACKAGE = 280,
65 LRANGE = 281,
66 LRETURN = 282,
67 LSELECT = 283,
68 LSTRUCT = 284,
69 LSWITCH = 285,
70 LTYPE = 286,
71 LVAR = 287,
72 LANDAND = 288,
73 LANDNOT = 289,
74 LBODY = 290,
75 LCOMM = 291,
76 LDEC = 292,
77 LEQ = 293,
78 LGE = 294,
79 LGT = 295,
80 LIGNORE = 296,
81 LINC = 297,
82 LLE = 298,
83 LLSH = 299,
84 LLT = 300,
85 LNE = 301,
86 LOROR = 302,
87 LRSH = 303,
88 NotPackage = 304,
89 NotParen = 305,
90 PreferToRightParen = 306
91 };
92#endif
93/* Tokens. */
94#define LLITERAL 258
95#define LASOP 259
96#define LCOLAS 260
97#define LBREAK 261
98#define LCASE 262
99#define LCHAN 263
100#define LCONST 264
101#define LCONTINUE 265
102#define LDDD 266
103#define LDEFAULT 267
104#define LDEFER 268
105#define LELSE 269
106#define LFALL 270
107#define LFOR 271
108#define LFUNC 272
109#define LGO 273
110#define LGOTO 274
111#define LIF 275
112#define LIMPORT 276
113#define LINTERFACE 277
114#define LMAP 278
115#define LNAME 279
116#define LPACKAGE 280
117#define LRANGE 281
118#define LRETURN 282
119#define LSELECT 283
120#define LSTRUCT 284
121#define LSWITCH 285
122#define LTYPE 286
123#define LVAR 287
124#define LANDAND 288
125#define LANDNOT 289
126#define LBODY 290
127#define LCOMM 291
128#define LDEC 292
129#define LEQ 293
130#define LGE 294
131#define LGT 295
132#define LIGNORE 296
133#define LINC 297
134#define LLE 298
135#define LLSH 299
136#define LLT 300
137#define LNE 301
138#define LOROR 302
139#define LRSH 303
140#define NotPackage 304
141#define NotParen 305
142#define PreferToRightParen 306
143
144
145
146
147#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
148typedef union YYSTYPE
149#line 28 "go.y"
150{
151 Node* node;
152 NodeList* list;
153 Type* type;
154 Sym* sym;
155 struct Val val;
156 int i;
157}
158/* Line 1529 of yacc.c. */
159#line 160 "y.tab.h"
160 YYSTYPE;
161# define yystype YYSTYPE /* obsolescent; will be withdrawn */
162# define YYSTYPE_IS_DECLARED 1
163# define YYSTYPE_IS_TRIVIAL 1
164#endif
165
166extern YYSTYPE yylval;
167