MultiplicationSyntax

data class MultiplicationSyntax(operation: String, left: OperandSyntax, right: OperandSyntax, times: Boolean) : BinarySyntax

Represents binary, infix multiplication in the form of coefficient (2 x) or with operator (x × 2).

Author

Iaroslav Postovalov

Constructors

Link copied to clipboard
fun MultiplicationSyntax(operation: String, left: OperandSyntax, right: OperandSyntax, times: Boolean)

Properties

Link copied to clipboard
open override val left: OperandSyntax

The multiplicand.

Link copied to clipboard
open override val operation: String

The operation token.

Link copied to clipboard
var parent: MathSyntax? = null

The parent node of this syntax node.

Link copied to clipboard
open override val right: OperandSyntax

The multiplier.

Link copied to clipboard
var times: Boolean

Whether the times (×) symbol should be used.

Sources

Link copied to clipboard