Simplified code
This commit is contained in:
parent
abba962455
commit
eeee4d5496
30 changed files with 105 additions and 69 deletions
|
@ -5,9 +5,9 @@ import (
|
|||
"git.akyoto.dev/cli/q/src/build/asm"
|
||||
"git.akyoto.dev/cli/q/src/build/cpu"
|
||||
"git.akyoto.dev/cli/q/src/build/fs"
|
||||
"git.akyoto.dev/cli/q/src/build/register"
|
||||
"git.akyoto.dev/cli/q/src/build/scope"
|
||||
"git.akyoto.dev/cli/q/src/build/token"
|
||||
"git.akyoto.dev/cli/q/src/build/z"
|
||||
)
|
||||
|
||||
// NewFunction creates a new function.
|
||||
|
@ -16,7 +16,7 @@ func NewFunction(name string, file *fs.File, body []token.Token) *Function {
|
|||
Name: name,
|
||||
File: file,
|
||||
Body: body,
|
||||
Compiler: z.Compiler{
|
||||
Machine: register.Machine{
|
||||
Assembler: asm.Assembler{
|
||||
Instructions: make([]asm.Instruction, 0, 8),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue