2019-11-14 23:44:18 +00:00
|
|
|
namespace Evolution.V1;
|
|
|
|
|
|
|
|
table TableA {
|
|
|
|
a:float;
|
|
|
|
b:int;
|
|
|
|
}
|
|
|
|
|
|
|
|
table TableB {
|
|
|
|
a:int;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Enum : byte {
|
|
|
|
King,
|
|
|
|
Queen
|
|
|
|
}
|
|
|
|
|
|
|
|
union Union {
|
|
|
|
TableA,
|
|
|
|
TableB
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Struct {
|
|
|
|
a:int;
|
|
|
|
b:double;
|
|
|
|
}
|
|
|
|
|
|
|
|
table Root {
|
|
|
|
a:int;
|
|
|
|
b:bool;
|
|
|
|
c:Union;
|
|
|
|
d:Enum;
|
|
|
|
e:TableA;
|
|
|
|
f:Struct;
|
|
|
|
g:[int];
|
|
|
|
h:[TableB];
|
|
|
|
i:int = 1234;
|
2020-06-16 06:18:12 +00:00
|
|
|
j:Union;
|
2019-11-14 23:44:18 +00:00
|
|
|
}
|
|
|
|
|
2020-06-16 06:18:12 +00:00
|
|
|
root_type Root;
|