MLIR 22.0.0git
Lexer.cpp File Reference
#include "Lexer.h"
#include "Token.h"
#include "mlir/AsmParser/CodeComplete.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Location.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/SourceMgr.h"
#include <cassert>
#include <cctype>
#include "TokenKinds.def"

Go to the source code of this file.

Macros

#define TOK_KEYWORD(SPELLING)
#define TOK_MARKER(X)
#define TOK_IDENTIFIER(NAME)
#define TOK_LITERAL(NAME)
#define TOK_PUNCTUATION(NAME, SPELLING)

Functions

static bool isPunct (char c)

Macro Definition Documentation

◆ TOK_IDENTIFIER

#define TOK_IDENTIFIER ( NAME)

◆ TOK_KEYWORD

#define TOK_KEYWORD ( SPELLING)
Value:
.Case(#SPELLING, Token::kw_##SPELLING)

◆ TOK_LITERAL

#define TOK_LITERAL ( NAME)

◆ TOK_MARKER

#define TOK_MARKER ( X)

◆ TOK_PUNCTUATION

#define TOK_PUNCTUATION ( NAME,
SPELLING )

Function Documentation

◆ isPunct()

bool isPunct ( char c)
static

Definition at line 32 of file Lexer.cpp.