* lib/Parrot/Pmc2c/MethodEmitter.pm:
[parrot.git] / languages / cola / parser.h
blobf62eb755d4617edc59bbc65363d9d57a17b6f5af
1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
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.
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.
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. */
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.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
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 ASM = 258,
43 ABSTRACT = 259,
44 BOOL = 260,
45 BREAK = 261,
46 BYTE = 262,
47 CHAR = 263,
48 CLASS = 264,
49 CONST = 265,
50 CONTINUE = 266,
51 DOUBLE = 267,
52 DECIMAL = 268,
53 ELSE = 269,
54 EXTERN = 270,
55 FALSE = 271,
56 FLOAT = 272,
57 FOR = 273,
58 GET = 274,
59 GOTO = 275,
60 IF = 276,
61 INT = 277,
62 INTERNAL = 278,
63 LONG = 279,
64 METHOD = 280,
65 MODIFIER = 281,
66 NEW = 282,
67 NAMESPACE = 283,
68 NULLVAL = 284,
69 OUT = 285,
70 OVERRIDE = 286,
71 OBJECT = 287,
72 PRIVATE = 288,
73 PROTECTED = 289,
74 PUBLIC = 290,
75 REF = 291,
76 READONLY = 292,
77 RETURN = 293,
78 SBYTE = 294,
79 SET = 295,
80 SHORT = 296,
81 STRING = 297,
82 STATIC = 298,
83 THIS = 299,
84 TRUE = 300,
85 TYPE = 301,
86 UINT = 302,
87 USHORT = 303,
88 ULONG = 304,
89 USING = 305,
90 VIRTUAL = 306,
91 VOID = 307,
92 WHILE = 308,
93 IDENTIFIER = 309,
94 LITERAL = 310,
95 RANKSPEC = 311,
96 INC = 312,
97 DEC = 313,
98 LOGICAL_AND = 314,
99 LOGICAL_OR = 315,
100 LOGICAL_EQ = 316,
101 LOGICAL_NE = 317,
102 LOGICAL_LTE = 318,
103 LOGICAL_GTE = 319,
104 LEFT_SHIFT = 320,
105 RIGHT_SHIFT = 321,
106 INDEX = 322,
107 UMINUS = 323
109 #endif
110 /* Tokens. */
111 #define ASM 258
112 #define ABSTRACT 259
113 #define BOOL 260
114 #define BREAK 261
115 #define BYTE 262
116 #define CHAR 263
117 #define CLASS 264
118 #define CONST 265
119 #define CONTINUE 266
120 #define DOUBLE 267
121 #define DECIMAL 268
122 #define ELSE 269
123 #define EXTERN 270
124 #define FALSE 271
125 #define FLOAT 272
126 #define FOR 273
127 #define GET 274
128 #define GOTO 275
129 #define IF 276
130 #define INT 277
131 #define INTERNAL 278
132 #define LONG 279
133 #define METHOD 280
134 #define MODIFIER 281
135 #define NEW 282
136 #define NAMESPACE 283
137 #define NULLVAL 284
138 #define OUT 285
139 #define OVERRIDE 286
140 #define OBJECT 287
141 #define PRIVATE 288
142 #define PROTECTED 289
143 #define PUBLIC 290
144 #define REF 291
145 #define READONLY 292
146 #define RETURN 293
147 #define SBYTE 294
148 #define SET 295
149 #define SHORT 296
150 #define STRING 297
151 #define STATIC 298
152 #define THIS 299
153 #define TRUE 300
154 #define TYPE 301
155 #define UINT 302
156 #define USHORT 303
157 #define ULONG 304
158 #define USING 305
159 #define VIRTUAL 306
160 #define VOID 307
161 #define WHILE 308
162 #define IDENTIFIER 309
163 #define LITERAL 310
164 #define RANKSPEC 311
165 #define INC 312
166 #define DEC 313
167 #define LOGICAL_AND 314
168 #define LOGICAL_OR 315
169 #define LOGICAL_EQ 316
170 #define LOGICAL_NE 317
171 #define LOGICAL_LTE 318
172 #define LOGICAL_GTE 319
173 #define LEFT_SHIFT 320
174 #define RIGHT_SHIFT 321
175 #define INDEX 322
176 #define UMINUS 323
181 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
182 typedef union YYSTYPE
183 #line 36 "cola.y"
185 int ival;
186 Symbol * sym;
187 Type * type;
188 AST * ast;
189 void * p;
191 /* Line 1489 of yacc.c. */
192 #line 193 "parser.h"
193 YYSTYPE;
194 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
195 # define YYSTYPE_IS_DECLARED 1
196 # define YYSTYPE_IS_TRIVIAL 1
197 #endif
199 extern YYSTYPE yylval;