Package ast. struct
Types
Link copied to clipboard
class Struct( val name: Identifier, val fields: Array<StructField>, val methods: Array<StructMethod>) : Statement
Content copied to clipboard
Represents a structure type.
Link copied to clipboard
class StructField( val name: Identifier, val type: Type, val default: Expression?)
Content copied to clipboard
Represents the definition of a field on a structure.
Link copied to clipboard
class StructInstance(val name: Identifier, val fields: Map<Identifier, Expression>) : Expression
Content copied to clipboard
Represents the instantiation of Struct.
Link copied to clipboard
class StructMethod( val name: Identifier, val parameters: Array<FunctionParameter>, val retType: Type, val body: Block)
Content copied to clipboard
Represents the definition of a method on a structure.