ableos_userland/programs/aidl/assets/why.idl

29 lines
428 B
Plaintext
Raw Normal View History

2023-05-04 08:47:05 -05:00
Use core.Byte;
Use core.Int;
2023-05-04 07:44:49 -05:00
2023-05-04 11:50:17 -05:00
Constant Hi = "WHY???/\n";
Alias Yo = Byte;
2023-05-04 12:31:20 -05:00
2023-05-05 04:15:01 -05:00
Constant Version = Make Version {
2023-05-06 10:57:45 -05:00
major: 1, minor: 0, patch: 0
2023-05-04 12:31:20 -05:00
};
2023-05-05 06:21:24 -05:00
Interface Iface {
2023-05-06 10:57:45 -05:00
Function hello Takes(Int, Boolean,) Returns(Int);
2023-05-05 06:21:24 -05:00
}
Function a_free_function Returns(Boolean);
Structure Hello {
2023-05-06 10:57:45 -05:00
world: Boolean,
prompt: Option<String>,
2023-05-05 06:21:24 -05:00
}
Enumeration Reality {
2023-05-06 10:57:45 -05:00
Dead(Boolean, Boolean),
2023-05-05 06:21:24 -05:00
Alive {
2023-05-06 10:57:45 -05:00
health: Int,
dying: Boolean,
},
2023-05-05 06:21:24 -05:00
}