Column-oriented GPU-accelerated Database Management System
CoGaDB
|
#include <Parserbase.h>
Public Types | |
enum | Tokens__ { NUM = 257, NEG } |
typedef double | STYPE__ |
Public Member Functions | |
void | setDebug (bool mode) |
Protected Types | |
enum | Return__ { PARSE_ACCEPT__ = 0, PARSE_ABORT__ = 1 } |
enum | ErrorRecovery__ { DEFAULT_RECOVERY_MODE__, UNEXPECTED_TOKEN__ } |
Protected Member Functions | |
ParserBase () | |
void | ABORT () const |
void | ACCEPT () const |
void | ERROR () const |
void | clearin () |
bool | debug () const |
void | pop__ (size_t count=1) |
void | push__ (size_t nextState) |
void | popToken__ () |
void | pushToken__ (int token) |
void | reduce__ (PI__ const &productionInfo) |
void | errorVerbose__ () |
size_t | top__ () const |
Protected Attributes | |
bool | d_debug__ |
size_t | d_nErrors__ |
size_t | d_requiredTokens__ |
size_t | d_acceptedTokens__ |
int | d_token__ |
int | d_nextToken__ |
size_t | d_state__ |
STYPE__ * | d_vsp__ |
STYPE__ | d_val__ |
STYPE__ | d_nextVal__ |
Private Attributes | |
int | d_stackIdx__ |
std::vector< size_t > | d_stateStack__ |
std::vector< STYPE__ > | d_valueStack__ |
typedef double ParserBase::STYPE__ |
enum ParserBase::ErrorRecovery__ [protected] |
enum ParserBase::Return__ [protected] |
enum ParserBase::Tokens__ |
ParserBase::ParserBase | ( | ) | [protected] |
void ParserBase::ABORT | ( | ) | const [inline, protected] |
References PARSE_ABORT__.
Referenced by Parser::errorRecovery(), and pop__().
void ParserBase::ACCEPT | ( | ) | const [inline, protected] |
References PARSE_ACCEPT__.
Referenced by Parser::parse().
void ParserBase::clearin | ( | ) | [protected] |
References d_nextToken__, and d_token__.
Referenced by Parser::parse().
bool ParserBase::debug | ( | ) | const [inline, protected] |
References d_debug__.
void ParserBase::ERROR | ( | ) | const [inline, protected] |
References UNEXPECTED_TOKEN__.
void ParserBase::errorVerbose__ | ( | ) | [protected] |
void ParserBase::pop__ | ( | size_t | count = 1 | ) | [protected] |
References ABORT(), d_stackIdx__, d_state__, d_stateStack__, d_valueStack__, and d_vsp__.
Referenced by Parser::errorRecovery(), and reduce__().
void ParserBase::popToken__ | ( | ) | [protected] |
References d_nextToken__, d_nextVal__, d_token__, and d_val__.
Referenced by Parser::errorRecovery(), Parser::nextToken(), and Parser::parse().
void ParserBase::push__ | ( | size_t | nextState | ) | [protected] |
References d_stackIdx__, d_state__, d_stateStack__, d_val__, d_valueStack__, and d_vsp__.
Referenced by Parser::errorRecovery(), and Parser::parse().
void ParserBase::pushToken__ | ( | int | token | ) | [protected] |
References d_nextToken__, d_nextVal__, d_token__, and d_val__.
Referenced by Parser::errorRecovery(), and Parser::executeAction().
void ParserBase::reduce__ | ( | PI__ const & | productionInfo | ) | [inline, protected] |
References d_token__, and pop__().
Referenced by Parser::errorRecovery(), and Parser::parse().
void ParserBase::setDebug | ( | bool | mode | ) | [inline] |
References d_debug__.
size_t ParserBase::top__ | ( | ) | const [inline, protected] |
References d_stackIdx__, and d_stateStack__.
Referenced by Parser::errorRecovery().
size_t ParserBase::d_acceptedTokens__ [protected] |
Referenced by Parser::errorRecovery(), and Parser::nextToken().
bool ParserBase::d_debug__ [protected] |
Referenced by debug(), and setDebug().
size_t ParserBase::d_nErrors__ [protected] |
Referenced by Parser::errorRecovery().
int ParserBase::d_nextToken__ [protected] |
Referenced by clearin(), Parser::nextToken(), popToken__(), and pushToken__().
STYPE__ ParserBase::d_nextVal__ [protected] |
Referenced by popToken__(), and pushToken__().
size_t ParserBase::d_requiredTokens__ [protected] |
Referenced by Parser::errorRecovery().
int ParserBase::d_stackIdx__ [private] |
size_t ParserBase::d_state__ [protected] |
Referenced by Parser::errorRecovery(), Parser::lookup(), Parser::parse(), pop__(), and push__().
std::vector<size_t> ParserBase::d_stateStack__ [private] |
int ParserBase::d_token__ [protected] |
Referenced by clearin(), Parser::errorRecovery(), Parser::executeAction(), Parser::lookup(), Parser::nextToken(), popToken__(), pushToken__(), and reduce__().
STYPE__ ParserBase::d_val__ [protected] |
Referenced by Parser::executeAction(), Parser::lex(), popToken__(), push__(), and pushToken__().
std::vector<STYPE__> ParserBase::d_valueStack__ [private] |
STYPE__* ParserBase::d_vsp__ [protected] |
Referenced by Parser::executeAction(), pop__(), and push__().