Documentation ¶
Index ¶
- type Irgen
- type Scope
- func (s *Scope) AddFunction(key string, function *goory.Function)
- func (s *Scope) AddVar(key string, value *instructions.Alloca)
- func (s *Scope) GetFunction(key string) (*goory.Function, bool)
- func (s *Scope) GetLocalFunction(key string) (*goory.Function, bool)
- func (s *Scope) GetLocalVar(key string) (*instructions.Alloca, bool)
- func (s *Scope) GetVar(key string) (*instructions.Alloca, bool)
- func (s *Scope) Push() *Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) AddFunction ¶
AddFunction adds a value to the current scope
func (*Scope) AddVar ¶
func (s *Scope) AddVar(key string, value *instructions.Alloca)
AddVar adds a value to the current scope
func (*Scope) GetFunction ¶
GetFunction returns the item and true if the key is in local (or parent scope), otherwise false
func (*Scope) GetLocalFunction ¶
GetLocalFunction returns the item and true if the key is in local scope, otherwise false
func (*Scope) GetLocalVar ¶
func (s *Scope) GetLocalVar(key string) (*instructions.Alloca, bool)
GetLocalVar returns the item and true if the key is in local scope, otherwise false
Click to show internal directories.
Click to hide internal directories.