Column-oriented GPU-accelerated Database Management System
CoGaDB
ParserBase Class Reference

#include <Parserbase.h>

Inheritance diagram for ParserBase:
Collaboration diagram for ParserBase:

List of all members.

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__

Member Typedef Documentation

typedef double ParserBase::STYPE__

Member Enumeration Documentation

enum ParserBase::ErrorRecovery__ [protected]
Enumerator:
DEFAULT_RECOVERY_MODE__ 
UNEXPECTED_TOKEN__ 
enum ParserBase::Return__ [protected]
Enumerator:
PARSE_ACCEPT__ 
PARSE_ABORT__ 
Enumerator:
NUM 
NEG 

Constructor & Destructor Documentation

ParserBase::ParserBase ( ) [protected]

Member Function Documentation

void ParserBase::ABORT ( ) const [inline, protected]

References PARSE_ABORT__.

Referenced by Parser::errorRecovery(), and pop__().

Here is the caller graph for this function:

void ParserBase::ACCEPT ( ) const [inline, protected]

References PARSE_ACCEPT__.

Referenced by Parser::parse().

Here is the caller graph for this function:

void ParserBase::clearin ( ) [protected]

References d_nextToken__, and d_token__.

Referenced by Parser::parse().

Here is the caller graph for this function:

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__().

Here is the call graph for this function:

Here is the caller graph for this function:

void ParserBase::popToken__ ( ) [protected]

References d_nextToken__, d_nextVal__, d_token__, and d_val__.

Referenced by Parser::errorRecovery(), Parser::nextToken(), and Parser::parse().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void ParserBase::pushToken__ ( int  token) [protected]

References d_nextToken__, d_nextVal__, d_token__, and d_val__.

Referenced by Parser::errorRecovery(), and Parser::executeAction().

Here is the caller graph for this function:

void ParserBase::reduce__ ( PI__ const &  productionInfo) [inline, protected]

References d_token__, and pop__().

Referenced by Parser::errorRecovery(), and Parser::parse().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

bool ParserBase::d_debug__ [protected]

Referenced by debug(), and setDebug().

size_t ParserBase::d_nErrors__ [protected]

Referenced by Parser::errorRecovery().

Referenced by popToken__(), and pushToken__().

size_t ParserBase::d_requiredTokens__ [protected]

Referenced by Parser::errorRecovery().

int ParserBase::d_stackIdx__ [private]

Referenced by pop__(), push__(), and top__().

std::vector<size_t> ParserBase::d_stateStack__ [private]

Referenced by pop__(), push__(), and top__().

std::vector<STYPE__> ParserBase::d_valueStack__ [private]

Referenced by pop__(), and push__().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines