|
@ -25,10 +25,22 @@ end |
|
|
class ClassGenerator |
|
|
class ClassGenerator |
|
|
YAML.mapping( |
|
|
YAML.mapping( |
|
|
name: String, |
|
|
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) |
|
|
def initialize(@name : String) |
|
|