UnaryMinus

class UnaryMinus(val expression: Expression) : Expression

Represents the negation of a value.

This should be implemented as a multiplication by the constant -1.

Constructors

Link copied to clipboard
fun UnaryMinus(expression: Expression)

Properties

Link copied to clipboard
val expression: Expression

an expression evaluating to the value to be negated.