mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-03 17:39:02 +00:00
Also improved general ease of use with debugging use __debugbreak when an error is thrown. NOTE: Parser errors currently crash the program
25 lines
502 B
C++
25 lines
502 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& source, const std::string _file);
|
|
|
|
std::string lineContents;
|
|
std::string file;
|
|
|
|
std::streamsize col;
|
|
std::streamsize line;
|
|
|
|
char invalid;
|
|
};
|
|
}
|