target.mty (287B)
1 struct Person :: 2 int age 3 float height 4 str name 5 fx to_string() :: print("{name} is {age} years old and {height}cm tall.") end 6 fx add() float :: return .height + .age end 7 end 8 9 pub struct Persona :: Person p end 10 11 enum Color :: 12 RED 13 GREEN 14 BLUE 15 end 16 17 fx main() :: 18 print("hello") 19 end 20