83 std::string_view filename,
86 add(
ParseError(
true, std::string(msg), std::string(filename), line, col));
91 std::string_view filename,
94 add(
ParseError(
false, std::string(msg), std::string(filename), line, col));
99 add(
ParseError(
true, std::string(msg), std::string(filename), 0, 0));
std::string narrow(const std::wstring &str)
Cast a std::wstring into a std::string.
Size count() const
Returns the number of errors and warnings.
ParseError error(Idx i) const
Returns the i-th error.
void add(ParseError error)
Add an error object to the container.
void Error(const std::wstring &filename, Idx line, Idx col, const wchar_t *msg)
For adding errors.
void addError(std::string_view msg, std::string_view filename, Idx line, Idx col)
Adds an error.
Size error_count
Number of errors detected.
void Warning(const std::wstring &filename, Idx line, Idx col, const wchar_t *msg)
For adding warnings.
void Exception(const std::wstring &filename, const wchar_t *msg)
For adding exceptions.
void addException(std::string_view msg, std::string_view filename)
Add an exception.
void addWarning(std::string_view msg, std::string_view filename, Idx line, Idx col)
Adds a warning.
void syntheticResults(std::ostream &o) const
Print errors on output stream.
std::vector< ParseError > errors
The list of gum::ParseError contained in this gum::ErrorsContainer.
This class is used to represent parsing errors for the different parser implemented in aGrUM.
Errors container (at least) for parser.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities