14 #ifndef LLVM_MC_MCPARSER_ASMLEXER_H
15 #define LLVM_MC_MCPARSER_ASMLEXER_H
19 #include "llvm/Support/DataTypes.h"
34 void operator=(
const AsmLexer&) =
delete;
59 AsmToken ReturnError(
const char *Loc,
const std::string &Msg);
68 AsmToken LexHexFloatLiteral(
bool NoIntDigits);
const AsmToken peekTok(bool ShouldSkipSpace=true) override
Look ahead at the next token to be lexed.
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.
StringRef LexUntilEndOfLine()
This class is intended to be used as a base class for asm properties and features specific to the tar...
bool isAtStatementSeparator(const char *Ptr)
bool isAtStartOfComment(const char *Ptr)
StringRef LexUntilEndOfStatement() override
AsmToken LexToken() override
LexToken - Read the next token and return its code.
const MCAsmInfo & getMAI() const
StringRef - Represent a constant reference to a string, i.e.