Interfaces get parsed properly (i think)

This commit is contained in:
2022-09-29 15:45:25 -04:00
parent 4811ea5257
commit 2ceb3f8174
4 changed files with 87 additions and 31 deletions

View File

@@ -191,6 +191,15 @@ type EnumSection struct {
members []EnumMember
}
// FaceKind determines if an interface is a type interface or an function
// interface.
type FaceKind int
const (
FaceKindType FaceKind = iota
FaceKindFunc
)
// FaceBehavior represents a behavior of an interface section.
type FaceBehavior struct {
locatable
@@ -206,8 +215,11 @@ type FaceSection struct {
nameable
permissionable
inherits Identifier
kind FaceKind
behaviors map[string] FaceBehavior
FaceBehavior
}
// PhraseKind determines what semantic role a phrase plays.