FractionSyntax

data class FractionSyntax(operation: String, left: OperandSyntax, right: OperandSyntax, infix: Boolean) : BinarySyntax

Represents fraction with numerator and denominator.

Author

Iaroslav Postovalov

Constructors

Link copied to clipboard
fun FractionSyntax(operation: String, left: OperandSyntax, right: OperandSyntax, infix: Boolean)

Properties

Link copied to clipboard
var infix: Boolean

Whether infix (1 / 2) or normal (½) fraction should be made.

Link copied to clipboard
open override val left: OperandSyntax

The numerator.

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 denominator.

Sources

Link copied to clipboard