parseMember, adapt for bitfields & multidimensional arrays

This commit is contained in:
Robin Voetter
2020-06-10 18:11:53 +02:00
parent b295649176
commit f425995473
3 changed files with 119 additions and 21 deletions

View File

@@ -39,7 +39,13 @@ pub const TypeInfo = union(enum) {
};
pub const Container = struct {
fields: []Declaration,
pub const Field = struct {
name: []const u8,
field_type: TypeInfo,
bits: ?usize,
};
fields: []Field,
is_union: bool,
};