sinmai-mods/MoreChartFormats/Simai/LexicalAnalysis/Token.cs
2024-05-27 10:59:40 +07:00

24 lines
416 B
C#

using System;
namespace MoreChartFormats.Simai.LexicalAnalysis;
public readonly struct Token
{
public readonly TokenType type;
public readonly string lexeme;
public readonly int line;
public readonly int character;
public Token(TokenType type,
string lexeme,
int line,
int character)
{
this.type = type;
this.lexeme = lexeme;
this.line = line;
this.character = character;
}
}