Moved AST generation to its own package
This commit is contained in:
parent
8453273d73
commit
2d045759f2
8 changed files with 172 additions and 171 deletions
|
@ -3,6 +3,7 @@ package build
|
|||
import (
|
||||
"strconv"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/build/ast"
|
||||
"git.akyoto.dev/cli/q/src/build/config"
|
||||
"git.akyoto.dev/cli/q/src/build/cpu"
|
||||
"git.akyoto.dev/cli/q/src/build/expression"
|
||||
|
@ -22,7 +23,7 @@ func (f *Function) Execute(operation token.Token, register cpu.Register, value *
|
|||
|
||||
var temporary cpu.Register
|
||||
|
||||
if isFunctionCall(value) {
|
||||
if ast.IsFunctionCall(value) {
|
||||
temporary = f.cpu.Return[0]
|
||||
} else {
|
||||
found := false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue