mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-03 17:39:02 +00:00
- Moved some classes from Lexer.h to seperate (non-Global files) - Deleted dllmain as it wasn't used for the most part
26 lines
562 B
C++
26 lines
562 B
C++
#pragma once
|
|
|
|
#include <LX-Common.h>
|
|
|
|
#include <Lexer.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(std::streamsize _col, std::streamsize _line, std::streamsize _index, char _invalid);
|
|
|
|
static std::string* s_Source;
|
|
static std::filesystem::path* s_SourceFile;
|
|
|
|
std::streamsize col;
|
|
std::streamsize line;
|
|
std::streamsize index;
|
|
|
|
char invalid;
|
|
};
|
|
}
|