Column-oriented GPU-accelerated Database Management System
CoGaDB
|
#include <sql_driver.hpp>
Classes | |
class | ParseError |
Public Member Functions | |
Driver () | |
~Driver () | |
ParseTree::SequencePtr | parse (std::istream &is) |
ParseTree::SequencePtr | parse (const std::string &src) |
Public Attributes | |
std::istream * | istream |
Private Member Functions | |
void | init_scan () |
void | set_input (std::istream &is) |
void | set_input (const std::string &src) |
void | destroy_scan () |
void | error (const std::string &m) |
void | unsupported (void) |
Private Attributes | |
Scanner::buffer | buffer |
Scanner::type | scanner |
Parser | parser |
ParseTree::SequencePtr | result |
Friends | |
class | Parser |
Parser::token_type | Scanner::lex (Parser::semantic_type *, Scanner::type) |
References init_scan(), parser, and CoGaDB::SQL::Parser::set_debug_level().
void CoGaDB::SQL::Driver::destroy_scan | ( | ) | [private] |
References cogadb_sql_scanner__delete_buffer(), and cogadb_sql_scanner_lex_destroy().
Referenced by ~Driver().
void CoGaDB::SQL::Driver::error | ( | const std::string & | m | ) | [private] |
References cogadb_sql_scanner_get_lineno().
Referenced by CoGaDB::SQL::Parser::error(), and unsupported().
void CoGaDB::SQL::Driver::init_scan | ( | ) | [private] |
References cogadb_sql_scanner_lex_init_extra().
Referenced by Driver().
ParseTree::SequencePtr CoGaDB::SQL::Driver::parse | ( | std::istream & | is | ) |
References CoGaDB::SQL::Parser::parse(), parser, result, and set_input().
Referenced by CoGaDB::SQL::commandlineExec(), and main().
ParseTree::SequencePtr CoGaDB::SQL::Driver::parse | ( | const std::string & | src | ) |
References CoGaDB::SQL::Parser::parse(), parser, result, and set_input().
void CoGaDB::SQL::Driver::set_input | ( | std::istream & | is | ) | [private] |
References cogadb_sql_scanner__create_buffer(), cogadb_sql_scanner__delete_buffer(), cogadb_sql_scanner__switch_to_buffer(), and YY_BUF_SIZE.
Referenced by parse().
void CoGaDB::SQL::Driver::set_input | ( | const std::string & | src | ) | [private] |
References cogadb_sql_scanner__delete_buffer(), and cogadb_sql_scanner__scan_string().
void CoGaDB::SQL::Driver::unsupported | ( | void | ) | [inline, private] |
References error().
Referenced by CoGaDB::SQL::Parser::parse().
friend class Parser [friend] |
Parser::token_type Scanner::lex | ( | Parser::semantic_type * | , |
Scanner::type | |||
) | [friend] |
Scanner::buffer CoGaDB::SQL::Driver::buffer [private] |
std::istream* CoGaDB::SQL::Driver::istream |
Parser CoGaDB::SQL::Driver::parser [private] |
Referenced by parse(), and CoGaDB::SQL::Parser::parse().
Scanner::type CoGaDB::SQL::Driver::scanner [private] |