14 #ifndef LLVM_MC_MCPARSER_ASMLEXER_H 15 #define LLVM_MC_MCPARSER_ASMLEXER_H 29 const char *CurPtr =
nullptr;
31 bool IsAtStartOfLine =
true;
32 bool IsAtStartOfStatement =
true;
33 bool IsPeeking =
false;
50 bool ShouldSkipSpace =
true)
override;
55 bool isAtStartOfComment(
const char *Ptr);
56 bool isAtStatementSeparator(
const char *Ptr);
58 AsmToken ReturnError(
const char *Loc,
const std::string &Msg);
67 AsmToken LexHexFloatLiteral(
bool NoIntDigits);
74 #endif // LLVM_MC_MCPARSER_ASMLEXER_H const MCAsmInfo & getMAI() const
This class represents lattice values for constants.
AsmLexer & operator=(const AsmLexer &)=delete
AsmLexer - Lexer class for assembly files.
void setBuffer(StringRef Buf, const char *ptr=nullptr)
Generic assembler lexer interface, for use by target specific assembly lexers.
Target independent representation for an assembler token.
size_t peekTokens(MutableArrayRef< AsmToken > Buf, bool ShouldSkipSpace=true) override
Look ahead an arbitrary number of tokens.
This class is intended to be used as a base class for asm properties and features specific to the tar...
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
StringRef LexUntilEndOfStatement() override
AsmToken LexToken() override
LexToken - Read the next token and return its code.
StringRef - Represent a constant reference to a string, i.e.
AsmLexer(const MCAsmInfo &MAI)