Message about a specific location in the code.
Definition errors.hpp:24
size_t get_line() const
Definition errors.cpp:131
void add_context(const std::vector< std::pair< size_t, std::string > > &_context)
Definition errors.cpp:119
const SourceReference & get_source_ref() const
Definition errors.cpp:123
void print()
Definition errors.cpp:211
const std::string & get_message() const
Definition errors.cpp:127
An error reported during compilation.
Definition errors.hpp:76
void add_message(const SourceReference &_src_ref, std::string _errormsg)
Definition errors.cpp:69
const ErrorMessage & get(size_t n) const
Definition errors.cpp:102
const std::vector< Gyoji::owned< ErrorMessage > > & get_messages() const
Definition errors.cpp:94
Container for errors reported.
Definition errors.hpp:131
void add_simple_error(const SourceReference &src_ref, std::string _error_title, std::string _error_message)
Definition errors.cpp:82
void add_error(Gyoji::owned< Error > error)
Definition errors.cpp:25
const Error & get(size_t n) const
Definition errors.cpp:47
References a location in the source-file.
Definition source-reference.hpp:16
Stream of tokens read by the parser to provide context for errors.
Definition token-stream.hpp:106
The context namespace deals with objects that should last the entire scope of compilation.
Definition gyoji-context.hpp:16