#include "hecl/hecl.hpp" #include "hecl/Frontend.hpp" #include /* ANSI sequences */ #define RED "\x1b[1;31m" #define YELLOW "\x1b[1;33m" #define GREEN "\x1b[1;32m" #define MAGENTA "\x1b[1;35m" #define CYAN "\x1b[1;36m" #define BOLD "\x1b[1m" #define NORMAL "\x1b[0m" namespace hecl::Frontend { std::string Diagnostics::sourceDiagString(const SourceLocation& l, bool ansi) const { std::string::const_iterator it = m_source.begin(); for (int i=1 ; i