sqlparser/sqlparser.cpp
// Return the last fetched token skipping push backed token if it exists
Return the last fetched token skipping push backed token if it exists
Return the last fetched token skipping push backed token if it exists
Token* SqlParser::GetLastToken()
{
	Token *token = NULL; 
	if(_push_back_token != NULL)
		token = _push_back_token->prev;
	else
		token = _tokens.GetLastNoCurrent();
	while(token && (token->IsBlank() == true || token->type == TOKEN_COMMENT))
		token = token->prev;
	return token;
}
Token * SqlParser :: GetLastToken ( ) { Token * token = NULL ; if ( _push_back_token != NULL ) token = _push_back_token -> prev ; else token = _tokens . GetLastNoCurrent ( ) ; while ( token && ( token -> IsBlank ( ) == true || token -> type == TOKEN_COMMENT ) ) token = token -> prev ; return token ; }
Return the last fetched token skipping push backed token if it exists
Return the last fetched token skipping push backed token if it exists
// Return previous non-blank, non-comment token