xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
Token.h File Reference
#include <string>
#include <unordered_set>
Include dependency graph for Token.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Xale::Query::Token
 Token struct defined by type, value and pos. More...

Namespaces

namespace  Xale
namespace  Xale::Query

Macros

#define DECLARE_TOKENS(name, ...)

Enumerations

enum class  Xale::Query::TokenType {
  Xale::Query::DefinitionKeyword , Xale::Query::ManipulationKeyword , Xale::Query::QueryKeyword , Xale::Query::JoinKeyword ,
  Xale::Query::LogicalKeyword , Xale::Query::Operator , Xale::Query::Identifier , Xale::Query::StringLiteral ,
  Xale::Query::NumericLiteral , Xale::Query::EndOfInput , Xale::Query::Unknown
}
 Types of possible tokens. More...

Functions

 Xale::Query::DECLARE_TOKENS (sql_definition_kw, "CREATE", "ALTER", "DROP", "LIST")
 Xale::Query::DECLARE_TOKENS (sql_manipulation_kw, "SELECT", "INSERT", "UPDATE", "DELETE")
 Xale::Query::DECLARE_TOKENS (sql_query_kw, "FROM", "WHERE")
 Xale::Query::DECLARE_TOKENS (sql_join_kw, "JOIN", "LEFT", "RIGHT")
 Xale::Query::DECLARE_TOKENS (sql_logical_kw, "AND", "OR", "NOT")
 Xale::Query::DECLARE_TOKENS (sql_operators, "*", ",", "(", ")", "=", "!=", "<", ">", "<=", ">=")
 Xale::Query::DECLARE_TOKENS (sql_end_query, ";")
const std::string Xale::Query::to_string (TokenType type)
 Convert TokenType to string.

Macro Definition Documentation

◆ DECLARE_TOKENS

#define DECLARE_TOKENS ( name,
... )
Value:
const std::unordered_set<std::string> name({__VA_ARGS__})