Bash++
Bash++ compiler internal documentation
|
#include <iostream>
#include <string>
#include <fstream>
#include <stack>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include "syntax_error.h"
#include "thirdparty/utf8/utf8.h"
Functions | |
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) |
Print a syntax error or warning message to stderr. | |
std::string | utf8_substr (const std::string &str, int start, int length) |
int | utf8_length (const std::string &str) |
std::string | equal_width_padding (const std::string &str, char padding_char) |
std::string equal_width_padding | ( | const std::string & | str, |
char | padding_char | ||
) |
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 | ||
) |
Print a syntax error or warning message to stderr.
Copyright (C) 2025 rail5 Bash++: Bash with classes
int utf8_length | ( | const std::string & | str | ) |
std::string utf8_substr | ( | const std::string & | str, |
int | start, | ||
int | length | ||
) |