Added enum sections to tree

This commit is contained in:
Sasha Koshka
2022-08-21 02:40:04 -04:00
parent ca80a5968d
commit 59126f60cc
2 changed files with 45 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ type SyntaxTree struct {
requires []string
typeSections map[string] *TypeSection
objtSections map[string] *ObjtSection
enumSections map[string] *EnumSection
dataSections map[string] *DataSection
}
@@ -191,3 +192,13 @@ type ObjtSection struct {
permission types.Permission
members map[string] ObjtMember
}
// EnumSection represents an enumerated type section.
type EnumSection struct {
location file.Location
name string
what Type
permission types.Permission
members map[string] Argument
}