Retro68/Rez/Diagnostic.cc

18 lines
297 B
C++
Raw Normal View History

2014-10-30 01:56:49 +00:00
#include "Diagnostic.h"
Diagnostic::Diagnostic()
{
}
Diagnostic::Diagnostic(Severity sev, std::string msg, yy::location loc)
: severity(sev), message(msg), location(loc)
{
}
std::ostream &operator<<(std::ostream &out, const Diagnostic &d)
{
return out << d.location << ": " << d.message;
}