MLIR  20.0.0git
Macros
Token.cpp File Reference
#include "Token.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/ErrorHandling.h"
#include <cassert>
#include <cstdint>
#include <optional>
#include <string>
#include "TokenKinds.def"

Go to the source code of this file.

Macros

#define TOK_PUNCTUATION(NAME, SPELLING)
 
#define TOK_KEYWORD(SPELLING)
 
#define TOK_KEYWORD(SPELLING)
 

Macro Definition Documentation

◆ TOK_KEYWORD [1/2]

#define TOK_KEYWORD (   SPELLING)
Value:
case kw_##SPELLING: \
return #SPELLING;

◆ TOK_KEYWORD [2/2]

#define TOK_KEYWORD (   SPELLING)
Value:
case kw_##SPELLING: \
return true;

◆ TOK_PUNCTUATION

#define TOK_PUNCTUATION (   NAME,
  SPELLING 
)
Value:
case NAME: \
return SPELLING;