Documentation ¶
Overview ¶
Package namespace provides namespace management for the system
Index ¶
Constants ¶
View Source
const ( SymbolNotDeclared = "symbol not declared in namespace: %s" SymbolNotBound = "symbol not bound in namespace: %s" )
Error messages
View Source
const ( // RootDomain stores built-ins RootDomain = data.Name("ale") // AnonymousDomain identifies an anonymous namespace AnonymousDomain = data.Name("*anon*") )
View Source
const ( NameAlreadyBound = "name is already bound in namespace: %s" NameNotBound = "name is not bound in namespace: %s" )
Error messages
Variables ¶
This section is empty.
Functions ¶
func MustResolveValue ¶
MustResolveValue attempts to resolve a value or explodes violently
func ResolveValue ¶
ResolveValue attempts to resolve a symbol to a bound value
Types ¶
type Entry ¶
type Entry interface { Owner() Type Name() data.Name Value() data.Value IsBound() bool Bind(data.Value) }
Entry represents a namespace entry
func MustResolveSymbol ¶
MustResolveSymbol attempts to resolve a symbol or explodes violently
type Manager ¶
Manager maintains a mapping of domain names to namespaces
func (*Manager) GetAnonymous ¶
GetAnonymous returns an anonymous (non-resolvable) namespace
func (*Manager) GetQualified ¶
GetQualified returns the namespace for the specified domain.
Click to show internal directories.
Click to hide internal directories.