|
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 , colon , coloncolon , eof , equal , float_constant , greatergreater , identifier , integer_constant , kw_false , kw_true , l_paren , l_square , lessless , minus , minusequal , percent , period , plus , plusequal , r_paren , r_square , slash , 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 25 of file DILLexer.h.
Definition at line 27 of file DILLexer.h.
|
inline |
Definition at line 55 of file DILLexer.h.
References m_kind, m_spelling, and m_start_pos.
|
inline |
Definition at line 58 of file DILLexer.h.
References m_kind.
Referenced by llvm::format_provider< lldb_private::dil::Token >::format(), lldb_private::dil::DILParser::ParseAdditiveExpression(), lldb_private::dil::DILParser::ParseAssignmentExpression(), lldb_private::dil::DILParser::ParseMultiplicativeExpression(), lldb_private::dil::DILParser::ParsePostfixExpression(), lldb_private::dil::DILParser::ParseShiftExpression(), and lldb_private::dil::DILParser::ParseUnaryExpression().
|
inline |
Definition at line 70 of file DILLexer.h.
References m_start_pos.
Referenced by lldb_private::dil::IsNotAllowedByMode(), lldb_private::dil::DILParser::ParseAdditiveExpression(), lldb_private::dil::DILParser::ParseAssignmentExpression(), lldb_private::dil::DILParser::ParseBooleanLiteral(), lldb_private::dil::DILParser::ParseCastExpression(), lldb_private::dil::DILParser::ParseFloatingPointLiteral(), lldb_private::dil::DILParser::ParseIntegerLiteral(), lldb_private::dil::DILParser::ParseMultiplicativeExpression(), lldb_private::dil::DILParser::ParsePostfixExpression(), lldb_private::dil::DILParser::ParsePrimaryExpression(), lldb_private::dil::DILParser::ParseShiftExpression(), and lldb_private::dil::DILParser::ParseUnaryExpression().
|
inline |
Definition at line 60 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::ParseMultiplicativeExpression(), lldb_private::dil::DILParser::ParseNestedNameSpecifier(), lldb_private::dil::DILParser::ParseTypeName(), and lldb_private::dil::DILParser::ParseUnqualifiedId().
|
static |
Definition at line 21 of file DILLexer.cpp.
References amp, arrow, colon, coloncolon, eof, equal, float_constant, greatergreater, identifier, integer_constant, kw_false, kw_true, l_paren, l_square, lessless, minus, minusequal, percent, period, plus, plusequal, r_paren, r_square, slash, 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 62 of file DILLexer.h.
References m_kind.
Referenced by lldb_private::dil::DILParser::ParseBooleanLiteral(), and lldb_private::dil::DILParser::ParseMultiplicativeExpression().
Definition at line 64 of file DILLexer.h.
References m_kind.
Definition at line 66 of file DILLexer.h.
References m_kind.
Referenced by lldb_private::dil::IsNotAllowedByMode().
|
private |
|
private |
Definition at line 76 of file DILLexer.h.
Referenced by GetSpelling(), and Token().
|
private |
Definition at line 77 of file DILLexer.h.
Referenced by GetLocation(), and Token().