Added the token class
This commit is contained in:
17
Lexer/inc/Lexer.h
Normal file
17
Lexer/inc/Lexer.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <Token.h>
|
||||
|
||||
namespace LXC::Lexer
|
||||
{
|
||||
struct LexerContext
|
||||
{
|
||||
// Trackers for the Lexer itself //
|
||||
std::string source;
|
||||
size_t index;
|
||||
|
||||
// Trackers for where the Lexer is within the user version of source //
|
||||
unsigned short column;
|
||||
unsigned short line;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user