KthConstant

Constant token to be included in a KthModule or KthContext and used in an expression.

A constant simply gets replaced by its value during the evaluation of an expression.

Constants can be built using the helper functions createConstant and asConstant.

Properties

Link copied to clipboard
abstract val key: String

The key of the token. Used to parse the token in an expression.

Link copied to clipboard
abstract val value: Number

The value of the constant.