Implements unary operation evaluation

This commit is contained in:
2019-05-25 14:59:12 +02:00
parent 9131fbfee7
commit b536187593
7 changed files with 82 additions and 2 deletions

View File

@@ -180,6 +180,14 @@ public:
BoundExpressionKind GetKind() final{
return BoundExpressionKind ::Unary;
}
BoundExpression* GetOperand(){
return _operand;
}
BoundUnaryOperation GetOperation(){
return _operation;
}
};

View File

@@ -15,7 +15,6 @@ enum class BoundBinaryOperation{
};
enum class BoundUnaryOperation{
Identity,
Negation,
LogicalNegation,
};