FractionSyntax

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

Represents fraction with numerator and denominator.

Author

Iaroslav Postovalov

Constructors

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

Properties

Link copied to clipboard

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

The parent node of this syntax node.

Link copied to clipboard
open override val right: OperandSyntax

The denominator.