#include "Lexer.h"
#include "mlir/Tools/PDLL/AST/Diagnostic.h"
#include "mlir/Tools/PDLL/Parser/CodeComplete.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/SourceMgr.h"
usingnamespacemlir;
usingnamespacemlir::pdll;
std::string Token::getStringValue() const { … }
Lexer::Lexer(llvm::SourceMgr &mgr, ast::DiagnosticEngine &diagEngine,
CodeCompleteContext *codeCompleteContext)
: … { … }
Lexer::~Lexer() { … }
LogicalResult Lexer::pushInclude(StringRef filename, SMRange includeLoc) { … }
Token Lexer::emitError(SMRange loc, const Twine &msg) { … }
Token Lexer::emitErrorAndNote(SMRange loc, const Twine &msg, SMRange noteLoc,
const Twine ¬e) { … }
Token Lexer::emitError(const char *loc, const Twine &msg) { … }
int Lexer::getNextChar() { … }
Token Lexer::lexToken() { … }
void Lexer::lexComment() { … }
Token Lexer::lexDirective(const char *tokStart) { … }
Token Lexer::lexIdentifier(const char *tokStart) { … }
Token Lexer::lexNumber(const char *tokStart) { … }
Token Lexer::lexString(const char *tokStart, bool isStringBlock) { … }