mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-04 18:09:03 +00:00
25 lines
475 B
C++
25 lines
475 B
C++
#pragma once
|
|
|
|
#include <LX-Common.h>
|
|
|
|
#include <LexerInfo.h>
|
|
|
|
namespace LX
|
|
{
|
|
// Error type with index and character to alert the user that LX does not understand that symbol //
|
|
struct InvalidCharInSource : public RuntimeError
|
|
{
|
|
GENERATE_LX_ERROR_REQUIRED_FUNCTION_DECLARATIONS;
|
|
|
|
InvalidCharInSource(const LexerInfo& info, const std::string _file);
|
|
|
|
std::string lineContents;
|
|
std::string file;
|
|
|
|
std::streamsize col;
|
|
std::streamsize line;
|
|
|
|
char invalid;
|
|
};
|
|
}
|