blob: 89032f9874618615bf69c894036aec2ba5eff461 [file] [log] [blame]
John Criswelld7881242006-01-17 17:01:34 +00001/* A Bison parser, made by GNU Bison 1.875. */
2
3/* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21/* As a special exception, when this file is copied by Bison into a
22 Bison output file, you may use that output file without restriction.
23 This special exception was added by the Free Software Foundation
24 in version 1.24 of Bison. */
25
26/* Tokens. */
27#ifndef YYTOKENTYPE
28# define YYTOKENTYPE
29 /* Put the tokens into the symbol table, so that GDB and other debuggers
30 know about them. */
31 enum yytokentype {
32 INT = 258,
33 BIT = 259,
34 STRING = 260,
35 BITS = 261,
36 LIST = 262,
37 CODE = 263,
38 DAG = 264,
39 CLASS = 265,
40 DEF = 266,
41 FIELD = 267,
42 LET = 268,
43 IN = 269,
44 SHLTOK = 270,
45 SRATOK = 271,
46 SRLTOK = 272,
47 INTVAL = 273,
48 ID = 274,
49 VARNAME = 275,
50 STRVAL = 276,
51 CODEFRAGMENT = 277
52 };
53#endif
54#define INT 258
55#define BIT 259
56#define STRING 260
57#define BITS 261
58#define LIST 262
59#define CODE 263
60#define DAG 264
61#define CLASS 265
62#define DEF 266
63#define FIELD 267
64#define LET 268
65#define IN 269
66#define SHLTOK 270
67#define SRATOK 271
68#define SRLTOK 272
69#define INTVAL 273
70#define ID 274
71#define VARNAME 275
72#define STRVAL 276
73#define CODEFRAGMENT 277
74
75
76
77
78#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
79#line 189 "/home/vadve/criswell/llvm/utils/TableGen/FileParser.y"
80typedef union YYSTYPE {
Reid Spencer68a24bd2005-08-27 18:50:39 +000081 std::string* StrVal;
82 int IntVal;
83 llvm::RecTy* Ty;
84 llvm::Init* Initializer;
85 std::vector<llvm::Init*>* FieldList;
86 std::vector<unsigned>* BitList;
87 llvm::Record* Rec;
88 SubClassRefTy* SubClassRef;
89 std::vector<SubClassRefTy>* SubClassList;
90 std::vector<std::pair<llvm::Init*, std::string> >* DagValueList;
91} YYSTYPE;
John Criswelld7881242006-01-17 17:01:34 +000092/* Line 1240 of yacc.c. */
93#line 93 "FileParser.tab.h"
94# define yystype YYSTYPE /* obsolescent; will be withdrawn */
95# define YYSTYPE_IS_DECLARED 1
96# define YYSTYPE_IS_TRIVIAL 1
97#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +000098
99extern YYSTYPE Filelval;
John Criswelld7881242006-01-17 17:01:34 +0000100
101
102