![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <Token.hpp>
Public Member Functions | |
Token (Position pos, ThreadSafePooledString text, TokenType type) | |
operator bool () const | |
operator TokenType () const | |
void | dump (std::ostream &out) const |
void | dump () const |
Static Public Member Functions | |
static Token | CreateArtificial (TokenType type=TK_EOF) |
Data Fields | |
Position | pos |
ThreadSafePooledOptionalString | text |
declared as optional for dummy tokens | |
TokenType | type |
Private Member Functions | |
Token (TokenType type) | |
Friends | |
M_LCOV_EXCL_START friend std::string | to_string (const Token &tok) |
std::ostream & | operator<< (std::ostream &os, const Token &tok) |
|
inlineexplicitprivate |
|
inlineexplicit |
Definition at line 29 of file Token.hpp.
References type.
Referenced by m::ast::Sema::create_designator(), m::wasm::SortMergeJoin< SortLeft, SortRight, Predicated, CmpPredicated >::execute(), m::Optimizer::optimize_plan(), m::ast::Parser::parse_CreateIndexStmt(), m::ast::Parser::parse_data_type(), m::ast::Parser::parse_FromClause(), m::ast::Parser::parse_GroupByClause(), m::ast::Parser::parse_LimitClause(), and m::ast::Parser::parse_SelectClause().
M_LCOV_EXCL_START void Token::dump | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
Position m::ast::Token::pos |
Definition at line 15 of file Token.hpp.
Referenced by m::ast::Sema::create_designator(), m::execute_instruction(), m::ast::Parser::parse_data_type(), and m::ast::Parser::parse_LimitClause().
ThreadSafePooledOptionalString m::ast::Token::text |
declared as optional for dummy tokens
Definition at line 16 of file Token.hpp.
Referenced by m::ast::Parser::expect_integer(), m::ast::Designator::get_table_name(), m::ast::Designator::has_table_name(), m::ast::Designator::hash(), m::ast::Constant::hash(), m::Interpreter::M_OPERATOR_LIST(), m::wasm::ExprCompiler::operator()(), m::ast::Designator::operator==(), m::ast::Constant::operator==(), m::ast::UnaryExpr::operator==(), m::ast::BinaryExpr::operator==(), m::ast::Parser::parse_CreateIndexStmt(), m::ast::Parser::parse_data_type(), m::ast::Parser::parse_Expr(), m::ast::Parser::parse_ImportStmt(), m::ast::Parser::parse_Instruction(), m::ast::Parser::parse_LimitClause(), and m::ast::Parser::parse_Stmt().
TokenType m::ast::Token::type |
Definition at line 17 of file Token.hpp.
Referenced by CreateArtificial(), m::Interpreter::M_OPERATOR_LIST(), operator bool(), operator TokenType(), m::wasm::ExprCompiler::operator()(), m::ast::Parser::parse_data_type(), and m::ast::Parser::parse_LimitClause().