6#ifndef SRC_SYNTAX_ERROR_H_
7#define SRC_SYNTAX_ERROR_H_
25 std::string source_file,
28 const std::string& text,
29 const std::string& msg,
30 std::stack<std::string> include_chain,
31 std::shared_ptr<bpp::bpp_program> program,
32 bool is_warning =
false);
36std::string
utf8_substr(
const std::string& str,
int start,
int length);
std::string utf8_substr(const std::string &str, int start, int length)
Definition syntax_error.cpp:111
void print_syntax_error_or_warning(std::string source_file, int line, int column, const std::string &text, const std::string &msg, std::stack< std::string > include_chain, std::shared_ptr< bpp::bpp_program > program, bool is_warning=false)
Print a syntax error or warning message to stderr.
Definition syntax_error.cpp:19
std::string equal_width_padding(const std::string &str, char padding_char=' ')
Definition syntax_error.cpp:160
int utf8_length(const std::string &str)
Definition syntax_error.cpp:146