Files
Evil_Calculator/Evil Calculator/Token.cs
2026-01-10 20:52:44 +01:00

26 lines
607 B
C#

namespace Lunar.Evil_Calculator
{
internal class Token
{
public enum TokenType { Operator, Operand };
public TokenType tokenType;
public string value = "";
public int? priority;
public Token() { }
public Token(TokenType tokenType, string value)
{
this.tokenType = tokenType;
this.value = value;
}
public Token(TokenType tokenType, string value, int priority)
{
this.tokenType = tokenType;
this.value = value;
this.priority = priority;
}
}
}