mimium-org / mimium

mimium (MInimal Musical medIUM) a programming language as an infrastructure for sound and music.
https://mimium.org
Mozilla Public License 2.0
273 stars 9 forks source link

Struct Type & Type Alias Implementation #56

Closed tomoyanonymous closed 3 years ago

tomoyanonymous commented 3 years ago

implement struct type(record type) and type alias. Example is in test_typealias.mmm in test/mmm.

type stereo = (float,float)

type composite = {signal:stereo , id:float}
fn test2(){
    ogya = composite{(100,200), 100}
    ho,fu = ogya.signal
    he = ogya.id
    println(ho)
    println(fu)
    println(he)
}
test2()