jtr/Jtr.Parsing/Lexer.Token.cs
mdnapo 96c203f842
All checks were successful
Run the JSON parser tests / test (push) Has been skipped
Moved UI to separate project, added Dockerfile & renamed project
2024-10-19 12:04:40 +02:00

23 lines
596 B
C#

namespace Jtr.Parsing;
public abstract partial class Lexer<TToken> where TToken : Enum
{
public readonly struct Token : ISourceLocation
{
public string File { get; }
public TToken Type { get; }
public string Lexeme { get; }
public int Line { get; }
public int Column { get; }
public Token(string file, TToken type, string lexeme, int line, int column)
{
File = file;
Type = type;
Lexeme = lexeme;
Line = line;
Column = column;
}
}
}