class AsmLexer
Declaration
class AsmLexer : public MCAsmLexer { /* full declaration omitted */ };
Description
AsmLexer - Lexer class for assembly files.
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:25
Inherits from: MCAsmLexer
Member Variables
- private const llvm::MCAsmInfo& MAI
- private const char* CurPtr = nullptr
- private llvm::StringRef CurBuf
- private bool IsAtStartOfLine = true
- private bool IsAtStartOfStatement = true
- private bool IsPeeking = false
- private bool EndStatementAtEOF = true
Inherited from MCAsmLexer:
- protected TokStart = nullptr
- protected SkipSpace = true
- protected AllowAtInIdentifier
- protected AllowHashInIdentifier = false
- protected IsAtStartOfStatement = true
- protected LexMasmHexFloats = false
- protected LexMasmIntegers = false
- protected LexMasmStrings = false
- protected LexMotorolaIntegers = false
- protected UseMasmDefaultRadix = false
- protected DefaultRadix = 10
- protected LexHLASMIntegers = false
- protected LexHLASMStrings = false
- protected CommentConsumer = nullptr
Method Overview
- public AsmLexer(const llvm::MCAsmInfo & MAI)
- public AsmLexer(const llvm::AsmLexer &)
- private llvm::AsmToken LexDigit()
- private llvm::AsmToken LexFloatLiteral()
- private llvm::AsmToken LexHexFloatLiteral(bool NoIntDigits)
- private llvm::AsmToken LexIdentifier()
- private llvm::AsmToken LexLineComment()
- private llvm::AsmToken LexQuote()
- private llvm::AsmToken LexSingleQuote()
- private llvm::AsmToken LexSlash()
- protected llvm::AsmToken LexToken()
- private llvm::StringRef LexUntilEndOfLine()
- public llvm::StringRef LexUntilEndOfStatement()
- private llvm::AsmToken ReturnError(const char * Loc, const std::string & Msg)
- public const llvm::MCAsmInfo & getMAI() const
- private int getNextChar()
- private bool isAtStartOfComment(const char * Ptr)
- private bool isAtStatementSeparator(const char * Ptr)
- private int peekNextChar()
- public size_t peekTokens(MutableArrayRef<llvm::AsmToken> Buf, bool ShouldSkipSpace = true)
- public void setBuffer(llvm::StringRef Buf, const char * ptr = nullptr, bool EndStatementAtEOF = true)
- public ~AsmLexer()
Inherited from MCAsmLexer:
- public Lex
- protected LexToken
- public LexUntilEndOfStatement
- protected SetError
- public UnLex
- public getAllowAtInIdentifier
- public getErr
- public getErrLoc
- public getKind
- public getLoc
- public getMasmDefaultRadix
- public getTok
- public is
- public isAtStartOfStatement
- public isNot
- public peekTok
- public peekTokens
- public setAllowAtInIdentifier
- public setAllowHashInIdentifier
- public setCommentConsumer
- public setLexHLASMIntegers
- public setLexHLASMStrings
- public setLexMasmHexFloats
- public setLexMasmIntegers
- public setLexMasmStrings
- public setLexMotorolaIntegers
- public setMasmDefaultRadix
- public setSkipSpace
- public useMasmDefaultRadix
Methods
¶AsmLexer(const llvm::MCAsmInfo& MAI)
AsmLexer(const llvm::MCAsmInfo& MAI)
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:40
Parameters
- const llvm::MCAsmInfo& MAI
¶AsmLexer(const llvm::AsmLexer&)
AsmLexer(const llvm::AsmLexer&)
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:41
Parameters
- const llvm::AsmLexer&
¶llvm::AsmToken LexDigit()
llvm::AsmToken LexDigit()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:65
¶llvm::AsmToken LexFloatLiteral()
llvm::AsmToken LexFloatLiteral()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:68
¶llvm::AsmToken LexHexFloatLiteral(
bool NoIntDigits)
llvm::AsmToken LexHexFloatLiteral(
bool NoIntDigits)
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:69
Parameters
- bool NoIntDigits
¶llvm::AsmToken LexIdentifier()
llvm::AsmToken LexIdentifier()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:62
¶llvm::AsmToken LexLineComment()
llvm::AsmToken LexLineComment()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:64
¶llvm::AsmToken LexQuote()
llvm::AsmToken LexQuote()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:67
¶llvm::AsmToken LexSingleQuote()
llvm::AsmToken LexSingleQuote()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:66
¶llvm::AsmToken LexSlash()
llvm::AsmToken LexSlash()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:63
¶llvm::AsmToken LexToken()
llvm::AsmToken LexToken()
Description
LexToken - Read the next token and return its code.
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:37
¶llvm::StringRef LexUntilEndOfLine()
llvm::StringRef LexUntilEndOfLine()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:71
¶llvm::StringRef LexUntilEndOfStatement()
llvm::StringRef LexUntilEndOfStatement()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:48
¶llvm::AsmToken ReturnError(const char* Loc,
const std::string& Msg)
llvm::AsmToken ReturnError(const char* Loc,
const std::string& Msg)
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:60
Parameters
- const char* Loc
- const std::string& Msg
¶const llvm::MCAsmInfo& getMAI() const
const llvm::MCAsmInfo& getMAI() const
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:53
¶int getNextChar()
int getNextChar()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:58
¶bool isAtStartOfComment(const char* Ptr)
bool isAtStartOfComment(const char* Ptr)
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:56
Parameters
- const char* Ptr
¶bool isAtStatementSeparator(const char* Ptr)
bool isAtStatementSeparator(const char* Ptr)
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:57
Parameters
- const char* Ptr
¶int peekNextChar()
int peekNextChar()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:59
¶size_t peekTokens(
MutableArrayRef<llvm::AsmToken> Buf,
bool ShouldSkipSpace = true)
size_t peekTokens(
MutableArrayRef<llvm::AsmToken> Buf,
bool ShouldSkipSpace = true)
Description
Look ahead an arbitrary number of tokens.
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:50
Parameters
- MutableArrayRef<llvm::AsmToken> Buf
- bool ShouldSkipSpace = true
¶void setBuffer(llvm::StringRef Buf,
const char* ptr = nullptr,
bool EndStatementAtEOF = true)
void setBuffer(llvm::StringRef Buf,
const char* ptr = nullptr,
bool EndStatementAtEOF = true)
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:45
Parameters
- llvm::StringRef Buf
- const char* ptr = nullptr
- bool EndStatementAtEOF = true
¶~AsmLexer()
~AsmLexer()
Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:43