Merge pull request 'type-section' (#4) from type-section into main
Reviewed-on: #4
This commit is contained in:
commit
018499310c
@ -21,6 +21,14 @@ func (parser *ParsingOperation) parseBody () (err error) {
|
|||||||
parser.tree.dataSections[section.name] = section
|
parser.tree.dataSections[section.name] = section
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
case "type":
|
case "type":
|
||||||
|
var section *TypeSection
|
||||||
|
section, err = parser.parseTypeSection()
|
||||||
|
if parser.tree.typeSections == nil {
|
||||||
|
parser.tree.typeSections =
|
||||||
|
make(map[string] *TypeSection)
|
||||||
|
}
|
||||||
|
parser.tree.typeSections[section.root.name] = section
|
||||||
|
if err != nil { return }
|
||||||
case "face":
|
case "face":
|
||||||
case "enum":
|
case "enum":
|
||||||
case "func":
|
case "func":
|
||||||
|
|||||||
@ -94,9 +94,6 @@ func (parser *ParsingOperation) parseObjectInitializationValues () (
|
|||||||
initializationValues ObjectInitializationValues,
|
initializationValues ObjectInitializationValues,
|
||||||
err error,
|
err error,
|
||||||
) {
|
) {
|
||||||
println("BEGIN")
|
|
||||||
defer println("END")
|
|
||||||
|
|
||||||
initializationValues.attributes = make(map[string] Argument)
|
initializationValues.attributes = make(map[string] Argument)
|
||||||
|
|
||||||
baseIndent := 0
|
baseIndent := 0
|
||||||