cadenza / cadenza.semantics / Type

Type

abstract class Type

Types

Arr

data class Arr : Type

Bool

object Bool : Type

IO

data class IO : Type

Nat

object Nat : Type

Obj

object Obj : Type

UnitTy

object UnitTy : Type

Constructors

<init>

Type(rep: FrameSlotKind)

Properties

arity

open val arity: Int

rep

val rep: FrameSlotKind

Functions

match

fun match(expected: Type): Unit

validate

abstract fun validate(t: Any?): Unit

Companion Object Properties

Action

val Action: IO

Extension Functions

after

fun Type.after(n: Int): Type