This commit is contained in:
2026-01-10 20:52:44 +01:00
parent 1f6e9ce376
commit 4a418ddf75
10 changed files with 849 additions and 1 deletions

25
Evil Calculator/Token.cs Normal file
View File

@@ -0,0 +1,25 @@
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;
}
}
}