HUCTLp / com.github.sybila.huctl / Expression / Constant

Constant

data class Constant : Expression

A floating point constant. Scientific notation (2.3e10) is not supported.

Constructors

<init> Constant(value: Double)

A floating point constant. Scientific notation (2.3e10) is not supported.

Properties

value val value: Double

The value of the floating point constant.

Inherited Properties

node open val node: Expression

Expression is also the node in the tree, so node == this

Functions

toString fun toString(): String

Return string which uniquely represents this expression and can be parsed to create an equivalent object.