diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-22 20:49:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-22 20:49:04 +0000 |
commit | f4127dd48e11297ed3c545bb6ee6a70bf91388c7 (patch) | |
tree | 673ba0b198b7f69a66e800762e449eb28d4740d8 /llvm/utils/TableGen/FileParser.h.cvs | |
parent | a89a113a2047a4c355b1ed65665afd3b592b2d18 (diff) | |
download | bcm5719-llvm-f4127dd48e11297ed3c545bb6ee6a70bf91388c7.tar.gz bcm5719-llvm-f4127dd48e11297ed3c545bb6ee6a70bf91388c7.zip |
Rewrite the tblgen parser in a recursive descent style, eliminating the bison parser.
This makes the parser much easier to understand, eliminates a ton of global variables,
and gives tblgen nice caret diagnostics. It is also faster, but tblgen probably doesn't
care about performance.
There are a couple of FIXMEs which I will take care of next.
llvm-svn: 44274
Diffstat (limited to 'llvm/utils/TableGen/FileParser.h.cvs')
-rw-r--r-- | llvm/utils/TableGen/FileParser.h.cvs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/llvm/utils/TableGen/FileParser.h.cvs b/llvm/utils/TableGen/FileParser.h.cvs deleted file mode 100644 index 9f070fbd121..00000000000 --- a/llvm/utils/TableGen/FileParser.h.cvs +++ /dev/null @@ -1,40 +0,0 @@ -typedef union { - std::string* StrVal; - int IntVal; - llvm::RecTy* Ty; - llvm::Init* Initializer; - std::vector<llvm::Init*>* FieldList; - std::vector<unsigned>* BitList; - llvm::Record* Rec; - std::vector<llvm::Record*>* RecList; - SubClassRefTy* SubClassRef; - std::vector<SubClassRefTy>* SubClassList; - std::vector<std::pair<llvm::Init*, std::string> >* DagValueList; -} YYSTYPE; -#define INT 257 -#define BIT 258 -#define STRING 259 -#define BITS 260 -#define LIST 261 -#define CODE 262 -#define DAG 263 -#define CLASS 264 -#define DEF 265 -#define MULTICLASS 266 -#define DEFM 267 -#define FIELD 268 -#define LET 269 -#define IN 270 -#define CONCATTOK 271 -#define SHLTOK 272 -#define SRATOK 273 -#define SRLTOK 274 -#define STRCONCATTOK 275 -#define INTVAL 276 -#define ID 277 -#define VARNAME 278 -#define STRVAL 279 -#define CODEFRAGMENT 280 - - -extern YYSTYPE Filelval; |