Bash++
Bash++ compiler internal documentation
Functions
syntax_error.h File Reference
#include <string>
#include <stack>
Include dependency graph for syntax_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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, bool is_warning=false)
 Print a syntax error or warning message to stderr. More...
 

Function Documentation

◆ print_syntax_error_or_warning()

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,
bool  is_warning 
)

Print a syntax error or warning message to stderr.

Copyright (C) 2025 rail5 Bash++: Bash with classes

Parameters
source_fileThe source file which contains the error
lineThe line number where the error occurred
columnThe column number where the error occurred
textThe text of the token which caused the error
msgThe error message to display
include_chainA stack of include files which led to the error
is_warningWhether the message is a warning or an error

Copyright (C) 2025 rail5 Bash++: Bash with classes