Implemented variable scopes
This commit is contained in:
@ -36,8 +36,8 @@ func NewFunction(name string, file *fs.File, body token.List) *Function {
|
||||
Syscall: x64.SyscallRegisters,
|
||||
Output: x64.ReturnValueRegisters,
|
||||
},
|
||||
variables: map[string]*Variable{},
|
||||
finished: make(chan struct{}),
|
||||
scopes: []Scope{{}},
|
||||
finished: make(chan struct{}),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user