Implemented an assembler
All checks were successful
/ test (push) Successful in 28s

This commit is contained in:
Eduard Urbach 2025-06-24 12:55:26 +02:00
parent 2b703e9af2
commit 70c2da4a4d
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
40 changed files with 821 additions and 117 deletions

View file

@ -1,9 +1,12 @@
package scanner
import (
"path/filepath"
"git.urbach.dev/cli/q/src/build"
"git.urbach.dev/cli/q/src/core"
"git.urbach.dev/cli/q/src/fs"
"git.urbach.dev/cli/q/src/global"
)
// Scan scans all the files included in the build.
@ -16,6 +19,7 @@ func Scan(b *build.Build) (*core.Environment, error) {
}
go func() {
s.queueDirectory(filepath.Join(global.Library, "core"), "core")
s.queue(b.Files...)
s.group.Wait()
close(s.functions)
@ -36,6 +40,7 @@ func Scan(b *build.Build) (*core.Environment, error) {
continue
}
f.All = all
all.Functions[f.UniqueName] = f
case file, ok := <-s.files: