BinaryExpression

data class BinaryExpression(val type: AstTypes = AstTypes.BINARY_OPERATOR, val value: Operation) : AstMember(source)

Binary Expression type of the kind AstMember

This member of the AST tree stores an Operation

Since

Version 1.0

See also

Constructors

Link copied to clipboard
constructor(type: AstTypes = AstTypes.BINARY_OPERATOR, value: Operation)

Properties

Link copied to clipboard
open override val type: AstTypes

: by default is AstTypes.BINARY_OPERATOR

Link copied to clipboard
open override val value: Operation

: the ComplexNumber that it stores

Functions

Link copied to clipboard
operator fun component1(): AstTypes
Link copied to clipboard
operator fun component2(): Operation
Link copied to clipboard
fun copy(type: AstTypes = AstTypes.BINARY_OPERATOR, value: Operation): BinaryExpression
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String