LLVM API Documentation

llvm::MCAsmLexer Class Reference

#include <MCAsmLexer.h>

Collaboration diagram for llvm::MCAsmLexer:
[legend]

List of all members.

Public Member Functions

virtual ~MCAsmLexer ()
const AsmToken & Lex ()
const AsmToken & getTok ()
 getTok - Get the current (last) lexed token.
AsmToken::TokenKind getKind () const
 getKind - Get the kind of current token.
bool is (AsmToken::TokenKind K) const
 is - Check if the current token has kind
bool isNot (AsmToken::TokenKind K) const
 isNot - Check if the current token has kind

Protected Member Functions

 MCAsmLexer ()
virtual AsmToken LexToken ()=0


Detailed Description

MCAsmLexer - Generic assembler lexer interface, for use by target specific assembly lexers.

Definition at line 103 of file MCAsmLexer.h.


Constructor & Destructor Documentation

MCAsmLexer::MCAsmLexer (  )  [protected]

Definition at line 15 of file MCAsmLexer.cpp.

MCAsmLexer::~MCAsmLexer (  )  [virtual]

Definition at line 18 of file MCAsmLexer.cpp.


Member Function Documentation

virtual AsmToken llvm::MCAsmLexer::LexToken (  )  [protected, pure virtual]

Referenced by Lex().

const AsmToken& llvm::MCAsmLexer::Lex (  )  [inline]

Lex - Consume the next token from the input stream and return it.

The lexer will continuosly return the end-of-file token once the end of the main input file has been reached.

Definition at line 121 of file MCAsmLexer.h.

References LexToken().

const AsmToken& llvm::MCAsmLexer::getTok (  )  [inline]

getTok - Get the current (last) lexed token.

Definition at line 126 of file MCAsmLexer.h.

AsmToken::TokenKind llvm::MCAsmLexer::getKind (  )  const [inline]

getKind - Get the kind of current token.

Definition at line 131 of file MCAsmLexer.h.

References llvm::AsmToken::getKind().

bool llvm::MCAsmLexer::is ( AsmToken::TokenKind  K  )  const [inline]

is - Check if the current token has kind

  • K.

Definition at line 134 of file MCAsmLexer.h.

References llvm::AsmToken::is().

bool llvm::MCAsmLexer::isNot ( AsmToken::TokenKind  K  )  const [inline]

isNot - Check if the current token has kind

  • K.

Definition at line 137 of file MCAsmLexer.h.

References llvm::AsmToken::isNot().


The documentation for this class was generated from the following files: