Added object sections to the tree for real lol

This commit is contained in:
Sasha Koshka 2022-08-20 13:24:56 -04:00
parent 790e7e632e
commit cb2264977a
2 changed files with 10 additions and 0 deletions

View File

@ -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":

View File

@ -12,6 +12,7 @@ type SyntaxTree struct {
requires []string
typeSections map[string] *TypeSection
objtSections map[string] *ObjtSection
dataSections map[string] *DataSection
}