TGLexer.h (226633) | TGLexer.h (234353) |
---|---|
1//===- TGLexer.h - Lexer for TableGen Files ---------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 25 unchanged lines hidden (view full) --- 34 minus, plus, // - + 35 l_square, r_square, // [ ] 36 l_brace, r_brace, // { } 37 l_paren, r_paren, // ( ) 38 less, greater, // < > 39 colon, semi, // : ; 40 comma, period, // , . 41 equal, question, // = ? | 1//===- TGLexer.h - Lexer for TableGen Files ---------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 25 unchanged lines hidden (view full) --- 34 minus, plus, // - + 35 l_square, r_square, // [ ] 36 l_brace, r_brace, // { } 37 l_paren, r_paren, // ( ) 38 less, greater, // < > 39 colon, semi, // : ; 40 comma, period, // , . 41 equal, question, // = ? |
42 | 42 paste, // # 43 |
43 // Keywords. | 44 // Keywords. |
44 Bit, Bits, Class, Code, Dag, Def, Defm, Field, In, Int, Let, List, | 45 Bit, Bits, Class, Code, Dag, Def, Foreach, Defm, Field, In, Int, Let, List, |
45 MultiClass, String, 46 47 // !keywords. 48 XConcat, XSRA, XSRL, XSHL, XStrConcat, XCast, XSubst, 49 XForEach, XHead, XTail, XEmpty, XIf, XEq, 50 51 // Integer value. 52 IntVal, --- 51 unchanged lines hidden (view full) --- 104 105private: 106 /// LexToken - Read the next token and return its code. 107 tgtok::TokKind LexToken(); 108 109 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg); 110 111 int getNextChar(); | 46 MultiClass, String, 47 48 // !keywords. 49 XConcat, XSRA, XSRL, XSHL, XStrConcat, XCast, XSubst, 50 XForEach, XHead, XTail, XEmpty, XIf, XEq, 51 52 // Integer value. 53 IntVal, --- 51 unchanged lines hidden (view full) --- 105 106private: 107 /// LexToken - Read the next token and return its code. 108 tgtok::TokKind LexToken(); 109 110 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg); 111 112 int getNextChar(); |
113 int peekNextChar(int Index); |
|
112 void SkipBCPLComment(); 113 bool SkipCComment(); 114 tgtok::TokKind LexIdentifier(); 115 bool LexInclude(); 116 tgtok::TokKind LexString(); 117 tgtok::TokKind LexVarName(); 118 tgtok::TokKind LexNumber(); 119 tgtok::TokKind LexBracket(); 120 tgtok::TokKind LexExclaim(); 121}; 122 123} // end namespace llvm 124 125#endif | 114 void SkipBCPLComment(); 115 bool SkipCComment(); 116 tgtok::TokKind LexIdentifier(); 117 bool LexInclude(); 118 tgtok::TokKind LexString(); 119 tgtok::TokKind LexVarName(); 120 tgtok::TokKind LexNumber(); 121 tgtok::TokKind LexBracket(); 122 tgtok::TokKind LexExclaim(); 123}; 124 125} // end namespace llvm 126 127#endif |