Work on evaluation
This commit is contained in:
@@ -20,7 +20,6 @@ enum class BoundExpressionKind{
|
||||
|
||||
Unary,
|
||||
Binary,
|
||||
Parenthesized,
|
||||
};
|
||||
|
||||
class BoundExpression{
|
||||
@@ -150,6 +149,18 @@ public:
|
||||
BoundExpressionKind GetKind() final{
|
||||
return BoundExpressionKind ::Binary;
|
||||
}
|
||||
|
||||
BoundExpression* GetLeft(){
|
||||
return _left;
|
||||
}
|
||||
|
||||
BoundExpression* GetRight(){
|
||||
return _right;
|
||||
}
|
||||
|
||||
BoundBinaryOperation GetOperation(){
|
||||
return _operation;
|
||||
}
|
||||
};
|
||||
|
||||
class BoundUnaryExpression : public BoundExpression {
|
||||
|
||||
Reference in New Issue
Block a user