MySQL 8.0.32
Source Code Documentation
Parser Class Reference

Classes

class  TokenText
 

Public Member Functions

 Parser (SqlLexer::iterator first, SqlLexer::iterator last)
 
stdx::expected< std::variant< std::monostate, ShowWarningCount, ShowWarnings >, std::string > parse ()
 

Public Attributes

int read_lines
 
int current_line
 

Private Member Functions

stdx::expected< Limit, std::string > limit ()
 
stdx::expected< bool, std::string > warning_count_ident ()
 
TokenText ident ()
 
TokenText accept (int sym)
 
TokenText expect (int sym)
 
bool has_error () const
 

Static Private Member Functions

static uint64_t sv_to_num (std::string_view s)
 

Private Attributes

SqlLexer::iterator cur_
 
SqlLexer::iterator end_
 
std::string error_ {}
 

Constructor & Destructor Documentation

◆ Parser()

Parser::Parser ( SqlLexer::iterator  first,
SqlLexer::iterator  last 
)
inline

Member Function Documentation

◆ accept()

TokenText Parser::accept ( int  sym)
inlineprivate

◆ expect()

TokenText Parser::expect ( int  sym)
inlineprivate

◆ has_error()

bool Parser::has_error ( ) const
inlineprivate

◆ ident()

TokenText Parser::ident ( )
inlineprivate

◆ limit()

stdx::expected< Limit, std::string > Parser::limit ( )
inlineprivate

◆ parse()

stdx::expected< std::variant< std::monostate, ShowWarningCount, ShowWarnings >, std::string > Parser::parse ( )
inline

◆ sv_to_num()

static uint64_t Parser::sv_to_num ( std::string_view  s)
inlinestaticprivate

◆ warning_count_ident()

stdx::expected< bool, std::string > Parser::warning_count_ident ( )
inlineprivate

Member Data Documentation

◆ cur_

SqlLexer::iterator Parser::cur_
private

◆ current_line

int Parser::current_line

◆ end_

SqlLexer::iterator Parser::end_
private

◆ error_

std::string Parser::error_ {}
private

◆ read_lines

int Parser::read_lines

The documentation for this class was generated from the following files: