Added object sections to the tree for real lol
This commit is contained in:
parent
790e7e632e
commit
cb2264977a
@ -29,6 +29,15 @@ func (parser *ParsingOperation) parseBody () (err error) {
|
||||
}
|
||||
parser.tree.typeSections[section.name] = section
|
||||
if err != nil { return }
|
||||
case "objt":
|
||||
var section *ObjtSection
|
||||
section, err = parser.parseObjtSection()
|
||||
if parser.tree.typeSections == nil {
|
||||
parser.tree.typeSections =
|
||||
make(map[string] *TypeSection)
|
||||
}
|
||||
parser.tree.objtSections[section.name] = section
|
||||
if err != nil { return }
|
||||
case "face":
|
||||
case "enum":
|
||||
case "func":
|
||||
|
@ -12,6 +12,7 @@ type SyntaxTree struct {
|
||||
|
||||
requires []string
|
||||
typeSections map[string] *TypeSection
|
||||
objtSections map[string] *ObjtSection
|
||||
dataSections map[string] *DataSection
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user