exprtk::parser_error Namespace Reference

Classes

struct  type
 

Enumerations

enum  error_mode {
  e_unknown = 0 , e_syntax = 1 , e_token = 2 , e_numeric = 4 ,
  e_symtab = 5 , e_lexer = 6 , e_helper = 7 , e_parser = 8
}
 

Functions

type make_error (const error_mode mode, const std::string &diagnostic="", const std::string &src_location="")
 
type make_error (const error_mode mode, const lexer::token &tk, const std::string &diagnostic="", const std::string &src_location="")
 
std::string to_str (error_mode mode)
 
bool update_error (type &error, const std::string &expression)
 
void dump_error (const type &error)
 

Enumeration Type Documentation

◆ error_mode

Enumerator
e_unknown 
e_syntax 
e_token 
e_numeric 
e_symtab 
e_lexer 
e_helper 
e_parser 

Function Documentation

◆ dump_error()

void exprtk::parser_error::dump_error ( const type error)
inline

References to_str().

◆ make_error() [1/2]

type exprtk::parser_error::make_error ( const error_mode  mode,
const lexer::token tk,
const std::string diagnostic = "",
const std::string src_location = "" 
)
inline

◆ make_error() [2/2]

type exprtk::parser_error::make_error ( const error_mode  mode,
const std::string diagnostic = "",
const std::string src_location = "" 
)
inline

◆ to_str()

std::string exprtk::parser_error::to_str ( error_mode  mode)
inline

◆ update_error()

bool exprtk::parser_error::update_error ( type error,
const std::string expression 
)
inline