|
@@ -6,6 +6,12 @@
|
|
|
|
|
|
namespace qlow
|
|
namespace qlow
|
|
{
|
|
{
|
|
|
|
+ enum class ErrorCode
|
|
|
|
+ {
|
|
|
|
+ /// no files were given to process
|
|
|
|
+ NO_INFILES,
|
|
|
|
+ };
|
|
|
|
+
|
|
struct CodePosition;
|
|
struct CodePosition;
|
|
|
|
|
|
class InternalError;
|
|
class InternalError;
|
|
@@ -20,9 +26,12 @@ namespace qlow
|
|
void reportError(const std::string& message) noexcept;
|
|
void reportError(const std::string& message) noexcept;
|
|
void printError(Printer& printer, const std::string& message) noexcept;
|
|
void printError(Printer& printer, const std::string& message) noexcept;
|
|
void printError(Printer& printer, const std::string& message, const CodePosition& where) noexcept;
|
|
void printError(Printer& printer, const std::string& message, const CodePosition& where) noexcept;
|
|
|
|
+
|
|
|
|
+ void printError(ErrorCode ec, Printer& printer) noexcept;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
/*!
|
|
/*!
|
|
* \brief bison-compatible location struct
|
|
* \brief bison-compatible location struct
|
|
*/
|
|
*/
|