My Project
|
This class breaks up the current file into a token stream. More...
#include <Lexer.h>
Public Member Functions | |
Lexer (const llvm::SourceMgr &sourceMgr, MLIRContext *context) | |
const llvm::SourceMgr & | getSourceMgr () |
Token | lexToken () |
Location | getEncodedSourceLocation (llvm::SMLoc loc) |
void | resetPointer (const char *newPointer) |
const char * | getBufferBegin () |
Returns the start of the buffer. More... | |
This class breaks up the current file into a token stream.
|
explicit |
|
inline |
Returns the start of the buffer.
Location Lexer::getEncodedSourceLocation | ( | llvm::SMLoc | loc | ) |
Encode the specified source location information into a Location object for attachment to the IR or error reporting.
Encode the specified source location information into an attribute for attachment to the IR.
|
inline |
Token Lexer::lexToken | ( | ) |
|
inline |
Change the position of the lexer cursor. The next token we lex will start at the designated point in the input.