FractionSyntax

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

Represents fraction with numerator and denominator.

Author

Iaroslav Postovalov

Constructors

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

Properties

infix
Link copied to clipboard
common
var infix: Boolean
Whether infix (1 / 2) or normal (½) fraction should be made.
left
Link copied to clipboard
common
open override val left: OperandSyntax
The numerator.
operation
Link copied to clipboard
common
open override val operation: String
The operation token.
parent
Link copied to clipboard
common
var parent: MathSyntax? = null
The parent node of this syntax node.
right
Link copied to clipboard
common
open override val right: OperandSyntax
The denominator.

Sources

common source
Link copied to clipboard