単項演算子を実�
This commit is contained in:
@@ -12,6 +12,7 @@ enum NodeType
|
||||
Variable,
|
||||
CallFunction,
|
||||
VoidExpression,
|
||||
UnaryOperator,
|
||||
|
||||
Statements,
|
||||
FunctionBody,
|
||||
@@ -64,6 +65,17 @@ class BinaryOperator : Expression
|
||||
this.item2 = i2;
|
||||
}
|
||||
}
|
||||
class UnaryOperator : Expression
|
||||
{
|
||||
TokenType operator;
|
||||
Expression item;
|
||||
this(TokenType o, Expression i)
|
||||
{
|
||||
this.type = NodeType.UnaryOperator;
|
||||
this.operator = o;
|
||||
this.item = i;
|
||||
}
|
||||
}
|
||||
class Variable : Expression
|
||||
{
|
||||
wstring name;
|
||||
|
||||
Reference in New Issue
Block a user