Package-level declarations

Types

Link copied to clipboard
data class Bool(val value: Boolean) : PrimitiveType

Expression to represent a boolean value.

Link copied to clipboard
data class Colour(val red: Expression, val green: Expression, val blue: Expression) : PrimitiveType

Expression to represent a colour with red, green, and blue values.

Link copied to clipboard
data class ConstantReference(val identifier: String) : Expression

Expression that references a constant through its string identifier.

Link copied to clipboard
data class Interval(val start: Expression, val end: Expression, val type: Interval.IntervalType) : PrimitiveType

Expression to represent the interval of integers from start to end.

Link copied to clipboard
data class Number(val value: Int) : PrimitiveType

Expression to represent an integer value.

Link copied to clipboard
data class Point(val x: Expression, val y: Expression) : PrimitiveType

Expression to represent a 2D point with coordinates x and y.

Link copied to clipboard

Interface representing "primitive" Expressions, i.e. Numbers, Bools, Colours, Points, and Intervals.

Link copied to clipboard
data class VariableReference(val identifier: String) : Expression

Expression that references a variable through its string identifier.