Project Alice
Loading...
Searching...
No Matches
parser_state Struct Reference
Collaboration diagram for parser_state:

Public Member Functions

 parser_state (std::string_view const _file_name)
 
void report_any (std::string_view const severity, int code, location_info local_loc_info, std::string_view const fmt)
 
void report_error (int code, location_info local_loc_info, std::string_view const fmt)
 
size_t get_column (std::string_view const s, std::string_view::iterator const it)
 
bool is_ident (char c)
 
void tokenize_line (std::string_view const line)
 
void tokenize_file (std::stringstream &stream)
 
std::optional< tokenget_token (auto &it)
 
token get_specific_token (auto &it, bool &err_cond, token_type const &type)
 
void parse ()
 

Public Attributes

std::ctype< char > const * char_facet = nullptr
 
std::vector< tokentokens
 
location_info loc_info
 
std::vector< group_contentsgroups
 
int error_count = 0
 
int warning_count = 0
 
std::stringstream console_stream
 
std::string_view file_name
 

Detailed Description

Definition at line 84 of file parser_generator.cpp.

Constructor & Destructor Documentation

◆ parser_state()

parser_state::parser_state ( std::string_view const  _file_name)
inline

Definition at line 94 of file parser_generator.cpp.

Member Function Documentation

◆ get_column()

size_t parser_state::get_column ( std::string_view const  s,
std::string_view::iterator const  it 
)
inline

Definition at line 116 of file parser_generator.cpp.

Here is the caller graph for this function:

◆ get_specific_token()

token parser_state::get_specific_token ( auto &  it,
bool &  err_cond,
token_type const &  type 
)
inline

Definition at line 206 of file parser_generator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_token()

std::optional< token > parser_state::get_token ( auto &  it)
inline

Definition at line 202 of file parser_generator.cpp.

Here is the caller graph for this function:

◆ is_ident()

bool parser_state::is_ident ( char  c)
inline

Definition at line 120 of file parser_generator.cpp.

Here is the caller graph for this function:

◆ parse()

void parser_state::parse ( )
inline

Definition at line 223 of file parser_generator.cpp.

Here is the call graph for this function:

◆ report_any()

void parser_state::report_any ( std::string_view const  severity,
int  code,
location_info  local_loc_info,
std::string_view const  fmt 
)
inline

Definition at line 100 of file parser_generator.cpp.

Here is the caller graph for this function:

◆ report_error()

void parser_state::report_error ( int  code,
location_info  local_loc_info,
std::string_view const  fmt 
)
inline

Definition at line 111 of file parser_generator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tokenize_file()

void parser_state::tokenize_file ( std::stringstream &  stream)
inline

Definition at line 189 of file parser_generator.cpp.

Here is the call graph for this function:

◆ tokenize_line()

void parser_state::tokenize_line ( std::string_view const  line)
inline

Definition at line 124 of file parser_generator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ char_facet

std::ctype<char> const* parser_state::char_facet = nullptr

Definition at line 85 of file parser_generator.cpp.

◆ console_stream

std::stringstream parser_state::console_stream

Definition at line 91 of file parser_generator.cpp.

◆ error_count

int parser_state::error_count = 0

Definition at line 89 of file parser_generator.cpp.

◆ file_name

std::string_view parser_state::file_name

Definition at line 92 of file parser_generator.cpp.

◆ groups

std::vector<group_contents> parser_state::groups

Definition at line 88 of file parser_generator.cpp.

◆ loc_info

location_info parser_state::loc_info

Definition at line 87 of file parser_generator.cpp.

◆ tokens

std::vector<token> parser_state::tokens

Definition at line 86 of file parser_generator.cpp.

◆ warning_count

int parser_state::warning_count = 0

Definition at line 90 of file parser_generator.cpp.


The documentation for this struct was generated from the following file: