|
|
@ -25,10 +25,22 @@ end |
|
|
|
class ClassGenerator |
|
|
|
YAML.mapping( |
|
|
|
name: String, |
|
|
|
bitfields: Array(BitfieldGenerator), |
|
|
|
attributes: Array(AttributeGenerator), |
|
|
|
repeats: Array(RepeatGenerator), |
|
|
|
attributeafters: Array(AttributeAfterGenerator) |
|
|
|
bitfields: { |
|
|
|
type: Array(BitfieldGenerator), |
|
|
|
nilable: true |
|
|
|
}, |
|
|
|
attributes: { |
|
|
|
type: Array(AttributeGenerator), |
|
|
|
nilable: true |
|
|
|
}, |
|
|
|
repeats: { |
|
|
|
type: Array(RepeatGenerator), |
|
|
|
nilable: true |
|
|
|
}, |
|
|
|
attributeafters: { |
|
|
|
type: Array(AttributeAfterGenerator), |
|
|
|
nilable: true |
|
|
|
} |
|
|
|
) |
|
|
|
|
|
|
|
def initialize(@name : String) |
|
|
|