mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Namespaces | Macros | Enumerations | Functions
TokenType.hpp File Reference
#include <iostream>
#include <mutable/util/macro.hpp>
#include <mutable/tables/TokenType.tbl>
#include <mutable/tables/Keywords.tbl>
#include <mutable/tables/Operators.tbl>
Include dependency graph for TokenType.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  m
 

‍mutable namespace


 

Macros

#define M_TOKENTYPE(tok)   TK_##tok,
 
#define M_KEYWORD(tt, name)   case TK_ ## tt:
 
#define M_OPERATOR(tt)   case TK_ ## tt:
 
#define M_TOKENTYPE(tok)   case TK_ ## tok: return os << "TK_"#tok;
 
#define M_TOKENTYPE(tok)   case TK_ ## tok: return "TK_"#tok;
 

Enumerations

enum  m::TokenType { m::TokenType_MAX = TK_EOF }
 

Functions

char const * m::get_name (const TokenType tt)
 
M_LCOV_EXCL_START std::ostream & m::operator<< (std::ostream &os, const TokenType tt)
 
std::string m::to_string (const TokenType tt)
 

Macro Definition Documentation

◆ M_KEYWORD

#define M_KEYWORD (   tt,
  name 
)    case TK_ ## tt:

◆ M_OPERATOR

#define M_OPERATOR (   tt)    case TK_ ## tt:

◆ M_TOKENTYPE [1/3]

#define M_TOKENTYPE (   tok)    TK_##tok,

Definition at line 11 of file TokenType.hpp.

◆ M_TOKENTYPE [2/3]

#define M_TOKENTYPE (   tok)    case TK_ ## tok: return os << "TK_"#tok;

Definition at line 11 of file TokenType.hpp.

◆ M_TOKENTYPE [3/3]

#define M_TOKENTYPE (   tok)    case TK_ ## tok: return "TK_"#tok;

Definition at line 11 of file TokenType.hpp.