Union Vector

This commit is contained in:
Bei Li
2017-01-24 11:52:36 -08:00
parent bbef92c17d
commit 68bbe983e9
12 changed files with 567 additions and 121 deletions

View File

@@ -0,0 +1,24 @@
table MuLan {
sword_attack_damage: int;
}
table Rapunzel {
hair_length: int;
}
table Belle {
books_read: int;
}
union Character {
MuLan,
Rapunzel,
Belle,
}
table Movie {
characters: [Character];
}
root_type Movie;
file_identifier "MOVI";