mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-03 17:39:02 +00:00
Improved lexer debugging
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
namespace LX
|
||||
{
|
||||
// Passes the constructor args to the values //
|
||||
Token::Token(const TokenType _type, std::string _contents)
|
||||
: type(_type), contents(_contents)
|
||||
Token::Token(const TokenType _type, std::string _contents, std::streamsize _line, std::streamsize _index, std::streamsize _length)
|
||||
: type(_type), contents(_contents), line(_line), index(_index), length(_length)
|
||||
{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user