Message about a specific location in the code.
Definition errors.hpp:38
size_t get_line() const
Definition errors.cpp:145
void add_context(const std::vector< std::pair< size_t, std::string > > &_context)
Definition errors.cpp:133
const SourceReference & get_source_ref() const
Definition errors.cpp:137
void print()
Definition errors.cpp:225
const std::string & get_message() const
Definition errors.cpp:141
An error reported during compilation.
Definition errors.hpp:90
void add_message(const SourceReference &_src_ref, std::string _errormsg)
Definition errors.cpp:83
size_t size() const
Definition errors.cpp:112
const ErrorMessage & get(size_t n) const
Definition errors.cpp:116
const std::vector< Gyoji::owned< ErrorMessage > > & get_messages() const
Definition errors.cpp:108
Container for errors reported.
Definition errors.hpp:145
void add_simple_error(const SourceReference &src_ref, std::string _error_title, std::string _error_message)
Definition errors.cpp:96
void add_error(Gyoji::owned< Error > error)
Definition errors.cpp:39
const Error & get(size_t n) const
Definition errors.cpp:61
References a location in the source-file.
Definition source-reference.hpp:30
Stream of tokens read by the parser to provide context for errors.
Definition token-stream.hpp:120
The context namespace deals with objects that should last the entire scope of compilation.
Definition gyoji-context.hpp:30