Added main prefix
This commit is contained in:
parent
e537e543cc
commit
6510166ae0
9 changed files with 34 additions and 20 deletions
|
@ -11,11 +11,12 @@ import (
|
|||
)
|
||||
|
||||
// NewFunction creates a new function.
|
||||
func NewFunction(name string, file *fs.File, body []token.Token) *Function {
|
||||
func NewFunction(pkg string, name string, file *fs.File, body []token.Token) *Function {
|
||||
return &Function{
|
||||
Name: name,
|
||||
File: file,
|
||||
Body: body,
|
||||
Package: pkg,
|
||||
Name: name,
|
||||
File: file,
|
||||
Body: body,
|
||||
Machine: register.Machine{
|
||||
Assembler: asm.Assembler{
|
||||
Instructions: make([]asm.Instruction, 0, 8),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue