Add equals operation to simpleexpressionvalue to check if an expression is the same as another one

This commit is contained in:
Jan
2021-12-27 14:15:44 +01:00
parent cc88fb0a5a
commit 245a2ed642
11 changed files with 73 additions and 0 deletions

View File

@ -29,6 +29,7 @@ public:
explicit SimpleExpressionValue(double doubleValue);
explicit SimpleExpressionValue(int intValue);
_NODISCARD bool Equals(const ISimpleExpression* other) const override;
_NODISCARD bool IsStatic() const override;
_NODISCARD SimpleExpressionValue Evaluate() const override;
_NODISCARD bool IsTruthy() const;