Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | /* 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 | INT = 258, |
| 43 | BIT = 259, |
| 44 | STRING = 260, |
| 45 | BITS = 261, |
| 46 | LIST = 262, |
| 47 | CODE = 263, |
| 48 | DAG = 264, |
| 49 | CLASS = 265, |
| 50 | DEF = 266, |
| 51 | MULTICLASS = 267, |
| 52 | DEFM = 268, |
| 53 | FIELD = 269, |
| 54 | LET = 270, |
| 55 | IN = 271, |
| 56 | SHLTOK = 272, |
| 57 | SRATOK = 273, |
| 58 | SRLTOK = 274, |
| 59 | STRCONCATTOK = 275, |
| 60 | INTVAL = 276, |
| 61 | ID = 277, |
| 62 | VARNAME = 278, |
| 63 | STRVAL = 279, |
| 64 | CODEFRAGMENT = 280 |
| 65 | }; |
| 66 | #endif |
| 67 | /* Tokens. */ |
| 68 | #define INT 258 |
| 69 | #define BIT 259 |
| 70 | #define STRING 260 |
| 71 | #define BITS 261 |
| 72 | #define LIST 262 |
| 73 | #define CODE 263 |
| 74 | #define DAG 264 |
| 75 | #define CLASS 265 |
| 76 | #define DEF 266 |
| 77 | #define MULTICLASS 267 |
| 78 | #define DEFM 268 |
| 79 | #define FIELD 269 |
| 80 | #define LET 270 |
| 81 | #define IN 271 |
| 82 | #define SHLTOK 272 |
| 83 | #define SRATOK 273 |
| 84 | #define SRLTOK 274 |
| 85 | #define STRCONCATTOK 275 |
| 86 | #define INTVAL 276 |
| 87 | #define ID 277 |
| 88 | #define VARNAME 278 |
| 89 | #define STRVAL 279 |
| 90 | #define CODEFRAGMENT 280 |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 96 | typedef union YYSTYPE |
| 97 | #line 210 "/Volumes/Gir/devel/llvm/llvm.src/utils/TableGen/FileParser.y" |
| 98 | { |
| 99 | std::string* StrVal; |
| 100 | int IntVal; |
| 101 | llvm::RecTy* Ty; |
| 102 | llvm::Init* Initializer; |
| 103 | std::vector<llvm::Init*>* FieldList; |
| 104 | std::vector<unsigned>* BitList; |
| 105 | llvm::Record* Rec; |
| 106 | std::vector<llvm::Record*>* RecList; |
| 107 | SubClassRefTy* SubClassRef; |
| 108 | std::vector<SubClassRefTy>* SubClassList; |
| 109 | std::vector<std::pair<llvm::Init*, std::string> >* DagValueList; |
| 110 | } |
| 111 | /* Line 1529 of yacc.c. */ |
| 112 | #line 113 "FileParser.tab.h" |
| 113 | YYSTYPE; |
| 114 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| 115 | # define YYSTYPE_IS_DECLARED 1 |
| 116 | # define YYSTYPE_IS_TRIVIAL 1 |
| 117 | #endif |
| 118 | |
| 119 | extern YYSTYPE Filelval; |
| 120 | |