Documentation
¶
Overview ¶
Package sema implements the semantic analyzer for the Umka language.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingExpr = fmt.Errorf("missing expression") ErrMissingValue = fmt.Errorf("missing value") )
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
Modules map[string]ast.Module
Types map[ast.Identifier]ast.Type
Funcs map[ast.Identifier]ast.DeclFunc
// Consts holds only the constant declarations.
Consts *Context
// Globals holds the global constant and variable declarations.
Globals *Context
// contains filtered or unexported fields
}
type Context ¶
type Context struct {
Parent *Context
Data map[ast.Identifier]ast.Value
}
func NewContext ¶
Click to show internal directories.
Click to hide internal directories.