llvm/mlir/lib/Tools/PDLL/Parser/Lexer.cpp

//===- Lexer.cpp ----------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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;

//===----------------------------------------------------------------------===//
// Token
//===----------------------------------------------------------------------===//

std::string Token::getStringValue() const {}

//===----------------------------------------------------------------------===//
// Lexer
//===----------------------------------------------------------------------===//

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 &note) {}
Token Lexer::emitError(const char *loc, const Twine &msg) {}

int Lexer::getNextChar() {}

Token Lexer::lexToken() {}

/// Skip a comment line, starting with a '//'.
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) {}