Yes
This commit is contained in:
25
Evil Calculator/Token.cs
Normal file
25
Evil Calculator/Token.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user