sinmai-mods/MoreChartFormats/Simai/LexicalAnalysis/Token.cs

24 lines
416 B
C#
Raw Normal View History

2024-05-27 05:59:40 +02:00
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;
}
}