#include "Tools/PDLL/Parser/Lexer.h"
Definition at line 165 of file Lexer.h.
◆ Lexer()
◆ ~Lexer()
◆ emitError() [1/2]
Token mlir::pdll::Lexer::emitError |
( |
const char * |
loc, |
|
|
const Twine & |
msg |
|
) |
| |
◆ emitError() [2/2]
Token Lexer::emitError |
( |
SMRange |
loc, |
|
|
const Twine & |
msg |
|
) |
| |
◆ emitErrorAndNote()
Token Lexer::emitErrorAndNote |
( |
SMRange |
loc, |
|
|
const Twine & |
msg, |
|
|
SMRange |
noteLoc, |
|
|
const Twine & |
note |
|
) |
| |
◆ getDiagEngine()
Return a reference to the diagnostic engine used by the lexer.
Definition at line 175 of file Lexer.h.
◆ getSourceMgr()
llvm::SourceMgr& mlir::pdll::Lexer::getSourceMgr |
( |
| ) |
|
|
inline |
Return a reference to the source manager used by the lexer.
Definition at line 172 of file Lexer.h.
◆ lexToken()
Token mlir::pdll::Lexer::lexToken |
( |
| ) |
|
Lex the next token and return it.
◆ pushInclude()
LogicalResult Lexer::pushInclude |
( |
StringRef |
filename, |
|
|
SMRange |
includeLoc |
|
) |
| |
Push an include of the given file.
This will cause the lexer to start processing the provided file. Returns failure if the file could not be opened, success otherwise.
Definition at line 107 of file Lexer.cpp.
◆ resetPointer()
void mlir::pdll::Lexer::resetPointer |
( |
const char * |
newPointer | ) |
|
|
inline |
Change the position of the lexer cursor.
The next token we lex will start at the designated point in the input.
Definition at line 187 of file Lexer.h.
The documentation for this class was generated from the following files: