LLDB mainline
|
Class defining the tokens generated by the DIL lexer and used by the DIL parser. More...
#include <DILLexer.h>
Public Types | |
enum | Kind { amp , arrow , coloncolon , eof , float_constant , identifier , integer_constant , kw_false , kw_true , l_paren , l_square , minus , period , plus , r_paren , r_square , star } |
Public Member Functions | |
Token (Kind kind, std::string spelling, uint32_t start) | |
Kind | GetKind () const |
std::string | GetSpelling () const |
bool | Is (Kind kind) const |
bool | IsNot (Kind kind) const |
bool | IsOneOf (llvm::ArrayRef< Kind > kinds) const |
uint32_t | GetLocation () const |
Static Public Member Functions | |
static llvm::StringRef | GetTokenName (Kind kind) |
Private Attributes | |
Kind | m_kind |
std::string | m_spelling |
uint32_t | m_start_pos |
Class defining the tokens generated by the DIL lexer and used by the DIL parser.
Definition at line 24 of file DILLexer.h.
Enumerator | |
---|---|
amp | |
arrow | |
coloncolon | |
eof | |
float_constant | |
identifier | |
integer_constant | |
kw_false | |
kw_true | |
l_paren | |
l_square | |
minus | |
period | |
plus | |
r_paren | |
r_square | |
star |
Definition at line 26 of file DILLexer.h.
|
inline |
Definition at line 46 of file DILLexer.h.
References m_kind, m_spelling, and m_start_pos.
|
inline |
Definition at line 49 of file DILLexer.h.
References m_kind.
Referenced by llvm::format_provider< lldb_private::dil::Token >::format(), lldb_private::dil::DILParser::ParsePostfixExpression(), and lldb_private::dil::DILParser::ParseUnaryExpression().
|
inline |
Definition at line 61 of file DILLexer.h.
References m_start_pos.
Referenced by lldb_private::dil::DILParser::ParseBooleanLiteral(), lldb_private::dil::DILParser::ParseFloatingPointLiteral(), lldb_private::dil::DILParser::ParseIntegerLiteral(), lldb_private::dil::DILParser::ParsePostfixExpression(), lldb_private::dil::DILParser::ParsePrimaryExpression(), and lldb_private::dil::DILParser::ParseUnaryExpression().
|
inline |
Definition at line 51 of file DILLexer.h.
References m_spelling.
Referenced by llvm::format_provider< lldb_private::dil::Token >::format(), lldb_private::dil::DILParser::ParseFloatingPointLiteral(), lldb_private::dil::DILParser::ParseIdExpression(), lldb_private::dil::DILParser::ParseIntegerLiteral(), lldb_private::dil::DILParser::ParseNestedNameSpecifier(), and lldb_private::dil::DILParser::ParseUnqualifiedId().
|
static |
Definition at line 21 of file DILLexer.cpp.
References amp, arrow, coloncolon, eof, float_constant, identifier, integer_constant, kw_false, kw_true, l_paren, l_square, minus, period, plus, r_paren, r_square, and star.
Referenced by llvm::format_provider< lldb_private::dil::Token >::format(), and llvm::format_provider< lldb_private::dil::Token::Kind >::format().
Definition at line 53 of file DILLexer.h.
References m_kind.
Referenced by lldb_private::dil::DILParser::ParseBooleanLiteral().
Definition at line 55 of file DILLexer.h.
References m_kind.
Definition at line 57 of file DILLexer.h.
References m_kind.
|
private |
|
private |
Definition at line 67 of file DILLexer.h.
Referenced by GetSpelling(), and Token().
|
private |
Definition at line 68 of file DILLexer.h.
Referenced by GetLocation(), and Token().