Added interface section parsing to body

This commit is contained in:
Sasha Koshka 2022-08-23 15:14:44 -04:00
parent 4eac5c67aa
commit b0d4ecc83f

View File

@ -39,6 +39,14 @@ func (parser *ParsingOperation) parseBody () (err error) {
parser.tree.objtSections[section.name] = section
if err != nil { return }
case "face":
var section *FaceSection
section, err = parser.parseFaceSection()
if parser.tree.faceSections == nil {
parser.tree.faceSections =
make(map[string] *FaceSection)
}
parser.tree.faceSections[section.name] = section
if err != nil { return }
case "enum":
var section *EnumSection
section, err = parser.parseEnumSection()